// source: base.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 || window || global || self || Function('return this')(); }).call(null); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); goog.exportSymbol('proto.base.v1.BaseMapInfo', null, global); goog.exportSymbol('proto.base.v1.CType', null, global); goog.exportSymbol('proto.base.v1.ControlInfoList', null, global); goog.exportSymbol('proto.base.v1.ControlPoint', null, global); goog.exportSymbol('proto.base.v1.ControlPointDisplayInfoSingleChoice', null, global); goog.exportSymbol('proto.base.v1.ControlPointInfo', null, global); goog.exportSymbol('proto.base.v1.ControlPointSimple', null, global); goog.exportSymbol('proto.base.v1.CourseInfo', null, global); goog.exportSymbol('proto.base.v1.CriterionType', null, global); goog.exportSymbol('proto.base.v1.DefaultReply', null, global); goog.exportSymbol('proto.base.v1.DefaultRequest', null, global); goog.exportSymbol('proto.base.v1.ErrorCode', null, global); goog.exportSymbol('proto.base.v1.GameGpsInfo', null, global); goog.exportSymbol('proto.base.v1.GetSmsSendLeftTimeReply', null, global); goog.exportSymbol('proto.base.v1.GetSmsSendLeftTimeRequest', null, global); goog.exportSymbol('proto.base.v1.HeartRate', null, global); goog.exportSymbol('proto.base.v1.HrBandType', null, global); goog.exportSymbol('proto.base.v1.IdArrRequest', null, global); goog.exportSymbol('proto.base.v1.IdRequest', null, global); goog.exportSymbol('proto.base.v1.Image', null, global); goog.exportSymbol('proto.base.v1.LoginSource', null, global); goog.exportSymbol('proto.base.v1.MapRoute', null, global); goog.exportSymbol('proto.base.v1.NetImage', null, global); goog.exportSymbol('proto.base.v1.Position', null, global); goog.exportSymbol('proto.base.v1.ProjectContentType', null, global); goog.exportSymbol('proto.base.v1.Region', null, global); goog.exportSymbol('proto.base.v1.ShopList', null, global); goog.exportSymbol('proto.base.v1.ShopType', null, global); goog.exportSymbol('proto.base.v1.SignInReply', null, global); goog.exportSymbol('proto.base.v1.SmsType', null, global); goog.exportSymbol('proto.base.v1.StatusEditRequest', null, global); goog.exportSymbol('proto.base.v1.StatusType', null, global); goog.exportSymbol('proto.base.v1.User', null, global); goog.exportSymbol('proto.base.v1.User.Sex', null, global); goog.exportSymbol('proto.base.v1.UserType', 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.base.v1.NetImage = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.NetImage, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.NetImage.displayName = 'proto.base.v1.NetImage'; } /** * 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.base.v1.User = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.User, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.User.displayName = 'proto.base.v1.User'; } /** * 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.base.v1.GameGpsInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.GameGpsInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.GameGpsInfo.displayName = 'proto.base.v1.GameGpsInfo'; } /** * 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.base.v1.HeartRate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.HeartRate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.HeartRate.displayName = 'proto.base.v1.HeartRate'; } /** * 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.base.v1.SignInReply = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.SignInReply, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.SignInReply.displayName = 'proto.base.v1.SignInReply'; } /** * 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.base.v1.MapRoute = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.MapRoute, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.MapRoute.displayName = 'proto.base.v1.MapRoute'; } /** * 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.base.v1.IdArrRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.base.v1.IdArrRequest.repeatedFields_, null); }; goog.inherits(proto.base.v1.IdArrRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.IdArrRequest.displayName = 'proto.base.v1.IdArrRequest'; } /** * 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.base.v1.BaseMapInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.BaseMapInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.BaseMapInfo.displayName = 'proto.base.v1.BaseMapInfo'; } /** * 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.base.v1.Region = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.Region, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.Region.displayName = 'proto.base.v1.Region'; } /** * 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.base.v1.ShopList = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.ShopList, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.ShopList.displayName = 'proto.base.v1.ShopList'; } /** * 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.base.v1.GetSmsSendLeftTimeRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.GetSmsSendLeftTimeRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.GetSmsSendLeftTimeRequest.displayName = 'proto.base.v1.GetSmsSendLeftTimeRequest'; } /** * 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.base.v1.GetSmsSendLeftTimeReply = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.GetSmsSendLeftTimeReply, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.GetSmsSendLeftTimeReply.displayName = 'proto.base.v1.GetSmsSendLeftTimeReply'; } /** * 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.base.v1.ControlInfoList = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.ControlInfoList, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.ControlInfoList.displayName = 'proto.base.v1.ControlInfoList'; } /** * 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.base.v1.DefaultReply = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.DefaultReply, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.DefaultReply.displayName = 'proto.base.v1.DefaultReply'; } /** * 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.base.v1.IdRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.IdRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.IdRequest.displayName = 'proto.base.v1.IdRequest'; } /** * 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.base.v1.DefaultRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.DefaultRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.DefaultRequest.displayName = 'proto.base.v1.DefaultRequest'; } /** * 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.base.v1.Position = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.Position, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.Position.displayName = 'proto.base.v1.Position'; } /** * 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.base.v1.ControlPointInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.ControlPointInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.ControlPointInfo.displayName = 'proto.base.v1.ControlPointInfo'; } /** * 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.base.v1.ControlPointDisplayInfoSingleChoice = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.base.v1.ControlPointDisplayInfoSingleChoice.repeatedFields_, null); }; goog.inherits(proto.base.v1.ControlPointDisplayInfoSingleChoice, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.ControlPointDisplayInfoSingleChoice.displayName = 'proto.base.v1.ControlPointDisplayInfoSingleChoice'; } /** * 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.base.v1.Image = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.Image, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.Image.displayName = 'proto.base.v1.Image'; } /** * 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.base.v1.StatusEditRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.base.v1.StatusEditRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.StatusEditRequest.displayName = 'proto.base.v1.StatusEditRequest'; } /** * 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.base.v1.CourseInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.base.v1.CourseInfo.repeatedFields_, null); }; goog.inherits(proto.base.v1.CourseInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.CourseInfo.displayName = 'proto.base.v1.CourseInfo'; } /** * 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.base.v1.ControlPoint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.base.v1.ControlPoint.repeatedFields_, null); }; goog.inherits(proto.base.v1.ControlPoint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.ControlPoint.displayName = 'proto.base.v1.ControlPoint'; } /** * 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.base.v1.ControlPointSimple = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.base.v1.ControlPointSimple.repeatedFields_, null); }; goog.inherits(proto.base.v1.ControlPointSimple, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.base.v1.ControlPointSimple.displayName = 'proto.base.v1.ControlPointSimple'; } 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_, 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.base.v1.NetImage.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.NetImage.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.base.v1.NetImage} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.NetImage.toObject = function(includeInstance, msg) { var f, obj = { url: jspb.Message.getFieldWithDefault(msg, 1, ""), md5: msg.getMd5_asB64() }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.NetImage} */ proto.base.v1.NetImage.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.NetImage; return proto.base.v1.NetImage.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.NetImage} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.NetImage} */ proto.base.v1.NetImage.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.setUrl(value); break; case 2: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setMd5(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.NetImage.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.NetImage.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.NetImage} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.NetImage.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUrl(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getMd5_asU8(); if (f.length > 0) { writer.writeBytes( 2, f ); } }; /** * optional string url = 1; * @return {string} */ proto.base.v1.NetImage.prototype.getUrl = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.base.v1.NetImage} returns this */ proto.base.v1.NetImage.prototype.setUrl = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bytes md5 = 2; * @return {string} */ proto.base.v1.NetImage.prototype.getMd5 = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * optional bytes md5 = 2; * This is a type-conversion wrapper around `getMd5()` * @return {string} */ proto.base.v1.NetImage.prototype.getMd5_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getMd5())); }; /** * optional bytes md5 = 2; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getMd5()` * @return {!Uint8Array} */ proto.base.v1.NetImage.prototype.getMd5_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getMd5())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.base.v1.NetImage} returns this */ proto.base.v1.NetImage.prototype.setMd5 = function(value) { return jspb.Message.setProto3BytesField(this, 2, 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_, 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.base.v1.User.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.User.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.base.v1.User} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.User.toObject = function(includeInstance, msg) { var f, obj = { }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.User} */ proto.base.v1.User.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.User; return proto.base.v1.User.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.User} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.User} */ proto.base.v1.User.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.User.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.User.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.User} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.User.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; /** * @enum {number} */ proto.base.v1.User.Sex = { UNDEFINE: 0, MALE: 1, FEMALE: 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_, 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.base.v1.GameGpsInfo.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.GameGpsInfo.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.base.v1.GameGpsInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.GameGpsInfo.toObject = function(includeInstance, msg) { var f, obj = { gpstime: (f = msg.getGpstime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), directionradian: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.GameGpsInfo} */ proto.base.v1.GameGpsInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.GameGpsInfo; return proto.base.v1.GameGpsInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.GameGpsInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.GameGpsInfo} */ proto.base.v1.GameGpsInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setGpstime(value); break; case 2: var value = /** @type {number} */ (reader.readDouble()); msg.setLongitude(value); break; case 3: var value = /** @type {number} */ (reader.readDouble()); msg.setLatitude(value); break; case 4: var value = /** @type {number} */ (reader.readDouble()); msg.setDirectionradian(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.GameGpsInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.GameGpsInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.GameGpsInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.GameGpsInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGpstime(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getLongitude(); if (f !== 0.0) { writer.writeDouble( 2, f ); } f = message.getLatitude(); if (f !== 0.0) { writer.writeDouble( 3, f ); } f = message.getDirectionradian(); if (f !== 0.0) { writer.writeDouble( 4, f ); } }; /** * optional google.protobuf.Timestamp gpsTime = 1; * @return {?proto.google.protobuf.Timestamp} */ proto.base.v1.GameGpsInfo.prototype.getGpstime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.base.v1.GameGpsInfo} returns this */ proto.base.v1.GameGpsInfo.prototype.setGpstime = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.base.v1.GameGpsInfo} returns this */ proto.base.v1.GameGpsInfo.prototype.clearGpstime = function() { return this.setGpstime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.base.v1.GameGpsInfo.prototype.hasGpstime = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional double longitude = 2; * @return {number} */ proto.base.v1.GameGpsInfo.prototype.getLongitude = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** * @param {number} value * @return {!proto.base.v1.GameGpsInfo} returns this */ proto.base.v1.GameGpsInfo.prototype.setLongitude = function(value) { return jspb.Message.setProto3FloatField(this, 2, value); }; /** * optional double latitude = 3; * @return {number} */ proto.base.v1.GameGpsInfo.prototype.getLatitude = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** * @param {number} value * @return {!proto.base.v1.GameGpsInfo} returns this */ proto.base.v1.GameGpsInfo.prototype.setLatitude = function(value) { return jspb.Message.setProto3FloatField(this, 3, value); }; /** * optional double directionRadian = 4; * @return {number} */ proto.base.v1.GameGpsInfo.prototype.getDirectionradian = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; /** * @param {number} value * @return {!proto.base.v1.GameGpsInfo} returns this */ proto.base.v1.GameGpsInfo.prototype.setDirectionradian = function(value) { return jspb.Message.setProto3FloatField(this, 4, 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_, 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.base.v1.HeartRate.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.HeartRate.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.base.v1.HeartRate} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.HeartRate.toObject = function(includeInstance, msg) { var f, obj = { timestampms: jspb.Message.getFieldWithDefault(msg, 1, 0), hr: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.HeartRate} */ proto.base.v1.HeartRate.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.HeartRate; return proto.base.v1.HeartRate.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.HeartRate} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.HeartRate} */ proto.base.v1.HeartRate.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.setTimestampms(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setHr(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.HeartRate.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.HeartRate.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.HeartRate} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.HeartRate.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getTimestampms(); if (f !== 0) { writer.writeInt64( 1, f ); } f = message.getHr(); if (f !== 0) { writer.writeInt32( 2, f ); } }; /** * optional int64 timeStampMs = 1; * @return {number} */ proto.base.v1.HeartRate.prototype.getTimestampms = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.HeartRate} returns this */ proto.base.v1.HeartRate.prototype.setTimestampms = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional int32 hr = 2; * @return {number} */ proto.base.v1.HeartRate.prototype.getHr = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.base.v1.HeartRate} returns this */ proto.base.v1.HeartRate.prototype.setHr = function(value) { return jspb.Message.setProto3IntField(this, 2, 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_, 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.base.v1.SignInReply.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.SignInReply.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.base.v1.SignInReply} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.SignInReply.toObject = function(includeInstance, msg) { var f, obj = { token: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.SignInReply} */ proto.base.v1.SignInReply.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.SignInReply; return proto.base.v1.SignInReply.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.SignInReply} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.SignInReply} */ proto.base.v1.SignInReply.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.setToken(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.SignInReply.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.SignInReply.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.SignInReply} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.SignInReply.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getToken(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string token = 1; * @return {string} */ proto.base.v1.SignInReply.prototype.getToken = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.base.v1.SignInReply} returns this */ proto.base.v1.SignInReply.prototype.setToken = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, 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.base.v1.MapRoute.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.MapRoute.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.base.v1.MapRoute} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.MapRoute.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, 0), name: jspb.Message.getFieldWithDefault(msg, 2, ""), image: (f = msg.getImage()) && proto.base.v1.NetImage.toObject(includeInstance, f), isnfc: jspb.Message.getBooleanFieldWithDefault(msg, 4, 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.base.v1.MapRoute} */ proto.base.v1.MapRoute.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.MapRoute; return proto.base.v1.MapRoute.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.MapRoute} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.MapRoute} */ proto.base.v1.MapRoute.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.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 3: var value = new proto.base.v1.NetImage; reader.readMessage(value,proto.base.v1.NetImage.deserializeBinaryFromReader); msg.setImage(value); break; case 4: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsnfc(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.MapRoute.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.MapRoute.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.MapRoute} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.MapRoute.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f !== 0) { writer.writeInt64( 1, f ); } f = message.getName(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getImage(); if (f != null) { writer.writeMessage( 3, f, proto.base.v1.NetImage.serializeBinaryToWriter ); } f = message.getIsnfc(); if (f) { writer.writeBool( 4, f ); } }; /** * optional int64 id = 1; * @return {number} */ proto.base.v1.MapRoute.prototype.getId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.MapRoute} returns this */ proto.base.v1.MapRoute.prototype.setId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string name = 2; * @return {string} */ proto.base.v1.MapRoute.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.base.v1.MapRoute} returns this */ proto.base.v1.MapRoute.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional NetImage image = 3; * @return {?proto.base.v1.NetImage} */ proto.base.v1.MapRoute.prototype.getImage = function() { return /** @type{?proto.base.v1.NetImage} */ ( jspb.Message.getWrapperField(this, proto.base.v1.NetImage, 3)); }; /** * @param {?proto.base.v1.NetImage|undefined} value * @return {!proto.base.v1.MapRoute} returns this */ proto.base.v1.MapRoute.prototype.setImage = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.base.v1.MapRoute} returns this */ proto.base.v1.MapRoute.prototype.clearImage = function() { return this.setImage(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.base.v1.MapRoute.prototype.hasImage = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional bool isNfc = 4; * @return {boolean} */ proto.base.v1.MapRoute.prototype.getIsnfc = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** * @param {boolean} value * @return {!proto.base.v1.MapRoute} returns this */ proto.base.v1.MapRoute.prototype.setIsnfc = function(value) { return jspb.Message.setProto3BooleanField(this, 4, value); }; /** * List of repeated fields within this message type. * @private {!Array} * @const */ proto.base.v1.IdArrRequest.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_, 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.base.v1.IdArrRequest.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.IdArrRequest.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.base.v1.IdArrRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.IdArrRequest.toObject = function(includeInstance, msg) { var f, obj = { idarrList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : 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.base.v1.IdArrRequest} */ proto.base.v1.IdArrRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.IdArrRequest; return proto.base.v1.IdArrRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.IdArrRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.IdArrRequest} */ proto.base.v1.IdArrRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 2: var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); for (var i = 0; i < values.length; i++) { msg.addIdarr(values[i]); } break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.IdArrRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.IdArrRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.IdArrRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.IdArrRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getIdarrList(); if (f.length > 0) { writer.writePackedInt32( 2, f ); } }; /** * repeated int32 IdArr = 2; * @return {!Array} */ proto.base.v1.IdArrRequest.prototype.getIdarrList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array} value * @return {!proto.base.v1.IdArrRequest} returns this */ proto.base.v1.IdArrRequest.prototype.setIdarrList = function(value) { return jspb.Message.setField(this, 2, value || []); }; /** * @param {number} value * @param {number=} opt_index * @return {!proto.base.v1.IdArrRequest} returns this */ proto.base.v1.IdArrRequest.prototype.addIdarr = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.base.v1.IdArrRequest} returns this */ proto.base.v1.IdArrRequest.prototype.clearIdarrList = function() { return this.setIdarrList([]); }; 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_, 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.base.v1.BaseMapInfo.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.BaseMapInfo.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.base.v1.BaseMapInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.BaseMapInfo.toObject = function(includeInstance, msg) { var f, obj = { shopid: jspb.Message.getFieldWithDefault(msg, 1, 0), mapname: jspb.Message.getFieldWithDefault(msg, 2, ""), zipimage: (f = msg.getZipimage()) && proto.base.v1.NetImage.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.base.v1.BaseMapInfo} */ proto.base.v1.BaseMapInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.BaseMapInfo; return proto.base.v1.BaseMapInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.BaseMapInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.BaseMapInfo} */ proto.base.v1.BaseMapInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readInt32()); msg.setShopid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setMapname(value); break; case 3: var value = new proto.base.v1.NetImage; reader.readMessage(value,proto.base.v1.NetImage.deserializeBinaryFromReader); msg.setZipimage(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.BaseMapInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.BaseMapInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.BaseMapInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.BaseMapInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getShopid(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getMapname(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getZipimage(); if (f != null) { writer.writeMessage( 3, f, proto.base.v1.NetImage.serializeBinaryToWriter ); } }; /** * optional int32 shopId = 1; * @return {number} */ proto.base.v1.BaseMapInfo.prototype.getShopid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.BaseMapInfo} returns this */ proto.base.v1.BaseMapInfo.prototype.setShopid = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string mapName = 2; * @return {string} */ proto.base.v1.BaseMapInfo.prototype.getMapname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.base.v1.BaseMapInfo} returns this */ proto.base.v1.BaseMapInfo.prototype.setMapname = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional NetImage zipImage = 3; * @return {?proto.base.v1.NetImage} */ proto.base.v1.BaseMapInfo.prototype.getZipimage = function() { return /** @type{?proto.base.v1.NetImage} */ ( jspb.Message.getWrapperField(this, proto.base.v1.NetImage, 3)); }; /** * @param {?proto.base.v1.NetImage|undefined} value * @return {!proto.base.v1.BaseMapInfo} returns this */ proto.base.v1.BaseMapInfo.prototype.setZipimage = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.base.v1.BaseMapInfo} returns this */ proto.base.v1.BaseMapInfo.prototype.clearZipimage = function() { return this.setZipimage(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.base.v1.BaseMapInfo.prototype.hasZipimage = function() { return jspb.Message.getField(this, 3) != null; }; 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_, 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.base.v1.Region.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.Region.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.base.v1.Region} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.Region.toObject = function(includeInstance, msg) { var f, obj = { code: jspb.Message.getFieldWithDefault(msg, 1, ""), name: 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.base.v1.Region} */ proto.base.v1.Region.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.Region; return proto.base.v1.Region.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.Region} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.Region} */ proto.base.v1.Region.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.setCode(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.Region.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.Region.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.Region} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.Region.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCode(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getName(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional string code = 1; * @return {string} */ proto.base.v1.Region.prototype.getCode = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.base.v1.Region} returns this */ proto.base.v1.Region.prototype.setCode = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string name = 2; * @return {string} */ proto.base.v1.Region.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.base.v1.Region} returns this */ proto.base.v1.Region.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, 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_, 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.base.v1.ShopList.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.ShopList.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.base.v1.ShopList} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ShopList.toObject = function(includeInstance, msg) { var f, obj = { shopid: jspb.Message.getFieldWithDefault(msg, 1, 0), name: 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.base.v1.ShopList} */ proto.base.v1.ShopList.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.ShopList; return proto.base.v1.ShopList.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.ShopList} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.ShopList} */ proto.base.v1.ShopList.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readInt32()); msg.setShopid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.ShopList.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.ShopList.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.ShopList} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ShopList.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getShopid(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getName(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional int32 shopId = 1; * @return {number} */ proto.base.v1.ShopList.prototype.getShopid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.ShopList} returns this */ proto.base.v1.ShopList.prototype.setShopid = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string name = 2; * @return {string} */ proto.base.v1.ShopList.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.base.v1.ShopList} returns this */ proto.base.v1.ShopList.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, 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_, 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.base.v1.GetSmsSendLeftTimeRequest.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.GetSmsSendLeftTimeRequest.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.base.v1.GetSmsSendLeftTimeRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.GetSmsSendLeftTimeRequest.toObject = function(includeInstance, msg) { var f, obj = { phone: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.GetSmsSendLeftTimeRequest} */ proto.base.v1.GetSmsSendLeftTimeRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.GetSmsSendLeftTimeRequest; return proto.base.v1.GetSmsSendLeftTimeRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.GetSmsSendLeftTimeRequest} */ proto.base.v1.GetSmsSendLeftTimeRequest.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.setPhone(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.GetSmsSendLeftTimeRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.GetSmsSendLeftTimeRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.GetSmsSendLeftTimeRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPhone(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string phone = 1; * @return {string} */ proto.base.v1.GetSmsSendLeftTimeRequest.prototype.getPhone = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.base.v1.GetSmsSendLeftTimeRequest} returns this */ proto.base.v1.GetSmsSendLeftTimeRequest.prototype.setPhone = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, 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.base.v1.GetSmsSendLeftTimeReply.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.GetSmsSendLeftTimeReply.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.base.v1.GetSmsSendLeftTimeReply} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.GetSmsSendLeftTimeReply.toObject = function(includeInstance, msg) { var f, obj = { second: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.GetSmsSendLeftTimeReply} */ proto.base.v1.GetSmsSendLeftTimeReply.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.GetSmsSendLeftTimeReply; return proto.base.v1.GetSmsSendLeftTimeReply.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.GetSmsSendLeftTimeReply} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.GetSmsSendLeftTimeReply} */ proto.base.v1.GetSmsSendLeftTimeReply.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readInt32()); msg.setSecond(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.GetSmsSendLeftTimeReply.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.GetSmsSendLeftTimeReply.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.GetSmsSendLeftTimeReply} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.GetSmsSendLeftTimeReply.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSecond(); if (f !== 0) { writer.writeInt32( 1, f ); } }; /** * optional int32 second = 1; * @return {number} */ proto.base.v1.GetSmsSendLeftTimeReply.prototype.getSecond = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.GetSmsSendLeftTimeReply} returns this */ proto.base.v1.GetSmsSendLeftTimeReply.prototype.setSecond = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, 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.base.v1.ControlInfoList.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.ControlInfoList.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.base.v1.ControlInfoList} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ControlInfoList.toObject = function(includeInstance, msg) { var f, obj = { ciid: jspb.Message.getFieldWithDefault(msg, 1, 0), cicode: 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.base.v1.ControlInfoList} */ proto.base.v1.ControlInfoList.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.ControlInfoList; return proto.base.v1.ControlInfoList.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.ControlInfoList} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.ControlInfoList} */ proto.base.v1.ControlInfoList.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readInt32()); msg.setCiid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setCicode(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.ControlInfoList.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.ControlInfoList.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.ControlInfoList} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ControlInfoList.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCiid(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getCicode(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional int32 ciId = 1; * @return {number} */ proto.base.v1.ControlInfoList.prototype.getCiid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.ControlInfoList} returns this */ proto.base.v1.ControlInfoList.prototype.setCiid = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string ciCode = 2; * @return {string} */ proto.base.v1.ControlInfoList.prototype.getCicode = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.base.v1.ControlInfoList} returns this */ proto.base.v1.ControlInfoList.prototype.setCicode = function(value) { return jspb.Message.setProto3StringField(this, 2, 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_, 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.base.v1.DefaultReply.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.DefaultReply.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.base.v1.DefaultReply} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.DefaultReply.toObject = function(includeInstance, msg) { var f, obj = { }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.DefaultReply} */ proto.base.v1.DefaultReply.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.DefaultReply; return proto.base.v1.DefaultReply.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.DefaultReply} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.DefaultReply} */ proto.base.v1.DefaultReply.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.DefaultReply.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.DefaultReply.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.DefaultReply} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.DefaultReply.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, 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.base.v1.IdRequest.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.IdRequest.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.base.v1.IdRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.IdRequest.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.IdRequest} */ proto.base.v1.IdRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.IdRequest; return proto.base.v1.IdRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.IdRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.IdRequest} */ proto.base.v1.IdRequest.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.setId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.IdRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.IdRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.IdRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.IdRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f !== 0) { writer.writeInt64( 1, f ); } }; /** * optional int64 id = 1; * @return {number} */ proto.base.v1.IdRequest.prototype.getId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.IdRequest} returns this */ proto.base.v1.IdRequest.prototype.setId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, 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.base.v1.DefaultRequest.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.DefaultRequest.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.base.v1.DefaultRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.DefaultRequest.toObject = function(includeInstance, msg) { var f, obj = { }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.DefaultRequest} */ proto.base.v1.DefaultRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.DefaultRequest; return proto.base.v1.DefaultRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.DefaultRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.DefaultRequest} */ proto.base.v1.DefaultRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.DefaultRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.DefaultRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.DefaultRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.DefaultRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, 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.base.v1.Position.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.Position.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.base.v1.Position} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.Position.toObject = function(includeInstance, msg) { var f, obj = { longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.Position} */ proto.base.v1.Position.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.Position; return proto.base.v1.Position.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.Position} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.Position} */ proto.base.v1.Position.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readDouble()); msg.setLongitude(value); break; case 2: var value = /** @type {number} */ (reader.readDouble()); msg.setLatitude(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.Position.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.Position.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.Position} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.Position.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getLongitude(); if (f !== 0.0) { writer.writeDouble( 1, f ); } f = message.getLatitude(); if (f !== 0.0) { writer.writeDouble( 2, f ); } }; /** * optional double longitude = 1; * @return {number} */ proto.base.v1.Position.prototype.getLongitude = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); }; /** * @param {number} value * @return {!proto.base.v1.Position} returns this */ proto.base.v1.Position.prototype.setLongitude = function(value) { return jspb.Message.setProto3FloatField(this, 1, value); }; /** * optional double latitude = 2; * @return {number} */ proto.base.v1.Position.prototype.getLatitude = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** * @param {number} value * @return {!proto.base.v1.Position} returns this */ proto.base.v1.Position.prototype.setLatitude = function(value) { return jspb.Message.setProto3FloatField(this, 2, 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_, 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.base.v1.ControlPointInfo.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.ControlPointInfo.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.base.v1.ControlPointInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ControlPointInfo.toObject = function(includeInstance, msg) { var f, obj = { displayinfo: (f = msg.getDisplayinfo()) && google_protobuf_any_pb.Any.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.base.v1.ControlPointInfo} */ proto.base.v1.ControlPointInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.ControlPointInfo; return proto.base.v1.ControlPointInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.ControlPointInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.ControlPointInfo} */ proto.base.v1.ControlPointInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_any_pb.Any; reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.setDisplayinfo(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.ControlPointInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.ControlPointInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.ControlPointInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ControlPointInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDisplayinfo(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_any_pb.Any.serializeBinaryToWriter ); } }; /** * optional google.protobuf.Any displayInfo = 1; * @return {?proto.google.protobuf.Any} */ proto.base.v1.ControlPointInfo.prototype.getDisplayinfo = function() { return /** @type{?proto.google.protobuf.Any} */ ( jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)); }; /** * @param {?proto.google.protobuf.Any|undefined} value * @return {!proto.base.v1.ControlPointInfo} returns this */ proto.base.v1.ControlPointInfo.prototype.setDisplayinfo = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.base.v1.ControlPointInfo} returns this */ proto.base.v1.ControlPointInfo.prototype.clearDisplayinfo = function() { return this.setDisplayinfo(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.base.v1.ControlPointInfo.prototype.hasDisplayinfo = function() { return jspb.Message.getField(this, 1) != null; }; /** * List of repeated fields within this message type. * @private {!Array} * @const */ proto.base.v1.ControlPointDisplayInfoSingleChoice.repeatedFields_ = [3]; 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_, 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.base.v1.ControlPointDisplayInfoSingleChoice.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.ControlPointDisplayInfoSingleChoice.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.base.v1.ControlPointDisplayInfoSingleChoice} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ControlPointDisplayInfoSingleChoice.toObject = function(includeInstance, msg) { var f, obj = { question: jspb.Message.getFieldWithDefault(msg, 1, ""), image: (f = msg.getImage()) && proto.base.v1.NetImage.toObject(includeInstance, f), answerList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, rightanswerindex: jspb.Message.getFieldWithDefault(msg, 4, 0), qbid: jspb.Message.getFieldWithDefault(msg, 5, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.ControlPointDisplayInfoSingleChoice} */ proto.base.v1.ControlPointDisplayInfoSingleChoice.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.ControlPointDisplayInfoSingleChoice; return proto.base.v1.ControlPointDisplayInfoSingleChoice.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.ControlPointDisplayInfoSingleChoice} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.ControlPointDisplayInfoSingleChoice} */ proto.base.v1.ControlPointDisplayInfoSingleChoice.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.setQuestion(value); break; case 2: var value = new proto.base.v1.NetImage; reader.readMessage(value,proto.base.v1.NetImage.deserializeBinaryFromReader); msg.setImage(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.addAnswer(value); break; case 4: var value = /** @type {number} */ (reader.readInt32()); msg.setRightanswerindex(value); break; case 5: var value = /** @type {number} */ (reader.readInt32()); msg.setQbid(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.ControlPointDisplayInfoSingleChoice.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.ControlPointDisplayInfoSingleChoice} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ControlPointDisplayInfoSingleChoice.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getQuestion(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getImage(); if (f != null) { writer.writeMessage( 2, f, proto.base.v1.NetImage.serializeBinaryToWriter ); } f = message.getAnswerList(); if (f.length > 0) { writer.writeRepeatedString( 3, f ); } f = message.getRightanswerindex(); if (f !== 0) { writer.writeInt32( 4, f ); } f = message.getQbid(); if (f !== 0) { writer.writeInt32( 5, f ); } }; /** * optional string question = 1; * @return {string} */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.getQuestion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.base.v1.ControlPointDisplayInfoSingleChoice} returns this */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.setQuestion = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional NetImage image = 2; * @return {?proto.base.v1.NetImage} */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.getImage = function() { return /** @type{?proto.base.v1.NetImage} */ ( jspb.Message.getWrapperField(this, proto.base.v1.NetImage, 2)); }; /** * @param {?proto.base.v1.NetImage|undefined} value * @return {!proto.base.v1.ControlPointDisplayInfoSingleChoice} returns this */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.setImage = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.base.v1.ControlPointDisplayInfoSingleChoice} returns this */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.clearImage = function() { return this.setImage(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.hasImage = function() { return jspb.Message.getField(this, 2) != null; }; /** * repeated string answer = 3; * @return {!Array} */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.getAnswerList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** * @param {!Array} value * @return {!proto.base.v1.ControlPointDisplayInfoSingleChoice} returns this */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.setAnswerList = function(value) { return jspb.Message.setField(this, 3, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.base.v1.ControlPointDisplayInfoSingleChoice} returns this */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.addAnswer = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.base.v1.ControlPointDisplayInfoSingleChoice} returns this */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.clearAnswerList = function() { return this.setAnswerList([]); }; /** * optional int32 rightAnswerIndex = 4; * @return {number} */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.getRightanswerindex = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.base.v1.ControlPointDisplayInfoSingleChoice} returns this */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.setRightanswerindex = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional int32 qbId = 5; * @return {number} */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.getQbid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.base.v1.ControlPointDisplayInfoSingleChoice} returns this */ proto.base.v1.ControlPointDisplayInfoSingleChoice.prototype.setQbid = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, 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.base.v1.Image.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.Image.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.base.v1.Image} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.Image.toObject = function(includeInstance, msg) { var f, obj = { ext: jspb.Message.getFieldWithDefault(msg, 1, ""), data: msg.getData_asB64() }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.Image} */ proto.base.v1.Image.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.Image; return proto.base.v1.Image.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.Image} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.Image} */ proto.base.v1.Image.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.setExt(value); break; case 2: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setData(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.Image.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.Image.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.Image} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.Image.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getExt(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getData_asU8(); if (f.length > 0) { writer.writeBytes( 2, f ); } }; /** * optional string ext = 1; * @return {string} */ proto.base.v1.Image.prototype.getExt = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.base.v1.Image} returns this */ proto.base.v1.Image.prototype.setExt = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bytes data = 2; * @return {string} */ proto.base.v1.Image.prototype.getData = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * optional bytes data = 2; * This is a type-conversion wrapper around `getData()` * @return {string} */ proto.base.v1.Image.prototype.getData_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getData())); }; /** * optional bytes data = 2; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getData()` * @return {!Uint8Array} */ proto.base.v1.Image.prototype.getData_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getData())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.base.v1.Image} returns this */ proto.base.v1.Image.prototype.setData = function(value) { return jspb.Message.setProto3BytesField(this, 2, 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_, 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.base.v1.StatusEditRequest.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.StatusEditRequest.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.base.v1.StatusEditRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.StatusEditRequest.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, 0), status: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.StatusEditRequest} */ proto.base.v1.StatusEditRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.StatusEditRequest; return proto.base.v1.StatusEditRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.StatusEditRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.StatusEditRequest} */ proto.base.v1.StatusEditRequest.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.setId(value); break; case 2: var value = /** @type {!proto.base.v1.StatusType} */ (reader.readEnum()); msg.setStatus(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.StatusEditRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.StatusEditRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.StatusEditRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.StatusEditRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f !== 0) { writer.writeInt64( 1, f ); } f = message.getStatus(); if (f !== 0.0) { writer.writeEnum( 2, f ); } }; /** * optional int64 id = 1; * @return {number} */ proto.base.v1.StatusEditRequest.prototype.getId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.StatusEditRequest} returns this */ proto.base.v1.StatusEditRequest.prototype.setId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional StatusType status = 2; * @return {!proto.base.v1.StatusType} */ proto.base.v1.StatusEditRequest.prototype.getStatus = function() { return /** @type {!proto.base.v1.StatusType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {!proto.base.v1.StatusType} value * @return {!proto.base.v1.StatusEditRequest} returns this */ proto.base.v1.StatusEditRequest.prototype.setStatus = function(value) { return jspb.Message.setProto3EnumField(this, 2, value); }; /** * List of repeated fields within this message type. * @private {!Array} * @const */ proto.base.v1.CourseInfo.repeatedFields_ = [5]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, 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.base.v1.CourseInfo.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.CourseInfo.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.base.v1.CourseInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.CourseInfo.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, 0), name: jspb.Message.getFieldWithDefault(msg, 2, ""), totalcontrolnum: jspb.Message.getFieldWithDefault(msg, 3, 0), maxrange: jspb.Message.getFieldWithDefault(msg, 4, 0), controlPointSortedListList: jspb.Message.toObjectList(msg.getControlPointSortedListList(), proto.base.v1.ControlPoint.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.base.v1.CourseInfo} */ proto.base.v1.CourseInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.CourseInfo; return proto.base.v1.CourseInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.CourseInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.CourseInfo} */ proto.base.v1.CourseInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readInt32()); msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 3: var value = /** @type {number} */ (reader.readInt32()); msg.setTotalcontrolnum(value); break; case 4: var value = /** @type {number} */ (reader.readInt32()); msg.setMaxrange(value); break; case 5: var value = new proto.base.v1.ControlPoint; reader.readMessage(value,proto.base.v1.ControlPoint.deserializeBinaryFromReader); msg.addControlPointSortedList(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.CourseInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.CourseInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.CourseInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.CourseInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getName(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getTotalcontrolnum(); if (f !== 0) { writer.writeInt32( 3, f ); } f = message.getMaxrange(); if (f !== 0) { writer.writeInt32( 4, f ); } f = message.getControlPointSortedListList(); if (f.length > 0) { writer.writeRepeatedMessage( 5, f, proto.base.v1.ControlPoint.serializeBinaryToWriter ); } }; /** * optional int32 id = 1; * @return {number} */ proto.base.v1.CourseInfo.prototype.getId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.CourseInfo} returns this */ proto.base.v1.CourseInfo.prototype.setId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string name = 2; * @return {string} */ proto.base.v1.CourseInfo.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.base.v1.CourseInfo} returns this */ proto.base.v1.CourseInfo.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional int32 totalControlNum = 3; * @return {number} */ proto.base.v1.CourseInfo.prototype.getTotalcontrolnum = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.base.v1.CourseInfo} returns this */ proto.base.v1.CourseInfo.prototype.setTotalcontrolnum = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional int32 maxRange = 4; * @return {number} */ proto.base.v1.CourseInfo.prototype.getMaxrange = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.base.v1.CourseInfo} returns this */ proto.base.v1.CourseInfo.prototype.setMaxrange = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * repeated ControlPoint control_point_sorted_list = 5; * @return {!Array} */ proto.base.v1.CourseInfo.prototype.getControlPointSortedListList = function() { return /** @type{!Array} */ ( jspb.Message.getRepeatedWrapperField(this, proto.base.v1.ControlPoint, 5)); }; /** * @param {!Array} value * @return {!proto.base.v1.CourseInfo} returns this */ proto.base.v1.CourseInfo.prototype.setControlPointSortedListList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 5, value); }; /** * @param {!proto.base.v1.ControlPoint=} opt_value * @param {number=} opt_index * @return {!proto.base.v1.ControlPoint} */ proto.base.v1.CourseInfo.prototype.addControlPointSortedList = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.base.v1.ControlPoint, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.base.v1.CourseInfo} returns this */ proto.base.v1.CourseInfo.prototype.clearControlPointSortedListList = function() { return this.setControlPointSortedListList([]); }; /** * List of repeated fields within this message type. * @private {!Array} * @const */ proto.base.v1.ControlPoint.repeatedFields_ = [3]; 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_, 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.base.v1.ControlPoint.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.ControlPoint.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.base.v1.ControlPoint} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ControlPoint.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, 0), info: (f = msg.getInfo()) && proto.base.v1.ControlPointInfo.toObject(includeInstance, f), nfcIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, onMapX: jspb.Message.getFieldWithDefault(msg, 4, 0), onMapY: jspb.Message.getFieldWithDefault(msg, 5, 0), sn: jspb.Message.getFieldWithDefault(msg, 6, ""), ciposition: (f = msg.getCiposition()) && proto.base.v1.Position.toObject(includeInstance, f), mapposition: (f = msg.getMapposition()) && proto.base.v1.Position.toObject(includeInstance, f), category: jspb.Message.getFieldWithDefault(msg, 9, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.base.v1.ControlPoint} */ proto.base.v1.ControlPoint.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.ControlPoint; return proto.base.v1.ControlPoint.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.ControlPoint} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.ControlPoint} */ proto.base.v1.ControlPoint.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.setId(value); break; case 2: var value = new proto.base.v1.ControlPointInfo; reader.readMessage(value,proto.base.v1.ControlPointInfo.deserializeBinaryFromReader); msg.setInfo(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.addNfcIdList(value); break; case 4: var value = /** @type {number} */ (reader.readInt64()); msg.setOnMapX(value); break; case 5: var value = /** @type {number} */ (reader.readInt64()); msg.setOnMapY(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setSn(value); break; case 7: var value = new proto.base.v1.Position; reader.readMessage(value,proto.base.v1.Position.deserializeBinaryFromReader); msg.setCiposition(value); break; case 8: var value = new proto.base.v1.Position; reader.readMessage(value,proto.base.v1.Position.deserializeBinaryFromReader); msg.setMapposition(value); break; case 9: var value = /** @type {number} */ (reader.readInt32()); msg.setCategory(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.ControlPoint.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.ControlPoint.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.ControlPoint} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ControlPoint.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f !== 0) { writer.writeInt64( 1, f ); } f = message.getInfo(); if (f != null) { writer.writeMessage( 2, f, proto.base.v1.ControlPointInfo.serializeBinaryToWriter ); } f = message.getNfcIdListList(); if (f.length > 0) { writer.writeRepeatedString( 3, f ); } f = message.getOnMapX(); if (f !== 0) { writer.writeInt64( 4, f ); } f = message.getOnMapY(); if (f !== 0) { writer.writeInt64( 5, f ); } f = message.getSn(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getCiposition(); if (f != null) { writer.writeMessage( 7, f, proto.base.v1.Position.serializeBinaryToWriter ); } f = message.getMapposition(); if (f != null) { writer.writeMessage( 8, f, proto.base.v1.Position.serializeBinaryToWriter ); } f = message.getCategory(); if (f !== 0) { writer.writeInt32( 9, f ); } }; /** * optional int64 id = 1; * @return {number} */ proto.base.v1.ControlPoint.prototype.getId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.setId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional ControlPointInfo info = 2; * @return {?proto.base.v1.ControlPointInfo} */ proto.base.v1.ControlPoint.prototype.getInfo = function() { return /** @type{?proto.base.v1.ControlPointInfo} */ ( jspb.Message.getWrapperField(this, proto.base.v1.ControlPointInfo, 2)); }; /** * @param {?proto.base.v1.ControlPointInfo|undefined} value * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.setInfo = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.clearInfo = function() { return this.setInfo(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.base.v1.ControlPoint.prototype.hasInfo = function() { return jspb.Message.getField(this, 2) != null; }; /** * repeated string nfc_id_list = 3; * @return {!Array} */ proto.base.v1.ControlPoint.prototype.getNfcIdListList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** * @param {!Array} value * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.setNfcIdListList = function(value) { return jspb.Message.setField(this, 3, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.addNfcIdList = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.clearNfcIdListList = function() { return this.setNfcIdListList([]); }; /** * optional int64 on_map_x = 4; * @return {number} */ proto.base.v1.ControlPoint.prototype.getOnMapX = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.setOnMapX = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional int64 on_map_y = 5; * @return {number} */ proto.base.v1.ControlPoint.prototype.getOnMapY = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.setOnMapY = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * optional string sn = 6; * @return {string} */ proto.base.v1.ControlPoint.prototype.getSn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.setSn = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional Position ciPosition = 7; * @return {?proto.base.v1.Position} */ proto.base.v1.ControlPoint.prototype.getCiposition = function() { return /** @type{?proto.base.v1.Position} */ ( jspb.Message.getWrapperField(this, proto.base.v1.Position, 7)); }; /** * @param {?proto.base.v1.Position|undefined} value * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.setCiposition = function(value) { return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.clearCiposition = function() { return this.setCiposition(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.base.v1.ControlPoint.prototype.hasCiposition = function() { return jspb.Message.getField(this, 7) != null; }; /** * optional Position mapPosition = 8; * @return {?proto.base.v1.Position} */ proto.base.v1.ControlPoint.prototype.getMapposition = function() { return /** @type{?proto.base.v1.Position} */ ( jspb.Message.getWrapperField(this, proto.base.v1.Position, 8)); }; /** * @param {?proto.base.v1.Position|undefined} value * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.setMapposition = function(value) { return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.clearMapposition = function() { return this.setMapposition(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.base.v1.ControlPoint.prototype.hasMapposition = function() { return jspb.Message.getField(this, 8) != null; }; /** * optional int32 category = 9; * @return {number} */ proto.base.v1.ControlPoint.prototype.getCategory = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; /** * @param {number} value * @return {!proto.base.v1.ControlPoint} returns this */ proto.base.v1.ControlPoint.prototype.setCategory = function(value) { return jspb.Message.setProto3IntField(this, 9, value); }; /** * List of repeated fields within this message type. * @private {!Array} * @const */ proto.base.v1.ControlPointSimple.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_, 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.base.v1.ControlPointSimple.prototype.toObject = function(opt_includeInstance) { return proto.base.v1.ControlPointSimple.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.base.v1.ControlPointSimple} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ControlPointSimple.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, 0), nfcIdListList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, sn: 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.base.v1.ControlPointSimple} */ proto.base.v1.ControlPointSimple.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.base.v1.ControlPointSimple; return proto.base.v1.ControlPointSimple.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.base.v1.ControlPointSimple} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.base.v1.ControlPointSimple} */ proto.base.v1.ControlPointSimple.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.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.addNfcIdList(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setSn(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.base.v1.ControlPointSimple.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.base.v1.ControlPointSimple.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.base.v1.ControlPointSimple} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.base.v1.ControlPointSimple.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f !== 0) { writer.writeInt64( 1, f ); } f = message.getNfcIdListList(); if (f.length > 0) { writer.writeRepeatedString( 2, f ); } f = message.getSn(); if (f.length > 0) { writer.writeString( 3, f ); } }; /** * optional int64 id = 1; * @return {number} */ proto.base.v1.ControlPointSimple.prototype.getId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.base.v1.ControlPointSimple} returns this */ proto.base.v1.ControlPointSimple.prototype.setId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * repeated string nfc_id_list = 2; * @return {!Array} */ proto.base.v1.ControlPointSimple.prototype.getNfcIdListList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array} value * @return {!proto.base.v1.ControlPointSimple} returns this */ proto.base.v1.ControlPointSimple.prototype.setNfcIdListList = function(value) { return jspb.Message.setField(this, 2, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.base.v1.ControlPointSimple} returns this */ proto.base.v1.ControlPointSimple.prototype.addNfcIdList = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.base.v1.ControlPointSimple} returns this */ proto.base.v1.ControlPointSimple.prototype.clearNfcIdListList = function() { return this.setNfcIdListList([]); }; /** * optional string sn = 3; * @return {string} */ proto.base.v1.ControlPointSimple.prototype.getSn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.base.v1.ControlPointSimple} returns this */ proto.base.v1.ControlPointSimple.prototype.setSn = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * @enum {number} */ proto.base.v1.ErrorCode = { OK: 0, TOKENEXPIRE: 1000, USERBAN: 1001, VFCODEEXPIRE: 1002, SMSSENDFAIL: 1003, USERSTATUSERR: 1008, STATUSERR: 1009, PHONENOTEXIST: 2001, UNKNOWNERR: 2002, PARAMERR: 5000, HEADSOURCEERR: 5001, DATABASE: 9000, NORECORD: 9001 }; /** * @enum {number} */ proto.base.v1.ShopType = { UNKNOWSHOP: 0, PARKSHOP: 1, IPSHOP: 2, ADMINSHOP: 3 }; /** * @enum {number} */ proto.base.v1.UserType = { UNDEFINE: 0, APPUSER: 1, PARKADMIN: 2, IPADMIN: 3, SYSADMIN: 4, TOADMIN: 5 }; /** * @enum {number} */ proto.base.v1.LoginSource = { UNDEF: 0, USERAPP: 1, WEBADMIN: 2, SHOPAPP: 3, TOAPP: 4 }; /** * @enum {number} */ proto.base.v1.SmsType = { UNKNOW: 0, LOGIN: 1, SIGNUP: 2 }; /** * @enum {number} */ proto.base.v1.ProjectContentType = { TEXT: 0, HTML: 1 }; /** * @enum {number} */ proto.base.v1.CriterionType = { CRUNKNOW: 0, CRORDER: 1, CRNUM: 2 }; /** * @enum {number} */ proto.base.v1.CType = { UNKNOWTYPE: 0, BEGINTYPE: 1, MIDDLETYPE: 2, ENDTYPE: 3 }; /** * @enum {number} */ proto.base.v1.StatusType = { UNKNOWSTATUS: 0, NORMALSTATUS: 1, DISABLEDSTATUS: 8, DELETESTATUS: 9 }; /** * @enum {number} */ proto.base.v1.HrBandType = { UNKNOWHRBAND: 0, USEHRBAND: 1, NOTUSEHRBAND: 2 }; goog.object.extend(exports, proto.base.v1);