|
|
|
@ -26,6 +26,7 @@ export const api = $root.api = (() => { |
|
|
|
* @property {number|null} [op] ProtoWrap op |
|
|
|
* @property {number|null} [op] ProtoWrap op |
|
|
|
* @property {number|null} [seq] ProtoWrap seq |
|
|
|
* @property {number|null} [seq] ProtoWrap seq |
|
|
|
* @property {boolean|null} [success] ProtoWrap success |
|
|
|
* @property {boolean|null} [success] ProtoWrap success |
|
|
|
|
|
|
|
* @property {number|Long|null} [reqMs] ProtoWrap reqMs |
|
|
|
* @property {Uint8Array|null} [body] ProtoWrap body |
|
|
|
* @property {Uint8Array|null} [body] ProtoWrap body |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
@ -76,6 +77,14 @@ export const api = $root.api = (() => { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
ProtoWrap.prototype.success = false; |
|
|
|
ProtoWrap.prototype.success = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* ProtoWrap reqMs. |
|
|
|
|
|
|
|
* @member {number|Long} reqMs |
|
|
|
|
|
|
|
* @memberof api.ProtoWrap |
|
|
|
|
|
|
|
* @instance |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
ProtoWrap.prototype.reqMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* ProtoWrap body. |
|
|
|
* ProtoWrap body. |
|
|
|
* @member {Uint8Array} body |
|
|
|
* @member {Uint8Array} body |
|
|
|
@ -116,6 +125,8 @@ export const api = $root.api = (() => { |
|
|
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.seq); |
|
|
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.seq); |
|
|
|
if (message.success != null && Object.hasOwnProperty.call(message, "success")) |
|
|
|
if (message.success != null && Object.hasOwnProperty.call(message, "success")) |
|
|
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.success); |
|
|
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.success); |
|
|
|
|
|
|
|
if (message.reqMs != null && Object.hasOwnProperty.call(message, "reqMs")) |
|
|
|
|
|
|
|
writer.uint32(/* id 5, wireType 0 =*/40).int64(message.reqMs); |
|
|
|
if (message.body != null && Object.hasOwnProperty.call(message, "body")) |
|
|
|
if (message.body != null && Object.hasOwnProperty.call(message, "body")) |
|
|
|
writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.body); |
|
|
|
writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.body); |
|
|
|
return writer; |
|
|
|
return writer; |
|
|
|
@ -168,6 +179,10 @@ export const api = $root.api = (() => { |
|
|
|
message.success = reader.bool(); |
|
|
|
message.success = reader.bool(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
case 5: { |
|
|
|
|
|
|
|
message.reqMs = reader.int64(); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
case 7: { |
|
|
|
case 7: { |
|
|
|
message.body = reader.bytes(); |
|
|
|
message.body = reader.bytes(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
@ -219,6 +234,9 @@ export const api = $root.api = (() => { |
|
|
|
if (message.success != null && message.hasOwnProperty("success")) |
|
|
|
if (message.success != null && message.hasOwnProperty("success")) |
|
|
|
if (typeof message.success !== "boolean") |
|
|
|
if (typeof message.success !== "boolean") |
|
|
|
return "success: boolean expected"; |
|
|
|
return "success: boolean expected"; |
|
|
|
|
|
|
|
if (message.reqMs != null && message.hasOwnProperty("reqMs")) |
|
|
|
|
|
|
|
if (!$util.isInteger(message.reqMs) && !(message.reqMs && $util.isInteger(message.reqMs.low) && $util.isInteger(message.reqMs.high))) |
|
|
|
|
|
|
|
return "reqMs: integer|Long expected"; |
|
|
|
if (message.body != null && message.hasOwnProperty("body")) |
|
|
|
if (message.body != null && message.hasOwnProperty("body")) |
|
|
|
if (!(message.body && typeof message.body.length === "number" || $util.isString(message.body))) |
|
|
|
if (!(message.body && typeof message.body.length === "number" || $util.isString(message.body))) |
|
|
|
return "body: buffer expected"; |
|
|
|
return "body: buffer expected"; |
|
|
|
@ -245,6 +263,15 @@ export const api = $root.api = (() => { |
|
|
|
message.seq = object.seq | 0; |
|
|
|
message.seq = object.seq | 0; |
|
|
|
if (object.success != null) |
|
|
|
if (object.success != null) |
|
|
|
message.success = Boolean(object.success); |
|
|
|
message.success = Boolean(object.success); |
|
|
|
|
|
|
|
if (object.reqMs != null) |
|
|
|
|
|
|
|
if ($util.Long) |
|
|
|
|
|
|
|
(message.reqMs = $util.Long.fromValue(object.reqMs)).unsigned = false; |
|
|
|
|
|
|
|
else if (typeof object.reqMs === "string") |
|
|
|
|
|
|
|
message.reqMs = parseInt(object.reqMs, 10); |
|
|
|
|
|
|
|
else if (typeof object.reqMs === "number") |
|
|
|
|
|
|
|
message.reqMs = object.reqMs; |
|
|
|
|
|
|
|
else if (typeof object.reqMs === "object") |
|
|
|
|
|
|
|
message.reqMs = new $util.LongBits(object.reqMs.low >>> 0, object.reqMs.high >>> 0).toNumber(); |
|
|
|
if (object.body != null) |
|
|
|
if (object.body != null) |
|
|
|
if (typeof object.body === "string") |
|
|
|
if (typeof object.body === "string") |
|
|
|
$util.base64.decode(object.body, message.body = $util.newBuffer($util.base64.length(object.body)), 0); |
|
|
|
$util.base64.decode(object.body, message.body = $util.newBuffer($util.base64.length(object.body)), 0); |
|
|
|
@ -271,6 +298,11 @@ export const api = $root.api = (() => { |
|
|
|
object.op = 0; |
|
|
|
object.op = 0; |
|
|
|
object.seq = 0; |
|
|
|
object.seq = 0; |
|
|
|
object.success = false; |
|
|
|
object.success = false; |
|
|
|
|
|
|
|
if ($util.Long) { |
|
|
|
|
|
|
|
let long = new $util.Long(0, 0, false); |
|
|
|
|
|
|
|
object.reqMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; |
|
|
|
|
|
|
|
} else |
|
|
|
|
|
|
|
object.reqMs = options.longs === String ? "0" : 0; |
|
|
|
if (options.bytes === String) |
|
|
|
if (options.bytes === String) |
|
|
|
object.body = ""; |
|
|
|
object.body = ""; |
|
|
|
else { |
|
|
|
else { |
|
|
|
@ -287,6 +319,11 @@ export const api = $root.api = (() => { |
|
|
|
object.seq = message.seq; |
|
|
|
object.seq = message.seq; |
|
|
|
if (message.success != null && message.hasOwnProperty("success")) |
|
|
|
if (message.success != null && message.hasOwnProperty("success")) |
|
|
|
object.success = message.success; |
|
|
|
object.success = message.success; |
|
|
|
|
|
|
|
if (message.reqMs != null && message.hasOwnProperty("reqMs")) |
|
|
|
|
|
|
|
if (typeof message.reqMs === "number") |
|
|
|
|
|
|
|
object.reqMs = options.longs === String ? String(message.reqMs) : message.reqMs; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
object.reqMs = options.longs === String ? $util.Long.prototype.toString.call(message.reqMs) : options.longs === Number ? new $util.LongBits(message.reqMs.low >>> 0, message.reqMs.high >>> 0).toNumber() : message.reqMs; |
|
|
|
if (message.body != null && message.hasOwnProperty("body")) |
|
|
|
if (message.body != null && message.hasOwnProperty("body")) |
|
|
|
object.body = options.bytes === String ? $util.base64.encode(message.body, 0, message.body.length) : options.bytes === Array ? Array.prototype.slice.call(message.body) : message.body; |
|
|
|
object.body = options.bytes === String ? $util.base64.encode(message.body, 0, message.body.length) : options.bytes === Array ? Array.prototype.slice.call(message.body) : message.body; |
|
|
|
return object; |
|
|
|
return object; |
|
|
|
@ -327,7 +364,7 @@ export const api = $root.api = (() => { |
|
|
|
* Properties of a Ping. |
|
|
|
* Properties of a Ping. |
|
|
|
* @memberof api |
|
|
|
* @memberof api |
|
|
|
* @interface IPing |
|
|
|
* @interface IPing |
|
|
|
* @property {number|Long|null} [timeMs] Ping timeMs |
|
|
|
* @property {number|Long|null} [ms] Ping ms |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -346,12 +383,12 @@ export const api = $root.api = (() => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Ping timeMs. |
|
|
|
* Ping ms. |
|
|
|
* @member {number|Long} timeMs |
|
|
|
* @member {number|Long} ms |
|
|
|
* @memberof api.Ping |
|
|
|
* @memberof api.Ping |
|
|
|
* @instance |
|
|
|
* @instance |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
Ping.prototype.timeMs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; |
|
|
|
Ping.prototype.ms = $util.Long ? $util.Long.fromBits(0,0,false) : 0; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a new Ping instance using the specified properties. |
|
|
|
* Creates a new Ping instance using the specified properties. |
|
|
|
@ -377,8 +414,8 @@ export const api = $root.api = (() => { |
|
|
|
Ping.encode = function encode(message, writer) { |
|
|
|
Ping.encode = function encode(message, writer) { |
|
|
|
if (!writer) |
|
|
|
if (!writer) |
|
|
|
writer = $Writer.create(); |
|
|
|
writer = $Writer.create(); |
|
|
|
if (message.timeMs != null && Object.hasOwnProperty.call(message, "timeMs")) |
|
|
|
if (message.ms != null && Object.hasOwnProperty.call(message, "ms")) |
|
|
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timeMs); |
|
|
|
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ms); |
|
|
|
return writer; |
|
|
|
return writer; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -414,7 +451,7 @@ export const api = $root.api = (() => { |
|
|
|
let tag = reader.uint32(); |
|
|
|
let tag = reader.uint32(); |
|
|
|
switch (tag >>> 3) { |
|
|
|
switch (tag >>> 3) { |
|
|
|
case 1: { |
|
|
|
case 1: { |
|
|
|
message.timeMs = reader.uint64(); |
|
|
|
message.ms = reader.int64(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
default: |
|
|
|
default: |
|
|
|
@ -452,9 +489,9 @@ export const api = $root.api = (() => { |
|
|
|
Ping.verify = function verify(message) { |
|
|
|
Ping.verify = function verify(message) { |
|
|
|
if (typeof message !== "object" || message === null) |
|
|
|
if (typeof message !== "object" || message === null) |
|
|
|
return "object expected"; |
|
|
|
return "object expected"; |
|
|
|
if (message.timeMs != null && message.hasOwnProperty("timeMs")) |
|
|
|
if (message.ms != null && message.hasOwnProperty("ms")) |
|
|
|
if (!$util.isInteger(message.timeMs) && !(message.timeMs && $util.isInteger(message.timeMs.low) && $util.isInteger(message.timeMs.high))) |
|
|
|
if (!$util.isInteger(message.ms) && !(message.ms && $util.isInteger(message.ms.low) && $util.isInteger(message.ms.high))) |
|
|
|
return "timeMs: integer|Long expected"; |
|
|
|
return "ms: integer|Long expected"; |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -470,15 +507,15 @@ export const api = $root.api = (() => { |
|
|
|
if (object instanceof $root.api.Ping) |
|
|
|
if (object instanceof $root.api.Ping) |
|
|
|
return object; |
|
|
|
return object; |
|
|
|
let message = new $root.api.Ping(); |
|
|
|
let message = new $root.api.Ping(); |
|
|
|
if (object.timeMs != null) |
|
|
|
if (object.ms != null) |
|
|
|
if ($util.Long) |
|
|
|
if ($util.Long) |
|
|
|
(message.timeMs = $util.Long.fromValue(object.timeMs)).unsigned = true; |
|
|
|
(message.ms = $util.Long.fromValue(object.ms)).unsigned = false; |
|
|
|
else if (typeof object.timeMs === "string") |
|
|
|
else if (typeof object.ms === "string") |
|
|
|
message.timeMs = parseInt(object.timeMs, 10); |
|
|
|
message.ms = parseInt(object.ms, 10); |
|
|
|
else if (typeof object.timeMs === "number") |
|
|
|
else if (typeof object.ms === "number") |
|
|
|
message.timeMs = object.timeMs; |
|
|
|
message.ms = object.ms; |
|
|
|
else if (typeof object.timeMs === "object") |
|
|
|
else if (typeof object.ms === "object") |
|
|
|
message.timeMs = new $util.LongBits(object.timeMs.low >>> 0, object.timeMs.high >>> 0).toNumber(true); |
|
|
|
message.ms = new $util.LongBits(object.ms.low >>> 0, object.ms.high >>> 0).toNumber(); |
|
|
|
return message; |
|
|
|
return message; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -497,15 +534,15 @@ export const api = $root.api = (() => { |
|
|
|
let object = {}; |
|
|
|
let object = {}; |
|
|
|
if (options.defaults) |
|
|
|
if (options.defaults) |
|
|
|
if ($util.Long) { |
|
|
|
if ($util.Long) { |
|
|
|
let long = new $util.Long(0, 0, true); |
|
|
|
let long = new $util.Long(0, 0, false); |
|
|
|
object.timeMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; |
|
|
|
object.ms = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; |
|
|
|
} else |
|
|
|
} else |
|
|
|
object.timeMs = options.longs === String ? "0" : 0; |
|
|
|
object.ms = options.longs === String ? "0" : 0; |
|
|
|
if (message.timeMs != null && message.hasOwnProperty("timeMs")) |
|
|
|
if (message.ms != null && message.hasOwnProperty("ms")) |
|
|
|
if (typeof message.timeMs === "number") |
|
|
|
if (typeof message.ms === "number") |
|
|
|
object.timeMs = options.longs === String ? String(message.timeMs) : message.timeMs; |
|
|
|
object.ms = options.longs === String ? String(message.ms) : message.ms; |
|
|
|
else |
|
|
|
else |
|
|
|
object.timeMs = options.longs === String ? $util.Long.prototype.toString.call(message.timeMs) : options.longs === Number ? new $util.LongBits(message.timeMs.low >>> 0, message.timeMs.high >>> 0).toNumber(true) : message.timeMs; |
|
|
|
object.ms = options.longs === String ? $util.Long.prototype.toString.call(message.ms) : options.longs === Number ? new $util.LongBits(message.ms.low >>> 0, message.ms.high >>> 0).toNumber() : message.ms; |
|
|
|
return object; |
|
|
|
return object; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -544,7 +581,7 @@ export const api = $root.api = (() => { |
|
|
|
* Properties of a Pong. |
|
|
|
* Properties of a Pong. |
|
|
|
* @memberof api |
|
|
|
* @memberof api |
|
|
|
* @interface IPong |
|
|
|
* @interface IPong |
|
|
|
* @property {number|Long|null} [timeMs] Pong timeMs |
|
|
|
* @property {number|Long|null} [pingMs] Pong pingMs |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -563,12 +600,12 @@ export const api = $root.api = (() => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Pong timeMs. |
|
|
|
* Pong pingMs. |
|
|
|
* @member {number|Long} timeMs |
|
|
|
* @member {number|Long} pingMs |
|
|
|
* @memberof api.Pong |
|
|
|
* @memberof api.Pong |
|
|
|
* @instance |
|
|
|
* @instance |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
Pong.prototype.timeMs = $util.Long ? $util.Long.fromBits(0,0,true) : 0; |
|
|
|
Pong.prototype.pingMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a new Pong instance using the specified properties. |
|
|
|
* Creates a new Pong instance using the specified properties. |
|
|
|
@ -594,8 +631,8 @@ export const api = $root.api = (() => { |
|
|
|
Pong.encode = function encode(message, writer) { |
|
|
|
Pong.encode = function encode(message, writer) { |
|
|
|
if (!writer) |
|
|
|
if (!writer) |
|
|
|
writer = $Writer.create(); |
|
|
|
writer = $Writer.create(); |
|
|
|
if (message.timeMs != null && Object.hasOwnProperty.call(message, "timeMs")) |
|
|
|
if (message.pingMs != null && Object.hasOwnProperty.call(message, "pingMs")) |
|
|
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timeMs); |
|
|
|
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pingMs); |
|
|
|
return writer; |
|
|
|
return writer; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -631,7 +668,7 @@ export const api = $root.api = (() => { |
|
|
|
let tag = reader.uint32(); |
|
|
|
let tag = reader.uint32(); |
|
|
|
switch (tag >>> 3) { |
|
|
|
switch (tag >>> 3) { |
|
|
|
case 1: { |
|
|
|
case 1: { |
|
|
|
message.timeMs = reader.uint64(); |
|
|
|
message.pingMs = reader.int64(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
default: |
|
|
|
default: |
|
|
|
@ -669,9 +706,9 @@ export const api = $root.api = (() => { |
|
|
|
Pong.verify = function verify(message) { |
|
|
|
Pong.verify = function verify(message) { |
|
|
|
if (typeof message !== "object" || message === null) |
|
|
|
if (typeof message !== "object" || message === null) |
|
|
|
return "object expected"; |
|
|
|
return "object expected"; |
|
|
|
if (message.timeMs != null && message.hasOwnProperty("timeMs")) |
|
|
|
if (message.pingMs != null && message.hasOwnProperty("pingMs")) |
|
|
|
if (!$util.isInteger(message.timeMs) && !(message.timeMs && $util.isInteger(message.timeMs.low) && $util.isInteger(message.timeMs.high))) |
|
|
|
if (!$util.isInteger(message.pingMs) && !(message.pingMs && $util.isInteger(message.pingMs.low) && $util.isInteger(message.pingMs.high))) |
|
|
|
return "timeMs: integer|Long expected"; |
|
|
|
return "pingMs: integer|Long expected"; |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -687,15 +724,15 @@ export const api = $root.api = (() => { |
|
|
|
if (object instanceof $root.api.Pong) |
|
|
|
if (object instanceof $root.api.Pong) |
|
|
|
return object; |
|
|
|
return object; |
|
|
|
let message = new $root.api.Pong(); |
|
|
|
let message = new $root.api.Pong(); |
|
|
|
if (object.timeMs != null) |
|
|
|
if (object.pingMs != null) |
|
|
|
if ($util.Long) |
|
|
|
if ($util.Long) |
|
|
|
(message.timeMs = $util.Long.fromValue(object.timeMs)).unsigned = true; |
|
|
|
(message.pingMs = $util.Long.fromValue(object.pingMs)).unsigned = false; |
|
|
|
else if (typeof object.timeMs === "string") |
|
|
|
else if (typeof object.pingMs === "string") |
|
|
|
message.timeMs = parseInt(object.timeMs, 10); |
|
|
|
message.pingMs = parseInt(object.pingMs, 10); |
|
|
|
else if (typeof object.timeMs === "number") |
|
|
|
else if (typeof object.pingMs === "number") |
|
|
|
message.timeMs = object.timeMs; |
|
|
|
message.pingMs = object.pingMs; |
|
|
|
else if (typeof object.timeMs === "object") |
|
|
|
else if (typeof object.pingMs === "object") |
|
|
|
message.timeMs = new $util.LongBits(object.timeMs.low >>> 0, object.timeMs.high >>> 0).toNumber(true); |
|
|
|
message.pingMs = new $util.LongBits(object.pingMs.low >>> 0, object.pingMs.high >>> 0).toNumber(); |
|
|
|
return message; |
|
|
|
return message; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -714,15 +751,15 @@ export const api = $root.api = (() => { |
|
|
|
let object = {}; |
|
|
|
let object = {}; |
|
|
|
if (options.defaults) |
|
|
|
if (options.defaults) |
|
|
|
if ($util.Long) { |
|
|
|
if ($util.Long) { |
|
|
|
let long = new $util.Long(0, 0, true); |
|
|
|
let long = new $util.Long(0, 0, false); |
|
|
|
object.timeMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; |
|
|
|
object.pingMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; |
|
|
|
} else |
|
|
|
} else |
|
|
|
object.timeMs = options.longs === String ? "0" : 0; |
|
|
|
object.pingMs = options.longs === String ? "0" : 0; |
|
|
|
if (message.timeMs != null && message.hasOwnProperty("timeMs")) |
|
|
|
if (message.pingMs != null && message.hasOwnProperty("pingMs")) |
|
|
|
if (typeof message.timeMs === "number") |
|
|
|
if (typeof message.pingMs === "number") |
|
|
|
object.timeMs = options.longs === String ? String(message.timeMs) : message.timeMs; |
|
|
|
object.pingMs = options.longs === String ? String(message.pingMs) : message.pingMs; |
|
|
|
else |
|
|
|
else |
|
|
|
object.timeMs = options.longs === String ? $util.Long.prototype.toString.call(message.timeMs) : options.longs === Number ? new $util.LongBits(message.timeMs.low >>> 0, message.timeMs.high >>> 0).toNumber(true) : message.timeMs; |
|
|
|
object.pingMs = options.longs === String ? $util.Long.prototype.toString.call(message.pingMs) : options.longs === Number ? new $util.LongBits(message.pingMs.low >>> 0, message.pingMs.high >>> 0).toNumber() : message.pingMs; |
|
|
|
return object; |
|
|
|
return object; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -5265,7 +5302,6 @@ export const api = $root.api = (() => { |
|
|
|
* @property {string|null} [avatar] TablePlayer avatar |
|
|
|
* @property {string|null} [avatar] TablePlayer avatar |
|
|
|
* @property {number|null} [chip] TablePlayer chip |
|
|
|
* @property {number|null} [chip] TablePlayer chip |
|
|
|
* @property {number|null} [status] TablePlayer status |
|
|
|
* @property {number|null} [status] TablePlayer status |
|
|
|
* @property {number|null} [lastStatus] TablePlayer lastStatus |
|
|
|
|
|
|
|
* @property {boolean|null} [master] TablePlayer master |
|
|
|
* @property {boolean|null} [master] TablePlayer master |
|
|
|
* @property {number|null} [roundBetTimes] TablePlayer roundBetTimes |
|
|
|
* @property {number|null} [roundBetTimes] TablePlayer roundBetTimes |
|
|
|
* @property {number|null} [totalBetChip] TablePlayer totalBetChip |
|
|
|
* @property {number|null} [totalBetChip] TablePlayer totalBetChip |
|
|
|
@ -5338,14 +5374,6 @@ export const api = $root.api = (() => { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
TablePlayer.prototype.status = 0; |
|
|
|
TablePlayer.prototype.status = 0; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* TablePlayer lastStatus. |
|
|
|
|
|
|
|
* @member {number} lastStatus |
|
|
|
|
|
|
|
* @memberof api.TablePlayer |
|
|
|
|
|
|
|
* @instance |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
TablePlayer.prototype.lastStatus = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* TablePlayer master. |
|
|
|
* TablePlayer master. |
|
|
|
* @member {boolean} master |
|
|
|
* @member {boolean} master |
|
|
|
@ -5430,8 +5458,6 @@ export const api = $root.api = (() => { |
|
|
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.chip); |
|
|
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.chip); |
|
|
|
if (message.status != null && Object.hasOwnProperty.call(message, "status")) |
|
|
|
if (message.status != null && Object.hasOwnProperty.call(message, "status")) |
|
|
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.status); |
|
|
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.status); |
|
|
|
if (message.lastStatus != null && Object.hasOwnProperty.call(message, "lastStatus")) |
|
|
|
|
|
|
|
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.lastStatus); |
|
|
|
|
|
|
|
if (message.master != null && Object.hasOwnProperty.call(message, "master")) |
|
|
|
if (message.master != null && Object.hasOwnProperty.call(message, "master")) |
|
|
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.master); |
|
|
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.master); |
|
|
|
if (message.roundBetTimes != null && Object.hasOwnProperty.call(message, "roundBetTimes")) |
|
|
|
if (message.roundBetTimes != null && Object.hasOwnProperty.call(message, "roundBetTimes")) |
|
|
|
@ -5503,10 +5529,6 @@ export const api = $root.api = (() => { |
|
|
|
message.status = reader.int32(); |
|
|
|
message.status = reader.int32(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
case 7: { |
|
|
|
|
|
|
|
message.lastStatus = reader.int32(); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
case 8: { |
|
|
|
case 8: { |
|
|
|
message.master = reader.bool(); |
|
|
|
message.master = reader.bool(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
@ -5586,9 +5608,6 @@ export const api = $root.api = (() => { |
|
|
|
if (message.status != null && message.hasOwnProperty("status")) |
|
|
|
if (message.status != null && message.hasOwnProperty("status")) |
|
|
|
if (!$util.isInteger(message.status)) |
|
|
|
if (!$util.isInteger(message.status)) |
|
|
|
return "status: integer expected"; |
|
|
|
return "status: integer expected"; |
|
|
|
if (message.lastStatus != null && message.hasOwnProperty("lastStatus")) |
|
|
|
|
|
|
|
if (!$util.isInteger(message.lastStatus)) |
|
|
|
|
|
|
|
return "lastStatus: integer expected"; |
|
|
|
|
|
|
|
if (message.master != null && message.hasOwnProperty("master")) |
|
|
|
if (message.master != null && message.hasOwnProperty("master")) |
|
|
|
if (typeof message.master !== "boolean") |
|
|
|
if (typeof message.master !== "boolean") |
|
|
|
return "master: boolean expected"; |
|
|
|
return "master: boolean expected"; |
|
|
|
@ -5651,8 +5670,6 @@ export const api = $root.api = (() => { |
|
|
|
message.chip = object.chip | 0; |
|
|
|
message.chip = object.chip | 0; |
|
|
|
if (object.status != null) |
|
|
|
if (object.status != null) |
|
|
|
message.status = object.status | 0; |
|
|
|
message.status = object.status | 0; |
|
|
|
if (object.lastStatus != null) |
|
|
|
|
|
|
|
message.lastStatus = object.lastStatus | 0; |
|
|
|
|
|
|
|
if (object.master != null) |
|
|
|
if (object.master != null) |
|
|
|
message.master = Boolean(object.master); |
|
|
|
message.master = Boolean(object.master); |
|
|
|
if (object.roundBetTimes != null) |
|
|
|
if (object.roundBetTimes != null) |
|
|
|
@ -5708,7 +5725,6 @@ export const api = $root.api = (() => { |
|
|
|
object.avatar = ""; |
|
|
|
object.avatar = ""; |
|
|
|
object.chip = 0; |
|
|
|
object.chip = 0; |
|
|
|
object.status = 0; |
|
|
|
object.status = 0; |
|
|
|
object.lastStatus = 0; |
|
|
|
|
|
|
|
object.master = false; |
|
|
|
object.master = false; |
|
|
|
object.roundBetTimes = 0; |
|
|
|
object.roundBetTimes = 0; |
|
|
|
object.handType = null; |
|
|
|
object.handType = null; |
|
|
|
@ -5730,8 +5746,6 @@ export const api = $root.api = (() => { |
|
|
|
object.chip = message.chip; |
|
|
|
object.chip = message.chip; |
|
|
|
if (message.status != null && message.hasOwnProperty("status")) |
|
|
|
if (message.status != null && message.hasOwnProperty("status")) |
|
|
|
object.status = message.status; |
|
|
|
object.status = message.status; |
|
|
|
if (message.lastStatus != null && message.hasOwnProperty("lastStatus")) |
|
|
|
|
|
|
|
object.lastStatus = message.lastStatus; |
|
|
|
|
|
|
|
if (message.master != null && message.hasOwnProperty("master")) |
|
|
|
if (message.master != null && message.hasOwnProperty("master")) |
|
|
|
object.master = message.master; |
|
|
|
object.master = message.master; |
|
|
|
if (message.roundBetTimes != null && message.hasOwnProperty("roundBetTimes")) |
|
|
|
if (message.roundBetTimes != null && message.hasOwnProperty("roundBetTimes")) |
|
|
|
@ -7078,6 +7092,7 @@ export const api = $root.api = (() => { |
|
|
|
* @interface IReqBetting |
|
|
|
* @interface IReqBetting |
|
|
|
* @property {number|null} [betType] ReqBetting betType |
|
|
|
* @property {number|null} [betType] ReqBetting betType |
|
|
|
* @property {number|null} [betChip] ReqBetting betChip |
|
|
|
* @property {number|null} [betChip] ReqBetting betChip |
|
|
|
|
|
|
|
* @property {number|null} [operator] ReqBetting operator |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -7111,6 +7126,14 @@ export const api = $root.api = (() => { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
ReqBetting.prototype.betChip = 0; |
|
|
|
ReqBetting.prototype.betChip = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* ReqBetting operator. |
|
|
|
|
|
|
|
* @member {number} operator |
|
|
|
|
|
|
|
* @memberof api.ReqBetting |
|
|
|
|
|
|
|
* @instance |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
ReqBetting.prototype.operator = 0; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a new ReqBetting instance using the specified properties. |
|
|
|
* Creates a new ReqBetting instance using the specified properties. |
|
|
|
* @function create |
|
|
|
* @function create |
|
|
|
@ -7139,6 +7162,8 @@ export const api = $root.api = (() => { |
|
|
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.betType); |
|
|
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.betType); |
|
|
|
if (message.betChip != null && Object.hasOwnProperty.call(message, "betChip")) |
|
|
|
if (message.betChip != null && Object.hasOwnProperty.call(message, "betChip")) |
|
|
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.betChip); |
|
|
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.betChip); |
|
|
|
|
|
|
|
if (message.operator != null && Object.hasOwnProperty.call(message, "operator")) |
|
|
|
|
|
|
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operator); |
|
|
|
return writer; |
|
|
|
return writer; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -7181,6 +7206,10 @@ export const api = $root.api = (() => { |
|
|
|
message.betChip = reader.int32(); |
|
|
|
message.betChip = reader.int32(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
case 3: { |
|
|
|
|
|
|
|
message.operator = reader.int32(); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
default: |
|
|
|
default: |
|
|
|
reader.skipType(tag & 7); |
|
|
|
reader.skipType(tag & 7); |
|
|
|
break; |
|
|
|
break; |
|
|
|
@ -7222,6 +7251,9 @@ export const api = $root.api = (() => { |
|
|
|
if (message.betChip != null && message.hasOwnProperty("betChip")) |
|
|
|
if (message.betChip != null && message.hasOwnProperty("betChip")) |
|
|
|
if (!$util.isInteger(message.betChip)) |
|
|
|
if (!$util.isInteger(message.betChip)) |
|
|
|
return "betChip: integer expected"; |
|
|
|
return "betChip: integer expected"; |
|
|
|
|
|
|
|
if (message.operator != null && message.hasOwnProperty("operator")) |
|
|
|
|
|
|
|
if (!$util.isInteger(message.operator)) |
|
|
|
|
|
|
|
return "operator: integer expected"; |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -7241,6 +7273,8 @@ export const api = $root.api = (() => { |
|
|
|
message.betType = object.betType | 0; |
|
|
|
message.betType = object.betType | 0; |
|
|
|
if (object.betChip != null) |
|
|
|
if (object.betChip != null) |
|
|
|
message.betChip = object.betChip | 0; |
|
|
|
message.betChip = object.betChip | 0; |
|
|
|
|
|
|
|
if (object.operator != null) |
|
|
|
|
|
|
|
message.operator = object.operator | 0; |
|
|
|
return message; |
|
|
|
return message; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -7260,11 +7294,14 @@ export const api = $root.api = (() => { |
|
|
|
if (options.defaults) { |
|
|
|
if (options.defaults) { |
|
|
|
object.betType = 0; |
|
|
|
object.betType = 0; |
|
|
|
object.betChip = 0; |
|
|
|
object.betChip = 0; |
|
|
|
|
|
|
|
object.operator = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
if (message.betType != null && message.hasOwnProperty("betType")) |
|
|
|
if (message.betType != null && message.hasOwnProperty("betType")) |
|
|
|
object.betType = message.betType; |
|
|
|
object.betType = message.betType; |
|
|
|
if (message.betChip != null && message.hasOwnProperty("betChip")) |
|
|
|
if (message.betChip != null && message.hasOwnProperty("betChip")) |
|
|
|
object.betChip = message.betChip; |
|
|
|
object.betChip = message.betChip; |
|
|
|
|
|
|
|
if (message.operator != null && message.hasOwnProperty("operator")) |
|
|
|
|
|
|
|
object.operator = message.operator; |
|
|
|
return object; |
|
|
|
return object; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|