@wppconnect/wa-proto 2.3000.1056166380 → 2.3000.1056273360
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WAProto.proto +2 -11
- package/dist/index.d.ts +6 -153
- package/dist/index.js +32 -504
- package/package.json +1 -1
package/WAProto.proto
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package waproto;
|
|
3
3
|
|
|
4
|
-
/// WhatsApp Version: 2.3000.
|
|
4
|
+
/// WhatsApp Version: 2.3000.1056273360
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -5058,8 +5058,8 @@ message Message {
|
|
|
5058
5058
|
|
|
5059
5059
|
message VpcRequestMessage {
|
|
5060
5060
|
optional uint32 payloadSchemaVersion = 1;
|
|
5061
|
-
optional string requestId = 2;
|
|
5062
5061
|
optional ScopeHint scopeHint = 3;
|
|
5062
|
+
optional bytes token = 4;
|
|
5063
5063
|
enum ScopeHint {
|
|
5064
5064
|
UNKNOWN = 0;
|
|
5065
5065
|
WA_ONLY = 1;
|
|
@@ -5954,15 +5954,6 @@ message RotateEpochSuccess {
|
|
|
5954
5954
|
required bytes epochRootKeyFingerprint = 6;
|
|
5955
5955
|
}
|
|
5956
5956
|
|
|
5957
|
-
message RoutingInfo {
|
|
5958
|
-
repeated int32 regionId = 1;
|
|
5959
|
-
repeated int32 clusterId = 2;
|
|
5960
|
-
optional int32 taskId = 3;
|
|
5961
|
-
optional bool debug = 4;
|
|
5962
|
-
optional bool tcpBbr = 5;
|
|
5963
|
-
optional bool tcpKeepalive = 6;
|
|
5964
|
-
}
|
|
5965
|
-
|
|
5966
5957
|
message ScheduledMessageMetadata {
|
|
5967
5958
|
optional string revealKeyId = 1;
|
|
5968
5959
|
optional bytes revealKey = 2;
|
package/dist/index.d.ts
CHANGED
|
@@ -70788,12 +70788,12 @@ export namespace waproto {
|
|
|
70788
70788
|
/** VpcRequestMessage payloadSchemaVersion. */
|
|
70789
70789
|
payloadSchemaVersion?: (number|null);
|
|
70790
70790
|
|
|
70791
|
-
/** VpcRequestMessage requestId. */
|
|
70792
|
-
requestId?: (string|null);
|
|
70793
|
-
|
|
70794
70791
|
/** VpcRequestMessage scopeHint. */
|
|
70795
70792
|
scopeHint?: (waproto.Message.VpcRequestMessage.ScopeHint|null);
|
|
70796
70793
|
|
|
70794
|
+
/** VpcRequestMessage token. */
|
|
70795
|
+
token?: (Uint8Array|null);
|
|
70796
|
+
|
|
70797
70797
|
/**
|
|
70798
70798
|
* Creates a new VpcRequestMessage instance using the specified properties.
|
|
70799
70799
|
* @param [properties] Properties to set
|
|
@@ -70881,12 +70881,12 @@ export namespace waproto {
|
|
|
70881
70881
|
/** VpcRequestMessage payloadSchemaVersion */
|
|
70882
70882
|
payloadSchemaVersion?: (number|null);
|
|
70883
70883
|
|
|
70884
|
-
/** VpcRequestMessage requestId */
|
|
70885
|
-
requestId?: (string|null);
|
|
70886
|
-
|
|
70887
70884
|
/** VpcRequestMessage scopeHint */
|
|
70888
70885
|
scopeHint?: (waproto.Message.VpcRequestMessage.ScopeHint|null);
|
|
70889
70886
|
|
|
70887
|
+
/** VpcRequestMessage token */
|
|
70888
|
+
token?: (Uint8Array|null);
|
|
70889
|
+
|
|
70890
70890
|
/** Unknown fields preserved while decoding when enabled */
|
|
70891
70891
|
$unknowns?: Uint8Array[];
|
|
70892
70892
|
}
|
|
@@ -82470,153 +82470,6 @@ export namespace waproto {
|
|
|
82470
82470
|
type $Shape = waproto.RotateEpochSuccess.$Properties;
|
|
82471
82471
|
}
|
|
82472
82472
|
|
|
82473
|
-
/**
|
|
82474
|
-
* Properties of a RoutingInfo.
|
|
82475
|
-
* @deprecated Use waproto.RoutingInfo.$Properties instead.
|
|
82476
|
-
*/
|
|
82477
|
-
interface IRoutingInfo extends waproto.RoutingInfo.$Properties {
|
|
82478
|
-
}
|
|
82479
|
-
|
|
82480
|
-
/** Represents a RoutingInfo. */
|
|
82481
|
-
class RoutingInfo {
|
|
82482
|
-
|
|
82483
|
-
/**
|
|
82484
|
-
* Constructs a new RoutingInfo.
|
|
82485
|
-
* @param [properties] Properties to set
|
|
82486
|
-
*/
|
|
82487
|
-
constructor(properties?: waproto.RoutingInfo.$Properties);
|
|
82488
|
-
|
|
82489
|
-
/** Unknown fields preserved while decoding when enabled */
|
|
82490
|
-
$unknowns?: Uint8Array[];
|
|
82491
|
-
|
|
82492
|
-
/** RoutingInfo regionId. */
|
|
82493
|
-
regionId: number[];
|
|
82494
|
-
|
|
82495
|
-
/** RoutingInfo clusterId. */
|
|
82496
|
-
clusterId: number[];
|
|
82497
|
-
|
|
82498
|
-
/** RoutingInfo taskId. */
|
|
82499
|
-
taskId?: (number|null);
|
|
82500
|
-
|
|
82501
|
-
/** RoutingInfo debug. */
|
|
82502
|
-
debug?: (boolean|null);
|
|
82503
|
-
|
|
82504
|
-
/** RoutingInfo tcpBbr. */
|
|
82505
|
-
tcpBbr?: (boolean|null);
|
|
82506
|
-
|
|
82507
|
-
/** RoutingInfo tcpKeepalive. */
|
|
82508
|
-
tcpKeepalive?: (boolean|null);
|
|
82509
|
-
|
|
82510
|
-
/**
|
|
82511
|
-
* Creates a new RoutingInfo instance using the specified properties.
|
|
82512
|
-
* @param [properties] Properties to set
|
|
82513
|
-
* @returns RoutingInfo instance
|
|
82514
|
-
*/
|
|
82515
|
-
static create(properties: waproto.RoutingInfo.$Shape): waproto.RoutingInfo & waproto.RoutingInfo.$Shape;
|
|
82516
|
-
static create(properties?: waproto.RoutingInfo.$Properties): waproto.RoutingInfo;
|
|
82517
|
-
|
|
82518
|
-
/**
|
|
82519
|
-
* Encodes the specified RoutingInfo message. Does not implicitly {@link waproto.RoutingInfo.verify|verify} messages.
|
|
82520
|
-
* @param message RoutingInfo message or plain object to encode
|
|
82521
|
-
* @param [writer] Writer to encode to
|
|
82522
|
-
* @returns Writer
|
|
82523
|
-
*/
|
|
82524
|
-
static encode(message: waproto.RoutingInfo.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
82525
|
-
|
|
82526
|
-
/**
|
|
82527
|
-
* Encodes the specified RoutingInfo message, length delimited. Does not implicitly {@link waproto.RoutingInfo.verify|verify} messages.
|
|
82528
|
-
* @param message RoutingInfo message or plain object to encode
|
|
82529
|
-
* @param [writer] Writer to encode to
|
|
82530
|
-
* @returns Writer
|
|
82531
|
-
*/
|
|
82532
|
-
static encodeDelimited(message: waproto.RoutingInfo.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
82533
|
-
|
|
82534
|
-
/**
|
|
82535
|
-
* Decodes a RoutingInfo message from the specified reader or buffer.
|
|
82536
|
-
* @param reader Reader or buffer to decode from
|
|
82537
|
-
* @param [length] Message length if known beforehand
|
|
82538
|
-
* @returns {waproto.RoutingInfo & waproto.RoutingInfo.$Shape} RoutingInfo
|
|
82539
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82540
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82541
|
-
*/
|
|
82542
|
-
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.RoutingInfo & waproto.RoutingInfo.$Shape;
|
|
82543
|
-
|
|
82544
|
-
/**
|
|
82545
|
-
* Decodes a RoutingInfo message from the specified reader or buffer, length delimited.
|
|
82546
|
-
* @param reader Reader or buffer to decode from
|
|
82547
|
-
* @returns {waproto.RoutingInfo & waproto.RoutingInfo.$Shape} RoutingInfo
|
|
82548
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82549
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82550
|
-
*/
|
|
82551
|
-
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.RoutingInfo & waproto.RoutingInfo.$Shape;
|
|
82552
|
-
|
|
82553
|
-
/**
|
|
82554
|
-
* Verifies a RoutingInfo message.
|
|
82555
|
-
* @param message Plain object to verify
|
|
82556
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
82557
|
-
*/
|
|
82558
|
-
static verify(message: { [k: string]: any }): (string|null);
|
|
82559
|
-
|
|
82560
|
-
/**
|
|
82561
|
-
* Creates a RoutingInfo message from a plain object. Also converts values to their respective internal types.
|
|
82562
|
-
* @param object Plain object
|
|
82563
|
-
* @returns RoutingInfo
|
|
82564
|
-
*/
|
|
82565
|
-
static fromObject(object: { [k: string]: any }): waproto.RoutingInfo;
|
|
82566
|
-
|
|
82567
|
-
/**
|
|
82568
|
-
* Creates a plain object from a RoutingInfo message. Also converts values to other types if specified.
|
|
82569
|
-
* @param message RoutingInfo
|
|
82570
|
-
* @param [options] Conversion options
|
|
82571
|
-
* @returns Plain object
|
|
82572
|
-
*/
|
|
82573
|
-
static toObject(message: waproto.RoutingInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
82574
|
-
|
|
82575
|
-
/**
|
|
82576
|
-
* Converts this RoutingInfo to JSON.
|
|
82577
|
-
* @returns JSON object
|
|
82578
|
-
*/
|
|
82579
|
-
toJSON(): { [k: string]: any };
|
|
82580
|
-
|
|
82581
|
-
/**
|
|
82582
|
-
* Gets the type url for RoutingInfo
|
|
82583
|
-
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
82584
|
-
* @returns The type url
|
|
82585
|
-
*/
|
|
82586
|
-
static getTypeUrl(prefix?: string): string;
|
|
82587
|
-
}
|
|
82588
|
-
|
|
82589
|
-
namespace RoutingInfo {
|
|
82590
|
-
|
|
82591
|
-
/** Properties of a RoutingInfo. */
|
|
82592
|
-
interface $Properties {
|
|
82593
|
-
|
|
82594
|
-
/** RoutingInfo regionId */
|
|
82595
|
-
regionId?: (number[]|null);
|
|
82596
|
-
|
|
82597
|
-
/** RoutingInfo clusterId */
|
|
82598
|
-
clusterId?: (number[]|null);
|
|
82599
|
-
|
|
82600
|
-
/** RoutingInfo taskId */
|
|
82601
|
-
taskId?: (number|null);
|
|
82602
|
-
|
|
82603
|
-
/** RoutingInfo debug */
|
|
82604
|
-
debug?: (boolean|null);
|
|
82605
|
-
|
|
82606
|
-
/** RoutingInfo tcpBbr */
|
|
82607
|
-
tcpBbr?: (boolean|null);
|
|
82608
|
-
|
|
82609
|
-
/** RoutingInfo tcpKeepalive */
|
|
82610
|
-
tcpKeepalive?: (boolean|null);
|
|
82611
|
-
|
|
82612
|
-
/** Unknown fields preserved while decoding when enabled */
|
|
82613
|
-
$unknowns?: Uint8Array[];
|
|
82614
|
-
}
|
|
82615
|
-
|
|
82616
|
-
/** Shape of a RoutingInfo. */
|
|
82617
|
-
type $Shape = waproto.RoutingInfo.$Properties;
|
|
82618
|
-
}
|
|
82619
|
-
|
|
82620
82473
|
/**
|
|
82621
82474
|
* Properties of a ScheduledMessageMetadata.
|
|
82622
82475
|
* @deprecated Use waproto.ScheduledMessageMetadata.$Properties instead.
|
package/dist/index.js
CHANGED
|
@@ -210998,8 +210998,8 @@ $root.waproto = (function() {
|
|
|
210998
210998
|
* Properties of a VpcRequestMessage.
|
|
210999
210999
|
* @typedef {Object} waproto.Message.VpcRequestMessage.$Properties
|
|
211000
211000
|
* @property {number|null} [payloadSchemaVersion] VpcRequestMessage payloadSchemaVersion
|
|
211001
|
-
* @property {string|null} [requestId] VpcRequestMessage requestId
|
|
211002
211001
|
* @property {waproto.Message.VpcRequestMessage.ScopeHint|null} [scopeHint] VpcRequestMessage scopeHint
|
|
211002
|
+
* @property {Uint8Array|null} [token] VpcRequestMessage token
|
|
211003
211003
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
211004
211004
|
*/
|
|
211005
211005
|
|
|
@@ -211040,20 +211040,20 @@ $root.waproto = (function() {
|
|
|
211040
211040
|
VpcRequestMessage.prototype.payloadSchemaVersion = null;
|
|
211041
211041
|
|
|
211042
211042
|
/**
|
|
211043
|
-
* VpcRequestMessage
|
|
211044
|
-
* @member {
|
|
211043
|
+
* VpcRequestMessage scopeHint.
|
|
211044
|
+
* @member {waproto.Message.VpcRequestMessage.ScopeHint|null|undefined} scopeHint
|
|
211045
211045
|
* @memberof waproto.Message.VpcRequestMessage
|
|
211046
211046
|
* @instance
|
|
211047
211047
|
*/
|
|
211048
|
-
VpcRequestMessage.prototype.
|
|
211048
|
+
VpcRequestMessage.prototype.scopeHint = null;
|
|
211049
211049
|
|
|
211050
211050
|
/**
|
|
211051
|
-
* VpcRequestMessage
|
|
211052
|
-
* @member {
|
|
211051
|
+
* VpcRequestMessage token.
|
|
211052
|
+
* @member {Uint8Array|null|undefined} token
|
|
211053
211053
|
* @memberof waproto.Message.VpcRequestMessage
|
|
211054
211054
|
* @instance
|
|
211055
211055
|
*/
|
|
211056
|
-
VpcRequestMessage.prototype.
|
|
211056
|
+
VpcRequestMessage.prototype.token = null;
|
|
211057
211057
|
|
|
211058
211058
|
// OneOf field names bound to virtual getters and setters
|
|
211059
211059
|
var $oneOfFields;
|
|
@@ -211065,14 +211065,14 @@ $root.waproto = (function() {
|
|
|
211065
211065
|
});
|
|
211066
211066
|
|
|
211067
211067
|
// Virtual OneOf for proto3 optional field
|
|
211068
|
-
$Object.defineProperty(VpcRequestMessage.prototype, "
|
|
211069
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
211068
|
+
$Object.defineProperty(VpcRequestMessage.prototype, "_scopeHint", {
|
|
211069
|
+
get: $util.oneOfGetter($oneOfFields = ["scopeHint"]),
|
|
211070
211070
|
set: $util.oneOfSetter($oneOfFields)
|
|
211071
211071
|
});
|
|
211072
211072
|
|
|
211073
211073
|
// Virtual OneOf for proto3 optional field
|
|
211074
|
-
$Object.defineProperty(VpcRequestMessage.prototype, "
|
|
211075
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
211074
|
+
$Object.defineProperty(VpcRequestMessage.prototype, "_token", {
|
|
211075
|
+
get: $util.oneOfGetter($oneOfFields = ["token"]),
|
|
211076
211076
|
set: $util.oneOfSetter($oneOfFields)
|
|
211077
211077
|
});
|
|
211078
211078
|
|
|
@@ -211110,10 +211110,10 @@ $root.waproto = (function() {
|
|
|
211110
211110
|
throw $Error("max depth exceeded");
|
|
211111
211111
|
if (message.payloadSchemaVersion != null && $Object.hasOwnProperty.call(message, "payloadSchemaVersion"))
|
|
211112
211112
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.payloadSchemaVersion);
|
|
211113
|
-
if (message.requestId != null && $Object.hasOwnProperty.call(message, "requestId"))
|
|
211114
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
|
|
211115
211113
|
if (message.scopeHint != null && $Object.hasOwnProperty.call(message, "scopeHint"))
|
|
211116
211114
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.scopeHint);
|
|
211115
|
+
if (message.token != null && $Object.hasOwnProperty.call(message, "token"))
|
|
211116
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.token);
|
|
211117
211117
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
211118
211118
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
211119
211119
|
writer.raw(message.$unknowns[i]);
|
|
@@ -211178,13 +211178,6 @@ $root.waproto = (function() {
|
|
|
211178
211178
|
message._payloadSchemaVersion = "payloadSchemaVersion";
|
|
211179
211179
|
continue;
|
|
211180
211180
|
}
|
|
211181
|
-
case 2: {
|
|
211182
|
-
if (wireType !== 2)
|
|
211183
|
-
break;
|
|
211184
|
-
message.requestId = reader.stringVerify();
|
|
211185
|
-
message._requestId = "requestId";
|
|
211186
|
-
continue;
|
|
211187
|
-
}
|
|
211188
211181
|
case 3: {
|
|
211189
211182
|
if (wireType !== 0)
|
|
211190
211183
|
break;
|
|
@@ -211192,6 +211185,13 @@ $root.waproto = (function() {
|
|
|
211192
211185
|
message._scopeHint = "scopeHint";
|
|
211193
211186
|
continue;
|
|
211194
211187
|
}
|
|
211188
|
+
case 4: {
|
|
211189
|
+
if (wireType !== 2)
|
|
211190
|
+
break;
|
|
211191
|
+
message.token = reader.bytes();
|
|
211192
|
+
message._token = "token";
|
|
211193
|
+
continue;
|
|
211194
|
+
}
|
|
211195
211195
|
}
|
|
211196
211196
|
reader.skipType(wireType, _depth, tag);
|
|
211197
211197
|
if (!reader.discardUnknown) {
|
|
@@ -211246,16 +211246,16 @@ $root.waproto = (function() {
|
|
|
211246
211246
|
if (!$util.isInteger(message.payloadSchemaVersion))
|
|
211247
211247
|
return "payloadSchemaVersion: integer expected";
|
|
211248
211248
|
}
|
|
211249
|
-
if (message.requestId != null && $Object.hasOwnProperty.call(message, "requestId")) {
|
|
211250
|
-
properties._requestId = 1;
|
|
211251
|
-
if (!$util.isString(message.requestId))
|
|
211252
|
-
return "requestId: string expected";
|
|
211253
|
-
}
|
|
211254
211249
|
if (message.scopeHint != null && $Object.hasOwnProperty.call(message, "scopeHint")) {
|
|
211255
211250
|
properties._scopeHint = 1;
|
|
211256
211251
|
if (typeof message.scopeHint !== "number" || (message.scopeHint | 0) !== message.scopeHint)
|
|
211257
211252
|
return "scopeHint: enum value expected";
|
|
211258
211253
|
}
|
|
211254
|
+
if (message.token != null && $Object.hasOwnProperty.call(message, "token")) {
|
|
211255
|
+
properties._token = 1;
|
|
211256
|
+
if (!(message.token && typeof message.token.length === "number" || $util.isString(message.token)))
|
|
211257
|
+
return "token: buffer expected";
|
|
211258
|
+
}
|
|
211259
211259
|
return null;
|
|
211260
211260
|
};
|
|
211261
211261
|
|
|
@@ -211279,8 +211279,6 @@ $root.waproto = (function() {
|
|
|
211279
211279
|
var message = new $root.waproto.Message.VpcRequestMessage();
|
|
211280
211280
|
if (object.payloadSchemaVersion != null)
|
|
211281
211281
|
message.payloadSchemaVersion = object.payloadSchemaVersion >>> 0;
|
|
211282
|
-
if (object.requestId != null)
|
|
211283
|
-
message.requestId = $String(object.requestId);
|
|
211284
211282
|
switch (object.scopeHint) {
|
|
211285
211283
|
case "UNKNOWN":
|
|
211286
211284
|
case 0:
|
|
@@ -211310,6 +211308,11 @@ $root.waproto = (function() {
|
|
|
211310
211308
|
if (typeof object.scopeHint === "number" && (object.scopeHint | 0) === object.scopeHint)
|
|
211311
211309
|
message.scopeHint = object.scopeHint;
|
|
211312
211310
|
}
|
|
211311
|
+
if (object.token != null)
|
|
211312
|
+
if (typeof object.token === "string")
|
|
211313
|
+
$util.base64.decode(object.token, message.token = $util.newBuffer($util.base64.length(object.token)), 0);
|
|
211314
|
+
else if (object.token.length >= 0)
|
|
211315
|
+
message.token = object.token;
|
|
211313
211316
|
return message;
|
|
211314
211317
|
};
|
|
211315
211318
|
|
|
@@ -211332,10 +211335,10 @@ $root.waproto = (function() {
|
|
|
211332
211335
|
var object = {};
|
|
211333
211336
|
if (message.payloadSchemaVersion != null && $Object.hasOwnProperty.call(message, "payloadSchemaVersion"))
|
|
211334
211337
|
object.payloadSchemaVersion = message.payloadSchemaVersion;
|
|
211335
|
-
if (message.requestId != null && $Object.hasOwnProperty.call(message, "requestId"))
|
|
211336
|
-
object.requestId = message.requestId;
|
|
211337
211338
|
if (message.scopeHint != null && $Object.hasOwnProperty.call(message, "scopeHint"))
|
|
211338
211339
|
object.scopeHint = options.enums === $String ? $root.waproto.Message.VpcRequestMessage.ScopeHint[message.scopeHint] === $undefined ? message.scopeHint : $root.waproto.Message.VpcRequestMessage.ScopeHint[message.scopeHint] : message.scopeHint;
|
|
211340
|
+
if (message.token != null && $Object.hasOwnProperty.call(message, "token"))
|
|
211341
|
+
object.token = options.bytes === $String ? $util.base64.encode(message.token, 0, message.token.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.token) : message.token;
|
|
211339
211342
|
return object;
|
|
211340
211343
|
};
|
|
211341
211344
|
|
|
@@ -245247,481 +245250,6 @@ $root.waproto = (function() {
|
|
|
245247
245250
|
return RotateEpochSuccess;
|
|
245248
245251
|
})();
|
|
245249
245252
|
|
|
245250
|
-
waproto.RoutingInfo = (function() {
|
|
245251
|
-
|
|
245252
|
-
/**
|
|
245253
|
-
* Properties of a RoutingInfo.
|
|
245254
|
-
* @typedef {Object} waproto.RoutingInfo.$Properties
|
|
245255
|
-
* @property {Array.<number>|null} [regionId] RoutingInfo regionId
|
|
245256
|
-
* @property {Array.<number>|null} [clusterId] RoutingInfo clusterId
|
|
245257
|
-
* @property {number|null} [taskId] RoutingInfo taskId
|
|
245258
|
-
* @property {boolean|null} [debug] RoutingInfo debug
|
|
245259
|
-
* @property {boolean|null} [tcpBbr] RoutingInfo tcpBbr
|
|
245260
|
-
* @property {boolean|null} [tcpKeepalive] RoutingInfo tcpKeepalive
|
|
245261
|
-
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
245262
|
-
*/
|
|
245263
|
-
|
|
245264
|
-
/**
|
|
245265
|
-
* Properties of a RoutingInfo.
|
|
245266
|
-
* @memberof waproto
|
|
245267
|
-
* @interface IRoutingInfo
|
|
245268
|
-
* @augments waproto.RoutingInfo.$Properties
|
|
245269
|
-
* @deprecated Use waproto.RoutingInfo.$Properties instead.
|
|
245270
|
-
*/
|
|
245271
|
-
|
|
245272
|
-
/**
|
|
245273
|
-
* Shape of a RoutingInfo.
|
|
245274
|
-
* @typedef {waproto.RoutingInfo.$Properties} waproto.RoutingInfo.$Shape
|
|
245275
|
-
*/
|
|
245276
|
-
|
|
245277
|
-
/**
|
|
245278
|
-
* Constructs a new RoutingInfo.
|
|
245279
|
-
* @memberof waproto
|
|
245280
|
-
* @classdesc Represents a RoutingInfo.
|
|
245281
|
-
* @constructor
|
|
245282
|
-
* @param {waproto.RoutingInfo.$Properties=} [properties] Properties to set
|
|
245283
|
-
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
245284
|
-
*/
|
|
245285
|
-
var RoutingInfo = function (properties) {
|
|
245286
|
-
this.regionId = [];
|
|
245287
|
-
this.clusterId = [];
|
|
245288
|
-
if (properties)
|
|
245289
|
-
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
245290
|
-
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
245291
|
-
this[keys[i]] = properties[keys[i]];
|
|
245292
|
-
};
|
|
245293
|
-
|
|
245294
|
-
/**
|
|
245295
|
-
* RoutingInfo regionId.
|
|
245296
|
-
* @member {Array.<number>} regionId
|
|
245297
|
-
* @memberof waproto.RoutingInfo
|
|
245298
|
-
* @instance
|
|
245299
|
-
*/
|
|
245300
|
-
RoutingInfo.prototype.regionId = $util.emptyArray;
|
|
245301
|
-
|
|
245302
|
-
/**
|
|
245303
|
-
* RoutingInfo clusterId.
|
|
245304
|
-
* @member {Array.<number>} clusterId
|
|
245305
|
-
* @memberof waproto.RoutingInfo
|
|
245306
|
-
* @instance
|
|
245307
|
-
*/
|
|
245308
|
-
RoutingInfo.prototype.clusterId = $util.emptyArray;
|
|
245309
|
-
|
|
245310
|
-
/**
|
|
245311
|
-
* RoutingInfo taskId.
|
|
245312
|
-
* @member {number|null|undefined} taskId
|
|
245313
|
-
* @memberof waproto.RoutingInfo
|
|
245314
|
-
* @instance
|
|
245315
|
-
*/
|
|
245316
|
-
RoutingInfo.prototype.taskId = null;
|
|
245317
|
-
|
|
245318
|
-
/**
|
|
245319
|
-
* RoutingInfo debug.
|
|
245320
|
-
* @member {boolean|null|undefined} debug
|
|
245321
|
-
* @memberof waproto.RoutingInfo
|
|
245322
|
-
* @instance
|
|
245323
|
-
*/
|
|
245324
|
-
RoutingInfo.prototype.debug = null;
|
|
245325
|
-
|
|
245326
|
-
/**
|
|
245327
|
-
* RoutingInfo tcpBbr.
|
|
245328
|
-
* @member {boolean|null|undefined} tcpBbr
|
|
245329
|
-
* @memberof waproto.RoutingInfo
|
|
245330
|
-
* @instance
|
|
245331
|
-
*/
|
|
245332
|
-
RoutingInfo.prototype.tcpBbr = null;
|
|
245333
|
-
|
|
245334
|
-
/**
|
|
245335
|
-
* RoutingInfo tcpKeepalive.
|
|
245336
|
-
* @member {boolean|null|undefined} tcpKeepalive
|
|
245337
|
-
* @memberof waproto.RoutingInfo
|
|
245338
|
-
* @instance
|
|
245339
|
-
*/
|
|
245340
|
-
RoutingInfo.prototype.tcpKeepalive = null;
|
|
245341
|
-
|
|
245342
|
-
// OneOf field names bound to virtual getters and setters
|
|
245343
|
-
var $oneOfFields;
|
|
245344
|
-
|
|
245345
|
-
// Virtual OneOf for proto3 optional field
|
|
245346
|
-
$Object.defineProperty(RoutingInfo.prototype, "_taskId", {
|
|
245347
|
-
get: $util.oneOfGetter($oneOfFields = ["taskId"]),
|
|
245348
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
245349
|
-
});
|
|
245350
|
-
|
|
245351
|
-
// Virtual OneOf for proto3 optional field
|
|
245352
|
-
$Object.defineProperty(RoutingInfo.prototype, "_debug", {
|
|
245353
|
-
get: $util.oneOfGetter($oneOfFields = ["debug"]),
|
|
245354
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
245355
|
-
});
|
|
245356
|
-
|
|
245357
|
-
// Virtual OneOf for proto3 optional field
|
|
245358
|
-
$Object.defineProperty(RoutingInfo.prototype, "_tcpBbr", {
|
|
245359
|
-
get: $util.oneOfGetter($oneOfFields = ["tcpBbr"]),
|
|
245360
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
245361
|
-
});
|
|
245362
|
-
|
|
245363
|
-
// Virtual OneOf for proto3 optional field
|
|
245364
|
-
$Object.defineProperty(RoutingInfo.prototype, "_tcpKeepalive", {
|
|
245365
|
-
get: $util.oneOfGetter($oneOfFields = ["tcpKeepalive"]),
|
|
245366
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
245367
|
-
});
|
|
245368
|
-
|
|
245369
|
-
/**
|
|
245370
|
-
* Creates a new RoutingInfo instance using the specified properties.
|
|
245371
|
-
* @function create
|
|
245372
|
-
* @memberof waproto.RoutingInfo
|
|
245373
|
-
* @static
|
|
245374
|
-
* @param {waproto.RoutingInfo.$Properties=} [properties] Properties to set
|
|
245375
|
-
* @returns {waproto.RoutingInfo} RoutingInfo instance
|
|
245376
|
-
* @type {{
|
|
245377
|
-
* (properties: waproto.RoutingInfo.$Shape): waproto.RoutingInfo & waproto.RoutingInfo.$Shape;
|
|
245378
|
-
* (properties?: waproto.RoutingInfo.$Properties): waproto.RoutingInfo;
|
|
245379
|
-
* }}
|
|
245380
|
-
*/
|
|
245381
|
-
RoutingInfo.create = function(properties) {
|
|
245382
|
-
return new RoutingInfo(properties);
|
|
245383
|
-
};
|
|
245384
|
-
|
|
245385
|
-
/**
|
|
245386
|
-
* Encodes the specified RoutingInfo message. Does not implicitly {@link waproto.RoutingInfo.verify|verify} messages.
|
|
245387
|
-
* @function encode
|
|
245388
|
-
* @memberof waproto.RoutingInfo
|
|
245389
|
-
* @static
|
|
245390
|
-
* @param {waproto.RoutingInfo.$Properties} message RoutingInfo message or plain object to encode
|
|
245391
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
245392
|
-
* @returns {$protobuf.Writer} Writer
|
|
245393
|
-
*/
|
|
245394
|
-
RoutingInfo.encode = function (message, writer, _depth) {
|
|
245395
|
-
if (!writer)
|
|
245396
|
-
writer = $Writer.create();
|
|
245397
|
-
if (_depth === $undefined)
|
|
245398
|
-
_depth = 0;
|
|
245399
|
-
if (_depth > $util.recursionLimit)
|
|
245400
|
-
throw $Error("max depth exceeded");
|
|
245401
|
-
if (message.regionId != null && message.regionId.length)
|
|
245402
|
-
writer.uint32(/* id 1, wireType 2 =*/10).int32s(message.regionId);
|
|
245403
|
-
if (message.clusterId != null && message.clusterId.length)
|
|
245404
|
-
writer.uint32(/* id 2, wireType 2 =*/18).int32s(message.clusterId);
|
|
245405
|
-
if (message.taskId != null && $Object.hasOwnProperty.call(message, "taskId"))
|
|
245406
|
-
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.taskId);
|
|
245407
|
-
if (message.debug != null && $Object.hasOwnProperty.call(message, "debug"))
|
|
245408
|
-
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.debug);
|
|
245409
|
-
if (message.tcpBbr != null && $Object.hasOwnProperty.call(message, "tcpBbr"))
|
|
245410
|
-
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.tcpBbr);
|
|
245411
|
-
if (message.tcpKeepalive != null && $Object.hasOwnProperty.call(message, "tcpKeepalive"))
|
|
245412
|
-
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.tcpKeepalive);
|
|
245413
|
-
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
245414
|
-
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
245415
|
-
writer.raw(message.$unknowns[i]);
|
|
245416
|
-
return writer;
|
|
245417
|
-
};
|
|
245418
|
-
|
|
245419
|
-
/**
|
|
245420
|
-
* Encodes the specified RoutingInfo message, length delimited. Does not implicitly {@link waproto.RoutingInfo.verify|verify} messages.
|
|
245421
|
-
* @function encodeDelimited
|
|
245422
|
-
* @memberof waproto.RoutingInfo
|
|
245423
|
-
* @static
|
|
245424
|
-
* @param {waproto.RoutingInfo.$Properties} message RoutingInfo message or plain object to encode
|
|
245425
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
245426
|
-
* @returns {$protobuf.Writer} Writer
|
|
245427
|
-
*/
|
|
245428
|
-
RoutingInfo.encodeDelimited = function(message, writer) {
|
|
245429
|
-
return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
|
|
245430
|
-
};
|
|
245431
|
-
|
|
245432
|
-
/**
|
|
245433
|
-
* Decodes a RoutingInfo message from the specified reader or buffer.
|
|
245434
|
-
* @function decode
|
|
245435
|
-
* @memberof waproto.RoutingInfo
|
|
245436
|
-
* @static
|
|
245437
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
245438
|
-
* @param {number} [length] Message length if known beforehand
|
|
245439
|
-
* @returns {waproto.RoutingInfo & waproto.RoutingInfo.$Shape} RoutingInfo
|
|
245440
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
245441
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
245442
|
-
*/
|
|
245443
|
-
RoutingInfo.decode = function (reader, length, _end, _depth, _target) {
|
|
245444
|
-
if (!(reader instanceof $Reader))
|
|
245445
|
-
reader = $Reader.create(reader);
|
|
245446
|
-
if (_depth === $undefined)
|
|
245447
|
-
_depth = 0;
|
|
245448
|
-
if (_depth > $Reader.recursionLimit)
|
|
245449
|
-
throw $Error("max depth exceeded");
|
|
245450
|
-
var end, message;
|
|
245451
|
-
if (length === $undefined)
|
|
245452
|
-
end = reader.len;
|
|
245453
|
-
else {
|
|
245454
|
-
end = reader.pos + length;
|
|
245455
|
-
if (end > reader.len)
|
|
245456
|
-
throw $RangeError("index out of range");
|
|
245457
|
-
length = reader.len;
|
|
245458
|
-
reader.len = end;
|
|
245459
|
-
}
|
|
245460
|
-
message = _target || new $root.waproto.RoutingInfo();
|
|
245461
|
-
while (reader.pos < end) {
|
|
245462
|
-
var start = reader.pos;
|
|
245463
|
-
var tag = reader.tag();
|
|
245464
|
-
if (tag === _end) {
|
|
245465
|
-
_end = $undefined;
|
|
245466
|
-
break;
|
|
245467
|
-
}
|
|
245468
|
-
var wireType = tag & 7;
|
|
245469
|
-
switch (tag >>>= 3) {
|
|
245470
|
-
case 1: {
|
|
245471
|
-
if (wireType === 2) {
|
|
245472
|
-
if (!(message.regionId && message.regionId.length))
|
|
245473
|
-
message.regionId = [];
|
|
245474
|
-
reader.int32s(message.regionId);
|
|
245475
|
-
continue;
|
|
245476
|
-
}
|
|
245477
|
-
if (wireType !== 0)
|
|
245478
|
-
break;
|
|
245479
|
-
if (!(message.regionId && message.regionId.length))
|
|
245480
|
-
message.regionId = [];
|
|
245481
|
-
message.regionId.push(reader.int32());
|
|
245482
|
-
continue;
|
|
245483
|
-
}
|
|
245484
|
-
case 2: {
|
|
245485
|
-
if (wireType === 2) {
|
|
245486
|
-
if (!(message.clusterId && message.clusterId.length))
|
|
245487
|
-
message.clusterId = [];
|
|
245488
|
-
reader.int32s(message.clusterId);
|
|
245489
|
-
continue;
|
|
245490
|
-
}
|
|
245491
|
-
if (wireType !== 0)
|
|
245492
|
-
break;
|
|
245493
|
-
if (!(message.clusterId && message.clusterId.length))
|
|
245494
|
-
message.clusterId = [];
|
|
245495
|
-
message.clusterId.push(reader.int32());
|
|
245496
|
-
continue;
|
|
245497
|
-
}
|
|
245498
|
-
case 3: {
|
|
245499
|
-
if (wireType !== 0)
|
|
245500
|
-
break;
|
|
245501
|
-
message.taskId = reader.int32();
|
|
245502
|
-
message._taskId = "taskId";
|
|
245503
|
-
continue;
|
|
245504
|
-
}
|
|
245505
|
-
case 4: {
|
|
245506
|
-
if (wireType !== 0)
|
|
245507
|
-
break;
|
|
245508
|
-
message.debug = reader.bool();
|
|
245509
|
-
message._debug = "debug";
|
|
245510
|
-
continue;
|
|
245511
|
-
}
|
|
245512
|
-
case 5: {
|
|
245513
|
-
if (wireType !== 0)
|
|
245514
|
-
break;
|
|
245515
|
-
message.tcpBbr = reader.bool();
|
|
245516
|
-
message._tcpBbr = "tcpBbr";
|
|
245517
|
-
continue;
|
|
245518
|
-
}
|
|
245519
|
-
case 6: {
|
|
245520
|
-
if (wireType !== 0)
|
|
245521
|
-
break;
|
|
245522
|
-
message.tcpKeepalive = reader.bool();
|
|
245523
|
-
message._tcpKeepalive = "tcpKeepalive";
|
|
245524
|
-
continue;
|
|
245525
|
-
}
|
|
245526
|
-
}
|
|
245527
|
-
reader.skipType(wireType, _depth, tag);
|
|
245528
|
-
if (!reader.discardUnknown) {
|
|
245529
|
-
$util.makeProp(message, "$unknowns", false);
|
|
245530
|
-
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
245531
|
-
}
|
|
245532
|
-
}
|
|
245533
|
-
if (length !== $undefined) {
|
|
245534
|
-
if (reader.pos !== end)
|
|
245535
|
-
throw $RangeError("index out of range");
|
|
245536
|
-
reader.len = length;
|
|
245537
|
-
}
|
|
245538
|
-
if (_end !== $undefined)
|
|
245539
|
-
throw $Error("missing end group");
|
|
245540
|
-
return message;
|
|
245541
|
-
};
|
|
245542
|
-
|
|
245543
|
-
/**
|
|
245544
|
-
* Decodes a RoutingInfo message from the specified reader or buffer, length delimited.
|
|
245545
|
-
* @function decodeDelimited
|
|
245546
|
-
* @memberof waproto.RoutingInfo
|
|
245547
|
-
* @static
|
|
245548
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
245549
|
-
* @returns {waproto.RoutingInfo & waproto.RoutingInfo.$Shape} RoutingInfo
|
|
245550
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
245551
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
245552
|
-
*/
|
|
245553
|
-
RoutingInfo.decodeDelimited = function(reader) {
|
|
245554
|
-
if (!(reader instanceof $Reader))
|
|
245555
|
-
reader = new $Reader(reader);
|
|
245556
|
-
return this.decode(reader, reader.size());
|
|
245557
|
-
};
|
|
245558
|
-
|
|
245559
|
-
/**
|
|
245560
|
-
* Verifies a RoutingInfo message.
|
|
245561
|
-
* @function verify
|
|
245562
|
-
* @memberof waproto.RoutingInfo
|
|
245563
|
-
* @static
|
|
245564
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
245565
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
245566
|
-
*/
|
|
245567
|
-
RoutingInfo.verify = function (message, _depth) {
|
|
245568
|
-
if (typeof message !== "object" || message === null)
|
|
245569
|
-
return "object expected";
|
|
245570
|
-
if (_depth === $undefined)
|
|
245571
|
-
_depth = 0;
|
|
245572
|
-
if (_depth > $util.recursionLimit)
|
|
245573
|
-
return "max depth exceeded";
|
|
245574
|
-
var properties = {};
|
|
245575
|
-
if (message.regionId != null && $Object.hasOwnProperty.call(message, "regionId")) {
|
|
245576
|
-
if (!$Array.isArray(message.regionId))
|
|
245577
|
-
return "regionId: array expected";
|
|
245578
|
-
for (var i = 0; i < message.regionId.length; ++i)
|
|
245579
|
-
if (!$util.isInteger(message.regionId[i]))
|
|
245580
|
-
return "regionId: integer[] expected";
|
|
245581
|
-
}
|
|
245582
|
-
if (message.clusterId != null && $Object.hasOwnProperty.call(message, "clusterId")) {
|
|
245583
|
-
if (!$Array.isArray(message.clusterId))
|
|
245584
|
-
return "clusterId: array expected";
|
|
245585
|
-
for (var i = 0; i < message.clusterId.length; ++i)
|
|
245586
|
-
if (!$util.isInteger(message.clusterId[i]))
|
|
245587
|
-
return "clusterId: integer[] expected";
|
|
245588
|
-
}
|
|
245589
|
-
if (message.taskId != null && $Object.hasOwnProperty.call(message, "taskId")) {
|
|
245590
|
-
properties._taskId = 1;
|
|
245591
|
-
if (!$util.isInteger(message.taskId))
|
|
245592
|
-
return "taskId: integer expected";
|
|
245593
|
-
}
|
|
245594
|
-
if (message.debug != null && $Object.hasOwnProperty.call(message, "debug")) {
|
|
245595
|
-
properties._debug = 1;
|
|
245596
|
-
if (typeof message.debug !== "boolean")
|
|
245597
|
-
return "debug: boolean expected";
|
|
245598
|
-
}
|
|
245599
|
-
if (message.tcpBbr != null && $Object.hasOwnProperty.call(message, "tcpBbr")) {
|
|
245600
|
-
properties._tcpBbr = 1;
|
|
245601
|
-
if (typeof message.tcpBbr !== "boolean")
|
|
245602
|
-
return "tcpBbr: boolean expected";
|
|
245603
|
-
}
|
|
245604
|
-
if (message.tcpKeepalive != null && $Object.hasOwnProperty.call(message, "tcpKeepalive")) {
|
|
245605
|
-
properties._tcpKeepalive = 1;
|
|
245606
|
-
if (typeof message.tcpKeepalive !== "boolean")
|
|
245607
|
-
return "tcpKeepalive: boolean expected";
|
|
245608
|
-
}
|
|
245609
|
-
return null;
|
|
245610
|
-
};
|
|
245611
|
-
|
|
245612
|
-
/**
|
|
245613
|
-
* Creates a RoutingInfo message from a plain object. Also converts values to their respective internal types.
|
|
245614
|
-
* @function fromObject
|
|
245615
|
-
* @memberof waproto.RoutingInfo
|
|
245616
|
-
* @static
|
|
245617
|
-
* @param {Object.<string,*>} object Plain object
|
|
245618
|
-
* @returns {waproto.RoutingInfo} RoutingInfo
|
|
245619
|
-
*/
|
|
245620
|
-
RoutingInfo.fromObject = function (object, _depth) {
|
|
245621
|
-
if (object instanceof $root.waproto.RoutingInfo)
|
|
245622
|
-
return object;
|
|
245623
|
-
if (!$util.isObject(object))
|
|
245624
|
-
throw $TypeError(".waproto.RoutingInfo: object expected");
|
|
245625
|
-
if (_depth === $undefined)
|
|
245626
|
-
_depth = 0;
|
|
245627
|
-
if (_depth > $util.recursionLimit)
|
|
245628
|
-
throw $Error("max depth exceeded");
|
|
245629
|
-
var message = new $root.waproto.RoutingInfo();
|
|
245630
|
-
if (object.regionId) {
|
|
245631
|
-
if (!$Array.isArray(object.regionId))
|
|
245632
|
-
throw $TypeError(".waproto.RoutingInfo.regionId: array expected");
|
|
245633
|
-
message.regionId = $Array(object.regionId.length);
|
|
245634
|
-
for (var i = 0; i < object.regionId.length; ++i)
|
|
245635
|
-
message.regionId[i] = object.regionId[i] | 0;
|
|
245636
|
-
}
|
|
245637
|
-
if (object.clusterId) {
|
|
245638
|
-
if (!$Array.isArray(object.clusterId))
|
|
245639
|
-
throw $TypeError(".waproto.RoutingInfo.clusterId: array expected");
|
|
245640
|
-
message.clusterId = $Array(object.clusterId.length);
|
|
245641
|
-
for (var i = 0; i < object.clusterId.length; ++i)
|
|
245642
|
-
message.clusterId[i] = object.clusterId[i] | 0;
|
|
245643
|
-
}
|
|
245644
|
-
if (object.taskId != null)
|
|
245645
|
-
message.taskId = object.taskId | 0;
|
|
245646
|
-
if (object.debug != null)
|
|
245647
|
-
message.debug = $Boolean(object.debug);
|
|
245648
|
-
if (object.tcpBbr != null)
|
|
245649
|
-
message.tcpBbr = $Boolean(object.tcpBbr);
|
|
245650
|
-
if (object.tcpKeepalive != null)
|
|
245651
|
-
message.tcpKeepalive = $Boolean(object.tcpKeepalive);
|
|
245652
|
-
return message;
|
|
245653
|
-
};
|
|
245654
|
-
|
|
245655
|
-
/**
|
|
245656
|
-
* Creates a plain object from a RoutingInfo message. Also converts values to other types if specified.
|
|
245657
|
-
* @function toObject
|
|
245658
|
-
* @memberof waproto.RoutingInfo
|
|
245659
|
-
* @static
|
|
245660
|
-
* @param {waproto.RoutingInfo} message RoutingInfo
|
|
245661
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
245662
|
-
* @returns {Object.<string,*>} Plain object
|
|
245663
|
-
*/
|
|
245664
|
-
RoutingInfo.toObject = function (message, options, _depth) {
|
|
245665
|
-
if (!options)
|
|
245666
|
-
options = {};
|
|
245667
|
-
if (_depth === $undefined)
|
|
245668
|
-
_depth = 0;
|
|
245669
|
-
if (_depth > $util.recursionLimit)
|
|
245670
|
-
throw $Error("max depth exceeded");
|
|
245671
|
-
var object = {};
|
|
245672
|
-
if (options.arrays || options.defaults) {
|
|
245673
|
-
object.regionId = [];
|
|
245674
|
-
object.clusterId = [];
|
|
245675
|
-
}
|
|
245676
|
-
if (message.regionId && message.regionId.length) {
|
|
245677
|
-
object.regionId = $Array(message.regionId.length);
|
|
245678
|
-
for (var j = 0; j < message.regionId.length; ++j)
|
|
245679
|
-
object.regionId[j] = message.regionId[j];
|
|
245680
|
-
}
|
|
245681
|
-
if (message.clusterId && message.clusterId.length) {
|
|
245682
|
-
object.clusterId = $Array(message.clusterId.length);
|
|
245683
|
-
for (var j = 0; j < message.clusterId.length; ++j)
|
|
245684
|
-
object.clusterId[j] = message.clusterId[j];
|
|
245685
|
-
}
|
|
245686
|
-
if (message.taskId != null && $Object.hasOwnProperty.call(message, "taskId"))
|
|
245687
|
-
object.taskId = message.taskId;
|
|
245688
|
-
if (message.debug != null && $Object.hasOwnProperty.call(message, "debug"))
|
|
245689
|
-
object.debug = message.debug;
|
|
245690
|
-
if (message.tcpBbr != null && $Object.hasOwnProperty.call(message, "tcpBbr"))
|
|
245691
|
-
object.tcpBbr = message.tcpBbr;
|
|
245692
|
-
if (message.tcpKeepalive != null && $Object.hasOwnProperty.call(message, "tcpKeepalive"))
|
|
245693
|
-
object.tcpKeepalive = message.tcpKeepalive;
|
|
245694
|
-
return object;
|
|
245695
|
-
};
|
|
245696
|
-
|
|
245697
|
-
/**
|
|
245698
|
-
* Converts this RoutingInfo to JSON.
|
|
245699
|
-
* @function toJSON
|
|
245700
|
-
* @memberof waproto.RoutingInfo
|
|
245701
|
-
* @instance
|
|
245702
|
-
* @returns {Object.<string,*>} JSON object
|
|
245703
|
-
*/
|
|
245704
|
-
RoutingInfo.prototype.toJSON = function() {
|
|
245705
|
-
return RoutingInfo.toObject(this, $protobuf.util.toJSONOptions);
|
|
245706
|
-
};
|
|
245707
|
-
|
|
245708
|
-
/**
|
|
245709
|
-
* Gets the type url for RoutingInfo
|
|
245710
|
-
* @function getTypeUrl
|
|
245711
|
-
* @memberof waproto.RoutingInfo
|
|
245712
|
-
* @static
|
|
245713
|
-
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
245714
|
-
* @returns {string} The type url
|
|
245715
|
-
*/
|
|
245716
|
-
RoutingInfo.getTypeUrl = function(prefix) {
|
|
245717
|
-
if (prefix === $undefined)
|
|
245718
|
-
prefix = "type.googleapis.com";
|
|
245719
|
-
return prefix + "/waproto.RoutingInfo";
|
|
245720
|
-
};
|
|
245721
|
-
|
|
245722
|
-
return RoutingInfo;
|
|
245723
|
-
})();
|
|
245724
|
-
|
|
245725
245253
|
waproto.ScheduledMessageMetadata = (function() {
|
|
245726
245254
|
|
|
245727
245255
|
/**
|