941 lines
27 KiB
JavaScript
941 lines
27 KiB
JavaScript
|
// source: common.proto
|
||
|
/**
|
||
|
* @fileoverview
|
||
|
* @enhanceable
|
||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||
|
* @public
|
||
|
*/
|
||
|
// GENERATED CODE -- DO NOT EDIT!
|
||
|
/* eslint-disable */
|
||
|
// @ts-nocheck
|
||
|
|
||
|
var jspb = require('google-protobuf');
|
||
|
var goog = jspb;
|
||
|
var global =
|
||
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
||
|
(typeof window !== 'undefined' && window) ||
|
||
|
(typeof global !== 'undefined' && global) ||
|
||
|
(typeof self !== 'undefined' && self) ||
|
||
|
(function () { return this; }).call(null) ||
|
||
|
Function('return this')();
|
||
|
|
||
|
var code_pb = require('./code_pb.js');
|
||
|
goog.object.extend(proto, code_pb);
|
||
|
goog.exportSymbol('proto.pb.NtfKickOutUser', null, global);
|
||
|
goog.exportSymbol('proto.pb.NtfPayoutFail', null, global);
|
||
|
goog.exportSymbol('proto.pb.ReqEnterRoom', null, global);
|
||
|
goog.exportSymbol('proto.pb.ReqLeaveRoom', null, global);
|
||
|
goog.exportSymbol('proto.pb.RspEnterRoom', null, global);
|
||
|
goog.exportSymbol('proto.pb.RspLeaveRoom', 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.pb.NtfKickOutUser = function(opt_data) {
|
||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||
|
};
|
||
|
goog.inherits(proto.pb.NtfKickOutUser, jspb.Message);
|
||
|
if (goog.DEBUG && !COMPILED) {
|
||
|
/**
|
||
|
* @public
|
||
|
* @override
|
||
|
*/
|
||
|
proto.pb.NtfKickOutUser.displayName = 'proto.pb.NtfKickOutUser';
|
||
|
}
|
||
|
/**
|
||
|
* 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.pb.ReqEnterRoom = function(opt_data) {
|
||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||
|
};
|
||
|
goog.inherits(proto.pb.ReqEnterRoom, jspb.Message);
|
||
|
if (goog.DEBUG && !COMPILED) {
|
||
|
/**
|
||
|
* @public
|
||
|
* @override
|
||
|
*/
|
||
|
proto.pb.ReqEnterRoom.displayName = 'proto.pb.ReqEnterRoom';
|
||
|
}
|
||
|
/**
|
||
|
* 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.pb.RspEnterRoom = function(opt_data) {
|
||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||
|
};
|
||
|
goog.inherits(proto.pb.RspEnterRoom, jspb.Message);
|
||
|
if (goog.DEBUG && !COMPILED) {
|
||
|
/**
|
||
|
* @public
|
||
|
* @override
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.displayName = 'proto.pb.RspEnterRoom';
|
||
|
}
|
||
|
/**
|
||
|
* 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.pb.ReqLeaveRoom = function(opt_data) {
|
||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||
|
};
|
||
|
goog.inherits(proto.pb.ReqLeaveRoom, jspb.Message);
|
||
|
if (goog.DEBUG && !COMPILED) {
|
||
|
/**
|
||
|
* @public
|
||
|
* @override
|
||
|
*/
|
||
|
proto.pb.ReqLeaveRoom.displayName = 'proto.pb.ReqLeaveRoom';
|
||
|
}
|
||
|
/**
|
||
|
* 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.pb.RspLeaveRoom = function(opt_data) {
|
||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||
|
};
|
||
|
goog.inherits(proto.pb.RspLeaveRoom, jspb.Message);
|
||
|
if (goog.DEBUG && !COMPILED) {
|
||
|
/**
|
||
|
* @public
|
||
|
* @override
|
||
|
*/
|
||
|
proto.pb.RspLeaveRoom.displayName = 'proto.pb.RspLeaveRoom';
|
||
|
}
|
||
|
/**
|
||
|
* 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.pb.NtfPayoutFail = function(opt_data) {
|
||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||
|
};
|
||
|
goog.inherits(proto.pb.NtfPayoutFail, jspb.Message);
|
||
|
if (goog.DEBUG && !COMPILED) {
|
||
|
/**
|
||
|
* @public
|
||
|
* @override
|
||
|
*/
|
||
|
proto.pb.NtfPayoutFail.displayName = 'proto.pb.NtfPayoutFail';
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||
|
/**
|
||
|
* Creates an object representation of this proto.
|
||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||
|
* Optional fields that are not set will be set to undefined.
|
||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||
|
* For the list of reserved names please see:
|
||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||
|
* JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @return {!Object}
|
||
|
*/
|
||
|
proto.pb.NtfKickOutUser.prototype.toObject = function(opt_includeInstance) {
|
||
|
return proto.pb.NtfKickOutUser.toObject(opt_includeInstance, this);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Static version of the {@see toObject} method.
|
||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||
|
* the JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @param {!proto.pb.NtfKickOutUser} msg The msg instance to transform.
|
||
|
* @return {!Object}
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.NtfKickOutUser.toObject = function(includeInstance, msg) {
|
||
|
var f, obj = {
|
||
|
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.pb.NtfKickOutUser}
|
||
|
*/
|
||
|
proto.pb.NtfKickOutUser.deserializeBinary = function(bytes) {
|
||
|
var reader = new jspb.BinaryReader(bytes);
|
||
|
var msg = new proto.pb.NtfKickOutUser;
|
||
|
return proto.pb.NtfKickOutUser.deserializeBinaryFromReader(msg, reader);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Deserializes binary data (in protobuf wire format) from the
|
||
|
* given reader into the given message object.
|
||
|
* @param {!proto.pb.NtfKickOutUser} msg The message object to deserialize into.
|
||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||
|
* @return {!proto.pb.NtfKickOutUser}
|
||
|
*/
|
||
|
proto.pb.NtfKickOutUser.deserializeBinaryFromReader = function(msg, reader) {
|
||
|
while (reader.nextField()) {
|
||
|
if (reader.isEndGroup()) {
|
||
|
break;
|
||
|
}
|
||
|
var field = reader.getFieldNumber();
|
||
|
switch (field) {
|
||
|
case 1:
|
||
|
var value = /** @type {!proto.pb.ErrCode} */ (reader.readEnum());
|
||
|
msg.setCode(value);
|
||
|
break;
|
||
|
default:
|
||
|
reader.skipField();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return msg;
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the message to binary data (in protobuf wire format).
|
||
|
* @return {!Uint8Array}
|
||
|
*/
|
||
|
proto.pb.NtfKickOutUser.prototype.serializeBinary = function() {
|
||
|
var writer = new jspb.BinaryWriter();
|
||
|
proto.pb.NtfKickOutUser.serializeBinaryToWriter(this, writer);
|
||
|
return writer.getResultBuffer();
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the given message to binary data (in protobuf wire
|
||
|
* format), writing to the given BinaryWriter.
|
||
|
* @param {!proto.pb.NtfKickOutUser} message
|
||
|
* @param {!jspb.BinaryWriter} writer
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.NtfKickOutUser.serializeBinaryToWriter = function(message, writer) {
|
||
|
var f = undefined;
|
||
|
f = message.getCode();
|
||
|
if (f !== 0.0) {
|
||
|
writer.writeEnum(
|
||
|
1,
|
||
|
f
|
||
|
);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* optional ErrCode code = 1;
|
||
|
* @return {!proto.pb.ErrCode}
|
||
|
*/
|
||
|
proto.pb.NtfKickOutUser.prototype.getCode = function() {
|
||
|
return /** @type {!proto.pb.ErrCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @param {!proto.pb.ErrCode} value
|
||
|
* @return {!proto.pb.NtfKickOutUser} returns this
|
||
|
*/
|
||
|
proto.pb.NtfKickOutUser.prototype.setCode = function(value) {
|
||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||
|
/**
|
||
|
* Creates an object representation of this proto.
|
||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||
|
* Optional fields that are not set will be set to undefined.
|
||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||
|
* For the list of reserved names please see:
|
||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||
|
* JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @return {!Object}
|
||
|
*/
|
||
|
proto.pb.ReqEnterRoom.prototype.toObject = function(opt_includeInstance) {
|
||
|
return proto.pb.ReqEnterRoom.toObject(opt_includeInstance, this);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Static version of the {@see toObject} method.
|
||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||
|
* the JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @param {!proto.pb.ReqEnterRoom} msg The msg instance to transform.
|
||
|
* @return {!Object}
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.ReqEnterRoom.toObject = function(includeInstance, msg) {
|
||
|
var f, obj = {
|
||
|
|
||
|
};
|
||
|
|
||
|
if (includeInstance) {
|
||
|
obj.$jspbMessageInstance = msg;
|
||
|
}
|
||
|
return obj;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Deserializes binary data (in protobuf wire format).
|
||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||
|
* @return {!proto.pb.ReqEnterRoom}
|
||
|
*/
|
||
|
proto.pb.ReqEnterRoom.deserializeBinary = function(bytes) {
|
||
|
var reader = new jspb.BinaryReader(bytes);
|
||
|
var msg = new proto.pb.ReqEnterRoom;
|
||
|
return proto.pb.ReqEnterRoom.deserializeBinaryFromReader(msg, reader);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Deserializes binary data (in protobuf wire format) from the
|
||
|
* given reader into the given message object.
|
||
|
* @param {!proto.pb.ReqEnterRoom} msg The message object to deserialize into.
|
||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||
|
* @return {!proto.pb.ReqEnterRoom}
|
||
|
*/
|
||
|
proto.pb.ReqEnterRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||
|
while (reader.nextField()) {
|
||
|
if (reader.isEndGroup()) {
|
||
|
break;
|
||
|
}
|
||
|
var field = reader.getFieldNumber();
|
||
|
switch (field) {
|
||
|
default:
|
||
|
reader.skipField();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return msg;
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the message to binary data (in protobuf wire format).
|
||
|
* @return {!Uint8Array}
|
||
|
*/
|
||
|
proto.pb.ReqEnterRoom.prototype.serializeBinary = function() {
|
||
|
var writer = new jspb.BinaryWriter();
|
||
|
proto.pb.ReqEnterRoom.serializeBinaryToWriter(this, writer);
|
||
|
return writer.getResultBuffer();
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the given message to binary data (in protobuf wire
|
||
|
* format), writing to the given BinaryWriter.
|
||
|
* @param {!proto.pb.ReqEnterRoom} message
|
||
|
* @param {!jspb.BinaryWriter} writer
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.ReqEnterRoom.serializeBinaryToWriter = function(message, writer) {
|
||
|
var f = undefined;
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||
|
/**
|
||
|
* Creates an object representation of this proto.
|
||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||
|
* Optional fields that are not set will be set to undefined.
|
||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||
|
* For the list of reserved names please see:
|
||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||
|
* JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @return {!Object}
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.prototype.toObject = function(opt_includeInstance) {
|
||
|
return proto.pb.RspEnterRoom.toObject(opt_includeInstance, this);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Static version of the {@see toObject} method.
|
||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||
|
* the JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @param {!proto.pb.RspEnterRoom} msg The msg instance to transform.
|
||
|
* @return {!Object}
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.toObject = function(includeInstance, msg) {
|
||
|
var f, obj = {
|
||
|
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
||
|
gameid: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||
|
roomtype: 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.pb.RspEnterRoom}
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.deserializeBinary = function(bytes) {
|
||
|
var reader = new jspb.BinaryReader(bytes);
|
||
|
var msg = new proto.pb.RspEnterRoom;
|
||
|
return proto.pb.RspEnterRoom.deserializeBinaryFromReader(msg, reader);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Deserializes binary data (in protobuf wire format) from the
|
||
|
* given reader into the given message object.
|
||
|
* @param {!proto.pb.RspEnterRoom} msg The message object to deserialize into.
|
||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||
|
* @return {!proto.pb.RspEnterRoom}
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||
|
while (reader.nextField()) {
|
||
|
if (reader.isEndGroup()) {
|
||
|
break;
|
||
|
}
|
||
|
var field = reader.getFieldNumber();
|
||
|
switch (field) {
|
||
|
case 1:
|
||
|
var value = /** @type {!proto.pb.ErrCode} */ (reader.readEnum());
|
||
|
msg.setCode(value);
|
||
|
break;
|
||
|
case 2:
|
||
|
var value = /** @type {number} */ (reader.readInt32());
|
||
|
msg.setGameid(value);
|
||
|
break;
|
||
|
case 3:
|
||
|
var value = /** @type {number} */ (reader.readInt32());
|
||
|
msg.setRoomtype(value);
|
||
|
break;
|
||
|
default:
|
||
|
reader.skipField();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return msg;
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the message to binary data (in protobuf wire format).
|
||
|
* @return {!Uint8Array}
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.prototype.serializeBinary = function() {
|
||
|
var writer = new jspb.BinaryWriter();
|
||
|
proto.pb.RspEnterRoom.serializeBinaryToWriter(this, writer);
|
||
|
return writer.getResultBuffer();
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the given message to binary data (in protobuf wire
|
||
|
* format), writing to the given BinaryWriter.
|
||
|
* @param {!proto.pb.RspEnterRoom} message
|
||
|
* @param {!jspb.BinaryWriter} writer
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.serializeBinaryToWriter = function(message, writer) {
|
||
|
var f = undefined;
|
||
|
f = message.getCode();
|
||
|
if (f !== 0.0) {
|
||
|
writer.writeEnum(
|
||
|
1,
|
||
|
f
|
||
|
);
|
||
|
}
|
||
|
f = message.getGameid();
|
||
|
if (f !== 0) {
|
||
|
writer.writeInt32(
|
||
|
2,
|
||
|
f
|
||
|
);
|
||
|
}
|
||
|
f = message.getRoomtype();
|
||
|
if (f !== 0) {
|
||
|
writer.writeInt32(
|
||
|
3,
|
||
|
f
|
||
|
);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* optional ErrCode code = 1;
|
||
|
* @return {!proto.pb.ErrCode}
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.prototype.getCode = function() {
|
||
|
return /** @type {!proto.pb.ErrCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @param {!proto.pb.ErrCode} value
|
||
|
* @return {!proto.pb.RspEnterRoom} returns this
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.prototype.setCode = function(value) {
|
||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* optional int32 gameId = 2;
|
||
|
* @return {number}
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.prototype.getGameid = function() {
|
||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @param {number} value
|
||
|
* @return {!proto.pb.RspEnterRoom} returns this
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.prototype.setGameid = function(value) {
|
||
|
return jspb.Message.setProto3IntField(this, 2, value);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* optional int32 roomType = 3;
|
||
|
* @return {number}
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.prototype.getRoomtype = function() {
|
||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @param {number} value
|
||
|
* @return {!proto.pb.RspEnterRoom} returns this
|
||
|
*/
|
||
|
proto.pb.RspEnterRoom.prototype.setRoomtype = function(value) {
|
||
|
return jspb.Message.setProto3IntField(this, 3, value);
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||
|
/**
|
||
|
* Creates an object representation of this proto.
|
||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||
|
* Optional fields that are not set will be set to undefined.
|
||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||
|
* For the list of reserved names please see:
|
||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||
|
* JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @return {!Object}
|
||
|
*/
|
||
|
proto.pb.ReqLeaveRoom.prototype.toObject = function(opt_includeInstance) {
|
||
|
return proto.pb.ReqLeaveRoom.toObject(opt_includeInstance, this);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Static version of the {@see toObject} method.
|
||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||
|
* the JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @param {!proto.pb.ReqLeaveRoom} msg The msg instance to transform.
|
||
|
* @return {!Object}
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.ReqLeaveRoom.toObject = function(includeInstance, msg) {
|
||
|
var f, obj = {
|
||
|
|
||
|
};
|
||
|
|
||
|
if (includeInstance) {
|
||
|
obj.$jspbMessageInstance = msg;
|
||
|
}
|
||
|
return obj;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Deserializes binary data (in protobuf wire format).
|
||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||
|
* @return {!proto.pb.ReqLeaveRoom}
|
||
|
*/
|
||
|
proto.pb.ReqLeaveRoom.deserializeBinary = function(bytes) {
|
||
|
var reader = new jspb.BinaryReader(bytes);
|
||
|
var msg = new proto.pb.ReqLeaveRoom;
|
||
|
return proto.pb.ReqLeaveRoom.deserializeBinaryFromReader(msg, reader);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Deserializes binary data (in protobuf wire format) from the
|
||
|
* given reader into the given message object.
|
||
|
* @param {!proto.pb.ReqLeaveRoom} msg The message object to deserialize into.
|
||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||
|
* @return {!proto.pb.ReqLeaveRoom}
|
||
|
*/
|
||
|
proto.pb.ReqLeaveRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||
|
while (reader.nextField()) {
|
||
|
if (reader.isEndGroup()) {
|
||
|
break;
|
||
|
}
|
||
|
var field = reader.getFieldNumber();
|
||
|
switch (field) {
|
||
|
default:
|
||
|
reader.skipField();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return msg;
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the message to binary data (in protobuf wire format).
|
||
|
* @return {!Uint8Array}
|
||
|
*/
|
||
|
proto.pb.ReqLeaveRoom.prototype.serializeBinary = function() {
|
||
|
var writer = new jspb.BinaryWriter();
|
||
|
proto.pb.ReqLeaveRoom.serializeBinaryToWriter(this, writer);
|
||
|
return writer.getResultBuffer();
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the given message to binary data (in protobuf wire
|
||
|
* format), writing to the given BinaryWriter.
|
||
|
* @param {!proto.pb.ReqLeaveRoom} message
|
||
|
* @param {!jspb.BinaryWriter} writer
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.ReqLeaveRoom.serializeBinaryToWriter = function(message, writer) {
|
||
|
var f = undefined;
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||
|
/**
|
||
|
* Creates an object representation of this proto.
|
||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||
|
* Optional fields that are not set will be set to undefined.
|
||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||
|
* For the list of reserved names please see:
|
||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||
|
* JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @return {!Object}
|
||
|
*/
|
||
|
proto.pb.RspLeaveRoom.prototype.toObject = function(opt_includeInstance) {
|
||
|
return proto.pb.RspLeaveRoom.toObject(opt_includeInstance, this);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Static version of the {@see toObject} method.
|
||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||
|
* the JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @param {!proto.pb.RspLeaveRoom} msg The msg instance to transform.
|
||
|
* @return {!Object}
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.RspLeaveRoom.toObject = function(includeInstance, msg) {
|
||
|
var f, obj = {
|
||
|
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.pb.RspLeaveRoom}
|
||
|
*/
|
||
|
proto.pb.RspLeaveRoom.deserializeBinary = function(bytes) {
|
||
|
var reader = new jspb.BinaryReader(bytes);
|
||
|
var msg = new proto.pb.RspLeaveRoom;
|
||
|
return proto.pb.RspLeaveRoom.deserializeBinaryFromReader(msg, reader);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Deserializes binary data (in protobuf wire format) from the
|
||
|
* given reader into the given message object.
|
||
|
* @param {!proto.pb.RspLeaveRoom} msg The message object to deserialize into.
|
||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||
|
* @return {!proto.pb.RspLeaveRoom}
|
||
|
*/
|
||
|
proto.pb.RspLeaveRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||
|
while (reader.nextField()) {
|
||
|
if (reader.isEndGroup()) {
|
||
|
break;
|
||
|
}
|
||
|
var field = reader.getFieldNumber();
|
||
|
switch (field) {
|
||
|
case 1:
|
||
|
var value = /** @type {!proto.pb.ErrCode} */ (reader.readEnum());
|
||
|
msg.setCode(value);
|
||
|
break;
|
||
|
default:
|
||
|
reader.skipField();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return msg;
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the message to binary data (in protobuf wire format).
|
||
|
* @return {!Uint8Array}
|
||
|
*/
|
||
|
proto.pb.RspLeaveRoom.prototype.serializeBinary = function() {
|
||
|
var writer = new jspb.BinaryWriter();
|
||
|
proto.pb.RspLeaveRoom.serializeBinaryToWriter(this, writer);
|
||
|
return writer.getResultBuffer();
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the given message to binary data (in protobuf wire
|
||
|
* format), writing to the given BinaryWriter.
|
||
|
* @param {!proto.pb.RspLeaveRoom} message
|
||
|
* @param {!jspb.BinaryWriter} writer
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.RspLeaveRoom.serializeBinaryToWriter = function(message, writer) {
|
||
|
var f = undefined;
|
||
|
f = message.getCode();
|
||
|
if (f !== 0.0) {
|
||
|
writer.writeEnum(
|
||
|
1,
|
||
|
f
|
||
|
);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* optional ErrCode code = 1;
|
||
|
* @return {!proto.pb.ErrCode}
|
||
|
*/
|
||
|
proto.pb.RspLeaveRoom.prototype.getCode = function() {
|
||
|
return /** @type {!proto.pb.ErrCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @param {!proto.pb.ErrCode} value
|
||
|
* @return {!proto.pb.RspLeaveRoom} returns this
|
||
|
*/
|
||
|
proto.pb.RspLeaveRoom.prototype.setCode = function(value) {
|
||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||
|
/**
|
||
|
* Creates an object representation of this proto.
|
||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||
|
* Optional fields that are not set will be set to undefined.
|
||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||
|
* For the list of reserved names please see:
|
||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||
|
* JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @return {!Object}
|
||
|
*/
|
||
|
proto.pb.NtfPayoutFail.prototype.toObject = function(opt_includeInstance) {
|
||
|
return proto.pb.NtfPayoutFail.toObject(opt_includeInstance, this);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Static version of the {@see toObject} method.
|
||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||
|
* the JSPB instance for transitional soy proto support:
|
||
|
* http://goto/soy-param-migration
|
||
|
* @param {!proto.pb.NtfPayoutFail} msg The msg instance to transform.
|
||
|
* @return {!Object}
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.NtfPayoutFail.toObject = function(includeInstance, msg) {
|
||
|
var f, obj = {
|
||
|
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.pb.NtfPayoutFail}
|
||
|
*/
|
||
|
proto.pb.NtfPayoutFail.deserializeBinary = function(bytes) {
|
||
|
var reader = new jspb.BinaryReader(bytes);
|
||
|
var msg = new proto.pb.NtfPayoutFail;
|
||
|
return proto.pb.NtfPayoutFail.deserializeBinaryFromReader(msg, reader);
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Deserializes binary data (in protobuf wire format) from the
|
||
|
* given reader into the given message object.
|
||
|
* @param {!proto.pb.NtfPayoutFail} msg The message object to deserialize into.
|
||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||
|
* @return {!proto.pb.NtfPayoutFail}
|
||
|
*/
|
||
|
proto.pb.NtfPayoutFail.deserializeBinaryFromReader = function(msg, reader) {
|
||
|
while (reader.nextField()) {
|
||
|
if (reader.isEndGroup()) {
|
||
|
break;
|
||
|
}
|
||
|
var field = reader.getFieldNumber();
|
||
|
switch (field) {
|
||
|
case 1:
|
||
|
var value = /** @type {!proto.pb.ErrCode} */ (reader.readEnum());
|
||
|
msg.setCode(value);
|
||
|
break;
|
||
|
default:
|
||
|
reader.skipField();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
return msg;
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the message to binary data (in protobuf wire format).
|
||
|
* @return {!Uint8Array}
|
||
|
*/
|
||
|
proto.pb.NtfPayoutFail.prototype.serializeBinary = function() {
|
||
|
var writer = new jspb.BinaryWriter();
|
||
|
proto.pb.NtfPayoutFail.serializeBinaryToWriter(this, writer);
|
||
|
return writer.getResultBuffer();
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Serializes the given message to binary data (in protobuf wire
|
||
|
* format), writing to the given BinaryWriter.
|
||
|
* @param {!proto.pb.NtfPayoutFail} message
|
||
|
* @param {!jspb.BinaryWriter} writer
|
||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||
|
*/
|
||
|
proto.pb.NtfPayoutFail.serializeBinaryToWriter = function(message, writer) {
|
||
|
var f = undefined;
|
||
|
f = message.getCode();
|
||
|
if (f !== 0.0) {
|
||
|
writer.writeEnum(
|
||
|
1,
|
||
|
f
|
||
|
);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* optional ErrCode code = 1;
|
||
|
* @return {!proto.pb.ErrCode}
|
||
|
*/
|
||
|
proto.pb.NtfPayoutFail.prototype.getCode = function() {
|
||
|
return /** @type {!proto.pb.ErrCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||
|
};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @param {!proto.pb.ErrCode} value
|
||
|
* @return {!proto.pb.NtfPayoutFail} returns this
|
||
|
*/
|
||
|
proto.pb.NtfPayoutFail.prototype.setCode = function(value) {
|
||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||
|
};
|
||
|
|
||
|
|
||
|
goog.object.extend(exports, proto.pb);
|