|
|
|
|
@ -6706,25 +6706,25 @@ export const api = $root.api = (() => {
|
|
|
|
|
return ResDismissGameTable; |
|
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
api.ReqPlaceBetChip = (function() { |
|
|
|
|
api.ReqPlaceBet = (function() { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Properties of a ReqPlaceBetChip. |
|
|
|
|
* Properties of a ReqPlaceBet. |
|
|
|
|
* @memberof api |
|
|
|
|
* @interface IReqPlaceBetChip |
|
|
|
|
* @property {number|null} [betChip] ReqPlaceBetChip betChip |
|
|
|
|
* @property {boolean|null} [allIn] ReqPlaceBetChip allIn |
|
|
|
|
* @interface IReqPlaceBet |
|
|
|
|
* @property {number|null} [betType] ReqPlaceBet betType |
|
|
|
|
* @property {number|null} [betChip] ReqPlaceBet betChip |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Constructs a new ReqPlaceBetChip. |
|
|
|
|
* Constructs a new ReqPlaceBet. |
|
|
|
|
* @memberof api |
|
|
|
|
* @classdesc Represents a ReqPlaceBetChip. |
|
|
|
|
* @implements IReqPlaceBetChip |
|
|
|
|
* @classdesc Represents a ReqPlaceBet. |
|
|
|
|
* @implements IReqPlaceBet |
|
|
|
|
* @constructor |
|
|
|
|
* @param {api.IReqPlaceBetChip=} [properties] Properties to set |
|
|
|
|
* @param {api.IReqPlaceBet=} [properties] Properties to set |
|
|
|
|
*/ |
|
|
|
|
function ReqPlaceBetChip(properties) { |
|
|
|
|
function ReqPlaceBet(properties) { |
|
|
|
|
if (properties) |
|
|
|
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) |
|
|
|
|
if (properties[keys[i]] != null) |
|
|
|
|
@ -6732,89 +6732,89 @@ export const api = $root.api = (() => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* ReqPlaceBetChip betChip. |
|
|
|
|
* @member {number} betChip |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* ReqPlaceBet betType. |
|
|
|
|
* @member {number} betType |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @instance |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.prototype.betChip = 0; |
|
|
|
|
ReqPlaceBet.prototype.betType = 0; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* ReqPlaceBetChip allIn. |
|
|
|
|
* @member {boolean} allIn |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* ReqPlaceBet betChip. |
|
|
|
|
* @member {number} betChip |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @instance |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.prototype.allIn = false; |
|
|
|
|
ReqPlaceBet.prototype.betChip = 0; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a new ReqPlaceBetChip instance using the specified properties. |
|
|
|
|
* Creates a new ReqPlaceBet instance using the specified properties. |
|
|
|
|
* @function create |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @static |
|
|
|
|
* @param {api.IReqPlaceBetChip=} [properties] Properties to set |
|
|
|
|
* @returns {api.ReqPlaceBetChip} ReqPlaceBetChip instance |
|
|
|
|
* @param {api.IReqPlaceBet=} [properties] Properties to set |
|
|
|
|
* @returns {api.ReqPlaceBet} ReqPlaceBet instance |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.create = function create(properties) { |
|
|
|
|
return new ReqPlaceBetChip(properties); |
|
|
|
|
ReqPlaceBet.create = function create(properties) { |
|
|
|
|
return new ReqPlaceBet(properties); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Encodes the specified ReqPlaceBetChip message. Does not implicitly {@link api.ReqPlaceBetChip.verify|verify} messages. |
|
|
|
|
* Encodes the specified ReqPlaceBet message. Does not implicitly {@link api.ReqPlaceBet.verify|verify} messages. |
|
|
|
|
* @function encode |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @static |
|
|
|
|
* @param {api.IReqPlaceBetChip} message ReqPlaceBetChip message or plain object to encode |
|
|
|
|
* @param {api.IReqPlaceBet} message ReqPlaceBet message or plain object to encode |
|
|
|
|
* @param {$protobuf.Writer} [writer] Writer to encode to |
|
|
|
|
* @returns {$protobuf.Writer} Writer |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.encode = function encode(message, writer) { |
|
|
|
|
ReqPlaceBet.encode = function encode(message, writer) { |
|
|
|
|
if (!writer) |
|
|
|
|
writer = $Writer.create(); |
|
|
|
|
if (message.betType != null && Object.hasOwnProperty.call(message, "betType")) |
|
|
|
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.betType); |
|
|
|
|
if (message.betChip != null && Object.hasOwnProperty.call(message, "betChip")) |
|
|
|
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.betChip); |
|
|
|
|
if (message.allIn != null && Object.hasOwnProperty.call(message, "allIn")) |
|
|
|
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allIn); |
|
|
|
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.betChip); |
|
|
|
|
return writer; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Encodes the specified ReqPlaceBetChip message, length delimited. Does not implicitly {@link api.ReqPlaceBetChip.verify|verify} messages. |
|
|
|
|
* Encodes the specified ReqPlaceBet message, length delimited. Does not implicitly {@link api.ReqPlaceBet.verify|verify} messages. |
|
|
|
|
* @function encodeDelimited |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @static |
|
|
|
|
* @param {api.IReqPlaceBetChip} message ReqPlaceBetChip message or plain object to encode |
|
|
|
|
* @param {api.IReqPlaceBet} message ReqPlaceBet message or plain object to encode |
|
|
|
|
* @param {$protobuf.Writer} [writer] Writer to encode to |
|
|
|
|
* @returns {$protobuf.Writer} Writer |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.encodeDelimited = function encodeDelimited(message, writer) { |
|
|
|
|
ReqPlaceBet.encodeDelimited = function encodeDelimited(message, writer) { |
|
|
|
|
return this.encode(message, writer).ldelim(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Decodes a ReqPlaceBetChip message from the specified reader or buffer. |
|
|
|
|
* Decodes a ReqPlaceBet message from the specified reader or buffer. |
|
|
|
|
* @function decode |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @static |
|
|
|
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from |
|
|
|
|
* @param {number} [length] Message length if known beforehand |
|
|
|
|
* @returns {api.ReqPlaceBetChip} ReqPlaceBetChip |
|
|
|
|
* @returns {api.ReqPlaceBet} ReqPlaceBet |
|
|
|
|
* @throws {Error} If the payload is not a reader or valid buffer |
|
|
|
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.decode = function decode(reader, length) { |
|
|
|
|
ReqPlaceBet.decode = function decode(reader, length) { |
|
|
|
|
if (!(reader instanceof $Reader)) |
|
|
|
|
reader = $Reader.create(reader); |
|
|
|
|
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.ReqPlaceBetChip(); |
|
|
|
|
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.ReqPlaceBet(); |
|
|
|
|
while (reader.pos < end) { |
|
|
|
|
let tag = reader.uint32(); |
|
|
|
|
switch (tag >>> 3) { |
|
|
|
|
case 1: { |
|
|
|
|
message.betChip = reader.int32(); |
|
|
|
|
message.betType = reader.int32(); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
case 2: { |
|
|
|
|
message.allIn = reader.bool(); |
|
|
|
|
message.betChip = reader.int32(); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
default: |
|
|
|
|
@ -6826,461 +6826,111 @@ export const api = $root.api = (() => {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Decodes a ReqPlaceBetChip message from the specified reader or buffer, length delimited. |
|
|
|
|
* Decodes a ReqPlaceBet message from the specified reader or buffer, length delimited. |
|
|
|
|
* @function decodeDelimited |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @static |
|
|
|
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from |
|
|
|
|
* @returns {api.ReqPlaceBetChip} ReqPlaceBetChip |
|
|
|
|
* @returns {api.ReqPlaceBet} ReqPlaceBet |
|
|
|
|
* @throws {Error} If the payload is not a reader or valid buffer |
|
|
|
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.decodeDelimited = function decodeDelimited(reader) { |
|
|
|
|
ReqPlaceBet.decodeDelimited = function decodeDelimited(reader) { |
|
|
|
|
if (!(reader instanceof $Reader)) |
|
|
|
|
reader = new $Reader(reader); |
|
|
|
|
return this.decode(reader, reader.uint32()); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Verifies a ReqPlaceBetChip message. |
|
|
|
|
* Verifies a ReqPlaceBet message. |
|
|
|
|
* @function verify |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @static |
|
|
|
|
* @param {Object.<string,*>} message Plain object to verify |
|
|
|
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.verify = function verify(message) { |
|
|
|
|
ReqPlaceBet.verify = function verify(message) { |
|
|
|
|
if (typeof message !== "object" || message === null) |
|
|
|
|
return "object expected"; |
|
|
|
|
if (message.betType != null && message.hasOwnProperty("betType")) |
|
|
|
|
if (!$util.isInteger(message.betType)) |
|
|
|
|
return "betType: integer expected"; |
|
|
|
|
if (message.betChip != null && message.hasOwnProperty("betChip")) |
|
|
|
|
if (!$util.isInteger(message.betChip)) |
|
|
|
|
return "betChip: integer expected"; |
|
|
|
|
if (message.allIn != null && message.hasOwnProperty("allIn")) |
|
|
|
|
if (typeof message.allIn !== "boolean") |
|
|
|
|
return "allIn: boolean expected"; |
|
|
|
|
return null; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a ReqPlaceBetChip message from a plain object. Also converts values to their respective internal types. |
|
|
|
|
* Creates a ReqPlaceBet message from a plain object. Also converts values to their respective internal types. |
|
|
|
|
* @function fromObject |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @static |
|
|
|
|
* @param {Object.<string,*>} object Plain object |
|
|
|
|
* @returns {api.ReqPlaceBetChip} ReqPlaceBetChip |
|
|
|
|
* @returns {api.ReqPlaceBet} ReqPlaceBet |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.fromObject = function fromObject(object) { |
|
|
|
|
if (object instanceof $root.api.ReqPlaceBetChip) |
|
|
|
|
ReqPlaceBet.fromObject = function fromObject(object) { |
|
|
|
|
if (object instanceof $root.api.ReqPlaceBet) |
|
|
|
|
return object; |
|
|
|
|
let message = new $root.api.ReqPlaceBetChip(); |
|
|
|
|
let message = new $root.api.ReqPlaceBet(); |
|
|
|
|
if (object.betType != null) |
|
|
|
|
message.betType = object.betType | 0; |
|
|
|
|
if (object.betChip != null) |
|
|
|
|
message.betChip = object.betChip | 0; |
|
|
|
|
if (object.allIn != null) |
|
|
|
|
message.allIn = Boolean(object.allIn); |
|
|
|
|
return message; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a plain object from a ReqPlaceBetChip message. Also converts values to other types if specified. |
|
|
|
|
* Creates a plain object from a ReqPlaceBet message. Also converts values to other types if specified. |
|
|
|
|
* @function toObject |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @static |
|
|
|
|
* @param {api.ReqPlaceBetChip} message ReqPlaceBetChip |
|
|
|
|
* @param {api.ReqPlaceBet} message ReqPlaceBet |
|
|
|
|
* @param {$protobuf.IConversionOptions} [options] Conversion options |
|
|
|
|
* @returns {Object.<string,*>} Plain object |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.toObject = function toObject(message, options) { |
|
|
|
|
ReqPlaceBet.toObject = function toObject(message, options) { |
|
|
|
|
if (!options) |
|
|
|
|
options = {}; |
|
|
|
|
let object = {}; |
|
|
|
|
if (options.defaults) { |
|
|
|
|
object.betType = 0; |
|
|
|
|
object.betChip = 0; |
|
|
|
|
object.allIn = false; |
|
|
|
|
} |
|
|
|
|
if (message.betType != null && message.hasOwnProperty("betType")) |
|
|
|
|
object.betType = message.betType; |
|
|
|
|
if (message.betChip != null && message.hasOwnProperty("betChip")) |
|
|
|
|
object.betChip = message.betChip; |
|
|
|
|
if (message.allIn != null && message.hasOwnProperty("allIn")) |
|
|
|
|
object.allIn = message.allIn; |
|
|
|
|
return object; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Converts this ReqPlaceBetChip to JSON. |
|
|
|
|
* @function toJSON |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* @instance |
|
|
|
|
* @returns {Object.<string,*>} JSON object |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.prototype.toJSON = function toJSON() { |
|
|
|
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Gets the default type url for ReqPlaceBetChip |
|
|
|
|
* @function getTypeUrl |
|
|
|
|
* @memberof api.ReqPlaceBetChip |
|
|
|
|
* @static |
|
|
|
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") |
|
|
|
|
* @returns {string} The default type url |
|
|
|
|
*/ |
|
|
|
|
ReqPlaceBetChip.getTypeUrl = function getTypeUrl(typeUrlPrefix) { |
|
|
|
|
if (typeUrlPrefix === undefined) { |
|
|
|
|
typeUrlPrefix = "type.googleapis.com"; |
|
|
|
|
} |
|
|
|
|
return typeUrlPrefix + "/api.ReqPlaceBetChip"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
return ReqPlaceBetChip; |
|
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
api.ReqBetWeakHand = (function() { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Properties of a ReqBetWeakHand. |
|
|
|
|
* @memberof api |
|
|
|
|
* @interface IReqBetWeakHand |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Constructs a new ReqBetWeakHand. |
|
|
|
|
* @memberof api |
|
|
|
|
* @classdesc Represents a ReqBetWeakHand. |
|
|
|
|
* @implements IReqBetWeakHand |
|
|
|
|
* @constructor |
|
|
|
|
* @param {api.IReqBetWeakHand=} [properties] Properties to set |
|
|
|
|
*/ |
|
|
|
|
function ReqBetWeakHand(properties) { |
|
|
|
|
if (properties) |
|
|
|
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) |
|
|
|
|
if (properties[keys[i]] != null) |
|
|
|
|
this[keys[i]] = properties[keys[i]]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a new ReqBetWeakHand instance using the specified properties. |
|
|
|
|
* @function create |
|
|
|
|
* @memberof api.ReqBetWeakHand |
|
|
|
|
* @static |
|
|
|
|
* @param {api.IReqBetWeakHand=} [properties] Properties to set |
|
|
|
|
* @returns {api.ReqBetWeakHand} ReqBetWeakHand instance |
|
|
|
|
*/ |
|
|
|
|
ReqBetWeakHand.create = function create(properties) { |
|
|
|
|
return new ReqBetWeakHand(properties); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Encodes the specified ReqBetWeakHand message. Does not implicitly {@link api.ReqBetWeakHand.verify|verify} messages. |
|
|
|
|
* @function encode |
|
|
|
|
* @memberof api.ReqBetWeakHand |
|
|
|
|
* @static |
|
|
|
|
* @param {api.IReqBetWeakHand} message ReqBetWeakHand message or plain object to encode |
|
|
|
|
* @param {$protobuf.Writer} [writer] Writer to encode to |
|
|
|
|
* @returns {$protobuf.Writer} Writer |
|
|
|
|
*/ |
|
|
|
|
ReqBetWeakHand.encode = function encode(message, writer) { |
|
|
|
|
if (!writer) |
|
|
|
|
writer = $Writer.create(); |
|
|
|
|
return writer; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Encodes the specified ReqBetWeakHand message, length delimited. Does not implicitly {@link api.ReqBetWeakHand.verify|verify} messages. |
|
|
|
|
* @function encodeDelimited |
|
|
|
|
* @memberof api.ReqBetWeakHand |
|
|
|
|
* @static |
|
|
|
|
* @param {api.IReqBetWeakHand} message ReqBetWeakHand message or plain object to encode |
|
|
|
|
* @param {$protobuf.Writer} [writer] Writer to encode to |
|
|
|
|
* @returns {$protobuf.Writer} Writer |
|
|
|
|
*/ |
|
|
|
|
ReqBetWeakHand.encodeDelimited = function encodeDelimited(message, writer) { |
|
|
|
|
return this.encode(message, writer).ldelim(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Decodes a ReqBetWeakHand message from the specified reader or buffer. |
|
|
|
|
* @function decode |
|
|
|
|
* @memberof api.ReqBetWeakHand |
|
|
|
|
* @static |
|
|
|
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from |
|
|
|
|
* @param {number} [length] Message length if known beforehand |
|
|
|
|
* @returns {api.ReqBetWeakHand} ReqBetWeakHand |
|
|
|
|
* @throws {Error} If the payload is not a reader or valid buffer |
|
|
|
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing |
|
|
|
|
*/ |
|
|
|
|
ReqBetWeakHand.decode = function decode(reader, length) { |
|
|
|
|
if (!(reader instanceof $Reader)) |
|
|
|
|
reader = $Reader.create(reader); |
|
|
|
|
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.ReqBetWeakHand(); |
|
|
|
|
while (reader.pos < end) { |
|
|
|
|
let tag = reader.uint32(); |
|
|
|
|
switch (tag >>> 3) { |
|
|
|
|
default: |
|
|
|
|
reader.skipType(tag & 7); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return message; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Decodes a ReqBetWeakHand message from the specified reader or buffer, length delimited. |
|
|
|
|
* @function decodeDelimited |
|
|
|
|
* @memberof api.ReqBetWeakHand |
|
|
|
|
* @static |
|
|
|
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from |
|
|
|
|
* @returns {api.ReqBetWeakHand} ReqBetWeakHand |
|
|
|
|
* @throws {Error} If the payload is not a reader or valid buffer |
|
|
|
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing |
|
|
|
|
*/ |
|
|
|
|
ReqBetWeakHand.decodeDelimited = function decodeDelimited(reader) { |
|
|
|
|
if (!(reader instanceof $Reader)) |
|
|
|
|
reader = new $Reader(reader); |
|
|
|
|
return this.decode(reader, reader.uint32()); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Verifies a ReqBetWeakHand message. |
|
|
|
|
* @function verify |
|
|
|
|
* @memberof api.ReqBetWeakHand |
|
|
|
|
* @static |
|
|
|
|
* @param {Object.<string,*>} message Plain object to verify |
|
|
|
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not |
|
|
|
|
*/ |
|
|
|
|
ReqBetWeakHand.verify = function verify(message) { |
|
|
|
|
if (typeof message !== "object" || message === null) |
|
|
|
|
return "object expected"; |
|
|
|
|
return null; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a ReqBetWeakHand message from a plain object. Also converts values to their respective internal types. |
|
|
|
|
* @function fromObject |
|
|
|
|
* @memberof api.ReqBetWeakHand |
|
|
|
|
* @static |
|
|
|
|
* @param {Object.<string,*>} object Plain object |
|
|
|
|
* @returns {api.ReqBetWeakHand} ReqBetWeakHand |
|
|
|
|
*/ |
|
|
|
|
ReqBetWeakHand.fromObject = function fromObject(object) { |
|
|
|
|
if (object instanceof $root.api.ReqBetWeakHand) |
|
|
|
|
return object; |
|
|
|
|
return new $root.api.ReqBetWeakHand(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a plain object from a ReqBetWeakHand message. Also converts values to other types if specified. |
|
|
|
|
* @function toObject |
|
|
|
|
* @memberof api.ReqBetWeakHand |
|
|
|
|
* @static |
|
|
|
|
* @param {api.ReqBetWeakHand} message ReqBetWeakHand |
|
|
|
|
* @param {$protobuf.IConversionOptions} [options] Conversion options |
|
|
|
|
* @returns {Object.<string,*>} Plain object |
|
|
|
|
*/ |
|
|
|
|
ReqBetWeakHand.toObject = function toObject() { |
|
|
|
|
return {}; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Converts this ReqBetWeakHand to JSON. |
|
|
|
|
* @function toJSON |
|
|
|
|
* @memberof api.ReqBetWeakHand |
|
|
|
|
* @instance |
|
|
|
|
* @returns {Object.<string,*>} JSON object |
|
|
|
|
*/ |
|
|
|
|
ReqBetWeakHand.prototype.toJSON = function toJSON() { |
|
|
|
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Gets the default type url for ReqBetWeakHand |
|
|
|
|
* @function getTypeUrl |
|
|
|
|
* @memberof api.ReqBetWeakHand |
|
|
|
|
* @static |
|
|
|
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") |
|
|
|
|
* @returns {string} The default type url |
|
|
|
|
*/ |
|
|
|
|
ReqBetWeakHand.getTypeUrl = function getTypeUrl(typeUrlPrefix) { |
|
|
|
|
if (typeUrlPrefix === undefined) { |
|
|
|
|
typeUrlPrefix = "type.googleapis.com"; |
|
|
|
|
} |
|
|
|
|
return typeUrlPrefix + "/api.ReqBetWeakHand"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
return ReqBetWeakHand; |
|
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
api.ReqBetDiscard = (function() { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Properties of a ReqBetDiscard. |
|
|
|
|
* @memberof api |
|
|
|
|
* @interface IReqBetDiscard |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Constructs a new ReqBetDiscard. |
|
|
|
|
* @memberof api |
|
|
|
|
* @classdesc Represents a ReqBetDiscard. |
|
|
|
|
* @implements IReqBetDiscard |
|
|
|
|
* @constructor |
|
|
|
|
* @param {api.IReqBetDiscard=} [properties] Properties to set |
|
|
|
|
*/ |
|
|
|
|
function ReqBetDiscard(properties) { |
|
|
|
|
if (properties) |
|
|
|
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) |
|
|
|
|
if (properties[keys[i]] != null) |
|
|
|
|
this[keys[i]] = properties[keys[i]]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a new ReqBetDiscard instance using the specified properties. |
|
|
|
|
* @function create |
|
|
|
|
* @memberof api.ReqBetDiscard |
|
|
|
|
* @static |
|
|
|
|
* @param {api.IReqBetDiscard=} [properties] Properties to set |
|
|
|
|
* @returns {api.ReqBetDiscard} ReqBetDiscard instance |
|
|
|
|
*/ |
|
|
|
|
ReqBetDiscard.create = function create(properties) { |
|
|
|
|
return new ReqBetDiscard(properties); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Encodes the specified ReqBetDiscard message. Does not implicitly {@link api.ReqBetDiscard.verify|verify} messages. |
|
|
|
|
* @function encode |
|
|
|
|
* @memberof api.ReqBetDiscard |
|
|
|
|
* @static |
|
|
|
|
* @param {api.IReqBetDiscard} message ReqBetDiscard message or plain object to encode |
|
|
|
|
* @param {$protobuf.Writer} [writer] Writer to encode to |
|
|
|
|
* @returns {$protobuf.Writer} Writer |
|
|
|
|
*/ |
|
|
|
|
ReqBetDiscard.encode = function encode(message, writer) { |
|
|
|
|
if (!writer) |
|
|
|
|
writer = $Writer.create(); |
|
|
|
|
return writer; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Encodes the specified ReqBetDiscard message, length delimited. Does not implicitly {@link api.ReqBetDiscard.verify|verify} messages. |
|
|
|
|
* @function encodeDelimited |
|
|
|
|
* @memberof api.ReqBetDiscard |
|
|
|
|
* @static |
|
|
|
|
* @param {api.IReqBetDiscard} message ReqBetDiscard message or plain object to encode |
|
|
|
|
* @param {$protobuf.Writer} [writer] Writer to encode to |
|
|
|
|
* @returns {$protobuf.Writer} Writer |
|
|
|
|
*/ |
|
|
|
|
ReqBetDiscard.encodeDelimited = function encodeDelimited(message, writer) { |
|
|
|
|
return this.encode(message, writer).ldelim(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Decodes a ReqBetDiscard message from the specified reader or buffer. |
|
|
|
|
* @function decode |
|
|
|
|
* @memberof api.ReqBetDiscard |
|
|
|
|
* @static |
|
|
|
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from |
|
|
|
|
* @param {number} [length] Message length if known beforehand |
|
|
|
|
* @returns {api.ReqBetDiscard} ReqBetDiscard |
|
|
|
|
* @throws {Error} If the payload is not a reader or valid buffer |
|
|
|
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing |
|
|
|
|
*/ |
|
|
|
|
ReqBetDiscard.decode = function decode(reader, length) { |
|
|
|
|
if (!(reader instanceof $Reader)) |
|
|
|
|
reader = $Reader.create(reader); |
|
|
|
|
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.ReqBetDiscard(); |
|
|
|
|
while (reader.pos < end) { |
|
|
|
|
let tag = reader.uint32(); |
|
|
|
|
switch (tag >>> 3) { |
|
|
|
|
default: |
|
|
|
|
reader.skipType(tag & 7); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return message; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Decodes a ReqBetDiscard message from the specified reader or buffer, length delimited. |
|
|
|
|
* @function decodeDelimited |
|
|
|
|
* @memberof api.ReqBetDiscard |
|
|
|
|
* @static |
|
|
|
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from |
|
|
|
|
* @returns {api.ReqBetDiscard} ReqBetDiscard |
|
|
|
|
* @throws {Error} If the payload is not a reader or valid buffer |
|
|
|
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing |
|
|
|
|
*/ |
|
|
|
|
ReqBetDiscard.decodeDelimited = function decodeDelimited(reader) { |
|
|
|
|
if (!(reader instanceof $Reader)) |
|
|
|
|
reader = new $Reader(reader); |
|
|
|
|
return this.decode(reader, reader.uint32()); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Verifies a ReqBetDiscard message. |
|
|
|
|
* @function verify |
|
|
|
|
* @memberof api.ReqBetDiscard |
|
|
|
|
* @static |
|
|
|
|
* @param {Object.<string,*>} message Plain object to verify |
|
|
|
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not |
|
|
|
|
*/ |
|
|
|
|
ReqBetDiscard.verify = function verify(message) { |
|
|
|
|
if (typeof message !== "object" || message === null) |
|
|
|
|
return "object expected"; |
|
|
|
|
return null; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a ReqBetDiscard message from a plain object. Also converts values to their respective internal types. |
|
|
|
|
* @function fromObject |
|
|
|
|
* @memberof api.ReqBetDiscard |
|
|
|
|
* @static |
|
|
|
|
* @param {Object.<string,*>} object Plain object |
|
|
|
|
* @returns {api.ReqBetDiscard} ReqBetDiscard |
|
|
|
|
*/ |
|
|
|
|
ReqBetDiscard.fromObject = function fromObject(object) { |
|
|
|
|
if (object instanceof $root.api.ReqBetDiscard) |
|
|
|
|
return object; |
|
|
|
|
return new $root.api.ReqBetDiscard(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a plain object from a ReqBetDiscard message. Also converts values to other types if specified. |
|
|
|
|
* @function toObject |
|
|
|
|
* @memberof api.ReqBetDiscard |
|
|
|
|
* @static |
|
|
|
|
* @param {api.ReqBetDiscard} message ReqBetDiscard |
|
|
|
|
* @param {$protobuf.IConversionOptions} [options] Conversion options |
|
|
|
|
* @returns {Object.<string,*>} Plain object |
|
|
|
|
*/ |
|
|
|
|
ReqBetDiscard.toObject = function toObject() { |
|
|
|
|
return {}; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Converts this ReqBetDiscard to JSON. |
|
|
|
|
* Converts this ReqPlaceBet to JSON. |
|
|
|
|
* @function toJSON |
|
|
|
|
* @memberof api.ReqBetDiscard |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @instance |
|
|
|
|
* @returns {Object.<string,*>} JSON object |
|
|
|
|
*/ |
|
|
|
|
ReqBetDiscard.prototype.toJSON = function toJSON() { |
|
|
|
|
ReqPlaceBet.prototype.toJSON = function toJSON() { |
|
|
|
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Gets the default type url for ReqBetDiscard |
|
|
|
|
* Gets the default type url for ReqPlaceBet |
|
|
|
|
* @function getTypeUrl |
|
|
|
|
* @memberof api.ReqBetDiscard |
|
|
|
|
* @memberof api.ReqPlaceBet |
|
|
|
|
* @static |
|
|
|
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") |
|
|
|
|
* @returns {string} The default type url |
|
|
|
|
*/ |
|
|
|
|
ReqBetDiscard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { |
|
|
|
|
ReqPlaceBet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { |
|
|
|
|
if (typeUrlPrefix === undefined) { |
|
|
|
|
typeUrlPrefix = "type.googleapis.com"; |
|
|
|
|
} |
|
|
|
|
return typeUrlPrefix + "/api.ReqBetDiscard"; |
|
|
|
|
return typeUrlPrefix + "/api.ReqPlaceBet"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
return ReqBetDiscard; |
|
|
|
|
return ReqPlaceBet; |
|
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
api.ResNoticePlayerLine = (function() { |
|
|
|
|
|