9803 lines
266 KiB
JavaScript
9803 lines
266 KiB
JavaScript
/**
|
|
* @fileoverview
|
|
* @enhanceable
|
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
* @public
|
|
*/
|
|
// GENERATED CODE -- DO NOT EDIT!
|
|
|
|
var jspb = require('google-protobuf');
|
|
var goog = jspb;
|
|
var global = Function('return this')();
|
|
|
|
var MsgDef_pb = require('./MsgDef_pb.js');
|
|
goog.exportSymbol('proto.message.BonusInfo', null, global);
|
|
goog.exportSymbol('proto.message.CS_Arm_Change', null, global);
|
|
goog.exportSymbol('proto.message.CS_Communicate', null, global);
|
|
goog.exportSymbol('proto.message.CS_Finish_Newbee_Task', null, global);
|
|
goog.exportSymbol('proto.message.CS_Frame_Info', null, global);
|
|
goog.exportSymbol('proto.message.CS_Horn_Transform', null, global);
|
|
goog.exportSymbol('proto.message.CS_Room_Enter', null, global);
|
|
goog.exportSymbol('proto.message.CS_Room_Quit', null, global);
|
|
goog.exportSymbol('proto.message.CS_Test', null, global);
|
|
goog.exportSymbol('proto.message.Communicate_Info', null, global);
|
|
goog.exportSymbol('proto.message.Counter', null, global);
|
|
goog.exportSymbol('proto.message.Fish', null, global);
|
|
goog.exportSymbol('proto.message.Fish_Boss', null, global);
|
|
goog.exportSymbol('proto.message.Fish_Damager', null, global);
|
|
goog.exportSymbol('proto.message.Fish_Drop', null, global);
|
|
goog.exportSymbol('proto.message.Fish_Group', null, global);
|
|
goog.exportSymbol('proto.message.Fish_Hit', null, global);
|
|
goog.exportSymbol('proto.message.Fish_Player', null, global);
|
|
goog.exportSymbol('proto.message.Fish_Player_Frame', null, global);
|
|
goog.exportSymbol('proto.message.Fish_Skill', null, global);
|
|
goog.exportSymbol('proto.message.Player_Boss_Info', null, global);
|
|
goog.exportSymbol('proto.message.SC_Arm_Change_Result', null, global);
|
|
goog.exportSymbol('proto.message.SC_Broadcast', null, global);
|
|
goog.exportSymbol('proto.message.SC_Code', null, global);
|
|
goog.exportSymbol('proto.message.SC_Communicate_Result', null, global);
|
|
goog.exportSymbol('proto.message.SC_Finish_Newbee_Task', null, global);
|
|
goog.exportSymbol('proto.message.SC_Frame_Info', null, global);
|
|
goog.exportSymbol('proto.message.SC_Led', null, global);
|
|
goog.exportSymbol('proto.message.SC_Newbee_Task', null, global);
|
|
goog.exportSymbol('proto.message.SC_Player_Info', null, global);
|
|
goog.exportSymbol('proto.message.SC_Room_Enter', null, global);
|
|
goog.exportSymbol('proto.message.SC_Room_Quit', null, global);
|
|
goog.exportSymbol('proto.message.SC_Room_Snapshot', null, global);
|
|
goog.exportSymbol('proto.message.SC_Test', 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.message.CS_Room_Enter = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.CS_Room_Enter, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.CS_Room_Enter.displayName = 'proto.message.CS_Room_Enter';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.CS_Room_Enter.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.CS_Room_Enter} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Room_Enter.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1001, 0),
|
|
roomname: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
roomtype: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
buyin: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
uid: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
token: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
userid: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
roomid: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
password: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.message.CS_Room_Enter}
|
|
*/
|
|
proto.message.CS_Room_Enter.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.CS_Room_Enter;
|
|
return proto.message.CS_Room_Enter.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.CS_Room_Enter} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.CS_Room_Enter}
|
|
*/
|
|
proto.message.CS_Room_Enter.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1001:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setRoomname(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setRoomtype(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setBuyin(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setUid(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setToken(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setUserid(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setRoomid(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setPassword(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.CS_Room_Enter.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.CS_Room_Enter} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Room_Enter.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1001,
|
|
f
|
|
);
|
|
}
|
|
f = message.getRoomname();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getRoomtype();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBuyin();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getUid();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getToken();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getUserid();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getRoomid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getPassword();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1001;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1001, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Room_Enter.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1001, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string roomName = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.getRoomname = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.CS_Room_Enter.prototype.setRoomname = function(value) {
|
|
jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 roomType = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.getRoomtype = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Room_Enter.prototype.setRoomtype = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 buyin = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.getBuyin = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Room_Enter.prototype.setBuyin = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 uid = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.getUid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Room_Enter.prototype.setUid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string token = 5;
|
|
* @return {string}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.getToken = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.CS_Room_Enter.prototype.setToken = function(value) {
|
|
jspb.Message.setProto3StringField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 userId = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.getUserid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Room_Enter.prototype.setUserid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 roomId = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.getRoomid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Room_Enter.prototype.setRoomid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string password = 8;
|
|
* @return {string}
|
|
*/
|
|
proto.message.CS_Room_Enter.prototype.getPassword = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.CS_Room_Enter.prototype.setPassword = function(value) {
|
|
jspb.Message.setProto3StringField(this, 8, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Room_Enter = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Room_Enter, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Room_Enter.displayName = 'proto.message.SC_Room_Enter';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Room_Enter.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Room_Enter.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Room_Enter} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Room_Enter.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1002, 0),
|
|
result: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
roomname: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
roomtype: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
roomid: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
todayentertime: 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.message.SC_Room_Enter}
|
|
*/
|
|
proto.message.SC_Room_Enter.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Room_Enter;
|
|
return proto.message.SC_Room_Enter.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Room_Enter} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Room_Enter}
|
|
*/
|
|
proto.message.SC_Room_Enter.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1002:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setResult(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setRoomname(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setRoomtype(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setRoomid(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setTodayentertime(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Room_Enter.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Room_Enter.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Room_Enter} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Room_Enter.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1002,
|
|
f
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getRoomname();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getRoomtype();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getRoomid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTodayentertime();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1002;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Enter.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1002, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Enter.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1002, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 result = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Enter.prototype.getResult = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Enter.prototype.setResult = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string roomName = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.message.SC_Room_Enter.prototype.getRoomname = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.SC_Room_Enter.prototype.setRoomname = function(value) {
|
|
jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 roomType = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Enter.prototype.getRoomtype = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Enter.prototype.setRoomtype = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 roomId = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Enter.prototype.getRoomid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Enter.prototype.setRoomid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 todayEnterTime = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Enter.prototype.getTodayentertime = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Enter.prototype.setTodayentertime = function(value) {
|
|
jspb.Message.setProto3IntField(this, 5, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.CS_Room_Quit = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.CS_Room_Quit, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.CS_Room_Quit.displayName = 'proto.message.CS_Room_Quit';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.CS_Room_Quit.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.CS_Room_Quit.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.CS_Room_Quit} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Room_Quit.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1003, 0),
|
|
uid: 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.message.CS_Room_Quit}
|
|
*/
|
|
proto.message.CS_Room_Quit.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.CS_Room_Quit;
|
|
return proto.message.CS_Room_Quit.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.CS_Room_Quit} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.CS_Room_Quit}
|
|
*/
|
|
proto.message.CS_Room_Quit.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1003:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setUid(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.CS_Room_Quit.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.CS_Room_Quit.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.CS_Room_Quit} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Room_Quit.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1003,
|
|
f
|
|
);
|
|
}
|
|
f = message.getUid();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1003;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Room_Quit.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1003, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Room_Quit.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1003, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 uid = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Room_Quit.prototype.getUid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Room_Quit.prototype.setUid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Room_Quit = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Room_Quit, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Room_Quit.displayName = 'proto.message.SC_Room_Quit';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Room_Quit.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Room_Quit.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Room_Quit} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Room_Quit.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1004, 0),
|
|
result: 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.message.SC_Room_Quit}
|
|
*/
|
|
proto.message.SC_Room_Quit.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Room_Quit;
|
|
return proto.message.SC_Room_Quit.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Room_Quit} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Room_Quit}
|
|
*/
|
|
proto.message.SC_Room_Quit.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1004:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setResult(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Room_Quit.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Room_Quit.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Room_Quit} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Room_Quit.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1004,
|
|
f
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1004;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Quit.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1004, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Quit.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1004, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 result = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Quit.prototype.getResult = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Quit.prototype.setResult = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Code = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Code, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Code.displayName = 'proto.message.SC_Code';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Code.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Code.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Code} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Code.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1005, 0),
|
|
code: 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.message.SC_Code}
|
|
*/
|
|
proto.message.SC_Code.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Code;
|
|
return proto.message.SC_Code.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Code} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Code}
|
|
*/
|
|
proto.message.SC_Code.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1005:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setCode(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Code.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Code.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Code} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Code.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1005,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCode();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1005;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Code.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1005, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Code.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1005, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 code = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Code.prototype.getCode = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Code.prototype.setCode = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Player_Info = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Player_Info, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Player_Info.displayName = 'proto.message.SC_Player_Info';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Player_Info.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Player_Info.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Player_Info} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Player_Info.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1006, 0),
|
|
data: 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.message.SC_Player_Info}
|
|
*/
|
|
proto.message.SC_Player_Info.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Player_Info;
|
|
return proto.message.SC_Player_Info.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Player_Info} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Player_Info}
|
|
*/
|
|
proto.message.SC_Player_Info.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1006:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setData(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Player_Info.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Player_Info.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Player_Info} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Player_Info.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1006,
|
|
f
|
|
);
|
|
}
|
|
f = message.getData();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1006;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Player_Info.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1006, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Player_Info.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1006, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string data = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.message.SC_Player_Info.prototype.getData = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.SC_Player_Info.prototype.setData = function(value) {
|
|
jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Led = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Led, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Led.displayName = 'proto.message.SC_Led';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Led.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Led.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Led} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Led.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1007, 0),
|
|
notice: 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.message.SC_Led}
|
|
*/
|
|
proto.message.SC_Led.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Led;
|
|
return proto.message.SC_Led.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Led} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Led}
|
|
*/
|
|
proto.message.SC_Led.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1007:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setNotice(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Led.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Led.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Led} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Led.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1007,
|
|
f
|
|
);
|
|
}
|
|
f = message.getNotice();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1007;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Led.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1007, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Led.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1007, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string notice = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.message.SC_Led.prototype.getNotice = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.SC_Led.prototype.setNotice = function(value) {
|
|
jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.CS_Test = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.CS_Test, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.CS_Test.displayName = 'proto.message.CS_Test';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.CS_Test.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.CS_Test.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.CS_Test} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Test.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1090, 0),
|
|
command: 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.message.CS_Test}
|
|
*/
|
|
proto.message.CS_Test.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.CS_Test;
|
|
return proto.message.CS_Test.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.CS_Test} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.CS_Test}
|
|
*/
|
|
proto.message.CS_Test.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1090:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setCommand(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.CS_Test.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.CS_Test.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.CS_Test} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Test.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1090,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCommand();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1090;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Test.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1090, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Test.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1090, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string command = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.message.CS_Test.prototype.getCommand = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.CS_Test.prototype.setCommand = function(value) {
|
|
jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Test = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Test, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Test.displayName = 'proto.message.SC_Test';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Test.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Test.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Test} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Test.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1091, 0),
|
|
result: 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.message.SC_Test}
|
|
*/
|
|
proto.message.SC_Test.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Test;
|
|
return proto.message.SC_Test.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Test} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Test}
|
|
*/
|
|
proto.message.SC_Test.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1091:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setResult(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Test.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Test.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Test} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Test.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1091,
|
|
f
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1091;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Test.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1091, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Test.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1091, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 result = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Test.prototype.getResult = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Test.prototype.setResult = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Room_Snapshot = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, proto.message.SC_Room_Snapshot.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Room_Snapshot, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Room_Snapshot.displayName = 'proto.message.SC_Room_Snapshot';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.SC_Room_Snapshot.repeatedFields_ = [4,5,6];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Room_Snapshot.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Room_Snapshot} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Room_Snapshot.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1101, 0),
|
|
state: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
curframe: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
curfishframe: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
fishgroupsList: jspb.Message.toObjectList(msg.getFishgroupsList(),
|
|
proto.message.Fish_Group.toObject, includeInstance),
|
|
playersList: jspb.Message.toObjectList(msg.getPlayersList(),
|
|
proto.message.Fish_Player.toObject, includeInstance),
|
|
damagersList: jspb.Message.toObjectList(msg.getDamagersList(),
|
|
proto.message.Fish_Damager.toObject, includeInstance),
|
|
bossinfo: (f = msg.getBossinfo()) && proto.message.Fish_Boss.toObject(includeInstance, f),
|
|
bg: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.message.SC_Room_Snapshot}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Room_Snapshot;
|
|
return proto.message.SC_Room_Snapshot.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Room_Snapshot} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Room_Snapshot}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1101:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setState(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setCurframe(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setCurfishframe(value);
|
|
break;
|
|
case 4:
|
|
var value = new proto.message.Fish_Group;
|
|
reader.readMessage(value,proto.message.Fish_Group.deserializeBinaryFromReader);
|
|
msg.addFishgroups(value);
|
|
break;
|
|
case 5:
|
|
var value = new proto.message.Fish_Player;
|
|
reader.readMessage(value,proto.message.Fish_Player.deserializeBinaryFromReader);
|
|
msg.addPlayers(value);
|
|
break;
|
|
case 6:
|
|
var value = new proto.message.Fish_Damager;
|
|
reader.readMessage(value,proto.message.Fish_Damager.deserializeBinaryFromReader);
|
|
msg.addDamagers(value);
|
|
break;
|
|
case 7:
|
|
var value = new proto.message.Fish_Boss;
|
|
reader.readMessage(value,proto.message.Fish_Boss.deserializeBinaryFromReader);
|
|
msg.setBossinfo(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setBg(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Room_Snapshot.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Room_Snapshot} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Room_Snapshot.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1101,
|
|
f
|
|
);
|
|
}
|
|
f = message.getState();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCurframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCurfishframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFishgroupsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
4,
|
|
f,
|
|
proto.message.Fish_Group.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getPlayersList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
5,
|
|
f,
|
|
proto.message.Fish_Player.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getDamagersList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
6,
|
|
f,
|
|
proto.message.Fish_Damager.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getBossinfo();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
7,
|
|
f,
|
|
proto.message.Fish_Boss.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getBg();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1101;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1101, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Snapshot.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1101, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 state = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.getState = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Snapshot.prototype.setState = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 curFrame = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.getCurframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Snapshot.prototype.setCurframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 curFishFrame = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.getCurfishframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Room_Snapshot.prototype.setCurfishframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Group fishGroups = 4;
|
|
* @return {!Array.<!proto.message.Fish_Group>}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.getFishgroupsList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Group>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Group, 4));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Group>} value */
|
|
proto.message.SC_Room_Snapshot.prototype.setFishgroupsList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Group=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Group}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.addFishgroups = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.message.Fish_Group, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Room_Snapshot.prototype.clearFishgroupsList = function() {
|
|
this.setFishgroupsList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Player players = 5;
|
|
* @return {!Array.<!proto.message.Fish_Player>}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.getPlayersList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Player>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Player, 5));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Player>} value */
|
|
proto.message.SC_Room_Snapshot.prototype.setPlayersList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Player=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Player}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.addPlayers = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.message.Fish_Player, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Room_Snapshot.prototype.clearPlayersList = function() {
|
|
this.setPlayersList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Damager damagers = 6;
|
|
* @return {!Array.<!proto.message.Fish_Damager>}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.getDamagersList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Damager>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Damager, 6));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Damager>} value */
|
|
proto.message.SC_Room_Snapshot.prototype.setDamagersList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Damager=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Damager}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.addDamagers = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.message.Fish_Damager, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Room_Snapshot.prototype.clearDamagersList = function() {
|
|
this.setDamagersList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Fish_Boss bossInfo = 7;
|
|
* @return {?proto.message.Fish_Boss}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.getBossinfo = function() {
|
|
return /** @type{?proto.message.Fish_Boss} */ (
|
|
jspb.Message.getWrapperField(this, proto.message.Fish_Boss, 7));
|
|
};
|
|
|
|
|
|
/** @param {?proto.message.Fish_Boss|undefined} value */
|
|
proto.message.SC_Room_Snapshot.prototype.setBossinfo = function(value) {
|
|
jspb.Message.setWrapperField(this, 7, value);
|
|
};
|
|
|
|
|
|
proto.message.SC_Room_Snapshot.prototype.clearBossinfo = function() {
|
|
this.setBossinfo(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {!boolean}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.hasBossinfo = function() {
|
|
return jspb.Message.getField(this, 7) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string bg = 8;
|
|
* @return {string}
|
|
*/
|
|
proto.message.SC_Room_Snapshot.prototype.getBg = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.SC_Room_Snapshot.prototype.setBg = function(value) {
|
|
jspb.Message.setProto3StringField(this, 8, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.CS_Frame_Info = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, proto.message.CS_Frame_Info.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.CS_Frame_Info, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.CS_Frame_Info.displayName = 'proto.message.CS_Frame_Info';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.CS_Frame_Info.repeatedFields_ = [1,2];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.CS_Frame_Info.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.CS_Frame_Info} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Frame_Info.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1102, 0),
|
|
firesList: jspb.Message.toObjectList(msg.getFiresList(),
|
|
proto.message.Fish_Damager.toObject, includeInstance),
|
|
hitsList: jspb.Message.toObjectList(msg.getHitsList(),
|
|
proto.message.Fish_Hit.toObject, includeInstance),
|
|
itemid: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
firelevel: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
state: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
clientevent: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
stateparam: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
skilllevel: jspb.Message.getFieldWithDefault(msg, 8, 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.message.CS_Frame_Info}
|
|
*/
|
|
proto.message.CS_Frame_Info.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.CS_Frame_Info;
|
|
return proto.message.CS_Frame_Info.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.CS_Frame_Info} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.CS_Frame_Info}
|
|
*/
|
|
proto.message.CS_Frame_Info.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1102:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = new proto.message.Fish_Damager;
|
|
reader.readMessage(value,proto.message.Fish_Damager.deserializeBinaryFromReader);
|
|
msg.addFires(value);
|
|
break;
|
|
case 2:
|
|
var value = new proto.message.Fish_Hit;
|
|
reader.readMessage(value,proto.message.Fish_Hit.deserializeBinaryFromReader);
|
|
msg.addHits(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setItemid(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setFirelevel(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setState(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setClientevent(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setStateparam(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSkilllevel(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.CS_Frame_Info.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.CS_Frame_Info} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Frame_Info.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1102,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFiresList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
1,
|
|
f,
|
|
proto.message.Fish_Damager.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getHitsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
2,
|
|
f,
|
|
proto.message.Fish_Hit.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getItemid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFirelevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getState();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getClientevent();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getStateparam();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSkilllevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1102;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1102, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Frame_Info.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1102, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Damager fires = 1;
|
|
* @return {!Array.<!proto.message.Fish_Damager>}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.getFiresList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Damager>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Damager, 1));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Damager>} value */
|
|
proto.message.CS_Frame_Info.prototype.setFiresList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Damager=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Damager}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.addFires = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.message.Fish_Damager, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.CS_Frame_Info.prototype.clearFiresList = function() {
|
|
this.setFiresList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Hit hits = 2;
|
|
* @return {!Array.<!proto.message.Fish_Hit>}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.getHitsList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Hit>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Hit, 2));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Hit>} value */
|
|
proto.message.CS_Frame_Info.prototype.setHitsList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Hit=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Hit}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.addHits = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.message.Fish_Hit, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.CS_Frame_Info.prototype.clearHitsList = function() {
|
|
this.setHitsList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 itemId = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.getItemid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Frame_Info.prototype.setItemid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 fireLevel = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.getFirelevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Frame_Info.prototype.setFirelevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 state = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.getState = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Frame_Info.prototype.setState = function(value) {
|
|
jspb.Message.setProto3IntField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string clientEvent = 6;
|
|
* @return {string}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.getClientevent = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.CS_Frame_Info.prototype.setClientevent = function(value) {
|
|
jspb.Message.setProto3StringField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 stateParam = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.getStateparam = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Frame_Info.prototype.setStateparam = function(value) {
|
|
jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 skillLevel = 8;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Frame_Info.prototype.getSkilllevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Frame_Info.prototype.setSkilllevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 8, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Frame_Info = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, proto.message.SC_Frame_Info.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Frame_Info, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Frame_Info.displayName = 'proto.message.SC_Frame_Info';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.SC_Frame_Info.repeatedFields_ = [4,5,6,7,8,9];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Frame_Info.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Frame_Info} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Frame_Info.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1103, 0),
|
|
state: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
frame: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
fishframe: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
leaveplayersList: jspb.Message.getRepeatedField(msg, 4),
|
|
newplayersList: jspb.Message.toObjectList(msg.getNewplayersList(),
|
|
proto.message.Fish_Player.toObject, includeInstance),
|
|
newgroupsList: jspb.Message.toObjectList(msg.getNewgroupsList(),
|
|
proto.message.Fish_Group.toObject, includeInstance),
|
|
newdamagersList: jspb.Message.toObjectList(msg.getNewdamagersList(),
|
|
proto.message.Fish_Damager.toObject, includeInstance),
|
|
playerframesList: jspb.Message.toObjectList(msg.getPlayerframesList(),
|
|
proto.message.Fish_Player_Frame.toObject, includeInstance),
|
|
removefishesList: jspb.Message.getRepeatedField(msg, 9),
|
|
bossinfo: (f = msg.getBossinfo()) && proto.message.Fish_Boss.toObject(includeInstance, f),
|
|
bg: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.message.SC_Frame_Info}
|
|
*/
|
|
proto.message.SC_Frame_Info.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Frame_Info;
|
|
return proto.message.SC_Frame_Info.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Frame_Info} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Frame_Info}
|
|
*/
|
|
proto.message.SC_Frame_Info.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1103:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setState(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setFrame(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setFishframe(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {!Array.<number>} */ (reader.readPackedInt64());
|
|
msg.setLeaveplayersList(value);
|
|
break;
|
|
case 5:
|
|
var value = new proto.message.Fish_Player;
|
|
reader.readMessage(value,proto.message.Fish_Player.deserializeBinaryFromReader);
|
|
msg.addNewplayers(value);
|
|
break;
|
|
case 6:
|
|
var value = new proto.message.Fish_Group;
|
|
reader.readMessage(value,proto.message.Fish_Group.deserializeBinaryFromReader);
|
|
msg.addNewgroups(value);
|
|
break;
|
|
case 7:
|
|
var value = new proto.message.Fish_Damager;
|
|
reader.readMessage(value,proto.message.Fish_Damager.deserializeBinaryFromReader);
|
|
msg.addNewdamagers(value);
|
|
break;
|
|
case 8:
|
|
var value = new proto.message.Fish_Player_Frame;
|
|
reader.readMessage(value,proto.message.Fish_Player_Frame.deserializeBinaryFromReader);
|
|
msg.addPlayerframes(value);
|
|
break;
|
|
case 9:
|
|
var value = /** @type {!Array.<number>} */ (reader.readPackedInt32());
|
|
msg.setRemovefishesList(value);
|
|
break;
|
|
case 10:
|
|
var value = new proto.message.Fish_Boss;
|
|
reader.readMessage(value,proto.message.Fish_Boss.deserializeBinaryFromReader);
|
|
msg.setBossinfo(value);
|
|
break;
|
|
case 11:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setBg(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Frame_Info.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Frame_Info} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Frame_Info.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1103,
|
|
f
|
|
);
|
|
}
|
|
f = message.getState();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFrame();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFishframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getLeaveplayersList();
|
|
if (f.length > 0) {
|
|
writer.writePackedInt64(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getNewplayersList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
5,
|
|
f,
|
|
proto.message.Fish_Player.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getNewgroupsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
6,
|
|
f,
|
|
proto.message.Fish_Group.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getNewdamagersList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
7,
|
|
f,
|
|
proto.message.Fish_Damager.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getPlayerframesList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
8,
|
|
f,
|
|
proto.message.Fish_Player_Frame.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getRemovefishesList();
|
|
if (f.length > 0) {
|
|
writer.writePackedInt32(
|
|
9,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBossinfo();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
10,
|
|
f,
|
|
proto.message.Fish_Boss.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getBg();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
11,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1103;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1103, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Frame_Info.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1103, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 state = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getState = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Frame_Info.prototype.setState = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 frame = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getFrame = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Frame_Info.prototype.setFrame = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 fishFrame = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getFishframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Frame_Info.prototype.setFishframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated int64 leavePlayers = 4;
|
|
* @return {!Array.<number>}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getLeaveplayersList = function() {
|
|
return /** @type {!Array.<number>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<number>} value */
|
|
proto.message.SC_Frame_Info.prototype.setLeaveplayersList = function(value) {
|
|
jspb.Message.setField(this, 4, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!number} value
|
|
* @param {number=} opt_index
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.addLeaveplayers = function(value, opt_index) {
|
|
jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Frame_Info.prototype.clearLeaveplayersList = function() {
|
|
this.setLeaveplayersList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Player newPlayers = 5;
|
|
* @return {!Array.<!proto.message.Fish_Player>}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getNewplayersList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Player>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Player, 5));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Player>} value */
|
|
proto.message.SC_Frame_Info.prototype.setNewplayersList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Player=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Player}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.addNewplayers = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.message.Fish_Player, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Frame_Info.prototype.clearNewplayersList = function() {
|
|
this.setNewplayersList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Group newGroups = 6;
|
|
* @return {!Array.<!proto.message.Fish_Group>}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getNewgroupsList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Group>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Group, 6));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Group>} value */
|
|
proto.message.SC_Frame_Info.prototype.setNewgroupsList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Group=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Group}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.addNewgroups = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.message.Fish_Group, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Frame_Info.prototype.clearNewgroupsList = function() {
|
|
this.setNewgroupsList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Damager newDamagers = 7;
|
|
* @return {!Array.<!proto.message.Fish_Damager>}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getNewdamagersList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Damager>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Damager, 7));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Damager>} value */
|
|
proto.message.SC_Frame_Info.prototype.setNewdamagersList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Damager=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Damager}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.addNewdamagers = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.message.Fish_Damager, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Frame_Info.prototype.clearNewdamagersList = function() {
|
|
this.setNewdamagersList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Player_Frame playerFrames = 8;
|
|
* @return {!Array.<!proto.message.Fish_Player_Frame>}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getPlayerframesList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Player_Frame>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Player_Frame, 8));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Player_Frame>} value */
|
|
proto.message.SC_Frame_Info.prototype.setPlayerframesList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Player_Frame=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Player_Frame}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.addPlayerframes = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.message.Fish_Player_Frame, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Frame_Info.prototype.clearPlayerframesList = function() {
|
|
this.setPlayerframesList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated int32 removeFishes = 9;
|
|
* @return {!Array.<number>}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getRemovefishesList = function() {
|
|
return /** @type {!Array.<number>} */ (jspb.Message.getRepeatedField(this, 9));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<number>} value */
|
|
proto.message.SC_Frame_Info.prototype.setRemovefishesList = function(value) {
|
|
jspb.Message.setField(this, 9, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!number} value
|
|
* @param {number=} opt_index
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.addRemovefishes = function(value, opt_index) {
|
|
jspb.Message.addToRepeatedField(this, 9, value, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Frame_Info.prototype.clearRemovefishesList = function() {
|
|
this.setRemovefishesList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Fish_Boss bossInfo = 10;
|
|
* @return {?proto.message.Fish_Boss}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getBossinfo = function() {
|
|
return /** @type{?proto.message.Fish_Boss} */ (
|
|
jspb.Message.getWrapperField(this, proto.message.Fish_Boss, 10));
|
|
};
|
|
|
|
|
|
/** @param {?proto.message.Fish_Boss|undefined} value */
|
|
proto.message.SC_Frame_Info.prototype.setBossinfo = function(value) {
|
|
jspb.Message.setWrapperField(this, 10, value);
|
|
};
|
|
|
|
|
|
proto.message.SC_Frame_Info.prototype.clearBossinfo = function() {
|
|
this.setBossinfo(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {!boolean}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.hasBossinfo = function() {
|
|
return jspb.Message.getField(this, 10) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string bg = 11;
|
|
* @return {string}
|
|
*/
|
|
proto.message.SC_Frame_Info.prototype.getBg = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.SC_Frame_Info.prototype.setBg = function(value) {
|
|
jspb.Message.setProto3StringField(this, 11, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.CS_Arm_Change = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.CS_Arm_Change, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.CS_Arm_Change.displayName = 'proto.message.CS_Arm_Change';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.CS_Arm_Change.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.CS_Arm_Change.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.CS_Arm_Change} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Arm_Change.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1107, 0),
|
|
armavatar: 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.message.CS_Arm_Change}
|
|
*/
|
|
proto.message.CS_Arm_Change.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.CS_Arm_Change;
|
|
return proto.message.CS_Arm_Change.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.CS_Arm_Change} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.CS_Arm_Change}
|
|
*/
|
|
proto.message.CS_Arm_Change.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1107:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setArmavatar(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.CS_Arm_Change.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.CS_Arm_Change.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.CS_Arm_Change} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Arm_Change.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1107,
|
|
f
|
|
);
|
|
}
|
|
f = message.getArmavatar();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1107;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Arm_Change.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1107, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Arm_Change.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1107, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 armAvatar = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Arm_Change.prototype.getArmavatar = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Arm_Change.prototype.setArmavatar = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Arm_Change_Result = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Arm_Change_Result, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Arm_Change_Result.displayName = 'proto.message.SC_Arm_Change_Result';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Arm_Change_Result.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Arm_Change_Result.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Arm_Change_Result} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Arm_Change_Result.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1108, 0),
|
|
result: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
armavatar: 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.message.SC_Arm_Change_Result}
|
|
*/
|
|
proto.message.SC_Arm_Change_Result.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Arm_Change_Result;
|
|
return proto.message.SC_Arm_Change_Result.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Arm_Change_Result} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Arm_Change_Result}
|
|
*/
|
|
proto.message.SC_Arm_Change_Result.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1108:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setResult(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setArmavatar(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Arm_Change_Result.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Arm_Change_Result.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Arm_Change_Result} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Arm_Change_Result.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1108,
|
|
f
|
|
);
|
|
}
|
|
f = message.getResult();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getArmavatar();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1108;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Arm_Change_Result.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1108, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Arm_Change_Result.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1108, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 result = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Arm_Change_Result.prototype.getResult = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Arm_Change_Result.prototype.setResult = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 armAvatar = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Arm_Change_Result.prototype.getArmavatar = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Arm_Change_Result.prototype.setArmavatar = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Broadcast = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Broadcast, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Broadcast.displayName = 'proto.message.SC_Broadcast';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Broadcast.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Broadcast.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Broadcast} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Broadcast.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1109, 0),
|
|
pos: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
content: 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.message.SC_Broadcast}
|
|
*/
|
|
proto.message.SC_Broadcast.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Broadcast;
|
|
return proto.message.SC_Broadcast.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Broadcast} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Broadcast}
|
|
*/
|
|
proto.message.SC_Broadcast.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1109:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setPos(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setContent(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Broadcast.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Broadcast.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Broadcast} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Broadcast.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1109,
|
|
f
|
|
);
|
|
}
|
|
f = message.getPos();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getContent();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1109;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Broadcast.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1109, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Broadcast.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1109, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 pos = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Broadcast.prototype.getPos = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Broadcast.prototype.setPos = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string content = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.message.SC_Broadcast.prototype.getContent = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.SC_Broadcast.prototype.setContent = function(value) {
|
|
jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.CS_Communicate = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.CS_Communicate, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.CS_Communicate.displayName = 'proto.message.CS_Communicate';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.CS_Communicate.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.CS_Communicate.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.CS_Communicate} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Communicate.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1110, 0),
|
|
targetid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
targetpos: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
type: 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.message.CS_Communicate}
|
|
*/
|
|
proto.message.CS_Communicate.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.CS_Communicate;
|
|
return proto.message.CS_Communicate.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.CS_Communicate} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.CS_Communicate}
|
|
*/
|
|
proto.message.CS_Communicate.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1110:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setTargetid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setTargetpos(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setType(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.CS_Communicate.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.CS_Communicate.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.CS_Communicate} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Communicate.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1110,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTargetid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTargetpos();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getType();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1110;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Communicate.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1110, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Communicate.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1110, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 targetId = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Communicate.prototype.getTargetid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Communicate.prototype.setTargetid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 targetPos = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Communicate.prototype.getTargetpos = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Communicate.prototype.setTargetpos = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 type = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Communicate.prototype.getType = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Communicate.prototype.setType = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Communicate_Result = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, proto.message.SC_Communicate_Result.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Communicate_Result, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Communicate_Result.displayName = 'proto.message.SC_Communicate_Result';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.SC_Communicate_Result.repeatedFields_ = [4];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Communicate_Result.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Communicate_Result.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Communicate_Result} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Communicate_Result.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1111, 0),
|
|
minepos: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
targetpos: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
type: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
infosList: jspb.Message.toObjectList(msg.getInfosList(),
|
|
proto.message.Communicate_Info.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.message.SC_Communicate_Result}
|
|
*/
|
|
proto.message.SC_Communicate_Result.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Communicate_Result;
|
|
return proto.message.SC_Communicate_Result.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Communicate_Result} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Communicate_Result}
|
|
*/
|
|
proto.message.SC_Communicate_Result.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1111:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMinepos(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setTargetpos(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setType(value);
|
|
break;
|
|
case 4:
|
|
var value = new proto.message.Communicate_Info;
|
|
reader.readMessage(value,proto.message.Communicate_Info.deserializeBinaryFromReader);
|
|
msg.addInfos(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Communicate_Result.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Communicate_Result.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Communicate_Result} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Communicate_Result.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1111,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMinepos();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTargetpos();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getType();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getInfosList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
4,
|
|
f,
|
|
proto.message.Communicate_Info.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1111;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Communicate_Result.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1111, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Communicate_Result.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1111, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 minePos = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Communicate_Result.prototype.getMinepos = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Communicate_Result.prototype.setMinepos = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 targetPos = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Communicate_Result.prototype.getTargetpos = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Communicate_Result.prototype.setTargetpos = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 type = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Communicate_Result.prototype.getType = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Communicate_Result.prototype.setType = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Communicate_Info infos = 4;
|
|
* @return {!Array.<!proto.message.Communicate_Info>}
|
|
*/
|
|
proto.message.SC_Communicate_Result.prototype.getInfosList = function() {
|
|
return /** @type{!Array.<!proto.message.Communicate_Info>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Communicate_Info, 4));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Communicate_Info>} value */
|
|
proto.message.SC_Communicate_Result.prototype.setInfosList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Communicate_Info=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Communicate_Info}
|
|
*/
|
|
proto.message.SC_Communicate_Result.prototype.addInfos = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.message.Communicate_Info, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Communicate_Result.prototype.clearInfosList = function() {
|
|
this.setInfosList([]);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Fish_Player = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.message.Fish_Player.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.Fish_Player, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Fish_Player.displayName = 'proto.message.Fish_Player';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.Fish_Player.repeatedFields_ = [7];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Fish_Player.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Fish_Player.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Fish_Player} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Player.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
uid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
pos: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
armlevel: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
gold: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
armavatar: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
skillsList: jspb.Message.toObjectList(msg.getSkillsList(),
|
|
proto.message.Fish_Skill.toObject, includeInstance),
|
|
diamond: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
quan: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
coupon: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
state: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
gamecard: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
stateparam: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
level: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
exp: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
arenabullet: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
arenascore: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
matchscore: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
bossinfo: (f = msg.getBossinfo()) && proto.message.Player_Boss_Info.toObject(includeInstance, f),
|
|
viplevel: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
|
extra: jspb.Message.getFieldWithDefault(msg, 21, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.message.Fish_Player}
|
|
*/
|
|
proto.message.Fish_Player.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Fish_Player;
|
|
return proto.message.Fish_Player.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Fish_Player} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Fish_Player}
|
|
*/
|
|
proto.message.Fish_Player.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.setUid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setName(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setPos(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setArmlevel(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setGold(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setArmavatar(value);
|
|
break;
|
|
case 7:
|
|
var value = new proto.message.Fish_Skill;
|
|
reader.readMessage(value,proto.message.Fish_Skill.deserializeBinaryFromReader);
|
|
msg.addSkills(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setDiamond(value);
|
|
break;
|
|
case 9:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setQuan(value);
|
|
break;
|
|
case 10:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setCoupon(value);
|
|
break;
|
|
case 11:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setState(value);
|
|
break;
|
|
case 12:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setGamecard(value);
|
|
break;
|
|
case 13:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setStateparam(value);
|
|
break;
|
|
case 14:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setLevel(value);
|
|
break;
|
|
case 15:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setExp(value);
|
|
break;
|
|
case 16:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setArenabullet(value);
|
|
break;
|
|
case 17:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setArenascore(value);
|
|
break;
|
|
case 18:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMatchscore(value);
|
|
break;
|
|
case 19:
|
|
var value = new proto.message.Player_Boss_Info;
|
|
reader.readMessage(value,proto.message.Player_Boss_Info.deserializeBinaryFromReader);
|
|
msg.setBossinfo(value);
|
|
break;
|
|
case 20:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setViplevel(value);
|
|
break;
|
|
case 21:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setExtra(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Fish_Player.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Fish_Player.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Fish_Player} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Player.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getUid();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getName();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getPos();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getArmlevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getGold();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getArmavatar();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSkillsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
7,
|
|
f,
|
|
proto.message.Fish_Skill.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getDiamond();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
f = message.getQuan();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
9,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCoupon();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
10,
|
|
f
|
|
);
|
|
}
|
|
f = message.getState();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
11,
|
|
f
|
|
);
|
|
}
|
|
f = message.getGamecard();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
12,
|
|
f
|
|
);
|
|
}
|
|
f = message.getStateparam();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
13,
|
|
f
|
|
);
|
|
}
|
|
f = message.getLevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
14,
|
|
f
|
|
);
|
|
}
|
|
f = message.getExp();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
15,
|
|
f
|
|
);
|
|
}
|
|
f = message.getArenabullet();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
16,
|
|
f
|
|
);
|
|
}
|
|
f = message.getArenascore();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
17,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMatchscore();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
18,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBossinfo();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
19,
|
|
f,
|
|
proto.message.Player_Boss_Info.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getViplevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
20,
|
|
f
|
|
);
|
|
}
|
|
f = message.getExtra();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
21,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 uid = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getUid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setUid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string name = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getName = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.Fish_Player.prototype.setName = function(value) {
|
|
jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 pos = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getPos = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setPos = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 armLevel = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getArmlevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setArmlevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 gold = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getGold = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setGold = function(value) {
|
|
jspb.Message.setProto3IntField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 armAvatar = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getArmavatar = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setArmavatar = function(value) {
|
|
jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Skill skills = 7;
|
|
* @return {!Array.<!proto.message.Fish_Skill>}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getSkillsList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Skill>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Skill, 7));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Skill>} value */
|
|
proto.message.Fish_Player.prototype.setSkillsList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Skill=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Skill}
|
|
*/
|
|
proto.message.Fish_Player.prototype.addSkills = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.message.Fish_Skill, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.Fish_Player.prototype.clearSkillsList = function() {
|
|
this.setSkillsList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 diamond = 8;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getDiamond = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setDiamond = function(value) {
|
|
jspb.Message.setProto3IntField(this, 8, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 quan = 9;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getQuan = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setQuan = function(value) {
|
|
jspb.Message.setProto3IntField(this, 9, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 coupon = 10;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getCoupon = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setCoupon = function(value) {
|
|
jspb.Message.setProto3IntField(this, 10, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 state = 11;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getState = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setState = function(value) {
|
|
jspb.Message.setProto3IntField(this, 11, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 gameCard = 12;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getGamecard = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setGamecard = function(value) {
|
|
jspb.Message.setProto3IntField(this, 12, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 stateParam = 13;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getStateparam = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setStateparam = function(value) {
|
|
jspb.Message.setProto3IntField(this, 13, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 level = 14;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getLevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setLevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 14, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 exp = 15;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getExp = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setExp = function(value) {
|
|
jspb.Message.setProto3IntField(this, 15, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 arenaBullet = 16;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getArenabullet = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setArenabullet = function(value) {
|
|
jspb.Message.setProto3IntField(this, 16, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 arenaScore = 17;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getArenascore = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setArenascore = function(value) {
|
|
jspb.Message.setProto3IntField(this, 17, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 matchScore = 18;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getMatchscore = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setMatchscore = function(value) {
|
|
jspb.Message.setProto3IntField(this, 18, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Player_Boss_Info bossInfo = 19;
|
|
* @return {?proto.message.Player_Boss_Info}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getBossinfo = function() {
|
|
return /** @type{?proto.message.Player_Boss_Info} */ (
|
|
jspb.Message.getWrapperField(this, proto.message.Player_Boss_Info, 19));
|
|
};
|
|
|
|
|
|
/** @param {?proto.message.Player_Boss_Info|undefined} value */
|
|
proto.message.Fish_Player.prototype.setBossinfo = function(value) {
|
|
jspb.Message.setWrapperField(this, 19, value);
|
|
};
|
|
|
|
|
|
proto.message.Fish_Player.prototype.clearBossinfo = function() {
|
|
this.setBossinfo(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {!boolean}
|
|
*/
|
|
proto.message.Fish_Player.prototype.hasBossinfo = function() {
|
|
return jspb.Message.getField(this, 19) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 vipLevel = 20;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getViplevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player.prototype.setViplevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 20, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string extra = 21;
|
|
* @return {string}
|
|
*/
|
|
proto.message.Fish_Player.prototype.getExtra = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.Fish_Player.prototype.setExtra = function(value) {
|
|
jspb.Message.setProto3StringField(this, 21, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Fish_Skill = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.message.Fish_Skill, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Fish_Skill.displayName = 'proto.message.Fish_Skill';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Fish_Skill.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Fish_Skill.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Fish_Skill} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Skill.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
itemid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
beginframe: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
endframe: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
cdframe: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
skillid: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
skilllevel: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
skillresult: jspb.Message.getFieldWithDefault(msg, 7, 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.message.Fish_Skill}
|
|
*/
|
|
proto.message.Fish_Skill.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Fish_Skill;
|
|
return proto.message.Fish_Skill.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Fish_Skill} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Fish_Skill}
|
|
*/
|
|
proto.message.Fish_Skill.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.setItemid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setBeginframe(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setEndframe(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setCdframe(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSkillid(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSkilllevel(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSkillresult(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Fish_Skill.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Fish_Skill.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Fish_Skill} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Skill.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getItemid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBeginframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getEndframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCdframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSkillid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSkilllevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSkillresult();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 itemId = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Skill.prototype.getItemid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Skill.prototype.setItemid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 beginFrame = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Skill.prototype.getBeginframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Skill.prototype.setBeginframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 endFrame = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Skill.prototype.getEndframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Skill.prototype.setEndframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 cdFrame = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Skill.prototype.getCdframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Skill.prototype.setCdframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 skillId = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Skill.prototype.getSkillid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Skill.prototype.setSkillid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 skillLevel = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Skill.prototype.getSkilllevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Skill.prototype.setSkilllevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 skillResult = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Skill.prototype.getSkillresult = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Skill.prototype.setSkillresult = function(value) {
|
|
jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Fish_Group = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.message.Fish_Group.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.Fish_Group, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Fish_Group.displayName = 'proto.message.Fish_Group';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.Fish_Group.repeatedFields_ = [5];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Fish_Group.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Fish_Group.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Fish_Group} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Group.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
uid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
tempid: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
beginframe: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
endframe: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
fishesList: jspb.Message.toObjectList(msg.getFishesList(),
|
|
proto.message.Fish.toObject, includeInstance),
|
|
sourcepos: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
delayframe: jspb.Message.getFieldWithDefault(msg, 7, 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.message.Fish_Group}
|
|
*/
|
|
proto.message.Fish_Group.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Fish_Group;
|
|
return proto.message.Fish_Group.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Fish_Group} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Fish_Group}
|
|
*/
|
|
proto.message.Fish_Group.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.setUid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setTempid(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setBeginframe(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setEndframe(value);
|
|
break;
|
|
case 5:
|
|
var value = new proto.message.Fish;
|
|
reader.readMessage(value,proto.message.Fish.deserializeBinaryFromReader);
|
|
msg.addFishes(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSourcepos(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setDelayframe(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Fish_Group.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Fish_Group.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Fish_Group} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Group.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getUid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTempid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBeginframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getEndframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFishesList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
5,
|
|
f,
|
|
proto.message.Fish.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getSourcepos();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDelayframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 uid = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Group.prototype.getUid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Group.prototype.setUid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 tempId = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Group.prototype.getTempid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Group.prototype.setTempid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 beginFrame = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Group.prototype.getBeginframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Group.prototype.setBeginframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 endFrame = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Group.prototype.getEndframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Group.prototype.setEndframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish fishes = 5;
|
|
* @return {!Array.<!proto.message.Fish>}
|
|
*/
|
|
proto.message.Fish_Group.prototype.getFishesList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish, 5));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish>} value */
|
|
proto.message.Fish_Group.prototype.setFishesList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish}
|
|
*/
|
|
proto.message.Fish_Group.prototype.addFishes = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.message.Fish, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.Fish_Group.prototype.clearFishesList = function() {
|
|
this.setFishesList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 sourcePos = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Group.prototype.getSourcepos = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Group.prototype.setSourcepos = function(value) {
|
|
jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 delayFrame = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Group.prototype.getDelayframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Group.prototype.setDelayframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Fish = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.message.Fish, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Fish.displayName = 'proto.message.Fish';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Fish.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Fish.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Fish} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
uid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
state: 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.message.Fish}
|
|
*/
|
|
proto.message.Fish.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Fish;
|
|
return proto.message.Fish.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Fish} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Fish}
|
|
*/
|
|
proto.message.Fish.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.setUid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setState(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Fish.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Fish.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Fish} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getUid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getState();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 uid = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish.prototype.getUid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish.prototype.setUid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 state = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish.prototype.getState = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish.prototype.setState = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Fish_Damager = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.message.Fish_Damager, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Fish_Damager.displayName = 'proto.message.Fish_Damager';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Fish_Damager.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Fish_Damager} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Damager.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
uid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
level: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
type: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
avatar: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
pos: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
beginx: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
beginy: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
beginframe: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
dirx: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
diry: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
speed: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
target: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
transformframe: jspb.Message.getFieldWithDefault(msg, 13, 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.message.Fish_Damager}
|
|
*/
|
|
proto.message.Fish_Damager.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Fish_Damager;
|
|
return proto.message.Fish_Damager.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Fish_Damager} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Fish_Damager}
|
|
*/
|
|
proto.message.Fish_Damager.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.setUid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setLevel(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setType(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setAvatar(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setPos(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setBeginx(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setBeginy(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setBeginframe(value);
|
|
break;
|
|
case 9:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setDirx(value);
|
|
break;
|
|
case 10:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setDiry(value);
|
|
break;
|
|
case 11:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSpeed(value);
|
|
break;
|
|
case 12:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setTarget(value);
|
|
break;
|
|
case 13:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setTransformframe(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Fish_Damager.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Fish_Damager} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Damager.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getUid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getLevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getType();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getAvatar();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getPos();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBeginx();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBeginy();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBeginframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDirx();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
9,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDiry();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
10,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSpeed();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
11,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTarget();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
12,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTransformframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
13,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 uid = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getUid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setUid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 level = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getLevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setLevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 type = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getType = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setType = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 avatar = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getAvatar = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setAvatar = function(value) {
|
|
jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 pos = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getPos = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setPos = function(value) {
|
|
jspb.Message.setProto3IntField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 beginX = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getBeginx = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setBeginx = function(value) {
|
|
jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 beginY = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getBeginy = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setBeginy = function(value) {
|
|
jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 beginFrame = 8;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getBeginframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setBeginframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 8, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 dirX = 9;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getDirx = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setDirx = function(value) {
|
|
jspb.Message.setProto3IntField(this, 9, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 dirY = 10;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getDiry = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setDiry = function(value) {
|
|
jspb.Message.setProto3IntField(this, 10, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 speed = 11;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getSpeed = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setSpeed = function(value) {
|
|
jspb.Message.setProto3IntField(this, 11, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 target = 12;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getTarget = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setTarget = function(value) {
|
|
jspb.Message.setProto3IntField(this, 12, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 transformFrame = 13;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Damager.prototype.getTransformframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Damager.prototype.setTransformframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 13, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Fish_Hit = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.message.Fish_Hit.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.Fish_Hit, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Fish_Hit.displayName = 'proto.message.Fish_Hit';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.Fish_Hit.repeatedFields_ = [4];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Fish_Hit.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Fish_Hit} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Hit.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
uid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
x: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
y: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
hitfishesList: jspb.Message.toObjectList(msg.getHitfishesList(),
|
|
proto.message.Fish_Drop.toObject, includeInstance),
|
|
extrainfo: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
dropgold: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
costgold: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
hittype: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
droptimes: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
firelevel: jspb.Message.getFieldWithDefault(msg, 10, 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.message.Fish_Hit}
|
|
*/
|
|
proto.message.Fish_Hit.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Fish_Hit;
|
|
return proto.message.Fish_Hit.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Fish_Hit} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Fish_Hit}
|
|
*/
|
|
proto.message.Fish_Hit.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.setUid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setX(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setY(value);
|
|
break;
|
|
case 4:
|
|
var value = new proto.message.Fish_Drop;
|
|
reader.readMessage(value,proto.message.Fish_Drop.deserializeBinaryFromReader);
|
|
msg.addHitfishes(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setExtrainfo(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setDropgold(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setCostgold(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setHittype(value);
|
|
break;
|
|
case 9:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setDroptimes(value);
|
|
break;
|
|
case 10:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setFirelevel(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Fish_Hit.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Fish_Hit} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Hit.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getUid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getX();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getY();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getHitfishesList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
4,
|
|
f,
|
|
proto.message.Fish_Drop.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getExtrainfo();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDropgold();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCostgold();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getHittype();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDroptimes();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
9,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFirelevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
10,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 uid = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.getUid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Hit.prototype.setUid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 x = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.getX = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Hit.prototype.setX = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 y = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.getY = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Hit.prototype.setY = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Drop hitFishes = 4;
|
|
* @return {!Array.<!proto.message.Fish_Drop>}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.getHitfishesList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Drop>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Drop, 4));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Drop>} value */
|
|
proto.message.Fish_Hit.prototype.setHitfishesList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Drop=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Drop}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.addHitfishes = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.message.Fish_Drop, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.Fish_Hit.prototype.clearHitfishesList = function() {
|
|
this.setHitfishesList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string extraInfo = 5;
|
|
* @return {string}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.getExtrainfo = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.Fish_Hit.prototype.setExtrainfo = function(value) {
|
|
jspb.Message.setProto3StringField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 dropGold = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.getDropgold = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Hit.prototype.setDropgold = function(value) {
|
|
jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 costGold = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.getCostgold = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Hit.prototype.setCostgold = function(value) {
|
|
jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 hitType = 8;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.getHittype = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Hit.prototype.setHittype = function(value) {
|
|
jspb.Message.setProto3IntField(this, 8, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 dropTimes = 9;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.getDroptimes = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Hit.prototype.setDroptimes = function(value) {
|
|
jspb.Message.setProto3IntField(this, 9, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 fireLevel = 10;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Hit.prototype.getFirelevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Hit.prototype.setFirelevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 10, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Fish_Player_Frame = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.message.Fish_Player_Frame.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.Fish_Player_Frame, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Fish_Player_Frame.displayName = 'proto.message.Fish_Player_Frame';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.Fish_Player_Frame.repeatedFields_ = [3,4];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Fish_Player_Frame.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Fish_Player_Frame} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Player_Frame.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
pos: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
money: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
newskillsList: jspb.Message.toObjectList(msg.getNewskillsList(),
|
|
proto.message.Fish_Skill.toObject, includeInstance),
|
|
successhitsList: jspb.Message.toObjectList(msg.getSuccesshitsList(),
|
|
proto.message.Fish_Hit.toObject, includeInstance),
|
|
firelevel: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
diamond: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
quan: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
coupon: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
state: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
clientevent: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
armavatar: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
gamecard: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
stateparam: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
level: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
exp: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
arenabullet: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
arenascore: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
matchscore: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
bossinfo: (f = msg.getBossinfo()) && proto.message.Player_Boss_Info.toObject(includeInstance, f),
|
|
viplevel: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
|
extra: jspb.Message.getFieldWithDefault(msg, 21, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.message.Fish_Player_Frame}
|
|
*/
|
|
proto.message.Fish_Player_Frame.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Fish_Player_Frame;
|
|
return proto.message.Fish_Player_Frame.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Fish_Player_Frame} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Fish_Player_Frame}
|
|
*/
|
|
proto.message.Fish_Player_Frame.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.setPos(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setMoney(value);
|
|
break;
|
|
case 3:
|
|
var value = new proto.message.Fish_Skill;
|
|
reader.readMessage(value,proto.message.Fish_Skill.deserializeBinaryFromReader);
|
|
msg.addNewskills(value);
|
|
break;
|
|
case 4:
|
|
var value = new proto.message.Fish_Hit;
|
|
reader.readMessage(value,proto.message.Fish_Hit.deserializeBinaryFromReader);
|
|
msg.addSuccesshits(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setFirelevel(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setDiamond(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setQuan(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setCoupon(value);
|
|
break;
|
|
case 9:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setState(value);
|
|
break;
|
|
case 10:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setClientevent(value);
|
|
break;
|
|
case 11:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setArmavatar(value);
|
|
break;
|
|
case 12:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setGamecard(value);
|
|
break;
|
|
case 13:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setStateparam(value);
|
|
break;
|
|
case 14:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setLevel(value);
|
|
break;
|
|
case 15:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setExp(value);
|
|
break;
|
|
case 16:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setArenabullet(value);
|
|
break;
|
|
case 17:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setArenascore(value);
|
|
break;
|
|
case 18:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMatchscore(value);
|
|
break;
|
|
case 19:
|
|
var value = new proto.message.Player_Boss_Info;
|
|
reader.readMessage(value,proto.message.Player_Boss_Info.deserializeBinaryFromReader);
|
|
msg.setBossinfo(value);
|
|
break;
|
|
case 20:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setViplevel(value);
|
|
break;
|
|
case 21:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setExtra(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Fish_Player_Frame.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Fish_Player_Frame} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Player_Frame.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getPos();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMoney();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getNewskillsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
3,
|
|
f,
|
|
proto.message.Fish_Skill.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getSuccesshitsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
4,
|
|
f,
|
|
proto.message.Fish_Hit.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getFirelevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDiamond();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getQuan();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCoupon();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
f = message.getState();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
9,
|
|
f
|
|
);
|
|
}
|
|
f = message.getClientevent();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
10,
|
|
f
|
|
);
|
|
}
|
|
f = message.getArmavatar();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
11,
|
|
f
|
|
);
|
|
}
|
|
f = message.getGamecard();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
12,
|
|
f
|
|
);
|
|
}
|
|
f = message.getStateparam();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
13,
|
|
f
|
|
);
|
|
}
|
|
f = message.getLevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
14,
|
|
f
|
|
);
|
|
}
|
|
f = message.getExp();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
15,
|
|
f
|
|
);
|
|
}
|
|
f = message.getArenabullet();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
16,
|
|
f
|
|
);
|
|
}
|
|
f = message.getArenascore();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
17,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMatchscore();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
18,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBossinfo();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
19,
|
|
f,
|
|
proto.message.Player_Boss_Info.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getViplevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
20,
|
|
f
|
|
);
|
|
}
|
|
f = message.getExtra();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
21,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 pos = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getPos = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setPos = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 money = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getMoney = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setMoney = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Skill newSkills = 3;
|
|
* @return {!Array.<!proto.message.Fish_Skill>}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getNewskillsList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Skill>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Skill, 3));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Skill>} value */
|
|
proto.message.Fish_Player_Frame.prototype.setNewskillsList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Skill=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Skill}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.addNewskills = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.message.Fish_Skill, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.Fish_Player_Frame.prototype.clearNewskillsList = function() {
|
|
this.setNewskillsList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Fish_Hit successHits = 4;
|
|
* @return {!Array.<!proto.message.Fish_Hit>}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getSuccesshitsList = function() {
|
|
return /** @type{!Array.<!proto.message.Fish_Hit>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Fish_Hit, 4));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Fish_Hit>} value */
|
|
proto.message.Fish_Player_Frame.prototype.setSuccesshitsList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Fish_Hit=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Fish_Hit}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.addSuccesshits = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.message.Fish_Hit, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.Fish_Player_Frame.prototype.clearSuccesshitsList = function() {
|
|
this.setSuccesshitsList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 fireLevel = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getFirelevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setFirelevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 diamond = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getDiamond = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setDiamond = function(value) {
|
|
jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 quan = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getQuan = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setQuan = function(value) {
|
|
jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 coupon = 8;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getCoupon = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setCoupon = function(value) {
|
|
jspb.Message.setProto3IntField(this, 8, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 state = 9;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getState = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setState = function(value) {
|
|
jspb.Message.setProto3IntField(this, 9, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string clientEvent = 10;
|
|
* @return {string}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getClientevent = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.Fish_Player_Frame.prototype.setClientevent = function(value) {
|
|
jspb.Message.setProto3StringField(this, 10, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 armAvatar = 11;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getArmavatar = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setArmavatar = function(value) {
|
|
jspb.Message.setProto3IntField(this, 11, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 gameCard = 12;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getGamecard = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setGamecard = function(value) {
|
|
jspb.Message.setProto3IntField(this, 12, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 stateParam = 13;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getStateparam = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setStateparam = function(value) {
|
|
jspb.Message.setProto3IntField(this, 13, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 level = 14;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getLevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setLevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 14, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 exp = 15;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getExp = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setExp = function(value) {
|
|
jspb.Message.setProto3IntField(this, 15, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 arenaBullet = 16;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getArenabullet = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setArenabullet = function(value) {
|
|
jspb.Message.setProto3IntField(this, 16, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 arenaScore = 17;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getArenascore = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setArenascore = function(value) {
|
|
jspb.Message.setProto3IntField(this, 17, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 matchScore = 18;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getMatchscore = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setMatchscore = function(value) {
|
|
jspb.Message.setProto3IntField(this, 18, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Player_Boss_Info bossInfo = 19;
|
|
* @return {?proto.message.Player_Boss_Info}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getBossinfo = function() {
|
|
return /** @type{?proto.message.Player_Boss_Info} */ (
|
|
jspb.Message.getWrapperField(this, proto.message.Player_Boss_Info, 19));
|
|
};
|
|
|
|
|
|
/** @param {?proto.message.Player_Boss_Info|undefined} value */
|
|
proto.message.Fish_Player_Frame.prototype.setBossinfo = function(value) {
|
|
jspb.Message.setWrapperField(this, 19, value);
|
|
};
|
|
|
|
|
|
proto.message.Fish_Player_Frame.prototype.clearBossinfo = function() {
|
|
this.setBossinfo(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {!boolean}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.hasBossinfo = function() {
|
|
return jspb.Message.getField(this, 19) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 vipLevel = 20;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getViplevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Player_Frame.prototype.setViplevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 20, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string extra = 21;
|
|
* @return {string}
|
|
*/
|
|
proto.message.Fish_Player_Frame.prototype.getExtra = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.Fish_Player_Frame.prototype.setExtra = function(value) {
|
|
jspb.Message.setProto3StringField(this, 21, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Fish_Drop = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.message.Fish_Drop.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.Fish_Drop, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Fish_Drop.displayName = 'proto.message.Fish_Drop';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.Fish_Drop.repeatedFields_ = [5,8];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Fish_Drop.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Fish_Drop} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Drop.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
uid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
dropgold: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
dropdiamond: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
dropcoupon: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
dropitemsList: jspb.Message.getRepeatedField(msg, 5),
|
|
gamecard: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
matchscore: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
dropquanList: jspb.Message.getRepeatedField(msg, 8),
|
|
extra: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
showtimes: jspb.Message.getFieldWithDefault(msg, 10, 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.message.Fish_Drop}
|
|
*/
|
|
proto.message.Fish_Drop.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Fish_Drop;
|
|
return proto.message.Fish_Drop.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Fish_Drop} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Fish_Drop}
|
|
*/
|
|
proto.message.Fish_Drop.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.setUid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setDropgold(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setDropdiamond(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setDropcoupon(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.addDropitems(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setGamecard(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMatchscore(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {!Array.<number>} */ (reader.readPackedInt32());
|
|
msg.setDropquanList(value);
|
|
break;
|
|
case 9:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setExtra(value);
|
|
break;
|
|
case 10:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setShowtimes(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Fish_Drop.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Fish_Drop} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Drop.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getUid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDropgold();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDropdiamond();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDropcoupon();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDropitemsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedString(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getGamecard();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMatchscore();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDropquanList();
|
|
if (f.length > 0) {
|
|
writer.writePackedInt32(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
f = message.getExtra();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
9,
|
|
f
|
|
);
|
|
}
|
|
f = message.getShowtimes();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
10,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 uid = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.getUid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Drop.prototype.setUid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 dropGold = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.getDropgold = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Drop.prototype.setDropgold = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 dropDiamond = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.getDropdiamond = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Drop.prototype.setDropdiamond = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 dropCoupon = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.getDropcoupon = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Drop.prototype.setDropcoupon = function(value) {
|
|
jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated string dropItems = 5;
|
|
* @return {!Array.<string>}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.getDropitemsList = function() {
|
|
return /** @type {!Array.<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<string>} value */
|
|
proto.message.Fish_Drop.prototype.setDropitemsList = function(value) {
|
|
jspb.Message.setField(this, 5, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!string} value
|
|
* @param {number=} opt_index
|
|
*/
|
|
proto.message.Fish_Drop.prototype.addDropitems = function(value, opt_index) {
|
|
jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.Fish_Drop.prototype.clearDropitemsList = function() {
|
|
this.setDropitemsList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 gameCard = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.getGamecard = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Drop.prototype.setGamecard = function(value) {
|
|
jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 matchScore = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.getMatchscore = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Drop.prototype.setMatchscore = function(value) {
|
|
jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated int32 dropQuan = 8;
|
|
* @return {!Array.<number>}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.getDropquanList = function() {
|
|
return /** @type {!Array.<number>} */ (jspb.Message.getRepeatedField(this, 8));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<number>} value */
|
|
proto.message.Fish_Drop.prototype.setDropquanList = function(value) {
|
|
jspb.Message.setField(this, 8, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!number} value
|
|
* @param {number=} opt_index
|
|
*/
|
|
proto.message.Fish_Drop.prototype.addDropquan = function(value, opt_index) {
|
|
jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.Fish_Drop.prototype.clearDropquanList = function() {
|
|
this.setDropquanList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string extra = 9;
|
|
* @return {string}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.getExtra = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.message.Fish_Drop.prototype.setExtra = function(value) {
|
|
jspb.Message.setProto3StringField(this, 9, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 showTimes = 10;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Drop.prototype.getShowtimes = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Drop.prototype.setShowtimes = function(value) {
|
|
jspb.Message.setProto3IntField(this, 10, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Fish_Boss = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.message.Fish_Boss, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Fish_Boss.displayName = 'proto.message.Fish_Boss';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Fish_Boss.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Fish_Boss.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Fish_Boss} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Boss.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
elsastate: 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.message.Fish_Boss}
|
|
*/
|
|
proto.message.Fish_Boss.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Fish_Boss;
|
|
return proto.message.Fish_Boss.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Fish_Boss} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Fish_Boss}
|
|
*/
|
|
proto.message.Fish_Boss.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.setElsastate(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Fish_Boss.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Fish_Boss.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Fish_Boss} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Fish_Boss.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getElsastate();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 elsaState = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Fish_Boss.prototype.getElsastate = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Fish_Boss.prototype.setElsastate = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Player_Boss_Info = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.message.Player_Boss_Info, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Player_Boss_Info.displayName = 'proto.message.Player_Boss_Info';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Player_Boss_Info.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Player_Boss_Info.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Player_Boss_Info} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Player_Boss_Info.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
hornlevel: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
hornenergy: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
horngain: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
spiritlevel: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
spiritframeleft: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
spiritperiod: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
spiritgoldtotal: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
horntransformframe: jspb.Message.getFieldWithDefault(msg, 8, 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.message.Player_Boss_Info}
|
|
*/
|
|
proto.message.Player_Boss_Info.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Player_Boss_Info;
|
|
return proto.message.Player_Boss_Info.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Player_Boss_Info} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Player_Boss_Info}
|
|
*/
|
|
proto.message.Player_Boss_Info.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.setHornlevel(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setHornenergy(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setHorngain(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSpiritlevel(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSpiritframeleft(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSpiritperiod(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSpiritgoldtotal(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setHorntransformframe(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Player_Boss_Info.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Player_Boss_Info.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Player_Boss_Info} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Player_Boss_Info.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getHornlevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getHornenergy();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getHorngain();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSpiritlevel();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSpiritframeleft();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSpiritperiod();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSpiritgoldtotal();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getHorntransformframe();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 hornLevel = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Player_Boss_Info.prototype.getHornlevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Player_Boss_Info.prototype.setHornlevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 hornEnergy = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Player_Boss_Info.prototype.getHornenergy = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Player_Boss_Info.prototype.setHornenergy = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 hornGain = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Player_Boss_Info.prototype.getHorngain = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Player_Boss_Info.prototype.setHorngain = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 spiritLevel = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Player_Boss_Info.prototype.getSpiritlevel = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Player_Boss_Info.prototype.setSpiritlevel = function(value) {
|
|
jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 spiritFrameLeft = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Player_Boss_Info.prototype.getSpiritframeleft = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Player_Boss_Info.prototype.setSpiritframeleft = function(value) {
|
|
jspb.Message.setProto3IntField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 spiritPeriod = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Player_Boss_Info.prototype.getSpiritperiod = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Player_Boss_Info.prototype.setSpiritperiod = function(value) {
|
|
jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 spiritGoldTotal = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Player_Boss_Info.prototype.getSpiritgoldtotal = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Player_Boss_Info.prototype.setSpiritgoldtotal = function(value) {
|
|
jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 hornTransformFrame = 8;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Player_Boss_Info.prototype.getHorntransformframe = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Player_Boss_Info.prototype.setHorntransformframe = function(value) {
|
|
jspb.Message.setProto3IntField(this, 8, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Communicate_Info = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.message.Communicate_Info, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Communicate_Info.displayName = 'proto.message.Communicate_Info';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Communicate_Info.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Communicate_Info.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Communicate_Info} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Communicate_Info.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
roleid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
pop: 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.message.Communicate_Info}
|
|
*/
|
|
proto.message.Communicate_Info.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Communicate_Info;
|
|
return proto.message.Communicate_Info.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Communicate_Info} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Communicate_Info}
|
|
*/
|
|
proto.message.Communicate_Info.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.setRoleid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setPop(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Communicate_Info.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Communicate_Info.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Communicate_Info} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Communicate_Info.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getRoleid();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getPop();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 roleId = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Communicate_Info.prototype.getRoleid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Communicate_Info.prototype.setRoleid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 pop = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Communicate_Info.prototype.getPop = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Communicate_Info.prototype.setPop = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.Counter = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.message.Counter, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.Counter.displayName = 'proto.message.Counter';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.Counter.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.Counter.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.Counter} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Counter.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
curvalue: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
maxvalue: 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.message.Counter}
|
|
*/
|
|
proto.message.Counter.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.Counter;
|
|
return proto.message.Counter.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.Counter} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.Counter}
|
|
*/
|
|
proto.message.Counter.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 {number} */ (reader.readInt64());
|
|
msg.setCurvalue(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setMaxvalue(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.Counter.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.Counter.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.Counter} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.Counter.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getId();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCurvalue();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMaxvalue();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 id = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Counter.prototype.getId = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Counter.prototype.setId = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 curValue = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Counter.prototype.getCurvalue = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Counter.prototype.setCurvalue = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 maxValue = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.Counter.prototype.getMaxvalue = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.Counter.prototype.setMaxvalue = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Newbee_Task = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, proto.message.SC_Newbee_Task.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Newbee_Task, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Newbee_Task.displayName = 'proto.message.SC_Newbee_Task';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.SC_Newbee_Task.repeatedFields_ = [5];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Newbee_Task.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Newbee_Task.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Newbee_Task} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Newbee_Task.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1407, 0),
|
|
curtaskid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
state: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
substate: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
completetasknum: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
countersList: jspb.Message.toObjectList(msg.getCountersList(),
|
|
proto.message.Counter.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.message.SC_Newbee_Task}
|
|
*/
|
|
proto.message.SC_Newbee_Task.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Newbee_Task;
|
|
return proto.message.SC_Newbee_Task.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Newbee_Task} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Newbee_Task}
|
|
*/
|
|
proto.message.SC_Newbee_Task.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1407:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setCurtaskid(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setState(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSubstate(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setCompletetasknum(value);
|
|
break;
|
|
case 5:
|
|
var value = new proto.message.Counter;
|
|
reader.readMessage(value,proto.message.Counter.deserializeBinaryFromReader);
|
|
msg.addCounters(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Newbee_Task.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Newbee_Task.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Newbee_Task} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Newbee_Task.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1407,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCurtaskid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getState();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSubstate();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCompletetasknum();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCountersList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
5,
|
|
f,
|
|
proto.message.Counter.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1407;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Newbee_Task.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1407, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Newbee_Task.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1407, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 curTaskId = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Newbee_Task.prototype.getCurtaskid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Newbee_Task.prototype.setCurtaskid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 state = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Newbee_Task.prototype.getState = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Newbee_Task.prototype.setState = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 subState = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Newbee_Task.prototype.getSubstate = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Newbee_Task.prototype.setSubstate = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 completeTaskNum = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Newbee_Task.prototype.getCompletetasknum = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Newbee_Task.prototype.setCompletetasknum = function(value) {
|
|
jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Counter counters = 5;
|
|
* @return {!Array.<!proto.message.Counter>}
|
|
*/
|
|
proto.message.SC_Newbee_Task.prototype.getCountersList = function() {
|
|
return /** @type{!Array.<!proto.message.Counter>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.Counter, 5));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.Counter>} value */
|
|
proto.message.SC_Newbee_Task.prototype.setCountersList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.Counter=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.Counter}
|
|
*/
|
|
proto.message.SC_Newbee_Task.prototype.addCounters = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.message.Counter, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Newbee_Task.prototype.clearCountersList = function() {
|
|
this.setCountersList([]);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.CS_Finish_Newbee_Task = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.CS_Finish_Newbee_Task, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.CS_Finish_Newbee_Task.displayName = 'proto.message.CS_Finish_Newbee_Task';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.CS_Finish_Newbee_Task.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.CS_Finish_Newbee_Task.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.CS_Finish_Newbee_Task} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Finish_Newbee_Task.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1408, 0),
|
|
status: 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.message.CS_Finish_Newbee_Task}
|
|
*/
|
|
proto.message.CS_Finish_Newbee_Task.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.CS_Finish_Newbee_Task;
|
|
return proto.message.CS_Finish_Newbee_Task.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.CS_Finish_Newbee_Task} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.CS_Finish_Newbee_Task}
|
|
*/
|
|
proto.message.CS_Finish_Newbee_Task.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1408:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setStatus(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.CS_Finish_Newbee_Task.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.CS_Finish_Newbee_Task.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.CS_Finish_Newbee_Task} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Finish_Newbee_Task.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1408,
|
|
f
|
|
);
|
|
}
|
|
f = message.getStatus();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1408;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Finish_Newbee_Task.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1408, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Finish_Newbee_Task.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1408, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 status = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Finish_Newbee_Task.prototype.getStatus = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Finish_Newbee_Task.prototype.setStatus = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.SC_Finish_Newbee_Task = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, proto.message.SC_Finish_Newbee_Task.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.message.SC_Finish_Newbee_Task, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.SC_Finish_Newbee_Task.displayName = 'proto.message.SC_Finish_Newbee_Task';
|
|
}
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.repeatedFields_ = [2];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.SC_Finish_Newbee_Task.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.SC_Finish_Newbee_Task} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1409, 0),
|
|
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
infosList: jspb.Message.toObjectList(msg.getInfosList(),
|
|
proto.message.BonusInfo.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.message.SC_Finish_Newbee_Task}
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.SC_Finish_Newbee_Task;
|
|
return proto.message.SC_Finish_Newbee_Task.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.SC_Finish_Newbee_Task} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.SC_Finish_Newbee_Task}
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1409:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setCode(value);
|
|
break;
|
|
case 2:
|
|
var value = new proto.message.BonusInfo;
|
|
reader.readMessage(value,proto.message.BonusInfo.deserializeBinaryFromReader);
|
|
msg.addInfos(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.SC_Finish_Newbee_Task.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.SC_Finish_Newbee_Task} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1409,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCode();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getInfosList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
2,
|
|
f,
|
|
proto.message.BonusInfo.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1409;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1409, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Finish_Newbee_Task.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1409, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 code = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.prototype.getCode = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.SC_Finish_Newbee_Task.prototype.setCode = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated BonusInfo infos = 2;
|
|
* @return {!Array.<!proto.message.BonusInfo>}
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.prototype.getInfosList = function() {
|
|
return /** @type{!Array.<!proto.message.BonusInfo>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.message.BonusInfo, 2));
|
|
};
|
|
|
|
|
|
/** @param {!Array.<!proto.message.BonusInfo>} value */
|
|
proto.message.SC_Finish_Newbee_Task.prototype.setInfosList = function(value) {
|
|
jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.message.BonusInfo=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.message.BonusInfo}
|
|
*/
|
|
proto.message.SC_Finish_Newbee_Task.prototype.addInfos = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.message.BonusInfo, opt_index);
|
|
};
|
|
|
|
|
|
proto.message.SC_Finish_Newbee_Task.prototype.clearInfosList = function() {
|
|
this.setInfosList([]);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.BonusInfo = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.message.BonusInfo, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.BonusInfo.displayName = 'proto.message.BonusInfo';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.BonusInfo.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.BonusInfo.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.BonusInfo} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.BonusInfo.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
bonustype: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
bonusid: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
bonuscount: 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.message.BonusInfo}
|
|
*/
|
|
proto.message.BonusInfo.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.BonusInfo;
|
|
return proto.message.BonusInfo.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.BonusInfo} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.BonusInfo}
|
|
*/
|
|
proto.message.BonusInfo.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.setBonustype(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setBonusid(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt64());
|
|
msg.setBonuscount(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.BonusInfo.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.BonusInfo.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.BonusInfo} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.BonusInfo.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getBonustype();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBonusid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBonuscount();
|
|
if (f !== 0) {
|
|
writer.writeInt64(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 bonusType = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.BonusInfo.prototype.getBonustype = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.BonusInfo.prototype.setBonustype = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 bonusId = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.message.BonusInfo.prototype.getBonusid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.BonusInfo.prototype.setBonusid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int64 bonusCount = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.message.BonusInfo.prototype.getBonuscount = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.BonusInfo.prototype.setBonuscount = function(value) {
|
|
jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* 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.message.CS_Horn_Transform = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, 500, null, null);
|
|
};
|
|
goog.inherits(proto.message.CS_Horn_Transform, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
proto.message.CS_Horn_Transform.displayName = 'proto.message.CS_Horn_Transform';
|
|
}
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.message.CS_Horn_Transform.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.message.CS_Horn_Transform.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.message.CS_Horn_Transform} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Horn_Transform.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
msgid: jspb.Message.getFieldWithDefault(msg, 1418, 0),
|
|
frame: 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.message.CS_Horn_Transform}
|
|
*/
|
|
proto.message.CS_Horn_Transform.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.message.CS_Horn_Transform;
|
|
return proto.message.CS_Horn_Transform.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.message.CS_Horn_Transform} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.message.CS_Horn_Transform}
|
|
*/
|
|
proto.message.CS_Horn_Transform.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1418:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setMsgid(value);
|
|
break;
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setFrame(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.message.CS_Horn_Transform.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.message.CS_Horn_Transform.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.message.CS_Horn_Transform} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.message.CS_Horn_Transform.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMsgid();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1418,
|
|
f
|
|
);
|
|
}
|
|
f = message.getFrame();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 msgid = 1418;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Horn_Transform.prototype.getMsgid = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1418, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Horn_Transform.prototype.setMsgid = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1418, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 frame = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.message.CS_Horn_Transform.prototype.getFrame = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/** @param {number} value */
|
|
proto.message.CS_Horn_Transform.prototype.setFrame = function(value) {
|
|
jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
goog.object.extend(exports, proto.message);
|