UNPKG

@adempiere/grpc-web-store-api

Version:

ADempiere Web Store write in Javascript for a node service

1,752 lines (1,543 loc) 127 kB
// source: proto/access.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @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! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); goog.exportSymbol('proto.access.ChangeRoleRequest', null, global); goog.exportSymbol('proto.access.ContextValue', null, global); goog.exportSymbol('proto.access.ContextValue.ValueType', null, global); goog.exportSymbol('proto.access.ListRolesRequest', null, global); goog.exportSymbol('proto.access.ListRolesResponse', null, global); goog.exportSymbol('proto.access.LoginRequest', null, global); goog.exportSymbol('proto.access.LogoutRequest', null, global); goog.exportSymbol('proto.access.Menu', null, global); goog.exportSymbol('proto.access.MenuRequest', null, global); goog.exportSymbol('proto.access.Role', null, global); goog.exportSymbol('proto.access.Session', null, global); goog.exportSymbol('proto.access.SessionRequest', null, global); goog.exportSymbol('proto.access.UserInfo', null, global); goog.exportSymbol('proto.access.UserInfoRequest', 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.access.ListRolesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.ListRolesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.ListRolesRequest.displayName = 'proto.access.ListRolesRequest'; } /** * 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.access.ListRolesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.access.ListRolesResponse.repeatedFields_, null); }; goog.inherits(proto.access.ListRolesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.ListRolesResponse.displayName = 'proto.access.ListRolesResponse'; } /** * 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.access.LoginRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.LoginRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.LoginRequest.displayName = 'proto.access.LoginRequest'; } /** * 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.access.LogoutRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.LogoutRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.LogoutRequest.displayName = 'proto.access.LogoutRequest'; } /** * 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.access.SessionRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.SessionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.SessionRequest.displayName = 'proto.access.SessionRequest'; } /** * 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.access.ChangeRoleRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.ChangeRoleRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.ChangeRoleRequest.displayName = 'proto.access.ChangeRoleRequest'; } /** * 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.access.UserInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.UserInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.UserInfoRequest.displayName = 'proto.access.UserInfoRequest'; } /** * 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.access.MenuRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.MenuRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.MenuRequest.displayName = 'proto.access.MenuRequest'; } /** * 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.access.UserInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.UserInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.UserInfo.displayName = 'proto.access.UserInfo'; } /** * 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.access.Session = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.Session, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.Session.displayName = 'proto.access.Session'; } /** * 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.access.ContextValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.ContextValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.ContextValue.displayName = 'proto.access.ContextValue'; } /** * 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.access.Role = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.access.Role, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.Role.displayName = 'proto.access.Role'; } /** * 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.access.Menu = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.access.Menu.repeatedFields_, null); }; goog.inherits(proto.access.Menu, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.access.Menu.displayName = 'proto.access.Menu'; } 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.access.ListRolesRequest.prototype.toObject = function(opt_includeInstance) { return proto.access.ListRolesRequest.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.access.ListRolesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.ListRolesRequest.toObject = function(includeInstance, msg) { var f, obj = { sessionUuid: jspb.Message.getFieldWithDefault(msg, 1, ""), language: jspb.Message.getFieldWithDefault(msg, 2, ""), clientVersion: jspb.Message.getFieldWithDefault(msg, 3, ""), pageSize: jspb.Message.getFieldWithDefault(msg, 4, 0), pageToken: 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.access.ListRolesRequest} */ proto.access.ListRolesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.access.ListRolesRequest; return proto.access.ListRolesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.access.ListRolesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.access.ListRolesRequest} */ proto.access.ListRolesRequest.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.setSessionUuid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setLanguage(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setClientVersion(value); break; case 4: var value = /** @type {number} */ (reader.readInt32()); msg.setPageSize(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setPageToken(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.access.ListRolesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.access.ListRolesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.access.ListRolesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.ListRolesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSessionUuid(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getLanguage(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getClientVersion(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getPageSize(); if (f !== 0) { writer.writeInt32( 4, f ); } f = message.getPageToken(); if (f.length > 0) { writer.writeString( 5, f ); } }; /** * optional string session_uuid = 1; * @return {string} */ proto.access.ListRolesRequest.prototype.getSessionUuid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.access.ListRolesRequest} returns this */ proto.access.ListRolesRequest.prototype.setSessionUuid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string language = 2; * @return {string} */ proto.access.ListRolesRequest.prototype.getLanguage = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.access.ListRolesRequest} returns this */ proto.access.ListRolesRequest.prototype.setLanguage = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string client_version = 3; * @return {string} */ proto.access.ListRolesRequest.prototype.getClientVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.access.ListRolesRequest} returns this */ proto.access.ListRolesRequest.prototype.setClientVersion = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional int32 page_size = 4; * @return {number} */ proto.access.ListRolesRequest.prototype.getPageSize = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.access.ListRolesRequest} returns this */ proto.access.ListRolesRequest.prototype.setPageSize = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional string page_token = 5; * @return {string} */ proto.access.ListRolesRequest.prototype.getPageToken = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.access.ListRolesRequest} returns this */ proto.access.ListRolesRequest.prototype.setPageToken = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.access.ListRolesResponse.repeatedFields_ = [2]; 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.access.ListRolesResponse.prototype.toObject = function(opt_includeInstance) { return proto.access.ListRolesResponse.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.access.ListRolesResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.ListRolesResponse.toObject = function(includeInstance, msg) { var f, obj = { recordCount: jspb.Message.getFieldWithDefault(msg, 1, 0), rolesList: jspb.Message.toObjectList(msg.getRolesList(), proto.access.Role.toObject, includeInstance), nextPageToken: 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.access.ListRolesResponse} */ proto.access.ListRolesResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.access.ListRolesResponse; return proto.access.ListRolesResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.access.ListRolesResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.access.ListRolesResponse} */ proto.access.ListRolesResponse.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.setRecordCount(value); break; case 2: var value = new proto.access.Role; reader.readMessage(value,proto.access.Role.deserializeBinaryFromReader); msg.addRoles(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setNextPageToken(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.access.ListRolesResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.access.ListRolesResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.access.ListRolesResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.ListRolesResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRecordCount(); if (f !== 0) { writer.writeInt64( 1, f ); } f = message.getRolesList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.access.Role.serializeBinaryToWriter ); } f = message.getNextPageToken(); if (f.length > 0) { writer.writeString( 3, f ); } }; /** * optional int64 record_count = 1; * @return {number} */ proto.access.ListRolesResponse.prototype.getRecordCount = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.access.ListRolesResponse} returns this */ proto.access.ListRolesResponse.prototype.setRecordCount = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * repeated Role roles = 2; * @return {!Array<!proto.access.Role>} */ proto.access.ListRolesResponse.prototype.getRolesList = function() { return /** @type{!Array<!proto.access.Role>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.access.Role, 2)); }; /** * @param {!Array<!proto.access.Role>} value * @return {!proto.access.ListRolesResponse} returns this */ proto.access.ListRolesResponse.prototype.setRolesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.access.Role=} opt_value * @param {number=} opt_index * @return {!proto.access.Role} */ proto.access.ListRolesResponse.prototype.addRoles = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.access.Role, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.access.ListRolesResponse} returns this */ proto.access.ListRolesResponse.prototype.clearRolesList = function() { return this.setRolesList([]); }; /** * optional string next_page_token = 3; * @return {string} */ proto.access.ListRolesResponse.prototype.getNextPageToken = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.access.ListRolesResponse} returns this */ proto.access.ListRolesResponse.prototype.setNextPageToken = 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.access.LoginRequest.prototype.toObject = function(opt_includeInstance) { return proto.access.LoginRequest.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.access.LoginRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.LoginRequest.toObject = function(includeInstance, msg) { var f, obj = { userName: jspb.Message.getFieldWithDefault(msg, 1, ""), userPass: jspb.Message.getFieldWithDefault(msg, 2, ""), roleUuid: jspb.Message.getFieldWithDefault(msg, 3, ""), organizationUuid: jspb.Message.getFieldWithDefault(msg, 4, ""), warehouseUuid: jspb.Message.getFieldWithDefault(msg, 5, ""), clientVersion: jspb.Message.getFieldWithDefault(msg, 6, ""), language: jspb.Message.getFieldWithDefault(msg, 7, ""), token: jspb.Message.getFieldWithDefault(msg, 8, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.access.LoginRequest} */ proto.access.LoginRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.access.LoginRequest; return proto.access.LoginRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.access.LoginRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.access.LoginRequest} */ proto.access.LoginRequest.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.setUserName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setUserPass(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setRoleUuid(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setOrganizationUuid(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setWarehouseUuid(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setClientVersion(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setLanguage(value); break; case 8: var value = /** @type {string} */ (reader.readString()); msg.setToken(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.access.LoginRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.access.LoginRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.access.LoginRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.LoginRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getUserPass(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getRoleUuid(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getOrganizationUuid(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getWarehouseUuid(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getClientVersion(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getLanguage(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getToken(); if (f.length > 0) { writer.writeString( 8, f ); } }; /** * optional string user_name = 1; * @return {string} */ proto.access.LoginRequest.prototype.getUserName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.access.LoginRequest} returns this */ proto.access.LoginRequest.prototype.setUserName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string user_pass = 2; * @return {string} */ proto.access.LoginRequest.prototype.getUserPass = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.access.LoginRequest} returns this */ proto.access.LoginRequest.prototype.setUserPass = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string role_uuid = 3; * @return {string} */ proto.access.LoginRequest.prototype.getRoleUuid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.access.LoginRequest} returns this */ proto.access.LoginRequest.prototype.setRoleUuid = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string organization_uuid = 4; * @return {string} */ proto.access.LoginRequest.prototype.getOrganizationUuid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.access.LoginRequest} returns this */ proto.access.LoginRequest.prototype.setOrganizationUuid = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional string warehouse_uuid = 5; * @return {string} */ proto.access.LoginRequest.prototype.getWarehouseUuid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.access.LoginRequest} returns this */ proto.access.LoginRequest.prototype.setWarehouseUuid = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional string client_version = 6; * @return {string} */ proto.access.LoginRequest.prototype.getClientVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.access.LoginRequest} returns this */ proto.access.LoginRequest.prototype.setClientVersion = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string language = 7; * @return {string} */ proto.access.LoginRequest.prototype.getLanguage = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.access.LoginRequest} returns this */ proto.access.LoginRequest.prototype.setLanguage = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * optional string token = 8; * @return {string} */ proto.access.LoginRequest.prototype.getToken = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value * @return {!proto.access.LoginRequest} returns this */ proto.access.LoginRequest.prototype.setToken = function(value) { return jspb.Message.setProto3StringField(this, 8, 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.access.LogoutRequest.prototype.toObject = function(opt_includeInstance) { return proto.access.LogoutRequest.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.access.LogoutRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.LogoutRequest.toObject = function(includeInstance, msg) { var f, obj = { sessionUuid: jspb.Message.getFieldWithDefault(msg, 1, ""), language: jspb.Message.getFieldWithDefault(msg, 2, ""), clientVersion: 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.access.LogoutRequest} */ proto.access.LogoutRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.access.LogoutRequest; return proto.access.LogoutRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.access.LogoutRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.access.LogoutRequest} */ proto.access.LogoutRequest.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.setSessionUuid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setLanguage(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setClientVersion(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.access.LogoutRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.access.LogoutRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.access.LogoutRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.LogoutRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSessionUuid(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getLanguage(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getClientVersion(); if (f.length > 0) { writer.writeString( 3, f ); } }; /** * optional string session_uuid = 1; * @return {string} */ proto.access.LogoutRequest.prototype.getSessionUuid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.access.LogoutRequest} returns this */ proto.access.LogoutRequest.prototype.setSessionUuid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string language = 2; * @return {string} */ proto.access.LogoutRequest.prototype.getLanguage = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.access.LogoutRequest} returns this */ proto.access.LogoutRequest.prototype.setLanguage = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string client_version = 3; * @return {string} */ proto.access.LogoutRequest.prototype.getClientVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.access.LogoutRequest} returns this */ proto.access.LogoutRequest.prototype.setClientVersion = 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.access.SessionRequest.prototype.toObject = function(opt_includeInstance) { return proto.access.SessionRequest.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.access.SessionRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.SessionRequest.toObject = function(includeInstance, msg) { var f, obj = { sessionUuid: jspb.Message.getFieldWithDefault(msg, 1, ""), language: jspb.Message.getFieldWithDefault(msg, 2, ""), clientVersion: 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.access.SessionRequest} */ proto.access.SessionRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.access.SessionRequest; return proto.access.SessionRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.access.SessionRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.access.SessionRequest} */ proto.access.SessionRequest.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.setSessionUuid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setLanguage(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setClientVersion(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.access.SessionRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.access.SessionRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.access.SessionRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.SessionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSessionUuid(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getLanguage(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getClientVersion(); if (f.length > 0) { writer.writeString( 3, f ); } }; /** * optional string session_uuid = 1; * @return {string} */ proto.access.SessionRequest.prototype.getSessionUuid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.access.SessionRequest} returns this */ proto.access.SessionRequest.prototype.setSessionUuid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string language = 2; * @return {string} */ proto.access.SessionRequest.prototype.getLanguage = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.access.SessionRequest} returns this */ proto.access.SessionRequest.prototype.setLanguage = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string client_version = 3; * @return {string} */ proto.access.SessionRequest.prototype.getClientVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.access.SessionRequest} returns this */ proto.access.SessionRequest.prototype.setClientVersion = 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.access.ChangeRoleRequest.prototype.toObject = function(opt_includeInstance) { return proto.access.ChangeRoleRequest.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.access.ChangeRoleRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.ChangeRoleRequest.toObject = function(includeInstance, msg) { var f, obj = { sessionUuid: jspb.Message.getFieldWithDefault(msg, 1, ""), roleUuid: jspb.Message.getFieldWithDefault(msg, 2, ""), organizationUuid: jspb.Message.getFieldWithDefault(msg, 3, ""), warehouseUuid: jspb.Message.getFieldWithDefault(msg, 4, ""), language: jspb.Message.getFieldWithDefault(msg, 5, ""), clientVersion: jspb.Message.getFieldWithDefault(msg, 6, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.access.ChangeRoleRequest} */ proto.access.ChangeRoleRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.access.ChangeRoleRequest; return proto.access.ChangeRoleRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.access.ChangeRoleRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.access.ChangeRoleRequest} */ proto.access.ChangeRoleRequest.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.setSessionUuid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setRoleUuid(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setOrganizationUuid(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setWarehouseUuid(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setLanguage(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setClientVersion(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.access.ChangeRoleRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.access.ChangeRoleRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.access.ChangeRoleRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.access.ChangeRoleRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSessionUuid(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getRoleUuid(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getOrganizationUuid(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getWarehouseUuid(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getLanguage(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getClientVersion(); if (f.length > 0) { writer.writeString( 6, f ); } }; /** * optional string session_uuid = 1; * @return {string} */ proto.access.ChangeRoleRequest.prototype.getSessionUuid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.access.ChangeRoleRequest} returns this */ proto.access.ChangeRoleRequest.prototype.setSessionUuid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string role_uuid = 2; * @return {string} */ proto.access.ChangeRoleRequest.prototype.getRoleUuid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.access.ChangeRoleRequest} returns this */ proto.access.ChangeRoleRequest.prototype.setRoleUuid = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string organization_uuid = 3; * @return {string} */ proto.access.ChangeRoleRequest.prototype.getOrganizationUuid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.access.ChangeRoleRequest} returns this */ proto.access.ChangeRoleRequest.prototype.setOrganizationUuid = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string warehouse_uuid = 4; * @return {string} */ proto.access.ChangeRoleRequest.prototype.getWarehouseUuid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.access.ChangeRoleRequest} returns this */ proto.access.ChangeRoleRequest.prototype.setWarehouseUuid = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional string language = 5; * @return {string} */ proto.access.ChangeRoleRequest.prototype.getLanguage = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.access.ChangeRoleRequest} returns this */ proto.access.ChangeRoleRe