@wppconnect/wa-proto 1.1.43 → 1.1.49
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/CHANGELOG.md +24 -0
- package/WAProto.proto +62 -2
- package/dist/index.d.ts +808 -7
- package/dist/index.js +2282 -102
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7459,6 +7459,321 @@ $root.waproto = (function() {
|
|
|
7459
7459
|
return AIRichResponseMessage;
|
|
7460
7460
|
})();
|
|
7461
7461
|
|
|
7462
|
+
waproto.Account = (function() {
|
|
7463
|
+
|
|
7464
|
+
/**
|
|
7465
|
+
* Properties of an Account.
|
|
7466
|
+
* @memberof waproto
|
|
7467
|
+
* @interface IAccount
|
|
7468
|
+
* @property {string|null} [lid] Account lid
|
|
7469
|
+
* @property {string|null} [username] Account username
|
|
7470
|
+
* @property {string|null} [countryCode] Account countryCode
|
|
7471
|
+
* @property {boolean|null} [isUsernameDeleted] Account isUsernameDeleted
|
|
7472
|
+
*/
|
|
7473
|
+
|
|
7474
|
+
/**
|
|
7475
|
+
* Constructs a new Account.
|
|
7476
|
+
* @memberof waproto
|
|
7477
|
+
* @classdesc Represents an Account.
|
|
7478
|
+
* @implements IAccount
|
|
7479
|
+
* @constructor
|
|
7480
|
+
* @param {waproto.IAccount=} [properties] Properties to set
|
|
7481
|
+
*/
|
|
7482
|
+
function Account(properties) {
|
|
7483
|
+
if (properties)
|
|
7484
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7485
|
+
if (properties[keys[i]] != null)
|
|
7486
|
+
this[keys[i]] = properties[keys[i]];
|
|
7487
|
+
}
|
|
7488
|
+
|
|
7489
|
+
/**
|
|
7490
|
+
* Account lid.
|
|
7491
|
+
* @member {string|null|undefined} lid
|
|
7492
|
+
* @memberof waproto.Account
|
|
7493
|
+
* @instance
|
|
7494
|
+
*/
|
|
7495
|
+
Account.prototype.lid = null;
|
|
7496
|
+
|
|
7497
|
+
/**
|
|
7498
|
+
* Account username.
|
|
7499
|
+
* @member {string|null|undefined} username
|
|
7500
|
+
* @memberof waproto.Account
|
|
7501
|
+
* @instance
|
|
7502
|
+
*/
|
|
7503
|
+
Account.prototype.username = null;
|
|
7504
|
+
|
|
7505
|
+
/**
|
|
7506
|
+
* Account countryCode.
|
|
7507
|
+
* @member {string|null|undefined} countryCode
|
|
7508
|
+
* @memberof waproto.Account
|
|
7509
|
+
* @instance
|
|
7510
|
+
*/
|
|
7511
|
+
Account.prototype.countryCode = null;
|
|
7512
|
+
|
|
7513
|
+
/**
|
|
7514
|
+
* Account isUsernameDeleted.
|
|
7515
|
+
* @member {boolean|null|undefined} isUsernameDeleted
|
|
7516
|
+
* @memberof waproto.Account
|
|
7517
|
+
* @instance
|
|
7518
|
+
*/
|
|
7519
|
+
Account.prototype.isUsernameDeleted = null;
|
|
7520
|
+
|
|
7521
|
+
// OneOf field names bound to virtual getters and setters
|
|
7522
|
+
var $oneOfFields;
|
|
7523
|
+
|
|
7524
|
+
// Virtual OneOf for proto3 optional field
|
|
7525
|
+
Object.defineProperty(Account.prototype, "_lid", {
|
|
7526
|
+
get: $util.oneOfGetter($oneOfFields = ["lid"]),
|
|
7527
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
7528
|
+
});
|
|
7529
|
+
|
|
7530
|
+
// Virtual OneOf for proto3 optional field
|
|
7531
|
+
Object.defineProperty(Account.prototype, "_username", {
|
|
7532
|
+
get: $util.oneOfGetter($oneOfFields = ["username"]),
|
|
7533
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
7534
|
+
});
|
|
7535
|
+
|
|
7536
|
+
// Virtual OneOf for proto3 optional field
|
|
7537
|
+
Object.defineProperty(Account.prototype, "_countryCode", {
|
|
7538
|
+
get: $util.oneOfGetter($oneOfFields = ["countryCode"]),
|
|
7539
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
7540
|
+
});
|
|
7541
|
+
|
|
7542
|
+
// Virtual OneOf for proto3 optional field
|
|
7543
|
+
Object.defineProperty(Account.prototype, "_isUsernameDeleted", {
|
|
7544
|
+
get: $util.oneOfGetter($oneOfFields = ["isUsernameDeleted"]),
|
|
7545
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
7546
|
+
});
|
|
7547
|
+
|
|
7548
|
+
/**
|
|
7549
|
+
* Creates a new Account instance using the specified properties.
|
|
7550
|
+
* @function create
|
|
7551
|
+
* @memberof waproto.Account
|
|
7552
|
+
* @static
|
|
7553
|
+
* @param {waproto.IAccount=} [properties] Properties to set
|
|
7554
|
+
* @returns {waproto.Account} Account instance
|
|
7555
|
+
*/
|
|
7556
|
+
Account.create = function create(properties) {
|
|
7557
|
+
return new Account(properties);
|
|
7558
|
+
};
|
|
7559
|
+
|
|
7560
|
+
/**
|
|
7561
|
+
* Encodes the specified Account message. Does not implicitly {@link waproto.Account.verify|verify} messages.
|
|
7562
|
+
* @function encode
|
|
7563
|
+
* @memberof waproto.Account
|
|
7564
|
+
* @static
|
|
7565
|
+
* @param {waproto.IAccount} message Account message or plain object to encode
|
|
7566
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7567
|
+
* @returns {$protobuf.Writer} Writer
|
|
7568
|
+
*/
|
|
7569
|
+
Account.encode = function encode(message, writer) {
|
|
7570
|
+
if (!writer)
|
|
7571
|
+
writer = $Writer.create();
|
|
7572
|
+
if (message.lid != null && Object.hasOwnProperty.call(message, "lid"))
|
|
7573
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.lid);
|
|
7574
|
+
if (message.username != null && Object.hasOwnProperty.call(message, "username"))
|
|
7575
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.username);
|
|
7576
|
+
if (message.countryCode != null && Object.hasOwnProperty.call(message, "countryCode"))
|
|
7577
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.countryCode);
|
|
7578
|
+
if (message.isUsernameDeleted != null && Object.hasOwnProperty.call(message, "isUsernameDeleted"))
|
|
7579
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isUsernameDeleted);
|
|
7580
|
+
return writer;
|
|
7581
|
+
};
|
|
7582
|
+
|
|
7583
|
+
/**
|
|
7584
|
+
* Encodes the specified Account message, length delimited. Does not implicitly {@link waproto.Account.verify|verify} messages.
|
|
7585
|
+
* @function encodeDelimited
|
|
7586
|
+
* @memberof waproto.Account
|
|
7587
|
+
* @static
|
|
7588
|
+
* @param {waproto.IAccount} message Account message or plain object to encode
|
|
7589
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7590
|
+
* @returns {$protobuf.Writer} Writer
|
|
7591
|
+
*/
|
|
7592
|
+
Account.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7593
|
+
return this.encode(message, writer).ldelim();
|
|
7594
|
+
};
|
|
7595
|
+
|
|
7596
|
+
/**
|
|
7597
|
+
* Decodes an Account message from the specified reader or buffer.
|
|
7598
|
+
* @function decode
|
|
7599
|
+
* @memberof waproto.Account
|
|
7600
|
+
* @static
|
|
7601
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7602
|
+
* @param {number} [length] Message length if known beforehand
|
|
7603
|
+
* @returns {waproto.Account} Account
|
|
7604
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7605
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7606
|
+
*/
|
|
7607
|
+
Account.decode = function decode(reader, length) {
|
|
7608
|
+
if (!(reader instanceof $Reader))
|
|
7609
|
+
reader = $Reader.create(reader);
|
|
7610
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Account();
|
|
7611
|
+
while (reader.pos < end) {
|
|
7612
|
+
var tag = reader.uint32();
|
|
7613
|
+
switch (tag >>> 3) {
|
|
7614
|
+
case 1: {
|
|
7615
|
+
message.lid = reader.string();
|
|
7616
|
+
break;
|
|
7617
|
+
}
|
|
7618
|
+
case 2: {
|
|
7619
|
+
message.username = reader.string();
|
|
7620
|
+
break;
|
|
7621
|
+
}
|
|
7622
|
+
case 3: {
|
|
7623
|
+
message.countryCode = reader.string();
|
|
7624
|
+
break;
|
|
7625
|
+
}
|
|
7626
|
+
case 4: {
|
|
7627
|
+
message.isUsernameDeleted = reader.bool();
|
|
7628
|
+
break;
|
|
7629
|
+
}
|
|
7630
|
+
default:
|
|
7631
|
+
reader.skipType(tag & 7);
|
|
7632
|
+
break;
|
|
7633
|
+
}
|
|
7634
|
+
}
|
|
7635
|
+
return message;
|
|
7636
|
+
};
|
|
7637
|
+
|
|
7638
|
+
/**
|
|
7639
|
+
* Decodes an Account message from the specified reader or buffer, length delimited.
|
|
7640
|
+
* @function decodeDelimited
|
|
7641
|
+
* @memberof waproto.Account
|
|
7642
|
+
* @static
|
|
7643
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7644
|
+
* @returns {waproto.Account} Account
|
|
7645
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7646
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7647
|
+
*/
|
|
7648
|
+
Account.decodeDelimited = function decodeDelimited(reader) {
|
|
7649
|
+
if (!(reader instanceof $Reader))
|
|
7650
|
+
reader = new $Reader(reader);
|
|
7651
|
+
return this.decode(reader, reader.uint32());
|
|
7652
|
+
};
|
|
7653
|
+
|
|
7654
|
+
/**
|
|
7655
|
+
* Verifies an Account message.
|
|
7656
|
+
* @function verify
|
|
7657
|
+
* @memberof waproto.Account
|
|
7658
|
+
* @static
|
|
7659
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7660
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7661
|
+
*/
|
|
7662
|
+
Account.verify = function verify(message) {
|
|
7663
|
+
if (typeof message !== "object" || message === null)
|
|
7664
|
+
return "object expected";
|
|
7665
|
+
var properties = {};
|
|
7666
|
+
if (message.lid != null && message.hasOwnProperty("lid")) {
|
|
7667
|
+
properties._lid = 1;
|
|
7668
|
+
if (!$util.isString(message.lid))
|
|
7669
|
+
return "lid: string expected";
|
|
7670
|
+
}
|
|
7671
|
+
if (message.username != null && message.hasOwnProperty("username")) {
|
|
7672
|
+
properties._username = 1;
|
|
7673
|
+
if (!$util.isString(message.username))
|
|
7674
|
+
return "username: string expected";
|
|
7675
|
+
}
|
|
7676
|
+
if (message.countryCode != null && message.hasOwnProperty("countryCode")) {
|
|
7677
|
+
properties._countryCode = 1;
|
|
7678
|
+
if (!$util.isString(message.countryCode))
|
|
7679
|
+
return "countryCode: string expected";
|
|
7680
|
+
}
|
|
7681
|
+
if (message.isUsernameDeleted != null && message.hasOwnProperty("isUsernameDeleted")) {
|
|
7682
|
+
properties._isUsernameDeleted = 1;
|
|
7683
|
+
if (typeof message.isUsernameDeleted !== "boolean")
|
|
7684
|
+
return "isUsernameDeleted: boolean expected";
|
|
7685
|
+
}
|
|
7686
|
+
return null;
|
|
7687
|
+
};
|
|
7688
|
+
|
|
7689
|
+
/**
|
|
7690
|
+
* Creates an Account message from a plain object. Also converts values to their respective internal types.
|
|
7691
|
+
* @function fromObject
|
|
7692
|
+
* @memberof waproto.Account
|
|
7693
|
+
* @static
|
|
7694
|
+
* @param {Object.<string,*>} object Plain object
|
|
7695
|
+
* @returns {waproto.Account} Account
|
|
7696
|
+
*/
|
|
7697
|
+
Account.fromObject = function fromObject(object) {
|
|
7698
|
+
if (object instanceof $root.waproto.Account)
|
|
7699
|
+
return object;
|
|
7700
|
+
var message = new $root.waproto.Account();
|
|
7701
|
+
if (object.lid != null)
|
|
7702
|
+
message.lid = String(object.lid);
|
|
7703
|
+
if (object.username != null)
|
|
7704
|
+
message.username = String(object.username);
|
|
7705
|
+
if (object.countryCode != null)
|
|
7706
|
+
message.countryCode = String(object.countryCode);
|
|
7707
|
+
if (object.isUsernameDeleted != null)
|
|
7708
|
+
message.isUsernameDeleted = Boolean(object.isUsernameDeleted);
|
|
7709
|
+
return message;
|
|
7710
|
+
};
|
|
7711
|
+
|
|
7712
|
+
/**
|
|
7713
|
+
* Creates a plain object from an Account message. Also converts values to other types if specified.
|
|
7714
|
+
* @function toObject
|
|
7715
|
+
* @memberof waproto.Account
|
|
7716
|
+
* @static
|
|
7717
|
+
* @param {waproto.Account} message Account
|
|
7718
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7719
|
+
* @returns {Object.<string,*>} Plain object
|
|
7720
|
+
*/
|
|
7721
|
+
Account.toObject = function toObject(message, options) {
|
|
7722
|
+
if (!options)
|
|
7723
|
+
options = {};
|
|
7724
|
+
var object = {};
|
|
7725
|
+
if (message.lid != null && message.hasOwnProperty("lid")) {
|
|
7726
|
+
object.lid = message.lid;
|
|
7727
|
+
if (options.oneofs)
|
|
7728
|
+
object._lid = "lid";
|
|
7729
|
+
}
|
|
7730
|
+
if (message.username != null && message.hasOwnProperty("username")) {
|
|
7731
|
+
object.username = message.username;
|
|
7732
|
+
if (options.oneofs)
|
|
7733
|
+
object._username = "username";
|
|
7734
|
+
}
|
|
7735
|
+
if (message.countryCode != null && message.hasOwnProperty("countryCode")) {
|
|
7736
|
+
object.countryCode = message.countryCode;
|
|
7737
|
+
if (options.oneofs)
|
|
7738
|
+
object._countryCode = "countryCode";
|
|
7739
|
+
}
|
|
7740
|
+
if (message.isUsernameDeleted != null && message.hasOwnProperty("isUsernameDeleted")) {
|
|
7741
|
+
object.isUsernameDeleted = message.isUsernameDeleted;
|
|
7742
|
+
if (options.oneofs)
|
|
7743
|
+
object._isUsernameDeleted = "isUsernameDeleted";
|
|
7744
|
+
}
|
|
7745
|
+
return object;
|
|
7746
|
+
};
|
|
7747
|
+
|
|
7748
|
+
/**
|
|
7749
|
+
* Converts this Account to JSON.
|
|
7750
|
+
* @function toJSON
|
|
7751
|
+
* @memberof waproto.Account
|
|
7752
|
+
* @instance
|
|
7753
|
+
* @returns {Object.<string,*>} JSON object
|
|
7754
|
+
*/
|
|
7755
|
+
Account.prototype.toJSON = function toJSON() {
|
|
7756
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7757
|
+
};
|
|
7758
|
+
|
|
7759
|
+
/**
|
|
7760
|
+
* Gets the default type url for Account
|
|
7761
|
+
* @function getTypeUrl
|
|
7762
|
+
* @memberof waproto.Account
|
|
7763
|
+
* @static
|
|
7764
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7765
|
+
* @returns {string} The default type url
|
|
7766
|
+
*/
|
|
7767
|
+
Account.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7768
|
+
if (typeUrlPrefix === undefined) {
|
|
7769
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
7770
|
+
}
|
|
7771
|
+
return typeUrlPrefix + "/waproto.Account";
|
|
7772
|
+
};
|
|
7773
|
+
|
|
7774
|
+
return Account;
|
|
7775
|
+
})();
|
|
7776
|
+
|
|
7462
7777
|
waproto.ActionLink = (function() {
|
|
7463
7778
|
|
|
7464
7779
|
/**
|
|
@@ -15073,6 +15388,7 @@ $root.waproto = (function() {
|
|
|
15073
15388
|
* @property {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.PlanningStepStatus|null} [status] BotPlanningStepMetadata status
|
|
15074
15389
|
* @property {boolean|null} [isReasoning] BotPlanningStepMetadata isReasoning
|
|
15075
15390
|
* @property {boolean|null} [isEnhancedSearch] BotPlanningStepMetadata isEnhancedSearch
|
|
15391
|
+
* @property {Array.<waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningStepSectionMetadata>|null} [sections] BotPlanningStepMetadata sections
|
|
15076
15392
|
*/
|
|
15077
15393
|
|
|
15078
15394
|
/**
|
|
@@ -15085,6 +15401,7 @@ $root.waproto = (function() {
|
|
|
15085
15401
|
*/
|
|
15086
15402
|
function BotPlanningStepMetadata(properties) {
|
|
15087
15403
|
this.sourcesMetadata = [];
|
|
15404
|
+
this.sections = [];
|
|
15088
15405
|
if (properties)
|
|
15089
15406
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15090
15407
|
if (properties[keys[i]] != null)
|
|
@@ -15139,6 +15456,14 @@ $root.waproto = (function() {
|
|
|
15139
15456
|
*/
|
|
15140
15457
|
BotPlanningStepMetadata.prototype.isEnhancedSearch = null;
|
|
15141
15458
|
|
|
15459
|
+
/**
|
|
15460
|
+
* BotPlanningStepMetadata sections.
|
|
15461
|
+
* @member {Array.<waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningStepSectionMetadata>} sections
|
|
15462
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata
|
|
15463
|
+
* @instance
|
|
15464
|
+
*/
|
|
15465
|
+
BotPlanningStepMetadata.prototype.sections = $util.emptyArray;
|
|
15466
|
+
|
|
15142
15467
|
// OneOf field names bound to virtual getters and setters
|
|
15143
15468
|
var $oneOfFields;
|
|
15144
15469
|
|
|
@@ -15209,6 +15534,9 @@ $root.waproto = (function() {
|
|
|
15209
15534
|
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isReasoning);
|
|
15210
15535
|
if (message.isEnhancedSearch != null && Object.hasOwnProperty.call(message, "isEnhancedSearch"))
|
|
15211
15536
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isEnhancedSearch);
|
|
15537
|
+
if (message.sections != null && message.sections.length)
|
|
15538
|
+
for (var i = 0; i < message.sections.length; ++i)
|
|
15539
|
+
$root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata.encode(message.sections[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
15212
15540
|
return writer;
|
|
15213
15541
|
};
|
|
15214
15542
|
|
|
@@ -15269,6 +15597,12 @@ $root.waproto = (function() {
|
|
|
15269
15597
|
message.isEnhancedSearch = reader.bool();
|
|
15270
15598
|
break;
|
|
15271
15599
|
}
|
|
15600
|
+
case 7: {
|
|
15601
|
+
if (!(message.sections && message.sections.length))
|
|
15602
|
+
message.sections = [];
|
|
15603
|
+
message.sections.push($root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata.decode(reader, reader.uint32()));
|
|
15604
|
+
break;
|
|
15605
|
+
}
|
|
15272
15606
|
default:
|
|
15273
15607
|
reader.skipType(tag & 7);
|
|
15274
15608
|
break;
|
|
@@ -15346,6 +15680,15 @@ $root.waproto = (function() {
|
|
|
15346
15680
|
if (typeof message.isEnhancedSearch !== "boolean")
|
|
15347
15681
|
return "isEnhancedSearch: boolean expected";
|
|
15348
15682
|
}
|
|
15683
|
+
if (message.sections != null && message.hasOwnProperty("sections")) {
|
|
15684
|
+
if (!Array.isArray(message.sections))
|
|
15685
|
+
return "sections: array expected";
|
|
15686
|
+
for (var i = 0; i < message.sections.length; ++i) {
|
|
15687
|
+
var error = $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata.verify(message.sections[i]);
|
|
15688
|
+
if (error)
|
|
15689
|
+
return "sections." + error;
|
|
15690
|
+
}
|
|
15691
|
+
}
|
|
15349
15692
|
return null;
|
|
15350
15693
|
};
|
|
15351
15694
|
|
|
@@ -15403,6 +15746,16 @@ $root.waproto = (function() {
|
|
|
15403
15746
|
message.isReasoning = Boolean(object.isReasoning);
|
|
15404
15747
|
if (object.isEnhancedSearch != null)
|
|
15405
15748
|
message.isEnhancedSearch = Boolean(object.isEnhancedSearch);
|
|
15749
|
+
if (object.sections) {
|
|
15750
|
+
if (!Array.isArray(object.sections))
|
|
15751
|
+
throw TypeError(".waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.sections: array expected");
|
|
15752
|
+
message.sections = [];
|
|
15753
|
+
for (var i = 0; i < object.sections.length; ++i) {
|
|
15754
|
+
if (typeof object.sections[i] !== "object")
|
|
15755
|
+
throw TypeError(".waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.sections: object expected");
|
|
15756
|
+
message.sections[i] = $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata.fromObject(object.sections[i]);
|
|
15757
|
+
}
|
|
15758
|
+
}
|
|
15406
15759
|
return message;
|
|
15407
15760
|
};
|
|
15408
15761
|
|
|
@@ -15419,8 +15772,10 @@ $root.waproto = (function() {
|
|
|
15419
15772
|
if (!options)
|
|
15420
15773
|
options = {};
|
|
15421
15774
|
var object = {};
|
|
15422
|
-
if (options.arrays || options.defaults)
|
|
15775
|
+
if (options.arrays || options.defaults) {
|
|
15423
15776
|
object.sourcesMetadata = [];
|
|
15777
|
+
object.sections = [];
|
|
15778
|
+
}
|
|
15424
15779
|
if (message.statusTitle != null && message.hasOwnProperty("statusTitle")) {
|
|
15425
15780
|
object.statusTitle = message.statusTitle;
|
|
15426
15781
|
if (options.oneofs)
|
|
@@ -15451,6 +15806,11 @@ $root.waproto = (function() {
|
|
|
15451
15806
|
if (options.oneofs)
|
|
15452
15807
|
object._isEnhancedSearch = "isEnhancedSearch";
|
|
15453
15808
|
}
|
|
15809
|
+
if (message.sections && message.sections.length) {
|
|
15810
|
+
object.sections = [];
|
|
15811
|
+
for (var j = 0; j < message.sections.length; ++j)
|
|
15812
|
+
object.sections[j] = $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata.toObject(message.sections[j], options);
|
|
15813
|
+
}
|
|
15454
15814
|
return object;
|
|
15455
15815
|
};
|
|
15456
15816
|
|
|
@@ -15480,26 +15840,27 @@ $root.waproto = (function() {
|
|
|
15480
15840
|
return typeUrlPrefix + "/waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata";
|
|
15481
15841
|
};
|
|
15482
15842
|
|
|
15483
|
-
BotPlanningStepMetadata.
|
|
15843
|
+
BotPlanningStepMetadata.BotPlanningSearchSourceMetadata = (function() {
|
|
15484
15844
|
|
|
15485
15845
|
/**
|
|
15486
|
-
* Properties of a
|
|
15846
|
+
* Properties of a BotPlanningSearchSourceMetadata.
|
|
15487
15847
|
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata
|
|
15488
|
-
* @interface
|
|
15489
|
-
* @property {string|null} [
|
|
15490
|
-
* @property {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15491
|
-
* @property {string|null} [sourceUrl]
|
|
15848
|
+
* @interface IBotPlanningSearchSourceMetadata
|
|
15849
|
+
* @property {string|null} [title] BotPlanningSearchSourceMetadata title
|
|
15850
|
+
* @property {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider|null} [provider] BotPlanningSearchSourceMetadata provider
|
|
15851
|
+
* @property {string|null} [sourceUrl] BotPlanningSearchSourceMetadata sourceUrl
|
|
15852
|
+
* @property {string|null} [favIconUrl] BotPlanningSearchSourceMetadata favIconUrl
|
|
15492
15853
|
*/
|
|
15493
15854
|
|
|
15494
15855
|
/**
|
|
15495
|
-
* Constructs a new
|
|
15856
|
+
* Constructs a new BotPlanningSearchSourceMetadata.
|
|
15496
15857
|
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata
|
|
15497
|
-
* @classdesc Represents a
|
|
15498
|
-
* @implements
|
|
15858
|
+
* @classdesc Represents a BotPlanningSearchSourceMetadata.
|
|
15859
|
+
* @implements IBotPlanningSearchSourceMetadata
|
|
15499
15860
|
* @constructor
|
|
15500
|
-
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15861
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningSearchSourceMetadata=} [properties] Properties to set
|
|
15501
15862
|
*/
|
|
15502
|
-
function
|
|
15863
|
+
function BotPlanningSearchSourceMetadata(properties) {
|
|
15503
15864
|
if (properties)
|
|
15504
15865
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15505
15866
|
if (properties[keys[i]] != null)
|
|
@@ -15507,116 +15868,132 @@ $root.waproto = (function() {
|
|
|
15507
15868
|
}
|
|
15508
15869
|
|
|
15509
15870
|
/**
|
|
15510
|
-
*
|
|
15511
|
-
* @member {string|null|undefined}
|
|
15512
|
-
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15871
|
+
* BotPlanningSearchSourceMetadata title.
|
|
15872
|
+
* @member {string|null|undefined} title
|
|
15873
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15513
15874
|
* @instance
|
|
15514
15875
|
*/
|
|
15515
|
-
|
|
15876
|
+
BotPlanningSearchSourceMetadata.prototype.title = null;
|
|
15516
15877
|
|
|
15517
15878
|
/**
|
|
15518
|
-
*
|
|
15519
|
-
* @member {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15520
|
-
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15879
|
+
* BotPlanningSearchSourceMetadata provider.
|
|
15880
|
+
* @member {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider|null|undefined} provider
|
|
15881
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15521
15882
|
* @instance
|
|
15522
15883
|
*/
|
|
15523
|
-
|
|
15884
|
+
BotPlanningSearchSourceMetadata.prototype.provider = null;
|
|
15524
15885
|
|
|
15525
15886
|
/**
|
|
15526
|
-
*
|
|
15887
|
+
* BotPlanningSearchSourceMetadata sourceUrl.
|
|
15527
15888
|
* @member {string|null|undefined} sourceUrl
|
|
15528
|
-
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15889
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15529
15890
|
* @instance
|
|
15530
15891
|
*/
|
|
15531
|
-
|
|
15892
|
+
BotPlanningSearchSourceMetadata.prototype.sourceUrl = null;
|
|
15893
|
+
|
|
15894
|
+
/**
|
|
15895
|
+
* BotPlanningSearchSourceMetadata favIconUrl.
|
|
15896
|
+
* @member {string|null|undefined} favIconUrl
|
|
15897
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15898
|
+
* @instance
|
|
15899
|
+
*/
|
|
15900
|
+
BotPlanningSearchSourceMetadata.prototype.favIconUrl = null;
|
|
15532
15901
|
|
|
15533
15902
|
// OneOf field names bound to virtual getters and setters
|
|
15534
15903
|
var $oneOfFields;
|
|
15535
15904
|
|
|
15536
15905
|
// Virtual OneOf for proto3 optional field
|
|
15537
|
-
Object.defineProperty(
|
|
15538
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
15906
|
+
Object.defineProperty(BotPlanningSearchSourceMetadata.prototype, "_title", {
|
|
15907
|
+
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
|
15539
15908
|
set: $util.oneOfSetter($oneOfFields)
|
|
15540
15909
|
});
|
|
15541
15910
|
|
|
15542
15911
|
// Virtual OneOf for proto3 optional field
|
|
15543
|
-
Object.defineProperty(
|
|
15912
|
+
Object.defineProperty(BotPlanningSearchSourceMetadata.prototype, "_provider", {
|
|
15544
15913
|
get: $util.oneOfGetter($oneOfFields = ["provider"]),
|
|
15545
15914
|
set: $util.oneOfSetter($oneOfFields)
|
|
15546
15915
|
});
|
|
15547
15916
|
|
|
15548
15917
|
// Virtual OneOf for proto3 optional field
|
|
15549
|
-
Object.defineProperty(
|
|
15918
|
+
Object.defineProperty(BotPlanningSearchSourceMetadata.prototype, "_sourceUrl", {
|
|
15550
15919
|
get: $util.oneOfGetter($oneOfFields = ["sourceUrl"]),
|
|
15551
15920
|
set: $util.oneOfSetter($oneOfFields)
|
|
15552
15921
|
});
|
|
15553
15922
|
|
|
15923
|
+
// Virtual OneOf for proto3 optional field
|
|
15924
|
+
Object.defineProperty(BotPlanningSearchSourceMetadata.prototype, "_favIconUrl", {
|
|
15925
|
+
get: $util.oneOfGetter($oneOfFields = ["favIconUrl"]),
|
|
15926
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
15927
|
+
});
|
|
15928
|
+
|
|
15554
15929
|
/**
|
|
15555
|
-
* Creates a new
|
|
15930
|
+
* Creates a new BotPlanningSearchSourceMetadata instance using the specified properties.
|
|
15556
15931
|
* @function create
|
|
15557
|
-
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15932
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15558
15933
|
* @static
|
|
15559
|
-
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15560
|
-
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15934
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningSearchSourceMetadata=} [properties] Properties to set
|
|
15935
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata} BotPlanningSearchSourceMetadata instance
|
|
15561
15936
|
*/
|
|
15562
|
-
|
|
15563
|
-
return new
|
|
15937
|
+
BotPlanningSearchSourceMetadata.create = function create(properties) {
|
|
15938
|
+
return new BotPlanningSearchSourceMetadata(properties);
|
|
15564
15939
|
};
|
|
15565
15940
|
|
|
15566
15941
|
/**
|
|
15567
|
-
* Encodes the specified
|
|
15942
|
+
* Encodes the specified BotPlanningSearchSourceMetadata message. Does not implicitly {@link waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata.verify|verify} messages.
|
|
15568
15943
|
* @function encode
|
|
15569
|
-
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15944
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15570
15945
|
* @static
|
|
15571
|
-
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15946
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningSearchSourceMetadata} message BotPlanningSearchSourceMetadata message or plain object to encode
|
|
15572
15947
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15573
15948
|
* @returns {$protobuf.Writer} Writer
|
|
15574
15949
|
*/
|
|
15575
|
-
|
|
15950
|
+
BotPlanningSearchSourceMetadata.encode = function encode(message, writer) {
|
|
15576
15951
|
if (!writer)
|
|
15577
15952
|
writer = $Writer.create();
|
|
15578
|
-
if (message.
|
|
15579
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
15953
|
+
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
|
15954
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.title);
|
|
15580
15955
|
if (message.provider != null && Object.hasOwnProperty.call(message, "provider"))
|
|
15581
15956
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.provider);
|
|
15582
15957
|
if (message.sourceUrl != null && Object.hasOwnProperty.call(message, "sourceUrl"))
|
|
15583
15958
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceUrl);
|
|
15959
|
+
if (message.favIconUrl != null && Object.hasOwnProperty.call(message, "favIconUrl"))
|
|
15960
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.favIconUrl);
|
|
15584
15961
|
return writer;
|
|
15585
15962
|
};
|
|
15586
15963
|
|
|
15587
15964
|
/**
|
|
15588
|
-
* Encodes the specified
|
|
15965
|
+
* Encodes the specified BotPlanningSearchSourceMetadata message, length delimited. Does not implicitly {@link waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata.verify|verify} messages.
|
|
15589
15966
|
* @function encodeDelimited
|
|
15590
|
-
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15967
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15591
15968
|
* @static
|
|
15592
|
-
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15969
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningSearchSourceMetadata} message BotPlanningSearchSourceMetadata message or plain object to encode
|
|
15593
15970
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15594
15971
|
* @returns {$protobuf.Writer} Writer
|
|
15595
15972
|
*/
|
|
15596
|
-
|
|
15973
|
+
BotPlanningSearchSourceMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15597
15974
|
return this.encode(message, writer).ldelim();
|
|
15598
15975
|
};
|
|
15599
15976
|
|
|
15600
15977
|
/**
|
|
15601
|
-
* Decodes a
|
|
15978
|
+
* Decodes a BotPlanningSearchSourceMetadata message from the specified reader or buffer.
|
|
15602
15979
|
* @function decode
|
|
15603
|
-
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15980
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15604
15981
|
* @static
|
|
15605
15982
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15606
15983
|
* @param {number} [length] Message length if known beforehand
|
|
15607
|
-
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15984
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata} BotPlanningSearchSourceMetadata
|
|
15608
15985
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15609
15986
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15610
15987
|
*/
|
|
15611
|
-
|
|
15988
|
+
BotPlanningSearchSourceMetadata.decode = function decode(reader, length) {
|
|
15612
15989
|
if (!(reader instanceof $Reader))
|
|
15613
15990
|
reader = $Reader.create(reader);
|
|
15614
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15991
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata();
|
|
15615
15992
|
while (reader.pos < end) {
|
|
15616
15993
|
var tag = reader.uint32();
|
|
15617
15994
|
switch (tag >>> 3) {
|
|
15618
15995
|
case 1: {
|
|
15619
|
-
message.
|
|
15996
|
+
message.title = reader.string();
|
|
15620
15997
|
break;
|
|
15621
15998
|
}
|
|
15622
15999
|
case 2: {
|
|
@@ -15627,6 +16004,10 @@ $root.waproto = (function() {
|
|
|
15627
16004
|
message.sourceUrl = reader.string();
|
|
15628
16005
|
break;
|
|
15629
16006
|
}
|
|
16007
|
+
case 4: {
|
|
16008
|
+
message.favIconUrl = reader.string();
|
|
16009
|
+
break;
|
|
16010
|
+
}
|
|
15630
16011
|
default:
|
|
15631
16012
|
reader.skipType(tag & 7);
|
|
15632
16013
|
break;
|
|
@@ -15636,37 +16017,37 @@ $root.waproto = (function() {
|
|
|
15636
16017
|
};
|
|
15637
16018
|
|
|
15638
16019
|
/**
|
|
15639
|
-
* Decodes a
|
|
16020
|
+
* Decodes a BotPlanningSearchSourceMetadata message from the specified reader or buffer, length delimited.
|
|
15640
16021
|
* @function decodeDelimited
|
|
15641
|
-
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
16022
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15642
16023
|
* @static
|
|
15643
16024
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15644
|
-
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
16025
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata} BotPlanningSearchSourceMetadata
|
|
15645
16026
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15646
16027
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15647
16028
|
*/
|
|
15648
|
-
|
|
16029
|
+
BotPlanningSearchSourceMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
15649
16030
|
if (!(reader instanceof $Reader))
|
|
15650
16031
|
reader = new $Reader(reader);
|
|
15651
16032
|
return this.decode(reader, reader.uint32());
|
|
15652
16033
|
};
|
|
15653
16034
|
|
|
15654
16035
|
/**
|
|
15655
|
-
* Verifies a
|
|
16036
|
+
* Verifies a BotPlanningSearchSourceMetadata message.
|
|
15656
16037
|
* @function verify
|
|
15657
|
-
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
16038
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15658
16039
|
* @static
|
|
15659
16040
|
* @param {Object.<string,*>} message Plain object to verify
|
|
15660
16041
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15661
16042
|
*/
|
|
15662
|
-
|
|
16043
|
+
BotPlanningSearchSourceMetadata.verify = function verify(message) {
|
|
15663
16044
|
if (typeof message !== "object" || message === null)
|
|
15664
16045
|
return "object expected";
|
|
15665
16046
|
var properties = {};
|
|
15666
|
-
if (message.
|
|
15667
|
-
properties.
|
|
15668
|
-
if (!$util.isString(message.
|
|
15669
|
-
return "
|
|
16047
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
16048
|
+
properties._title = 1;
|
|
16049
|
+
if (!$util.isString(message.title))
|
|
16050
|
+
return "title: string expected";
|
|
15670
16051
|
}
|
|
15671
16052
|
if (message.provider != null && message.hasOwnProperty("provider")) {
|
|
15672
16053
|
properties._provider = 1;
|
|
@@ -15685,23 +16066,28 @@ $root.waproto = (function() {
|
|
|
15685
16066
|
if (!$util.isString(message.sourceUrl))
|
|
15686
16067
|
return "sourceUrl: string expected";
|
|
15687
16068
|
}
|
|
16069
|
+
if (message.favIconUrl != null && message.hasOwnProperty("favIconUrl")) {
|
|
16070
|
+
properties._favIconUrl = 1;
|
|
16071
|
+
if (!$util.isString(message.favIconUrl))
|
|
16072
|
+
return "favIconUrl: string expected";
|
|
16073
|
+
}
|
|
15688
16074
|
return null;
|
|
15689
16075
|
};
|
|
15690
16076
|
|
|
15691
16077
|
/**
|
|
15692
|
-
* Creates a
|
|
16078
|
+
* Creates a BotPlanningSearchSourceMetadata message from a plain object. Also converts values to their respective internal types.
|
|
15693
16079
|
* @function fromObject
|
|
15694
|
-
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
16080
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
15695
16081
|
* @static
|
|
15696
16082
|
* @param {Object.<string,*>} object Plain object
|
|
15697
|
-
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
16083
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata} BotPlanningSearchSourceMetadata
|
|
15698
16084
|
*/
|
|
15699
|
-
|
|
15700
|
-
if (object instanceof $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
16085
|
+
BotPlanningSearchSourceMetadata.fromObject = function fromObject(object) {
|
|
16086
|
+
if (object instanceof $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata)
|
|
15701
16087
|
return object;
|
|
15702
|
-
var message = new $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.
|
|
15703
|
-
if (object.
|
|
15704
|
-
message.
|
|
16088
|
+
var message = new $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata();
|
|
16089
|
+
if (object.title != null)
|
|
16090
|
+
message.title = String(object.title);
|
|
15705
16091
|
switch (object.provider) {
|
|
15706
16092
|
default:
|
|
15707
16093
|
if (typeof object.provider === "number") {
|
|
@@ -15709,7 +16095,325 @@ $root.waproto = (function() {
|
|
|
15709
16095
|
break;
|
|
15710
16096
|
}
|
|
15711
16097
|
break;
|
|
15712
|
-
case "
|
|
16098
|
+
case "UNKNOWN_PROVIDER":
|
|
16099
|
+
case 0:
|
|
16100
|
+
message.provider = 0;
|
|
16101
|
+
break;
|
|
16102
|
+
case "OTHER":
|
|
16103
|
+
case 1:
|
|
16104
|
+
message.provider = 1;
|
|
16105
|
+
break;
|
|
16106
|
+
case "GOOGLE":
|
|
16107
|
+
case 2:
|
|
16108
|
+
message.provider = 2;
|
|
16109
|
+
break;
|
|
16110
|
+
case "BING":
|
|
16111
|
+
case 3:
|
|
16112
|
+
message.provider = 3;
|
|
16113
|
+
break;
|
|
16114
|
+
}
|
|
16115
|
+
if (object.sourceUrl != null)
|
|
16116
|
+
message.sourceUrl = String(object.sourceUrl);
|
|
16117
|
+
if (object.favIconUrl != null)
|
|
16118
|
+
message.favIconUrl = String(object.favIconUrl);
|
|
16119
|
+
return message;
|
|
16120
|
+
};
|
|
16121
|
+
|
|
16122
|
+
/**
|
|
16123
|
+
* Creates a plain object from a BotPlanningSearchSourceMetadata message. Also converts values to other types if specified.
|
|
16124
|
+
* @function toObject
|
|
16125
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
16126
|
+
* @static
|
|
16127
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata} message BotPlanningSearchSourceMetadata
|
|
16128
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16129
|
+
* @returns {Object.<string,*>} Plain object
|
|
16130
|
+
*/
|
|
16131
|
+
BotPlanningSearchSourceMetadata.toObject = function toObject(message, options) {
|
|
16132
|
+
if (!options)
|
|
16133
|
+
options = {};
|
|
16134
|
+
var object = {};
|
|
16135
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
16136
|
+
object.title = message.title;
|
|
16137
|
+
if (options.oneofs)
|
|
16138
|
+
object._title = "title";
|
|
16139
|
+
}
|
|
16140
|
+
if (message.provider != null && message.hasOwnProperty("provider")) {
|
|
16141
|
+
object.provider = options.enums === String ? $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider[message.provider] === undefined ? message.provider : $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider[message.provider] : message.provider;
|
|
16142
|
+
if (options.oneofs)
|
|
16143
|
+
object._provider = "provider";
|
|
16144
|
+
}
|
|
16145
|
+
if (message.sourceUrl != null && message.hasOwnProperty("sourceUrl")) {
|
|
16146
|
+
object.sourceUrl = message.sourceUrl;
|
|
16147
|
+
if (options.oneofs)
|
|
16148
|
+
object._sourceUrl = "sourceUrl";
|
|
16149
|
+
}
|
|
16150
|
+
if (message.favIconUrl != null && message.hasOwnProperty("favIconUrl")) {
|
|
16151
|
+
object.favIconUrl = message.favIconUrl;
|
|
16152
|
+
if (options.oneofs)
|
|
16153
|
+
object._favIconUrl = "favIconUrl";
|
|
16154
|
+
}
|
|
16155
|
+
return object;
|
|
16156
|
+
};
|
|
16157
|
+
|
|
16158
|
+
/**
|
|
16159
|
+
* Converts this BotPlanningSearchSourceMetadata to JSON.
|
|
16160
|
+
* @function toJSON
|
|
16161
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
16162
|
+
* @instance
|
|
16163
|
+
* @returns {Object.<string,*>} JSON object
|
|
16164
|
+
*/
|
|
16165
|
+
BotPlanningSearchSourceMetadata.prototype.toJSON = function toJSON() {
|
|
16166
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16167
|
+
};
|
|
16168
|
+
|
|
16169
|
+
/**
|
|
16170
|
+
* Gets the default type url for BotPlanningSearchSourceMetadata
|
|
16171
|
+
* @function getTypeUrl
|
|
16172
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata
|
|
16173
|
+
* @static
|
|
16174
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
16175
|
+
* @returns {string} The default type url
|
|
16176
|
+
*/
|
|
16177
|
+
BotPlanningSearchSourceMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
16178
|
+
if (typeUrlPrefix === undefined) {
|
|
16179
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
16180
|
+
}
|
|
16181
|
+
return typeUrlPrefix + "/waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata";
|
|
16182
|
+
};
|
|
16183
|
+
|
|
16184
|
+
return BotPlanningSearchSourceMetadata;
|
|
16185
|
+
})();
|
|
16186
|
+
|
|
16187
|
+
BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata = (function() {
|
|
16188
|
+
|
|
16189
|
+
/**
|
|
16190
|
+
* Properties of a BotPlanningSearchSourcesMetadata.
|
|
16191
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata
|
|
16192
|
+
* @interface IBotPlanningSearchSourcesMetadata
|
|
16193
|
+
* @property {string|null} [sourceTitle] BotPlanningSearchSourcesMetadata sourceTitle
|
|
16194
|
+
* @property {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata.BotPlanningSearchSourceProvider|null} [provider] BotPlanningSearchSourcesMetadata provider
|
|
16195
|
+
* @property {string|null} [sourceUrl] BotPlanningSearchSourcesMetadata sourceUrl
|
|
16196
|
+
*/
|
|
16197
|
+
|
|
16198
|
+
/**
|
|
16199
|
+
* Constructs a new BotPlanningSearchSourcesMetadata.
|
|
16200
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata
|
|
16201
|
+
* @classdesc Represents a BotPlanningSearchSourcesMetadata.
|
|
16202
|
+
* @implements IBotPlanningSearchSourcesMetadata
|
|
16203
|
+
* @constructor
|
|
16204
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningSearchSourcesMetadata=} [properties] Properties to set
|
|
16205
|
+
*/
|
|
16206
|
+
function BotPlanningSearchSourcesMetadata(properties) {
|
|
16207
|
+
if (properties)
|
|
16208
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16209
|
+
if (properties[keys[i]] != null)
|
|
16210
|
+
this[keys[i]] = properties[keys[i]];
|
|
16211
|
+
}
|
|
16212
|
+
|
|
16213
|
+
/**
|
|
16214
|
+
* BotPlanningSearchSourcesMetadata sourceTitle.
|
|
16215
|
+
* @member {string|null|undefined} sourceTitle
|
|
16216
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata
|
|
16217
|
+
* @instance
|
|
16218
|
+
*/
|
|
16219
|
+
BotPlanningSearchSourcesMetadata.prototype.sourceTitle = null;
|
|
16220
|
+
|
|
16221
|
+
/**
|
|
16222
|
+
* BotPlanningSearchSourcesMetadata provider.
|
|
16223
|
+
* @member {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata.BotPlanningSearchSourceProvider|null|undefined} provider
|
|
16224
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata
|
|
16225
|
+
* @instance
|
|
16226
|
+
*/
|
|
16227
|
+
BotPlanningSearchSourcesMetadata.prototype.provider = null;
|
|
16228
|
+
|
|
16229
|
+
/**
|
|
16230
|
+
* BotPlanningSearchSourcesMetadata sourceUrl.
|
|
16231
|
+
* @member {string|null|undefined} sourceUrl
|
|
16232
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata
|
|
16233
|
+
* @instance
|
|
16234
|
+
*/
|
|
16235
|
+
BotPlanningSearchSourcesMetadata.prototype.sourceUrl = null;
|
|
16236
|
+
|
|
16237
|
+
// OneOf field names bound to virtual getters and setters
|
|
16238
|
+
var $oneOfFields;
|
|
16239
|
+
|
|
16240
|
+
// Virtual OneOf for proto3 optional field
|
|
16241
|
+
Object.defineProperty(BotPlanningSearchSourcesMetadata.prototype, "_sourceTitle", {
|
|
16242
|
+
get: $util.oneOfGetter($oneOfFields = ["sourceTitle"]),
|
|
16243
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16244
|
+
});
|
|
16245
|
+
|
|
16246
|
+
// Virtual OneOf for proto3 optional field
|
|
16247
|
+
Object.defineProperty(BotPlanningSearchSourcesMetadata.prototype, "_provider", {
|
|
16248
|
+
get: $util.oneOfGetter($oneOfFields = ["provider"]),
|
|
16249
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16250
|
+
});
|
|
16251
|
+
|
|
16252
|
+
// Virtual OneOf for proto3 optional field
|
|
16253
|
+
Object.defineProperty(BotPlanningSearchSourcesMetadata.prototype, "_sourceUrl", {
|
|
16254
|
+
get: $util.oneOfGetter($oneOfFields = ["sourceUrl"]),
|
|
16255
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16256
|
+
});
|
|
16257
|
+
|
|
16258
|
+
/**
|
|
16259
|
+
* Creates a new BotPlanningSearchSourcesMetadata instance using the specified properties.
|
|
16260
|
+
* @function create
|
|
16261
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata
|
|
16262
|
+
* @static
|
|
16263
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningSearchSourcesMetadata=} [properties] Properties to set
|
|
16264
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata} BotPlanningSearchSourcesMetadata instance
|
|
16265
|
+
*/
|
|
16266
|
+
BotPlanningSearchSourcesMetadata.create = function create(properties) {
|
|
16267
|
+
return new BotPlanningSearchSourcesMetadata(properties);
|
|
16268
|
+
};
|
|
16269
|
+
|
|
16270
|
+
/**
|
|
16271
|
+
* Encodes the specified BotPlanningSearchSourcesMetadata message. Does not implicitly {@link waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata.verify|verify} messages.
|
|
16272
|
+
* @function encode
|
|
16273
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata
|
|
16274
|
+
* @static
|
|
16275
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningSearchSourcesMetadata} message BotPlanningSearchSourcesMetadata message or plain object to encode
|
|
16276
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16277
|
+
* @returns {$protobuf.Writer} Writer
|
|
16278
|
+
*/
|
|
16279
|
+
BotPlanningSearchSourcesMetadata.encode = function encode(message, writer) {
|
|
16280
|
+
if (!writer)
|
|
16281
|
+
writer = $Writer.create();
|
|
16282
|
+
if (message.sourceTitle != null && Object.hasOwnProperty.call(message, "sourceTitle"))
|
|
16283
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceTitle);
|
|
16284
|
+
if (message.provider != null && Object.hasOwnProperty.call(message, "provider"))
|
|
16285
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.provider);
|
|
16286
|
+
if (message.sourceUrl != null && Object.hasOwnProperty.call(message, "sourceUrl"))
|
|
16287
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceUrl);
|
|
16288
|
+
return writer;
|
|
16289
|
+
};
|
|
16290
|
+
|
|
16291
|
+
/**
|
|
16292
|
+
* Encodes the specified BotPlanningSearchSourcesMetadata message, length delimited. Does not implicitly {@link waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata.verify|verify} messages.
|
|
16293
|
+
* @function encodeDelimited
|
|
16294
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata
|
|
16295
|
+
* @static
|
|
16296
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningSearchSourcesMetadata} message BotPlanningSearchSourcesMetadata message or plain object to encode
|
|
16297
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16298
|
+
* @returns {$protobuf.Writer} Writer
|
|
16299
|
+
*/
|
|
16300
|
+
BotPlanningSearchSourcesMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16301
|
+
return this.encode(message, writer).ldelim();
|
|
16302
|
+
};
|
|
16303
|
+
|
|
16304
|
+
/**
|
|
16305
|
+
* Decodes a BotPlanningSearchSourcesMetadata message from the specified reader or buffer.
|
|
16306
|
+
* @function decode
|
|
16307
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata
|
|
16308
|
+
* @static
|
|
16309
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16310
|
+
* @param {number} [length] Message length if known beforehand
|
|
16311
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata} BotPlanningSearchSourcesMetadata
|
|
16312
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16313
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16314
|
+
*/
|
|
16315
|
+
BotPlanningSearchSourcesMetadata.decode = function decode(reader, length) {
|
|
16316
|
+
if (!(reader instanceof $Reader))
|
|
16317
|
+
reader = $Reader.create(reader);
|
|
16318
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata();
|
|
16319
|
+
while (reader.pos < end) {
|
|
16320
|
+
var tag = reader.uint32();
|
|
16321
|
+
switch (tag >>> 3) {
|
|
16322
|
+
case 1: {
|
|
16323
|
+
message.sourceTitle = reader.string();
|
|
16324
|
+
break;
|
|
16325
|
+
}
|
|
16326
|
+
case 2: {
|
|
16327
|
+
message.provider = reader.int32();
|
|
16328
|
+
break;
|
|
16329
|
+
}
|
|
16330
|
+
case 3: {
|
|
16331
|
+
message.sourceUrl = reader.string();
|
|
16332
|
+
break;
|
|
16333
|
+
}
|
|
16334
|
+
default:
|
|
16335
|
+
reader.skipType(tag & 7);
|
|
16336
|
+
break;
|
|
16337
|
+
}
|
|
16338
|
+
}
|
|
16339
|
+
return message;
|
|
16340
|
+
};
|
|
16341
|
+
|
|
16342
|
+
/**
|
|
16343
|
+
* Decodes a BotPlanningSearchSourcesMetadata message from the specified reader or buffer, length delimited.
|
|
16344
|
+
* @function decodeDelimited
|
|
16345
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata
|
|
16346
|
+
* @static
|
|
16347
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16348
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata} BotPlanningSearchSourcesMetadata
|
|
16349
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16350
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16351
|
+
*/
|
|
16352
|
+
BotPlanningSearchSourcesMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
16353
|
+
if (!(reader instanceof $Reader))
|
|
16354
|
+
reader = new $Reader(reader);
|
|
16355
|
+
return this.decode(reader, reader.uint32());
|
|
16356
|
+
};
|
|
16357
|
+
|
|
16358
|
+
/**
|
|
16359
|
+
* Verifies a BotPlanningSearchSourcesMetadata message.
|
|
16360
|
+
* @function verify
|
|
16361
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata
|
|
16362
|
+
* @static
|
|
16363
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
16364
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16365
|
+
*/
|
|
16366
|
+
BotPlanningSearchSourcesMetadata.verify = function verify(message) {
|
|
16367
|
+
if (typeof message !== "object" || message === null)
|
|
16368
|
+
return "object expected";
|
|
16369
|
+
var properties = {};
|
|
16370
|
+
if (message.sourceTitle != null && message.hasOwnProperty("sourceTitle")) {
|
|
16371
|
+
properties._sourceTitle = 1;
|
|
16372
|
+
if (!$util.isString(message.sourceTitle))
|
|
16373
|
+
return "sourceTitle: string expected";
|
|
16374
|
+
}
|
|
16375
|
+
if (message.provider != null && message.hasOwnProperty("provider")) {
|
|
16376
|
+
properties._provider = 1;
|
|
16377
|
+
switch (message.provider) {
|
|
16378
|
+
default:
|
|
16379
|
+
return "provider: enum value expected";
|
|
16380
|
+
case 0:
|
|
16381
|
+
case 1:
|
|
16382
|
+
case 2:
|
|
16383
|
+
case 3:
|
|
16384
|
+
break;
|
|
16385
|
+
}
|
|
16386
|
+
}
|
|
16387
|
+
if (message.sourceUrl != null && message.hasOwnProperty("sourceUrl")) {
|
|
16388
|
+
properties._sourceUrl = 1;
|
|
16389
|
+
if (!$util.isString(message.sourceUrl))
|
|
16390
|
+
return "sourceUrl: string expected";
|
|
16391
|
+
}
|
|
16392
|
+
return null;
|
|
16393
|
+
};
|
|
16394
|
+
|
|
16395
|
+
/**
|
|
16396
|
+
* Creates a BotPlanningSearchSourcesMetadata message from a plain object. Also converts values to their respective internal types.
|
|
16397
|
+
* @function fromObject
|
|
16398
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata
|
|
16399
|
+
* @static
|
|
16400
|
+
* @param {Object.<string,*>} object Plain object
|
|
16401
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata} BotPlanningSearchSourcesMetadata
|
|
16402
|
+
*/
|
|
16403
|
+
BotPlanningSearchSourcesMetadata.fromObject = function fromObject(object) {
|
|
16404
|
+
if (object instanceof $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata)
|
|
16405
|
+
return object;
|
|
16406
|
+
var message = new $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata();
|
|
16407
|
+
if (object.sourceTitle != null)
|
|
16408
|
+
message.sourceTitle = String(object.sourceTitle);
|
|
16409
|
+
switch (object.provider) {
|
|
16410
|
+
default:
|
|
16411
|
+
if (typeof object.provider === "number") {
|
|
16412
|
+
message.provider = object.provider;
|
|
16413
|
+
break;
|
|
16414
|
+
}
|
|
16415
|
+
break;
|
|
16416
|
+
case "UNKNOWN":
|
|
15713
16417
|
case 0:
|
|
15714
16418
|
message.provider = 0;
|
|
15715
16419
|
break;
|
|
@@ -15809,6 +16513,318 @@ $root.waproto = (function() {
|
|
|
15809
16513
|
return BotPlanningSearchSourcesMetadata;
|
|
15810
16514
|
})();
|
|
15811
16515
|
|
|
16516
|
+
BotPlanningStepMetadata.BotPlanningStepSectionMetadata = (function() {
|
|
16517
|
+
|
|
16518
|
+
/**
|
|
16519
|
+
* Properties of a BotPlanningStepSectionMetadata.
|
|
16520
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata
|
|
16521
|
+
* @interface IBotPlanningStepSectionMetadata
|
|
16522
|
+
* @property {string|null} [sectionTitle] BotPlanningStepSectionMetadata sectionTitle
|
|
16523
|
+
* @property {string|null} [sectionBody] BotPlanningStepSectionMetadata sectionBody
|
|
16524
|
+
* @property {Array.<waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningSearchSourceMetadata>|null} [sourcesMetadata] BotPlanningStepSectionMetadata sourcesMetadata
|
|
16525
|
+
*/
|
|
16526
|
+
|
|
16527
|
+
/**
|
|
16528
|
+
* Constructs a new BotPlanningStepSectionMetadata.
|
|
16529
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata
|
|
16530
|
+
* @classdesc Represents a BotPlanningStepSectionMetadata.
|
|
16531
|
+
* @implements IBotPlanningStepSectionMetadata
|
|
16532
|
+
* @constructor
|
|
16533
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningStepSectionMetadata=} [properties] Properties to set
|
|
16534
|
+
*/
|
|
16535
|
+
function BotPlanningStepSectionMetadata(properties) {
|
|
16536
|
+
this.sourcesMetadata = [];
|
|
16537
|
+
if (properties)
|
|
16538
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16539
|
+
if (properties[keys[i]] != null)
|
|
16540
|
+
this[keys[i]] = properties[keys[i]];
|
|
16541
|
+
}
|
|
16542
|
+
|
|
16543
|
+
/**
|
|
16544
|
+
* BotPlanningStepSectionMetadata sectionTitle.
|
|
16545
|
+
* @member {string|null|undefined} sectionTitle
|
|
16546
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16547
|
+
* @instance
|
|
16548
|
+
*/
|
|
16549
|
+
BotPlanningStepSectionMetadata.prototype.sectionTitle = null;
|
|
16550
|
+
|
|
16551
|
+
/**
|
|
16552
|
+
* BotPlanningStepSectionMetadata sectionBody.
|
|
16553
|
+
* @member {string|null|undefined} sectionBody
|
|
16554
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16555
|
+
* @instance
|
|
16556
|
+
*/
|
|
16557
|
+
BotPlanningStepSectionMetadata.prototype.sectionBody = null;
|
|
16558
|
+
|
|
16559
|
+
/**
|
|
16560
|
+
* BotPlanningStepSectionMetadata sourcesMetadata.
|
|
16561
|
+
* @member {Array.<waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningSearchSourceMetadata>} sourcesMetadata
|
|
16562
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16563
|
+
* @instance
|
|
16564
|
+
*/
|
|
16565
|
+
BotPlanningStepSectionMetadata.prototype.sourcesMetadata = $util.emptyArray;
|
|
16566
|
+
|
|
16567
|
+
// OneOf field names bound to virtual getters and setters
|
|
16568
|
+
var $oneOfFields;
|
|
16569
|
+
|
|
16570
|
+
// Virtual OneOf for proto3 optional field
|
|
16571
|
+
Object.defineProperty(BotPlanningStepSectionMetadata.prototype, "_sectionTitle", {
|
|
16572
|
+
get: $util.oneOfGetter($oneOfFields = ["sectionTitle"]),
|
|
16573
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16574
|
+
});
|
|
16575
|
+
|
|
16576
|
+
// Virtual OneOf for proto3 optional field
|
|
16577
|
+
Object.defineProperty(BotPlanningStepSectionMetadata.prototype, "_sectionBody", {
|
|
16578
|
+
get: $util.oneOfGetter($oneOfFields = ["sectionBody"]),
|
|
16579
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16580
|
+
});
|
|
16581
|
+
|
|
16582
|
+
/**
|
|
16583
|
+
* Creates a new BotPlanningStepSectionMetadata instance using the specified properties.
|
|
16584
|
+
* @function create
|
|
16585
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16586
|
+
* @static
|
|
16587
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningStepSectionMetadata=} [properties] Properties to set
|
|
16588
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata} BotPlanningStepSectionMetadata instance
|
|
16589
|
+
*/
|
|
16590
|
+
BotPlanningStepSectionMetadata.create = function create(properties) {
|
|
16591
|
+
return new BotPlanningStepSectionMetadata(properties);
|
|
16592
|
+
};
|
|
16593
|
+
|
|
16594
|
+
/**
|
|
16595
|
+
* Encodes the specified BotPlanningStepSectionMetadata message. Does not implicitly {@link waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata.verify|verify} messages.
|
|
16596
|
+
* @function encode
|
|
16597
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16598
|
+
* @static
|
|
16599
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningStepSectionMetadata} message BotPlanningStepSectionMetadata message or plain object to encode
|
|
16600
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16601
|
+
* @returns {$protobuf.Writer} Writer
|
|
16602
|
+
*/
|
|
16603
|
+
BotPlanningStepSectionMetadata.encode = function encode(message, writer) {
|
|
16604
|
+
if (!writer)
|
|
16605
|
+
writer = $Writer.create();
|
|
16606
|
+
if (message.sectionTitle != null && Object.hasOwnProperty.call(message, "sectionTitle"))
|
|
16607
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.sectionTitle);
|
|
16608
|
+
if (message.sectionBody != null && Object.hasOwnProperty.call(message, "sectionBody"))
|
|
16609
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.sectionBody);
|
|
16610
|
+
if (message.sourcesMetadata != null && message.sourcesMetadata.length)
|
|
16611
|
+
for (var i = 0; i < message.sourcesMetadata.length; ++i)
|
|
16612
|
+
$root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata.encode(message.sourcesMetadata[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
16613
|
+
return writer;
|
|
16614
|
+
};
|
|
16615
|
+
|
|
16616
|
+
/**
|
|
16617
|
+
* Encodes the specified BotPlanningStepSectionMetadata message, length delimited. Does not implicitly {@link waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata.verify|verify} messages.
|
|
16618
|
+
* @function encodeDelimited
|
|
16619
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16620
|
+
* @static
|
|
16621
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.IBotPlanningStepSectionMetadata} message BotPlanningStepSectionMetadata message or plain object to encode
|
|
16622
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16623
|
+
* @returns {$protobuf.Writer} Writer
|
|
16624
|
+
*/
|
|
16625
|
+
BotPlanningStepSectionMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16626
|
+
return this.encode(message, writer).ldelim();
|
|
16627
|
+
};
|
|
16628
|
+
|
|
16629
|
+
/**
|
|
16630
|
+
* Decodes a BotPlanningStepSectionMetadata message from the specified reader or buffer.
|
|
16631
|
+
* @function decode
|
|
16632
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16633
|
+
* @static
|
|
16634
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16635
|
+
* @param {number} [length] Message length if known beforehand
|
|
16636
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata} BotPlanningStepSectionMetadata
|
|
16637
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16638
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16639
|
+
*/
|
|
16640
|
+
BotPlanningStepSectionMetadata.decode = function decode(reader, length) {
|
|
16641
|
+
if (!(reader instanceof $Reader))
|
|
16642
|
+
reader = $Reader.create(reader);
|
|
16643
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata();
|
|
16644
|
+
while (reader.pos < end) {
|
|
16645
|
+
var tag = reader.uint32();
|
|
16646
|
+
switch (tag >>> 3) {
|
|
16647
|
+
case 1: {
|
|
16648
|
+
message.sectionTitle = reader.string();
|
|
16649
|
+
break;
|
|
16650
|
+
}
|
|
16651
|
+
case 2: {
|
|
16652
|
+
message.sectionBody = reader.string();
|
|
16653
|
+
break;
|
|
16654
|
+
}
|
|
16655
|
+
case 3: {
|
|
16656
|
+
if (!(message.sourcesMetadata && message.sourcesMetadata.length))
|
|
16657
|
+
message.sourcesMetadata = [];
|
|
16658
|
+
message.sourcesMetadata.push($root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata.decode(reader, reader.uint32()));
|
|
16659
|
+
break;
|
|
16660
|
+
}
|
|
16661
|
+
default:
|
|
16662
|
+
reader.skipType(tag & 7);
|
|
16663
|
+
break;
|
|
16664
|
+
}
|
|
16665
|
+
}
|
|
16666
|
+
return message;
|
|
16667
|
+
};
|
|
16668
|
+
|
|
16669
|
+
/**
|
|
16670
|
+
* Decodes a BotPlanningStepSectionMetadata message from the specified reader or buffer, length delimited.
|
|
16671
|
+
* @function decodeDelimited
|
|
16672
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16673
|
+
* @static
|
|
16674
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16675
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata} BotPlanningStepSectionMetadata
|
|
16676
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16677
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16678
|
+
*/
|
|
16679
|
+
BotPlanningStepSectionMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
16680
|
+
if (!(reader instanceof $Reader))
|
|
16681
|
+
reader = new $Reader(reader);
|
|
16682
|
+
return this.decode(reader, reader.uint32());
|
|
16683
|
+
};
|
|
16684
|
+
|
|
16685
|
+
/**
|
|
16686
|
+
* Verifies a BotPlanningStepSectionMetadata message.
|
|
16687
|
+
* @function verify
|
|
16688
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16689
|
+
* @static
|
|
16690
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
16691
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16692
|
+
*/
|
|
16693
|
+
BotPlanningStepSectionMetadata.verify = function verify(message) {
|
|
16694
|
+
if (typeof message !== "object" || message === null)
|
|
16695
|
+
return "object expected";
|
|
16696
|
+
var properties = {};
|
|
16697
|
+
if (message.sectionTitle != null && message.hasOwnProperty("sectionTitle")) {
|
|
16698
|
+
properties._sectionTitle = 1;
|
|
16699
|
+
if (!$util.isString(message.sectionTitle))
|
|
16700
|
+
return "sectionTitle: string expected";
|
|
16701
|
+
}
|
|
16702
|
+
if (message.sectionBody != null && message.hasOwnProperty("sectionBody")) {
|
|
16703
|
+
properties._sectionBody = 1;
|
|
16704
|
+
if (!$util.isString(message.sectionBody))
|
|
16705
|
+
return "sectionBody: string expected";
|
|
16706
|
+
}
|
|
16707
|
+
if (message.sourcesMetadata != null && message.hasOwnProperty("sourcesMetadata")) {
|
|
16708
|
+
if (!Array.isArray(message.sourcesMetadata))
|
|
16709
|
+
return "sourcesMetadata: array expected";
|
|
16710
|
+
for (var i = 0; i < message.sourcesMetadata.length; ++i) {
|
|
16711
|
+
var error = $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata.verify(message.sourcesMetadata[i]);
|
|
16712
|
+
if (error)
|
|
16713
|
+
return "sourcesMetadata." + error;
|
|
16714
|
+
}
|
|
16715
|
+
}
|
|
16716
|
+
return null;
|
|
16717
|
+
};
|
|
16718
|
+
|
|
16719
|
+
/**
|
|
16720
|
+
* Creates a BotPlanningStepSectionMetadata message from a plain object. Also converts values to their respective internal types.
|
|
16721
|
+
* @function fromObject
|
|
16722
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16723
|
+
* @static
|
|
16724
|
+
* @param {Object.<string,*>} object Plain object
|
|
16725
|
+
* @returns {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata} BotPlanningStepSectionMetadata
|
|
16726
|
+
*/
|
|
16727
|
+
BotPlanningStepSectionMetadata.fromObject = function fromObject(object) {
|
|
16728
|
+
if (object instanceof $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata)
|
|
16729
|
+
return object;
|
|
16730
|
+
var message = new $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata();
|
|
16731
|
+
if (object.sectionTitle != null)
|
|
16732
|
+
message.sectionTitle = String(object.sectionTitle);
|
|
16733
|
+
if (object.sectionBody != null)
|
|
16734
|
+
message.sectionBody = String(object.sectionBody);
|
|
16735
|
+
if (object.sourcesMetadata) {
|
|
16736
|
+
if (!Array.isArray(object.sourcesMetadata))
|
|
16737
|
+
throw TypeError(".waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata.sourcesMetadata: array expected");
|
|
16738
|
+
message.sourcesMetadata = [];
|
|
16739
|
+
for (var i = 0; i < object.sourcesMetadata.length; ++i) {
|
|
16740
|
+
if (typeof object.sourcesMetadata[i] !== "object")
|
|
16741
|
+
throw TypeError(".waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata.sourcesMetadata: object expected");
|
|
16742
|
+
message.sourcesMetadata[i] = $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata.fromObject(object.sourcesMetadata[i]);
|
|
16743
|
+
}
|
|
16744
|
+
}
|
|
16745
|
+
return message;
|
|
16746
|
+
};
|
|
16747
|
+
|
|
16748
|
+
/**
|
|
16749
|
+
* Creates a plain object from a BotPlanningStepSectionMetadata message. Also converts values to other types if specified.
|
|
16750
|
+
* @function toObject
|
|
16751
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16752
|
+
* @static
|
|
16753
|
+
* @param {waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata} message BotPlanningStepSectionMetadata
|
|
16754
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16755
|
+
* @returns {Object.<string,*>} Plain object
|
|
16756
|
+
*/
|
|
16757
|
+
BotPlanningStepSectionMetadata.toObject = function toObject(message, options) {
|
|
16758
|
+
if (!options)
|
|
16759
|
+
options = {};
|
|
16760
|
+
var object = {};
|
|
16761
|
+
if (options.arrays || options.defaults)
|
|
16762
|
+
object.sourcesMetadata = [];
|
|
16763
|
+
if (message.sectionTitle != null && message.hasOwnProperty("sectionTitle")) {
|
|
16764
|
+
object.sectionTitle = message.sectionTitle;
|
|
16765
|
+
if (options.oneofs)
|
|
16766
|
+
object._sectionTitle = "sectionTitle";
|
|
16767
|
+
}
|
|
16768
|
+
if (message.sectionBody != null && message.hasOwnProperty("sectionBody")) {
|
|
16769
|
+
object.sectionBody = message.sectionBody;
|
|
16770
|
+
if (options.oneofs)
|
|
16771
|
+
object._sectionBody = "sectionBody";
|
|
16772
|
+
}
|
|
16773
|
+
if (message.sourcesMetadata && message.sourcesMetadata.length) {
|
|
16774
|
+
object.sourcesMetadata = [];
|
|
16775
|
+
for (var j = 0; j < message.sourcesMetadata.length; ++j)
|
|
16776
|
+
object.sourcesMetadata[j] = $root.waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata.toObject(message.sourcesMetadata[j], options);
|
|
16777
|
+
}
|
|
16778
|
+
return object;
|
|
16779
|
+
};
|
|
16780
|
+
|
|
16781
|
+
/**
|
|
16782
|
+
* Converts this BotPlanningStepSectionMetadata to JSON.
|
|
16783
|
+
* @function toJSON
|
|
16784
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16785
|
+
* @instance
|
|
16786
|
+
* @returns {Object.<string,*>} JSON object
|
|
16787
|
+
*/
|
|
16788
|
+
BotPlanningStepSectionMetadata.prototype.toJSON = function toJSON() {
|
|
16789
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16790
|
+
};
|
|
16791
|
+
|
|
16792
|
+
/**
|
|
16793
|
+
* Gets the default type url for BotPlanningStepSectionMetadata
|
|
16794
|
+
* @function getTypeUrl
|
|
16795
|
+
* @memberof waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata
|
|
16796
|
+
* @static
|
|
16797
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
16798
|
+
* @returns {string} The default type url
|
|
16799
|
+
*/
|
|
16800
|
+
BotPlanningStepSectionMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
16801
|
+
if (typeUrlPrefix === undefined) {
|
|
16802
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
16803
|
+
}
|
|
16804
|
+
return typeUrlPrefix + "/waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningStepSectionMetadata";
|
|
16805
|
+
};
|
|
16806
|
+
|
|
16807
|
+
return BotPlanningStepSectionMetadata;
|
|
16808
|
+
})();
|
|
16809
|
+
|
|
16810
|
+
/**
|
|
16811
|
+
* BotSearchSourceProvider enum.
|
|
16812
|
+
* @name waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotSearchSourceProvider
|
|
16813
|
+
* @enum {number}
|
|
16814
|
+
* @property {number} UNKNOWN_PROVIDER=0 UNKNOWN_PROVIDER value
|
|
16815
|
+
* @property {number} OTHER=1 OTHER value
|
|
16816
|
+
* @property {number} GOOGLE=2 GOOGLE value
|
|
16817
|
+
* @property {number} BING=3 BING value
|
|
16818
|
+
*/
|
|
16819
|
+
BotPlanningStepMetadata.BotSearchSourceProvider = (function() {
|
|
16820
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
16821
|
+
values[valuesById[0] = "UNKNOWN_PROVIDER"] = 0;
|
|
16822
|
+
values[valuesById[1] = "OTHER"] = 1;
|
|
16823
|
+
values[valuesById[2] = "GOOGLE"] = 2;
|
|
16824
|
+
values[valuesById[3] = "BING"] = 3;
|
|
16825
|
+
return values;
|
|
16826
|
+
})();
|
|
16827
|
+
|
|
15812
16828
|
/**
|
|
15813
16829
|
* PlanningStepStatus enum.
|
|
15814
16830
|
* @name waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.PlanningStepStatus
|
|
@@ -22981,6 +23997,7 @@ $root.waproto = (function() {
|
|
|
22981
23997
|
* @property {number|null} [memClass] ClientPayload memClass
|
|
22982
23998
|
* @property {waproto.ClientPayload.IInteropData|null} [interopData] ClientPayload interopData
|
|
22983
23999
|
* @property {waproto.ClientPayload.TrafficAnonymization|null} [trafficAnonymization] ClientPayload trafficAnonymization
|
|
24000
|
+
* @property {boolean|null} [lidDbMigrated] ClientPayload lidDbMigrated
|
|
22984
24001
|
*/
|
|
22985
24002
|
|
|
22986
24003
|
/**
|
|
@@ -23223,6 +24240,14 @@ $root.waproto = (function() {
|
|
|
23223
24240
|
*/
|
|
23224
24241
|
ClientPayload.prototype.trafficAnonymization = null;
|
|
23225
24242
|
|
|
24243
|
+
/**
|
|
24244
|
+
* ClientPayload lidDbMigrated.
|
|
24245
|
+
* @member {boolean|null|undefined} lidDbMigrated
|
|
24246
|
+
* @memberof waproto.ClientPayload
|
|
24247
|
+
* @instance
|
|
24248
|
+
*/
|
|
24249
|
+
ClientPayload.prototype.lidDbMigrated = null;
|
|
24250
|
+
|
|
23226
24251
|
// OneOf field names bound to virtual getters and setters
|
|
23227
24252
|
var $oneOfFields;
|
|
23228
24253
|
|
|
@@ -23388,6 +24413,12 @@ $root.waproto = (function() {
|
|
|
23388
24413
|
set: $util.oneOfSetter($oneOfFields)
|
|
23389
24414
|
});
|
|
23390
24415
|
|
|
24416
|
+
// Virtual OneOf for proto3 optional field
|
|
24417
|
+
Object.defineProperty(ClientPayload.prototype, "_lidDbMigrated", {
|
|
24418
|
+
get: $util.oneOfGetter($oneOfFields = ["lidDbMigrated"]),
|
|
24419
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
24420
|
+
});
|
|
24421
|
+
|
|
23391
24422
|
/**
|
|
23392
24423
|
* Creates a new ClientPayload instance using the specified properties.
|
|
23393
24424
|
* @function create
|
|
@@ -23472,6 +24503,8 @@ $root.waproto = (function() {
|
|
|
23472
24503
|
$root.waproto.ClientPayload.InteropData.encode(message.interopData, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim();
|
|
23473
24504
|
if (message.trafficAnonymization != null && Object.hasOwnProperty.call(message, "trafficAnonymization"))
|
|
23474
24505
|
writer.uint32(/* id 40, wireType 0 =*/320).int32(message.trafficAnonymization);
|
|
24506
|
+
if (message.lidDbMigrated != null && Object.hasOwnProperty.call(message, "lidDbMigrated"))
|
|
24507
|
+
writer.uint32(/* id 41, wireType 0 =*/328).bool(message.lidDbMigrated);
|
|
23475
24508
|
return writer;
|
|
23476
24509
|
};
|
|
23477
24510
|
|
|
@@ -23625,6 +24658,10 @@ $root.waproto = (function() {
|
|
|
23625
24658
|
message.trafficAnonymization = reader.int32();
|
|
23626
24659
|
break;
|
|
23627
24660
|
}
|
|
24661
|
+
case 41: {
|
|
24662
|
+
message.lidDbMigrated = reader.bool();
|
|
24663
|
+
break;
|
|
24664
|
+
}
|
|
23628
24665
|
default:
|
|
23629
24666
|
reader.skipType(tag & 7);
|
|
23630
24667
|
break;
|
|
@@ -23864,6 +24901,11 @@ $root.waproto = (function() {
|
|
|
23864
24901
|
break;
|
|
23865
24902
|
}
|
|
23866
24903
|
}
|
|
24904
|
+
if (message.lidDbMigrated != null && message.hasOwnProperty("lidDbMigrated")) {
|
|
24905
|
+
properties._lidDbMigrated = 1;
|
|
24906
|
+
if (typeof message.lidDbMigrated !== "boolean")
|
|
24907
|
+
return "lidDbMigrated: boolean expected";
|
|
24908
|
+
}
|
|
23867
24909
|
return null;
|
|
23868
24910
|
};
|
|
23869
24911
|
|
|
@@ -24135,6 +25177,8 @@ $root.waproto = (function() {
|
|
|
24135
25177
|
message.trafficAnonymization = 1;
|
|
24136
25178
|
break;
|
|
24137
25179
|
}
|
|
25180
|
+
if (object.lidDbMigrated != null)
|
|
25181
|
+
message.lidDbMigrated = Boolean(object.lidDbMigrated);
|
|
24138
25182
|
return message;
|
|
24139
25183
|
};
|
|
24140
25184
|
|
|
@@ -24299,6 +25343,11 @@ $root.waproto = (function() {
|
|
|
24299
25343
|
if (options.oneofs)
|
|
24300
25344
|
object._trafficAnonymization = "trafficAnonymization";
|
|
24301
25345
|
}
|
|
25346
|
+
if (message.lidDbMigrated != null && message.hasOwnProperty("lidDbMigrated")) {
|
|
25347
|
+
object.lidDbMigrated = message.lidDbMigrated;
|
|
25348
|
+
if (options.oneofs)
|
|
25349
|
+
object._lidDbMigrated = "lidDbMigrated";
|
|
25350
|
+
}
|
|
24302
25351
|
return object;
|
|
24303
25352
|
};
|
|
24304
25353
|
|
|
@@ -32132,6 +33181,7 @@ $root.waproto = (function() {
|
|
|
32132
33181
|
* @property {string|null} [ctaPayload] ExternalAdReplyInfo ctaPayload
|
|
32133
33182
|
* @property {boolean|null} [disableNudge] ExternalAdReplyInfo disableNudge
|
|
32134
33183
|
* @property {string|null} [originalImageUrl] ExternalAdReplyInfo originalImageUrl
|
|
33184
|
+
* @property {boolean|null} [wtwaAdFormat] ExternalAdReplyInfo wtwaAdFormat
|
|
32135
33185
|
*/
|
|
32136
33186
|
|
|
32137
33187
|
/**
|
|
@@ -32325,6 +33375,14 @@ $root.waproto = (function() {
|
|
|
32325
33375
|
*/
|
|
32326
33376
|
ExternalAdReplyInfo.prototype.originalImageUrl = null;
|
|
32327
33377
|
|
|
33378
|
+
/**
|
|
33379
|
+
* ExternalAdReplyInfo wtwaAdFormat.
|
|
33380
|
+
* @member {boolean|null|undefined} wtwaAdFormat
|
|
33381
|
+
* @memberof waproto.ContextInfo.ExternalAdReplyInfo
|
|
33382
|
+
* @instance
|
|
33383
|
+
*/
|
|
33384
|
+
ExternalAdReplyInfo.prototype.wtwaAdFormat = null;
|
|
33385
|
+
|
|
32328
33386
|
// OneOf field names bound to virtual getters and setters
|
|
32329
33387
|
var $oneOfFields;
|
|
32330
33388
|
|
|
@@ -32460,6 +33518,12 @@ $root.waproto = (function() {
|
|
|
32460
33518
|
set: $util.oneOfSetter($oneOfFields)
|
|
32461
33519
|
});
|
|
32462
33520
|
|
|
33521
|
+
// Virtual OneOf for proto3 optional field
|
|
33522
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_wtwaAdFormat", {
|
|
33523
|
+
get: $util.oneOfGetter($oneOfFields = ["wtwaAdFormat"]),
|
|
33524
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
33525
|
+
});
|
|
33526
|
+
|
|
32463
33527
|
/**
|
|
32464
33528
|
* Creates a new ExternalAdReplyInfo instance using the specified properties.
|
|
32465
33529
|
* @function create
|
|
@@ -32528,6 +33592,8 @@ $root.waproto = (function() {
|
|
|
32528
33592
|
writer.uint32(/* id 21, wireType 0 =*/168).bool(message.disableNudge);
|
|
32529
33593
|
if (message.originalImageUrl != null && Object.hasOwnProperty.call(message, "originalImageUrl"))
|
|
32530
33594
|
writer.uint32(/* id 22, wireType 2 =*/178).string(message.originalImageUrl);
|
|
33595
|
+
if (message.wtwaAdFormat != null && Object.hasOwnProperty.call(message, "wtwaAdFormat"))
|
|
33596
|
+
writer.uint32(/* id 23, wireType 0 =*/184).bool(message.wtwaAdFormat);
|
|
32531
33597
|
return writer;
|
|
32532
33598
|
};
|
|
32533
33599
|
|
|
@@ -32650,6 +33716,10 @@ $root.waproto = (function() {
|
|
|
32650
33716
|
message.originalImageUrl = reader.string();
|
|
32651
33717
|
break;
|
|
32652
33718
|
}
|
|
33719
|
+
case 23: {
|
|
33720
|
+
message.wtwaAdFormat = reader.bool();
|
|
33721
|
+
break;
|
|
33722
|
+
}
|
|
32653
33723
|
default:
|
|
32654
33724
|
reader.skipType(tag & 7);
|
|
32655
33725
|
break;
|
|
@@ -32802,6 +33872,11 @@ $root.waproto = (function() {
|
|
|
32802
33872
|
if (!$util.isString(message.originalImageUrl))
|
|
32803
33873
|
return "originalImageUrl: string expected";
|
|
32804
33874
|
}
|
|
33875
|
+
if (message.wtwaAdFormat != null && message.hasOwnProperty("wtwaAdFormat")) {
|
|
33876
|
+
properties._wtwaAdFormat = 1;
|
|
33877
|
+
if (typeof message.wtwaAdFormat !== "boolean")
|
|
33878
|
+
return "wtwaAdFormat: boolean expected";
|
|
33879
|
+
}
|
|
32805
33880
|
return null;
|
|
32806
33881
|
};
|
|
32807
33882
|
|
|
@@ -32882,6 +33957,8 @@ $root.waproto = (function() {
|
|
|
32882
33957
|
message.disableNudge = Boolean(object.disableNudge);
|
|
32883
33958
|
if (object.originalImageUrl != null)
|
|
32884
33959
|
message.originalImageUrl = String(object.originalImageUrl);
|
|
33960
|
+
if (object.wtwaAdFormat != null)
|
|
33961
|
+
message.wtwaAdFormat = Boolean(object.wtwaAdFormat);
|
|
32885
33962
|
return message;
|
|
32886
33963
|
};
|
|
32887
33964
|
|
|
@@ -33008,6 +34085,11 @@ $root.waproto = (function() {
|
|
|
33008
34085
|
if (options.oneofs)
|
|
33009
34086
|
object._originalImageUrl = "originalImageUrl";
|
|
33010
34087
|
}
|
|
34088
|
+
if (message.wtwaAdFormat != null && message.hasOwnProperty("wtwaAdFormat")) {
|
|
34089
|
+
object.wtwaAdFormat = message.wtwaAdFormat;
|
|
34090
|
+
if (options.oneofs)
|
|
34091
|
+
object._wtwaAdFormat = "wtwaAdFormat";
|
|
34092
|
+
}
|
|
33011
34093
|
return object;
|
|
33012
34094
|
};
|
|
33013
34095
|
|
|
@@ -45452,6 +46534,7 @@ $root.waproto = (function() {
|
|
|
45452
46534
|
* @property {Array.<waproto.IPhoneNumberToLIDMapping>|null} [phoneNumberToLidMappings] HistorySync phoneNumberToLidMappings
|
|
45453
46535
|
* @property {string|null} [companionMetaNonce] HistorySync companionMetaNonce
|
|
45454
46536
|
* @property {Uint8Array|null} [shareableChatIdentifierEncryptionKey] HistorySync shareableChatIdentifierEncryptionKey
|
|
46537
|
+
* @property {Array.<waproto.IAccount>|null} [accounts] HistorySync accounts
|
|
45455
46538
|
*/
|
|
45456
46539
|
|
|
45457
46540
|
/**
|
|
@@ -45470,6 +46553,7 @@ $root.waproto = (function() {
|
|
|
45470
46553
|
this.pastParticipants = [];
|
|
45471
46554
|
this.callLogRecords = [];
|
|
45472
46555
|
this.phoneNumberToLidMappings = [];
|
|
46556
|
+
this.accounts = [];
|
|
45473
46557
|
if (properties)
|
|
45474
46558
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45475
46559
|
if (properties[keys[i]] != null)
|
|
@@ -45604,6 +46688,14 @@ $root.waproto = (function() {
|
|
|
45604
46688
|
*/
|
|
45605
46689
|
HistorySync.prototype.shareableChatIdentifierEncryptionKey = null;
|
|
45606
46690
|
|
|
46691
|
+
/**
|
|
46692
|
+
* HistorySync accounts.
|
|
46693
|
+
* @member {Array.<waproto.IAccount>} accounts
|
|
46694
|
+
* @memberof waproto.HistorySync
|
|
46695
|
+
* @instance
|
|
46696
|
+
*/
|
|
46697
|
+
HistorySync.prototype.accounts = $util.emptyArray;
|
|
46698
|
+
|
|
45607
46699
|
// OneOf field names bound to virtual getters and setters
|
|
45608
46700
|
var $oneOfFields;
|
|
45609
46701
|
|
|
@@ -45717,6 +46809,9 @@ $root.waproto = (function() {
|
|
|
45717
46809
|
writer.uint32(/* id 16, wireType 2 =*/130).string(message.companionMetaNonce);
|
|
45718
46810
|
if (message.shareableChatIdentifierEncryptionKey != null && Object.hasOwnProperty.call(message, "shareableChatIdentifierEncryptionKey"))
|
|
45719
46811
|
writer.uint32(/* id 17, wireType 2 =*/138).bytes(message.shareableChatIdentifierEncryptionKey);
|
|
46812
|
+
if (message.accounts != null && message.accounts.length)
|
|
46813
|
+
for (var i = 0; i < message.accounts.length; ++i)
|
|
46814
|
+
$root.waproto.Account.encode(message.accounts[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
45720
46815
|
return writer;
|
|
45721
46816
|
};
|
|
45722
46817
|
|
|
@@ -45829,6 +46924,12 @@ $root.waproto = (function() {
|
|
|
45829
46924
|
message.shareableChatIdentifierEncryptionKey = reader.bytes();
|
|
45830
46925
|
break;
|
|
45831
46926
|
}
|
|
46927
|
+
case 18: {
|
|
46928
|
+
if (!(message.accounts && message.accounts.length))
|
|
46929
|
+
message.accounts = [];
|
|
46930
|
+
message.accounts.push($root.waproto.Account.decode(reader, reader.uint32()));
|
|
46931
|
+
break;
|
|
46932
|
+
}
|
|
45832
46933
|
default:
|
|
45833
46934
|
reader.skipType(tag & 7);
|
|
45834
46935
|
break;
|
|
@@ -45990,6 +47091,15 @@ $root.waproto = (function() {
|
|
|
45990
47091
|
if (!(message.shareableChatIdentifierEncryptionKey && typeof message.shareableChatIdentifierEncryptionKey.length === "number" || $util.isString(message.shareableChatIdentifierEncryptionKey)))
|
|
45991
47092
|
return "shareableChatIdentifierEncryptionKey: buffer expected";
|
|
45992
47093
|
}
|
|
47094
|
+
if (message.accounts != null && message.hasOwnProperty("accounts")) {
|
|
47095
|
+
if (!Array.isArray(message.accounts))
|
|
47096
|
+
return "accounts: array expected";
|
|
47097
|
+
for (var i = 0; i < message.accounts.length; ++i) {
|
|
47098
|
+
var error = $root.waproto.Account.verify(message.accounts[i]);
|
|
47099
|
+
if (error)
|
|
47100
|
+
return "accounts." + error;
|
|
47101
|
+
}
|
|
47102
|
+
}
|
|
45993
47103
|
return null;
|
|
45994
47104
|
};
|
|
45995
47105
|
|
|
@@ -46150,6 +47260,16 @@ $root.waproto = (function() {
|
|
|
46150
47260
|
$util.base64.decode(object.shareableChatIdentifierEncryptionKey, message.shareableChatIdentifierEncryptionKey = $util.newBuffer($util.base64.length(object.shareableChatIdentifierEncryptionKey)), 0);
|
|
46151
47261
|
else if (object.shareableChatIdentifierEncryptionKey.length >= 0)
|
|
46152
47262
|
message.shareableChatIdentifierEncryptionKey = object.shareableChatIdentifierEncryptionKey;
|
|
47263
|
+
if (object.accounts) {
|
|
47264
|
+
if (!Array.isArray(object.accounts))
|
|
47265
|
+
throw TypeError(".waproto.HistorySync.accounts: array expected");
|
|
47266
|
+
message.accounts = [];
|
|
47267
|
+
for (var i = 0; i < object.accounts.length; ++i) {
|
|
47268
|
+
if (typeof object.accounts[i] !== "object")
|
|
47269
|
+
throw TypeError(".waproto.HistorySync.accounts: object expected");
|
|
47270
|
+
message.accounts[i] = $root.waproto.Account.fromObject(object.accounts[i]);
|
|
47271
|
+
}
|
|
47272
|
+
}
|
|
46153
47273
|
return message;
|
|
46154
47274
|
};
|
|
46155
47275
|
|
|
@@ -46174,6 +47294,7 @@ $root.waproto = (function() {
|
|
|
46174
47294
|
object.pastParticipants = [];
|
|
46175
47295
|
object.callLogRecords = [];
|
|
46176
47296
|
object.phoneNumberToLidMappings = [];
|
|
47297
|
+
object.accounts = [];
|
|
46177
47298
|
}
|
|
46178
47299
|
if (options.defaults)
|
|
46179
47300
|
object.syncType = options.enums === String ? "INITIAL_BOOTSTRAP" : 0;
|
|
@@ -46254,6 +47375,11 @@ $root.waproto = (function() {
|
|
|
46254
47375
|
if (options.oneofs)
|
|
46255
47376
|
object._shareableChatIdentifierEncryptionKey = "shareableChatIdentifierEncryptionKey";
|
|
46256
47377
|
}
|
|
47378
|
+
if (message.accounts && message.accounts.length) {
|
|
47379
|
+
object.accounts = [];
|
|
47380
|
+
for (var j = 0; j < message.accounts.length; ++j)
|
|
47381
|
+
object.accounts[j] = $root.waproto.Account.toObject(message.accounts[j], options);
|
|
47382
|
+
}
|
|
46257
47383
|
return object;
|
|
46258
47384
|
};
|
|
46259
47385
|
|
|
@@ -48036,6 +49162,7 @@ $root.waproto = (function() {
|
|
|
48036
49162
|
* @property {Array.<waproto.IPoint>|null} [polygonVertices] InteractiveAnnotation polygonVertices
|
|
48037
49163
|
* @property {boolean|null} [shouldSkipConfirmation] InteractiveAnnotation shouldSkipConfirmation
|
|
48038
49164
|
* @property {waproto.IEmbeddedContent|null} [embeddedContent] InteractiveAnnotation embeddedContent
|
|
49165
|
+
* @property {waproto.InteractiveAnnotation.StatusLinkType|null} [statusLinkType] InteractiveAnnotation statusLinkType
|
|
48039
49166
|
* @property {waproto.ILocation|null} [location] InteractiveAnnotation location
|
|
48040
49167
|
* @property {waproto.ContextInfo.IForwardedNewsletterMessageInfo|null} [newsletter] InteractiveAnnotation newsletter
|
|
48041
49168
|
* @property {boolean|null} [embeddedAction] InteractiveAnnotation embeddedAction
|
|
@@ -48082,6 +49209,14 @@ $root.waproto = (function() {
|
|
|
48082
49209
|
*/
|
|
48083
49210
|
InteractiveAnnotation.prototype.embeddedContent = null;
|
|
48084
49211
|
|
|
49212
|
+
/**
|
|
49213
|
+
* InteractiveAnnotation statusLinkType.
|
|
49214
|
+
* @member {waproto.InteractiveAnnotation.StatusLinkType|null|undefined} statusLinkType
|
|
49215
|
+
* @memberof waproto.InteractiveAnnotation
|
|
49216
|
+
* @instance
|
|
49217
|
+
*/
|
|
49218
|
+
InteractiveAnnotation.prototype.statusLinkType = null;
|
|
49219
|
+
|
|
48085
49220
|
/**
|
|
48086
49221
|
* InteractiveAnnotation location.
|
|
48087
49222
|
* @member {waproto.ILocation|null|undefined} location
|
|
@@ -48129,6 +49264,12 @@ $root.waproto = (function() {
|
|
|
48129
49264
|
set: $util.oneOfSetter($oneOfFields)
|
|
48130
49265
|
});
|
|
48131
49266
|
|
|
49267
|
+
// Virtual OneOf for proto3 optional field
|
|
49268
|
+
Object.defineProperty(InteractiveAnnotation.prototype, "_statusLinkType", {
|
|
49269
|
+
get: $util.oneOfGetter($oneOfFields = ["statusLinkType"]),
|
|
49270
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
49271
|
+
});
|
|
49272
|
+
|
|
48132
49273
|
/**
|
|
48133
49274
|
* InteractiveAnnotation action.
|
|
48134
49275
|
* @member {"location"|"newsletter"|"embeddedAction"|"tapAction"|undefined} action
|
|
@@ -48179,6 +49320,8 @@ $root.waproto = (function() {
|
|
|
48179
49320
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.embeddedAction);
|
|
48180
49321
|
if (message.tapAction != null && Object.hasOwnProperty.call(message, "tapAction"))
|
|
48181
49322
|
$root.waproto.TapLinkAction.encode(message.tapAction, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
49323
|
+
if (message.statusLinkType != null && Object.hasOwnProperty.call(message, "statusLinkType"))
|
|
49324
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.statusLinkType);
|
|
48182
49325
|
return writer;
|
|
48183
49326
|
};
|
|
48184
49327
|
|
|
@@ -48227,6 +49370,10 @@ $root.waproto = (function() {
|
|
|
48227
49370
|
message.embeddedContent = $root.waproto.EmbeddedContent.decode(reader, reader.uint32());
|
|
48228
49371
|
break;
|
|
48229
49372
|
}
|
|
49373
|
+
case 8: {
|
|
49374
|
+
message.statusLinkType = reader.int32();
|
|
49375
|
+
break;
|
|
49376
|
+
}
|
|
48230
49377
|
case 2: {
|
|
48231
49378
|
message.location = $root.waproto.Location.decode(reader, reader.uint32());
|
|
48232
49379
|
break;
|
|
@@ -48301,6 +49448,17 @@ $root.waproto = (function() {
|
|
|
48301
49448
|
return "embeddedContent." + error;
|
|
48302
49449
|
}
|
|
48303
49450
|
}
|
|
49451
|
+
if (message.statusLinkType != null && message.hasOwnProperty("statusLinkType")) {
|
|
49452
|
+
properties._statusLinkType = 1;
|
|
49453
|
+
switch (message.statusLinkType) {
|
|
49454
|
+
default:
|
|
49455
|
+
return "statusLinkType: enum value expected";
|
|
49456
|
+
case 1:
|
|
49457
|
+
case 2:
|
|
49458
|
+
case 3:
|
|
49459
|
+
break;
|
|
49460
|
+
}
|
|
49461
|
+
}
|
|
48304
49462
|
if (message.location != null && message.hasOwnProperty("location")) {
|
|
48305
49463
|
properties.action = 1;
|
|
48306
49464
|
{
|
|
@@ -48368,6 +49526,26 @@ $root.waproto = (function() {
|
|
|
48368
49526
|
throw TypeError(".waproto.InteractiveAnnotation.embeddedContent: object expected");
|
|
48369
49527
|
message.embeddedContent = $root.waproto.EmbeddedContent.fromObject(object.embeddedContent);
|
|
48370
49528
|
}
|
|
49529
|
+
switch (object.statusLinkType) {
|
|
49530
|
+
default:
|
|
49531
|
+
if (typeof object.statusLinkType === "number") {
|
|
49532
|
+
message.statusLinkType = object.statusLinkType;
|
|
49533
|
+
break;
|
|
49534
|
+
}
|
|
49535
|
+
break;
|
|
49536
|
+
case "RASTERIZED_LINK_PREVIEW":
|
|
49537
|
+
case 1:
|
|
49538
|
+
message.statusLinkType = 1;
|
|
49539
|
+
break;
|
|
49540
|
+
case "RASTERIZED_LINK_TRUNCATED":
|
|
49541
|
+
case 2:
|
|
49542
|
+
message.statusLinkType = 2;
|
|
49543
|
+
break;
|
|
49544
|
+
case "RASTERIZED_LINK_FULL_URL":
|
|
49545
|
+
case 3:
|
|
49546
|
+
message.statusLinkType = 3;
|
|
49547
|
+
break;
|
|
49548
|
+
}
|
|
48371
49549
|
if (object.location != null) {
|
|
48372
49550
|
if (typeof object.location !== "object")
|
|
48373
49551
|
throw TypeError(".waproto.InteractiveAnnotation.location: object expected");
|
|
@@ -48438,6 +49616,11 @@ $root.waproto = (function() {
|
|
|
48438
49616
|
if (options.oneofs)
|
|
48439
49617
|
object.action = "tapAction";
|
|
48440
49618
|
}
|
|
49619
|
+
if (message.statusLinkType != null && message.hasOwnProperty("statusLinkType")) {
|
|
49620
|
+
object.statusLinkType = options.enums === String ? $root.waproto.InteractiveAnnotation.StatusLinkType[message.statusLinkType] === undefined ? message.statusLinkType : $root.waproto.InteractiveAnnotation.StatusLinkType[message.statusLinkType] : message.statusLinkType;
|
|
49621
|
+
if (options.oneofs)
|
|
49622
|
+
object._statusLinkType = "statusLinkType";
|
|
49623
|
+
}
|
|
48441
49624
|
return object;
|
|
48442
49625
|
};
|
|
48443
49626
|
|
|
@@ -48467,6 +49650,22 @@ $root.waproto = (function() {
|
|
|
48467
49650
|
return typeUrlPrefix + "/waproto.InteractiveAnnotation";
|
|
48468
49651
|
};
|
|
48469
49652
|
|
|
49653
|
+
/**
|
|
49654
|
+
* StatusLinkType enum.
|
|
49655
|
+
* @name waproto.InteractiveAnnotation.StatusLinkType
|
|
49656
|
+
* @enum {number}
|
|
49657
|
+
* @property {number} RASTERIZED_LINK_PREVIEW=1 RASTERIZED_LINK_PREVIEW value
|
|
49658
|
+
* @property {number} RASTERIZED_LINK_TRUNCATED=2 RASTERIZED_LINK_TRUNCATED value
|
|
49659
|
+
* @property {number} RASTERIZED_LINK_FULL_URL=3 RASTERIZED_LINK_FULL_URL value
|
|
49660
|
+
*/
|
|
49661
|
+
InteractiveAnnotation.StatusLinkType = (function() {
|
|
49662
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
49663
|
+
values[valuesById[1] = "RASTERIZED_LINK_PREVIEW"] = 1;
|
|
49664
|
+
values[valuesById[2] = "RASTERIZED_LINK_TRUNCATED"] = 2;
|
|
49665
|
+
values[valuesById[3] = "RASTERIZED_LINK_FULL_URL"] = 3;
|
|
49666
|
+
return values;
|
|
49667
|
+
})();
|
|
49668
|
+
|
|
48470
49669
|
return InteractiveAnnotation;
|
|
48471
49670
|
})();
|
|
48472
49671
|
|
|
@@ -52338,6 +53537,7 @@ $root.waproto = (function() {
|
|
|
52338
53537
|
* @property {waproto.Message.IFutureProofMessage|null} [groupStatusMessage] Message groupStatusMessage
|
|
52339
53538
|
* @property {waproto.IAIRichResponseMessage|null} [richResponseMessage] Message richResponseMessage
|
|
52340
53539
|
* @property {waproto.Message.IStatusNotificationMessage|null} [statusNotificationMessage] Message statusNotificationMessage
|
|
53540
|
+
* @property {waproto.Message.IFutureProofMessage|null} [limitSharingMessage] Message limitSharingMessage
|
|
52341
53541
|
*/
|
|
52342
53542
|
|
|
52343
53543
|
/**
|
|
@@ -53011,6 +54211,14 @@ $root.waproto = (function() {
|
|
|
53011
54211
|
*/
|
|
53012
54212
|
Message.prototype.statusNotificationMessage = null;
|
|
53013
54213
|
|
|
54214
|
+
/**
|
|
54215
|
+
* Message limitSharingMessage.
|
|
54216
|
+
* @member {waproto.Message.IFutureProofMessage|null|undefined} limitSharingMessage
|
|
54217
|
+
* @memberof waproto.Message
|
|
54218
|
+
* @instance
|
|
54219
|
+
*/
|
|
54220
|
+
Message.prototype.limitSharingMessage = null;
|
|
54221
|
+
|
|
53014
54222
|
// OneOf field names bound to virtual getters and setters
|
|
53015
54223
|
var $oneOfFields;
|
|
53016
54224
|
|
|
@@ -53506,6 +54714,12 @@ $root.waproto = (function() {
|
|
|
53506
54714
|
set: $util.oneOfSetter($oneOfFields)
|
|
53507
54715
|
});
|
|
53508
54716
|
|
|
54717
|
+
// Virtual OneOf for proto3 optional field
|
|
54718
|
+
Object.defineProperty(Message.prototype, "_limitSharingMessage", {
|
|
54719
|
+
get: $util.oneOfGetter($oneOfFields = ["limitSharingMessage"]),
|
|
54720
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
54721
|
+
});
|
|
54722
|
+
|
|
53509
54723
|
/**
|
|
53510
54724
|
* Creates a new Message instance using the specified properties.
|
|
53511
54725
|
* @function create
|
|
@@ -53694,6 +54908,8 @@ $root.waproto = (function() {
|
|
|
53694
54908
|
$root.waproto.AIRichResponseMessage.encode(message.richResponseMessage, writer.uint32(/* id 97, wireType 2 =*/778).fork()).ldelim();
|
|
53695
54909
|
if (message.statusNotificationMessage != null && Object.hasOwnProperty.call(message, "statusNotificationMessage"))
|
|
53696
54910
|
$root.waproto.Message.StatusNotificationMessage.encode(message.statusNotificationMessage, writer.uint32(/* id 98, wireType 2 =*/786).fork()).ldelim();
|
|
54911
|
+
if (message.limitSharingMessage != null && Object.hasOwnProperty.call(message, "limitSharingMessage"))
|
|
54912
|
+
$root.waproto.Message.FutureProofMessage.encode(message.limitSharingMessage, writer.uint32(/* id 99, wireType 2 =*/794).fork()).ldelim();
|
|
53697
54913
|
return writer;
|
|
53698
54914
|
};
|
|
53699
54915
|
|
|
@@ -54056,6 +55272,10 @@ $root.waproto = (function() {
|
|
|
54056
55272
|
message.statusNotificationMessage = $root.waproto.Message.StatusNotificationMessage.decode(reader, reader.uint32());
|
|
54057
55273
|
break;
|
|
54058
55274
|
}
|
|
55275
|
+
case 99: {
|
|
55276
|
+
message.limitSharingMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
55277
|
+
break;
|
|
55278
|
+
}
|
|
54059
55279
|
default:
|
|
54060
55280
|
reader.skipType(tag & 7);
|
|
54061
55281
|
break;
|
|
@@ -54745,6 +55965,14 @@ $root.waproto = (function() {
|
|
|
54745
55965
|
return "statusNotificationMessage." + error;
|
|
54746
55966
|
}
|
|
54747
55967
|
}
|
|
55968
|
+
if (message.limitSharingMessage != null && message.hasOwnProperty("limitSharingMessage")) {
|
|
55969
|
+
properties._limitSharingMessage = 1;
|
|
55970
|
+
{
|
|
55971
|
+
var error = $root.waproto.Message.FutureProofMessage.verify(message.limitSharingMessage);
|
|
55972
|
+
if (error)
|
|
55973
|
+
return "limitSharingMessage." + error;
|
|
55974
|
+
}
|
|
55975
|
+
}
|
|
54748
55976
|
return null;
|
|
54749
55977
|
};
|
|
54750
55978
|
|
|
@@ -55167,6 +56395,11 @@ $root.waproto = (function() {
|
|
|
55167
56395
|
throw TypeError(".waproto.Message.statusNotificationMessage: object expected");
|
|
55168
56396
|
message.statusNotificationMessage = $root.waproto.Message.StatusNotificationMessage.fromObject(object.statusNotificationMessage);
|
|
55169
56397
|
}
|
|
56398
|
+
if (object.limitSharingMessage != null) {
|
|
56399
|
+
if (typeof object.limitSharingMessage !== "object")
|
|
56400
|
+
throw TypeError(".waproto.Message.limitSharingMessage: object expected");
|
|
56401
|
+
message.limitSharingMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.limitSharingMessage);
|
|
56402
|
+
}
|
|
55170
56403
|
return message;
|
|
55171
56404
|
};
|
|
55172
56405
|
|
|
@@ -55593,6 +56826,11 @@ $root.waproto = (function() {
|
|
|
55593
56826
|
if (options.oneofs)
|
|
55594
56827
|
object._statusNotificationMessage = "statusNotificationMessage";
|
|
55595
56828
|
}
|
|
56829
|
+
if (message.limitSharingMessage != null && message.hasOwnProperty("limitSharingMessage")) {
|
|
56830
|
+
object.limitSharingMessage = $root.waproto.Message.FutureProofMessage.toObject(message.limitSharingMessage, options);
|
|
56831
|
+
if (options.oneofs)
|
|
56832
|
+
object._limitSharingMessage = "limitSharingMessage";
|
|
56833
|
+
}
|
|
55596
56834
|
return object;
|
|
55597
56835
|
};
|
|
55598
56836
|
|
|
@@ -67251,6 +68489,7 @@ $root.waproto = (function() {
|
|
|
67251
68489
|
* @property {number|null} [videoHeight] ExtendedTextMessage videoHeight
|
|
67252
68490
|
* @property {number|null} [videoWidth] ExtendedTextMessage videoWidth
|
|
67253
68491
|
* @property {waproto.Message.IMMSThumbnailMetadata|null} [faviconMMSMetadata] ExtendedTextMessage faviconMMSMetadata
|
|
68492
|
+
* @property {waproto.Message.ExtendedTextMessage.ILinkPreviewMetadata|null} [linkPreviewMetadata] ExtendedTextMessage linkPreviewMetadata
|
|
67254
68493
|
*/
|
|
67255
68494
|
|
|
67256
68495
|
/**
|
|
@@ -67476,6 +68715,14 @@ $root.waproto = (function() {
|
|
|
67476
68715
|
*/
|
|
67477
68716
|
ExtendedTextMessage.prototype.faviconMMSMetadata = null;
|
|
67478
68717
|
|
|
68718
|
+
/**
|
|
68719
|
+
* ExtendedTextMessage linkPreviewMetadata.
|
|
68720
|
+
* @member {waproto.Message.ExtendedTextMessage.ILinkPreviewMetadata|null|undefined} linkPreviewMetadata
|
|
68721
|
+
* @memberof waproto.Message.ExtendedTextMessage
|
|
68722
|
+
* @instance
|
|
68723
|
+
*/
|
|
68724
|
+
ExtendedTextMessage.prototype.linkPreviewMetadata = null;
|
|
68725
|
+
|
|
67479
68726
|
// OneOf field names bound to virtual getters and setters
|
|
67480
68727
|
var $oneOfFields;
|
|
67481
68728
|
|
|
@@ -67635,6 +68882,12 @@ $root.waproto = (function() {
|
|
|
67635
68882
|
set: $util.oneOfSetter($oneOfFields)
|
|
67636
68883
|
});
|
|
67637
68884
|
|
|
68885
|
+
// Virtual OneOf for proto3 optional field
|
|
68886
|
+
Object.defineProperty(ExtendedTextMessage.prototype, "_linkPreviewMetadata", {
|
|
68887
|
+
get: $util.oneOfGetter($oneOfFields = ["linkPreviewMetadata"]),
|
|
68888
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
68889
|
+
});
|
|
68890
|
+
|
|
67638
68891
|
/**
|
|
67639
68892
|
* Creates a new ExtendedTextMessage instance using the specified properties.
|
|
67640
68893
|
* @function create
|
|
@@ -67711,6 +68964,8 @@ $root.waproto = (function() {
|
|
|
67711
68964
|
writer.uint32(/* id 32, wireType 0 =*/256).uint32(message.videoWidth);
|
|
67712
68965
|
if (message.faviconMMSMetadata != null && Object.hasOwnProperty.call(message, "faviconMMSMetadata"))
|
|
67713
68966
|
$root.waproto.Message.MMSThumbnailMetadata.encode(message.faviconMMSMetadata, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim();
|
|
68967
|
+
if (message.linkPreviewMetadata != null && Object.hasOwnProperty.call(message, "linkPreviewMetadata"))
|
|
68968
|
+
$root.waproto.Message.ExtendedTextMessage.LinkPreviewMetadata.encode(message.linkPreviewMetadata, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
|
|
67714
68969
|
return writer;
|
|
67715
68970
|
};
|
|
67716
68971
|
|
|
@@ -67849,6 +69104,10 @@ $root.waproto = (function() {
|
|
|
67849
69104
|
message.faviconMMSMetadata = $root.waproto.Message.MMSThumbnailMetadata.decode(reader, reader.uint32());
|
|
67850
69105
|
break;
|
|
67851
69106
|
}
|
|
69107
|
+
case 34: {
|
|
69108
|
+
message.linkPreviewMetadata = $root.waproto.Message.ExtendedTextMessage.LinkPreviewMetadata.decode(reader, reader.uint32());
|
|
69109
|
+
break;
|
|
69110
|
+
}
|
|
67852
69111
|
default:
|
|
67853
69112
|
reader.skipType(tag & 7);
|
|
67854
69113
|
break;
|
|
@@ -68055,6 +69314,14 @@ $root.waproto = (function() {
|
|
|
68055
69314
|
return "faviconMMSMetadata." + error;
|
|
68056
69315
|
}
|
|
68057
69316
|
}
|
|
69317
|
+
if (message.linkPreviewMetadata != null && message.hasOwnProperty("linkPreviewMetadata")) {
|
|
69318
|
+
properties._linkPreviewMetadata = 1;
|
|
69319
|
+
{
|
|
69320
|
+
var error = $root.waproto.Message.ExtendedTextMessage.LinkPreviewMetadata.verify(message.linkPreviewMetadata);
|
|
69321
|
+
if (error)
|
|
69322
|
+
return "linkPreviewMetadata." + error;
|
|
69323
|
+
}
|
|
69324
|
+
}
|
|
68058
69325
|
return null;
|
|
68059
69326
|
};
|
|
68060
69327
|
|
|
@@ -68262,6 +69529,11 @@ $root.waproto = (function() {
|
|
|
68262
69529
|
throw TypeError(".waproto.Message.ExtendedTextMessage.faviconMMSMetadata: object expected");
|
|
68263
69530
|
message.faviconMMSMetadata = $root.waproto.Message.MMSThumbnailMetadata.fromObject(object.faviconMMSMetadata);
|
|
68264
69531
|
}
|
|
69532
|
+
if (object.linkPreviewMetadata != null) {
|
|
69533
|
+
if (typeof object.linkPreviewMetadata !== "object")
|
|
69534
|
+
throw TypeError(".waproto.Message.ExtendedTextMessage.linkPreviewMetadata: object expected");
|
|
69535
|
+
message.linkPreviewMetadata = $root.waproto.Message.ExtendedTextMessage.LinkPreviewMetadata.fromObject(object.linkPreviewMetadata);
|
|
69536
|
+
}
|
|
68265
69537
|
return message;
|
|
68266
69538
|
};
|
|
68267
69539
|
|
|
@@ -68411,6 +69683,11 @@ $root.waproto = (function() {
|
|
|
68411
69683
|
if (options.oneofs)
|
|
68412
69684
|
object._faviconMMSMetadata = "faviconMMSMetadata";
|
|
68413
69685
|
}
|
|
69686
|
+
if (message.linkPreviewMetadata != null && message.hasOwnProperty("linkPreviewMetadata")) {
|
|
69687
|
+
object.linkPreviewMetadata = $root.waproto.Message.ExtendedTextMessage.LinkPreviewMetadata.toObject(message.linkPreviewMetadata, options);
|
|
69688
|
+
if (options.oneofs)
|
|
69689
|
+
object._linkPreviewMetadata = "linkPreviewMetadata";
|
|
69690
|
+
}
|
|
68414
69691
|
return object;
|
|
68415
69692
|
};
|
|
68416
69693
|
|
|
@@ -68484,6 +69761,228 @@ $root.waproto = (function() {
|
|
|
68484
69761
|
return values;
|
|
68485
69762
|
})();
|
|
68486
69763
|
|
|
69764
|
+
ExtendedTextMessage.LinkPreviewMetadata = (function() {
|
|
69765
|
+
|
|
69766
|
+
/**
|
|
69767
|
+
* Properties of a LinkPreviewMetadata.
|
|
69768
|
+
* @memberof waproto.Message.ExtendedTextMessage
|
|
69769
|
+
* @interface ILinkPreviewMetadata
|
|
69770
|
+
* @property {waproto.Message.IPaymentLinkMetadata|null} [paymentLinkMetadata] LinkPreviewMetadata paymentLinkMetadata
|
|
69771
|
+
*/
|
|
69772
|
+
|
|
69773
|
+
/**
|
|
69774
|
+
* Constructs a new LinkPreviewMetadata.
|
|
69775
|
+
* @memberof waproto.Message.ExtendedTextMessage
|
|
69776
|
+
* @classdesc Represents a LinkPreviewMetadata.
|
|
69777
|
+
* @implements ILinkPreviewMetadata
|
|
69778
|
+
* @constructor
|
|
69779
|
+
* @param {waproto.Message.ExtendedTextMessage.ILinkPreviewMetadata=} [properties] Properties to set
|
|
69780
|
+
*/
|
|
69781
|
+
function LinkPreviewMetadata(properties) {
|
|
69782
|
+
if (properties)
|
|
69783
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
69784
|
+
if (properties[keys[i]] != null)
|
|
69785
|
+
this[keys[i]] = properties[keys[i]];
|
|
69786
|
+
}
|
|
69787
|
+
|
|
69788
|
+
/**
|
|
69789
|
+
* LinkPreviewMetadata paymentLinkMetadata.
|
|
69790
|
+
* @member {waproto.Message.IPaymentLinkMetadata|null|undefined} paymentLinkMetadata
|
|
69791
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69792
|
+
* @instance
|
|
69793
|
+
*/
|
|
69794
|
+
LinkPreviewMetadata.prototype.paymentLinkMetadata = null;
|
|
69795
|
+
|
|
69796
|
+
// OneOf field names bound to virtual getters and setters
|
|
69797
|
+
var $oneOfFields;
|
|
69798
|
+
|
|
69799
|
+
// Virtual OneOf for proto3 optional field
|
|
69800
|
+
Object.defineProperty(LinkPreviewMetadata.prototype, "_paymentLinkMetadata", {
|
|
69801
|
+
get: $util.oneOfGetter($oneOfFields = ["paymentLinkMetadata"]),
|
|
69802
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
69803
|
+
});
|
|
69804
|
+
|
|
69805
|
+
/**
|
|
69806
|
+
* Creates a new LinkPreviewMetadata instance using the specified properties.
|
|
69807
|
+
* @function create
|
|
69808
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69809
|
+
* @static
|
|
69810
|
+
* @param {waproto.Message.ExtendedTextMessage.ILinkPreviewMetadata=} [properties] Properties to set
|
|
69811
|
+
* @returns {waproto.Message.ExtendedTextMessage.LinkPreviewMetadata} LinkPreviewMetadata instance
|
|
69812
|
+
*/
|
|
69813
|
+
LinkPreviewMetadata.create = function create(properties) {
|
|
69814
|
+
return new LinkPreviewMetadata(properties);
|
|
69815
|
+
};
|
|
69816
|
+
|
|
69817
|
+
/**
|
|
69818
|
+
* Encodes the specified LinkPreviewMetadata message. Does not implicitly {@link waproto.Message.ExtendedTextMessage.LinkPreviewMetadata.verify|verify} messages.
|
|
69819
|
+
* @function encode
|
|
69820
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69821
|
+
* @static
|
|
69822
|
+
* @param {waproto.Message.ExtendedTextMessage.ILinkPreviewMetadata} message LinkPreviewMetadata message or plain object to encode
|
|
69823
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
69824
|
+
* @returns {$protobuf.Writer} Writer
|
|
69825
|
+
*/
|
|
69826
|
+
LinkPreviewMetadata.encode = function encode(message, writer) {
|
|
69827
|
+
if (!writer)
|
|
69828
|
+
writer = $Writer.create();
|
|
69829
|
+
if (message.paymentLinkMetadata != null && Object.hasOwnProperty.call(message, "paymentLinkMetadata"))
|
|
69830
|
+
$root.waproto.Message.PaymentLinkMetadata.encode(message.paymentLinkMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
69831
|
+
return writer;
|
|
69832
|
+
};
|
|
69833
|
+
|
|
69834
|
+
/**
|
|
69835
|
+
* Encodes the specified LinkPreviewMetadata message, length delimited. Does not implicitly {@link waproto.Message.ExtendedTextMessage.LinkPreviewMetadata.verify|verify} messages.
|
|
69836
|
+
* @function encodeDelimited
|
|
69837
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69838
|
+
* @static
|
|
69839
|
+
* @param {waproto.Message.ExtendedTextMessage.ILinkPreviewMetadata} message LinkPreviewMetadata message or plain object to encode
|
|
69840
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
69841
|
+
* @returns {$protobuf.Writer} Writer
|
|
69842
|
+
*/
|
|
69843
|
+
LinkPreviewMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
69844
|
+
return this.encode(message, writer).ldelim();
|
|
69845
|
+
};
|
|
69846
|
+
|
|
69847
|
+
/**
|
|
69848
|
+
* Decodes a LinkPreviewMetadata message from the specified reader or buffer.
|
|
69849
|
+
* @function decode
|
|
69850
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69851
|
+
* @static
|
|
69852
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
69853
|
+
* @param {number} [length] Message length if known beforehand
|
|
69854
|
+
* @returns {waproto.Message.ExtendedTextMessage.LinkPreviewMetadata} LinkPreviewMetadata
|
|
69855
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69856
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69857
|
+
*/
|
|
69858
|
+
LinkPreviewMetadata.decode = function decode(reader, length) {
|
|
69859
|
+
if (!(reader instanceof $Reader))
|
|
69860
|
+
reader = $Reader.create(reader);
|
|
69861
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.ExtendedTextMessage.LinkPreviewMetadata();
|
|
69862
|
+
while (reader.pos < end) {
|
|
69863
|
+
var tag = reader.uint32();
|
|
69864
|
+
switch (tag >>> 3) {
|
|
69865
|
+
case 1: {
|
|
69866
|
+
message.paymentLinkMetadata = $root.waproto.Message.PaymentLinkMetadata.decode(reader, reader.uint32());
|
|
69867
|
+
break;
|
|
69868
|
+
}
|
|
69869
|
+
default:
|
|
69870
|
+
reader.skipType(tag & 7);
|
|
69871
|
+
break;
|
|
69872
|
+
}
|
|
69873
|
+
}
|
|
69874
|
+
return message;
|
|
69875
|
+
};
|
|
69876
|
+
|
|
69877
|
+
/**
|
|
69878
|
+
* Decodes a LinkPreviewMetadata message from the specified reader or buffer, length delimited.
|
|
69879
|
+
* @function decodeDelimited
|
|
69880
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69881
|
+
* @static
|
|
69882
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
69883
|
+
* @returns {waproto.Message.ExtendedTextMessage.LinkPreviewMetadata} LinkPreviewMetadata
|
|
69884
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69885
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69886
|
+
*/
|
|
69887
|
+
LinkPreviewMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
69888
|
+
if (!(reader instanceof $Reader))
|
|
69889
|
+
reader = new $Reader(reader);
|
|
69890
|
+
return this.decode(reader, reader.uint32());
|
|
69891
|
+
};
|
|
69892
|
+
|
|
69893
|
+
/**
|
|
69894
|
+
* Verifies a LinkPreviewMetadata message.
|
|
69895
|
+
* @function verify
|
|
69896
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69897
|
+
* @static
|
|
69898
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
69899
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
69900
|
+
*/
|
|
69901
|
+
LinkPreviewMetadata.verify = function verify(message) {
|
|
69902
|
+
if (typeof message !== "object" || message === null)
|
|
69903
|
+
return "object expected";
|
|
69904
|
+
var properties = {};
|
|
69905
|
+
if (message.paymentLinkMetadata != null && message.hasOwnProperty("paymentLinkMetadata")) {
|
|
69906
|
+
properties._paymentLinkMetadata = 1;
|
|
69907
|
+
{
|
|
69908
|
+
var error = $root.waproto.Message.PaymentLinkMetadata.verify(message.paymentLinkMetadata);
|
|
69909
|
+
if (error)
|
|
69910
|
+
return "paymentLinkMetadata." + error;
|
|
69911
|
+
}
|
|
69912
|
+
}
|
|
69913
|
+
return null;
|
|
69914
|
+
};
|
|
69915
|
+
|
|
69916
|
+
/**
|
|
69917
|
+
* Creates a LinkPreviewMetadata message from a plain object. Also converts values to their respective internal types.
|
|
69918
|
+
* @function fromObject
|
|
69919
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69920
|
+
* @static
|
|
69921
|
+
* @param {Object.<string,*>} object Plain object
|
|
69922
|
+
* @returns {waproto.Message.ExtendedTextMessage.LinkPreviewMetadata} LinkPreviewMetadata
|
|
69923
|
+
*/
|
|
69924
|
+
LinkPreviewMetadata.fromObject = function fromObject(object) {
|
|
69925
|
+
if (object instanceof $root.waproto.Message.ExtendedTextMessage.LinkPreviewMetadata)
|
|
69926
|
+
return object;
|
|
69927
|
+
var message = new $root.waproto.Message.ExtendedTextMessage.LinkPreviewMetadata();
|
|
69928
|
+
if (object.paymentLinkMetadata != null) {
|
|
69929
|
+
if (typeof object.paymentLinkMetadata !== "object")
|
|
69930
|
+
throw TypeError(".waproto.Message.ExtendedTextMessage.LinkPreviewMetadata.paymentLinkMetadata: object expected");
|
|
69931
|
+
message.paymentLinkMetadata = $root.waproto.Message.PaymentLinkMetadata.fromObject(object.paymentLinkMetadata);
|
|
69932
|
+
}
|
|
69933
|
+
return message;
|
|
69934
|
+
};
|
|
69935
|
+
|
|
69936
|
+
/**
|
|
69937
|
+
* Creates a plain object from a LinkPreviewMetadata message. Also converts values to other types if specified.
|
|
69938
|
+
* @function toObject
|
|
69939
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69940
|
+
* @static
|
|
69941
|
+
* @param {waproto.Message.ExtendedTextMessage.LinkPreviewMetadata} message LinkPreviewMetadata
|
|
69942
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
69943
|
+
* @returns {Object.<string,*>} Plain object
|
|
69944
|
+
*/
|
|
69945
|
+
LinkPreviewMetadata.toObject = function toObject(message, options) {
|
|
69946
|
+
if (!options)
|
|
69947
|
+
options = {};
|
|
69948
|
+
var object = {};
|
|
69949
|
+
if (message.paymentLinkMetadata != null && message.hasOwnProperty("paymentLinkMetadata")) {
|
|
69950
|
+
object.paymentLinkMetadata = $root.waproto.Message.PaymentLinkMetadata.toObject(message.paymentLinkMetadata, options);
|
|
69951
|
+
if (options.oneofs)
|
|
69952
|
+
object._paymentLinkMetadata = "paymentLinkMetadata";
|
|
69953
|
+
}
|
|
69954
|
+
return object;
|
|
69955
|
+
};
|
|
69956
|
+
|
|
69957
|
+
/**
|
|
69958
|
+
* Converts this LinkPreviewMetadata to JSON.
|
|
69959
|
+
* @function toJSON
|
|
69960
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69961
|
+
* @instance
|
|
69962
|
+
* @returns {Object.<string,*>} JSON object
|
|
69963
|
+
*/
|
|
69964
|
+
LinkPreviewMetadata.prototype.toJSON = function toJSON() {
|
|
69965
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
69966
|
+
};
|
|
69967
|
+
|
|
69968
|
+
/**
|
|
69969
|
+
* Gets the default type url for LinkPreviewMetadata
|
|
69970
|
+
* @function getTypeUrl
|
|
69971
|
+
* @memberof waproto.Message.ExtendedTextMessage.LinkPreviewMetadata
|
|
69972
|
+
* @static
|
|
69973
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
69974
|
+
* @returns {string} The default type url
|
|
69975
|
+
*/
|
|
69976
|
+
LinkPreviewMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
69977
|
+
if (typeUrlPrefix === undefined) {
|
|
69978
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
69979
|
+
}
|
|
69980
|
+
return typeUrlPrefix + "/waproto.Message.ExtendedTextMessage.LinkPreviewMetadata";
|
|
69981
|
+
};
|
|
69982
|
+
|
|
69983
|
+
return LinkPreviewMetadata;
|
|
69984
|
+
})();
|
|
69985
|
+
|
|
68487
69986
|
/**
|
|
68488
69987
|
* PreviewType enum.
|
|
68489
69988
|
* @name waproto.Message.ExtendedTextMessage.PreviewType
|
|
@@ -84560,6 +86059,706 @@ $root.waproto = (function() {
|
|
|
84560
86059
|
return PaymentInviteMessage;
|
|
84561
86060
|
})();
|
|
84562
86061
|
|
|
86062
|
+
Message.PaymentLinkMetadata = (function() {
|
|
86063
|
+
|
|
86064
|
+
/**
|
|
86065
|
+
* Properties of a PaymentLinkMetadata.
|
|
86066
|
+
* @memberof waproto.Message
|
|
86067
|
+
* @interface IPaymentLinkMetadata
|
|
86068
|
+
* @property {waproto.Message.PaymentLinkMetadata.IPaymentLinkButton|null} [button] PaymentLinkMetadata button
|
|
86069
|
+
* @property {waproto.Message.PaymentLinkMetadata.IPaymentLinkHeader|null} [header] PaymentLinkMetadata header
|
|
86070
|
+
*/
|
|
86071
|
+
|
|
86072
|
+
/**
|
|
86073
|
+
* Constructs a new PaymentLinkMetadata.
|
|
86074
|
+
* @memberof waproto.Message
|
|
86075
|
+
* @classdesc Represents a PaymentLinkMetadata.
|
|
86076
|
+
* @implements IPaymentLinkMetadata
|
|
86077
|
+
* @constructor
|
|
86078
|
+
* @param {waproto.Message.IPaymentLinkMetadata=} [properties] Properties to set
|
|
86079
|
+
*/
|
|
86080
|
+
function PaymentLinkMetadata(properties) {
|
|
86081
|
+
if (properties)
|
|
86082
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86083
|
+
if (properties[keys[i]] != null)
|
|
86084
|
+
this[keys[i]] = properties[keys[i]];
|
|
86085
|
+
}
|
|
86086
|
+
|
|
86087
|
+
/**
|
|
86088
|
+
* PaymentLinkMetadata button.
|
|
86089
|
+
* @member {waproto.Message.PaymentLinkMetadata.IPaymentLinkButton|null|undefined} button
|
|
86090
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86091
|
+
* @instance
|
|
86092
|
+
*/
|
|
86093
|
+
PaymentLinkMetadata.prototype.button = null;
|
|
86094
|
+
|
|
86095
|
+
/**
|
|
86096
|
+
* PaymentLinkMetadata header.
|
|
86097
|
+
* @member {waproto.Message.PaymentLinkMetadata.IPaymentLinkHeader|null|undefined} header
|
|
86098
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86099
|
+
* @instance
|
|
86100
|
+
*/
|
|
86101
|
+
PaymentLinkMetadata.prototype.header = null;
|
|
86102
|
+
|
|
86103
|
+
// OneOf field names bound to virtual getters and setters
|
|
86104
|
+
var $oneOfFields;
|
|
86105
|
+
|
|
86106
|
+
// Virtual OneOf for proto3 optional field
|
|
86107
|
+
Object.defineProperty(PaymentLinkMetadata.prototype, "_button", {
|
|
86108
|
+
get: $util.oneOfGetter($oneOfFields = ["button"]),
|
|
86109
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
86110
|
+
});
|
|
86111
|
+
|
|
86112
|
+
// Virtual OneOf for proto3 optional field
|
|
86113
|
+
Object.defineProperty(PaymentLinkMetadata.prototype, "_header", {
|
|
86114
|
+
get: $util.oneOfGetter($oneOfFields = ["header"]),
|
|
86115
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
86116
|
+
});
|
|
86117
|
+
|
|
86118
|
+
/**
|
|
86119
|
+
* Creates a new PaymentLinkMetadata instance using the specified properties.
|
|
86120
|
+
* @function create
|
|
86121
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86122
|
+
* @static
|
|
86123
|
+
* @param {waproto.Message.IPaymentLinkMetadata=} [properties] Properties to set
|
|
86124
|
+
* @returns {waproto.Message.PaymentLinkMetadata} PaymentLinkMetadata instance
|
|
86125
|
+
*/
|
|
86126
|
+
PaymentLinkMetadata.create = function create(properties) {
|
|
86127
|
+
return new PaymentLinkMetadata(properties);
|
|
86128
|
+
};
|
|
86129
|
+
|
|
86130
|
+
/**
|
|
86131
|
+
* Encodes the specified PaymentLinkMetadata message. Does not implicitly {@link waproto.Message.PaymentLinkMetadata.verify|verify} messages.
|
|
86132
|
+
* @function encode
|
|
86133
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86134
|
+
* @static
|
|
86135
|
+
* @param {waproto.Message.IPaymentLinkMetadata} message PaymentLinkMetadata message or plain object to encode
|
|
86136
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86137
|
+
* @returns {$protobuf.Writer} Writer
|
|
86138
|
+
*/
|
|
86139
|
+
PaymentLinkMetadata.encode = function encode(message, writer) {
|
|
86140
|
+
if (!writer)
|
|
86141
|
+
writer = $Writer.create();
|
|
86142
|
+
if (message.button != null && Object.hasOwnProperty.call(message, "button"))
|
|
86143
|
+
$root.waproto.Message.PaymentLinkMetadata.PaymentLinkButton.encode(message.button, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
86144
|
+
if (message.header != null && Object.hasOwnProperty.call(message, "header"))
|
|
86145
|
+
$root.waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.encode(message.header, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
86146
|
+
return writer;
|
|
86147
|
+
};
|
|
86148
|
+
|
|
86149
|
+
/**
|
|
86150
|
+
* Encodes the specified PaymentLinkMetadata message, length delimited. Does not implicitly {@link waproto.Message.PaymentLinkMetadata.verify|verify} messages.
|
|
86151
|
+
* @function encodeDelimited
|
|
86152
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86153
|
+
* @static
|
|
86154
|
+
* @param {waproto.Message.IPaymentLinkMetadata} message PaymentLinkMetadata message or plain object to encode
|
|
86155
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86156
|
+
* @returns {$protobuf.Writer} Writer
|
|
86157
|
+
*/
|
|
86158
|
+
PaymentLinkMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86159
|
+
return this.encode(message, writer).ldelim();
|
|
86160
|
+
};
|
|
86161
|
+
|
|
86162
|
+
/**
|
|
86163
|
+
* Decodes a PaymentLinkMetadata message from the specified reader or buffer.
|
|
86164
|
+
* @function decode
|
|
86165
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86166
|
+
* @static
|
|
86167
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86168
|
+
* @param {number} [length] Message length if known beforehand
|
|
86169
|
+
* @returns {waproto.Message.PaymentLinkMetadata} PaymentLinkMetadata
|
|
86170
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86171
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86172
|
+
*/
|
|
86173
|
+
PaymentLinkMetadata.decode = function decode(reader, length) {
|
|
86174
|
+
if (!(reader instanceof $Reader))
|
|
86175
|
+
reader = $Reader.create(reader);
|
|
86176
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.PaymentLinkMetadata();
|
|
86177
|
+
while (reader.pos < end) {
|
|
86178
|
+
var tag = reader.uint32();
|
|
86179
|
+
switch (tag >>> 3) {
|
|
86180
|
+
case 1: {
|
|
86181
|
+
message.button = $root.waproto.Message.PaymentLinkMetadata.PaymentLinkButton.decode(reader, reader.uint32());
|
|
86182
|
+
break;
|
|
86183
|
+
}
|
|
86184
|
+
case 2: {
|
|
86185
|
+
message.header = $root.waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.decode(reader, reader.uint32());
|
|
86186
|
+
break;
|
|
86187
|
+
}
|
|
86188
|
+
default:
|
|
86189
|
+
reader.skipType(tag & 7);
|
|
86190
|
+
break;
|
|
86191
|
+
}
|
|
86192
|
+
}
|
|
86193
|
+
return message;
|
|
86194
|
+
};
|
|
86195
|
+
|
|
86196
|
+
/**
|
|
86197
|
+
* Decodes a PaymentLinkMetadata message from the specified reader or buffer, length delimited.
|
|
86198
|
+
* @function decodeDelimited
|
|
86199
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86200
|
+
* @static
|
|
86201
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86202
|
+
* @returns {waproto.Message.PaymentLinkMetadata} PaymentLinkMetadata
|
|
86203
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86204
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86205
|
+
*/
|
|
86206
|
+
PaymentLinkMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
86207
|
+
if (!(reader instanceof $Reader))
|
|
86208
|
+
reader = new $Reader(reader);
|
|
86209
|
+
return this.decode(reader, reader.uint32());
|
|
86210
|
+
};
|
|
86211
|
+
|
|
86212
|
+
/**
|
|
86213
|
+
* Verifies a PaymentLinkMetadata message.
|
|
86214
|
+
* @function verify
|
|
86215
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86216
|
+
* @static
|
|
86217
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
86218
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86219
|
+
*/
|
|
86220
|
+
PaymentLinkMetadata.verify = function verify(message) {
|
|
86221
|
+
if (typeof message !== "object" || message === null)
|
|
86222
|
+
return "object expected";
|
|
86223
|
+
var properties = {};
|
|
86224
|
+
if (message.button != null && message.hasOwnProperty("button")) {
|
|
86225
|
+
properties._button = 1;
|
|
86226
|
+
{
|
|
86227
|
+
var error = $root.waproto.Message.PaymentLinkMetadata.PaymentLinkButton.verify(message.button);
|
|
86228
|
+
if (error)
|
|
86229
|
+
return "button." + error;
|
|
86230
|
+
}
|
|
86231
|
+
}
|
|
86232
|
+
if (message.header != null && message.hasOwnProperty("header")) {
|
|
86233
|
+
properties._header = 1;
|
|
86234
|
+
{
|
|
86235
|
+
var error = $root.waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.verify(message.header);
|
|
86236
|
+
if (error)
|
|
86237
|
+
return "header." + error;
|
|
86238
|
+
}
|
|
86239
|
+
}
|
|
86240
|
+
return null;
|
|
86241
|
+
};
|
|
86242
|
+
|
|
86243
|
+
/**
|
|
86244
|
+
* Creates a PaymentLinkMetadata message from a plain object. Also converts values to their respective internal types.
|
|
86245
|
+
* @function fromObject
|
|
86246
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86247
|
+
* @static
|
|
86248
|
+
* @param {Object.<string,*>} object Plain object
|
|
86249
|
+
* @returns {waproto.Message.PaymentLinkMetadata} PaymentLinkMetadata
|
|
86250
|
+
*/
|
|
86251
|
+
PaymentLinkMetadata.fromObject = function fromObject(object) {
|
|
86252
|
+
if (object instanceof $root.waproto.Message.PaymentLinkMetadata)
|
|
86253
|
+
return object;
|
|
86254
|
+
var message = new $root.waproto.Message.PaymentLinkMetadata();
|
|
86255
|
+
if (object.button != null) {
|
|
86256
|
+
if (typeof object.button !== "object")
|
|
86257
|
+
throw TypeError(".waproto.Message.PaymentLinkMetadata.button: object expected");
|
|
86258
|
+
message.button = $root.waproto.Message.PaymentLinkMetadata.PaymentLinkButton.fromObject(object.button);
|
|
86259
|
+
}
|
|
86260
|
+
if (object.header != null) {
|
|
86261
|
+
if (typeof object.header !== "object")
|
|
86262
|
+
throw TypeError(".waproto.Message.PaymentLinkMetadata.header: object expected");
|
|
86263
|
+
message.header = $root.waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.fromObject(object.header);
|
|
86264
|
+
}
|
|
86265
|
+
return message;
|
|
86266
|
+
};
|
|
86267
|
+
|
|
86268
|
+
/**
|
|
86269
|
+
* Creates a plain object from a PaymentLinkMetadata message. Also converts values to other types if specified.
|
|
86270
|
+
* @function toObject
|
|
86271
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86272
|
+
* @static
|
|
86273
|
+
* @param {waproto.Message.PaymentLinkMetadata} message PaymentLinkMetadata
|
|
86274
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86275
|
+
* @returns {Object.<string,*>} Plain object
|
|
86276
|
+
*/
|
|
86277
|
+
PaymentLinkMetadata.toObject = function toObject(message, options) {
|
|
86278
|
+
if (!options)
|
|
86279
|
+
options = {};
|
|
86280
|
+
var object = {};
|
|
86281
|
+
if (message.button != null && message.hasOwnProperty("button")) {
|
|
86282
|
+
object.button = $root.waproto.Message.PaymentLinkMetadata.PaymentLinkButton.toObject(message.button, options);
|
|
86283
|
+
if (options.oneofs)
|
|
86284
|
+
object._button = "button";
|
|
86285
|
+
}
|
|
86286
|
+
if (message.header != null && message.hasOwnProperty("header")) {
|
|
86287
|
+
object.header = $root.waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.toObject(message.header, options);
|
|
86288
|
+
if (options.oneofs)
|
|
86289
|
+
object._header = "header";
|
|
86290
|
+
}
|
|
86291
|
+
return object;
|
|
86292
|
+
};
|
|
86293
|
+
|
|
86294
|
+
/**
|
|
86295
|
+
* Converts this PaymentLinkMetadata to JSON.
|
|
86296
|
+
* @function toJSON
|
|
86297
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86298
|
+
* @instance
|
|
86299
|
+
* @returns {Object.<string,*>} JSON object
|
|
86300
|
+
*/
|
|
86301
|
+
PaymentLinkMetadata.prototype.toJSON = function toJSON() {
|
|
86302
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86303
|
+
};
|
|
86304
|
+
|
|
86305
|
+
/**
|
|
86306
|
+
* Gets the default type url for PaymentLinkMetadata
|
|
86307
|
+
* @function getTypeUrl
|
|
86308
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86309
|
+
* @static
|
|
86310
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
86311
|
+
* @returns {string} The default type url
|
|
86312
|
+
*/
|
|
86313
|
+
PaymentLinkMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
86314
|
+
if (typeUrlPrefix === undefined) {
|
|
86315
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
86316
|
+
}
|
|
86317
|
+
return typeUrlPrefix + "/waproto.Message.PaymentLinkMetadata";
|
|
86318
|
+
};
|
|
86319
|
+
|
|
86320
|
+
PaymentLinkMetadata.PaymentLinkButton = (function() {
|
|
86321
|
+
|
|
86322
|
+
/**
|
|
86323
|
+
* Properties of a PaymentLinkButton.
|
|
86324
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86325
|
+
* @interface IPaymentLinkButton
|
|
86326
|
+
* @property {string} displayText PaymentLinkButton displayText
|
|
86327
|
+
*/
|
|
86328
|
+
|
|
86329
|
+
/**
|
|
86330
|
+
* Constructs a new PaymentLinkButton.
|
|
86331
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86332
|
+
* @classdesc Represents a PaymentLinkButton.
|
|
86333
|
+
* @implements IPaymentLinkButton
|
|
86334
|
+
* @constructor
|
|
86335
|
+
* @param {waproto.Message.PaymentLinkMetadata.IPaymentLinkButton=} [properties] Properties to set
|
|
86336
|
+
*/
|
|
86337
|
+
function PaymentLinkButton(properties) {
|
|
86338
|
+
if (properties)
|
|
86339
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86340
|
+
if (properties[keys[i]] != null)
|
|
86341
|
+
this[keys[i]] = properties[keys[i]];
|
|
86342
|
+
}
|
|
86343
|
+
|
|
86344
|
+
/**
|
|
86345
|
+
* PaymentLinkButton displayText.
|
|
86346
|
+
* @member {string} displayText
|
|
86347
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86348
|
+
* @instance
|
|
86349
|
+
*/
|
|
86350
|
+
PaymentLinkButton.prototype.displayText = "";
|
|
86351
|
+
|
|
86352
|
+
/**
|
|
86353
|
+
* Creates a new PaymentLinkButton instance using the specified properties.
|
|
86354
|
+
* @function create
|
|
86355
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86356
|
+
* @static
|
|
86357
|
+
* @param {waproto.Message.PaymentLinkMetadata.IPaymentLinkButton=} [properties] Properties to set
|
|
86358
|
+
* @returns {waproto.Message.PaymentLinkMetadata.PaymentLinkButton} PaymentLinkButton instance
|
|
86359
|
+
*/
|
|
86360
|
+
PaymentLinkButton.create = function create(properties) {
|
|
86361
|
+
return new PaymentLinkButton(properties);
|
|
86362
|
+
};
|
|
86363
|
+
|
|
86364
|
+
/**
|
|
86365
|
+
* Encodes the specified PaymentLinkButton message. Does not implicitly {@link waproto.Message.PaymentLinkMetadata.PaymentLinkButton.verify|verify} messages.
|
|
86366
|
+
* @function encode
|
|
86367
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86368
|
+
* @static
|
|
86369
|
+
* @param {waproto.Message.PaymentLinkMetadata.IPaymentLinkButton} message PaymentLinkButton message or plain object to encode
|
|
86370
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86371
|
+
* @returns {$protobuf.Writer} Writer
|
|
86372
|
+
*/
|
|
86373
|
+
PaymentLinkButton.encode = function encode(message, writer) {
|
|
86374
|
+
if (!writer)
|
|
86375
|
+
writer = $Writer.create();
|
|
86376
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayText);
|
|
86377
|
+
return writer;
|
|
86378
|
+
};
|
|
86379
|
+
|
|
86380
|
+
/**
|
|
86381
|
+
* Encodes the specified PaymentLinkButton message, length delimited. Does not implicitly {@link waproto.Message.PaymentLinkMetadata.PaymentLinkButton.verify|verify} messages.
|
|
86382
|
+
* @function encodeDelimited
|
|
86383
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86384
|
+
* @static
|
|
86385
|
+
* @param {waproto.Message.PaymentLinkMetadata.IPaymentLinkButton} message PaymentLinkButton message or plain object to encode
|
|
86386
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86387
|
+
* @returns {$protobuf.Writer} Writer
|
|
86388
|
+
*/
|
|
86389
|
+
PaymentLinkButton.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86390
|
+
return this.encode(message, writer).ldelim();
|
|
86391
|
+
};
|
|
86392
|
+
|
|
86393
|
+
/**
|
|
86394
|
+
* Decodes a PaymentLinkButton message from the specified reader or buffer.
|
|
86395
|
+
* @function decode
|
|
86396
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86397
|
+
* @static
|
|
86398
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86399
|
+
* @param {number} [length] Message length if known beforehand
|
|
86400
|
+
* @returns {waproto.Message.PaymentLinkMetadata.PaymentLinkButton} PaymentLinkButton
|
|
86401
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86402
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86403
|
+
*/
|
|
86404
|
+
PaymentLinkButton.decode = function decode(reader, length) {
|
|
86405
|
+
if (!(reader instanceof $Reader))
|
|
86406
|
+
reader = $Reader.create(reader);
|
|
86407
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.PaymentLinkMetadata.PaymentLinkButton();
|
|
86408
|
+
while (reader.pos < end) {
|
|
86409
|
+
var tag = reader.uint32();
|
|
86410
|
+
switch (tag >>> 3) {
|
|
86411
|
+
case 1: {
|
|
86412
|
+
message.displayText = reader.string();
|
|
86413
|
+
break;
|
|
86414
|
+
}
|
|
86415
|
+
default:
|
|
86416
|
+
reader.skipType(tag & 7);
|
|
86417
|
+
break;
|
|
86418
|
+
}
|
|
86419
|
+
}
|
|
86420
|
+
if (!message.hasOwnProperty("displayText"))
|
|
86421
|
+
throw $util.ProtocolError("missing required 'displayText'", { instance: message });
|
|
86422
|
+
return message;
|
|
86423
|
+
};
|
|
86424
|
+
|
|
86425
|
+
/**
|
|
86426
|
+
* Decodes a PaymentLinkButton message from the specified reader or buffer, length delimited.
|
|
86427
|
+
* @function decodeDelimited
|
|
86428
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86429
|
+
* @static
|
|
86430
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86431
|
+
* @returns {waproto.Message.PaymentLinkMetadata.PaymentLinkButton} PaymentLinkButton
|
|
86432
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86433
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86434
|
+
*/
|
|
86435
|
+
PaymentLinkButton.decodeDelimited = function decodeDelimited(reader) {
|
|
86436
|
+
if (!(reader instanceof $Reader))
|
|
86437
|
+
reader = new $Reader(reader);
|
|
86438
|
+
return this.decode(reader, reader.uint32());
|
|
86439
|
+
};
|
|
86440
|
+
|
|
86441
|
+
/**
|
|
86442
|
+
* Verifies a PaymentLinkButton message.
|
|
86443
|
+
* @function verify
|
|
86444
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86445
|
+
* @static
|
|
86446
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
86447
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86448
|
+
*/
|
|
86449
|
+
PaymentLinkButton.verify = function verify(message) {
|
|
86450
|
+
if (typeof message !== "object" || message === null)
|
|
86451
|
+
return "object expected";
|
|
86452
|
+
if (!$util.isString(message.displayText))
|
|
86453
|
+
return "displayText: string expected";
|
|
86454
|
+
return null;
|
|
86455
|
+
};
|
|
86456
|
+
|
|
86457
|
+
/**
|
|
86458
|
+
* Creates a PaymentLinkButton message from a plain object. Also converts values to their respective internal types.
|
|
86459
|
+
* @function fromObject
|
|
86460
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86461
|
+
* @static
|
|
86462
|
+
* @param {Object.<string,*>} object Plain object
|
|
86463
|
+
* @returns {waproto.Message.PaymentLinkMetadata.PaymentLinkButton} PaymentLinkButton
|
|
86464
|
+
*/
|
|
86465
|
+
PaymentLinkButton.fromObject = function fromObject(object) {
|
|
86466
|
+
if (object instanceof $root.waproto.Message.PaymentLinkMetadata.PaymentLinkButton)
|
|
86467
|
+
return object;
|
|
86468
|
+
var message = new $root.waproto.Message.PaymentLinkMetadata.PaymentLinkButton();
|
|
86469
|
+
if (object.displayText != null)
|
|
86470
|
+
message.displayText = String(object.displayText);
|
|
86471
|
+
return message;
|
|
86472
|
+
};
|
|
86473
|
+
|
|
86474
|
+
/**
|
|
86475
|
+
* Creates a plain object from a PaymentLinkButton message. Also converts values to other types if specified.
|
|
86476
|
+
* @function toObject
|
|
86477
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86478
|
+
* @static
|
|
86479
|
+
* @param {waproto.Message.PaymentLinkMetadata.PaymentLinkButton} message PaymentLinkButton
|
|
86480
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86481
|
+
* @returns {Object.<string,*>} Plain object
|
|
86482
|
+
*/
|
|
86483
|
+
PaymentLinkButton.toObject = function toObject(message, options) {
|
|
86484
|
+
if (!options)
|
|
86485
|
+
options = {};
|
|
86486
|
+
var object = {};
|
|
86487
|
+
if (options.defaults)
|
|
86488
|
+
object.displayText = "";
|
|
86489
|
+
if (message.displayText != null && message.hasOwnProperty("displayText"))
|
|
86490
|
+
object.displayText = message.displayText;
|
|
86491
|
+
return object;
|
|
86492
|
+
};
|
|
86493
|
+
|
|
86494
|
+
/**
|
|
86495
|
+
* Converts this PaymentLinkButton to JSON.
|
|
86496
|
+
* @function toJSON
|
|
86497
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86498
|
+
* @instance
|
|
86499
|
+
* @returns {Object.<string,*>} JSON object
|
|
86500
|
+
*/
|
|
86501
|
+
PaymentLinkButton.prototype.toJSON = function toJSON() {
|
|
86502
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86503
|
+
};
|
|
86504
|
+
|
|
86505
|
+
/**
|
|
86506
|
+
* Gets the default type url for PaymentLinkButton
|
|
86507
|
+
* @function getTypeUrl
|
|
86508
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkButton
|
|
86509
|
+
* @static
|
|
86510
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
86511
|
+
* @returns {string} The default type url
|
|
86512
|
+
*/
|
|
86513
|
+
PaymentLinkButton.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
86514
|
+
if (typeUrlPrefix === undefined) {
|
|
86515
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
86516
|
+
}
|
|
86517
|
+
return typeUrlPrefix + "/waproto.Message.PaymentLinkMetadata.PaymentLinkButton";
|
|
86518
|
+
};
|
|
86519
|
+
|
|
86520
|
+
return PaymentLinkButton;
|
|
86521
|
+
})();
|
|
86522
|
+
|
|
86523
|
+
PaymentLinkMetadata.PaymentLinkHeader = (function() {
|
|
86524
|
+
|
|
86525
|
+
/**
|
|
86526
|
+
* Properties of a PaymentLinkHeader.
|
|
86527
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86528
|
+
* @interface IPaymentLinkHeader
|
|
86529
|
+
* @property {waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.PaymentLinkHeaderType} headerType PaymentLinkHeader headerType
|
|
86530
|
+
*/
|
|
86531
|
+
|
|
86532
|
+
/**
|
|
86533
|
+
* Constructs a new PaymentLinkHeader.
|
|
86534
|
+
* @memberof waproto.Message.PaymentLinkMetadata
|
|
86535
|
+
* @classdesc Represents a PaymentLinkHeader.
|
|
86536
|
+
* @implements IPaymentLinkHeader
|
|
86537
|
+
* @constructor
|
|
86538
|
+
* @param {waproto.Message.PaymentLinkMetadata.IPaymentLinkHeader=} [properties] Properties to set
|
|
86539
|
+
*/
|
|
86540
|
+
function PaymentLinkHeader(properties) {
|
|
86541
|
+
if (properties)
|
|
86542
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86543
|
+
if (properties[keys[i]] != null)
|
|
86544
|
+
this[keys[i]] = properties[keys[i]];
|
|
86545
|
+
}
|
|
86546
|
+
|
|
86547
|
+
/**
|
|
86548
|
+
* PaymentLinkHeader headerType.
|
|
86549
|
+
* @member {waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.PaymentLinkHeaderType} headerType
|
|
86550
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86551
|
+
* @instance
|
|
86552
|
+
*/
|
|
86553
|
+
PaymentLinkHeader.prototype.headerType = 0;
|
|
86554
|
+
|
|
86555
|
+
/**
|
|
86556
|
+
* Creates a new PaymentLinkHeader instance using the specified properties.
|
|
86557
|
+
* @function create
|
|
86558
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86559
|
+
* @static
|
|
86560
|
+
* @param {waproto.Message.PaymentLinkMetadata.IPaymentLinkHeader=} [properties] Properties to set
|
|
86561
|
+
* @returns {waproto.Message.PaymentLinkMetadata.PaymentLinkHeader} PaymentLinkHeader instance
|
|
86562
|
+
*/
|
|
86563
|
+
PaymentLinkHeader.create = function create(properties) {
|
|
86564
|
+
return new PaymentLinkHeader(properties);
|
|
86565
|
+
};
|
|
86566
|
+
|
|
86567
|
+
/**
|
|
86568
|
+
* Encodes the specified PaymentLinkHeader message. Does not implicitly {@link waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.verify|verify} messages.
|
|
86569
|
+
* @function encode
|
|
86570
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86571
|
+
* @static
|
|
86572
|
+
* @param {waproto.Message.PaymentLinkMetadata.IPaymentLinkHeader} message PaymentLinkHeader message or plain object to encode
|
|
86573
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86574
|
+
* @returns {$protobuf.Writer} Writer
|
|
86575
|
+
*/
|
|
86576
|
+
PaymentLinkHeader.encode = function encode(message, writer) {
|
|
86577
|
+
if (!writer)
|
|
86578
|
+
writer = $Writer.create();
|
|
86579
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.headerType);
|
|
86580
|
+
return writer;
|
|
86581
|
+
};
|
|
86582
|
+
|
|
86583
|
+
/**
|
|
86584
|
+
* Encodes the specified PaymentLinkHeader message, length delimited. Does not implicitly {@link waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.verify|verify} messages.
|
|
86585
|
+
* @function encodeDelimited
|
|
86586
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86587
|
+
* @static
|
|
86588
|
+
* @param {waproto.Message.PaymentLinkMetadata.IPaymentLinkHeader} message PaymentLinkHeader message or plain object to encode
|
|
86589
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86590
|
+
* @returns {$protobuf.Writer} Writer
|
|
86591
|
+
*/
|
|
86592
|
+
PaymentLinkHeader.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86593
|
+
return this.encode(message, writer).ldelim();
|
|
86594
|
+
};
|
|
86595
|
+
|
|
86596
|
+
/**
|
|
86597
|
+
* Decodes a PaymentLinkHeader message from the specified reader or buffer.
|
|
86598
|
+
* @function decode
|
|
86599
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86600
|
+
* @static
|
|
86601
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86602
|
+
* @param {number} [length] Message length if known beforehand
|
|
86603
|
+
* @returns {waproto.Message.PaymentLinkMetadata.PaymentLinkHeader} PaymentLinkHeader
|
|
86604
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86605
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86606
|
+
*/
|
|
86607
|
+
PaymentLinkHeader.decode = function decode(reader, length) {
|
|
86608
|
+
if (!(reader instanceof $Reader))
|
|
86609
|
+
reader = $Reader.create(reader);
|
|
86610
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.PaymentLinkMetadata.PaymentLinkHeader();
|
|
86611
|
+
while (reader.pos < end) {
|
|
86612
|
+
var tag = reader.uint32();
|
|
86613
|
+
switch (tag >>> 3) {
|
|
86614
|
+
case 1: {
|
|
86615
|
+
message.headerType = reader.int32();
|
|
86616
|
+
break;
|
|
86617
|
+
}
|
|
86618
|
+
default:
|
|
86619
|
+
reader.skipType(tag & 7);
|
|
86620
|
+
break;
|
|
86621
|
+
}
|
|
86622
|
+
}
|
|
86623
|
+
if (!message.hasOwnProperty("headerType"))
|
|
86624
|
+
throw $util.ProtocolError("missing required 'headerType'", { instance: message });
|
|
86625
|
+
return message;
|
|
86626
|
+
};
|
|
86627
|
+
|
|
86628
|
+
/**
|
|
86629
|
+
* Decodes a PaymentLinkHeader message from the specified reader or buffer, length delimited.
|
|
86630
|
+
* @function decodeDelimited
|
|
86631
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86632
|
+
* @static
|
|
86633
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86634
|
+
* @returns {waproto.Message.PaymentLinkMetadata.PaymentLinkHeader} PaymentLinkHeader
|
|
86635
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86636
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86637
|
+
*/
|
|
86638
|
+
PaymentLinkHeader.decodeDelimited = function decodeDelimited(reader) {
|
|
86639
|
+
if (!(reader instanceof $Reader))
|
|
86640
|
+
reader = new $Reader(reader);
|
|
86641
|
+
return this.decode(reader, reader.uint32());
|
|
86642
|
+
};
|
|
86643
|
+
|
|
86644
|
+
/**
|
|
86645
|
+
* Verifies a PaymentLinkHeader message.
|
|
86646
|
+
* @function verify
|
|
86647
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86648
|
+
* @static
|
|
86649
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
86650
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86651
|
+
*/
|
|
86652
|
+
PaymentLinkHeader.verify = function verify(message) {
|
|
86653
|
+
if (typeof message !== "object" || message === null)
|
|
86654
|
+
return "object expected";
|
|
86655
|
+
switch (message.headerType) {
|
|
86656
|
+
default:
|
|
86657
|
+
return "headerType: enum value expected";
|
|
86658
|
+
case 0:
|
|
86659
|
+
case 1:
|
|
86660
|
+
break;
|
|
86661
|
+
}
|
|
86662
|
+
return null;
|
|
86663
|
+
};
|
|
86664
|
+
|
|
86665
|
+
/**
|
|
86666
|
+
* Creates a PaymentLinkHeader message from a plain object. Also converts values to their respective internal types.
|
|
86667
|
+
* @function fromObject
|
|
86668
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86669
|
+
* @static
|
|
86670
|
+
* @param {Object.<string,*>} object Plain object
|
|
86671
|
+
* @returns {waproto.Message.PaymentLinkMetadata.PaymentLinkHeader} PaymentLinkHeader
|
|
86672
|
+
*/
|
|
86673
|
+
PaymentLinkHeader.fromObject = function fromObject(object) {
|
|
86674
|
+
if (object instanceof $root.waproto.Message.PaymentLinkMetadata.PaymentLinkHeader)
|
|
86675
|
+
return object;
|
|
86676
|
+
var message = new $root.waproto.Message.PaymentLinkMetadata.PaymentLinkHeader();
|
|
86677
|
+
switch (object.headerType) {
|
|
86678
|
+
default:
|
|
86679
|
+
if (typeof object.headerType === "number") {
|
|
86680
|
+
message.headerType = object.headerType;
|
|
86681
|
+
break;
|
|
86682
|
+
}
|
|
86683
|
+
break;
|
|
86684
|
+
case "LINK_PREVIEW":
|
|
86685
|
+
case 0:
|
|
86686
|
+
message.headerType = 0;
|
|
86687
|
+
break;
|
|
86688
|
+
case "ORDER":
|
|
86689
|
+
case 1:
|
|
86690
|
+
message.headerType = 1;
|
|
86691
|
+
break;
|
|
86692
|
+
}
|
|
86693
|
+
return message;
|
|
86694
|
+
};
|
|
86695
|
+
|
|
86696
|
+
/**
|
|
86697
|
+
* Creates a plain object from a PaymentLinkHeader message. Also converts values to other types if specified.
|
|
86698
|
+
* @function toObject
|
|
86699
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86700
|
+
* @static
|
|
86701
|
+
* @param {waproto.Message.PaymentLinkMetadata.PaymentLinkHeader} message PaymentLinkHeader
|
|
86702
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86703
|
+
* @returns {Object.<string,*>} Plain object
|
|
86704
|
+
*/
|
|
86705
|
+
PaymentLinkHeader.toObject = function toObject(message, options) {
|
|
86706
|
+
if (!options)
|
|
86707
|
+
options = {};
|
|
86708
|
+
var object = {};
|
|
86709
|
+
if (options.defaults)
|
|
86710
|
+
object.headerType = options.enums === String ? "LINK_PREVIEW" : 0;
|
|
86711
|
+
if (message.headerType != null && message.hasOwnProperty("headerType"))
|
|
86712
|
+
object.headerType = options.enums === String ? $root.waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.PaymentLinkHeaderType[message.headerType] === undefined ? message.headerType : $root.waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.PaymentLinkHeaderType[message.headerType] : message.headerType;
|
|
86713
|
+
return object;
|
|
86714
|
+
};
|
|
86715
|
+
|
|
86716
|
+
/**
|
|
86717
|
+
* Converts this PaymentLinkHeader to JSON.
|
|
86718
|
+
* @function toJSON
|
|
86719
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86720
|
+
* @instance
|
|
86721
|
+
* @returns {Object.<string,*>} JSON object
|
|
86722
|
+
*/
|
|
86723
|
+
PaymentLinkHeader.prototype.toJSON = function toJSON() {
|
|
86724
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86725
|
+
};
|
|
86726
|
+
|
|
86727
|
+
/**
|
|
86728
|
+
* Gets the default type url for PaymentLinkHeader
|
|
86729
|
+
* @function getTypeUrl
|
|
86730
|
+
* @memberof waproto.Message.PaymentLinkMetadata.PaymentLinkHeader
|
|
86731
|
+
* @static
|
|
86732
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
86733
|
+
* @returns {string} The default type url
|
|
86734
|
+
*/
|
|
86735
|
+
PaymentLinkHeader.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
86736
|
+
if (typeUrlPrefix === undefined) {
|
|
86737
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
86738
|
+
}
|
|
86739
|
+
return typeUrlPrefix + "/waproto.Message.PaymentLinkMetadata.PaymentLinkHeader";
|
|
86740
|
+
};
|
|
86741
|
+
|
|
86742
|
+
/**
|
|
86743
|
+
* PaymentLinkHeaderType enum.
|
|
86744
|
+
* @name waproto.Message.PaymentLinkMetadata.PaymentLinkHeader.PaymentLinkHeaderType
|
|
86745
|
+
* @enum {number}
|
|
86746
|
+
* @property {number} LINK_PREVIEW=0 LINK_PREVIEW value
|
|
86747
|
+
* @property {number} ORDER=1 ORDER value
|
|
86748
|
+
*/
|
|
86749
|
+
PaymentLinkHeader.PaymentLinkHeaderType = (function() {
|
|
86750
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
86751
|
+
values[valuesById[0] = "LINK_PREVIEW"] = 0;
|
|
86752
|
+
values[valuesById[1] = "ORDER"] = 1;
|
|
86753
|
+
return values;
|
|
86754
|
+
})();
|
|
86755
|
+
|
|
86756
|
+
return PaymentLinkHeader;
|
|
86757
|
+
})();
|
|
86758
|
+
|
|
86759
|
+
return PaymentLinkMetadata;
|
|
86760
|
+
})();
|
|
86761
|
+
|
|
84563
86762
|
Message.PeerDataOperationRequestMessage = (function() {
|
|
84564
86763
|
|
|
84565
86764
|
/**
|
|
@@ -102010,7 +104209,6 @@ $root.waproto = (function() {
|
|
|
102010
104209
|
* @property {Array.<waproto.IInteractiveAnnotation>|null} [annotations] VideoMessage annotations
|
|
102011
104210
|
* @property {string|null} [accessibilityLabel] VideoMessage accessibilityLabel
|
|
102012
104211
|
* @property {Array.<waproto.IProcessedVideo>|null} [processedVideos] VideoMessage processedVideos
|
|
102013
|
-
* @property {number|null} [externalShareFullVideoDurationInSeconds] VideoMessage externalShareFullVideoDurationInSeconds
|
|
102014
104212
|
*/
|
|
102015
104213
|
|
|
102016
104214
|
/**
|
|
@@ -102239,14 +104437,6 @@ $root.waproto = (function() {
|
|
|
102239
104437
|
*/
|
|
102240
104438
|
VideoMessage.prototype.processedVideos = $util.emptyArray;
|
|
102241
104439
|
|
|
102242
|
-
/**
|
|
102243
|
-
* VideoMessage externalShareFullVideoDurationInSeconds.
|
|
102244
|
-
* @member {number|null|undefined} externalShareFullVideoDurationInSeconds
|
|
102245
|
-
* @memberof waproto.Message.VideoMessage
|
|
102246
|
-
* @instance
|
|
102247
|
-
*/
|
|
102248
|
-
VideoMessage.prototype.externalShareFullVideoDurationInSeconds = null;
|
|
102249
|
-
|
|
102250
104440
|
// OneOf field names bound to virtual getters and setters
|
|
102251
104441
|
var $oneOfFields;
|
|
102252
104442
|
|
|
@@ -102388,12 +104578,6 @@ $root.waproto = (function() {
|
|
|
102388
104578
|
set: $util.oneOfSetter($oneOfFields)
|
|
102389
104579
|
});
|
|
102390
104580
|
|
|
102391
|
-
// Virtual OneOf for proto3 optional field
|
|
102392
|
-
Object.defineProperty(VideoMessage.prototype, "_externalShareFullVideoDurationInSeconds", {
|
|
102393
|
-
get: $util.oneOfGetter($oneOfFields = ["externalShareFullVideoDurationInSeconds"]),
|
|
102394
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
102395
|
-
});
|
|
102396
|
-
|
|
102397
104581
|
/**
|
|
102398
104582
|
* Creates a new VideoMessage instance using the specified properties.
|
|
102399
104583
|
* @function create
|
|
@@ -102473,8 +104657,6 @@ $root.waproto = (function() {
|
|
|
102473
104657
|
if (message.processedVideos != null && message.processedVideos.length)
|
|
102474
104658
|
for (var i = 0; i < message.processedVideos.length; ++i)
|
|
102475
104659
|
$root.waproto.ProcessedVideo.encode(message.processedVideos[i], writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
102476
|
-
if (message.externalShareFullVideoDurationInSeconds != null && Object.hasOwnProperty.call(message, "externalShareFullVideoDurationInSeconds"))
|
|
102477
|
-
writer.uint32(/* id 28, wireType 0 =*/224).uint32(message.externalShareFullVideoDurationInSeconds);
|
|
102478
104660
|
return writer;
|
|
102479
104661
|
};
|
|
102480
104662
|
|
|
@@ -102619,10 +104801,6 @@ $root.waproto = (function() {
|
|
|
102619
104801
|
message.processedVideos.push($root.waproto.ProcessedVideo.decode(reader, reader.uint32()));
|
|
102620
104802
|
break;
|
|
102621
104803
|
}
|
|
102622
|
-
case 28: {
|
|
102623
|
-
message.externalShareFullVideoDurationInSeconds = reader.uint32();
|
|
102624
|
-
break;
|
|
102625
|
-
}
|
|
102626
104804
|
default:
|
|
102627
104805
|
reader.skipType(tag & 7);
|
|
102628
104806
|
break;
|
|
@@ -102810,11 +104988,6 @@ $root.waproto = (function() {
|
|
|
102810
104988
|
return "processedVideos." + error;
|
|
102811
104989
|
}
|
|
102812
104990
|
}
|
|
102813
|
-
if (message.externalShareFullVideoDurationInSeconds != null && message.hasOwnProperty("externalShareFullVideoDurationInSeconds")) {
|
|
102814
|
-
properties._externalShareFullVideoDurationInSeconds = 1;
|
|
102815
|
-
if (!$util.isInteger(message.externalShareFullVideoDurationInSeconds))
|
|
102816
|
-
return "externalShareFullVideoDurationInSeconds: integer expected";
|
|
102817
|
-
}
|
|
102818
104991
|
return null;
|
|
102819
104992
|
};
|
|
102820
104993
|
|
|
@@ -102962,8 +105135,6 @@ $root.waproto = (function() {
|
|
|
102962
105135
|
message.processedVideos[i] = $root.waproto.ProcessedVideo.fromObject(object.processedVideos[i]);
|
|
102963
105136
|
}
|
|
102964
105137
|
}
|
|
102965
|
-
if (object.externalShareFullVideoDurationInSeconds != null)
|
|
102966
|
-
message.externalShareFullVideoDurationInSeconds = object.externalShareFullVideoDurationInSeconds >>> 0;
|
|
102967
105138
|
return message;
|
|
102968
105139
|
};
|
|
102969
105140
|
|
|
@@ -103121,11 +105292,6 @@ $root.waproto = (function() {
|
|
|
103121
105292
|
for (var j = 0; j < message.processedVideos.length; ++j)
|
|
103122
105293
|
object.processedVideos[j] = $root.waproto.ProcessedVideo.toObject(message.processedVideos[j], options);
|
|
103123
105294
|
}
|
|
103124
|
-
if (message.externalShareFullVideoDurationInSeconds != null && message.hasOwnProperty("externalShareFullVideoDurationInSeconds")) {
|
|
103125
|
-
object.externalShareFullVideoDurationInSeconds = message.externalShareFullVideoDurationInSeconds;
|
|
103126
|
-
if (options.oneofs)
|
|
103127
|
-
object._externalShareFullVideoDurationInSeconds = "externalShareFullVideoDurationInSeconds";
|
|
103128
|
-
}
|
|
103129
105295
|
return object;
|
|
103130
105296
|
};
|
|
103131
105297
|
|
|
@@ -104230,6 +106396,8 @@ $root.waproto = (function() {
|
|
|
104230
106396
|
case 10:
|
|
104231
106397
|
case 11:
|
|
104232
106398
|
case 12:
|
|
106399
|
+
case 13:
|
|
106400
|
+
case 14:
|
|
104233
106401
|
break;
|
|
104234
106402
|
}
|
|
104235
106403
|
}
|
|
@@ -104320,6 +106488,14 @@ $root.waproto = (function() {
|
|
|
104320
106488
|
case 12:
|
|
104321
106489
|
message.associationType = 12;
|
|
104322
106490
|
break;
|
|
106491
|
+
case "STATUS_LINK_ACTION":
|
|
106492
|
+
case 13:
|
|
106493
|
+
message.associationType = 13;
|
|
106494
|
+
break;
|
|
106495
|
+
case "VIEW_ALL_REPLIES":
|
|
106496
|
+
case 14:
|
|
106497
|
+
message.associationType = 14;
|
|
106498
|
+
break;
|
|
104323
106499
|
}
|
|
104324
106500
|
if (object.parentMessageKey != null) {
|
|
104325
106501
|
if (typeof object.parentMessageKey !== "object")
|
|
@@ -104405,6 +106581,8 @@ $root.waproto = (function() {
|
|
|
104405
106581
|
* @property {number} HD_IMAGE_DUAL_UPLOAD=10 HD_IMAGE_DUAL_UPLOAD value
|
|
104406
106582
|
* @property {number} STICKER_ANNOTATION=11 STICKER_ANNOTATION value
|
|
104407
106583
|
* @property {number} MOTION_PHOTO=12 MOTION_PHOTO value
|
|
106584
|
+
* @property {number} STATUS_LINK_ACTION=13 STATUS_LINK_ACTION value
|
|
106585
|
+
* @property {number} VIEW_ALL_REPLIES=14 VIEW_ALL_REPLIES value
|
|
104408
106586
|
*/
|
|
104409
106587
|
MessageAssociation.AssociationType = (function() {
|
|
104410
106588
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -104421,6 +106599,8 @@ $root.waproto = (function() {
|
|
|
104421
106599
|
values[valuesById[10] = "HD_IMAGE_DUAL_UPLOAD"] = 10;
|
|
104422
106600
|
values[valuesById[11] = "STICKER_ANNOTATION"] = 11;
|
|
104423
106601
|
values[valuesById[12] = "MOTION_PHOTO"] = 12;
|
|
106602
|
+
values[valuesById[13] = "STATUS_LINK_ACTION"] = 13;
|
|
106603
|
+
values[valuesById[14] = "VIEW_ALL_REPLIES"] = 14;
|
|
104424
106604
|
return values;
|
|
104425
106605
|
})();
|
|
104426
106606
|
|