custos-client-sdks/custos-js-sdk/stubs/core-services/federated-authentication-service/FederatedAuthenticationService_pb.js (1,115 lines of code) (raw):
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// source: src/main/proto/FederatedAuthenticationService.proto
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
goog.exportSymbol('proto.org.apache.custos.federated.authentication.service.ClientMetadata', null, global);
goog.exportSymbol('proto.org.apache.custos.federated.authentication.service.DeleteClientRequest', null, global);
goog.exportSymbol('proto.org.apache.custos.federated.authentication.service.Empty', null, global);
goog.exportSymbol('proto.org.apache.custos.federated.authentication.service.GetClientRequest', null, global);
goog.exportSymbol('proto.org.apache.custos.federated.authentication.service.GetClientResponse', null, global);
goog.exportSymbol('proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest', null, global);
goog.exportSymbol('proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse', null, global);
goog.exportSymbol('proto.org.apache.custos.federated.authentication.service.OperationMetadata', null, global);
goog.exportSymbol('proto.org.apache.custos.federated.authentication.service.RegisterClientResponse', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.apache.custos.federated.authentication.service.ClientMetadata.repeatedFields_, null);
};
goog.inherits(proto.org.apache.custos.federated.authentication.service.ClientMetadata, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.displayName = 'proto.org.apache.custos.federated.authentication.service.ClientMetadata';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.federated.authentication.service.RegisterClientResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.displayName = 'proto.org.apache.custos.federated.authentication.service.RegisterClientResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.federated.authentication.service.GetClientRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.displayName = 'proto.org.apache.custos.federated.authentication.service.GetClientRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.apache.custos.federated.authentication.service.GetClientResponse.repeatedFields_, null);
};
goog.inherits(proto.org.apache.custos.federated.authentication.service.GetClientResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.displayName = 'proto.org.apache.custos.federated.authentication.service.GetClientResponse';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.federated.authentication.service.DeleteClientRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.displayName = 'proto.org.apache.custos.federated.authentication.service.DeleteClientRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.org.apache.custos.federated.authentication.service.Empty = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.federated.authentication.service.Empty, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.federated.authentication.service.Empty.displayName = 'proto.org.apache.custos.federated.authentication.service.Empty';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.displayName = 'proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.apache.custos.federated.authentication.service.OperationMetadata, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.displayName = 'proto.org.apache.custos.federated.authentication.service.OperationMetadata';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.repeatedFields_, null);
};
goog.inherits(proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.displayName = 'proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.repeatedFields_ = [3,5,7];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.federated.authentication.service.ClientMetadata.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.toObject = function(includeInstance, msg) {
var f, obj = {
tenantid: jspb.Message.getFieldWithDefault(msg, 1, 0),
tenantname: jspb.Message.getFieldWithDefault(msg, 2, ""),
scopeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
tenanturi: jspb.Message.getFieldWithDefault(msg, 4, ""),
contactsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
comment: jspb.Message.getFieldWithDefault(msg, 6, ""),
redirecturisList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
clientid: jspb.Message.getFieldWithDefault(msg, 8, ""),
performedby: jspb.Message.getFieldWithDefault(msg, 9, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.federated.authentication.service.ClientMetadata;
return proto.org.apache.custos.federated.authentication.service.ClientMetadata.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setTenantid(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setTenantname(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.addScope(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setTenanturi(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.addContacts(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setComment(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.addRedirecturis(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setClientid(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.setPerformedby(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.federated.authentication.service.ClientMetadata.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTenantid();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getTenantname();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getScopeList();
if (f.length > 0) {
writer.writeRepeatedString(
3,
f
);
}
f = message.getTenanturi();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getContactsList();
if (f.length > 0) {
writer.writeRepeatedString(
5,
f
);
}
f = message.getComment();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getRedirecturisList();
if (f.length > 0) {
writer.writeRepeatedString(
7,
f
);
}
f = message.getClientid();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
f = message.getPerformedby();
if (f.length > 0) {
writer.writeString(
9,
f
);
}
};
/**
* optional int64 tenantId = 1;
* @return {number}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.getTenantid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.setTenantid = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string tenantName = 2;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.getTenantname = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.setTenantname = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* repeated string scope = 3;
* @return {!Array<string>}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.getScopeList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.setScopeList = function(value) {
return jspb.Message.setField(this, 3, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.addScope = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.clearScopeList = function() {
return this.setScopeList([]);
};
/**
* optional string tenantURI = 4;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.getTenanturi = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.setTenanturi = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* repeated string contacts = 5;
* @return {!Array<string>}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.getContactsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.setContactsList = function(value) {
return jspb.Message.setField(this, 5, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.addContacts = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.clearContactsList = function() {
return this.setContactsList([]);
};
/**
* optional string comment = 6;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.getComment = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.setComment = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* repeated string redirectURIs = 7;
* @return {!Array<string>}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.getRedirecturisList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.setRedirecturisList = function(value) {
return jspb.Message.setField(this, 7, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.addRedirecturis = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.clearRedirecturisList = function() {
return this.setRedirecturisList([]);
};
/**
* optional string clientId = 8;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.getClientid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.setClientid = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
/**
* optional string performedBy = 9;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.getPerformedby = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.ClientMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.ClientMetadata.prototype.setPerformedby = function(value) {
return jspb.Message.setProto3StringField(this, 9, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.federated.authentication.service.RegisterClientResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.toObject = function(includeInstance, msg) {
var f, obj = {
clientid: jspb.Message.getFieldWithDefault(msg, 1, ""),
clientsecret: jspb.Message.getFieldWithDefault(msg, 2, ""),
clientidissuedat: jspb.Message.getFieldWithDefault(msg, 3, 0),
clientsecretexpiresat: jspb.Message.getFieldWithDefault(msg, 4, 0),
clientregistrationuri: jspb.Message.getFieldWithDefault(msg, 5, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.apache.custos.federated.authentication.service.RegisterClientResponse}
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.federated.authentication.service.RegisterClientResponse;
return proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.federated.authentication.service.RegisterClientResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.federated.authentication.service.RegisterClientResponse}
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setClientid(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setClientsecret(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt64());
msg.setClientidissuedat(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt64());
msg.setClientsecretexpiresat(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setClientregistrationuri(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.federated.authentication.service.RegisterClientResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getClientid();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getClientsecret();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getClientidissuedat();
if (f !== 0) {
writer.writeInt64(
3,
f
);
}
f = message.getClientsecretexpiresat();
if (f !== 0) {
writer.writeInt64(
4,
f
);
}
f = message.getClientregistrationuri();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
};
/**
* optional string clientId = 1;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.getClientid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.RegisterClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.setClientid = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string clientSecret = 2;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.getClientsecret = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.RegisterClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.setClientsecret = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional int64 clientIdIssuedAt = 3;
* @return {number}
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.getClientidissuedat = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.federated.authentication.service.RegisterClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.setClientidissuedat = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional int64 clientSecretExpiresAt = 4;
* @return {number}
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.getClientsecretexpiresat = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.federated.authentication.service.RegisterClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.setClientsecretexpiresat = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional string clientRegistrationUri = 5;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.getClientregistrationuri = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.RegisterClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.RegisterClientResponse.prototype.setClientregistrationuri = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.federated.authentication.service.GetClientRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.federated.authentication.service.GetClientRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.toObject = function(includeInstance, msg) {
var f, obj = {
tenantid: jspb.Message.getFieldWithDefault(msg, 1, 0),
clientid: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientRequest}
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.federated.authentication.service.GetClientRequest;
return proto.org.apache.custos.federated.authentication.service.GetClientRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.federated.authentication.service.GetClientRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientRequest}
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setTenantid(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setClientid(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.federated.authentication.service.GetClientRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.federated.authentication.service.GetClientRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTenantid();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getClientid();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional int64 tenantId = 1;
* @return {number}
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.prototype.getTenantid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientRequest} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.prototype.setTenantid = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string clientId = 2;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.prototype.getClientid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientRequest} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientRequest.prototype.setClientid = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.repeatedFields_ = [3,4,5];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.federated.authentication.service.GetClientResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.toObject = function(includeInstance, msg) {
var f, obj = {
clientid: jspb.Message.getFieldWithDefault(msg, 1, ""),
clientname: jspb.Message.getFieldWithDefault(msg, 2, ""),
redirecturisList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
granttypesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
scopeList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
clientidissuedat: jspb.Message.getFieldWithDefault(msg, 6, 0),
comment: jspb.Message.getFieldWithDefault(msg, 7, ""),
clientsecret: jspb.Message.getFieldWithDefault(msg, 8, ""),
clientsecretexpiresat: jspb.Message.getFieldWithDefault(msg, 9, 0),
clientregistrationuri: jspb.Message.getFieldWithDefault(msg, 10, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.federated.authentication.service.GetClientResponse;
return proto.org.apache.custos.federated.authentication.service.GetClientResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setClientid(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setClientname(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.addRedirecturis(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.addGranttypes(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.addScope(value);
break;
case 6:
var value = /** @type {number} */ (reader.readInt64());
msg.setClientidissuedat(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setComment(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setClientsecret(value);
break;
case 9:
var value = /** @type {number} */ (reader.readInt64());
msg.setClientsecretexpiresat(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.setClientregistrationuri(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.federated.authentication.service.GetClientResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getClientid();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getClientname();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getRedirecturisList();
if (f.length > 0) {
writer.writeRepeatedString(
3,
f
);
}
f = message.getGranttypesList();
if (f.length > 0) {
writer.writeRepeatedString(
4,
f
);
}
f = message.getScopeList();
if (f.length > 0) {
writer.writeRepeatedString(
5,
f
);
}
f = message.getClientidissuedat();
if (f !== 0) {
writer.writeInt64(
6,
f
);
}
f = message.getComment();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = message.getClientsecret();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
f = message.getClientsecretexpiresat();
if (f !== 0) {
writer.writeInt64(
9,
f
);
}
f = message.getClientregistrationuri();
if (f.length > 0) {
writer.writeString(
10,
f
);
}
};
/**
* optional string clientId = 1;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.getClientid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.setClientid = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string clientName = 2;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.getClientname = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.setClientname = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* repeated string redirectURIs = 3;
* @return {!Array<string>}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.getRedirecturisList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.setRedirecturisList = function(value) {
return jspb.Message.setField(this, 3, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.addRedirecturis = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.clearRedirecturisList = function() {
return this.setRedirecturisList([]);
};
/**
* repeated string grantTypes = 4;
* @return {!Array<string>}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.getGranttypesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.setGranttypesList = function(value) {
return jspb.Message.setField(this, 4, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.addGranttypes = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.clearGranttypesList = function() {
return this.setGranttypesList([]);
};
/**
* repeated string scope = 5;
* @return {!Array<string>}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.getScopeList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.setScopeList = function(value) {
return jspb.Message.setField(this, 5, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.addScope = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.clearScopeList = function() {
return this.setScopeList([]);
};
/**
* optional int64 clientIdIssuedAt = 6;
* @return {number}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.getClientidissuedat = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.setClientidissuedat = function(value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
/**
* optional string comment = 7;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.getComment = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.setComment = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
/**
* optional string clientSecret = 8;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.getClientsecret = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.setClientsecret = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
/**
* optional int64 clientSecretExpiresAt = 9;
* @return {number}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.getClientsecretexpiresat = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.setClientsecretexpiresat = function(value) {
return jspb.Message.setProto3IntField(this, 9, value);
};
/**
* optional string clientRegistrationUri = 10;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.getClientregistrationuri = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetClientResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetClientResponse.prototype.setClientregistrationuri = function(value) {
return jspb.Message.setProto3StringField(this, 10, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.federated.authentication.service.DeleteClientRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.toObject = function(includeInstance, msg) {
var f, obj = {
tenantid: jspb.Message.getFieldWithDefault(msg, 1, 0),
clientid: jspb.Message.getFieldWithDefault(msg, 2, ""),
performedby: jspb.Message.getFieldWithDefault(msg, 3, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.apache.custos.federated.authentication.service.DeleteClientRequest}
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.federated.authentication.service.DeleteClientRequest;
return proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.federated.authentication.service.DeleteClientRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.federated.authentication.service.DeleteClientRequest}
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setTenantid(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setClientid(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setPerformedby(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.federated.authentication.service.DeleteClientRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTenantid();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getClientid();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getPerformedby();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional int64 tenantId = 1;
* @return {number}
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.prototype.getTenantid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.federated.authentication.service.DeleteClientRequest} returns this
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.prototype.setTenantid = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string clientId = 2;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.prototype.getClientid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.DeleteClientRequest} returns this
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.prototype.setClientid = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string performedBy = 3;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.prototype.getPerformedby = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.DeleteClientRequest} returns this
*/
proto.org.apache.custos.federated.authentication.service.DeleteClientRequest.prototype.setPerformedby = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.federated.authentication.service.Empty.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.federated.authentication.service.Empty.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.federated.authentication.service.Empty} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.Empty.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.apache.custos.federated.authentication.service.Empty}
*/
proto.org.apache.custos.federated.authentication.service.Empty.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.federated.authentication.service.Empty;
return proto.org.apache.custos.federated.authentication.service.Empty.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.federated.authentication.service.Empty} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.federated.authentication.service.Empty}
*/
proto.org.apache.custos.federated.authentication.service.Empty.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.federated.authentication.service.Empty.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.federated.authentication.service.Empty.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.federated.authentication.service.Empty} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.Empty.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.toObject = function(includeInstance, msg) {
var f, obj = {
traceid: jspb.Message.getFieldWithDefault(msg, 1, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest;
return proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setTraceid(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTraceid();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
};
/**
* optional int64 traceId = 1;
* @return {number}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.prototype.getTraceid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataRequest.prototype.setTraceid = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.federated.authentication.service.OperationMetadata.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.federated.authentication.service.OperationMetadata} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.toObject = function(includeInstance, msg) {
var f, obj = {
event: jspb.Message.getFieldWithDefault(msg, 1, ""),
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
timestamp: jspb.Message.getFieldWithDefault(msg, 3, ""),
performedby: jspb.Message.getFieldWithDefault(msg, 4, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.apache.custos.federated.authentication.service.OperationMetadata}
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.federated.authentication.service.OperationMetadata;
return proto.org.apache.custos.federated.authentication.service.OperationMetadata.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.federated.authentication.service.OperationMetadata} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.federated.authentication.service.OperationMetadata}
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setEvent(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setStatus(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setTimestamp(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setPerformedby(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.federated.authentication.service.OperationMetadata.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.federated.authentication.service.OperationMetadata} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEvent();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getStatus();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getTimestamp();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getPerformedby();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};
/**
* optional string event = 1;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.prototype.getEvent = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.OperationMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.prototype.setEvent = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string status = 2;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.prototype.getStatus = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.OperationMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.prototype.setStatus = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string timeStamp = 3;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.prototype.getTimestamp = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.OperationMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.prototype.setTimestamp = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string performedBy = 4;
* @return {string}
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.prototype.getPerformedby = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.org.apache.custos.federated.authentication.service.OperationMetadata} returns this
*/
proto.org.apache.custos.federated.authentication.service.OperationMetadata.prototype.setPerformedby = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.prototype.toObject = function(opt_includeInstance) {
return proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.toObject = function(includeInstance, msg) {
var f, obj = {
metadataList: jspb.Message.toObjectList(msg.getMetadataList(),
proto.org.apache.custos.federated.authentication.service.OperationMetadata.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse;
return proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.org.apache.custos.federated.authentication.service.OperationMetadata;
reader.readMessage(value,proto.org.apache.custos.federated.authentication.service.OperationMetadata.deserializeBinaryFromReader);
msg.addMetadata(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMetadataList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.org.apache.custos.federated.authentication.service.OperationMetadata.serializeBinaryToWriter
);
}
};
/**
* repeated OperationMetadata metadata = 1;
* @return {!Array<!proto.org.apache.custos.federated.authentication.service.OperationMetadata>}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.prototype.getMetadataList = function() {
return /** @type{!Array<!proto.org.apache.custos.federated.authentication.service.OperationMetadata>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.org.apache.custos.federated.authentication.service.OperationMetadata, 1));
};
/**
* @param {!Array<!proto.org.apache.custos.federated.authentication.service.OperationMetadata>} value
* @return {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.prototype.setMetadataList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.org.apache.custos.federated.authentication.service.OperationMetadata=} opt_value
* @param {number=} opt_index
* @return {!proto.org.apache.custos.federated.authentication.service.OperationMetadata}
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.prototype.addMetadata = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.org.apache.custos.federated.authentication.service.OperationMetadata, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse} returns this
*/
proto.org.apache.custos.federated.authentication.service.GetOperationsMetadataResponse.prototype.clearMetadataList = function() {
return this.setMetadataList([]);
};
goog.object.extend(exports, proto.org.apache.custos.federated.authentication.service);