UNPKG

jarviscrawlercore

Version:
1,737 lines (1,544 loc) 75.6 kB
// source: dt.proto /** * @fileoverview * @enhanceable * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); goog.exportSymbol('proto.jarviscrawlercore.DTBusinessGameReport', null, global); goog.exportSymbol('proto.jarviscrawlercore.DTDataType', null, global); goog.exportSymbol('proto.jarviscrawlercore.DTGPKCheckGameResult', null, global); goog.exportSymbol('proto.jarviscrawlercore.DTGPKGameResult', null, global); goog.exportSymbol('proto.jarviscrawlercore.DTGameResultErr', null, global); goog.exportSymbol('proto.jarviscrawlercore.DTGameResultErrCode', null, global); goog.exportSymbol('proto.jarviscrawlercore.DTTodayGameData', null, global); goog.exportSymbol('proto.jarviscrawlercore.ReplyDTData', null, global); goog.exportSymbol('proto.jarviscrawlercore.RequestDTData', 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.jarviscrawlercore.DTGameResultErr = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.DTGameResultErr, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.DTGameResultErr.displayName = 'proto.jarviscrawlercore.DTGameResultErr'; } /** * 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.jarviscrawlercore.RequestDTData = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.RequestDTData, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.RequestDTData.displayName = 'proto.jarviscrawlercore.RequestDTData'; } /** * 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.jarviscrawlercore.DTBusinessGameReport = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.DTBusinessGameReport, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.DTBusinessGameReport.displayName = 'proto.jarviscrawlercore.DTBusinessGameReport'; } /** * 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.jarviscrawlercore.DTTodayGameData = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.DTTodayGameData, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.DTTodayGameData.displayName = 'proto.jarviscrawlercore.DTTodayGameData'; } /** * 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.jarviscrawlercore.DTGPKGameResult = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.DTGPKGameResult.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.DTGPKGameResult, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.DTGPKGameResult.displayName = 'proto.jarviscrawlercore.DTGPKGameResult'; } /** * 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.jarviscrawlercore.DTGPKCheckGameResult = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.DTGPKCheckGameResult.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.DTGPKCheckGameResult, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.DTGPKCheckGameResult.displayName = 'proto.jarviscrawlercore.DTGPKCheckGameResult'; } /** * 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.jarviscrawlercore.ReplyDTData = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.ReplyDTData.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.ReplyDTData, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ReplyDTData.displayName = 'proto.jarviscrawlercore.ReplyDTData'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.jarviscrawlercore.DTGameResultErr.prototype.toObject = function(opt_includeInstance) { return proto.jarviscrawlercore.DTGameResultErr.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.jarviscrawlercore.DTGameResultErr} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.DTGameResultErr.toObject = function(includeInstance, msg) { var f, obj = { errcode: jspb.Message.getFieldWithDefault(msg, 1, 0), value0: jspb.Message.getFieldWithDefault(msg, 2, 0), value1: jspb.Message.getFieldWithDefault(msg, 3, 0), strval0: jspb.Message.getFieldWithDefault(msg, 10, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.jarviscrawlercore.DTGameResultErr} */ proto.jarviscrawlercore.DTGameResultErr.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.jarviscrawlercore.DTGameResultErr; return proto.jarviscrawlercore.DTGameResultErr.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.jarviscrawlercore.DTGameResultErr} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.jarviscrawlercore.DTGameResultErr} */ proto.jarviscrawlercore.DTGameResultErr.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!proto.jarviscrawlercore.DTGameResultErrCode} */ (reader.readEnum()); msg.setErrcode(value); break; case 2: var value = /** @type {number} */ (reader.readInt64()); msg.setValue0(value); break; case 3: var value = /** @type {number} */ (reader.readInt64()); msg.setValue1(value); break; case 10: var value = /** @type {string} */ (reader.readString()); msg.setStrval0(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.jarviscrawlercore.DTGameResultErr.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.jarviscrawlercore.DTGameResultErr.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.jarviscrawlercore.DTGameResultErr} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.DTGameResultErr.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getErrcode(); if (f !== 0.0) { writer.writeEnum( 1, f ); } f = message.getValue0(); if (f !== 0) { writer.writeInt64( 2, f ); } f = message.getValue1(); if (f !== 0) { writer.writeInt64( 3, f ); } f = message.getStrval0(); if (f.length > 0) { writer.writeString( 10, f ); } }; /** * optional DTGameResultErrCode errcode = 1; * @return {!proto.jarviscrawlercore.DTGameResultErrCode} */ proto.jarviscrawlercore.DTGameResultErr.prototype.getErrcode = function() { return /** @type {!proto.jarviscrawlercore.DTGameResultErrCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {!proto.jarviscrawlercore.DTGameResultErrCode} value * @return {!proto.jarviscrawlercore.DTGameResultErr} returns this */ proto.jarviscrawlercore.DTGameResultErr.prototype.setErrcode = function(value) { return jspb.Message.setProto3EnumField(this, 1, value); }; /** * optional int64 value0 = 2; * @return {number} */ proto.jarviscrawlercore.DTGameResultErr.prototype.getValue0 = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.DTGameResultErr} returns this */ proto.jarviscrawlercore.DTGameResultErr.prototype.setValue0 = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional int64 value1 = 3; * @return {number} */ proto.jarviscrawlercore.DTGameResultErr.prototype.getValue1 = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.DTGameResultErr} returns this */ proto.jarviscrawlercore.DTGameResultErr.prototype.setValue1 = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional string strval0 = 10; * @return {string} */ proto.jarviscrawlercore.DTGameResultErr.prototype.getStrval0 = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.DTGameResultErr} returns this */ proto.jarviscrawlercore.DTGameResultErr.prototype.setStrval0 = function(value) { return jspb.Message.setProto3StringField(this, 10, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.jarviscrawlercore.RequestDTData.prototype.toObject = function(opt_includeInstance) { return proto.jarviscrawlercore.RequestDTData.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.jarviscrawlercore.RequestDTData} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.RequestDTData.toObject = function(includeInstance, msg) { var f, obj = { mode: jspb.Message.getFieldWithDefault(msg, 1, ""), starttime: jspb.Message.getFieldWithDefault(msg, 2, ""), endtime: jspb.Message.getFieldWithDefault(msg, 3, ""), dtdatatype: jspb.Message.getFieldWithDefault(msg, 4, 0), envname: jspb.Message.getFieldWithDefault(msg, 5, ""), businessid: jspb.Message.getFieldWithDefault(msg, 6, ""), gamecode: jspb.Message.getFieldWithDefault(msg, 7, ""), playername: jspb.Message.getFieldWithDefault(msg, 8, ""), token: jspb.Message.getFieldWithDefault(msg, 100, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.jarviscrawlercore.RequestDTData} */ proto.jarviscrawlercore.RequestDTData.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.jarviscrawlercore.RequestDTData; return proto.jarviscrawlercore.RequestDTData.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.jarviscrawlercore.RequestDTData} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.jarviscrawlercore.RequestDTData} */ proto.jarviscrawlercore.RequestDTData.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.setMode(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setStarttime(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setEndtime(value); break; case 4: var value = /** @type {!proto.jarviscrawlercore.DTDataType} */ (reader.readEnum()); msg.setDtdatatype(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setEnvname(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setBusinessid(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setGamecode(value); break; case 8: var value = /** @type {string} */ (reader.readString()); msg.setPlayername(value); break; case 100: 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.jarviscrawlercore.RequestDTData.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.jarviscrawlercore.RequestDTData.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.jarviscrawlercore.RequestDTData} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.RequestDTData.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMode(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getStarttime(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getEndtime(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getDtdatatype(); if (f !== 0.0) { writer.writeEnum( 4, f ); } f = message.getEnvname(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getBusinessid(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getGamecode(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getPlayername(); if (f.length > 0) { writer.writeString( 8, f ); } f = message.getToken(); if (f.length > 0) { writer.writeString( 100, f ); } }; /** * optional string mode = 1; * @return {string} */ proto.jarviscrawlercore.RequestDTData.prototype.getMode = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.RequestDTData} returns this */ proto.jarviscrawlercore.RequestDTData.prototype.setMode = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string startTime = 2; * @return {string} */ proto.jarviscrawlercore.RequestDTData.prototype.getStarttime = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.RequestDTData} returns this */ proto.jarviscrawlercore.RequestDTData.prototype.setStarttime = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string endTime = 3; * @return {string} */ proto.jarviscrawlercore.RequestDTData.prototype.getEndtime = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.RequestDTData} returns this */ proto.jarviscrawlercore.RequestDTData.prototype.setEndtime = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional DTDataType dtDataType = 4; * @return {!proto.jarviscrawlercore.DTDataType} */ proto.jarviscrawlercore.RequestDTData.prototype.getDtdatatype = function() { return /** @type {!proto.jarviscrawlercore.DTDataType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {!proto.jarviscrawlercore.DTDataType} value * @return {!proto.jarviscrawlercore.RequestDTData} returns this */ proto.jarviscrawlercore.RequestDTData.prototype.setDtdatatype = function(value) { return jspb.Message.setProto3EnumField(this, 4, value); }; /** * optional string envName = 5; * @return {string} */ proto.jarviscrawlercore.RequestDTData.prototype.getEnvname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.RequestDTData} returns this */ proto.jarviscrawlercore.RequestDTData.prototype.setEnvname = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional string businessid = 6; * @return {string} */ proto.jarviscrawlercore.RequestDTData.prototype.getBusinessid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.RequestDTData} returns this */ proto.jarviscrawlercore.RequestDTData.prototype.setBusinessid = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string gameCode = 7; * @return {string} */ proto.jarviscrawlercore.RequestDTData.prototype.getGamecode = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.RequestDTData} returns this */ proto.jarviscrawlercore.RequestDTData.prototype.setGamecode = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * optional string playerName = 8; * @return {string} */ proto.jarviscrawlercore.RequestDTData.prototype.getPlayername = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.RequestDTData} returns this */ proto.jarviscrawlercore.RequestDTData.prototype.setPlayername = function(value) { return jspb.Message.setProto3StringField(this, 8, value); }; /** * optional string token = 100; * @return {string} */ proto.jarviscrawlercore.RequestDTData.prototype.getToken = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 100, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.RequestDTData} returns this */ proto.jarviscrawlercore.RequestDTData.prototype.setToken = function(value) { return jspb.Message.setProto3StringField(this, 100, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.toObject = function(opt_includeInstance) { return proto.jarviscrawlercore.DTBusinessGameReport.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.jarviscrawlercore.DTBusinessGameReport} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.DTBusinessGameReport.toObject = function(includeInstance, msg) { var f, obj = { businessid: jspb.Message.getFieldWithDefault(msg, 1, ""), gamecode: jspb.Message.getFieldWithDefault(msg, 2, ""), totalwin: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), totalbet: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), gamenums: jspb.Message.getFieldWithDefault(msg, 5, 0), currency: jspb.Message.getFieldWithDefault(msg, 6, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.jarviscrawlercore.DTBusinessGameReport} */ proto.jarviscrawlercore.DTBusinessGameReport.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.jarviscrawlercore.DTBusinessGameReport; return proto.jarviscrawlercore.DTBusinessGameReport.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.jarviscrawlercore.DTBusinessGameReport} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.jarviscrawlercore.DTBusinessGameReport} */ proto.jarviscrawlercore.DTBusinessGameReport.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.setBusinessid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setGamecode(value); break; case 3: var value = /** @type {number} */ (reader.readFloat()); msg.setTotalwin(value); break; case 4: var value = /** @type {number} */ (reader.readFloat()); msg.setTotalbet(value); break; case 5: var value = /** @type {number} */ (reader.readInt32()); msg.setGamenums(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setCurrency(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.jarviscrawlercore.DTBusinessGameReport.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.jarviscrawlercore.DTBusinessGameReport} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.DTBusinessGameReport.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getBusinessid(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getGamecode(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getTotalwin(); if (f !== 0.0) { writer.writeFloat( 3, f ); } f = message.getTotalbet(); if (f !== 0.0) { writer.writeFloat( 4, f ); } f = message.getGamenums(); if (f !== 0) { writer.writeInt32( 5, f ); } f = message.getCurrency(); if (f.length > 0) { writer.writeString( 6, f ); } }; /** * optional string businessid = 1; * @return {string} */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.getBusinessid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.DTBusinessGameReport} returns this */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.setBusinessid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string gamecode = 2; * @return {string} */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.getGamecode = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.DTBusinessGameReport} returns this */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.setGamecode = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional float totalWin = 3; * @return {number} */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.getTotalwin = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.DTBusinessGameReport} returns this */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.setTotalwin = function(value) { return jspb.Message.setProto3FloatField(this, 3, value); }; /** * optional float totalBet = 4; * @return {number} */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.getTotalbet = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.DTBusinessGameReport} returns this */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.setTotalbet = function(value) { return jspb.Message.setProto3FloatField(this, 4, value); }; /** * optional int32 gameNums = 5; * @return {number} */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.getGamenums = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.DTBusinessGameReport} returns this */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.setGamenums = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * optional string currency = 6; * @return {string} */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.getCurrency = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.DTBusinessGameReport} returns this */ proto.jarviscrawlercore.DTBusinessGameReport.prototype.setCurrency = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.jarviscrawlercore.DTTodayGameData.prototype.toObject = function(opt_includeInstance) { return proto.jarviscrawlercore.DTTodayGameData.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.jarviscrawlercore.DTTodayGameData} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.DTTodayGameData.toObject = function(includeInstance, msg) { var f, obj = { totalwin: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), totalbet: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), gamenums: jspb.Message.getFieldWithDefault(msg, 3, 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.jarviscrawlercore.DTTodayGameData} */ proto.jarviscrawlercore.DTTodayGameData.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.jarviscrawlercore.DTTodayGameData; return proto.jarviscrawlercore.DTTodayGameData.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.jarviscrawlercore.DTTodayGameData} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.jarviscrawlercore.DTTodayGameData} */ proto.jarviscrawlercore.DTTodayGameData.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readFloat()); msg.setTotalwin(value); break; case 2: var value = /** @type {number} */ (reader.readFloat()); msg.setTotalbet(value); break; case 3: var value = /** @type {number} */ (reader.readInt32()); msg.setGamenums(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.jarviscrawlercore.DTTodayGameData.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.jarviscrawlercore.DTTodayGameData.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.jarviscrawlercore.DTTodayGameData} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.DTTodayGameData.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getTotalwin(); if (f !== 0.0) { writer.writeFloat( 1, f ); } f = message.getTotalbet(); if (f !== 0.0) { writer.writeFloat( 2, f ); } f = message.getGamenums(); if (f !== 0) { writer.writeInt32( 3, f ); } }; /** * optional float totalWin = 1; * @return {number} */ proto.jarviscrawlercore.DTTodayGameData.prototype.getTotalwin = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.DTTodayGameData} returns this */ proto.jarviscrawlercore.DTTodayGameData.prototype.setTotalwin = function(value) { return jspb.Message.setProto3FloatField(this, 1, value); }; /** * optional float totalBet = 2; * @return {number} */ proto.jarviscrawlercore.DTTodayGameData.prototype.getTotalbet = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.DTTodayGameData} returns this */ proto.jarviscrawlercore.DTTodayGameData.prototype.setTotalbet = function(value) { return jspb.Message.setProto3FloatField(this, 2, value); }; /** * optional int32 gameNums = 3; * @return {number} */ proto.jarviscrawlercore.DTTodayGameData.prototype.getGamenums = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.DTTodayGameData} returns this */ proto.jarviscrawlercore.DTTodayGameData.prototype.setGamenums = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.jarviscrawlercore.DTGPKGameResult.repeatedFields_ = [100]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.jarviscrawlercore.DTGPKGameResult.prototype.toObject = function(opt_includeInstance) { return proto.jarviscrawlercore.DTGPKGameResult.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.jarviscrawlercore.DTGPKGameResult} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.DTGPKGameResult.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), businessid: jspb.Message.getFieldWithDefault(msg, 2, ""), playername: jspb.Message.getFieldWithDefault(msg, 3, ""), gamecode: jspb.Message.getFieldWithDefault(msg, 4, ""), win: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), bet: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), off: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), lines: jspb.Message.getFieldWithDefault(msg, 8, 0), moneystart: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0), moneyend: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), playerip: jspb.Message.getFieldWithDefault(msg, 11, ""), datastate: jspb.Message.getFieldWithDefault(msg, 12, ""), gametime: jspb.Message.getFieldWithDefault(msg, 13, ""), clienttype: jspb.Message.getFieldWithDefault(msg, 14, ""), currency: jspb.Message.getFieldWithDefault(msg, 15, ""), iscomplete: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), giftfreeid: jspb.Message.getFieldWithDefault(msg, 17, ""), gamedata: jspb.Message.getFieldWithDefault(msg, 18, ""), gameresult: jspb.Message.getFieldWithDefault(msg, 19, ""), hassubgame: jspb.Message.getBooleanFieldWithDefault(msg, 20, false), dtbaseid: jspb.Message.getFieldWithDefault(msg, 21, ""), rootgame: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), childrenList: jspb.Message.toObjectList(msg.getChildrenList(), proto.jarviscrawlercore.DTGPKGameResult.toObject, includeInstance), err: (f = msg.getErr()) && proto.jarviscrawlercore.DTGameResultErr.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.jarviscrawlercore.DTGPKGameResult} */ proto.jarviscrawlercore.DTGPKGameResult.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.jarviscrawlercore.DTGPKGameResult; return proto.jarviscrawlercore.DTGPKGameResult.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.jarviscrawlercore.DTGPKGameResult} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.jarviscrawlercore.DTGPKGameResult} */ proto.jarviscrawlercore.DTGPKGameResult.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setBusinessid(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setPlayername(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setGamecode(value); break; case 5: var value = /** @type {number} */ (reader.readFloat()); msg.setWin(value); break; case 6: var value = /** @type {number} */ (reader.readFloat()); msg.setBet(value); break; case 7: var value = /** @type {number} */ (reader.readFloat()); msg.setOff(value); break; case 8: var value = /** @type {number} */ (reader.readInt32()); msg.setLines(value); break; case 9: var value = /** @type {number} */ (reader.readFloat()); msg.setMoneystart(value); break; case 10: var value = /** @type {number} */ (reader.readFloat()); msg.setMoneyend(value); break; case 11: var value = /** @type {string} */ (reader.readString()); msg.setPlayerip(value); break; case 12: var value = /** @type {string} */ (reader.readString()); msg.setDatastate(value); break; case 13: var value = /** @type {string} */ (reader.readString()); msg.setGametime(value); break; case 14: var value = /** @type {string} */ (reader.readString()); msg.setClienttype(value); break; case 15: var value = /** @type {string} */ (reader.readString()); msg.setCurrency(value); break; case 16: var value = /** @type {boolean} */ (reader.readBool()); msg.setIscomplete(value); break; case 17: var value = /** @type {string} */ (reader.readString()); msg.setGiftfreeid(value); break; case 18: var value = /** @type {string} */ (reader.readString()); msg.setGamedata(value); break; case 19: var value = /** @type {string} */ (reader.readString()); msg.setGameresult(value); break; case 20: var value = /** @type {boolean} */ (reader.readBool()); msg.setHassubgame(value); break; case 21: var value = /** @type {string} */ (reader.readString()); msg.setDtbaseid(value); break; case 22: var value = /** @type {boolean} */ (reader.readBool()); msg.setRootgame(value); break; case 100: var value = new proto.jarviscrawlercore.DTGPKGameResult; reader.readMessage(value,proto.jarviscrawlercore.DTGPKGameResult.deserializeBinaryFromReader); msg.addChildren(value); break; case 200: var value = new proto.jarviscrawlercore.DTGameResultErr; reader.readMessage(value,proto.jarviscrawlercore.DTGameResultErr.deserializeBinaryFromReader); msg.setErr(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.jarviscrawlercore.DTGPKGameResult.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.jarviscrawlercore.DTGPKGameResult.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.jarviscrawlercore.DTGPKGameResult} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.DTGPKGameResult.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getBusinessid(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getPlayername(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getGamecode(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getWin(); if (f !== 0.0) { writer.writeFloat( 5, f ); } f = message.getBet(); if (f !== 0.0) { writer.writeFloat( 6, f ); } f = message.getOff(); if (f !== 0.0) { writer.writeFloat( 7, f ); } f = message.getLines(); if (f !== 0) { writer.writeInt32( 8, f ); } f = message.getMoneystart(); if (f !== 0.0) { writer.writeFloat( 9, f ); } f = message.getMoneyend(); if (f !== 0.0) { writer.writeFloat( 10, f ); } f = message.getPlayerip(); if (f.length > 0) { writer.writeString( 11, f ); } f = message.getDatastate(); if (f.length > 0) { writer.writeString( 12, f ); } f = message.getGametime(); if (f.length > 0) { writer.writeString( 13, f ); } f = message.getClienttype(); if (f.length > 0) { writer.writeString( 14, f ); } f = message.getCurrency(); if (f.length > 0) { writer.writeString( 15, f ); } f = message.getIscomplete(); if (f) { writer.writeBool( 16, f ); } f = message.getGiftfreeid(); if (f.length > 0) { writer.writeString( 17, f ); } f = message.getGamedata(); if (f.length > 0) { writer.writeString( 18, f ); } f = message.getGameresult(); if (f.length > 0) { writer.writeString( 19, f ); } f = message.getHassubgame(); if (f) { writer.writeBool( 20, f ); } f = message.getDtbaseid(); if (f.length > 0) { writer.writeString( 21, f ); } f = message.getRootgame(); if (f) { writer.writeBool( 22, f ); } f = message.getChildrenList(); if (f.length > 0) { writer.writeRepeatedMessage( 100, f, proto.jarviscrawlercore.DTGPKGameResult.serializeBinaryToWriter ); } f = message.getErr(); if (f != null) { writer.writeMessage( 200, f, proto.jarviscrawlercore.DTGameResultErr.serializeBinaryToWriter ); } }; /** * optional string ID = 1; * @return {string} */ proto.jarviscrawlercore.DTGPKGameResult.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.DTGPKGameResult} returns this */ proto.jarviscrawlercore.DTGPKGameResult.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string businessID = 2; * @return {string} */ proto.jarviscrawlercore.DTGPKGameResult.prototype.getBusinessid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.DTGPKGameResult} returns this */ proto.jarviscrawlercore.DTGPKGameResult.prototype.setBusinessid = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string playerName = 3; * @return {string} */ proto.jarviscrawlercore.DTGPKGameResult.prototype.getPlayername = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.DTGPKGameResult} returns this */ proto.jarviscrawlercore.DTGPKGameResult.prototype.setPlayername = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string gameCode = 4; * @return {string} */ proto.jarviscrawlercore.DTGPKGameResult.prototype.getGamecode = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.DTGPKGameResult} returns this */ proto.jarviscrawlercore.DTGPKGameResult.prototype.setGamecode = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional float win = 5; * @return {number} */ proto.jarviscrawlercore.DTGPKGameResult.prototype.getWin = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.DTGPKGameResult} returns this */ proto.jarviscrawlercore.DTGPKGameResult.prototype.setWin = function(value) { return jspb.Message.setProto3FloatField(this, 5, value); }; /** * optional float bet = 6; * @return {number} */ proto.jarviscrawlercore.DTGPKGameResult.prototype.getBet = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.DTGPKGameResult} returns this */ proto.jarviscrawlercore.DTGPKGameResult.prototype.setBet = function(value) { return jspb.Message.setProto3FloatField(this, 6,