UNPKG

pip-services-roles-node

Version:
1,708 lines (1,472 loc) 65.7 kB
/** * @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.roles_v1.AuthorizeReply', null, global); goog.exportSymbol('proto.roles_v1.ErrorDescription', null, global); goog.exportSymbol('proto.roles_v1.PagingParams', null, global); goog.exportSymbol('proto.roles_v1.RoleIdRequest', null, global); goog.exportSymbol('proto.roles_v1.RolesPageReply', null, global); goog.exportSymbol('proto.roles_v1.RolesPageRequest', null, global); goog.exportSymbol('proto.roles_v1.RolesReply', null, global); goog.exportSymbol('proto.roles_v1.RolesRequest', null, global); goog.exportSymbol('proto.roles_v1.UserRoles', null, global); goog.exportSymbol('proto.roles_v1.UserRolesPage', 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.roles_v1.ErrorDescription = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.roles_v1.ErrorDescription, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.roles_v1.ErrorDescription.displayName = 'proto.roles_v1.ErrorDescription'; } /** * 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.roles_v1.PagingParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.roles_v1.PagingParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.roles_v1.PagingParams.displayName = 'proto.roles_v1.PagingParams'; } /** * 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.roles_v1.UserRoles = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.roles_v1.UserRoles.repeatedFields_, null); }; goog.inherits(proto.roles_v1.UserRoles, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.roles_v1.UserRoles.displayName = 'proto.roles_v1.UserRoles'; } /** * 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.roles_v1.UserRolesPage = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.roles_v1.UserRolesPage.repeatedFields_, null); }; goog.inherits(proto.roles_v1.UserRolesPage, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.roles_v1.UserRolesPage.displayName = 'proto.roles_v1.UserRolesPage'; } /** * 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.roles_v1.RolesPageRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.roles_v1.RolesPageRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.roles_v1.RolesPageRequest.displayName = 'proto.roles_v1.RolesPageRequest'; } /** * 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.roles_v1.RolesPageReply = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.roles_v1.RolesPageReply, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.roles_v1.RolesPageReply.displayName = 'proto.roles_v1.RolesPageReply'; } /** * 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.roles_v1.RoleIdRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.roles_v1.RoleIdRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.roles_v1.RoleIdRequest.displayName = 'proto.roles_v1.RoleIdRequest'; } /** * 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.roles_v1.RolesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.roles_v1.RolesRequest.repeatedFields_, null); }; goog.inherits(proto.roles_v1.RolesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.roles_v1.RolesRequest.displayName = 'proto.roles_v1.RolesRequest'; } /** * 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.roles_v1.RolesReply = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.roles_v1.RolesReply.repeatedFields_, null); }; goog.inherits(proto.roles_v1.RolesReply, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.roles_v1.RolesReply.displayName = 'proto.roles_v1.RolesReply'; } /** * 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.roles_v1.AuthorizeReply = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.roles_v1.AuthorizeReply, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.roles_v1.AuthorizeReply.displayName = 'proto.roles_v1.AuthorizeReply'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.roles_v1.ErrorDescription.prototype.toObject = function(opt_includeInstance) { return proto.roles_v1.ErrorDescription.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.roles_v1.ErrorDescription} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.ErrorDescription.toObject = function(includeInstance, msg) { var f, obj = { type: jspb.Message.getFieldWithDefault(msg, 1, ""), category: jspb.Message.getFieldWithDefault(msg, 2, ""), code: jspb.Message.getFieldWithDefault(msg, 3, ""), correlationId: jspb.Message.getFieldWithDefault(msg, 4, ""), status: jspb.Message.getFieldWithDefault(msg, 5, ""), message: jspb.Message.getFieldWithDefault(msg, 6, ""), cause: jspb.Message.getFieldWithDefault(msg, 7, ""), stackTrace: jspb.Message.getFieldWithDefault(msg, 8, ""), detailsMap: (f = msg.getDetailsMap()) ? f.toObject(includeInstance, undefined) : [] }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.roles_v1.ErrorDescription} */ proto.roles_v1.ErrorDescription.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.roles_v1.ErrorDescription; return proto.roles_v1.ErrorDescription.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.roles_v1.ErrorDescription} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.roles_v1.ErrorDescription} */ proto.roles_v1.ErrorDescription.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.setType(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setCategory(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setCode(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setCorrelationId(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setStatus(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setMessage(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setCause(value); break; case 8: var value = /** @type {string} */ (reader.readString()); msg.setStackTrace(value); break; case 9: var value = msg.getDetailsMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, ""); }); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.roles_v1.ErrorDescription.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.roles_v1.ErrorDescription.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.roles_v1.ErrorDescription} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.ErrorDescription.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getType(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getCategory(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getCode(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getCorrelationId(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getStatus(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getMessage(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getCause(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getStackTrace(); if (f.length > 0) { writer.writeString( 8, f ); } f = message.getDetailsMap(true); if (f && f.getLength() > 0) { f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; /** * optional string type = 1; * @return {string} */ proto.roles_v1.ErrorDescription.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** @param {string} value */ proto.roles_v1.ErrorDescription.prototype.setType = function(value) { jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string category = 2; * @return {string} */ proto.roles_v1.ErrorDescription.prototype.getCategory = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** @param {string} value */ proto.roles_v1.ErrorDescription.prototype.setCategory = function(value) { jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string code = 3; * @return {string} */ proto.roles_v1.ErrorDescription.prototype.getCode = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** @param {string} value */ proto.roles_v1.ErrorDescription.prototype.setCode = function(value) { jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string correlation_id = 4; * @return {string} */ proto.roles_v1.ErrorDescription.prototype.getCorrelationId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** @param {string} value */ proto.roles_v1.ErrorDescription.prototype.setCorrelationId = function(value) { jspb.Message.setProto3StringField(this, 4, value); }; /** * optional string status = 5; * @return {string} */ proto.roles_v1.ErrorDescription.prototype.getStatus = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** @param {string} value */ proto.roles_v1.ErrorDescription.prototype.setStatus = function(value) { jspb.Message.setProto3StringField(this, 5, value); }; /** * optional string message = 6; * @return {string} */ proto.roles_v1.ErrorDescription.prototype.getMessage = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** @param {string} value */ proto.roles_v1.ErrorDescription.prototype.setMessage = function(value) { jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string cause = 7; * @return {string} */ proto.roles_v1.ErrorDescription.prototype.getCause = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** @param {string} value */ proto.roles_v1.ErrorDescription.prototype.setCause = function(value) { jspb.Message.setProto3StringField(this, 7, value); }; /** * optional string stack_trace = 8; * @return {string} */ proto.roles_v1.ErrorDescription.prototype.getStackTrace = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** @param {string} value */ proto.roles_v1.ErrorDescription.prototype.setStackTrace = function(value) { jspb.Message.setProto3StringField(this, 8, value); }; /** * map<string, string> details = 9; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,string>} */ proto.roles_v1.ErrorDescription.prototype.getDetailsMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,string>} */ ( jspb.Message.getMapField(this, 9, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. */ proto.roles_v1.ErrorDescription.prototype.clearDetailsMap = function() { this.getDetailsMap().clear(); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.roles_v1.PagingParams.prototype.toObject = function(opt_includeInstance) { return proto.roles_v1.PagingParams.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.roles_v1.PagingParams} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.PagingParams.toObject = function(includeInstance, msg) { var f, obj = { skip: jspb.Message.getFieldWithDefault(msg, 1, 0), take: jspb.Message.getFieldWithDefault(msg, 2, 0), total: jspb.Message.getFieldWithDefault(msg, 3, false) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.roles_v1.PagingParams} */ proto.roles_v1.PagingParams.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.roles_v1.PagingParams; return proto.roles_v1.PagingParams.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.roles_v1.PagingParams} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.roles_v1.PagingParams} */ proto.roles_v1.PagingParams.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.setSkip(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setTake(value); break; case 3: var value = /** @type {boolean} */ (reader.readBool()); msg.setTotal(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.roles_v1.PagingParams.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.roles_v1.PagingParams.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.roles_v1.PagingParams} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.PagingParams.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSkip(); if (f !== 0) { writer.writeInt64( 1, f ); } f = message.getTake(); if (f !== 0) { writer.writeInt32( 2, f ); } f = message.getTotal(); if (f) { writer.writeBool( 3, f ); } }; /** * optional int64 skip = 1; * @return {number} */ proto.roles_v1.PagingParams.prototype.getSkip = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** @param {number} value */ proto.roles_v1.PagingParams.prototype.setSkip = function(value) { jspb.Message.setProto3IntField(this, 1, value); }; /** * optional int32 take = 2; * @return {number} */ proto.roles_v1.PagingParams.prototype.getTake = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** @param {number} value */ proto.roles_v1.PagingParams.prototype.setTake = function(value) { jspb.Message.setProto3IntField(this, 2, value); }; /** * optional bool total = 3; * Note that Boolean fields may be set to 0/1 when serialized from a Java server. * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.roles_v1.PagingParams.prototype.getTotal = function() { return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); }; /** @param {boolean} value */ proto.roles_v1.PagingParams.prototype.setTotal = function(value) { jspb.Message.setProto3BooleanField(this, 3, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.roles_v1.UserRoles.repeatedFields_ = [3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.roles_v1.UserRoles.prototype.toObject = function(opt_includeInstance) { return proto.roles_v1.UserRoles.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.roles_v1.UserRoles} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.UserRoles.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), updateTime: jspb.Message.getFieldWithDefault(msg, 2, ""), rolesList: jspb.Message.getRepeatedField(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.roles_v1.UserRoles} */ proto.roles_v1.UserRoles.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.roles_v1.UserRoles; return proto.roles_v1.UserRoles.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.roles_v1.UserRoles} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.roles_v1.UserRoles} */ proto.roles_v1.UserRoles.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.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setUpdateTime(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.addRoles(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.roles_v1.UserRoles.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.roles_v1.UserRoles.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.roles_v1.UserRoles} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.UserRoles.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getUpdateTime(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getRolesList(); if (f.length > 0) { writer.writeRepeatedString( 3, f ); } }; /** * optional string id = 1; * @return {string} */ proto.roles_v1.UserRoles.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** @param {string} value */ proto.roles_v1.UserRoles.prototype.setId = function(value) { jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string update_time = 2; * @return {string} */ proto.roles_v1.UserRoles.prototype.getUpdateTime = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** @param {string} value */ proto.roles_v1.UserRoles.prototype.setUpdateTime = function(value) { jspb.Message.setProto3StringField(this, 2, value); }; /** * repeated string roles = 3; * @return {!Array<string>} */ proto.roles_v1.UserRoles.prototype.getRolesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3)); }; /** @param {!Array<string>} value */ proto.roles_v1.UserRoles.prototype.setRolesList = function(value) { jspb.Message.setField(this, 3, value || []); }; /** * @param {string} value * @param {number=} opt_index */ proto.roles_v1.UserRoles.prototype.addRoles = function(value, opt_index) { jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. */ proto.roles_v1.UserRoles.prototype.clearRolesList = function() { this.setRolesList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.roles_v1.UserRolesPage.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.roles_v1.UserRolesPage.prototype.toObject = function(opt_includeInstance) { return proto.roles_v1.UserRolesPage.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.roles_v1.UserRolesPage} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.UserRolesPage.toObject = function(includeInstance, msg) { var f, obj = { total: jspb.Message.getFieldWithDefault(msg, 1, 0), dataList: jspb.Message.toObjectList(msg.getDataList(), proto.roles_v1.UserRoles.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.roles_v1.UserRolesPage} */ proto.roles_v1.UserRolesPage.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.roles_v1.UserRolesPage; return proto.roles_v1.UserRolesPage.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.roles_v1.UserRolesPage} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.roles_v1.UserRolesPage} */ proto.roles_v1.UserRolesPage.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.setTotal(value); break; case 2: var value = new proto.roles_v1.UserRoles; reader.readMessage(value,proto.roles_v1.UserRoles.deserializeBinaryFromReader); msg.addData(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.roles_v1.UserRolesPage.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.roles_v1.UserRolesPage.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.roles_v1.UserRolesPage} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.UserRolesPage.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getTotal(); if (f !== 0) { writer.writeInt64( 1, f ); } f = message.getDataList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.roles_v1.UserRoles.serializeBinaryToWriter ); } }; /** * optional int64 total = 1; * @return {number} */ proto.roles_v1.UserRolesPage.prototype.getTotal = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** @param {number} value */ proto.roles_v1.UserRolesPage.prototype.setTotal = function(value) { jspb.Message.setProto3IntField(this, 1, value); }; /** * repeated UserRoles data = 2; * @return {!Array<!proto.roles_v1.UserRoles>} */ proto.roles_v1.UserRolesPage.prototype.getDataList = function() { return /** @type{!Array<!proto.roles_v1.UserRoles>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.roles_v1.UserRoles, 2)); }; /** @param {!Array<!proto.roles_v1.UserRoles>} value */ proto.roles_v1.UserRolesPage.prototype.setDataList = function(value) { jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.roles_v1.UserRoles=} opt_value * @param {number=} opt_index * @return {!proto.roles_v1.UserRoles} */ proto.roles_v1.UserRolesPage.prototype.addData = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.roles_v1.UserRoles, opt_index); }; /** * Clears the list making it empty but non-null. */ proto.roles_v1.UserRolesPage.prototype.clearDataList = function() { this.setDataList([]); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.roles_v1.RolesPageRequest.prototype.toObject = function(opt_includeInstance) { return proto.roles_v1.RolesPageRequest.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.roles_v1.RolesPageRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.RolesPageRequest.toObject = function(includeInstance, msg) { var f, obj = { correlationId: jspb.Message.getFieldWithDefault(msg, 1, ""), filterMap: (f = msg.getFilterMap()) ? f.toObject(includeInstance, undefined) : [], paging: (f = msg.getPaging()) && proto.roles_v1.PagingParams.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.roles_v1.RolesPageRequest} */ proto.roles_v1.RolesPageRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.roles_v1.RolesPageRequest; return proto.roles_v1.RolesPageRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.roles_v1.RolesPageRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.roles_v1.RolesPageRequest} */ proto.roles_v1.RolesPageRequest.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.setCorrelationId(value); break; case 2: var value = msg.getFilterMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, ""); }); break; case 3: var value = new proto.roles_v1.PagingParams; reader.readMessage(value,proto.roles_v1.PagingParams.deserializeBinaryFromReader); msg.setPaging(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.roles_v1.RolesPageRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.roles_v1.RolesPageRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.roles_v1.RolesPageRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.RolesPageRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCorrelationId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getFilterMap(true); if (f && f.getLength() > 0) { f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } f = message.getPaging(); if (f != null) { writer.writeMessage( 3, f, proto.roles_v1.PagingParams.serializeBinaryToWriter ); } }; /** * optional string correlation_id = 1; * @return {string} */ proto.roles_v1.RolesPageRequest.prototype.getCorrelationId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** @param {string} value */ proto.roles_v1.RolesPageRequest.prototype.setCorrelationId = function(value) { jspb.Message.setProto3StringField(this, 1, value); }; /** * map<string, string> filter = 2; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,string>} */ proto.roles_v1.RolesPageRequest.prototype.getFilterMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,string>} */ ( jspb.Message.getMapField(this, 2, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. */ proto.roles_v1.RolesPageRequest.prototype.clearFilterMap = function() { this.getFilterMap().clear(); }; /** * optional PagingParams paging = 3; * @return {?proto.roles_v1.PagingParams} */ proto.roles_v1.RolesPageRequest.prototype.getPaging = function() { return /** @type{?proto.roles_v1.PagingParams} */ ( jspb.Message.getWrapperField(this, proto.roles_v1.PagingParams, 3)); }; /** @param {?proto.roles_v1.PagingParams|undefined} value */ proto.roles_v1.RolesPageRequest.prototype.setPaging = function(value) { jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. */ proto.roles_v1.RolesPageRequest.prototype.clearPaging = function() { this.setPaging(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.roles_v1.RolesPageRequest.prototype.hasPaging = function() { return jspb.Message.getField(this, 3) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.roles_v1.RolesPageReply.prototype.toObject = function(opt_includeInstance) { return proto.roles_v1.RolesPageReply.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.roles_v1.RolesPageReply} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.RolesPageReply.toObject = function(includeInstance, msg) { var f, obj = { error: (f = msg.getError()) && proto.roles_v1.ErrorDescription.toObject(includeInstance, f), page: (f = msg.getPage()) && proto.roles_v1.UserRolesPage.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.roles_v1.RolesPageReply} */ proto.roles_v1.RolesPageReply.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.roles_v1.RolesPageReply; return proto.roles_v1.RolesPageReply.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.roles_v1.RolesPageReply} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.roles_v1.RolesPageReply} */ proto.roles_v1.RolesPageReply.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.roles_v1.ErrorDescription; reader.readMessage(value,proto.roles_v1.ErrorDescription.deserializeBinaryFromReader); msg.setError(value); break; case 2: var value = new proto.roles_v1.UserRolesPage; reader.readMessage(value,proto.roles_v1.UserRolesPage.deserializeBinaryFromReader); msg.setPage(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.roles_v1.RolesPageReply.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.roles_v1.RolesPageReply.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.roles_v1.RolesPageReply} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.RolesPageReply.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getError(); if (f != null) { writer.writeMessage( 1, f, proto.roles_v1.ErrorDescription.serializeBinaryToWriter ); } f = message.getPage(); if (f != null) { writer.writeMessage( 2, f, proto.roles_v1.UserRolesPage.serializeBinaryToWriter ); } }; /** * optional ErrorDescription error = 1; * @return {?proto.roles_v1.ErrorDescription} */ proto.roles_v1.RolesPageReply.prototype.getError = function() { return /** @type{?proto.roles_v1.ErrorDescription} */ ( jspb.Message.getWrapperField(this, proto.roles_v1.ErrorDescription, 1)); }; /** @param {?proto.roles_v1.ErrorDescription|undefined} value */ proto.roles_v1.RolesPageReply.prototype.setError = function(value) { jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. */ proto.roles_v1.RolesPageReply.prototype.clearError = function() { this.setError(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.roles_v1.RolesPageReply.prototype.hasError = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional UserRolesPage page = 2; * @return {?proto.roles_v1.UserRolesPage} */ proto.roles_v1.RolesPageReply.prototype.getPage = function() { return /** @type{?proto.roles_v1.UserRolesPage} */ ( jspb.Message.getWrapperField(this, proto.roles_v1.UserRolesPage, 2)); }; /** @param {?proto.roles_v1.UserRolesPage|undefined} value */ proto.roles_v1.RolesPageReply.prototype.setPage = function(value) { jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. */ proto.roles_v1.RolesPageReply.prototype.clearPage = function() { this.setPage(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.roles_v1.RolesPageReply.prototype.hasPage = function() { return jspb.Message.getField(this, 2) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.roles_v1.RoleIdRequest.prototype.toObject = function(opt_includeInstance) { return proto.roles_v1.RoleIdRequest.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.roles_v1.RoleIdRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.RoleIdRequest.toObject = function(includeInstance, msg) { var f, obj = { correlationId: jspb.Message.getFieldWithDefault(msg, 1, ""), userId: 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.roles_v1.RoleIdRequest} */ proto.roles_v1.RoleIdRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.roles_v1.RoleIdRequest; return proto.roles_v1.RoleIdRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.roles_v1.RoleIdRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.roles_v1.RoleIdRequest} */ proto.roles_v1.RoleIdRequest.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.setCorrelationId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setUserId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.roles_v1.RoleIdRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.roles_v1.RoleIdRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.roles_v1.RoleIdRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.roles_v1.RoleIdRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCorrelationId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getUserId(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional string correlation_id = 1; * @return {string} */ proto.roles_v1.RoleIdRequest.prototype.getCorrelationId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** @param {string} value */ proto.roles_v1.RoleIdRequest.prototype.setCorrelationId = function(value) { jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string user_id = 2; * @return {string} */ proto.roles_v1.RoleIdRequest.prototype.getUserId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** @param {string} value */ proto.roles_v1.RoleIdRequest.prototype.setUserId = function(value) { jspb.Message.setProto3StringField(this, 2, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.roles_v1.RolesRequest.repeatedFields_ = [3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved nam