@wppconnect/wa-proto 2.3000.1055923191 → 2.3000.1056008220
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 +10 -1
- package/dist/index.d.ts +147 -0
- package/dist/index.js +475 -0
- 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.1056008220
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -5912,6 +5912,15 @@ message RotateEpochSuccess {
|
|
|
5912
5912
|
required bytes epochRootKeyFingerprint = 6;
|
|
5913
5913
|
}
|
|
5914
5914
|
|
|
5915
|
+
message RoutingInfo {
|
|
5916
|
+
repeated int32 regionId = 1;
|
|
5917
|
+
repeated int32 clusterId = 2;
|
|
5918
|
+
optional int32 taskId = 3;
|
|
5919
|
+
optional bool debug = 4;
|
|
5920
|
+
optional bool tcpBbr = 5;
|
|
5921
|
+
optional bool tcpKeepalive = 6;
|
|
5922
|
+
}
|
|
5923
|
+
|
|
5915
5924
|
message ScheduledMessageMetadata {
|
|
5916
5925
|
optional string revealKeyId = 1;
|
|
5917
5926
|
optional bytes revealKey = 2;
|
package/dist/index.d.ts
CHANGED
|
@@ -81979,6 +81979,153 @@ export namespace waproto {
|
|
|
81979
81979
|
type $Shape = waproto.RotateEpochSuccess.$Properties;
|
|
81980
81980
|
}
|
|
81981
81981
|
|
|
81982
|
+
/**
|
|
81983
|
+
* Properties of a RoutingInfo.
|
|
81984
|
+
* @deprecated Use waproto.RoutingInfo.$Properties instead.
|
|
81985
|
+
*/
|
|
81986
|
+
interface IRoutingInfo extends waproto.RoutingInfo.$Properties {
|
|
81987
|
+
}
|
|
81988
|
+
|
|
81989
|
+
/** Represents a RoutingInfo. */
|
|
81990
|
+
class RoutingInfo {
|
|
81991
|
+
|
|
81992
|
+
/**
|
|
81993
|
+
* Constructs a new RoutingInfo.
|
|
81994
|
+
* @param [properties] Properties to set
|
|
81995
|
+
*/
|
|
81996
|
+
constructor(properties?: waproto.RoutingInfo.$Properties);
|
|
81997
|
+
|
|
81998
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
81999
|
+
$unknowns?: Uint8Array[];
|
|
82000
|
+
|
|
82001
|
+
/** RoutingInfo regionId. */
|
|
82002
|
+
regionId: number[];
|
|
82003
|
+
|
|
82004
|
+
/** RoutingInfo clusterId. */
|
|
82005
|
+
clusterId: number[];
|
|
82006
|
+
|
|
82007
|
+
/** RoutingInfo taskId. */
|
|
82008
|
+
taskId?: (number|null);
|
|
82009
|
+
|
|
82010
|
+
/** RoutingInfo debug. */
|
|
82011
|
+
debug?: (boolean|null);
|
|
82012
|
+
|
|
82013
|
+
/** RoutingInfo tcpBbr. */
|
|
82014
|
+
tcpBbr?: (boolean|null);
|
|
82015
|
+
|
|
82016
|
+
/** RoutingInfo tcpKeepalive. */
|
|
82017
|
+
tcpKeepalive?: (boolean|null);
|
|
82018
|
+
|
|
82019
|
+
/**
|
|
82020
|
+
* Creates a new RoutingInfo instance using the specified properties.
|
|
82021
|
+
* @param [properties] Properties to set
|
|
82022
|
+
* @returns RoutingInfo instance
|
|
82023
|
+
*/
|
|
82024
|
+
static create(properties: waproto.RoutingInfo.$Shape): waproto.RoutingInfo & waproto.RoutingInfo.$Shape;
|
|
82025
|
+
static create(properties?: waproto.RoutingInfo.$Properties): waproto.RoutingInfo;
|
|
82026
|
+
|
|
82027
|
+
/**
|
|
82028
|
+
* Encodes the specified RoutingInfo message. Does not implicitly {@link waproto.RoutingInfo.verify|verify} messages.
|
|
82029
|
+
* @param message RoutingInfo message or plain object to encode
|
|
82030
|
+
* @param [writer] Writer to encode to
|
|
82031
|
+
* @returns Writer
|
|
82032
|
+
*/
|
|
82033
|
+
static encode(message: waproto.RoutingInfo.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
82034
|
+
|
|
82035
|
+
/**
|
|
82036
|
+
* Encodes the specified RoutingInfo message, length delimited. Does not implicitly {@link waproto.RoutingInfo.verify|verify} messages.
|
|
82037
|
+
* @param message RoutingInfo message or plain object to encode
|
|
82038
|
+
* @param [writer] Writer to encode to
|
|
82039
|
+
* @returns Writer
|
|
82040
|
+
*/
|
|
82041
|
+
static encodeDelimited(message: waproto.RoutingInfo.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
82042
|
+
|
|
82043
|
+
/**
|
|
82044
|
+
* Decodes a RoutingInfo message from the specified reader or buffer.
|
|
82045
|
+
* @param reader Reader or buffer to decode from
|
|
82046
|
+
* @param [length] Message length if known beforehand
|
|
82047
|
+
* @returns {waproto.RoutingInfo & waproto.RoutingInfo.$Shape} RoutingInfo
|
|
82048
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82049
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82050
|
+
*/
|
|
82051
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.RoutingInfo & waproto.RoutingInfo.$Shape;
|
|
82052
|
+
|
|
82053
|
+
/**
|
|
82054
|
+
* Decodes a RoutingInfo message from the specified reader or buffer, length delimited.
|
|
82055
|
+
* @param reader Reader or buffer to decode from
|
|
82056
|
+
* @returns {waproto.RoutingInfo & waproto.RoutingInfo.$Shape} RoutingInfo
|
|
82057
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82058
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82059
|
+
*/
|
|
82060
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.RoutingInfo & waproto.RoutingInfo.$Shape;
|
|
82061
|
+
|
|
82062
|
+
/**
|
|
82063
|
+
* Verifies a RoutingInfo message.
|
|
82064
|
+
* @param message Plain object to verify
|
|
82065
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
82066
|
+
*/
|
|
82067
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
82068
|
+
|
|
82069
|
+
/**
|
|
82070
|
+
* Creates a RoutingInfo message from a plain object. Also converts values to their respective internal types.
|
|
82071
|
+
* @param object Plain object
|
|
82072
|
+
* @returns RoutingInfo
|
|
82073
|
+
*/
|
|
82074
|
+
static fromObject(object: { [k: string]: any }): waproto.RoutingInfo;
|
|
82075
|
+
|
|
82076
|
+
/**
|
|
82077
|
+
* Creates a plain object from a RoutingInfo message. Also converts values to other types if specified.
|
|
82078
|
+
* @param message RoutingInfo
|
|
82079
|
+
* @param [options] Conversion options
|
|
82080
|
+
* @returns Plain object
|
|
82081
|
+
*/
|
|
82082
|
+
static toObject(message: waproto.RoutingInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
82083
|
+
|
|
82084
|
+
/**
|
|
82085
|
+
* Converts this RoutingInfo to JSON.
|
|
82086
|
+
* @returns JSON object
|
|
82087
|
+
*/
|
|
82088
|
+
toJSON(): { [k: string]: any };
|
|
82089
|
+
|
|
82090
|
+
/**
|
|
82091
|
+
* Gets the type url for RoutingInfo
|
|
82092
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
82093
|
+
* @returns The type url
|
|
82094
|
+
*/
|
|
82095
|
+
static getTypeUrl(prefix?: string): string;
|
|
82096
|
+
}
|
|
82097
|
+
|
|
82098
|
+
namespace RoutingInfo {
|
|
82099
|
+
|
|
82100
|
+
/** Properties of a RoutingInfo. */
|
|
82101
|
+
interface $Properties {
|
|
82102
|
+
|
|
82103
|
+
/** RoutingInfo regionId */
|
|
82104
|
+
regionId?: (number[]|null);
|
|
82105
|
+
|
|
82106
|
+
/** RoutingInfo clusterId */
|
|
82107
|
+
clusterId?: (number[]|null);
|
|
82108
|
+
|
|
82109
|
+
/** RoutingInfo taskId */
|
|
82110
|
+
taskId?: (number|null);
|
|
82111
|
+
|
|
82112
|
+
/** RoutingInfo debug */
|
|
82113
|
+
debug?: (boolean|null);
|
|
82114
|
+
|
|
82115
|
+
/** RoutingInfo tcpBbr */
|
|
82116
|
+
tcpBbr?: (boolean|null);
|
|
82117
|
+
|
|
82118
|
+
/** RoutingInfo tcpKeepalive */
|
|
82119
|
+
tcpKeepalive?: (boolean|null);
|
|
82120
|
+
|
|
82121
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
82122
|
+
$unknowns?: Uint8Array[];
|
|
82123
|
+
}
|
|
82124
|
+
|
|
82125
|
+
/** Shape of a RoutingInfo. */
|
|
82126
|
+
type $Shape = waproto.RoutingInfo.$Properties;
|
|
82127
|
+
}
|
|
82128
|
+
|
|
81982
82129
|
/**
|
|
81983
82130
|
* Properties of a ScheduledMessageMetadata.
|
|
81984
82131
|
* @deprecated Use waproto.ScheduledMessageMetadata.$Properties instead.
|
package/dist/index.js
CHANGED
|
@@ -243793,6 +243793,481 @@ $root.waproto = (function() {
|
|
|
243793
243793
|
return RotateEpochSuccess;
|
|
243794
243794
|
})();
|
|
243795
243795
|
|
|
243796
|
+
waproto.RoutingInfo = (function() {
|
|
243797
|
+
|
|
243798
|
+
/**
|
|
243799
|
+
* Properties of a RoutingInfo.
|
|
243800
|
+
* @typedef {Object} waproto.RoutingInfo.$Properties
|
|
243801
|
+
* @property {Array.<number>|null} [regionId] RoutingInfo regionId
|
|
243802
|
+
* @property {Array.<number>|null} [clusterId] RoutingInfo clusterId
|
|
243803
|
+
* @property {number|null} [taskId] RoutingInfo taskId
|
|
243804
|
+
* @property {boolean|null} [debug] RoutingInfo debug
|
|
243805
|
+
* @property {boolean|null} [tcpBbr] RoutingInfo tcpBbr
|
|
243806
|
+
* @property {boolean|null} [tcpKeepalive] RoutingInfo tcpKeepalive
|
|
243807
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
243808
|
+
*/
|
|
243809
|
+
|
|
243810
|
+
/**
|
|
243811
|
+
* Properties of a RoutingInfo.
|
|
243812
|
+
* @memberof waproto
|
|
243813
|
+
* @interface IRoutingInfo
|
|
243814
|
+
* @augments waproto.RoutingInfo.$Properties
|
|
243815
|
+
* @deprecated Use waproto.RoutingInfo.$Properties instead.
|
|
243816
|
+
*/
|
|
243817
|
+
|
|
243818
|
+
/**
|
|
243819
|
+
* Shape of a RoutingInfo.
|
|
243820
|
+
* @typedef {waproto.RoutingInfo.$Properties} waproto.RoutingInfo.$Shape
|
|
243821
|
+
*/
|
|
243822
|
+
|
|
243823
|
+
/**
|
|
243824
|
+
* Constructs a new RoutingInfo.
|
|
243825
|
+
* @memberof waproto
|
|
243826
|
+
* @classdesc Represents a RoutingInfo.
|
|
243827
|
+
* @constructor
|
|
243828
|
+
* @param {waproto.RoutingInfo.$Properties=} [properties] Properties to set
|
|
243829
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
243830
|
+
*/
|
|
243831
|
+
var RoutingInfo = function (properties) {
|
|
243832
|
+
this.regionId = [];
|
|
243833
|
+
this.clusterId = [];
|
|
243834
|
+
if (properties)
|
|
243835
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
243836
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
243837
|
+
this[keys[i]] = properties[keys[i]];
|
|
243838
|
+
};
|
|
243839
|
+
|
|
243840
|
+
/**
|
|
243841
|
+
* RoutingInfo regionId.
|
|
243842
|
+
* @member {Array.<number>} regionId
|
|
243843
|
+
* @memberof waproto.RoutingInfo
|
|
243844
|
+
* @instance
|
|
243845
|
+
*/
|
|
243846
|
+
RoutingInfo.prototype.regionId = $util.emptyArray;
|
|
243847
|
+
|
|
243848
|
+
/**
|
|
243849
|
+
* RoutingInfo clusterId.
|
|
243850
|
+
* @member {Array.<number>} clusterId
|
|
243851
|
+
* @memberof waproto.RoutingInfo
|
|
243852
|
+
* @instance
|
|
243853
|
+
*/
|
|
243854
|
+
RoutingInfo.prototype.clusterId = $util.emptyArray;
|
|
243855
|
+
|
|
243856
|
+
/**
|
|
243857
|
+
* RoutingInfo taskId.
|
|
243858
|
+
* @member {number|null|undefined} taskId
|
|
243859
|
+
* @memberof waproto.RoutingInfo
|
|
243860
|
+
* @instance
|
|
243861
|
+
*/
|
|
243862
|
+
RoutingInfo.prototype.taskId = null;
|
|
243863
|
+
|
|
243864
|
+
/**
|
|
243865
|
+
* RoutingInfo debug.
|
|
243866
|
+
* @member {boolean|null|undefined} debug
|
|
243867
|
+
* @memberof waproto.RoutingInfo
|
|
243868
|
+
* @instance
|
|
243869
|
+
*/
|
|
243870
|
+
RoutingInfo.prototype.debug = null;
|
|
243871
|
+
|
|
243872
|
+
/**
|
|
243873
|
+
* RoutingInfo tcpBbr.
|
|
243874
|
+
* @member {boolean|null|undefined} tcpBbr
|
|
243875
|
+
* @memberof waproto.RoutingInfo
|
|
243876
|
+
* @instance
|
|
243877
|
+
*/
|
|
243878
|
+
RoutingInfo.prototype.tcpBbr = null;
|
|
243879
|
+
|
|
243880
|
+
/**
|
|
243881
|
+
* RoutingInfo tcpKeepalive.
|
|
243882
|
+
* @member {boolean|null|undefined} tcpKeepalive
|
|
243883
|
+
* @memberof waproto.RoutingInfo
|
|
243884
|
+
* @instance
|
|
243885
|
+
*/
|
|
243886
|
+
RoutingInfo.prototype.tcpKeepalive = null;
|
|
243887
|
+
|
|
243888
|
+
// OneOf field names bound to virtual getters and setters
|
|
243889
|
+
var $oneOfFields;
|
|
243890
|
+
|
|
243891
|
+
// Virtual OneOf for proto3 optional field
|
|
243892
|
+
$Object.defineProperty(RoutingInfo.prototype, "_taskId", {
|
|
243893
|
+
get: $util.oneOfGetter($oneOfFields = ["taskId"]),
|
|
243894
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
243895
|
+
});
|
|
243896
|
+
|
|
243897
|
+
// Virtual OneOf for proto3 optional field
|
|
243898
|
+
$Object.defineProperty(RoutingInfo.prototype, "_debug", {
|
|
243899
|
+
get: $util.oneOfGetter($oneOfFields = ["debug"]),
|
|
243900
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
243901
|
+
});
|
|
243902
|
+
|
|
243903
|
+
// Virtual OneOf for proto3 optional field
|
|
243904
|
+
$Object.defineProperty(RoutingInfo.prototype, "_tcpBbr", {
|
|
243905
|
+
get: $util.oneOfGetter($oneOfFields = ["tcpBbr"]),
|
|
243906
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
243907
|
+
});
|
|
243908
|
+
|
|
243909
|
+
// Virtual OneOf for proto3 optional field
|
|
243910
|
+
$Object.defineProperty(RoutingInfo.prototype, "_tcpKeepalive", {
|
|
243911
|
+
get: $util.oneOfGetter($oneOfFields = ["tcpKeepalive"]),
|
|
243912
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
243913
|
+
});
|
|
243914
|
+
|
|
243915
|
+
/**
|
|
243916
|
+
* Creates a new RoutingInfo instance using the specified properties.
|
|
243917
|
+
* @function create
|
|
243918
|
+
* @memberof waproto.RoutingInfo
|
|
243919
|
+
* @static
|
|
243920
|
+
* @param {waproto.RoutingInfo.$Properties=} [properties] Properties to set
|
|
243921
|
+
* @returns {waproto.RoutingInfo} RoutingInfo instance
|
|
243922
|
+
* @type {{
|
|
243923
|
+
* (properties: waproto.RoutingInfo.$Shape): waproto.RoutingInfo & waproto.RoutingInfo.$Shape;
|
|
243924
|
+
* (properties?: waproto.RoutingInfo.$Properties): waproto.RoutingInfo;
|
|
243925
|
+
* }}
|
|
243926
|
+
*/
|
|
243927
|
+
RoutingInfo.create = function(properties) {
|
|
243928
|
+
return new RoutingInfo(properties);
|
|
243929
|
+
};
|
|
243930
|
+
|
|
243931
|
+
/**
|
|
243932
|
+
* Encodes the specified RoutingInfo message. Does not implicitly {@link waproto.RoutingInfo.verify|verify} messages.
|
|
243933
|
+
* @function encode
|
|
243934
|
+
* @memberof waproto.RoutingInfo
|
|
243935
|
+
* @static
|
|
243936
|
+
* @param {waproto.RoutingInfo.$Properties} message RoutingInfo message or plain object to encode
|
|
243937
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
243938
|
+
* @returns {$protobuf.Writer} Writer
|
|
243939
|
+
*/
|
|
243940
|
+
RoutingInfo.encode = function (message, writer, _depth) {
|
|
243941
|
+
if (!writer)
|
|
243942
|
+
writer = $Writer.create();
|
|
243943
|
+
if (_depth === $undefined)
|
|
243944
|
+
_depth = 0;
|
|
243945
|
+
if (_depth > $util.recursionLimit)
|
|
243946
|
+
throw $Error("max depth exceeded");
|
|
243947
|
+
if (message.regionId != null && message.regionId.length)
|
|
243948
|
+
writer.uint32(/* id 1, wireType 2 =*/10).int32s(message.regionId);
|
|
243949
|
+
if (message.clusterId != null && message.clusterId.length)
|
|
243950
|
+
writer.uint32(/* id 2, wireType 2 =*/18).int32s(message.clusterId);
|
|
243951
|
+
if (message.taskId != null && $Object.hasOwnProperty.call(message, "taskId"))
|
|
243952
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.taskId);
|
|
243953
|
+
if (message.debug != null && $Object.hasOwnProperty.call(message, "debug"))
|
|
243954
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.debug);
|
|
243955
|
+
if (message.tcpBbr != null && $Object.hasOwnProperty.call(message, "tcpBbr"))
|
|
243956
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.tcpBbr);
|
|
243957
|
+
if (message.tcpKeepalive != null && $Object.hasOwnProperty.call(message, "tcpKeepalive"))
|
|
243958
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.tcpKeepalive);
|
|
243959
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
243960
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
243961
|
+
writer.raw(message.$unknowns[i]);
|
|
243962
|
+
return writer;
|
|
243963
|
+
};
|
|
243964
|
+
|
|
243965
|
+
/**
|
|
243966
|
+
* Encodes the specified RoutingInfo message, length delimited. Does not implicitly {@link waproto.RoutingInfo.verify|verify} messages.
|
|
243967
|
+
* @function encodeDelimited
|
|
243968
|
+
* @memberof waproto.RoutingInfo
|
|
243969
|
+
* @static
|
|
243970
|
+
* @param {waproto.RoutingInfo.$Properties} message RoutingInfo message or plain object to encode
|
|
243971
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
243972
|
+
* @returns {$protobuf.Writer} Writer
|
|
243973
|
+
*/
|
|
243974
|
+
RoutingInfo.encodeDelimited = function(message, writer) {
|
|
243975
|
+
return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
|
|
243976
|
+
};
|
|
243977
|
+
|
|
243978
|
+
/**
|
|
243979
|
+
* Decodes a RoutingInfo message from the specified reader or buffer.
|
|
243980
|
+
* @function decode
|
|
243981
|
+
* @memberof waproto.RoutingInfo
|
|
243982
|
+
* @static
|
|
243983
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
243984
|
+
* @param {number} [length] Message length if known beforehand
|
|
243985
|
+
* @returns {waproto.RoutingInfo & waproto.RoutingInfo.$Shape} RoutingInfo
|
|
243986
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
243987
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
243988
|
+
*/
|
|
243989
|
+
RoutingInfo.decode = function (reader, length, _end, _depth, _target) {
|
|
243990
|
+
if (!(reader instanceof $Reader))
|
|
243991
|
+
reader = $Reader.create(reader);
|
|
243992
|
+
if (_depth === $undefined)
|
|
243993
|
+
_depth = 0;
|
|
243994
|
+
if (_depth > $Reader.recursionLimit)
|
|
243995
|
+
throw $Error("max depth exceeded");
|
|
243996
|
+
var end, message;
|
|
243997
|
+
if (length === $undefined)
|
|
243998
|
+
end = reader.len;
|
|
243999
|
+
else {
|
|
244000
|
+
end = reader.pos + length;
|
|
244001
|
+
if (end > reader.len)
|
|
244002
|
+
throw $RangeError("index out of range");
|
|
244003
|
+
length = reader.len;
|
|
244004
|
+
reader.len = end;
|
|
244005
|
+
}
|
|
244006
|
+
message = _target || new $root.waproto.RoutingInfo();
|
|
244007
|
+
while (reader.pos < end) {
|
|
244008
|
+
var start = reader.pos;
|
|
244009
|
+
var tag = reader.tag();
|
|
244010
|
+
if (tag === _end) {
|
|
244011
|
+
_end = $undefined;
|
|
244012
|
+
break;
|
|
244013
|
+
}
|
|
244014
|
+
var wireType = tag & 7;
|
|
244015
|
+
switch (tag >>>= 3) {
|
|
244016
|
+
case 1: {
|
|
244017
|
+
if (wireType === 2) {
|
|
244018
|
+
if (!(message.regionId && message.regionId.length))
|
|
244019
|
+
message.regionId = [];
|
|
244020
|
+
reader.int32s(message.regionId);
|
|
244021
|
+
continue;
|
|
244022
|
+
}
|
|
244023
|
+
if (wireType !== 0)
|
|
244024
|
+
break;
|
|
244025
|
+
if (!(message.regionId && message.regionId.length))
|
|
244026
|
+
message.regionId = [];
|
|
244027
|
+
message.regionId.push(reader.int32());
|
|
244028
|
+
continue;
|
|
244029
|
+
}
|
|
244030
|
+
case 2: {
|
|
244031
|
+
if (wireType === 2) {
|
|
244032
|
+
if (!(message.clusterId && message.clusterId.length))
|
|
244033
|
+
message.clusterId = [];
|
|
244034
|
+
reader.int32s(message.clusterId);
|
|
244035
|
+
continue;
|
|
244036
|
+
}
|
|
244037
|
+
if (wireType !== 0)
|
|
244038
|
+
break;
|
|
244039
|
+
if (!(message.clusterId && message.clusterId.length))
|
|
244040
|
+
message.clusterId = [];
|
|
244041
|
+
message.clusterId.push(reader.int32());
|
|
244042
|
+
continue;
|
|
244043
|
+
}
|
|
244044
|
+
case 3: {
|
|
244045
|
+
if (wireType !== 0)
|
|
244046
|
+
break;
|
|
244047
|
+
message.taskId = reader.int32();
|
|
244048
|
+
message._taskId = "taskId";
|
|
244049
|
+
continue;
|
|
244050
|
+
}
|
|
244051
|
+
case 4: {
|
|
244052
|
+
if (wireType !== 0)
|
|
244053
|
+
break;
|
|
244054
|
+
message.debug = reader.bool();
|
|
244055
|
+
message._debug = "debug";
|
|
244056
|
+
continue;
|
|
244057
|
+
}
|
|
244058
|
+
case 5: {
|
|
244059
|
+
if (wireType !== 0)
|
|
244060
|
+
break;
|
|
244061
|
+
message.tcpBbr = reader.bool();
|
|
244062
|
+
message._tcpBbr = "tcpBbr";
|
|
244063
|
+
continue;
|
|
244064
|
+
}
|
|
244065
|
+
case 6: {
|
|
244066
|
+
if (wireType !== 0)
|
|
244067
|
+
break;
|
|
244068
|
+
message.tcpKeepalive = reader.bool();
|
|
244069
|
+
message._tcpKeepalive = "tcpKeepalive";
|
|
244070
|
+
continue;
|
|
244071
|
+
}
|
|
244072
|
+
}
|
|
244073
|
+
reader.skipType(wireType, _depth, tag);
|
|
244074
|
+
if (!reader.discardUnknown) {
|
|
244075
|
+
$util.makeProp(message, "$unknowns", false);
|
|
244076
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
244077
|
+
}
|
|
244078
|
+
}
|
|
244079
|
+
if (length !== $undefined) {
|
|
244080
|
+
if (reader.pos !== end)
|
|
244081
|
+
throw $RangeError("index out of range");
|
|
244082
|
+
reader.len = length;
|
|
244083
|
+
}
|
|
244084
|
+
if (_end !== $undefined)
|
|
244085
|
+
throw $Error("missing end group");
|
|
244086
|
+
return message;
|
|
244087
|
+
};
|
|
244088
|
+
|
|
244089
|
+
/**
|
|
244090
|
+
* Decodes a RoutingInfo message from the specified reader or buffer, length delimited.
|
|
244091
|
+
* @function decodeDelimited
|
|
244092
|
+
* @memberof waproto.RoutingInfo
|
|
244093
|
+
* @static
|
|
244094
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
244095
|
+
* @returns {waproto.RoutingInfo & waproto.RoutingInfo.$Shape} RoutingInfo
|
|
244096
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
244097
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
244098
|
+
*/
|
|
244099
|
+
RoutingInfo.decodeDelimited = function(reader) {
|
|
244100
|
+
if (!(reader instanceof $Reader))
|
|
244101
|
+
reader = new $Reader(reader);
|
|
244102
|
+
return this.decode(reader, reader.size());
|
|
244103
|
+
};
|
|
244104
|
+
|
|
244105
|
+
/**
|
|
244106
|
+
* Verifies a RoutingInfo message.
|
|
244107
|
+
* @function verify
|
|
244108
|
+
* @memberof waproto.RoutingInfo
|
|
244109
|
+
* @static
|
|
244110
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
244111
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
244112
|
+
*/
|
|
244113
|
+
RoutingInfo.verify = function (message, _depth) {
|
|
244114
|
+
if (typeof message !== "object" || message === null)
|
|
244115
|
+
return "object expected";
|
|
244116
|
+
if (_depth === $undefined)
|
|
244117
|
+
_depth = 0;
|
|
244118
|
+
if (_depth > $util.recursionLimit)
|
|
244119
|
+
return "max depth exceeded";
|
|
244120
|
+
var properties = {};
|
|
244121
|
+
if (message.regionId != null && $Object.hasOwnProperty.call(message, "regionId")) {
|
|
244122
|
+
if (!$Array.isArray(message.regionId))
|
|
244123
|
+
return "regionId: array expected";
|
|
244124
|
+
for (var i = 0; i < message.regionId.length; ++i)
|
|
244125
|
+
if (!$util.isInteger(message.regionId[i]))
|
|
244126
|
+
return "regionId: integer[] expected";
|
|
244127
|
+
}
|
|
244128
|
+
if (message.clusterId != null && $Object.hasOwnProperty.call(message, "clusterId")) {
|
|
244129
|
+
if (!$Array.isArray(message.clusterId))
|
|
244130
|
+
return "clusterId: array expected";
|
|
244131
|
+
for (var i = 0; i < message.clusterId.length; ++i)
|
|
244132
|
+
if (!$util.isInteger(message.clusterId[i]))
|
|
244133
|
+
return "clusterId: integer[] expected";
|
|
244134
|
+
}
|
|
244135
|
+
if (message.taskId != null && $Object.hasOwnProperty.call(message, "taskId")) {
|
|
244136
|
+
properties._taskId = 1;
|
|
244137
|
+
if (!$util.isInteger(message.taskId))
|
|
244138
|
+
return "taskId: integer expected";
|
|
244139
|
+
}
|
|
244140
|
+
if (message.debug != null && $Object.hasOwnProperty.call(message, "debug")) {
|
|
244141
|
+
properties._debug = 1;
|
|
244142
|
+
if (typeof message.debug !== "boolean")
|
|
244143
|
+
return "debug: boolean expected";
|
|
244144
|
+
}
|
|
244145
|
+
if (message.tcpBbr != null && $Object.hasOwnProperty.call(message, "tcpBbr")) {
|
|
244146
|
+
properties._tcpBbr = 1;
|
|
244147
|
+
if (typeof message.tcpBbr !== "boolean")
|
|
244148
|
+
return "tcpBbr: boolean expected";
|
|
244149
|
+
}
|
|
244150
|
+
if (message.tcpKeepalive != null && $Object.hasOwnProperty.call(message, "tcpKeepalive")) {
|
|
244151
|
+
properties._tcpKeepalive = 1;
|
|
244152
|
+
if (typeof message.tcpKeepalive !== "boolean")
|
|
244153
|
+
return "tcpKeepalive: boolean expected";
|
|
244154
|
+
}
|
|
244155
|
+
return null;
|
|
244156
|
+
};
|
|
244157
|
+
|
|
244158
|
+
/**
|
|
244159
|
+
* Creates a RoutingInfo message from a plain object. Also converts values to their respective internal types.
|
|
244160
|
+
* @function fromObject
|
|
244161
|
+
* @memberof waproto.RoutingInfo
|
|
244162
|
+
* @static
|
|
244163
|
+
* @param {Object.<string,*>} object Plain object
|
|
244164
|
+
* @returns {waproto.RoutingInfo} RoutingInfo
|
|
244165
|
+
*/
|
|
244166
|
+
RoutingInfo.fromObject = function (object, _depth) {
|
|
244167
|
+
if (object instanceof $root.waproto.RoutingInfo)
|
|
244168
|
+
return object;
|
|
244169
|
+
if (!$util.isObject(object))
|
|
244170
|
+
throw $TypeError(".waproto.RoutingInfo: object expected");
|
|
244171
|
+
if (_depth === $undefined)
|
|
244172
|
+
_depth = 0;
|
|
244173
|
+
if (_depth > $util.recursionLimit)
|
|
244174
|
+
throw $Error("max depth exceeded");
|
|
244175
|
+
var message = new $root.waproto.RoutingInfo();
|
|
244176
|
+
if (object.regionId) {
|
|
244177
|
+
if (!$Array.isArray(object.regionId))
|
|
244178
|
+
throw $TypeError(".waproto.RoutingInfo.regionId: array expected");
|
|
244179
|
+
message.regionId = $Array(object.regionId.length);
|
|
244180
|
+
for (var i = 0; i < object.regionId.length; ++i)
|
|
244181
|
+
message.regionId[i] = object.regionId[i] | 0;
|
|
244182
|
+
}
|
|
244183
|
+
if (object.clusterId) {
|
|
244184
|
+
if (!$Array.isArray(object.clusterId))
|
|
244185
|
+
throw $TypeError(".waproto.RoutingInfo.clusterId: array expected");
|
|
244186
|
+
message.clusterId = $Array(object.clusterId.length);
|
|
244187
|
+
for (var i = 0; i < object.clusterId.length; ++i)
|
|
244188
|
+
message.clusterId[i] = object.clusterId[i] | 0;
|
|
244189
|
+
}
|
|
244190
|
+
if (object.taskId != null)
|
|
244191
|
+
message.taskId = object.taskId | 0;
|
|
244192
|
+
if (object.debug != null)
|
|
244193
|
+
message.debug = $Boolean(object.debug);
|
|
244194
|
+
if (object.tcpBbr != null)
|
|
244195
|
+
message.tcpBbr = $Boolean(object.tcpBbr);
|
|
244196
|
+
if (object.tcpKeepalive != null)
|
|
244197
|
+
message.tcpKeepalive = $Boolean(object.tcpKeepalive);
|
|
244198
|
+
return message;
|
|
244199
|
+
};
|
|
244200
|
+
|
|
244201
|
+
/**
|
|
244202
|
+
* Creates a plain object from a RoutingInfo message. Also converts values to other types if specified.
|
|
244203
|
+
* @function toObject
|
|
244204
|
+
* @memberof waproto.RoutingInfo
|
|
244205
|
+
* @static
|
|
244206
|
+
* @param {waproto.RoutingInfo} message RoutingInfo
|
|
244207
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
244208
|
+
* @returns {Object.<string,*>} Plain object
|
|
244209
|
+
*/
|
|
244210
|
+
RoutingInfo.toObject = function (message, options, _depth) {
|
|
244211
|
+
if (!options)
|
|
244212
|
+
options = {};
|
|
244213
|
+
if (_depth === $undefined)
|
|
244214
|
+
_depth = 0;
|
|
244215
|
+
if (_depth > $util.recursionLimit)
|
|
244216
|
+
throw $Error("max depth exceeded");
|
|
244217
|
+
var object = {};
|
|
244218
|
+
if (options.arrays || options.defaults) {
|
|
244219
|
+
object.regionId = [];
|
|
244220
|
+
object.clusterId = [];
|
|
244221
|
+
}
|
|
244222
|
+
if (message.regionId && message.regionId.length) {
|
|
244223
|
+
object.regionId = $Array(message.regionId.length);
|
|
244224
|
+
for (var j = 0; j < message.regionId.length; ++j)
|
|
244225
|
+
object.regionId[j] = message.regionId[j];
|
|
244226
|
+
}
|
|
244227
|
+
if (message.clusterId && message.clusterId.length) {
|
|
244228
|
+
object.clusterId = $Array(message.clusterId.length);
|
|
244229
|
+
for (var j = 0; j < message.clusterId.length; ++j)
|
|
244230
|
+
object.clusterId[j] = message.clusterId[j];
|
|
244231
|
+
}
|
|
244232
|
+
if (message.taskId != null && $Object.hasOwnProperty.call(message, "taskId"))
|
|
244233
|
+
object.taskId = message.taskId;
|
|
244234
|
+
if (message.debug != null && $Object.hasOwnProperty.call(message, "debug"))
|
|
244235
|
+
object.debug = message.debug;
|
|
244236
|
+
if (message.tcpBbr != null && $Object.hasOwnProperty.call(message, "tcpBbr"))
|
|
244237
|
+
object.tcpBbr = message.tcpBbr;
|
|
244238
|
+
if (message.tcpKeepalive != null && $Object.hasOwnProperty.call(message, "tcpKeepalive"))
|
|
244239
|
+
object.tcpKeepalive = message.tcpKeepalive;
|
|
244240
|
+
return object;
|
|
244241
|
+
};
|
|
244242
|
+
|
|
244243
|
+
/**
|
|
244244
|
+
* Converts this RoutingInfo to JSON.
|
|
244245
|
+
* @function toJSON
|
|
244246
|
+
* @memberof waproto.RoutingInfo
|
|
244247
|
+
* @instance
|
|
244248
|
+
* @returns {Object.<string,*>} JSON object
|
|
244249
|
+
*/
|
|
244250
|
+
RoutingInfo.prototype.toJSON = function() {
|
|
244251
|
+
return RoutingInfo.toObject(this, $protobuf.util.toJSONOptions);
|
|
244252
|
+
};
|
|
244253
|
+
|
|
244254
|
+
/**
|
|
244255
|
+
* Gets the type url for RoutingInfo
|
|
244256
|
+
* @function getTypeUrl
|
|
244257
|
+
* @memberof waproto.RoutingInfo
|
|
244258
|
+
* @static
|
|
244259
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
244260
|
+
* @returns {string} The type url
|
|
244261
|
+
*/
|
|
244262
|
+
RoutingInfo.getTypeUrl = function(prefix) {
|
|
244263
|
+
if (prefix === $undefined)
|
|
244264
|
+
prefix = "type.googleapis.com";
|
|
244265
|
+
return prefix + "/waproto.RoutingInfo";
|
|
244266
|
+
};
|
|
244267
|
+
|
|
244268
|
+
return RoutingInfo;
|
|
244269
|
+
})();
|
|
244270
|
+
|
|
243796
244271
|
waproto.ScheduledMessageMetadata = (function() {
|
|
243797
244272
|
|
|
243798
244273
|
/**
|