@wppconnect/wa-proto 1.1.30 → 1.1.43
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 +52 -0
- package/WAProto.proto +82 -18
- package/dist/index.d.ts +787 -263
- package/dist/index.js +2261 -646
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2851,6 +2851,842 @@ $root.waproto = (function() {
|
|
|
2851
2851
|
return AIRichResponseCodeMetadata;
|
|
2852
2852
|
})();
|
|
2853
2853
|
|
|
2854
|
+
AIRichResponseMessage.AIRichResponseContentItemsMetadata = (function() {
|
|
2855
|
+
|
|
2856
|
+
/**
|
|
2857
|
+
* Properties of a AIRichResponseContentItemsMetadata.
|
|
2858
|
+
* @memberof waproto.AIRichResponseMessage
|
|
2859
|
+
* @interface IAIRichResponseContentItemsMetadata
|
|
2860
|
+
* @property {Array.<waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata>|null} [itemsMetadata] AIRichResponseContentItemsMetadata itemsMetadata
|
|
2861
|
+
* @property {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType|null} [contentType] AIRichResponseContentItemsMetadata contentType
|
|
2862
|
+
*/
|
|
2863
|
+
|
|
2864
|
+
/**
|
|
2865
|
+
* Constructs a new AIRichResponseContentItemsMetadata.
|
|
2866
|
+
* @memberof waproto.AIRichResponseMessage
|
|
2867
|
+
* @classdesc Represents a AIRichResponseContentItemsMetadata.
|
|
2868
|
+
* @implements IAIRichResponseContentItemsMetadata
|
|
2869
|
+
* @constructor
|
|
2870
|
+
* @param {waproto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata=} [properties] Properties to set
|
|
2871
|
+
*/
|
|
2872
|
+
function AIRichResponseContentItemsMetadata(properties) {
|
|
2873
|
+
this.itemsMetadata = [];
|
|
2874
|
+
if (properties)
|
|
2875
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2876
|
+
if (properties[keys[i]] != null)
|
|
2877
|
+
this[keys[i]] = properties[keys[i]];
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
/**
|
|
2881
|
+
* AIRichResponseContentItemsMetadata itemsMetadata.
|
|
2882
|
+
* @member {Array.<waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata>} itemsMetadata
|
|
2883
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
2884
|
+
* @instance
|
|
2885
|
+
*/
|
|
2886
|
+
AIRichResponseContentItemsMetadata.prototype.itemsMetadata = $util.emptyArray;
|
|
2887
|
+
|
|
2888
|
+
/**
|
|
2889
|
+
* AIRichResponseContentItemsMetadata contentType.
|
|
2890
|
+
* @member {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType|null|undefined} contentType
|
|
2891
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
2892
|
+
* @instance
|
|
2893
|
+
*/
|
|
2894
|
+
AIRichResponseContentItemsMetadata.prototype.contentType = null;
|
|
2895
|
+
|
|
2896
|
+
// OneOf field names bound to virtual getters and setters
|
|
2897
|
+
var $oneOfFields;
|
|
2898
|
+
|
|
2899
|
+
// Virtual OneOf for proto3 optional field
|
|
2900
|
+
Object.defineProperty(AIRichResponseContentItemsMetadata.prototype, "_contentType", {
|
|
2901
|
+
get: $util.oneOfGetter($oneOfFields = ["contentType"]),
|
|
2902
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2903
|
+
});
|
|
2904
|
+
|
|
2905
|
+
/**
|
|
2906
|
+
* Creates a new AIRichResponseContentItemsMetadata instance using the specified properties.
|
|
2907
|
+
* @function create
|
|
2908
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
2909
|
+
* @static
|
|
2910
|
+
* @param {waproto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata=} [properties] Properties to set
|
|
2911
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata} AIRichResponseContentItemsMetadata instance
|
|
2912
|
+
*/
|
|
2913
|
+
AIRichResponseContentItemsMetadata.create = function create(properties) {
|
|
2914
|
+
return new AIRichResponseContentItemsMetadata(properties);
|
|
2915
|
+
};
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* Encodes the specified AIRichResponseContentItemsMetadata message. Does not implicitly {@link waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.verify|verify} messages.
|
|
2919
|
+
* @function encode
|
|
2920
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
2921
|
+
* @static
|
|
2922
|
+
* @param {waproto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata} message AIRichResponseContentItemsMetadata message or plain object to encode
|
|
2923
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2924
|
+
* @returns {$protobuf.Writer} Writer
|
|
2925
|
+
*/
|
|
2926
|
+
AIRichResponseContentItemsMetadata.encode = function encode(message, writer) {
|
|
2927
|
+
if (!writer)
|
|
2928
|
+
writer = $Writer.create();
|
|
2929
|
+
if (message.itemsMetadata != null && message.itemsMetadata.length)
|
|
2930
|
+
for (var i = 0; i < message.itemsMetadata.length; ++i)
|
|
2931
|
+
$root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.encode(message.itemsMetadata[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
2932
|
+
if (message.contentType != null && Object.hasOwnProperty.call(message, "contentType"))
|
|
2933
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.contentType);
|
|
2934
|
+
return writer;
|
|
2935
|
+
};
|
|
2936
|
+
|
|
2937
|
+
/**
|
|
2938
|
+
* Encodes the specified AIRichResponseContentItemsMetadata message, length delimited. Does not implicitly {@link waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.verify|verify} messages.
|
|
2939
|
+
* @function encodeDelimited
|
|
2940
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
2941
|
+
* @static
|
|
2942
|
+
* @param {waproto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata} message AIRichResponseContentItemsMetadata message or plain object to encode
|
|
2943
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2944
|
+
* @returns {$protobuf.Writer} Writer
|
|
2945
|
+
*/
|
|
2946
|
+
AIRichResponseContentItemsMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2947
|
+
return this.encode(message, writer).ldelim();
|
|
2948
|
+
};
|
|
2949
|
+
|
|
2950
|
+
/**
|
|
2951
|
+
* Decodes a AIRichResponseContentItemsMetadata message from the specified reader or buffer.
|
|
2952
|
+
* @function decode
|
|
2953
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
2954
|
+
* @static
|
|
2955
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2956
|
+
* @param {number} [length] Message length if known beforehand
|
|
2957
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata} AIRichResponseContentItemsMetadata
|
|
2958
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2959
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2960
|
+
*/
|
|
2961
|
+
AIRichResponseContentItemsMetadata.decode = function decode(reader, length) {
|
|
2962
|
+
if (!(reader instanceof $Reader))
|
|
2963
|
+
reader = $Reader.create(reader);
|
|
2964
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata();
|
|
2965
|
+
while (reader.pos < end) {
|
|
2966
|
+
var tag = reader.uint32();
|
|
2967
|
+
switch (tag >>> 3) {
|
|
2968
|
+
case 1: {
|
|
2969
|
+
if (!(message.itemsMetadata && message.itemsMetadata.length))
|
|
2970
|
+
message.itemsMetadata = [];
|
|
2971
|
+
message.itemsMetadata.push($root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.decode(reader, reader.uint32()));
|
|
2972
|
+
break;
|
|
2973
|
+
}
|
|
2974
|
+
case 2: {
|
|
2975
|
+
message.contentType = reader.int32();
|
|
2976
|
+
break;
|
|
2977
|
+
}
|
|
2978
|
+
default:
|
|
2979
|
+
reader.skipType(tag & 7);
|
|
2980
|
+
break;
|
|
2981
|
+
}
|
|
2982
|
+
}
|
|
2983
|
+
return message;
|
|
2984
|
+
};
|
|
2985
|
+
|
|
2986
|
+
/**
|
|
2987
|
+
* Decodes a AIRichResponseContentItemsMetadata message from the specified reader or buffer, length delimited.
|
|
2988
|
+
* @function decodeDelimited
|
|
2989
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
2990
|
+
* @static
|
|
2991
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2992
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata} AIRichResponseContentItemsMetadata
|
|
2993
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2994
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2995
|
+
*/
|
|
2996
|
+
AIRichResponseContentItemsMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
2997
|
+
if (!(reader instanceof $Reader))
|
|
2998
|
+
reader = new $Reader(reader);
|
|
2999
|
+
return this.decode(reader, reader.uint32());
|
|
3000
|
+
};
|
|
3001
|
+
|
|
3002
|
+
/**
|
|
3003
|
+
* Verifies a AIRichResponseContentItemsMetadata message.
|
|
3004
|
+
* @function verify
|
|
3005
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
3006
|
+
* @static
|
|
3007
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3008
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3009
|
+
*/
|
|
3010
|
+
AIRichResponseContentItemsMetadata.verify = function verify(message) {
|
|
3011
|
+
if (typeof message !== "object" || message === null)
|
|
3012
|
+
return "object expected";
|
|
3013
|
+
var properties = {};
|
|
3014
|
+
if (message.itemsMetadata != null && message.hasOwnProperty("itemsMetadata")) {
|
|
3015
|
+
if (!Array.isArray(message.itemsMetadata))
|
|
3016
|
+
return "itemsMetadata: array expected";
|
|
3017
|
+
for (var i = 0; i < message.itemsMetadata.length; ++i) {
|
|
3018
|
+
var error = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.verify(message.itemsMetadata[i]);
|
|
3019
|
+
if (error)
|
|
3020
|
+
return "itemsMetadata." + error;
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
if (message.contentType != null && message.hasOwnProperty("contentType")) {
|
|
3024
|
+
properties._contentType = 1;
|
|
3025
|
+
switch (message.contentType) {
|
|
3026
|
+
default:
|
|
3027
|
+
return "contentType: enum value expected";
|
|
3028
|
+
case 0:
|
|
3029
|
+
case 1:
|
|
3030
|
+
break;
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3033
|
+
return null;
|
|
3034
|
+
};
|
|
3035
|
+
|
|
3036
|
+
/**
|
|
3037
|
+
* Creates a AIRichResponseContentItemsMetadata message from a plain object. Also converts values to their respective internal types.
|
|
3038
|
+
* @function fromObject
|
|
3039
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
3040
|
+
* @static
|
|
3041
|
+
* @param {Object.<string,*>} object Plain object
|
|
3042
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata} AIRichResponseContentItemsMetadata
|
|
3043
|
+
*/
|
|
3044
|
+
AIRichResponseContentItemsMetadata.fromObject = function fromObject(object) {
|
|
3045
|
+
if (object instanceof $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata)
|
|
3046
|
+
return object;
|
|
3047
|
+
var message = new $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata();
|
|
3048
|
+
if (object.itemsMetadata) {
|
|
3049
|
+
if (!Array.isArray(object.itemsMetadata))
|
|
3050
|
+
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.itemsMetadata: array expected");
|
|
3051
|
+
message.itemsMetadata = [];
|
|
3052
|
+
for (var i = 0; i < object.itemsMetadata.length; ++i) {
|
|
3053
|
+
if (typeof object.itemsMetadata[i] !== "object")
|
|
3054
|
+
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.itemsMetadata: object expected");
|
|
3055
|
+
message.itemsMetadata[i] = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.fromObject(object.itemsMetadata[i]);
|
|
3056
|
+
}
|
|
3057
|
+
}
|
|
3058
|
+
switch (object.contentType) {
|
|
3059
|
+
default:
|
|
3060
|
+
if (typeof object.contentType === "number") {
|
|
3061
|
+
message.contentType = object.contentType;
|
|
3062
|
+
break;
|
|
3063
|
+
}
|
|
3064
|
+
break;
|
|
3065
|
+
case "DEFAULT":
|
|
3066
|
+
case 0:
|
|
3067
|
+
message.contentType = 0;
|
|
3068
|
+
break;
|
|
3069
|
+
case "CAROUSEL":
|
|
3070
|
+
case 1:
|
|
3071
|
+
message.contentType = 1;
|
|
3072
|
+
break;
|
|
3073
|
+
}
|
|
3074
|
+
return message;
|
|
3075
|
+
};
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* Creates a plain object from a AIRichResponseContentItemsMetadata message. Also converts values to other types if specified.
|
|
3079
|
+
* @function toObject
|
|
3080
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
3081
|
+
* @static
|
|
3082
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata} message AIRichResponseContentItemsMetadata
|
|
3083
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3084
|
+
* @returns {Object.<string,*>} Plain object
|
|
3085
|
+
*/
|
|
3086
|
+
AIRichResponseContentItemsMetadata.toObject = function toObject(message, options) {
|
|
3087
|
+
if (!options)
|
|
3088
|
+
options = {};
|
|
3089
|
+
var object = {};
|
|
3090
|
+
if (options.arrays || options.defaults)
|
|
3091
|
+
object.itemsMetadata = [];
|
|
3092
|
+
if (message.itemsMetadata && message.itemsMetadata.length) {
|
|
3093
|
+
object.itemsMetadata = [];
|
|
3094
|
+
for (var j = 0; j < message.itemsMetadata.length; ++j)
|
|
3095
|
+
object.itemsMetadata[j] = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.toObject(message.itemsMetadata[j], options);
|
|
3096
|
+
}
|
|
3097
|
+
if (message.contentType != null && message.hasOwnProperty("contentType")) {
|
|
3098
|
+
object.contentType = options.enums === String ? $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType[message.contentType] === undefined ? message.contentType : $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType[message.contentType] : message.contentType;
|
|
3099
|
+
if (options.oneofs)
|
|
3100
|
+
object._contentType = "contentType";
|
|
3101
|
+
}
|
|
3102
|
+
return object;
|
|
3103
|
+
};
|
|
3104
|
+
|
|
3105
|
+
/**
|
|
3106
|
+
* Converts this AIRichResponseContentItemsMetadata to JSON.
|
|
3107
|
+
* @function toJSON
|
|
3108
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
3109
|
+
* @instance
|
|
3110
|
+
* @returns {Object.<string,*>} JSON object
|
|
3111
|
+
*/
|
|
3112
|
+
AIRichResponseContentItemsMetadata.prototype.toJSON = function toJSON() {
|
|
3113
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3114
|
+
};
|
|
3115
|
+
|
|
3116
|
+
/**
|
|
3117
|
+
* Gets the default type url for AIRichResponseContentItemsMetadata
|
|
3118
|
+
* @function getTypeUrl
|
|
3119
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
3120
|
+
* @static
|
|
3121
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3122
|
+
* @returns {string} The default type url
|
|
3123
|
+
*/
|
|
3124
|
+
AIRichResponseContentItemsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3125
|
+
if (typeUrlPrefix === undefined) {
|
|
3126
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3127
|
+
}
|
|
3128
|
+
return typeUrlPrefix + "/waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata";
|
|
3129
|
+
};
|
|
3130
|
+
|
|
3131
|
+
AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata = (function() {
|
|
3132
|
+
|
|
3133
|
+
/**
|
|
3134
|
+
* Properties of a AIRichResponseContentItemMetadata.
|
|
3135
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
3136
|
+
* @interface IAIRichResponseContentItemMetadata
|
|
3137
|
+
* @property {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem|null} [reelItem] AIRichResponseContentItemMetadata reelItem
|
|
3138
|
+
*/
|
|
3139
|
+
|
|
3140
|
+
/**
|
|
3141
|
+
* Constructs a new AIRichResponseContentItemMetadata.
|
|
3142
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
3143
|
+
* @classdesc Represents a AIRichResponseContentItemMetadata.
|
|
3144
|
+
* @implements IAIRichResponseContentItemMetadata
|
|
3145
|
+
* @constructor
|
|
3146
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata=} [properties] Properties to set
|
|
3147
|
+
*/
|
|
3148
|
+
function AIRichResponseContentItemMetadata(properties) {
|
|
3149
|
+
if (properties)
|
|
3150
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3151
|
+
if (properties[keys[i]] != null)
|
|
3152
|
+
this[keys[i]] = properties[keys[i]];
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
/**
|
|
3156
|
+
* AIRichResponseContentItemMetadata reelItem.
|
|
3157
|
+
* @member {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem|null|undefined} reelItem
|
|
3158
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3159
|
+
* @instance
|
|
3160
|
+
*/
|
|
3161
|
+
AIRichResponseContentItemMetadata.prototype.reelItem = null;
|
|
3162
|
+
|
|
3163
|
+
// OneOf field names bound to virtual getters and setters
|
|
3164
|
+
var $oneOfFields;
|
|
3165
|
+
|
|
3166
|
+
/**
|
|
3167
|
+
* AIRichResponseContentItemMetadata aIRichResponseContentItem.
|
|
3168
|
+
* @member {"reelItem"|undefined} aIRichResponseContentItem
|
|
3169
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3170
|
+
* @instance
|
|
3171
|
+
*/
|
|
3172
|
+
Object.defineProperty(AIRichResponseContentItemMetadata.prototype, "aIRichResponseContentItem", {
|
|
3173
|
+
get: $util.oneOfGetter($oneOfFields = ["reelItem"]),
|
|
3174
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3175
|
+
});
|
|
3176
|
+
|
|
3177
|
+
/**
|
|
3178
|
+
* Creates a new AIRichResponseContentItemMetadata instance using the specified properties.
|
|
3179
|
+
* @function create
|
|
3180
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3181
|
+
* @static
|
|
3182
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata=} [properties] Properties to set
|
|
3183
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata} AIRichResponseContentItemMetadata instance
|
|
3184
|
+
*/
|
|
3185
|
+
AIRichResponseContentItemMetadata.create = function create(properties) {
|
|
3186
|
+
return new AIRichResponseContentItemMetadata(properties);
|
|
3187
|
+
};
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* Encodes the specified AIRichResponseContentItemMetadata message. Does not implicitly {@link waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.verify|verify} messages.
|
|
3191
|
+
* @function encode
|
|
3192
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3193
|
+
* @static
|
|
3194
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata} message AIRichResponseContentItemMetadata message or plain object to encode
|
|
3195
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3196
|
+
* @returns {$protobuf.Writer} Writer
|
|
3197
|
+
*/
|
|
3198
|
+
AIRichResponseContentItemMetadata.encode = function encode(message, writer) {
|
|
3199
|
+
if (!writer)
|
|
3200
|
+
writer = $Writer.create();
|
|
3201
|
+
if (message.reelItem != null && Object.hasOwnProperty.call(message, "reelItem"))
|
|
3202
|
+
$root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.encode(message.reelItem, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
3203
|
+
return writer;
|
|
3204
|
+
};
|
|
3205
|
+
|
|
3206
|
+
/**
|
|
3207
|
+
* Encodes the specified AIRichResponseContentItemMetadata message, length delimited. Does not implicitly {@link waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.verify|verify} messages.
|
|
3208
|
+
* @function encodeDelimited
|
|
3209
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3210
|
+
* @static
|
|
3211
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata} message AIRichResponseContentItemMetadata message or plain object to encode
|
|
3212
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3213
|
+
* @returns {$protobuf.Writer} Writer
|
|
3214
|
+
*/
|
|
3215
|
+
AIRichResponseContentItemMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3216
|
+
return this.encode(message, writer).ldelim();
|
|
3217
|
+
};
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* Decodes a AIRichResponseContentItemMetadata message from the specified reader or buffer.
|
|
3221
|
+
* @function decode
|
|
3222
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3223
|
+
* @static
|
|
3224
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3225
|
+
* @param {number} [length] Message length if known beforehand
|
|
3226
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata} AIRichResponseContentItemMetadata
|
|
3227
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3228
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3229
|
+
*/
|
|
3230
|
+
AIRichResponseContentItemMetadata.decode = function decode(reader, length) {
|
|
3231
|
+
if (!(reader instanceof $Reader))
|
|
3232
|
+
reader = $Reader.create(reader);
|
|
3233
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata();
|
|
3234
|
+
while (reader.pos < end) {
|
|
3235
|
+
var tag = reader.uint32();
|
|
3236
|
+
switch (tag >>> 3) {
|
|
3237
|
+
case 1: {
|
|
3238
|
+
message.reelItem = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.decode(reader, reader.uint32());
|
|
3239
|
+
break;
|
|
3240
|
+
}
|
|
3241
|
+
default:
|
|
3242
|
+
reader.skipType(tag & 7);
|
|
3243
|
+
break;
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
return message;
|
|
3247
|
+
};
|
|
3248
|
+
|
|
3249
|
+
/**
|
|
3250
|
+
* Decodes a AIRichResponseContentItemMetadata message from the specified reader or buffer, length delimited.
|
|
3251
|
+
* @function decodeDelimited
|
|
3252
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3253
|
+
* @static
|
|
3254
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3255
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata} AIRichResponseContentItemMetadata
|
|
3256
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3257
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3258
|
+
*/
|
|
3259
|
+
AIRichResponseContentItemMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
3260
|
+
if (!(reader instanceof $Reader))
|
|
3261
|
+
reader = new $Reader(reader);
|
|
3262
|
+
return this.decode(reader, reader.uint32());
|
|
3263
|
+
};
|
|
3264
|
+
|
|
3265
|
+
/**
|
|
3266
|
+
* Verifies a AIRichResponseContentItemMetadata message.
|
|
3267
|
+
* @function verify
|
|
3268
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3269
|
+
* @static
|
|
3270
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3271
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3272
|
+
*/
|
|
3273
|
+
AIRichResponseContentItemMetadata.verify = function verify(message) {
|
|
3274
|
+
if (typeof message !== "object" || message === null)
|
|
3275
|
+
return "object expected";
|
|
3276
|
+
var properties = {};
|
|
3277
|
+
if (message.reelItem != null && message.hasOwnProperty("reelItem")) {
|
|
3278
|
+
properties.aIRichResponseContentItem = 1;
|
|
3279
|
+
{
|
|
3280
|
+
var error = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.verify(message.reelItem);
|
|
3281
|
+
if (error)
|
|
3282
|
+
return "reelItem." + error;
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
return null;
|
|
3286
|
+
};
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* Creates a AIRichResponseContentItemMetadata message from a plain object. Also converts values to their respective internal types.
|
|
3290
|
+
* @function fromObject
|
|
3291
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3292
|
+
* @static
|
|
3293
|
+
* @param {Object.<string,*>} object Plain object
|
|
3294
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata} AIRichResponseContentItemMetadata
|
|
3295
|
+
*/
|
|
3296
|
+
AIRichResponseContentItemMetadata.fromObject = function fromObject(object) {
|
|
3297
|
+
if (object instanceof $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata)
|
|
3298
|
+
return object;
|
|
3299
|
+
var message = new $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata();
|
|
3300
|
+
if (object.reelItem != null) {
|
|
3301
|
+
if (typeof object.reelItem !== "object")
|
|
3302
|
+
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata.reelItem: object expected");
|
|
3303
|
+
message.reelItem = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.fromObject(object.reelItem);
|
|
3304
|
+
}
|
|
3305
|
+
return message;
|
|
3306
|
+
};
|
|
3307
|
+
|
|
3308
|
+
/**
|
|
3309
|
+
* Creates a plain object from a AIRichResponseContentItemMetadata message. Also converts values to other types if specified.
|
|
3310
|
+
* @function toObject
|
|
3311
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3312
|
+
* @static
|
|
3313
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata} message AIRichResponseContentItemMetadata
|
|
3314
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3315
|
+
* @returns {Object.<string,*>} Plain object
|
|
3316
|
+
*/
|
|
3317
|
+
AIRichResponseContentItemMetadata.toObject = function toObject(message, options) {
|
|
3318
|
+
if (!options)
|
|
3319
|
+
options = {};
|
|
3320
|
+
var object = {};
|
|
3321
|
+
if (message.reelItem != null && message.hasOwnProperty("reelItem")) {
|
|
3322
|
+
object.reelItem = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.toObject(message.reelItem, options);
|
|
3323
|
+
if (options.oneofs)
|
|
3324
|
+
object.aIRichResponseContentItem = "reelItem";
|
|
3325
|
+
}
|
|
3326
|
+
return object;
|
|
3327
|
+
};
|
|
3328
|
+
|
|
3329
|
+
/**
|
|
3330
|
+
* Converts this AIRichResponseContentItemMetadata to JSON.
|
|
3331
|
+
* @function toJSON
|
|
3332
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3333
|
+
* @instance
|
|
3334
|
+
* @returns {Object.<string,*>} JSON object
|
|
3335
|
+
*/
|
|
3336
|
+
AIRichResponseContentItemMetadata.prototype.toJSON = function toJSON() {
|
|
3337
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3338
|
+
};
|
|
3339
|
+
|
|
3340
|
+
/**
|
|
3341
|
+
* Gets the default type url for AIRichResponseContentItemMetadata
|
|
3342
|
+
* @function getTypeUrl
|
|
3343
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata
|
|
3344
|
+
* @static
|
|
3345
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3346
|
+
* @returns {string} The default type url
|
|
3347
|
+
*/
|
|
3348
|
+
AIRichResponseContentItemMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3349
|
+
if (typeUrlPrefix === undefined) {
|
|
3350
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3351
|
+
}
|
|
3352
|
+
return typeUrlPrefix + "/waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseContentItemMetadata";
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3355
|
+
return AIRichResponseContentItemMetadata;
|
|
3356
|
+
})();
|
|
3357
|
+
|
|
3358
|
+
AIRichResponseContentItemsMetadata.AIRichResponseReelItem = (function() {
|
|
3359
|
+
|
|
3360
|
+
/**
|
|
3361
|
+
* Properties of a AIRichResponseReelItem.
|
|
3362
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
3363
|
+
* @interface IAIRichResponseReelItem
|
|
3364
|
+
* @property {string|null} [title] AIRichResponseReelItem title
|
|
3365
|
+
* @property {string|null} [profileIconUrl] AIRichResponseReelItem profileIconUrl
|
|
3366
|
+
* @property {string|null} [thumbnailUrl] AIRichResponseReelItem thumbnailUrl
|
|
3367
|
+
* @property {string|null} [videoUrl] AIRichResponseReelItem videoUrl
|
|
3368
|
+
*/
|
|
3369
|
+
|
|
3370
|
+
/**
|
|
3371
|
+
* Constructs a new AIRichResponseReelItem.
|
|
3372
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata
|
|
3373
|
+
* @classdesc Represents a AIRichResponseReelItem.
|
|
3374
|
+
* @implements IAIRichResponseReelItem
|
|
3375
|
+
* @constructor
|
|
3376
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem=} [properties] Properties to set
|
|
3377
|
+
*/
|
|
3378
|
+
function AIRichResponseReelItem(properties) {
|
|
3379
|
+
if (properties)
|
|
3380
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3381
|
+
if (properties[keys[i]] != null)
|
|
3382
|
+
this[keys[i]] = properties[keys[i]];
|
|
3383
|
+
}
|
|
3384
|
+
|
|
3385
|
+
/**
|
|
3386
|
+
* AIRichResponseReelItem title.
|
|
3387
|
+
* @member {string|null|undefined} title
|
|
3388
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3389
|
+
* @instance
|
|
3390
|
+
*/
|
|
3391
|
+
AIRichResponseReelItem.prototype.title = null;
|
|
3392
|
+
|
|
3393
|
+
/**
|
|
3394
|
+
* AIRichResponseReelItem profileIconUrl.
|
|
3395
|
+
* @member {string|null|undefined} profileIconUrl
|
|
3396
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3397
|
+
* @instance
|
|
3398
|
+
*/
|
|
3399
|
+
AIRichResponseReelItem.prototype.profileIconUrl = null;
|
|
3400
|
+
|
|
3401
|
+
/**
|
|
3402
|
+
* AIRichResponseReelItem thumbnailUrl.
|
|
3403
|
+
* @member {string|null|undefined} thumbnailUrl
|
|
3404
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3405
|
+
* @instance
|
|
3406
|
+
*/
|
|
3407
|
+
AIRichResponseReelItem.prototype.thumbnailUrl = null;
|
|
3408
|
+
|
|
3409
|
+
/**
|
|
3410
|
+
* AIRichResponseReelItem videoUrl.
|
|
3411
|
+
* @member {string|null|undefined} videoUrl
|
|
3412
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3413
|
+
* @instance
|
|
3414
|
+
*/
|
|
3415
|
+
AIRichResponseReelItem.prototype.videoUrl = null;
|
|
3416
|
+
|
|
3417
|
+
// OneOf field names bound to virtual getters and setters
|
|
3418
|
+
var $oneOfFields;
|
|
3419
|
+
|
|
3420
|
+
// Virtual OneOf for proto3 optional field
|
|
3421
|
+
Object.defineProperty(AIRichResponseReelItem.prototype, "_title", {
|
|
3422
|
+
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
|
3423
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3424
|
+
});
|
|
3425
|
+
|
|
3426
|
+
// Virtual OneOf for proto3 optional field
|
|
3427
|
+
Object.defineProperty(AIRichResponseReelItem.prototype, "_profileIconUrl", {
|
|
3428
|
+
get: $util.oneOfGetter($oneOfFields = ["profileIconUrl"]),
|
|
3429
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3430
|
+
});
|
|
3431
|
+
|
|
3432
|
+
// Virtual OneOf for proto3 optional field
|
|
3433
|
+
Object.defineProperty(AIRichResponseReelItem.prototype, "_thumbnailUrl", {
|
|
3434
|
+
get: $util.oneOfGetter($oneOfFields = ["thumbnailUrl"]),
|
|
3435
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3436
|
+
});
|
|
3437
|
+
|
|
3438
|
+
// Virtual OneOf for proto3 optional field
|
|
3439
|
+
Object.defineProperty(AIRichResponseReelItem.prototype, "_videoUrl", {
|
|
3440
|
+
get: $util.oneOfGetter($oneOfFields = ["videoUrl"]),
|
|
3441
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3442
|
+
});
|
|
3443
|
+
|
|
3444
|
+
/**
|
|
3445
|
+
* Creates a new AIRichResponseReelItem instance using the specified properties.
|
|
3446
|
+
* @function create
|
|
3447
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3448
|
+
* @static
|
|
3449
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem=} [properties] Properties to set
|
|
3450
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem} AIRichResponseReelItem instance
|
|
3451
|
+
*/
|
|
3452
|
+
AIRichResponseReelItem.create = function create(properties) {
|
|
3453
|
+
return new AIRichResponseReelItem(properties);
|
|
3454
|
+
};
|
|
3455
|
+
|
|
3456
|
+
/**
|
|
3457
|
+
* Encodes the specified AIRichResponseReelItem message. Does not implicitly {@link waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.verify|verify} messages.
|
|
3458
|
+
* @function encode
|
|
3459
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3460
|
+
* @static
|
|
3461
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem} message AIRichResponseReelItem message or plain object to encode
|
|
3462
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3463
|
+
* @returns {$protobuf.Writer} Writer
|
|
3464
|
+
*/
|
|
3465
|
+
AIRichResponseReelItem.encode = function encode(message, writer) {
|
|
3466
|
+
if (!writer)
|
|
3467
|
+
writer = $Writer.create();
|
|
3468
|
+
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
|
3469
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.title);
|
|
3470
|
+
if (message.profileIconUrl != null && Object.hasOwnProperty.call(message, "profileIconUrl"))
|
|
3471
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileIconUrl);
|
|
3472
|
+
if (message.thumbnailUrl != null && Object.hasOwnProperty.call(message, "thumbnailUrl"))
|
|
3473
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.thumbnailUrl);
|
|
3474
|
+
if (message.videoUrl != null && Object.hasOwnProperty.call(message, "videoUrl"))
|
|
3475
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.videoUrl);
|
|
3476
|
+
return writer;
|
|
3477
|
+
};
|
|
3478
|
+
|
|
3479
|
+
/**
|
|
3480
|
+
* Encodes the specified AIRichResponseReelItem message, length delimited. Does not implicitly {@link waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem.verify|verify} messages.
|
|
3481
|
+
* @function encodeDelimited
|
|
3482
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3483
|
+
* @static
|
|
3484
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseReelItem} message AIRichResponseReelItem message or plain object to encode
|
|
3485
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3486
|
+
* @returns {$protobuf.Writer} Writer
|
|
3487
|
+
*/
|
|
3488
|
+
AIRichResponseReelItem.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3489
|
+
return this.encode(message, writer).ldelim();
|
|
3490
|
+
};
|
|
3491
|
+
|
|
3492
|
+
/**
|
|
3493
|
+
* Decodes a AIRichResponseReelItem message from the specified reader or buffer.
|
|
3494
|
+
* @function decode
|
|
3495
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3496
|
+
* @static
|
|
3497
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3498
|
+
* @param {number} [length] Message length if known beforehand
|
|
3499
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem} AIRichResponseReelItem
|
|
3500
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3501
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3502
|
+
*/
|
|
3503
|
+
AIRichResponseReelItem.decode = function decode(reader, length) {
|
|
3504
|
+
if (!(reader instanceof $Reader))
|
|
3505
|
+
reader = $Reader.create(reader);
|
|
3506
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem();
|
|
3507
|
+
while (reader.pos < end) {
|
|
3508
|
+
var tag = reader.uint32();
|
|
3509
|
+
switch (tag >>> 3) {
|
|
3510
|
+
case 1: {
|
|
3511
|
+
message.title = reader.string();
|
|
3512
|
+
break;
|
|
3513
|
+
}
|
|
3514
|
+
case 2: {
|
|
3515
|
+
message.profileIconUrl = reader.string();
|
|
3516
|
+
break;
|
|
3517
|
+
}
|
|
3518
|
+
case 3: {
|
|
3519
|
+
message.thumbnailUrl = reader.string();
|
|
3520
|
+
break;
|
|
3521
|
+
}
|
|
3522
|
+
case 4: {
|
|
3523
|
+
message.videoUrl = reader.string();
|
|
3524
|
+
break;
|
|
3525
|
+
}
|
|
3526
|
+
default:
|
|
3527
|
+
reader.skipType(tag & 7);
|
|
3528
|
+
break;
|
|
3529
|
+
}
|
|
3530
|
+
}
|
|
3531
|
+
return message;
|
|
3532
|
+
};
|
|
3533
|
+
|
|
3534
|
+
/**
|
|
3535
|
+
* Decodes a AIRichResponseReelItem message from the specified reader or buffer, length delimited.
|
|
3536
|
+
* @function decodeDelimited
|
|
3537
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3538
|
+
* @static
|
|
3539
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3540
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem} AIRichResponseReelItem
|
|
3541
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3542
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3543
|
+
*/
|
|
3544
|
+
AIRichResponseReelItem.decodeDelimited = function decodeDelimited(reader) {
|
|
3545
|
+
if (!(reader instanceof $Reader))
|
|
3546
|
+
reader = new $Reader(reader);
|
|
3547
|
+
return this.decode(reader, reader.uint32());
|
|
3548
|
+
};
|
|
3549
|
+
|
|
3550
|
+
/**
|
|
3551
|
+
* Verifies a AIRichResponseReelItem message.
|
|
3552
|
+
* @function verify
|
|
3553
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3554
|
+
* @static
|
|
3555
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3556
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3557
|
+
*/
|
|
3558
|
+
AIRichResponseReelItem.verify = function verify(message) {
|
|
3559
|
+
if (typeof message !== "object" || message === null)
|
|
3560
|
+
return "object expected";
|
|
3561
|
+
var properties = {};
|
|
3562
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
3563
|
+
properties._title = 1;
|
|
3564
|
+
if (!$util.isString(message.title))
|
|
3565
|
+
return "title: string expected";
|
|
3566
|
+
}
|
|
3567
|
+
if (message.profileIconUrl != null && message.hasOwnProperty("profileIconUrl")) {
|
|
3568
|
+
properties._profileIconUrl = 1;
|
|
3569
|
+
if (!$util.isString(message.profileIconUrl))
|
|
3570
|
+
return "profileIconUrl: string expected";
|
|
3571
|
+
}
|
|
3572
|
+
if (message.thumbnailUrl != null && message.hasOwnProperty("thumbnailUrl")) {
|
|
3573
|
+
properties._thumbnailUrl = 1;
|
|
3574
|
+
if (!$util.isString(message.thumbnailUrl))
|
|
3575
|
+
return "thumbnailUrl: string expected";
|
|
3576
|
+
}
|
|
3577
|
+
if (message.videoUrl != null && message.hasOwnProperty("videoUrl")) {
|
|
3578
|
+
properties._videoUrl = 1;
|
|
3579
|
+
if (!$util.isString(message.videoUrl))
|
|
3580
|
+
return "videoUrl: string expected";
|
|
3581
|
+
}
|
|
3582
|
+
return null;
|
|
3583
|
+
};
|
|
3584
|
+
|
|
3585
|
+
/**
|
|
3586
|
+
* Creates a AIRichResponseReelItem message from a plain object. Also converts values to their respective internal types.
|
|
3587
|
+
* @function fromObject
|
|
3588
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3589
|
+
* @static
|
|
3590
|
+
* @param {Object.<string,*>} object Plain object
|
|
3591
|
+
* @returns {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem} AIRichResponseReelItem
|
|
3592
|
+
*/
|
|
3593
|
+
AIRichResponseReelItem.fromObject = function fromObject(object) {
|
|
3594
|
+
if (object instanceof $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem)
|
|
3595
|
+
return object;
|
|
3596
|
+
var message = new $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem();
|
|
3597
|
+
if (object.title != null)
|
|
3598
|
+
message.title = String(object.title);
|
|
3599
|
+
if (object.profileIconUrl != null)
|
|
3600
|
+
message.profileIconUrl = String(object.profileIconUrl);
|
|
3601
|
+
if (object.thumbnailUrl != null)
|
|
3602
|
+
message.thumbnailUrl = String(object.thumbnailUrl);
|
|
3603
|
+
if (object.videoUrl != null)
|
|
3604
|
+
message.videoUrl = String(object.videoUrl);
|
|
3605
|
+
return message;
|
|
3606
|
+
};
|
|
3607
|
+
|
|
3608
|
+
/**
|
|
3609
|
+
* Creates a plain object from a AIRichResponseReelItem message. Also converts values to other types if specified.
|
|
3610
|
+
* @function toObject
|
|
3611
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3612
|
+
* @static
|
|
3613
|
+
* @param {waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem} message AIRichResponseReelItem
|
|
3614
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3615
|
+
* @returns {Object.<string,*>} Plain object
|
|
3616
|
+
*/
|
|
3617
|
+
AIRichResponseReelItem.toObject = function toObject(message, options) {
|
|
3618
|
+
if (!options)
|
|
3619
|
+
options = {};
|
|
3620
|
+
var object = {};
|
|
3621
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
3622
|
+
object.title = message.title;
|
|
3623
|
+
if (options.oneofs)
|
|
3624
|
+
object._title = "title";
|
|
3625
|
+
}
|
|
3626
|
+
if (message.profileIconUrl != null && message.hasOwnProperty("profileIconUrl")) {
|
|
3627
|
+
object.profileIconUrl = message.profileIconUrl;
|
|
3628
|
+
if (options.oneofs)
|
|
3629
|
+
object._profileIconUrl = "profileIconUrl";
|
|
3630
|
+
}
|
|
3631
|
+
if (message.thumbnailUrl != null && message.hasOwnProperty("thumbnailUrl")) {
|
|
3632
|
+
object.thumbnailUrl = message.thumbnailUrl;
|
|
3633
|
+
if (options.oneofs)
|
|
3634
|
+
object._thumbnailUrl = "thumbnailUrl";
|
|
3635
|
+
}
|
|
3636
|
+
if (message.videoUrl != null && message.hasOwnProperty("videoUrl")) {
|
|
3637
|
+
object.videoUrl = message.videoUrl;
|
|
3638
|
+
if (options.oneofs)
|
|
3639
|
+
object._videoUrl = "videoUrl";
|
|
3640
|
+
}
|
|
3641
|
+
return object;
|
|
3642
|
+
};
|
|
3643
|
+
|
|
3644
|
+
/**
|
|
3645
|
+
* Converts this AIRichResponseReelItem to JSON.
|
|
3646
|
+
* @function toJSON
|
|
3647
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3648
|
+
* @instance
|
|
3649
|
+
* @returns {Object.<string,*>} JSON object
|
|
3650
|
+
*/
|
|
3651
|
+
AIRichResponseReelItem.prototype.toJSON = function toJSON() {
|
|
3652
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3653
|
+
};
|
|
3654
|
+
|
|
3655
|
+
/**
|
|
3656
|
+
* Gets the default type url for AIRichResponseReelItem
|
|
3657
|
+
* @function getTypeUrl
|
|
3658
|
+
* @memberof waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem
|
|
3659
|
+
* @static
|
|
3660
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3661
|
+
* @returns {string} The default type url
|
|
3662
|
+
*/
|
|
3663
|
+
AIRichResponseReelItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3664
|
+
if (typeUrlPrefix === undefined) {
|
|
3665
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3666
|
+
}
|
|
3667
|
+
return typeUrlPrefix + "/waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem";
|
|
3668
|
+
};
|
|
3669
|
+
|
|
3670
|
+
return AIRichResponseReelItem;
|
|
3671
|
+
})();
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* ContentType enum.
|
|
3675
|
+
* @name waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType
|
|
3676
|
+
* @enum {number}
|
|
3677
|
+
* @property {number} DEFAULT=0 DEFAULT value
|
|
3678
|
+
* @property {number} CAROUSEL=1 CAROUSEL value
|
|
3679
|
+
*/
|
|
3680
|
+
AIRichResponseContentItemsMetadata.ContentType = (function() {
|
|
3681
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
3682
|
+
values[valuesById[0] = "DEFAULT"] = 0;
|
|
3683
|
+
values[valuesById[1] = "CAROUSEL"] = 1;
|
|
3684
|
+
return values;
|
|
3685
|
+
})();
|
|
3686
|
+
|
|
3687
|
+
return AIRichResponseContentItemsMetadata;
|
|
3688
|
+
})();
|
|
3689
|
+
|
|
2854
3690
|
AIRichResponseMessage.AIRichResponseDynamicMetadata = (function() {
|
|
2855
3691
|
|
|
2856
3692
|
/**
|
|
@@ -4742,10 +5578,10 @@ $root.waproto = (function() {
|
|
|
4742
5578
|
* @memberof waproto.AIRichResponseMessage
|
|
4743
5579
|
* @interface IAIRichResponseMapMetadata
|
|
4744
5580
|
* @property {number|null} [centerLatitude] AIRichResponseMapMetadata centerLatitude
|
|
4745
|
-
* @property {number|null} [
|
|
5581
|
+
* @property {number|null} [centerLongitude] AIRichResponseMapMetadata centerLongitude
|
|
4746
5582
|
* @property {number|null} [latitudeDelta] AIRichResponseMapMetadata latitudeDelta
|
|
4747
|
-
* @property {number|null} [
|
|
4748
|
-
* @property {Array.<waproto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation>|null} [
|
|
5583
|
+
* @property {number|null} [longitudeDelta] AIRichResponseMapMetadata longitudeDelta
|
|
5584
|
+
* @property {Array.<waproto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation>|null} [annotations] AIRichResponseMapMetadata annotations
|
|
4749
5585
|
* @property {boolean|null} [showInfoList] AIRichResponseMapMetadata showInfoList
|
|
4750
5586
|
*/
|
|
4751
5587
|
|
|
@@ -4758,7 +5594,7 @@ $root.waproto = (function() {
|
|
|
4758
5594
|
* @param {waproto.AIRichResponseMessage.IAIRichResponseMapMetadata=} [properties] Properties to set
|
|
4759
5595
|
*/
|
|
4760
5596
|
function AIRichResponseMapMetadata(properties) {
|
|
4761
|
-
this.
|
|
5597
|
+
this.annotations = [];
|
|
4762
5598
|
if (properties)
|
|
4763
5599
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4764
5600
|
if (properties[keys[i]] != null)
|
|
@@ -4774,12 +5610,12 @@ $root.waproto = (function() {
|
|
|
4774
5610
|
AIRichResponseMapMetadata.prototype.centerLatitude = null;
|
|
4775
5611
|
|
|
4776
5612
|
/**
|
|
4777
|
-
* AIRichResponseMapMetadata
|
|
4778
|
-
* @member {number|null|undefined}
|
|
5613
|
+
* AIRichResponseMapMetadata centerLongitude.
|
|
5614
|
+
* @member {number|null|undefined} centerLongitude
|
|
4779
5615
|
* @memberof waproto.AIRichResponseMessage.AIRichResponseMapMetadata
|
|
4780
5616
|
* @instance
|
|
4781
5617
|
*/
|
|
4782
|
-
AIRichResponseMapMetadata.prototype.
|
|
5618
|
+
AIRichResponseMapMetadata.prototype.centerLongitude = null;
|
|
4783
5619
|
|
|
4784
5620
|
/**
|
|
4785
5621
|
* AIRichResponseMapMetadata latitudeDelta.
|
|
@@ -4790,20 +5626,20 @@ $root.waproto = (function() {
|
|
|
4790
5626
|
AIRichResponseMapMetadata.prototype.latitudeDelta = null;
|
|
4791
5627
|
|
|
4792
5628
|
/**
|
|
4793
|
-
* AIRichResponseMapMetadata
|
|
4794
|
-
* @member {number|null|undefined}
|
|
5629
|
+
* AIRichResponseMapMetadata longitudeDelta.
|
|
5630
|
+
* @member {number|null|undefined} longitudeDelta
|
|
4795
5631
|
* @memberof waproto.AIRichResponseMessage.AIRichResponseMapMetadata
|
|
4796
5632
|
* @instance
|
|
4797
5633
|
*/
|
|
4798
|
-
AIRichResponseMapMetadata.prototype.
|
|
5634
|
+
AIRichResponseMapMetadata.prototype.longitudeDelta = null;
|
|
4799
5635
|
|
|
4800
5636
|
/**
|
|
4801
|
-
* AIRichResponseMapMetadata
|
|
4802
|
-
* @member {Array.<waproto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation>}
|
|
5637
|
+
* AIRichResponseMapMetadata annotations.
|
|
5638
|
+
* @member {Array.<waproto.AIRichResponseMessage.AIRichResponseMapMetadata.IAIRichResponseMapAnnotation>} annotations
|
|
4803
5639
|
* @memberof waproto.AIRichResponseMessage.AIRichResponseMapMetadata
|
|
4804
5640
|
* @instance
|
|
4805
5641
|
*/
|
|
4806
|
-
AIRichResponseMapMetadata.prototype.
|
|
5642
|
+
AIRichResponseMapMetadata.prototype.annotations = $util.emptyArray;
|
|
4807
5643
|
|
|
4808
5644
|
/**
|
|
4809
5645
|
* AIRichResponseMapMetadata showInfoList.
|
|
@@ -4823,8 +5659,8 @@ $root.waproto = (function() {
|
|
|
4823
5659
|
});
|
|
4824
5660
|
|
|
4825
5661
|
// Virtual OneOf for proto3 optional field
|
|
4826
|
-
Object.defineProperty(AIRichResponseMapMetadata.prototype, "
|
|
4827
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
5662
|
+
Object.defineProperty(AIRichResponseMapMetadata.prototype, "_centerLongitude", {
|
|
5663
|
+
get: $util.oneOfGetter($oneOfFields = ["centerLongitude"]),
|
|
4828
5664
|
set: $util.oneOfSetter($oneOfFields)
|
|
4829
5665
|
});
|
|
4830
5666
|
|
|
@@ -4835,8 +5671,8 @@ $root.waproto = (function() {
|
|
|
4835
5671
|
});
|
|
4836
5672
|
|
|
4837
5673
|
// Virtual OneOf for proto3 optional field
|
|
4838
|
-
Object.defineProperty(AIRichResponseMapMetadata.prototype, "
|
|
4839
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
5674
|
+
Object.defineProperty(AIRichResponseMapMetadata.prototype, "_longitudeDelta", {
|
|
5675
|
+
get: $util.oneOfGetter($oneOfFields = ["longitudeDelta"]),
|
|
4840
5676
|
set: $util.oneOfSetter($oneOfFields)
|
|
4841
5677
|
});
|
|
4842
5678
|
|
|
@@ -4872,15 +5708,15 @@ $root.waproto = (function() {
|
|
|
4872
5708
|
writer = $Writer.create();
|
|
4873
5709
|
if (message.centerLatitude != null && Object.hasOwnProperty.call(message, "centerLatitude"))
|
|
4874
5710
|
writer.uint32(/* id 1, wireType 1 =*/9).double(message.centerLatitude);
|
|
4875
|
-
if (message.
|
|
4876
|
-
writer.uint32(/* id 2, wireType 1 =*/17).double(message.
|
|
5711
|
+
if (message.centerLongitude != null && Object.hasOwnProperty.call(message, "centerLongitude"))
|
|
5712
|
+
writer.uint32(/* id 2, wireType 1 =*/17).double(message.centerLongitude);
|
|
4877
5713
|
if (message.latitudeDelta != null && Object.hasOwnProperty.call(message, "latitudeDelta"))
|
|
4878
5714
|
writer.uint32(/* id 3, wireType 1 =*/25).double(message.latitudeDelta);
|
|
4879
|
-
if (message.
|
|
4880
|
-
writer.uint32(/* id 4, wireType 1 =*/33).double(message.
|
|
4881
|
-
if (message.
|
|
4882
|
-
for (var i = 0; i < message.
|
|
4883
|
-
$root.waproto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.encode(message.
|
|
5715
|
+
if (message.longitudeDelta != null && Object.hasOwnProperty.call(message, "longitudeDelta"))
|
|
5716
|
+
writer.uint32(/* id 4, wireType 1 =*/33).double(message.longitudeDelta);
|
|
5717
|
+
if (message.annotations != null && message.annotations.length)
|
|
5718
|
+
for (var i = 0; i < message.annotations.length; ++i)
|
|
5719
|
+
$root.waproto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.encode(message.annotations[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
4884
5720
|
if (message.showInfoList != null && Object.hasOwnProperty.call(message, "showInfoList"))
|
|
4885
5721
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.showInfoList);
|
|
4886
5722
|
return writer;
|
|
@@ -4922,7 +5758,7 @@ $root.waproto = (function() {
|
|
|
4922
5758
|
break;
|
|
4923
5759
|
}
|
|
4924
5760
|
case 2: {
|
|
4925
|
-
message.
|
|
5761
|
+
message.centerLongitude = reader.double();
|
|
4926
5762
|
break;
|
|
4927
5763
|
}
|
|
4928
5764
|
case 3: {
|
|
@@ -4930,13 +5766,13 @@ $root.waproto = (function() {
|
|
|
4930
5766
|
break;
|
|
4931
5767
|
}
|
|
4932
5768
|
case 4: {
|
|
4933
|
-
message.
|
|
5769
|
+
message.longitudeDelta = reader.double();
|
|
4934
5770
|
break;
|
|
4935
5771
|
}
|
|
4936
5772
|
case 5: {
|
|
4937
|
-
if (!(message.
|
|
4938
|
-
message.
|
|
4939
|
-
message.
|
|
5773
|
+
if (!(message.annotations && message.annotations.length))
|
|
5774
|
+
message.annotations = [];
|
|
5775
|
+
message.annotations.push($root.waproto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.decode(reader, reader.uint32()));
|
|
4940
5776
|
break;
|
|
4941
5777
|
}
|
|
4942
5778
|
case 6: {
|
|
@@ -4984,28 +5820,28 @@ $root.waproto = (function() {
|
|
|
4984
5820
|
if (typeof message.centerLatitude !== "number")
|
|
4985
5821
|
return "centerLatitude: number expected";
|
|
4986
5822
|
}
|
|
4987
|
-
if (message.
|
|
4988
|
-
properties.
|
|
4989
|
-
if (typeof message.
|
|
4990
|
-
return "
|
|
5823
|
+
if (message.centerLongitude != null && message.hasOwnProperty("centerLongitude")) {
|
|
5824
|
+
properties._centerLongitude = 1;
|
|
5825
|
+
if (typeof message.centerLongitude !== "number")
|
|
5826
|
+
return "centerLongitude: number expected";
|
|
4991
5827
|
}
|
|
4992
5828
|
if (message.latitudeDelta != null && message.hasOwnProperty("latitudeDelta")) {
|
|
4993
5829
|
properties._latitudeDelta = 1;
|
|
4994
5830
|
if (typeof message.latitudeDelta !== "number")
|
|
4995
5831
|
return "latitudeDelta: number expected";
|
|
4996
5832
|
}
|
|
4997
|
-
if (message.
|
|
4998
|
-
properties.
|
|
4999
|
-
if (typeof message.
|
|
5000
|
-
return "
|
|
5833
|
+
if (message.longitudeDelta != null && message.hasOwnProperty("longitudeDelta")) {
|
|
5834
|
+
properties._longitudeDelta = 1;
|
|
5835
|
+
if (typeof message.longitudeDelta !== "number")
|
|
5836
|
+
return "longitudeDelta: number expected";
|
|
5001
5837
|
}
|
|
5002
|
-
if (message.
|
|
5003
|
-
if (!Array.isArray(message.
|
|
5004
|
-
return "
|
|
5005
|
-
for (var i = 0; i < message.
|
|
5006
|
-
var error = $root.waproto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.verify(message.
|
|
5838
|
+
if (message.annotations != null && message.hasOwnProperty("annotations")) {
|
|
5839
|
+
if (!Array.isArray(message.annotations))
|
|
5840
|
+
return "annotations: array expected";
|
|
5841
|
+
for (var i = 0; i < message.annotations.length; ++i) {
|
|
5842
|
+
var error = $root.waproto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.verify(message.annotations[i]);
|
|
5007
5843
|
if (error)
|
|
5008
|
-
return "
|
|
5844
|
+
return "annotations." + error;
|
|
5009
5845
|
}
|
|
5010
5846
|
}
|
|
5011
5847
|
if (message.showInfoList != null && message.hasOwnProperty("showInfoList")) {
|
|
@@ -5030,20 +5866,20 @@ $root.waproto = (function() {
|
|
|
5030
5866
|
var message = new $root.waproto.AIRichResponseMessage.AIRichResponseMapMetadata();
|
|
5031
5867
|
if (object.centerLatitude != null)
|
|
5032
5868
|
message.centerLatitude = Number(object.centerLatitude);
|
|
5033
|
-
if (object.
|
|
5034
|
-
message.
|
|
5869
|
+
if (object.centerLongitude != null)
|
|
5870
|
+
message.centerLongitude = Number(object.centerLongitude);
|
|
5035
5871
|
if (object.latitudeDelta != null)
|
|
5036
5872
|
message.latitudeDelta = Number(object.latitudeDelta);
|
|
5037
|
-
if (object.
|
|
5038
|
-
message.
|
|
5039
|
-
if (object.
|
|
5040
|
-
if (!Array.isArray(object.
|
|
5041
|
-
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseMapMetadata.
|
|
5042
|
-
message.
|
|
5043
|
-
for (var i = 0; i < object.
|
|
5044
|
-
if (typeof object.
|
|
5045
|
-
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseMapMetadata.
|
|
5046
|
-
message.
|
|
5873
|
+
if (object.longitudeDelta != null)
|
|
5874
|
+
message.longitudeDelta = Number(object.longitudeDelta);
|
|
5875
|
+
if (object.annotations) {
|
|
5876
|
+
if (!Array.isArray(object.annotations))
|
|
5877
|
+
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseMapMetadata.annotations: array expected");
|
|
5878
|
+
message.annotations = [];
|
|
5879
|
+
for (var i = 0; i < object.annotations.length; ++i) {
|
|
5880
|
+
if (typeof object.annotations[i] !== "object")
|
|
5881
|
+
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseMapMetadata.annotations: object expected");
|
|
5882
|
+
message.annotations[i] = $root.waproto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.fromObject(object.annotations[i]);
|
|
5047
5883
|
}
|
|
5048
5884
|
}
|
|
5049
5885
|
if (object.showInfoList != null)
|
|
@@ -5065,31 +5901,31 @@ $root.waproto = (function() {
|
|
|
5065
5901
|
options = {};
|
|
5066
5902
|
var object = {};
|
|
5067
5903
|
if (options.arrays || options.defaults)
|
|
5068
|
-
object.
|
|
5904
|
+
object.annotations = [];
|
|
5069
5905
|
if (message.centerLatitude != null && message.hasOwnProperty("centerLatitude")) {
|
|
5070
5906
|
object.centerLatitude = options.json && !isFinite(message.centerLatitude) ? String(message.centerLatitude) : message.centerLatitude;
|
|
5071
5907
|
if (options.oneofs)
|
|
5072
5908
|
object._centerLatitude = "centerLatitude";
|
|
5073
5909
|
}
|
|
5074
|
-
if (message.
|
|
5075
|
-
object.
|
|
5910
|
+
if (message.centerLongitude != null && message.hasOwnProperty("centerLongitude")) {
|
|
5911
|
+
object.centerLongitude = options.json && !isFinite(message.centerLongitude) ? String(message.centerLongitude) : message.centerLongitude;
|
|
5076
5912
|
if (options.oneofs)
|
|
5077
|
-
object.
|
|
5913
|
+
object._centerLongitude = "centerLongitude";
|
|
5078
5914
|
}
|
|
5079
5915
|
if (message.latitudeDelta != null && message.hasOwnProperty("latitudeDelta")) {
|
|
5080
5916
|
object.latitudeDelta = options.json && !isFinite(message.latitudeDelta) ? String(message.latitudeDelta) : message.latitudeDelta;
|
|
5081
5917
|
if (options.oneofs)
|
|
5082
5918
|
object._latitudeDelta = "latitudeDelta";
|
|
5083
5919
|
}
|
|
5084
|
-
if (message.
|
|
5085
|
-
object.
|
|
5920
|
+
if (message.longitudeDelta != null && message.hasOwnProperty("longitudeDelta")) {
|
|
5921
|
+
object.longitudeDelta = options.json && !isFinite(message.longitudeDelta) ? String(message.longitudeDelta) : message.longitudeDelta;
|
|
5086
5922
|
if (options.oneofs)
|
|
5087
|
-
object.
|
|
5923
|
+
object._longitudeDelta = "longitudeDelta";
|
|
5088
5924
|
}
|
|
5089
|
-
if (message.
|
|
5090
|
-
object.
|
|
5091
|
-
for (var j = 0; j < message.
|
|
5092
|
-
object.
|
|
5925
|
+
if (message.annotations && message.annotations.length) {
|
|
5926
|
+
object.annotations = [];
|
|
5927
|
+
for (var j = 0; j < message.annotations.length; ++j)
|
|
5928
|
+
object.annotations[j] = $root.waproto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation.toObject(message.annotations[j], options);
|
|
5093
5929
|
}
|
|
5094
5930
|
if (message.showInfoList != null && message.hasOwnProperty("showInfoList")) {
|
|
5095
5931
|
object.showInfoList = message.showInfoList;
|
|
@@ -5133,7 +5969,7 @@ $root.waproto = (function() {
|
|
|
5133
5969
|
* @interface IAIRichResponseMapAnnotation
|
|
5134
5970
|
* @property {number|null} [annotationNumber] AIRichResponseMapAnnotation annotationNumber
|
|
5135
5971
|
* @property {number|null} [latitude] AIRichResponseMapAnnotation latitude
|
|
5136
|
-
* @property {number|null} [
|
|
5972
|
+
* @property {number|null} [longitude] AIRichResponseMapAnnotation longitude
|
|
5137
5973
|
* @property {string|null} [title] AIRichResponseMapAnnotation title
|
|
5138
5974
|
* @property {string|null} [body] AIRichResponseMapAnnotation body
|
|
5139
5975
|
*/
|
|
@@ -5170,12 +6006,12 @@ $root.waproto = (function() {
|
|
|
5170
6006
|
AIRichResponseMapAnnotation.prototype.latitude = null;
|
|
5171
6007
|
|
|
5172
6008
|
/**
|
|
5173
|
-
* AIRichResponseMapAnnotation
|
|
5174
|
-
* @member {number|null|undefined}
|
|
6009
|
+
* AIRichResponseMapAnnotation longitude.
|
|
6010
|
+
* @member {number|null|undefined} longitude
|
|
5175
6011
|
* @memberof waproto.AIRichResponseMessage.AIRichResponseMapMetadata.AIRichResponseMapAnnotation
|
|
5176
6012
|
* @instance
|
|
5177
6013
|
*/
|
|
5178
|
-
AIRichResponseMapAnnotation.prototype.
|
|
6014
|
+
AIRichResponseMapAnnotation.prototype.longitude = null;
|
|
5179
6015
|
|
|
5180
6016
|
/**
|
|
5181
6017
|
* AIRichResponseMapAnnotation title.
|
|
@@ -5209,8 +6045,8 @@ $root.waproto = (function() {
|
|
|
5209
6045
|
});
|
|
5210
6046
|
|
|
5211
6047
|
// Virtual OneOf for proto3 optional field
|
|
5212
|
-
Object.defineProperty(AIRichResponseMapAnnotation.prototype, "
|
|
5213
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
6048
|
+
Object.defineProperty(AIRichResponseMapAnnotation.prototype, "_longitude", {
|
|
6049
|
+
get: $util.oneOfGetter($oneOfFields = ["longitude"]),
|
|
5214
6050
|
set: $util.oneOfSetter($oneOfFields)
|
|
5215
6051
|
});
|
|
5216
6052
|
|
|
@@ -5254,8 +6090,8 @@ $root.waproto = (function() {
|
|
|
5254
6090
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.annotationNumber);
|
|
5255
6091
|
if (message.latitude != null && Object.hasOwnProperty.call(message, "latitude"))
|
|
5256
6092
|
writer.uint32(/* id 2, wireType 1 =*/17).double(message.latitude);
|
|
5257
|
-
if (message.
|
|
5258
|
-
writer.uint32(/* id 3, wireType 1 =*/25).double(message.
|
|
6093
|
+
if (message.longitude != null && Object.hasOwnProperty.call(message, "longitude"))
|
|
6094
|
+
writer.uint32(/* id 3, wireType 1 =*/25).double(message.longitude);
|
|
5259
6095
|
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
|
5260
6096
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.title);
|
|
5261
6097
|
if (message.body != null && Object.hasOwnProperty.call(message, "body"))
|
|
@@ -5303,7 +6139,7 @@ $root.waproto = (function() {
|
|
|
5303
6139
|
break;
|
|
5304
6140
|
}
|
|
5305
6141
|
case 3: {
|
|
5306
|
-
message.
|
|
6142
|
+
message.longitude = reader.double();
|
|
5307
6143
|
break;
|
|
5308
6144
|
}
|
|
5309
6145
|
case 4: {
|
|
@@ -5360,10 +6196,10 @@ $root.waproto = (function() {
|
|
|
5360
6196
|
if (typeof message.latitude !== "number")
|
|
5361
6197
|
return "latitude: number expected";
|
|
5362
6198
|
}
|
|
5363
|
-
if (message.
|
|
5364
|
-
properties.
|
|
5365
|
-
if (typeof message.
|
|
5366
|
-
return "
|
|
6199
|
+
if (message.longitude != null && message.hasOwnProperty("longitude")) {
|
|
6200
|
+
properties._longitude = 1;
|
|
6201
|
+
if (typeof message.longitude !== "number")
|
|
6202
|
+
return "longitude: number expected";
|
|
5367
6203
|
}
|
|
5368
6204
|
if (message.title != null && message.hasOwnProperty("title")) {
|
|
5369
6205
|
properties._title = 1;
|
|
@@ -5394,8 +6230,8 @@ $root.waproto = (function() {
|
|
|
5394
6230
|
message.annotationNumber = object.annotationNumber >>> 0;
|
|
5395
6231
|
if (object.latitude != null)
|
|
5396
6232
|
message.latitude = Number(object.latitude);
|
|
5397
|
-
if (object.
|
|
5398
|
-
message.
|
|
6233
|
+
if (object.longitude != null)
|
|
6234
|
+
message.longitude = Number(object.longitude);
|
|
5399
6235
|
if (object.title != null)
|
|
5400
6236
|
message.title = String(object.title);
|
|
5401
6237
|
if (object.body != null)
|
|
@@ -5426,10 +6262,10 @@ $root.waproto = (function() {
|
|
|
5426
6262
|
if (options.oneofs)
|
|
5427
6263
|
object._latitude = "latitude";
|
|
5428
6264
|
}
|
|
5429
|
-
if (message.
|
|
5430
|
-
object.
|
|
6265
|
+
if (message.longitude != null && message.hasOwnProperty("longitude")) {
|
|
6266
|
+
object.longitude = options.json && !isFinite(message.longitude) ? String(message.longitude) : message.longitude;
|
|
5431
6267
|
if (options.oneofs)
|
|
5432
|
-
object.
|
|
6268
|
+
object._longitude = "longitude";
|
|
5433
6269
|
}
|
|
5434
6270
|
if (message.title != null && message.hasOwnProperty("title")) {
|
|
5435
6271
|
object.title = message.title;
|
|
@@ -5490,545 +6326,6 @@ $root.waproto = (function() {
|
|
|
5490
6326
|
return values;
|
|
5491
6327
|
})();
|
|
5492
6328
|
|
|
5493
|
-
AIRichResponseMessage.AIRichResponseReelsMetadata = (function() {
|
|
5494
|
-
|
|
5495
|
-
/**
|
|
5496
|
-
* Properties of a AIRichResponseReelsMetadata.
|
|
5497
|
-
* @memberof waproto.AIRichResponseMessage
|
|
5498
|
-
* @interface IAIRichResponseReelsMetadata
|
|
5499
|
-
* @property {Array.<waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.IAIRichResponseReelMetadata>|null} [reelsMetadata] AIRichResponseReelsMetadata reelsMetadata
|
|
5500
|
-
*/
|
|
5501
|
-
|
|
5502
|
-
/**
|
|
5503
|
-
* Constructs a new AIRichResponseReelsMetadata.
|
|
5504
|
-
* @memberof waproto.AIRichResponseMessage
|
|
5505
|
-
* @classdesc Represents a AIRichResponseReelsMetadata.
|
|
5506
|
-
* @implements IAIRichResponseReelsMetadata
|
|
5507
|
-
* @constructor
|
|
5508
|
-
* @param {waproto.AIRichResponseMessage.IAIRichResponseReelsMetadata=} [properties] Properties to set
|
|
5509
|
-
*/
|
|
5510
|
-
function AIRichResponseReelsMetadata(properties) {
|
|
5511
|
-
this.reelsMetadata = [];
|
|
5512
|
-
if (properties)
|
|
5513
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5514
|
-
if (properties[keys[i]] != null)
|
|
5515
|
-
this[keys[i]] = properties[keys[i]];
|
|
5516
|
-
}
|
|
5517
|
-
|
|
5518
|
-
/**
|
|
5519
|
-
* AIRichResponseReelsMetadata reelsMetadata.
|
|
5520
|
-
* @member {Array.<waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.IAIRichResponseReelMetadata>} reelsMetadata
|
|
5521
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5522
|
-
* @instance
|
|
5523
|
-
*/
|
|
5524
|
-
AIRichResponseReelsMetadata.prototype.reelsMetadata = $util.emptyArray;
|
|
5525
|
-
|
|
5526
|
-
/**
|
|
5527
|
-
* Creates a new AIRichResponseReelsMetadata instance using the specified properties.
|
|
5528
|
-
* @function create
|
|
5529
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5530
|
-
* @static
|
|
5531
|
-
* @param {waproto.AIRichResponseMessage.IAIRichResponseReelsMetadata=} [properties] Properties to set
|
|
5532
|
-
* @returns {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata} AIRichResponseReelsMetadata instance
|
|
5533
|
-
*/
|
|
5534
|
-
AIRichResponseReelsMetadata.create = function create(properties) {
|
|
5535
|
-
return new AIRichResponseReelsMetadata(properties);
|
|
5536
|
-
};
|
|
5537
|
-
|
|
5538
|
-
/**
|
|
5539
|
-
* Encodes the specified AIRichResponseReelsMetadata message. Does not implicitly {@link waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.verify|verify} messages.
|
|
5540
|
-
* @function encode
|
|
5541
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5542
|
-
* @static
|
|
5543
|
-
* @param {waproto.AIRichResponseMessage.IAIRichResponseReelsMetadata} message AIRichResponseReelsMetadata message or plain object to encode
|
|
5544
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5545
|
-
* @returns {$protobuf.Writer} Writer
|
|
5546
|
-
*/
|
|
5547
|
-
AIRichResponseReelsMetadata.encode = function encode(message, writer) {
|
|
5548
|
-
if (!writer)
|
|
5549
|
-
writer = $Writer.create();
|
|
5550
|
-
if (message.reelsMetadata != null && message.reelsMetadata.length)
|
|
5551
|
-
for (var i = 0; i < message.reelsMetadata.length; ++i)
|
|
5552
|
-
$root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata.encode(message.reelsMetadata[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
5553
|
-
return writer;
|
|
5554
|
-
};
|
|
5555
|
-
|
|
5556
|
-
/**
|
|
5557
|
-
* Encodes the specified AIRichResponseReelsMetadata message, length delimited. Does not implicitly {@link waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.verify|verify} messages.
|
|
5558
|
-
* @function encodeDelimited
|
|
5559
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5560
|
-
* @static
|
|
5561
|
-
* @param {waproto.AIRichResponseMessage.IAIRichResponseReelsMetadata} message AIRichResponseReelsMetadata message or plain object to encode
|
|
5562
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5563
|
-
* @returns {$protobuf.Writer} Writer
|
|
5564
|
-
*/
|
|
5565
|
-
AIRichResponseReelsMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5566
|
-
return this.encode(message, writer).ldelim();
|
|
5567
|
-
};
|
|
5568
|
-
|
|
5569
|
-
/**
|
|
5570
|
-
* Decodes a AIRichResponseReelsMetadata message from the specified reader or buffer.
|
|
5571
|
-
* @function decode
|
|
5572
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5573
|
-
* @static
|
|
5574
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5575
|
-
* @param {number} [length] Message length if known beforehand
|
|
5576
|
-
* @returns {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata} AIRichResponseReelsMetadata
|
|
5577
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5578
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5579
|
-
*/
|
|
5580
|
-
AIRichResponseReelsMetadata.decode = function decode(reader, length) {
|
|
5581
|
-
if (!(reader instanceof $Reader))
|
|
5582
|
-
reader = $Reader.create(reader);
|
|
5583
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata();
|
|
5584
|
-
while (reader.pos < end) {
|
|
5585
|
-
var tag = reader.uint32();
|
|
5586
|
-
switch (tag >>> 3) {
|
|
5587
|
-
case 1: {
|
|
5588
|
-
if (!(message.reelsMetadata && message.reelsMetadata.length))
|
|
5589
|
-
message.reelsMetadata = [];
|
|
5590
|
-
message.reelsMetadata.push($root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata.decode(reader, reader.uint32()));
|
|
5591
|
-
break;
|
|
5592
|
-
}
|
|
5593
|
-
default:
|
|
5594
|
-
reader.skipType(tag & 7);
|
|
5595
|
-
break;
|
|
5596
|
-
}
|
|
5597
|
-
}
|
|
5598
|
-
return message;
|
|
5599
|
-
};
|
|
5600
|
-
|
|
5601
|
-
/**
|
|
5602
|
-
* Decodes a AIRichResponseReelsMetadata message from the specified reader or buffer, length delimited.
|
|
5603
|
-
* @function decodeDelimited
|
|
5604
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5605
|
-
* @static
|
|
5606
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5607
|
-
* @returns {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata} AIRichResponseReelsMetadata
|
|
5608
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5609
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5610
|
-
*/
|
|
5611
|
-
AIRichResponseReelsMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
5612
|
-
if (!(reader instanceof $Reader))
|
|
5613
|
-
reader = new $Reader(reader);
|
|
5614
|
-
return this.decode(reader, reader.uint32());
|
|
5615
|
-
};
|
|
5616
|
-
|
|
5617
|
-
/**
|
|
5618
|
-
* Verifies a AIRichResponseReelsMetadata message.
|
|
5619
|
-
* @function verify
|
|
5620
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5621
|
-
* @static
|
|
5622
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
5623
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5624
|
-
*/
|
|
5625
|
-
AIRichResponseReelsMetadata.verify = function verify(message) {
|
|
5626
|
-
if (typeof message !== "object" || message === null)
|
|
5627
|
-
return "object expected";
|
|
5628
|
-
if (message.reelsMetadata != null && message.hasOwnProperty("reelsMetadata")) {
|
|
5629
|
-
if (!Array.isArray(message.reelsMetadata))
|
|
5630
|
-
return "reelsMetadata: array expected";
|
|
5631
|
-
for (var i = 0; i < message.reelsMetadata.length; ++i) {
|
|
5632
|
-
var error = $root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata.verify(message.reelsMetadata[i]);
|
|
5633
|
-
if (error)
|
|
5634
|
-
return "reelsMetadata." + error;
|
|
5635
|
-
}
|
|
5636
|
-
}
|
|
5637
|
-
return null;
|
|
5638
|
-
};
|
|
5639
|
-
|
|
5640
|
-
/**
|
|
5641
|
-
* Creates a AIRichResponseReelsMetadata message from a plain object. Also converts values to their respective internal types.
|
|
5642
|
-
* @function fromObject
|
|
5643
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5644
|
-
* @static
|
|
5645
|
-
* @param {Object.<string,*>} object Plain object
|
|
5646
|
-
* @returns {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata} AIRichResponseReelsMetadata
|
|
5647
|
-
*/
|
|
5648
|
-
AIRichResponseReelsMetadata.fromObject = function fromObject(object) {
|
|
5649
|
-
if (object instanceof $root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata)
|
|
5650
|
-
return object;
|
|
5651
|
-
var message = new $root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata();
|
|
5652
|
-
if (object.reelsMetadata) {
|
|
5653
|
-
if (!Array.isArray(object.reelsMetadata))
|
|
5654
|
-
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.reelsMetadata: array expected");
|
|
5655
|
-
message.reelsMetadata = [];
|
|
5656
|
-
for (var i = 0; i < object.reelsMetadata.length; ++i) {
|
|
5657
|
-
if (typeof object.reelsMetadata[i] !== "object")
|
|
5658
|
-
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.reelsMetadata: object expected");
|
|
5659
|
-
message.reelsMetadata[i] = $root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata.fromObject(object.reelsMetadata[i]);
|
|
5660
|
-
}
|
|
5661
|
-
}
|
|
5662
|
-
return message;
|
|
5663
|
-
};
|
|
5664
|
-
|
|
5665
|
-
/**
|
|
5666
|
-
* Creates a plain object from a AIRichResponseReelsMetadata message. Also converts values to other types if specified.
|
|
5667
|
-
* @function toObject
|
|
5668
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5669
|
-
* @static
|
|
5670
|
-
* @param {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata} message AIRichResponseReelsMetadata
|
|
5671
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5672
|
-
* @returns {Object.<string,*>} Plain object
|
|
5673
|
-
*/
|
|
5674
|
-
AIRichResponseReelsMetadata.toObject = function toObject(message, options) {
|
|
5675
|
-
if (!options)
|
|
5676
|
-
options = {};
|
|
5677
|
-
var object = {};
|
|
5678
|
-
if (options.arrays || options.defaults)
|
|
5679
|
-
object.reelsMetadata = [];
|
|
5680
|
-
if (message.reelsMetadata && message.reelsMetadata.length) {
|
|
5681
|
-
object.reelsMetadata = [];
|
|
5682
|
-
for (var j = 0; j < message.reelsMetadata.length; ++j)
|
|
5683
|
-
object.reelsMetadata[j] = $root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata.toObject(message.reelsMetadata[j], options);
|
|
5684
|
-
}
|
|
5685
|
-
return object;
|
|
5686
|
-
};
|
|
5687
|
-
|
|
5688
|
-
/**
|
|
5689
|
-
* Converts this AIRichResponseReelsMetadata to JSON.
|
|
5690
|
-
* @function toJSON
|
|
5691
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5692
|
-
* @instance
|
|
5693
|
-
* @returns {Object.<string,*>} JSON object
|
|
5694
|
-
*/
|
|
5695
|
-
AIRichResponseReelsMetadata.prototype.toJSON = function toJSON() {
|
|
5696
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5697
|
-
};
|
|
5698
|
-
|
|
5699
|
-
/**
|
|
5700
|
-
* Gets the default type url for AIRichResponseReelsMetadata
|
|
5701
|
-
* @function getTypeUrl
|
|
5702
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5703
|
-
* @static
|
|
5704
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5705
|
-
* @returns {string} The default type url
|
|
5706
|
-
*/
|
|
5707
|
-
AIRichResponseReelsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
5708
|
-
if (typeUrlPrefix === undefined) {
|
|
5709
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
5710
|
-
}
|
|
5711
|
-
return typeUrlPrefix + "/waproto.AIRichResponseMessage.AIRichResponseReelsMetadata";
|
|
5712
|
-
};
|
|
5713
|
-
|
|
5714
|
-
AIRichResponseReelsMetadata.AIRichResponseReelMetadata = (function() {
|
|
5715
|
-
|
|
5716
|
-
/**
|
|
5717
|
-
* Properties of a AIRichResponseReelMetadata.
|
|
5718
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5719
|
-
* @interface IAIRichResponseReelMetadata
|
|
5720
|
-
* @property {string|null} [title] AIRichResponseReelMetadata title
|
|
5721
|
-
* @property {string|null} [profileIconUrl] AIRichResponseReelMetadata profileIconUrl
|
|
5722
|
-
* @property {string|null} [previewUrl] AIRichResponseReelMetadata previewUrl
|
|
5723
|
-
* @property {string|null} [videoUrl] AIRichResponseReelMetadata videoUrl
|
|
5724
|
-
*/
|
|
5725
|
-
|
|
5726
|
-
/**
|
|
5727
|
-
* Constructs a new AIRichResponseReelMetadata.
|
|
5728
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata
|
|
5729
|
-
* @classdesc Represents a AIRichResponseReelMetadata.
|
|
5730
|
-
* @implements IAIRichResponseReelMetadata
|
|
5731
|
-
* @constructor
|
|
5732
|
-
* @param {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.IAIRichResponseReelMetadata=} [properties] Properties to set
|
|
5733
|
-
*/
|
|
5734
|
-
function AIRichResponseReelMetadata(properties) {
|
|
5735
|
-
if (properties)
|
|
5736
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5737
|
-
if (properties[keys[i]] != null)
|
|
5738
|
-
this[keys[i]] = properties[keys[i]];
|
|
5739
|
-
}
|
|
5740
|
-
|
|
5741
|
-
/**
|
|
5742
|
-
* AIRichResponseReelMetadata title.
|
|
5743
|
-
* @member {string|null|undefined} title
|
|
5744
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5745
|
-
* @instance
|
|
5746
|
-
*/
|
|
5747
|
-
AIRichResponseReelMetadata.prototype.title = null;
|
|
5748
|
-
|
|
5749
|
-
/**
|
|
5750
|
-
* AIRichResponseReelMetadata profileIconUrl.
|
|
5751
|
-
* @member {string|null|undefined} profileIconUrl
|
|
5752
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5753
|
-
* @instance
|
|
5754
|
-
*/
|
|
5755
|
-
AIRichResponseReelMetadata.prototype.profileIconUrl = null;
|
|
5756
|
-
|
|
5757
|
-
/**
|
|
5758
|
-
* AIRichResponseReelMetadata previewUrl.
|
|
5759
|
-
* @member {string|null|undefined} previewUrl
|
|
5760
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5761
|
-
* @instance
|
|
5762
|
-
*/
|
|
5763
|
-
AIRichResponseReelMetadata.prototype.previewUrl = null;
|
|
5764
|
-
|
|
5765
|
-
/**
|
|
5766
|
-
* AIRichResponseReelMetadata videoUrl.
|
|
5767
|
-
* @member {string|null|undefined} videoUrl
|
|
5768
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5769
|
-
* @instance
|
|
5770
|
-
*/
|
|
5771
|
-
AIRichResponseReelMetadata.prototype.videoUrl = null;
|
|
5772
|
-
|
|
5773
|
-
// OneOf field names bound to virtual getters and setters
|
|
5774
|
-
var $oneOfFields;
|
|
5775
|
-
|
|
5776
|
-
// Virtual OneOf for proto3 optional field
|
|
5777
|
-
Object.defineProperty(AIRichResponseReelMetadata.prototype, "_title", {
|
|
5778
|
-
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
|
5779
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
5780
|
-
});
|
|
5781
|
-
|
|
5782
|
-
// Virtual OneOf for proto3 optional field
|
|
5783
|
-
Object.defineProperty(AIRichResponseReelMetadata.prototype, "_profileIconUrl", {
|
|
5784
|
-
get: $util.oneOfGetter($oneOfFields = ["profileIconUrl"]),
|
|
5785
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
5786
|
-
});
|
|
5787
|
-
|
|
5788
|
-
// Virtual OneOf for proto3 optional field
|
|
5789
|
-
Object.defineProperty(AIRichResponseReelMetadata.prototype, "_previewUrl", {
|
|
5790
|
-
get: $util.oneOfGetter($oneOfFields = ["previewUrl"]),
|
|
5791
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
5792
|
-
});
|
|
5793
|
-
|
|
5794
|
-
// Virtual OneOf for proto3 optional field
|
|
5795
|
-
Object.defineProperty(AIRichResponseReelMetadata.prototype, "_videoUrl", {
|
|
5796
|
-
get: $util.oneOfGetter($oneOfFields = ["videoUrl"]),
|
|
5797
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
5798
|
-
});
|
|
5799
|
-
|
|
5800
|
-
/**
|
|
5801
|
-
* Creates a new AIRichResponseReelMetadata instance using the specified properties.
|
|
5802
|
-
* @function create
|
|
5803
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5804
|
-
* @static
|
|
5805
|
-
* @param {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.IAIRichResponseReelMetadata=} [properties] Properties to set
|
|
5806
|
-
* @returns {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata} AIRichResponseReelMetadata instance
|
|
5807
|
-
*/
|
|
5808
|
-
AIRichResponseReelMetadata.create = function create(properties) {
|
|
5809
|
-
return new AIRichResponseReelMetadata(properties);
|
|
5810
|
-
};
|
|
5811
|
-
|
|
5812
|
-
/**
|
|
5813
|
-
* Encodes the specified AIRichResponseReelMetadata message. Does not implicitly {@link waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata.verify|verify} messages.
|
|
5814
|
-
* @function encode
|
|
5815
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5816
|
-
* @static
|
|
5817
|
-
* @param {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.IAIRichResponseReelMetadata} message AIRichResponseReelMetadata message or plain object to encode
|
|
5818
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5819
|
-
* @returns {$protobuf.Writer} Writer
|
|
5820
|
-
*/
|
|
5821
|
-
AIRichResponseReelMetadata.encode = function encode(message, writer) {
|
|
5822
|
-
if (!writer)
|
|
5823
|
-
writer = $Writer.create();
|
|
5824
|
-
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
|
5825
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.title);
|
|
5826
|
-
if (message.profileIconUrl != null && Object.hasOwnProperty.call(message, "profileIconUrl"))
|
|
5827
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileIconUrl);
|
|
5828
|
-
if (message.previewUrl != null && Object.hasOwnProperty.call(message, "previewUrl"))
|
|
5829
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.previewUrl);
|
|
5830
|
-
if (message.videoUrl != null && Object.hasOwnProperty.call(message, "videoUrl"))
|
|
5831
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.videoUrl);
|
|
5832
|
-
return writer;
|
|
5833
|
-
};
|
|
5834
|
-
|
|
5835
|
-
/**
|
|
5836
|
-
* Encodes the specified AIRichResponseReelMetadata message, length delimited. Does not implicitly {@link waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata.verify|verify} messages.
|
|
5837
|
-
* @function encodeDelimited
|
|
5838
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5839
|
-
* @static
|
|
5840
|
-
* @param {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.IAIRichResponseReelMetadata} message AIRichResponseReelMetadata message or plain object to encode
|
|
5841
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5842
|
-
* @returns {$protobuf.Writer} Writer
|
|
5843
|
-
*/
|
|
5844
|
-
AIRichResponseReelMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5845
|
-
return this.encode(message, writer).ldelim();
|
|
5846
|
-
};
|
|
5847
|
-
|
|
5848
|
-
/**
|
|
5849
|
-
* Decodes a AIRichResponseReelMetadata message from the specified reader or buffer.
|
|
5850
|
-
* @function decode
|
|
5851
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5852
|
-
* @static
|
|
5853
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5854
|
-
* @param {number} [length] Message length if known beforehand
|
|
5855
|
-
* @returns {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata} AIRichResponseReelMetadata
|
|
5856
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5857
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5858
|
-
*/
|
|
5859
|
-
AIRichResponseReelMetadata.decode = function decode(reader, length) {
|
|
5860
|
-
if (!(reader instanceof $Reader))
|
|
5861
|
-
reader = $Reader.create(reader);
|
|
5862
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata();
|
|
5863
|
-
while (reader.pos < end) {
|
|
5864
|
-
var tag = reader.uint32();
|
|
5865
|
-
switch (tag >>> 3) {
|
|
5866
|
-
case 1: {
|
|
5867
|
-
message.title = reader.string();
|
|
5868
|
-
break;
|
|
5869
|
-
}
|
|
5870
|
-
case 2: {
|
|
5871
|
-
message.profileIconUrl = reader.string();
|
|
5872
|
-
break;
|
|
5873
|
-
}
|
|
5874
|
-
case 3: {
|
|
5875
|
-
message.previewUrl = reader.string();
|
|
5876
|
-
break;
|
|
5877
|
-
}
|
|
5878
|
-
case 4: {
|
|
5879
|
-
message.videoUrl = reader.string();
|
|
5880
|
-
break;
|
|
5881
|
-
}
|
|
5882
|
-
default:
|
|
5883
|
-
reader.skipType(tag & 7);
|
|
5884
|
-
break;
|
|
5885
|
-
}
|
|
5886
|
-
}
|
|
5887
|
-
return message;
|
|
5888
|
-
};
|
|
5889
|
-
|
|
5890
|
-
/**
|
|
5891
|
-
* Decodes a AIRichResponseReelMetadata message from the specified reader or buffer, length delimited.
|
|
5892
|
-
* @function decodeDelimited
|
|
5893
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5894
|
-
* @static
|
|
5895
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5896
|
-
* @returns {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata} AIRichResponseReelMetadata
|
|
5897
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5898
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5899
|
-
*/
|
|
5900
|
-
AIRichResponseReelMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
5901
|
-
if (!(reader instanceof $Reader))
|
|
5902
|
-
reader = new $Reader(reader);
|
|
5903
|
-
return this.decode(reader, reader.uint32());
|
|
5904
|
-
};
|
|
5905
|
-
|
|
5906
|
-
/**
|
|
5907
|
-
* Verifies a AIRichResponseReelMetadata message.
|
|
5908
|
-
* @function verify
|
|
5909
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5910
|
-
* @static
|
|
5911
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
5912
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5913
|
-
*/
|
|
5914
|
-
AIRichResponseReelMetadata.verify = function verify(message) {
|
|
5915
|
-
if (typeof message !== "object" || message === null)
|
|
5916
|
-
return "object expected";
|
|
5917
|
-
var properties = {};
|
|
5918
|
-
if (message.title != null && message.hasOwnProperty("title")) {
|
|
5919
|
-
properties._title = 1;
|
|
5920
|
-
if (!$util.isString(message.title))
|
|
5921
|
-
return "title: string expected";
|
|
5922
|
-
}
|
|
5923
|
-
if (message.profileIconUrl != null && message.hasOwnProperty("profileIconUrl")) {
|
|
5924
|
-
properties._profileIconUrl = 1;
|
|
5925
|
-
if (!$util.isString(message.profileIconUrl))
|
|
5926
|
-
return "profileIconUrl: string expected";
|
|
5927
|
-
}
|
|
5928
|
-
if (message.previewUrl != null && message.hasOwnProperty("previewUrl")) {
|
|
5929
|
-
properties._previewUrl = 1;
|
|
5930
|
-
if (!$util.isString(message.previewUrl))
|
|
5931
|
-
return "previewUrl: string expected";
|
|
5932
|
-
}
|
|
5933
|
-
if (message.videoUrl != null && message.hasOwnProperty("videoUrl")) {
|
|
5934
|
-
properties._videoUrl = 1;
|
|
5935
|
-
if (!$util.isString(message.videoUrl))
|
|
5936
|
-
return "videoUrl: string expected";
|
|
5937
|
-
}
|
|
5938
|
-
return null;
|
|
5939
|
-
};
|
|
5940
|
-
|
|
5941
|
-
/**
|
|
5942
|
-
* Creates a AIRichResponseReelMetadata message from a plain object. Also converts values to their respective internal types.
|
|
5943
|
-
* @function fromObject
|
|
5944
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5945
|
-
* @static
|
|
5946
|
-
* @param {Object.<string,*>} object Plain object
|
|
5947
|
-
* @returns {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata} AIRichResponseReelMetadata
|
|
5948
|
-
*/
|
|
5949
|
-
AIRichResponseReelMetadata.fromObject = function fromObject(object) {
|
|
5950
|
-
if (object instanceof $root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata)
|
|
5951
|
-
return object;
|
|
5952
|
-
var message = new $root.waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata();
|
|
5953
|
-
if (object.title != null)
|
|
5954
|
-
message.title = String(object.title);
|
|
5955
|
-
if (object.profileIconUrl != null)
|
|
5956
|
-
message.profileIconUrl = String(object.profileIconUrl);
|
|
5957
|
-
if (object.previewUrl != null)
|
|
5958
|
-
message.previewUrl = String(object.previewUrl);
|
|
5959
|
-
if (object.videoUrl != null)
|
|
5960
|
-
message.videoUrl = String(object.videoUrl);
|
|
5961
|
-
return message;
|
|
5962
|
-
};
|
|
5963
|
-
|
|
5964
|
-
/**
|
|
5965
|
-
* Creates a plain object from a AIRichResponseReelMetadata message. Also converts values to other types if specified.
|
|
5966
|
-
* @function toObject
|
|
5967
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
5968
|
-
* @static
|
|
5969
|
-
* @param {waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata} message AIRichResponseReelMetadata
|
|
5970
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5971
|
-
* @returns {Object.<string,*>} Plain object
|
|
5972
|
-
*/
|
|
5973
|
-
AIRichResponseReelMetadata.toObject = function toObject(message, options) {
|
|
5974
|
-
if (!options)
|
|
5975
|
-
options = {};
|
|
5976
|
-
var object = {};
|
|
5977
|
-
if (message.title != null && message.hasOwnProperty("title")) {
|
|
5978
|
-
object.title = message.title;
|
|
5979
|
-
if (options.oneofs)
|
|
5980
|
-
object._title = "title";
|
|
5981
|
-
}
|
|
5982
|
-
if (message.profileIconUrl != null && message.hasOwnProperty("profileIconUrl")) {
|
|
5983
|
-
object.profileIconUrl = message.profileIconUrl;
|
|
5984
|
-
if (options.oneofs)
|
|
5985
|
-
object._profileIconUrl = "profileIconUrl";
|
|
5986
|
-
}
|
|
5987
|
-
if (message.previewUrl != null && message.hasOwnProperty("previewUrl")) {
|
|
5988
|
-
object.previewUrl = message.previewUrl;
|
|
5989
|
-
if (options.oneofs)
|
|
5990
|
-
object._previewUrl = "previewUrl";
|
|
5991
|
-
}
|
|
5992
|
-
if (message.videoUrl != null && message.hasOwnProperty("videoUrl")) {
|
|
5993
|
-
object.videoUrl = message.videoUrl;
|
|
5994
|
-
if (options.oneofs)
|
|
5995
|
-
object._videoUrl = "videoUrl";
|
|
5996
|
-
}
|
|
5997
|
-
return object;
|
|
5998
|
-
};
|
|
5999
|
-
|
|
6000
|
-
/**
|
|
6001
|
-
* Converts this AIRichResponseReelMetadata to JSON.
|
|
6002
|
-
* @function toJSON
|
|
6003
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
6004
|
-
* @instance
|
|
6005
|
-
* @returns {Object.<string,*>} JSON object
|
|
6006
|
-
*/
|
|
6007
|
-
AIRichResponseReelMetadata.prototype.toJSON = function toJSON() {
|
|
6008
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6009
|
-
};
|
|
6010
|
-
|
|
6011
|
-
/**
|
|
6012
|
-
* Gets the default type url for AIRichResponseReelMetadata
|
|
6013
|
-
* @function getTypeUrl
|
|
6014
|
-
* @memberof waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata
|
|
6015
|
-
* @static
|
|
6016
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
6017
|
-
* @returns {string} The default type url
|
|
6018
|
-
*/
|
|
6019
|
-
AIRichResponseReelMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
6020
|
-
if (typeUrlPrefix === undefined) {
|
|
6021
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
6022
|
-
}
|
|
6023
|
-
return typeUrlPrefix + "/waproto.AIRichResponseMessage.AIRichResponseReelsMetadata.AIRichResponseReelMetadata";
|
|
6024
|
-
};
|
|
6025
|
-
|
|
6026
|
-
return AIRichResponseReelMetadata;
|
|
6027
|
-
})();
|
|
6028
|
-
|
|
6029
|
-
return AIRichResponseReelsMetadata;
|
|
6030
|
-
})();
|
|
6031
|
-
|
|
6032
6329
|
AIRichResponseMessage.AIRichResponseSubMessage = (function() {
|
|
6033
6330
|
|
|
6034
6331
|
/**
|
|
@@ -6044,7 +6341,7 @@ $root.waproto = (function() {
|
|
|
6044
6341
|
* @property {waproto.AIRichResponseMessage.IAIRichResponseDynamicMetadata|null} [dynamicMetadata] AIRichResponseSubMessage dynamicMetadata
|
|
6045
6342
|
* @property {waproto.AIRichResponseMessage.IAIRichResponseLatexMetadata|null} [latexMetadata] AIRichResponseSubMessage latexMetadata
|
|
6046
6343
|
* @property {waproto.AIRichResponseMessage.IAIRichResponseMapMetadata|null} [mapMetadata] AIRichResponseSubMessage mapMetadata
|
|
6047
|
-
* @property {waproto.AIRichResponseMessage.
|
|
6344
|
+
* @property {waproto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata|null} [contentItemsMetadata] AIRichResponseSubMessage contentItemsMetadata
|
|
6048
6345
|
*/
|
|
6049
6346
|
|
|
6050
6347
|
/**
|
|
@@ -6135,12 +6432,12 @@ $root.waproto = (function() {
|
|
|
6135
6432
|
AIRichResponseSubMessage.prototype.mapMetadata = null;
|
|
6136
6433
|
|
|
6137
6434
|
/**
|
|
6138
|
-
* AIRichResponseSubMessage
|
|
6139
|
-
* @member {waproto.AIRichResponseMessage.
|
|
6435
|
+
* AIRichResponseSubMessage contentItemsMetadata.
|
|
6436
|
+
* @member {waproto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata|null|undefined} contentItemsMetadata
|
|
6140
6437
|
* @memberof waproto.AIRichResponseMessage.AIRichResponseSubMessage
|
|
6141
6438
|
* @instance
|
|
6142
6439
|
*/
|
|
6143
|
-
AIRichResponseSubMessage.prototype.
|
|
6440
|
+
AIRichResponseSubMessage.prototype.contentItemsMetadata = null;
|
|
6144
6441
|
|
|
6145
6442
|
// OneOf field names bound to virtual getters and setters
|
|
6146
6443
|
var $oneOfFields;
|
|
@@ -6200,8 +6497,8 @@ $root.waproto = (function() {
|
|
|
6200
6497
|
});
|
|
6201
6498
|
|
|
6202
6499
|
// Virtual OneOf for proto3 optional field
|
|
6203
|
-
Object.defineProperty(AIRichResponseSubMessage.prototype, "
|
|
6204
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
6500
|
+
Object.defineProperty(AIRichResponseSubMessage.prototype, "_contentItemsMetadata", {
|
|
6501
|
+
get: $util.oneOfGetter($oneOfFields = ["contentItemsMetadata"]),
|
|
6205
6502
|
set: $util.oneOfSetter($oneOfFields)
|
|
6206
6503
|
});
|
|
6207
6504
|
|
|
@@ -6247,8 +6544,8 @@ $root.waproto = (function() {
|
|
|
6247
6544
|
$root.waproto.AIRichResponseMessage.AIRichResponseLatexMetadata.encode(message.latexMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
6248
6545
|
if (message.mapMetadata != null && Object.hasOwnProperty.call(message, "mapMetadata"))
|
|
6249
6546
|
$root.waproto.AIRichResponseMessage.AIRichResponseMapMetadata.encode(message.mapMetadata, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
6250
|
-
if (message.
|
|
6251
|
-
$root.waproto.AIRichResponseMessage.
|
|
6547
|
+
if (message.contentItemsMetadata != null && Object.hasOwnProperty.call(message, "contentItemsMetadata"))
|
|
6548
|
+
$root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.encode(message.contentItemsMetadata, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
6252
6549
|
return writer;
|
|
6253
6550
|
};
|
|
6254
6551
|
|
|
@@ -6320,7 +6617,7 @@ $root.waproto = (function() {
|
|
|
6320
6617
|
break;
|
|
6321
6618
|
}
|
|
6322
6619
|
case 10: {
|
|
6323
|
-
message.
|
|
6620
|
+
message.contentItemsMetadata = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.decode(reader, reader.uint32());
|
|
6324
6621
|
break;
|
|
6325
6622
|
}
|
|
6326
6623
|
default:
|
|
@@ -6438,12 +6735,12 @@ $root.waproto = (function() {
|
|
|
6438
6735
|
return "mapMetadata." + error;
|
|
6439
6736
|
}
|
|
6440
6737
|
}
|
|
6441
|
-
if (message.
|
|
6442
|
-
properties.
|
|
6738
|
+
if (message.contentItemsMetadata != null && message.hasOwnProperty("contentItemsMetadata")) {
|
|
6739
|
+
properties._contentItemsMetadata = 1;
|
|
6443
6740
|
{
|
|
6444
|
-
var error = $root.waproto.AIRichResponseMessage.
|
|
6741
|
+
var error = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.verify(message.contentItemsMetadata);
|
|
6445
6742
|
if (error)
|
|
6446
|
-
return "
|
|
6743
|
+
return "contentItemsMetadata." + error;
|
|
6447
6744
|
}
|
|
6448
6745
|
}
|
|
6449
6746
|
return null;
|
|
@@ -6504,7 +6801,7 @@ $root.waproto = (function() {
|
|
|
6504
6801
|
case 8:
|
|
6505
6802
|
message.messageType = 8;
|
|
6506
6803
|
break;
|
|
6507
|
-
case "
|
|
6804
|
+
case "AI_RICH_RESPONSE_CONTENT_ITEMS":
|
|
6508
6805
|
case 9:
|
|
6509
6806
|
message.messageType = 9;
|
|
6510
6807
|
break;
|
|
@@ -6546,10 +6843,10 @@ $root.waproto = (function() {
|
|
|
6546
6843
|
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseSubMessage.mapMetadata: object expected");
|
|
6547
6844
|
message.mapMetadata = $root.waproto.AIRichResponseMessage.AIRichResponseMapMetadata.fromObject(object.mapMetadata);
|
|
6548
6845
|
}
|
|
6549
|
-
if (object.
|
|
6550
|
-
if (typeof object.
|
|
6551
|
-
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseSubMessage.
|
|
6552
|
-
message.
|
|
6846
|
+
if (object.contentItemsMetadata != null) {
|
|
6847
|
+
if (typeof object.contentItemsMetadata !== "object")
|
|
6848
|
+
throw TypeError(".waproto.AIRichResponseMessage.AIRichResponseSubMessage.contentItemsMetadata: object expected");
|
|
6849
|
+
message.contentItemsMetadata = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.fromObject(object.contentItemsMetadata);
|
|
6553
6850
|
}
|
|
6554
6851
|
return message;
|
|
6555
6852
|
};
|
|
@@ -6612,10 +6909,10 @@ $root.waproto = (function() {
|
|
|
6612
6909
|
if (options.oneofs)
|
|
6613
6910
|
object._mapMetadata = "mapMetadata";
|
|
6614
6911
|
}
|
|
6615
|
-
if (message.
|
|
6616
|
-
object.
|
|
6912
|
+
if (message.contentItemsMetadata != null && message.hasOwnProperty("contentItemsMetadata")) {
|
|
6913
|
+
object.contentItemsMetadata = $root.waproto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.toObject(message.contentItemsMetadata, options);
|
|
6617
6914
|
if (options.oneofs)
|
|
6618
|
-
object.
|
|
6915
|
+
object._contentItemsMetadata = "contentItemsMetadata";
|
|
6619
6916
|
}
|
|
6620
6917
|
return object;
|
|
6621
6918
|
};
|
|
@@ -6662,7 +6959,7 @@ $root.waproto = (function() {
|
|
|
6662
6959
|
* @property {number} AI_RICH_RESPONSE_DYNAMIC=6 AI_RICH_RESPONSE_DYNAMIC value
|
|
6663
6960
|
* @property {number} AI_RICH_RESPONSE_MAP=7 AI_RICH_RESPONSE_MAP value
|
|
6664
6961
|
* @property {number} AI_RICH_RESPONSE_LATEX=8 AI_RICH_RESPONSE_LATEX value
|
|
6665
|
-
* @property {number}
|
|
6962
|
+
* @property {number} AI_RICH_RESPONSE_CONTENT_ITEMS=9 AI_RICH_RESPONSE_CONTENT_ITEMS value
|
|
6666
6963
|
*/
|
|
6667
6964
|
AIRichResponseMessage.AIRichResponseSubMessageType = (function() {
|
|
6668
6965
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -6675,7 +6972,7 @@ $root.waproto = (function() {
|
|
|
6675
6972
|
values[valuesById[6] = "AI_RICH_RESPONSE_DYNAMIC"] = 6;
|
|
6676
6973
|
values[valuesById[7] = "AI_RICH_RESPONSE_MAP"] = 7;
|
|
6677
6974
|
values[valuesById[8] = "AI_RICH_RESPONSE_LATEX"] = 8;
|
|
6678
|
-
values[valuesById[9] = "
|
|
6975
|
+
values[valuesById[9] = "AI_RICH_RESPONSE_CONTENT_ITEMS"] = 9;
|
|
6679
6976
|
return values;
|
|
6680
6977
|
})();
|
|
6681
6978
|
|
|
@@ -9737,6 +10034,7 @@ $root.waproto = (function() {
|
|
|
9737
10034
|
switch (message.capabilities[i]) {
|
|
9738
10035
|
default:
|
|
9739
10036
|
return "capabilities: enum value[] expected";
|
|
10037
|
+
case 0:
|
|
9740
10038
|
case 1:
|
|
9741
10039
|
case 2:
|
|
9742
10040
|
case 3:
|
|
@@ -9763,6 +10061,9 @@ $root.waproto = (function() {
|
|
|
9763
10061
|
case 24:
|
|
9764
10062
|
case 25:
|
|
9765
10063
|
case 26:
|
|
10064
|
+
case 27:
|
|
10065
|
+
case 28:
|
|
10066
|
+
case 29:
|
|
9766
10067
|
break;
|
|
9767
10068
|
}
|
|
9768
10069
|
}
|
|
@@ -9792,6 +10093,10 @@ $root.waproto = (function() {
|
|
|
9792
10093
|
message.capabilities[i] = object.capabilities[i];
|
|
9793
10094
|
break;
|
|
9794
10095
|
}
|
|
10096
|
+
case "UNKNOWN":
|
|
10097
|
+
case 0:
|
|
10098
|
+
message.capabilities[i] = 0;
|
|
10099
|
+
break;
|
|
9795
10100
|
case "PROGRESS_INDICATOR":
|
|
9796
10101
|
case 1:
|
|
9797
10102
|
message.capabilities[i] = 1;
|
|
@@ -9896,6 +10201,18 @@ $root.waproto = (function() {
|
|
|
9896
10201
|
case 26:
|
|
9897
10202
|
message.capabilities[i] = 26;
|
|
9898
10203
|
break;
|
|
10204
|
+
case "AGENTIC_PLANNING":
|
|
10205
|
+
case 27:
|
|
10206
|
+
message.capabilities[i] = 27;
|
|
10207
|
+
break;
|
|
10208
|
+
case "ACCOUNT_LINKING":
|
|
10209
|
+
case 28:
|
|
10210
|
+
message.capabilities[i] = 28;
|
|
10211
|
+
break;
|
|
10212
|
+
case "STREAMING_DISAGGREGATION":
|
|
10213
|
+
case 29:
|
|
10214
|
+
message.capabilities[i] = 29;
|
|
10215
|
+
break;
|
|
9899
10216
|
}
|
|
9900
10217
|
}
|
|
9901
10218
|
return message;
|
|
@@ -9954,6 +10271,7 @@ $root.waproto = (function() {
|
|
|
9954
10271
|
* BotCapabilityType enum.
|
|
9955
10272
|
* @name waproto.BotCapabilityMetadata.BotCapabilityType
|
|
9956
10273
|
* @enum {number}
|
|
10274
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
9957
10275
|
* @property {number} PROGRESS_INDICATOR=1 PROGRESS_INDICATOR value
|
|
9958
10276
|
* @property {number} RICH_RESPONSE_HEADING=2 RICH_RESPONSE_HEADING value
|
|
9959
10277
|
* @property {number} RICH_RESPONSE_NESTED_LIST=3 RICH_RESPONSE_NESTED_LIST value
|
|
@@ -9980,9 +10298,13 @@ $root.waproto = (function() {
|
|
|
9980
10298
|
* @property {number} RICH_RESPONSE_LATEX=24 RICH_RESPONSE_LATEX value
|
|
9981
10299
|
* @property {number} RICH_RESPONSE_MAPS=25 RICH_RESPONSE_MAPS value
|
|
9982
10300
|
* @property {number} RICH_RESPONSE_INLINE_REELS=26 RICH_RESPONSE_INLINE_REELS value
|
|
10301
|
+
* @property {number} AGENTIC_PLANNING=27 AGENTIC_PLANNING value
|
|
10302
|
+
* @property {number} ACCOUNT_LINKING=28 ACCOUNT_LINKING value
|
|
10303
|
+
* @property {number} STREAMING_DISAGGREGATION=29 STREAMING_DISAGGREGATION value
|
|
9983
10304
|
*/
|
|
9984
10305
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
|
9985
10306
|
var valuesById = {}, values = Object.create(valuesById);
|
|
10307
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
9986
10308
|
values[valuesById[1] = "PROGRESS_INDICATOR"] = 1;
|
|
9987
10309
|
values[valuesById[2] = "RICH_RESPONSE_HEADING"] = 2;
|
|
9988
10310
|
values[valuesById[3] = "RICH_RESPONSE_NESTED_LIST"] = 3;
|
|
@@ -10009,6 +10331,9 @@ $root.waproto = (function() {
|
|
|
10009
10331
|
values[valuesById[24] = "RICH_RESPONSE_LATEX"] = 24;
|
|
10010
10332
|
values[valuesById[25] = "RICH_RESPONSE_MAPS"] = 25;
|
|
10011
10333
|
values[valuesById[26] = "RICH_RESPONSE_INLINE_REELS"] = 26;
|
|
10334
|
+
values[valuesById[27] = "AGENTIC_PLANNING"] = 27;
|
|
10335
|
+
values[valuesById[28] = "ACCOUNT_LINKING"] = 28;
|
|
10336
|
+
values[valuesById[29] = "STREAMING_DISAGGREGATION"] = 29;
|
|
10012
10337
|
return values;
|
|
10013
10338
|
})();
|
|
10014
10339
|
|
|
@@ -12058,6 +12383,7 @@ $root.waproto = (function() {
|
|
|
12058
12383
|
* @property {waproto.IBotRenderingMetadata|null} [renderingMetadata] BotMetadata renderingMetadata
|
|
12059
12384
|
* @property {waproto.IBotMetricsMetadata|null} [botMetricsMetadata] BotMetadata botMetricsMetadata
|
|
12060
12385
|
* @property {waproto.IBotLinkedAccountsMetadata|null} [botLinkedAccountsMetadata] BotMetadata botLinkedAccountsMetadata
|
|
12386
|
+
* @property {waproto.IBotSourcesMetadata|null} [richResponseSourcesMetadata] BotMetadata richResponseSourcesMetadata
|
|
12061
12387
|
*/
|
|
12062
12388
|
|
|
12063
12389
|
/**
|
|
@@ -12219,6 +12545,14 @@ $root.waproto = (function() {
|
|
|
12219
12545
|
*/
|
|
12220
12546
|
BotMetadata.prototype.botLinkedAccountsMetadata = null;
|
|
12221
12547
|
|
|
12548
|
+
/**
|
|
12549
|
+
* BotMetadata richResponseSourcesMetadata.
|
|
12550
|
+
* @member {waproto.IBotSourcesMetadata|null|undefined} richResponseSourcesMetadata
|
|
12551
|
+
* @memberof waproto.BotMetadata
|
|
12552
|
+
* @instance
|
|
12553
|
+
*/
|
|
12554
|
+
BotMetadata.prototype.richResponseSourcesMetadata = null;
|
|
12555
|
+
|
|
12222
12556
|
// OneOf field names bound to virtual getters and setters
|
|
12223
12557
|
var $oneOfFields;
|
|
12224
12558
|
|
|
@@ -12330,6 +12664,12 @@ $root.waproto = (function() {
|
|
|
12330
12664
|
set: $util.oneOfSetter($oneOfFields)
|
|
12331
12665
|
});
|
|
12332
12666
|
|
|
12667
|
+
// Virtual OneOf for proto3 optional field
|
|
12668
|
+
Object.defineProperty(BotMetadata.prototype, "_richResponseSourcesMetadata", {
|
|
12669
|
+
get: $util.oneOfGetter($oneOfFields = ["richResponseSourcesMetadata"]),
|
|
12670
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
12671
|
+
});
|
|
12672
|
+
|
|
12333
12673
|
/**
|
|
12334
12674
|
* Creates a new BotMetadata instance using the specified properties.
|
|
12335
12675
|
* @function create
|
|
@@ -12390,6 +12730,8 @@ $root.waproto = (function() {
|
|
|
12390
12730
|
$root.waproto.BotMetricsMetadata.encode(message.botMetricsMetadata, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
12391
12731
|
if (message.botLinkedAccountsMetadata != null && Object.hasOwnProperty.call(message, "botLinkedAccountsMetadata"))
|
|
12392
12732
|
$root.waproto.BotLinkedAccountsMetadata.encode(message.botLinkedAccountsMetadata, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
12733
|
+
if (message.richResponseSourcesMetadata != null && Object.hasOwnProperty.call(message, "richResponseSourcesMetadata"))
|
|
12734
|
+
$root.waproto.BotSourcesMetadata.encode(message.richResponseSourcesMetadata, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
12393
12735
|
return writer;
|
|
12394
12736
|
};
|
|
12395
12737
|
|
|
@@ -12496,6 +12838,10 @@ $root.waproto = (function() {
|
|
|
12496
12838
|
message.botLinkedAccountsMetadata = $root.waproto.BotLinkedAccountsMetadata.decode(reader, reader.uint32());
|
|
12497
12839
|
break;
|
|
12498
12840
|
}
|
|
12841
|
+
case 19: {
|
|
12842
|
+
message.richResponseSourcesMetadata = $root.waproto.BotSourcesMetadata.decode(reader, reader.uint32());
|
|
12843
|
+
break;
|
|
12844
|
+
}
|
|
12499
12845
|
default:
|
|
12500
12846
|
reader.skipType(tag & 7);
|
|
12501
12847
|
break;
|
|
@@ -12664,6 +13010,14 @@ $root.waproto = (function() {
|
|
|
12664
13010
|
return "botLinkedAccountsMetadata." + error;
|
|
12665
13011
|
}
|
|
12666
13012
|
}
|
|
13013
|
+
if (message.richResponseSourcesMetadata != null && message.hasOwnProperty("richResponseSourcesMetadata")) {
|
|
13014
|
+
properties._richResponseSourcesMetadata = 1;
|
|
13015
|
+
{
|
|
13016
|
+
var error = $root.waproto.BotSourcesMetadata.verify(message.richResponseSourcesMetadata);
|
|
13017
|
+
if (error)
|
|
13018
|
+
return "richResponseSourcesMetadata." + error;
|
|
13019
|
+
}
|
|
13020
|
+
}
|
|
12667
13021
|
return null;
|
|
12668
13022
|
};
|
|
12669
13023
|
|
|
@@ -12757,6 +13111,11 @@ $root.waproto = (function() {
|
|
|
12757
13111
|
throw TypeError(".waproto.BotMetadata.botLinkedAccountsMetadata: object expected");
|
|
12758
13112
|
message.botLinkedAccountsMetadata = $root.waproto.BotLinkedAccountsMetadata.fromObject(object.botLinkedAccountsMetadata);
|
|
12759
13113
|
}
|
|
13114
|
+
if (object.richResponseSourcesMetadata != null) {
|
|
13115
|
+
if (typeof object.richResponseSourcesMetadata !== "object")
|
|
13116
|
+
throw TypeError(".waproto.BotMetadata.richResponseSourcesMetadata: object expected");
|
|
13117
|
+
message.richResponseSourcesMetadata = $root.waproto.BotSourcesMetadata.fromObject(object.richResponseSourcesMetadata);
|
|
13118
|
+
}
|
|
12760
13119
|
return message;
|
|
12761
13120
|
};
|
|
12762
13121
|
|
|
@@ -12863,6 +13222,11 @@ $root.waproto = (function() {
|
|
|
12863
13222
|
if (options.oneofs)
|
|
12864
13223
|
object._botLinkedAccountsMetadata = "botLinkedAccountsMetadata";
|
|
12865
13224
|
}
|
|
13225
|
+
if (message.richResponseSourcesMetadata != null && message.hasOwnProperty("richResponseSourcesMetadata")) {
|
|
13226
|
+
object.richResponseSourcesMetadata = $root.waproto.BotSourcesMetadata.toObject(message.richResponseSourcesMetadata, options);
|
|
13227
|
+
if (options.oneofs)
|
|
13228
|
+
object._richResponseSourcesMetadata = "richResponseSourcesMetadata";
|
|
13229
|
+
}
|
|
12866
13230
|
return object;
|
|
12867
13231
|
};
|
|
12868
13232
|
|
|
@@ -12916,6 +13280,10 @@ $root.waproto = (function() {
|
|
|
12916
13280
|
* @property {number} FORWARD=15 FORWARD value
|
|
12917
13281
|
* @property {number} APP_SHORTCUT=16 APP_SHORTCUT value
|
|
12918
13282
|
* @property {number} FF_FAMILY=17 FF_FAMILY value
|
|
13283
|
+
* @property {number} AI_TAB=18 AI_TAB value
|
|
13284
|
+
* @property {number} AI_HOME=19 AI_HOME value
|
|
13285
|
+
* @property {number} AI_DEEPLINK_IMMERSIVE=20 AI_DEEPLINK_IMMERSIVE value
|
|
13286
|
+
* @property {number} AI_DEEPLINK=21 AI_DEEPLINK value
|
|
12919
13287
|
*/
|
|
12920
13288
|
waproto.BotMetricsEntryPoint = (function() {
|
|
12921
13289
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -12936,6 +13304,10 @@ $root.waproto = (function() {
|
|
|
12936
13304
|
values[valuesById[15] = "FORWARD"] = 15;
|
|
12937
13305
|
values[valuesById[16] = "APP_SHORTCUT"] = 16;
|
|
12938
13306
|
values[valuesById[17] = "FF_FAMILY"] = 17;
|
|
13307
|
+
values[valuesById[18] = "AI_TAB"] = 18;
|
|
13308
|
+
values[valuesById[19] = "AI_HOME"] = 19;
|
|
13309
|
+
values[valuesById[20] = "AI_DEEPLINK_IMMERSIVE"] = 20;
|
|
13310
|
+
values[valuesById[21] = "AI_DEEPLINK"] = 21;
|
|
12939
13311
|
return values;
|
|
12940
13312
|
})();
|
|
12941
13313
|
|
|
@@ -12947,6 +13319,7 @@ $root.waproto = (function() {
|
|
|
12947
13319
|
* @interface IBotMetricsMetadata
|
|
12948
13320
|
* @property {string|null} [destinationId] BotMetricsMetadata destinationId
|
|
12949
13321
|
* @property {waproto.BotMetricsEntryPoint|null} [destinationEntryPoint] BotMetricsMetadata destinationEntryPoint
|
|
13322
|
+
* @property {waproto.BotMetricsThreadEntryPoint|null} [threadOrigin] BotMetricsMetadata threadOrigin
|
|
12950
13323
|
*/
|
|
12951
13324
|
|
|
12952
13325
|
/**
|
|
@@ -12980,6 +13353,14 @@ $root.waproto = (function() {
|
|
|
12980
13353
|
*/
|
|
12981
13354
|
BotMetricsMetadata.prototype.destinationEntryPoint = null;
|
|
12982
13355
|
|
|
13356
|
+
/**
|
|
13357
|
+
* BotMetricsMetadata threadOrigin.
|
|
13358
|
+
* @member {waproto.BotMetricsThreadEntryPoint|null|undefined} threadOrigin
|
|
13359
|
+
* @memberof waproto.BotMetricsMetadata
|
|
13360
|
+
* @instance
|
|
13361
|
+
*/
|
|
13362
|
+
BotMetricsMetadata.prototype.threadOrigin = null;
|
|
13363
|
+
|
|
12983
13364
|
// OneOf field names bound to virtual getters and setters
|
|
12984
13365
|
var $oneOfFields;
|
|
12985
13366
|
|
|
@@ -12995,6 +13376,12 @@ $root.waproto = (function() {
|
|
|
12995
13376
|
set: $util.oneOfSetter($oneOfFields)
|
|
12996
13377
|
});
|
|
12997
13378
|
|
|
13379
|
+
// Virtual OneOf for proto3 optional field
|
|
13380
|
+
Object.defineProperty(BotMetricsMetadata.prototype, "_threadOrigin", {
|
|
13381
|
+
get: $util.oneOfGetter($oneOfFields = ["threadOrigin"]),
|
|
13382
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
13383
|
+
});
|
|
13384
|
+
|
|
12998
13385
|
/**
|
|
12999
13386
|
* Creates a new BotMetricsMetadata instance using the specified properties.
|
|
13000
13387
|
* @function create
|
|
@@ -13023,6 +13410,8 @@ $root.waproto = (function() {
|
|
|
13023
13410
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.destinationId);
|
|
13024
13411
|
if (message.destinationEntryPoint != null && Object.hasOwnProperty.call(message, "destinationEntryPoint"))
|
|
13025
13412
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.destinationEntryPoint);
|
|
13413
|
+
if (message.threadOrigin != null && Object.hasOwnProperty.call(message, "threadOrigin"))
|
|
13414
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.threadOrigin);
|
|
13026
13415
|
return writer;
|
|
13027
13416
|
};
|
|
13028
13417
|
|
|
@@ -13065,6 +13454,10 @@ $root.waproto = (function() {
|
|
|
13065
13454
|
message.destinationEntryPoint = reader.int32();
|
|
13066
13455
|
break;
|
|
13067
13456
|
}
|
|
13457
|
+
case 3: {
|
|
13458
|
+
message.threadOrigin = reader.int32();
|
|
13459
|
+
break;
|
|
13460
|
+
}
|
|
13068
13461
|
default:
|
|
13069
13462
|
reader.skipType(tag & 7);
|
|
13070
13463
|
break;
|
|
@@ -13128,6 +13521,22 @@ $root.waproto = (function() {
|
|
|
13128
13521
|
case 15:
|
|
13129
13522
|
case 16:
|
|
13130
13523
|
case 17:
|
|
13524
|
+
case 18:
|
|
13525
|
+
case 19:
|
|
13526
|
+
case 20:
|
|
13527
|
+
case 21:
|
|
13528
|
+
break;
|
|
13529
|
+
}
|
|
13530
|
+
}
|
|
13531
|
+
if (message.threadOrigin != null && message.hasOwnProperty("threadOrigin")) {
|
|
13532
|
+
properties._threadOrigin = 1;
|
|
13533
|
+
switch (message.threadOrigin) {
|
|
13534
|
+
default:
|
|
13535
|
+
return "threadOrigin: enum value expected";
|
|
13536
|
+
case 1:
|
|
13537
|
+
case 2:
|
|
13538
|
+
case 3:
|
|
13539
|
+
case 4:
|
|
13131
13540
|
break;
|
|
13132
13541
|
}
|
|
13133
13542
|
}
|
|
@@ -13223,6 +13632,46 @@ $root.waproto = (function() {
|
|
|
13223
13632
|
case 17:
|
|
13224
13633
|
message.destinationEntryPoint = 17;
|
|
13225
13634
|
break;
|
|
13635
|
+
case "AI_TAB":
|
|
13636
|
+
case 18:
|
|
13637
|
+
message.destinationEntryPoint = 18;
|
|
13638
|
+
break;
|
|
13639
|
+
case "AI_HOME":
|
|
13640
|
+
case 19:
|
|
13641
|
+
message.destinationEntryPoint = 19;
|
|
13642
|
+
break;
|
|
13643
|
+
case "AI_DEEPLINK_IMMERSIVE":
|
|
13644
|
+
case 20:
|
|
13645
|
+
message.destinationEntryPoint = 20;
|
|
13646
|
+
break;
|
|
13647
|
+
case "AI_DEEPLINK":
|
|
13648
|
+
case 21:
|
|
13649
|
+
message.destinationEntryPoint = 21;
|
|
13650
|
+
break;
|
|
13651
|
+
}
|
|
13652
|
+
switch (object.threadOrigin) {
|
|
13653
|
+
default:
|
|
13654
|
+
if (typeof object.threadOrigin === "number") {
|
|
13655
|
+
message.threadOrigin = object.threadOrigin;
|
|
13656
|
+
break;
|
|
13657
|
+
}
|
|
13658
|
+
break;
|
|
13659
|
+
case "AI_TAB_THREAD":
|
|
13660
|
+
case 1:
|
|
13661
|
+
message.threadOrigin = 1;
|
|
13662
|
+
break;
|
|
13663
|
+
case "AI_HOME_THREAD":
|
|
13664
|
+
case 2:
|
|
13665
|
+
message.threadOrigin = 2;
|
|
13666
|
+
break;
|
|
13667
|
+
case "AI_DEEPLINK_IMMERSIVE_THREAD":
|
|
13668
|
+
case 3:
|
|
13669
|
+
message.threadOrigin = 3;
|
|
13670
|
+
break;
|
|
13671
|
+
case "AI_DEEPLINK_THREAD":
|
|
13672
|
+
case 4:
|
|
13673
|
+
message.threadOrigin = 4;
|
|
13674
|
+
break;
|
|
13226
13675
|
}
|
|
13227
13676
|
return message;
|
|
13228
13677
|
};
|
|
@@ -13250,6 +13699,11 @@ $root.waproto = (function() {
|
|
|
13250
13699
|
if (options.oneofs)
|
|
13251
13700
|
object._destinationEntryPoint = "destinationEntryPoint";
|
|
13252
13701
|
}
|
|
13702
|
+
if (message.threadOrigin != null && message.hasOwnProperty("threadOrigin")) {
|
|
13703
|
+
object.threadOrigin = options.enums === String ? $root.waproto.BotMetricsThreadEntryPoint[message.threadOrigin] === undefined ? message.threadOrigin : $root.waproto.BotMetricsThreadEntryPoint[message.threadOrigin] : message.threadOrigin;
|
|
13704
|
+
if (options.oneofs)
|
|
13705
|
+
object._threadOrigin = "threadOrigin";
|
|
13706
|
+
}
|
|
13253
13707
|
return object;
|
|
13254
13708
|
};
|
|
13255
13709
|
|
|
@@ -13282,6 +13736,24 @@ $root.waproto = (function() {
|
|
|
13282
13736
|
return BotMetricsMetadata;
|
|
13283
13737
|
})();
|
|
13284
13738
|
|
|
13739
|
+
/**
|
|
13740
|
+
* BotMetricsThreadEntryPoint enum.
|
|
13741
|
+
* @name waproto.BotMetricsThreadEntryPoint
|
|
13742
|
+
* @enum {number}
|
|
13743
|
+
* @property {number} AI_TAB_THREAD=1 AI_TAB_THREAD value
|
|
13744
|
+
* @property {number} AI_HOME_THREAD=2 AI_HOME_THREAD value
|
|
13745
|
+
* @property {number} AI_DEEPLINK_IMMERSIVE_THREAD=3 AI_DEEPLINK_IMMERSIVE_THREAD value
|
|
13746
|
+
* @property {number} AI_DEEPLINK_THREAD=4 AI_DEEPLINK_THREAD value
|
|
13747
|
+
*/
|
|
13748
|
+
waproto.BotMetricsThreadEntryPoint = (function() {
|
|
13749
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
13750
|
+
values[valuesById[1] = "AI_TAB_THREAD"] = 1;
|
|
13751
|
+
values[valuesById[2] = "AI_HOME_THREAD"] = 2;
|
|
13752
|
+
values[valuesById[3] = "AI_DEEPLINK_IMMERSIVE_THREAD"] = 3;
|
|
13753
|
+
values[valuesById[4] = "AI_DEEPLINK_THREAD"] = 4;
|
|
13754
|
+
return values;
|
|
13755
|
+
})();
|
|
13756
|
+
|
|
13285
13757
|
waproto.BotModelMetadata = (function() {
|
|
13286
13758
|
|
|
13287
13759
|
/**
|
|
@@ -14857,6 +15329,7 @@ $root.waproto = (function() {
|
|
|
14857
15329
|
switch (message.status) {
|
|
14858
15330
|
default:
|
|
14859
15331
|
return "status: enum value expected";
|
|
15332
|
+
case 0:
|
|
14860
15333
|
case 1:
|
|
14861
15334
|
case 2:
|
|
14862
15335
|
case 3:
|
|
@@ -14909,6 +15382,10 @@ $root.waproto = (function() {
|
|
|
14909
15382
|
break;
|
|
14910
15383
|
}
|
|
14911
15384
|
break;
|
|
15385
|
+
case "UNKNOWN":
|
|
15386
|
+
case 0:
|
|
15387
|
+
message.status = 0;
|
|
15388
|
+
break;
|
|
14912
15389
|
case "PLANNED":
|
|
14913
15390
|
case 1:
|
|
14914
15391
|
message.status = 1;
|
|
@@ -15196,6 +15673,7 @@ $root.waproto = (function() {
|
|
|
15196
15673
|
switch (message.provider) {
|
|
15197
15674
|
default:
|
|
15198
15675
|
return "provider: enum value expected";
|
|
15676
|
+
case 0:
|
|
15199
15677
|
case 1:
|
|
15200
15678
|
case 2:
|
|
15201
15679
|
case 3:
|
|
@@ -15231,6 +15709,10 @@ $root.waproto = (function() {
|
|
|
15231
15709
|
break;
|
|
15232
15710
|
}
|
|
15233
15711
|
break;
|
|
15712
|
+
case "UNKNOWN":
|
|
15713
|
+
case 0:
|
|
15714
|
+
message.provider = 0;
|
|
15715
|
+
break;
|
|
15234
15716
|
case "OTHER":
|
|
15235
15717
|
case 1:
|
|
15236
15718
|
message.provider = 1;
|
|
@@ -15310,12 +15792,14 @@ $root.waproto = (function() {
|
|
|
15310
15792
|
* BotPlanningSearchSourceProvider enum.
|
|
15311
15793
|
* @name waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourcesMetadata.BotPlanningSearchSourceProvider
|
|
15312
15794
|
* @enum {number}
|
|
15795
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
15313
15796
|
* @property {number} OTHER=1 OTHER value
|
|
15314
15797
|
* @property {number} GOOGLE=2 GOOGLE value
|
|
15315
15798
|
* @property {number} BING=3 BING value
|
|
15316
15799
|
*/
|
|
15317
15800
|
BotPlanningSearchSourcesMetadata.BotPlanningSearchSourceProvider = (function() {
|
|
15318
15801
|
var valuesById = {}, values = Object.create(valuesById);
|
|
15802
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
15319
15803
|
values[valuesById[1] = "OTHER"] = 1;
|
|
15320
15804
|
values[valuesById[2] = "GOOGLE"] = 2;
|
|
15321
15805
|
values[valuesById[3] = "BING"] = 3;
|
|
@@ -15329,12 +15813,14 @@ $root.waproto = (function() {
|
|
|
15329
15813
|
* PlanningStepStatus enum.
|
|
15330
15814
|
* @name waproto.BotProgressIndicatorMetadata.BotPlanningStepMetadata.PlanningStepStatus
|
|
15331
15815
|
* @enum {number}
|
|
15816
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
15332
15817
|
* @property {number} PLANNED=1 PLANNED value
|
|
15333
15818
|
* @property {number} EXECUTING=2 EXECUTING value
|
|
15334
15819
|
* @property {number} FINISHED=3 FINISHED value
|
|
15335
15820
|
*/
|
|
15336
15821
|
BotPlanningStepMetadata.PlanningStepStatus = (function() {
|
|
15337
15822
|
var valuesById = {}, values = Object.create(valuesById);
|
|
15823
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
15338
15824
|
values[valuesById[1] = "PLANNED"] = 1;
|
|
15339
15825
|
values[valuesById[2] = "EXECUTING"] = 2;
|
|
15340
15826
|
values[valuesById[3] = "FINISHED"] = 3;
|
|
@@ -17082,6 +17568,658 @@ $root.waproto = (function() {
|
|
|
17082
17568
|
return values;
|
|
17083
17569
|
})();
|
|
17084
17570
|
|
|
17571
|
+
waproto.BotSourcesMetadata = (function() {
|
|
17572
|
+
|
|
17573
|
+
/**
|
|
17574
|
+
* Properties of a BotSourcesMetadata.
|
|
17575
|
+
* @memberof waproto
|
|
17576
|
+
* @interface IBotSourcesMetadata
|
|
17577
|
+
* @property {Array.<waproto.BotSourcesMetadata.IBotSourceItem>|null} [sources] BotSourcesMetadata sources
|
|
17578
|
+
*/
|
|
17579
|
+
|
|
17580
|
+
/**
|
|
17581
|
+
* Constructs a new BotSourcesMetadata.
|
|
17582
|
+
* @memberof waproto
|
|
17583
|
+
* @classdesc Represents a BotSourcesMetadata.
|
|
17584
|
+
* @implements IBotSourcesMetadata
|
|
17585
|
+
* @constructor
|
|
17586
|
+
* @param {waproto.IBotSourcesMetadata=} [properties] Properties to set
|
|
17587
|
+
*/
|
|
17588
|
+
function BotSourcesMetadata(properties) {
|
|
17589
|
+
this.sources = [];
|
|
17590
|
+
if (properties)
|
|
17591
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17592
|
+
if (properties[keys[i]] != null)
|
|
17593
|
+
this[keys[i]] = properties[keys[i]];
|
|
17594
|
+
}
|
|
17595
|
+
|
|
17596
|
+
/**
|
|
17597
|
+
* BotSourcesMetadata sources.
|
|
17598
|
+
* @member {Array.<waproto.BotSourcesMetadata.IBotSourceItem>} sources
|
|
17599
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17600
|
+
* @instance
|
|
17601
|
+
*/
|
|
17602
|
+
BotSourcesMetadata.prototype.sources = $util.emptyArray;
|
|
17603
|
+
|
|
17604
|
+
/**
|
|
17605
|
+
* Creates a new BotSourcesMetadata instance using the specified properties.
|
|
17606
|
+
* @function create
|
|
17607
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17608
|
+
* @static
|
|
17609
|
+
* @param {waproto.IBotSourcesMetadata=} [properties] Properties to set
|
|
17610
|
+
* @returns {waproto.BotSourcesMetadata} BotSourcesMetadata instance
|
|
17611
|
+
*/
|
|
17612
|
+
BotSourcesMetadata.create = function create(properties) {
|
|
17613
|
+
return new BotSourcesMetadata(properties);
|
|
17614
|
+
};
|
|
17615
|
+
|
|
17616
|
+
/**
|
|
17617
|
+
* Encodes the specified BotSourcesMetadata message. Does not implicitly {@link waproto.BotSourcesMetadata.verify|verify} messages.
|
|
17618
|
+
* @function encode
|
|
17619
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17620
|
+
* @static
|
|
17621
|
+
* @param {waproto.IBotSourcesMetadata} message BotSourcesMetadata message or plain object to encode
|
|
17622
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17623
|
+
* @returns {$protobuf.Writer} Writer
|
|
17624
|
+
*/
|
|
17625
|
+
BotSourcesMetadata.encode = function encode(message, writer) {
|
|
17626
|
+
if (!writer)
|
|
17627
|
+
writer = $Writer.create();
|
|
17628
|
+
if (message.sources != null && message.sources.length)
|
|
17629
|
+
for (var i = 0; i < message.sources.length; ++i)
|
|
17630
|
+
$root.waproto.BotSourcesMetadata.BotSourceItem.encode(message.sources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
17631
|
+
return writer;
|
|
17632
|
+
};
|
|
17633
|
+
|
|
17634
|
+
/**
|
|
17635
|
+
* Encodes the specified BotSourcesMetadata message, length delimited. Does not implicitly {@link waproto.BotSourcesMetadata.verify|verify} messages.
|
|
17636
|
+
* @function encodeDelimited
|
|
17637
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17638
|
+
* @static
|
|
17639
|
+
* @param {waproto.IBotSourcesMetadata} message BotSourcesMetadata message or plain object to encode
|
|
17640
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17641
|
+
* @returns {$protobuf.Writer} Writer
|
|
17642
|
+
*/
|
|
17643
|
+
BotSourcesMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17644
|
+
return this.encode(message, writer).ldelim();
|
|
17645
|
+
};
|
|
17646
|
+
|
|
17647
|
+
/**
|
|
17648
|
+
* Decodes a BotSourcesMetadata message from the specified reader or buffer.
|
|
17649
|
+
* @function decode
|
|
17650
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17651
|
+
* @static
|
|
17652
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17653
|
+
* @param {number} [length] Message length if known beforehand
|
|
17654
|
+
* @returns {waproto.BotSourcesMetadata} BotSourcesMetadata
|
|
17655
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17656
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17657
|
+
*/
|
|
17658
|
+
BotSourcesMetadata.decode = function decode(reader, length) {
|
|
17659
|
+
if (!(reader instanceof $Reader))
|
|
17660
|
+
reader = $Reader.create(reader);
|
|
17661
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotSourcesMetadata();
|
|
17662
|
+
while (reader.pos < end) {
|
|
17663
|
+
var tag = reader.uint32();
|
|
17664
|
+
switch (tag >>> 3) {
|
|
17665
|
+
case 1: {
|
|
17666
|
+
if (!(message.sources && message.sources.length))
|
|
17667
|
+
message.sources = [];
|
|
17668
|
+
message.sources.push($root.waproto.BotSourcesMetadata.BotSourceItem.decode(reader, reader.uint32()));
|
|
17669
|
+
break;
|
|
17670
|
+
}
|
|
17671
|
+
default:
|
|
17672
|
+
reader.skipType(tag & 7);
|
|
17673
|
+
break;
|
|
17674
|
+
}
|
|
17675
|
+
}
|
|
17676
|
+
return message;
|
|
17677
|
+
};
|
|
17678
|
+
|
|
17679
|
+
/**
|
|
17680
|
+
* Decodes a BotSourcesMetadata message from the specified reader or buffer, length delimited.
|
|
17681
|
+
* @function decodeDelimited
|
|
17682
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17683
|
+
* @static
|
|
17684
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17685
|
+
* @returns {waproto.BotSourcesMetadata} BotSourcesMetadata
|
|
17686
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17687
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17688
|
+
*/
|
|
17689
|
+
BotSourcesMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
17690
|
+
if (!(reader instanceof $Reader))
|
|
17691
|
+
reader = new $Reader(reader);
|
|
17692
|
+
return this.decode(reader, reader.uint32());
|
|
17693
|
+
};
|
|
17694
|
+
|
|
17695
|
+
/**
|
|
17696
|
+
* Verifies a BotSourcesMetadata message.
|
|
17697
|
+
* @function verify
|
|
17698
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17699
|
+
* @static
|
|
17700
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17701
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17702
|
+
*/
|
|
17703
|
+
BotSourcesMetadata.verify = function verify(message) {
|
|
17704
|
+
if (typeof message !== "object" || message === null)
|
|
17705
|
+
return "object expected";
|
|
17706
|
+
if (message.sources != null && message.hasOwnProperty("sources")) {
|
|
17707
|
+
if (!Array.isArray(message.sources))
|
|
17708
|
+
return "sources: array expected";
|
|
17709
|
+
for (var i = 0; i < message.sources.length; ++i) {
|
|
17710
|
+
var error = $root.waproto.BotSourcesMetadata.BotSourceItem.verify(message.sources[i]);
|
|
17711
|
+
if (error)
|
|
17712
|
+
return "sources." + error;
|
|
17713
|
+
}
|
|
17714
|
+
}
|
|
17715
|
+
return null;
|
|
17716
|
+
};
|
|
17717
|
+
|
|
17718
|
+
/**
|
|
17719
|
+
* Creates a BotSourcesMetadata message from a plain object. Also converts values to their respective internal types.
|
|
17720
|
+
* @function fromObject
|
|
17721
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17722
|
+
* @static
|
|
17723
|
+
* @param {Object.<string,*>} object Plain object
|
|
17724
|
+
* @returns {waproto.BotSourcesMetadata} BotSourcesMetadata
|
|
17725
|
+
*/
|
|
17726
|
+
BotSourcesMetadata.fromObject = function fromObject(object) {
|
|
17727
|
+
if (object instanceof $root.waproto.BotSourcesMetadata)
|
|
17728
|
+
return object;
|
|
17729
|
+
var message = new $root.waproto.BotSourcesMetadata();
|
|
17730
|
+
if (object.sources) {
|
|
17731
|
+
if (!Array.isArray(object.sources))
|
|
17732
|
+
throw TypeError(".waproto.BotSourcesMetadata.sources: array expected");
|
|
17733
|
+
message.sources = [];
|
|
17734
|
+
for (var i = 0; i < object.sources.length; ++i) {
|
|
17735
|
+
if (typeof object.sources[i] !== "object")
|
|
17736
|
+
throw TypeError(".waproto.BotSourcesMetadata.sources: object expected");
|
|
17737
|
+
message.sources[i] = $root.waproto.BotSourcesMetadata.BotSourceItem.fromObject(object.sources[i]);
|
|
17738
|
+
}
|
|
17739
|
+
}
|
|
17740
|
+
return message;
|
|
17741
|
+
};
|
|
17742
|
+
|
|
17743
|
+
/**
|
|
17744
|
+
* Creates a plain object from a BotSourcesMetadata message. Also converts values to other types if specified.
|
|
17745
|
+
* @function toObject
|
|
17746
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17747
|
+
* @static
|
|
17748
|
+
* @param {waproto.BotSourcesMetadata} message BotSourcesMetadata
|
|
17749
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17750
|
+
* @returns {Object.<string,*>} Plain object
|
|
17751
|
+
*/
|
|
17752
|
+
BotSourcesMetadata.toObject = function toObject(message, options) {
|
|
17753
|
+
if (!options)
|
|
17754
|
+
options = {};
|
|
17755
|
+
var object = {};
|
|
17756
|
+
if (options.arrays || options.defaults)
|
|
17757
|
+
object.sources = [];
|
|
17758
|
+
if (message.sources && message.sources.length) {
|
|
17759
|
+
object.sources = [];
|
|
17760
|
+
for (var j = 0; j < message.sources.length; ++j)
|
|
17761
|
+
object.sources[j] = $root.waproto.BotSourcesMetadata.BotSourceItem.toObject(message.sources[j], options);
|
|
17762
|
+
}
|
|
17763
|
+
return object;
|
|
17764
|
+
};
|
|
17765
|
+
|
|
17766
|
+
/**
|
|
17767
|
+
* Converts this BotSourcesMetadata to JSON.
|
|
17768
|
+
* @function toJSON
|
|
17769
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17770
|
+
* @instance
|
|
17771
|
+
* @returns {Object.<string,*>} JSON object
|
|
17772
|
+
*/
|
|
17773
|
+
BotSourcesMetadata.prototype.toJSON = function toJSON() {
|
|
17774
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17775
|
+
};
|
|
17776
|
+
|
|
17777
|
+
/**
|
|
17778
|
+
* Gets the default type url for BotSourcesMetadata
|
|
17779
|
+
* @function getTypeUrl
|
|
17780
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17781
|
+
* @static
|
|
17782
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
17783
|
+
* @returns {string} The default type url
|
|
17784
|
+
*/
|
|
17785
|
+
BotSourcesMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17786
|
+
if (typeUrlPrefix === undefined) {
|
|
17787
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17788
|
+
}
|
|
17789
|
+
return typeUrlPrefix + "/waproto.BotSourcesMetadata";
|
|
17790
|
+
};
|
|
17791
|
+
|
|
17792
|
+
BotSourcesMetadata.BotSourceItem = (function() {
|
|
17793
|
+
|
|
17794
|
+
/**
|
|
17795
|
+
* Properties of a BotSourceItem.
|
|
17796
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17797
|
+
* @interface IBotSourceItem
|
|
17798
|
+
* @property {waproto.BotSourcesMetadata.BotSourceItem.SourceProvider|null} [provider] BotSourceItem provider
|
|
17799
|
+
* @property {string|null} [thumbnailCdnUrl] BotSourceItem thumbnailCdnUrl
|
|
17800
|
+
* @property {string|null} [sourceProviderUrl] BotSourceItem sourceProviderUrl
|
|
17801
|
+
* @property {string|null} [sourceQuery] BotSourceItem sourceQuery
|
|
17802
|
+
* @property {string|null} [faviconCdnUrl] BotSourceItem faviconCdnUrl
|
|
17803
|
+
* @property {number|null} [citationNumber] BotSourceItem citationNumber
|
|
17804
|
+
*/
|
|
17805
|
+
|
|
17806
|
+
/**
|
|
17807
|
+
* Constructs a new BotSourceItem.
|
|
17808
|
+
* @memberof waproto.BotSourcesMetadata
|
|
17809
|
+
* @classdesc Represents a BotSourceItem.
|
|
17810
|
+
* @implements IBotSourceItem
|
|
17811
|
+
* @constructor
|
|
17812
|
+
* @param {waproto.BotSourcesMetadata.IBotSourceItem=} [properties] Properties to set
|
|
17813
|
+
*/
|
|
17814
|
+
function BotSourceItem(properties) {
|
|
17815
|
+
if (properties)
|
|
17816
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17817
|
+
if (properties[keys[i]] != null)
|
|
17818
|
+
this[keys[i]] = properties[keys[i]];
|
|
17819
|
+
}
|
|
17820
|
+
|
|
17821
|
+
/**
|
|
17822
|
+
* BotSourceItem provider.
|
|
17823
|
+
* @member {waproto.BotSourcesMetadata.BotSourceItem.SourceProvider|null|undefined} provider
|
|
17824
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
17825
|
+
* @instance
|
|
17826
|
+
*/
|
|
17827
|
+
BotSourceItem.prototype.provider = null;
|
|
17828
|
+
|
|
17829
|
+
/**
|
|
17830
|
+
* BotSourceItem thumbnailCdnUrl.
|
|
17831
|
+
* @member {string|null|undefined} thumbnailCdnUrl
|
|
17832
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
17833
|
+
* @instance
|
|
17834
|
+
*/
|
|
17835
|
+
BotSourceItem.prototype.thumbnailCdnUrl = null;
|
|
17836
|
+
|
|
17837
|
+
/**
|
|
17838
|
+
* BotSourceItem sourceProviderUrl.
|
|
17839
|
+
* @member {string|null|undefined} sourceProviderUrl
|
|
17840
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
17841
|
+
* @instance
|
|
17842
|
+
*/
|
|
17843
|
+
BotSourceItem.prototype.sourceProviderUrl = null;
|
|
17844
|
+
|
|
17845
|
+
/**
|
|
17846
|
+
* BotSourceItem sourceQuery.
|
|
17847
|
+
* @member {string|null|undefined} sourceQuery
|
|
17848
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
17849
|
+
* @instance
|
|
17850
|
+
*/
|
|
17851
|
+
BotSourceItem.prototype.sourceQuery = null;
|
|
17852
|
+
|
|
17853
|
+
/**
|
|
17854
|
+
* BotSourceItem faviconCdnUrl.
|
|
17855
|
+
* @member {string|null|undefined} faviconCdnUrl
|
|
17856
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
17857
|
+
* @instance
|
|
17858
|
+
*/
|
|
17859
|
+
BotSourceItem.prototype.faviconCdnUrl = null;
|
|
17860
|
+
|
|
17861
|
+
/**
|
|
17862
|
+
* BotSourceItem citationNumber.
|
|
17863
|
+
* @member {number|null|undefined} citationNumber
|
|
17864
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
17865
|
+
* @instance
|
|
17866
|
+
*/
|
|
17867
|
+
BotSourceItem.prototype.citationNumber = null;
|
|
17868
|
+
|
|
17869
|
+
// OneOf field names bound to virtual getters and setters
|
|
17870
|
+
var $oneOfFields;
|
|
17871
|
+
|
|
17872
|
+
// Virtual OneOf for proto3 optional field
|
|
17873
|
+
Object.defineProperty(BotSourceItem.prototype, "_provider", {
|
|
17874
|
+
get: $util.oneOfGetter($oneOfFields = ["provider"]),
|
|
17875
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
17876
|
+
});
|
|
17877
|
+
|
|
17878
|
+
// Virtual OneOf for proto3 optional field
|
|
17879
|
+
Object.defineProperty(BotSourceItem.prototype, "_thumbnailCdnUrl", {
|
|
17880
|
+
get: $util.oneOfGetter($oneOfFields = ["thumbnailCdnUrl"]),
|
|
17881
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
17882
|
+
});
|
|
17883
|
+
|
|
17884
|
+
// Virtual OneOf for proto3 optional field
|
|
17885
|
+
Object.defineProperty(BotSourceItem.prototype, "_sourceProviderUrl", {
|
|
17886
|
+
get: $util.oneOfGetter($oneOfFields = ["sourceProviderUrl"]),
|
|
17887
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
17888
|
+
});
|
|
17889
|
+
|
|
17890
|
+
// Virtual OneOf for proto3 optional field
|
|
17891
|
+
Object.defineProperty(BotSourceItem.prototype, "_sourceQuery", {
|
|
17892
|
+
get: $util.oneOfGetter($oneOfFields = ["sourceQuery"]),
|
|
17893
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
17894
|
+
});
|
|
17895
|
+
|
|
17896
|
+
// Virtual OneOf for proto3 optional field
|
|
17897
|
+
Object.defineProperty(BotSourceItem.prototype, "_faviconCdnUrl", {
|
|
17898
|
+
get: $util.oneOfGetter($oneOfFields = ["faviconCdnUrl"]),
|
|
17899
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
17900
|
+
});
|
|
17901
|
+
|
|
17902
|
+
// Virtual OneOf for proto3 optional field
|
|
17903
|
+
Object.defineProperty(BotSourceItem.prototype, "_citationNumber", {
|
|
17904
|
+
get: $util.oneOfGetter($oneOfFields = ["citationNumber"]),
|
|
17905
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
17906
|
+
});
|
|
17907
|
+
|
|
17908
|
+
/**
|
|
17909
|
+
* Creates a new BotSourceItem instance using the specified properties.
|
|
17910
|
+
* @function create
|
|
17911
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
17912
|
+
* @static
|
|
17913
|
+
* @param {waproto.BotSourcesMetadata.IBotSourceItem=} [properties] Properties to set
|
|
17914
|
+
* @returns {waproto.BotSourcesMetadata.BotSourceItem} BotSourceItem instance
|
|
17915
|
+
*/
|
|
17916
|
+
BotSourceItem.create = function create(properties) {
|
|
17917
|
+
return new BotSourceItem(properties);
|
|
17918
|
+
};
|
|
17919
|
+
|
|
17920
|
+
/**
|
|
17921
|
+
* Encodes the specified BotSourceItem message. Does not implicitly {@link waproto.BotSourcesMetadata.BotSourceItem.verify|verify} messages.
|
|
17922
|
+
* @function encode
|
|
17923
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
17924
|
+
* @static
|
|
17925
|
+
* @param {waproto.BotSourcesMetadata.IBotSourceItem} message BotSourceItem message or plain object to encode
|
|
17926
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17927
|
+
* @returns {$protobuf.Writer} Writer
|
|
17928
|
+
*/
|
|
17929
|
+
BotSourceItem.encode = function encode(message, writer) {
|
|
17930
|
+
if (!writer)
|
|
17931
|
+
writer = $Writer.create();
|
|
17932
|
+
if (message.provider != null && Object.hasOwnProperty.call(message, "provider"))
|
|
17933
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider);
|
|
17934
|
+
if (message.thumbnailCdnUrl != null && Object.hasOwnProperty.call(message, "thumbnailCdnUrl"))
|
|
17935
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.thumbnailCdnUrl);
|
|
17936
|
+
if (message.sourceProviderUrl != null && Object.hasOwnProperty.call(message, "sourceProviderUrl"))
|
|
17937
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceProviderUrl);
|
|
17938
|
+
if (message.sourceQuery != null && Object.hasOwnProperty.call(message, "sourceQuery"))
|
|
17939
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.sourceQuery);
|
|
17940
|
+
if (message.faviconCdnUrl != null && Object.hasOwnProperty.call(message, "faviconCdnUrl"))
|
|
17941
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.faviconCdnUrl);
|
|
17942
|
+
if (message.citationNumber != null && Object.hasOwnProperty.call(message, "citationNumber"))
|
|
17943
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.citationNumber);
|
|
17944
|
+
return writer;
|
|
17945
|
+
};
|
|
17946
|
+
|
|
17947
|
+
/**
|
|
17948
|
+
* Encodes the specified BotSourceItem message, length delimited. Does not implicitly {@link waproto.BotSourcesMetadata.BotSourceItem.verify|verify} messages.
|
|
17949
|
+
* @function encodeDelimited
|
|
17950
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
17951
|
+
* @static
|
|
17952
|
+
* @param {waproto.BotSourcesMetadata.IBotSourceItem} message BotSourceItem message or plain object to encode
|
|
17953
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17954
|
+
* @returns {$protobuf.Writer} Writer
|
|
17955
|
+
*/
|
|
17956
|
+
BotSourceItem.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17957
|
+
return this.encode(message, writer).ldelim();
|
|
17958
|
+
};
|
|
17959
|
+
|
|
17960
|
+
/**
|
|
17961
|
+
* Decodes a BotSourceItem message from the specified reader or buffer.
|
|
17962
|
+
* @function decode
|
|
17963
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
17964
|
+
* @static
|
|
17965
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17966
|
+
* @param {number} [length] Message length if known beforehand
|
|
17967
|
+
* @returns {waproto.BotSourcesMetadata.BotSourceItem} BotSourceItem
|
|
17968
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17969
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17970
|
+
*/
|
|
17971
|
+
BotSourceItem.decode = function decode(reader, length) {
|
|
17972
|
+
if (!(reader instanceof $Reader))
|
|
17973
|
+
reader = $Reader.create(reader);
|
|
17974
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotSourcesMetadata.BotSourceItem();
|
|
17975
|
+
while (reader.pos < end) {
|
|
17976
|
+
var tag = reader.uint32();
|
|
17977
|
+
switch (tag >>> 3) {
|
|
17978
|
+
case 1: {
|
|
17979
|
+
message.provider = reader.int32();
|
|
17980
|
+
break;
|
|
17981
|
+
}
|
|
17982
|
+
case 2: {
|
|
17983
|
+
message.thumbnailCdnUrl = reader.string();
|
|
17984
|
+
break;
|
|
17985
|
+
}
|
|
17986
|
+
case 3: {
|
|
17987
|
+
message.sourceProviderUrl = reader.string();
|
|
17988
|
+
break;
|
|
17989
|
+
}
|
|
17990
|
+
case 4: {
|
|
17991
|
+
message.sourceQuery = reader.string();
|
|
17992
|
+
break;
|
|
17993
|
+
}
|
|
17994
|
+
case 5: {
|
|
17995
|
+
message.faviconCdnUrl = reader.string();
|
|
17996
|
+
break;
|
|
17997
|
+
}
|
|
17998
|
+
case 6: {
|
|
17999
|
+
message.citationNumber = reader.uint32();
|
|
18000
|
+
break;
|
|
18001
|
+
}
|
|
18002
|
+
default:
|
|
18003
|
+
reader.skipType(tag & 7);
|
|
18004
|
+
break;
|
|
18005
|
+
}
|
|
18006
|
+
}
|
|
18007
|
+
return message;
|
|
18008
|
+
};
|
|
18009
|
+
|
|
18010
|
+
/**
|
|
18011
|
+
* Decodes a BotSourceItem message from the specified reader or buffer, length delimited.
|
|
18012
|
+
* @function decodeDelimited
|
|
18013
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
18014
|
+
* @static
|
|
18015
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18016
|
+
* @returns {waproto.BotSourcesMetadata.BotSourceItem} BotSourceItem
|
|
18017
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18018
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18019
|
+
*/
|
|
18020
|
+
BotSourceItem.decodeDelimited = function decodeDelimited(reader) {
|
|
18021
|
+
if (!(reader instanceof $Reader))
|
|
18022
|
+
reader = new $Reader(reader);
|
|
18023
|
+
return this.decode(reader, reader.uint32());
|
|
18024
|
+
};
|
|
18025
|
+
|
|
18026
|
+
/**
|
|
18027
|
+
* Verifies a BotSourceItem message.
|
|
18028
|
+
* @function verify
|
|
18029
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
18030
|
+
* @static
|
|
18031
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18032
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18033
|
+
*/
|
|
18034
|
+
BotSourceItem.verify = function verify(message) {
|
|
18035
|
+
if (typeof message !== "object" || message === null)
|
|
18036
|
+
return "object expected";
|
|
18037
|
+
var properties = {};
|
|
18038
|
+
if (message.provider != null && message.hasOwnProperty("provider")) {
|
|
18039
|
+
properties._provider = 1;
|
|
18040
|
+
switch (message.provider) {
|
|
18041
|
+
default:
|
|
18042
|
+
return "provider: enum value expected";
|
|
18043
|
+
case 0:
|
|
18044
|
+
case 1:
|
|
18045
|
+
case 2:
|
|
18046
|
+
case 3:
|
|
18047
|
+
break;
|
|
18048
|
+
}
|
|
18049
|
+
}
|
|
18050
|
+
if (message.thumbnailCdnUrl != null && message.hasOwnProperty("thumbnailCdnUrl")) {
|
|
18051
|
+
properties._thumbnailCdnUrl = 1;
|
|
18052
|
+
if (!$util.isString(message.thumbnailCdnUrl))
|
|
18053
|
+
return "thumbnailCdnUrl: string expected";
|
|
18054
|
+
}
|
|
18055
|
+
if (message.sourceProviderUrl != null && message.hasOwnProperty("sourceProviderUrl")) {
|
|
18056
|
+
properties._sourceProviderUrl = 1;
|
|
18057
|
+
if (!$util.isString(message.sourceProviderUrl))
|
|
18058
|
+
return "sourceProviderUrl: string expected";
|
|
18059
|
+
}
|
|
18060
|
+
if (message.sourceQuery != null && message.hasOwnProperty("sourceQuery")) {
|
|
18061
|
+
properties._sourceQuery = 1;
|
|
18062
|
+
if (!$util.isString(message.sourceQuery))
|
|
18063
|
+
return "sourceQuery: string expected";
|
|
18064
|
+
}
|
|
18065
|
+
if (message.faviconCdnUrl != null && message.hasOwnProperty("faviconCdnUrl")) {
|
|
18066
|
+
properties._faviconCdnUrl = 1;
|
|
18067
|
+
if (!$util.isString(message.faviconCdnUrl))
|
|
18068
|
+
return "faviconCdnUrl: string expected";
|
|
18069
|
+
}
|
|
18070
|
+
if (message.citationNumber != null && message.hasOwnProperty("citationNumber")) {
|
|
18071
|
+
properties._citationNumber = 1;
|
|
18072
|
+
if (!$util.isInteger(message.citationNumber))
|
|
18073
|
+
return "citationNumber: integer expected";
|
|
18074
|
+
}
|
|
18075
|
+
return null;
|
|
18076
|
+
};
|
|
18077
|
+
|
|
18078
|
+
/**
|
|
18079
|
+
* Creates a BotSourceItem message from a plain object. Also converts values to their respective internal types.
|
|
18080
|
+
* @function fromObject
|
|
18081
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
18082
|
+
* @static
|
|
18083
|
+
* @param {Object.<string,*>} object Plain object
|
|
18084
|
+
* @returns {waproto.BotSourcesMetadata.BotSourceItem} BotSourceItem
|
|
18085
|
+
*/
|
|
18086
|
+
BotSourceItem.fromObject = function fromObject(object) {
|
|
18087
|
+
if (object instanceof $root.waproto.BotSourcesMetadata.BotSourceItem)
|
|
18088
|
+
return object;
|
|
18089
|
+
var message = new $root.waproto.BotSourcesMetadata.BotSourceItem();
|
|
18090
|
+
switch (object.provider) {
|
|
18091
|
+
default:
|
|
18092
|
+
if (typeof object.provider === "number") {
|
|
18093
|
+
message.provider = object.provider;
|
|
18094
|
+
break;
|
|
18095
|
+
}
|
|
18096
|
+
break;
|
|
18097
|
+
case "UNKNOWN":
|
|
18098
|
+
case 0:
|
|
18099
|
+
message.provider = 0;
|
|
18100
|
+
break;
|
|
18101
|
+
case "BING":
|
|
18102
|
+
case 1:
|
|
18103
|
+
message.provider = 1;
|
|
18104
|
+
break;
|
|
18105
|
+
case "GOOGLE":
|
|
18106
|
+
case 2:
|
|
18107
|
+
message.provider = 2;
|
|
18108
|
+
break;
|
|
18109
|
+
case "SUPPORT":
|
|
18110
|
+
case 3:
|
|
18111
|
+
message.provider = 3;
|
|
18112
|
+
break;
|
|
18113
|
+
}
|
|
18114
|
+
if (object.thumbnailCdnUrl != null)
|
|
18115
|
+
message.thumbnailCdnUrl = String(object.thumbnailCdnUrl);
|
|
18116
|
+
if (object.sourceProviderUrl != null)
|
|
18117
|
+
message.sourceProviderUrl = String(object.sourceProviderUrl);
|
|
18118
|
+
if (object.sourceQuery != null)
|
|
18119
|
+
message.sourceQuery = String(object.sourceQuery);
|
|
18120
|
+
if (object.faviconCdnUrl != null)
|
|
18121
|
+
message.faviconCdnUrl = String(object.faviconCdnUrl);
|
|
18122
|
+
if (object.citationNumber != null)
|
|
18123
|
+
message.citationNumber = object.citationNumber >>> 0;
|
|
18124
|
+
return message;
|
|
18125
|
+
};
|
|
18126
|
+
|
|
18127
|
+
/**
|
|
18128
|
+
* Creates a plain object from a BotSourceItem message. Also converts values to other types if specified.
|
|
18129
|
+
* @function toObject
|
|
18130
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
18131
|
+
* @static
|
|
18132
|
+
* @param {waproto.BotSourcesMetadata.BotSourceItem} message BotSourceItem
|
|
18133
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18134
|
+
* @returns {Object.<string,*>} Plain object
|
|
18135
|
+
*/
|
|
18136
|
+
BotSourceItem.toObject = function toObject(message, options) {
|
|
18137
|
+
if (!options)
|
|
18138
|
+
options = {};
|
|
18139
|
+
var object = {};
|
|
18140
|
+
if (message.provider != null && message.hasOwnProperty("provider")) {
|
|
18141
|
+
object.provider = options.enums === String ? $root.waproto.BotSourcesMetadata.BotSourceItem.SourceProvider[message.provider] === undefined ? message.provider : $root.waproto.BotSourcesMetadata.BotSourceItem.SourceProvider[message.provider] : message.provider;
|
|
18142
|
+
if (options.oneofs)
|
|
18143
|
+
object._provider = "provider";
|
|
18144
|
+
}
|
|
18145
|
+
if (message.thumbnailCdnUrl != null && message.hasOwnProperty("thumbnailCdnUrl")) {
|
|
18146
|
+
object.thumbnailCdnUrl = message.thumbnailCdnUrl;
|
|
18147
|
+
if (options.oneofs)
|
|
18148
|
+
object._thumbnailCdnUrl = "thumbnailCdnUrl";
|
|
18149
|
+
}
|
|
18150
|
+
if (message.sourceProviderUrl != null && message.hasOwnProperty("sourceProviderUrl")) {
|
|
18151
|
+
object.sourceProviderUrl = message.sourceProviderUrl;
|
|
18152
|
+
if (options.oneofs)
|
|
18153
|
+
object._sourceProviderUrl = "sourceProviderUrl";
|
|
18154
|
+
}
|
|
18155
|
+
if (message.sourceQuery != null && message.hasOwnProperty("sourceQuery")) {
|
|
18156
|
+
object.sourceQuery = message.sourceQuery;
|
|
18157
|
+
if (options.oneofs)
|
|
18158
|
+
object._sourceQuery = "sourceQuery";
|
|
18159
|
+
}
|
|
18160
|
+
if (message.faviconCdnUrl != null && message.hasOwnProperty("faviconCdnUrl")) {
|
|
18161
|
+
object.faviconCdnUrl = message.faviconCdnUrl;
|
|
18162
|
+
if (options.oneofs)
|
|
18163
|
+
object._faviconCdnUrl = "faviconCdnUrl";
|
|
18164
|
+
}
|
|
18165
|
+
if (message.citationNumber != null && message.hasOwnProperty("citationNumber")) {
|
|
18166
|
+
object.citationNumber = message.citationNumber;
|
|
18167
|
+
if (options.oneofs)
|
|
18168
|
+
object._citationNumber = "citationNumber";
|
|
18169
|
+
}
|
|
18170
|
+
return object;
|
|
18171
|
+
};
|
|
18172
|
+
|
|
18173
|
+
/**
|
|
18174
|
+
* Converts this BotSourceItem to JSON.
|
|
18175
|
+
* @function toJSON
|
|
18176
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
18177
|
+
* @instance
|
|
18178
|
+
* @returns {Object.<string,*>} JSON object
|
|
18179
|
+
*/
|
|
18180
|
+
BotSourceItem.prototype.toJSON = function toJSON() {
|
|
18181
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18182
|
+
};
|
|
18183
|
+
|
|
18184
|
+
/**
|
|
18185
|
+
* Gets the default type url for BotSourceItem
|
|
18186
|
+
* @function getTypeUrl
|
|
18187
|
+
* @memberof waproto.BotSourcesMetadata.BotSourceItem
|
|
18188
|
+
* @static
|
|
18189
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18190
|
+
* @returns {string} The default type url
|
|
18191
|
+
*/
|
|
18192
|
+
BotSourceItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18193
|
+
if (typeUrlPrefix === undefined) {
|
|
18194
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
18195
|
+
}
|
|
18196
|
+
return typeUrlPrefix + "/waproto.BotSourcesMetadata.BotSourceItem";
|
|
18197
|
+
};
|
|
18198
|
+
|
|
18199
|
+
/**
|
|
18200
|
+
* SourceProvider enum.
|
|
18201
|
+
* @name waproto.BotSourcesMetadata.BotSourceItem.SourceProvider
|
|
18202
|
+
* @enum {number}
|
|
18203
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
18204
|
+
* @property {number} BING=1 BING value
|
|
18205
|
+
* @property {number} GOOGLE=2 GOOGLE value
|
|
18206
|
+
* @property {number} SUPPORT=3 SUPPORT value
|
|
18207
|
+
*/
|
|
18208
|
+
BotSourceItem.SourceProvider = (function() {
|
|
18209
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
18210
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
18211
|
+
values[valuesById[1] = "BING"] = 1;
|
|
18212
|
+
values[valuesById[2] = "GOOGLE"] = 2;
|
|
18213
|
+
values[valuesById[3] = "SUPPORT"] = 3;
|
|
18214
|
+
return values;
|
|
18215
|
+
})();
|
|
18216
|
+
|
|
18217
|
+
return BotSourceItem;
|
|
18218
|
+
})();
|
|
18219
|
+
|
|
18220
|
+
return BotSourcesMetadata;
|
|
18221
|
+
})();
|
|
18222
|
+
|
|
17085
18223
|
waproto.BotSuggestedPromptMetadata = (function() {
|
|
17086
18224
|
|
|
17087
18225
|
/**
|
|
@@ -27977,6 +29115,7 @@ $root.waproto = (function() {
|
|
|
27977
29115
|
* @property {waproto.ContextInfo.StatusAttributionType|null} [statusAttributionType] ContextInfo statusAttributionType
|
|
27978
29116
|
* @property {waproto.IUrlTrackingMap|null} [urlTrackingMap] ContextInfo urlTrackingMap
|
|
27979
29117
|
* @property {waproto.ContextInfo.PairedMediaType|null} [pairedMediaType] ContextInfo pairedMediaType
|
|
29118
|
+
* @property {number|null} [rankingVersion] ContextInfo rankingVersion
|
|
27980
29119
|
*/
|
|
27981
29120
|
|
|
27982
29121
|
/**
|
|
@@ -28340,6 +29479,14 @@ $root.waproto = (function() {
|
|
|
28340
29479
|
*/
|
|
28341
29480
|
ContextInfo.prototype.pairedMediaType = null;
|
|
28342
29481
|
|
|
29482
|
+
/**
|
|
29483
|
+
* ContextInfo rankingVersion.
|
|
29484
|
+
* @member {number|null|undefined} rankingVersion
|
|
29485
|
+
* @memberof waproto.ContextInfo
|
|
29486
|
+
* @instance
|
|
29487
|
+
*/
|
|
29488
|
+
ContextInfo.prototype.rankingVersion = null;
|
|
29489
|
+
|
|
28343
29490
|
// OneOf field names bound to virtual getters and setters
|
|
28344
29491
|
var $oneOfFields;
|
|
28345
29492
|
|
|
@@ -28589,6 +29736,12 @@ $root.waproto = (function() {
|
|
|
28589
29736
|
set: $util.oneOfSetter($oneOfFields)
|
|
28590
29737
|
});
|
|
28591
29738
|
|
|
29739
|
+
// Virtual OneOf for proto3 optional field
|
|
29740
|
+
Object.defineProperty(ContextInfo.prototype, "_rankingVersion", {
|
|
29741
|
+
get: $util.oneOfGetter($oneOfFields = ["rankingVersion"]),
|
|
29742
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
29743
|
+
});
|
|
29744
|
+
|
|
28592
29745
|
/**
|
|
28593
29746
|
* Creates a new ContextInfo instance using the specified properties.
|
|
28594
29747
|
* @function create
|
|
@@ -28701,6 +29854,8 @@ $root.waproto = (function() {
|
|
|
28701
29854
|
$root.waproto.UrlTrackingMap.encode(message.urlTrackingMap, writer.uint32(/* id 58, wireType 2 =*/466).fork()).ldelim();
|
|
28702
29855
|
if (message.pairedMediaType != null && Object.hasOwnProperty.call(message, "pairedMediaType"))
|
|
28703
29856
|
writer.uint32(/* id 59, wireType 0 =*/472).int32(message.pairedMediaType);
|
|
29857
|
+
if (message.rankingVersion != null && Object.hasOwnProperty.call(message, "rankingVersion"))
|
|
29858
|
+
writer.uint32(/* id 60, wireType 0 =*/480).uint32(message.rankingVersion);
|
|
28704
29859
|
return writer;
|
|
28705
29860
|
};
|
|
28706
29861
|
|
|
@@ -28911,6 +30066,10 @@ $root.waproto = (function() {
|
|
|
28911
30066
|
message.pairedMediaType = reader.int32();
|
|
28912
30067
|
break;
|
|
28913
30068
|
}
|
|
30069
|
+
case 60: {
|
|
30070
|
+
message.rankingVersion = reader.uint32();
|
|
30071
|
+
break;
|
|
30072
|
+
}
|
|
28914
30073
|
default:
|
|
28915
30074
|
reader.skipType(tag & 7);
|
|
28916
30075
|
break;
|
|
@@ -29221,6 +30380,11 @@ $root.waproto = (function() {
|
|
|
29221
30380
|
break;
|
|
29222
30381
|
}
|
|
29223
30382
|
}
|
|
30383
|
+
if (message.rankingVersion != null && message.hasOwnProperty("rankingVersion")) {
|
|
30384
|
+
properties._rankingVersion = 1;
|
|
30385
|
+
if (!$util.isInteger(message.rankingVersion))
|
|
30386
|
+
return "rankingVersion: integer expected";
|
|
30387
|
+
}
|
|
29224
30388
|
return null;
|
|
29225
30389
|
};
|
|
29226
30390
|
|
|
@@ -29434,6 +30598,8 @@ $root.waproto = (function() {
|
|
|
29434
30598
|
message.pairedMediaType = 4;
|
|
29435
30599
|
break;
|
|
29436
30600
|
}
|
|
30601
|
+
if (object.rankingVersion != null)
|
|
30602
|
+
message.rankingVersion = object.rankingVersion >>> 0;
|
|
29437
30603
|
return message;
|
|
29438
30604
|
};
|
|
29439
30605
|
|
|
@@ -29672,6 +30838,11 @@ $root.waproto = (function() {
|
|
|
29672
30838
|
if (options.oneofs)
|
|
29673
30839
|
object._pairedMediaType = "pairedMediaType";
|
|
29674
30840
|
}
|
|
30841
|
+
if (message.rankingVersion != null && message.hasOwnProperty("rankingVersion")) {
|
|
30842
|
+
object.rankingVersion = message.rankingVersion;
|
|
30843
|
+
if (options.oneofs)
|
|
30844
|
+
object._rankingVersion = "rankingVersion";
|
|
30845
|
+
}
|
|
29675
30846
|
return object;
|
|
29676
30847
|
};
|
|
29677
30848
|
|
|
@@ -33213,6 +34384,8 @@ $root.waproto = (function() {
|
|
|
33213
34384
|
* @property {waproto.PrivacySystemMessage|null} [systemMessageToInsert] Conversation systemMessageToInsert
|
|
33214
34385
|
* @property {boolean|null} [capiCreatedGroup] Conversation capiCreatedGroup
|
|
33215
34386
|
* @property {string|null} [accountLid] Conversation accountLid
|
|
34387
|
+
* @property {boolean|null} [limitSharing] Conversation limitSharing
|
|
34388
|
+
* @property {number|Long|null} [limitSharingSettingTimestamp] Conversation limitSharingSettingTimestamp
|
|
33216
34389
|
*/
|
|
33217
34390
|
|
|
33218
34391
|
/**
|
|
@@ -33624,6 +34797,22 @@ $root.waproto = (function() {
|
|
|
33624
34797
|
*/
|
|
33625
34798
|
Conversation.prototype.accountLid = null;
|
|
33626
34799
|
|
|
34800
|
+
/**
|
|
34801
|
+
* Conversation limitSharing.
|
|
34802
|
+
* @member {boolean|null|undefined} limitSharing
|
|
34803
|
+
* @memberof waproto.Conversation
|
|
34804
|
+
* @instance
|
|
34805
|
+
*/
|
|
34806
|
+
Conversation.prototype.limitSharing = null;
|
|
34807
|
+
|
|
34808
|
+
/**
|
|
34809
|
+
* Conversation limitSharingSettingTimestamp.
|
|
34810
|
+
* @member {number|Long|null|undefined} limitSharingSettingTimestamp
|
|
34811
|
+
* @memberof waproto.Conversation
|
|
34812
|
+
* @instance
|
|
34813
|
+
*/
|
|
34814
|
+
Conversation.prototype.limitSharingSettingTimestamp = null;
|
|
34815
|
+
|
|
33627
34816
|
// OneOf field names bound to virtual getters and setters
|
|
33628
34817
|
var $oneOfFields;
|
|
33629
34818
|
|
|
@@ -33903,6 +35092,18 @@ $root.waproto = (function() {
|
|
|
33903
35092
|
set: $util.oneOfSetter($oneOfFields)
|
|
33904
35093
|
});
|
|
33905
35094
|
|
|
35095
|
+
// Virtual OneOf for proto3 optional field
|
|
35096
|
+
Object.defineProperty(Conversation.prototype, "_limitSharing", {
|
|
35097
|
+
get: $util.oneOfGetter($oneOfFields = ["limitSharing"]),
|
|
35098
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35099
|
+
});
|
|
35100
|
+
|
|
35101
|
+
// Virtual OneOf for proto3 optional field
|
|
35102
|
+
Object.defineProperty(Conversation.prototype, "_limitSharingSettingTimestamp", {
|
|
35103
|
+
get: $util.oneOfGetter($oneOfFields = ["limitSharingSettingTimestamp"]),
|
|
35104
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35105
|
+
});
|
|
35106
|
+
|
|
33906
35107
|
/**
|
|
33907
35108
|
* Creates a new Conversation instance using the specified properties.
|
|
33908
35109
|
* @function create
|
|
@@ -34026,6 +35227,10 @@ $root.waproto = (function() {
|
|
|
34026
35227
|
writer.uint32(/* id 48, wireType 0 =*/384).bool(message.capiCreatedGroup);
|
|
34027
35228
|
if (message.accountLid != null && Object.hasOwnProperty.call(message, "accountLid"))
|
|
34028
35229
|
writer.uint32(/* id 49, wireType 2 =*/394).string(message.accountLid);
|
|
35230
|
+
if (message.limitSharing != null && Object.hasOwnProperty.call(message, "limitSharing"))
|
|
35231
|
+
writer.uint32(/* id 50, wireType 0 =*/400).bool(message.limitSharing);
|
|
35232
|
+
if (message.limitSharingSettingTimestamp != null && Object.hasOwnProperty.call(message, "limitSharingSettingTimestamp"))
|
|
35233
|
+
writer.uint32(/* id 51, wireType 0 =*/408).int64(message.limitSharingSettingTimestamp);
|
|
34029
35234
|
return writer;
|
|
34030
35235
|
};
|
|
34031
35236
|
|
|
@@ -34260,6 +35465,14 @@ $root.waproto = (function() {
|
|
|
34260
35465
|
message.accountLid = reader.string();
|
|
34261
35466
|
break;
|
|
34262
35467
|
}
|
|
35468
|
+
case 50: {
|
|
35469
|
+
message.limitSharing = reader.bool();
|
|
35470
|
+
break;
|
|
35471
|
+
}
|
|
35472
|
+
case 51: {
|
|
35473
|
+
message.limitSharingSettingTimestamp = reader.int64();
|
|
35474
|
+
break;
|
|
35475
|
+
}
|
|
34263
35476
|
default:
|
|
34264
35477
|
reader.skipType(tag & 7);
|
|
34265
35478
|
break;
|
|
@@ -34572,6 +35785,16 @@ $root.waproto = (function() {
|
|
|
34572
35785
|
if (!$util.isString(message.accountLid))
|
|
34573
35786
|
return "accountLid: string expected";
|
|
34574
35787
|
}
|
|
35788
|
+
if (message.limitSharing != null && message.hasOwnProperty("limitSharing")) {
|
|
35789
|
+
properties._limitSharing = 1;
|
|
35790
|
+
if (typeof message.limitSharing !== "boolean")
|
|
35791
|
+
return "limitSharing: boolean expected";
|
|
35792
|
+
}
|
|
35793
|
+
if (message.limitSharingSettingTimestamp != null && message.hasOwnProperty("limitSharingSettingTimestamp")) {
|
|
35794
|
+
properties._limitSharingSettingTimestamp = 1;
|
|
35795
|
+
if (!$util.isInteger(message.limitSharingSettingTimestamp) && !(message.limitSharingSettingTimestamp && $util.isInteger(message.limitSharingSettingTimestamp.low) && $util.isInteger(message.limitSharingSettingTimestamp.high)))
|
|
35796
|
+
return "limitSharingSettingTimestamp: integer|Long expected";
|
|
35797
|
+
}
|
|
34575
35798
|
return null;
|
|
34576
35799
|
};
|
|
34577
35800
|
|
|
@@ -34816,6 +36039,17 @@ $root.waproto = (function() {
|
|
|
34816
36039
|
message.capiCreatedGroup = Boolean(object.capiCreatedGroup);
|
|
34817
36040
|
if (object.accountLid != null)
|
|
34818
36041
|
message.accountLid = String(object.accountLid);
|
|
36042
|
+
if (object.limitSharing != null)
|
|
36043
|
+
message.limitSharing = Boolean(object.limitSharing);
|
|
36044
|
+
if (object.limitSharingSettingTimestamp != null)
|
|
36045
|
+
if ($util.Long)
|
|
36046
|
+
(message.limitSharingSettingTimestamp = $util.Long.fromValue(object.limitSharingSettingTimestamp)).unsigned = false;
|
|
36047
|
+
else if (typeof object.limitSharingSettingTimestamp === "string")
|
|
36048
|
+
message.limitSharingSettingTimestamp = parseInt(object.limitSharingSettingTimestamp, 10);
|
|
36049
|
+
else if (typeof object.limitSharingSettingTimestamp === "number")
|
|
36050
|
+
message.limitSharingSettingTimestamp = object.limitSharingSettingTimestamp;
|
|
36051
|
+
else if (typeof object.limitSharingSettingTimestamp === "object")
|
|
36052
|
+
message.limitSharingSettingTimestamp = new $util.LongBits(object.limitSharingSettingTimestamp.low >>> 0, object.limitSharingSettingTimestamp.high >>> 0).toNumber();
|
|
34819
36053
|
return message;
|
|
34820
36054
|
};
|
|
34821
36055
|
|
|
@@ -35101,6 +36335,19 @@ $root.waproto = (function() {
|
|
|
35101
36335
|
if (options.oneofs)
|
|
35102
36336
|
object._accountLid = "accountLid";
|
|
35103
36337
|
}
|
|
36338
|
+
if (message.limitSharing != null && message.hasOwnProperty("limitSharing")) {
|
|
36339
|
+
object.limitSharing = message.limitSharing;
|
|
36340
|
+
if (options.oneofs)
|
|
36341
|
+
object._limitSharing = "limitSharing";
|
|
36342
|
+
}
|
|
36343
|
+
if (message.limitSharingSettingTimestamp != null && message.hasOwnProperty("limitSharingSettingTimestamp")) {
|
|
36344
|
+
if (typeof message.limitSharingSettingTimestamp === "number")
|
|
36345
|
+
object.limitSharingSettingTimestamp = options.longs === String ? String(message.limitSharingSettingTimestamp) : message.limitSharingSettingTimestamp;
|
|
36346
|
+
else
|
|
36347
|
+
object.limitSharingSettingTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.limitSharingSettingTimestamp) : options.longs === Number ? new $util.LongBits(message.limitSharingSettingTimestamp.low >>> 0, message.limitSharingSettingTimestamp.high >>> 0).toNumber() : message.limitSharingSettingTimestamp;
|
|
36348
|
+
if (options.oneofs)
|
|
36349
|
+
object._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
|
|
36350
|
+
}
|
|
35104
36351
|
return object;
|
|
35105
36352
|
};
|
|
35106
36353
|
|
|
@@ -49265,6 +50512,288 @@ $root.waproto = (function() {
|
|
|
49265
50512
|
return LegacyMessage;
|
|
49266
50513
|
})();
|
|
49267
50514
|
|
|
50515
|
+
waproto.LimitSharing = (function() {
|
|
50516
|
+
|
|
50517
|
+
/**
|
|
50518
|
+
* Properties of a LimitSharing.
|
|
50519
|
+
* @memberof waproto
|
|
50520
|
+
* @interface ILimitSharing
|
|
50521
|
+
* @property {boolean|null} [sharingLimited] LimitSharing sharingLimited
|
|
50522
|
+
* @property {waproto.LimitSharing.Trigger|null} [trigger] LimitSharing trigger
|
|
50523
|
+
*/
|
|
50524
|
+
|
|
50525
|
+
/**
|
|
50526
|
+
* Constructs a new LimitSharing.
|
|
50527
|
+
* @memberof waproto
|
|
50528
|
+
* @classdesc Represents a LimitSharing.
|
|
50529
|
+
* @implements ILimitSharing
|
|
50530
|
+
* @constructor
|
|
50531
|
+
* @param {waproto.ILimitSharing=} [properties] Properties to set
|
|
50532
|
+
*/
|
|
50533
|
+
function LimitSharing(properties) {
|
|
50534
|
+
if (properties)
|
|
50535
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50536
|
+
if (properties[keys[i]] != null)
|
|
50537
|
+
this[keys[i]] = properties[keys[i]];
|
|
50538
|
+
}
|
|
50539
|
+
|
|
50540
|
+
/**
|
|
50541
|
+
* LimitSharing sharingLimited.
|
|
50542
|
+
* @member {boolean|null|undefined} sharingLimited
|
|
50543
|
+
* @memberof waproto.LimitSharing
|
|
50544
|
+
* @instance
|
|
50545
|
+
*/
|
|
50546
|
+
LimitSharing.prototype.sharingLimited = null;
|
|
50547
|
+
|
|
50548
|
+
/**
|
|
50549
|
+
* LimitSharing trigger.
|
|
50550
|
+
* @member {waproto.LimitSharing.Trigger|null|undefined} trigger
|
|
50551
|
+
* @memberof waproto.LimitSharing
|
|
50552
|
+
* @instance
|
|
50553
|
+
*/
|
|
50554
|
+
LimitSharing.prototype.trigger = null;
|
|
50555
|
+
|
|
50556
|
+
// OneOf field names bound to virtual getters and setters
|
|
50557
|
+
var $oneOfFields;
|
|
50558
|
+
|
|
50559
|
+
// Virtual OneOf for proto3 optional field
|
|
50560
|
+
Object.defineProperty(LimitSharing.prototype, "_sharingLimited", {
|
|
50561
|
+
get: $util.oneOfGetter($oneOfFields = ["sharingLimited"]),
|
|
50562
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
50563
|
+
});
|
|
50564
|
+
|
|
50565
|
+
// Virtual OneOf for proto3 optional field
|
|
50566
|
+
Object.defineProperty(LimitSharing.prototype, "_trigger", {
|
|
50567
|
+
get: $util.oneOfGetter($oneOfFields = ["trigger"]),
|
|
50568
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
50569
|
+
});
|
|
50570
|
+
|
|
50571
|
+
/**
|
|
50572
|
+
* Creates a new LimitSharing instance using the specified properties.
|
|
50573
|
+
* @function create
|
|
50574
|
+
* @memberof waproto.LimitSharing
|
|
50575
|
+
* @static
|
|
50576
|
+
* @param {waproto.ILimitSharing=} [properties] Properties to set
|
|
50577
|
+
* @returns {waproto.LimitSharing} LimitSharing instance
|
|
50578
|
+
*/
|
|
50579
|
+
LimitSharing.create = function create(properties) {
|
|
50580
|
+
return new LimitSharing(properties);
|
|
50581
|
+
};
|
|
50582
|
+
|
|
50583
|
+
/**
|
|
50584
|
+
* Encodes the specified LimitSharing message. Does not implicitly {@link waproto.LimitSharing.verify|verify} messages.
|
|
50585
|
+
* @function encode
|
|
50586
|
+
* @memberof waproto.LimitSharing
|
|
50587
|
+
* @static
|
|
50588
|
+
* @param {waproto.ILimitSharing} message LimitSharing message or plain object to encode
|
|
50589
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50590
|
+
* @returns {$protobuf.Writer} Writer
|
|
50591
|
+
*/
|
|
50592
|
+
LimitSharing.encode = function encode(message, writer) {
|
|
50593
|
+
if (!writer)
|
|
50594
|
+
writer = $Writer.create();
|
|
50595
|
+
if (message.sharingLimited != null && Object.hasOwnProperty.call(message, "sharingLimited"))
|
|
50596
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.sharingLimited);
|
|
50597
|
+
if (message.trigger != null && Object.hasOwnProperty.call(message, "trigger"))
|
|
50598
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trigger);
|
|
50599
|
+
return writer;
|
|
50600
|
+
};
|
|
50601
|
+
|
|
50602
|
+
/**
|
|
50603
|
+
* Encodes the specified LimitSharing message, length delimited. Does not implicitly {@link waproto.LimitSharing.verify|verify} messages.
|
|
50604
|
+
* @function encodeDelimited
|
|
50605
|
+
* @memberof waproto.LimitSharing
|
|
50606
|
+
* @static
|
|
50607
|
+
* @param {waproto.ILimitSharing} message LimitSharing message or plain object to encode
|
|
50608
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50609
|
+
* @returns {$protobuf.Writer} Writer
|
|
50610
|
+
*/
|
|
50611
|
+
LimitSharing.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50612
|
+
return this.encode(message, writer).ldelim();
|
|
50613
|
+
};
|
|
50614
|
+
|
|
50615
|
+
/**
|
|
50616
|
+
* Decodes a LimitSharing message from the specified reader or buffer.
|
|
50617
|
+
* @function decode
|
|
50618
|
+
* @memberof waproto.LimitSharing
|
|
50619
|
+
* @static
|
|
50620
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50621
|
+
* @param {number} [length] Message length if known beforehand
|
|
50622
|
+
* @returns {waproto.LimitSharing} LimitSharing
|
|
50623
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50624
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50625
|
+
*/
|
|
50626
|
+
LimitSharing.decode = function decode(reader, length) {
|
|
50627
|
+
if (!(reader instanceof $Reader))
|
|
50628
|
+
reader = $Reader.create(reader);
|
|
50629
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.LimitSharing();
|
|
50630
|
+
while (reader.pos < end) {
|
|
50631
|
+
var tag = reader.uint32();
|
|
50632
|
+
switch (tag >>> 3) {
|
|
50633
|
+
case 1: {
|
|
50634
|
+
message.sharingLimited = reader.bool();
|
|
50635
|
+
break;
|
|
50636
|
+
}
|
|
50637
|
+
case 2: {
|
|
50638
|
+
message.trigger = reader.int32();
|
|
50639
|
+
break;
|
|
50640
|
+
}
|
|
50641
|
+
default:
|
|
50642
|
+
reader.skipType(tag & 7);
|
|
50643
|
+
break;
|
|
50644
|
+
}
|
|
50645
|
+
}
|
|
50646
|
+
return message;
|
|
50647
|
+
};
|
|
50648
|
+
|
|
50649
|
+
/**
|
|
50650
|
+
* Decodes a LimitSharing message from the specified reader or buffer, length delimited.
|
|
50651
|
+
* @function decodeDelimited
|
|
50652
|
+
* @memberof waproto.LimitSharing
|
|
50653
|
+
* @static
|
|
50654
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50655
|
+
* @returns {waproto.LimitSharing} LimitSharing
|
|
50656
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50657
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50658
|
+
*/
|
|
50659
|
+
LimitSharing.decodeDelimited = function decodeDelimited(reader) {
|
|
50660
|
+
if (!(reader instanceof $Reader))
|
|
50661
|
+
reader = new $Reader(reader);
|
|
50662
|
+
return this.decode(reader, reader.uint32());
|
|
50663
|
+
};
|
|
50664
|
+
|
|
50665
|
+
/**
|
|
50666
|
+
* Verifies a LimitSharing message.
|
|
50667
|
+
* @function verify
|
|
50668
|
+
* @memberof waproto.LimitSharing
|
|
50669
|
+
* @static
|
|
50670
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50671
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50672
|
+
*/
|
|
50673
|
+
LimitSharing.verify = function verify(message) {
|
|
50674
|
+
if (typeof message !== "object" || message === null)
|
|
50675
|
+
return "object expected";
|
|
50676
|
+
var properties = {};
|
|
50677
|
+
if (message.sharingLimited != null && message.hasOwnProperty("sharingLimited")) {
|
|
50678
|
+
properties._sharingLimited = 1;
|
|
50679
|
+
if (typeof message.sharingLimited !== "boolean")
|
|
50680
|
+
return "sharingLimited: boolean expected";
|
|
50681
|
+
}
|
|
50682
|
+
if (message.trigger != null && message.hasOwnProperty("trigger")) {
|
|
50683
|
+
properties._trigger = 1;
|
|
50684
|
+
switch (message.trigger) {
|
|
50685
|
+
default:
|
|
50686
|
+
return "trigger: enum value expected";
|
|
50687
|
+
case 0:
|
|
50688
|
+
case 1:
|
|
50689
|
+
break;
|
|
50690
|
+
}
|
|
50691
|
+
}
|
|
50692
|
+
return null;
|
|
50693
|
+
};
|
|
50694
|
+
|
|
50695
|
+
/**
|
|
50696
|
+
* Creates a LimitSharing message from a plain object. Also converts values to their respective internal types.
|
|
50697
|
+
* @function fromObject
|
|
50698
|
+
* @memberof waproto.LimitSharing
|
|
50699
|
+
* @static
|
|
50700
|
+
* @param {Object.<string,*>} object Plain object
|
|
50701
|
+
* @returns {waproto.LimitSharing} LimitSharing
|
|
50702
|
+
*/
|
|
50703
|
+
LimitSharing.fromObject = function fromObject(object) {
|
|
50704
|
+
if (object instanceof $root.waproto.LimitSharing)
|
|
50705
|
+
return object;
|
|
50706
|
+
var message = new $root.waproto.LimitSharing();
|
|
50707
|
+
if (object.sharingLimited != null)
|
|
50708
|
+
message.sharingLimited = Boolean(object.sharingLimited);
|
|
50709
|
+
switch (object.trigger) {
|
|
50710
|
+
default:
|
|
50711
|
+
if (typeof object.trigger === "number") {
|
|
50712
|
+
message.trigger = object.trigger;
|
|
50713
|
+
break;
|
|
50714
|
+
}
|
|
50715
|
+
break;
|
|
50716
|
+
case "CHAT_SETTING":
|
|
50717
|
+
case 0:
|
|
50718
|
+
message.trigger = 0;
|
|
50719
|
+
break;
|
|
50720
|
+
case "BIZ_SUPPORTS_FB_HOSTING":
|
|
50721
|
+
case 1:
|
|
50722
|
+
message.trigger = 1;
|
|
50723
|
+
break;
|
|
50724
|
+
}
|
|
50725
|
+
return message;
|
|
50726
|
+
};
|
|
50727
|
+
|
|
50728
|
+
/**
|
|
50729
|
+
* Creates a plain object from a LimitSharing message. Also converts values to other types if specified.
|
|
50730
|
+
* @function toObject
|
|
50731
|
+
* @memberof waproto.LimitSharing
|
|
50732
|
+
* @static
|
|
50733
|
+
* @param {waproto.LimitSharing} message LimitSharing
|
|
50734
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50735
|
+
* @returns {Object.<string,*>} Plain object
|
|
50736
|
+
*/
|
|
50737
|
+
LimitSharing.toObject = function toObject(message, options) {
|
|
50738
|
+
if (!options)
|
|
50739
|
+
options = {};
|
|
50740
|
+
var object = {};
|
|
50741
|
+
if (message.sharingLimited != null && message.hasOwnProperty("sharingLimited")) {
|
|
50742
|
+
object.sharingLimited = message.sharingLimited;
|
|
50743
|
+
if (options.oneofs)
|
|
50744
|
+
object._sharingLimited = "sharingLimited";
|
|
50745
|
+
}
|
|
50746
|
+
if (message.trigger != null && message.hasOwnProperty("trigger")) {
|
|
50747
|
+
object.trigger = options.enums === String ? $root.waproto.LimitSharing.Trigger[message.trigger] === undefined ? message.trigger : $root.waproto.LimitSharing.Trigger[message.trigger] : message.trigger;
|
|
50748
|
+
if (options.oneofs)
|
|
50749
|
+
object._trigger = "trigger";
|
|
50750
|
+
}
|
|
50751
|
+
return object;
|
|
50752
|
+
};
|
|
50753
|
+
|
|
50754
|
+
/**
|
|
50755
|
+
* Converts this LimitSharing to JSON.
|
|
50756
|
+
* @function toJSON
|
|
50757
|
+
* @memberof waproto.LimitSharing
|
|
50758
|
+
* @instance
|
|
50759
|
+
* @returns {Object.<string,*>} JSON object
|
|
50760
|
+
*/
|
|
50761
|
+
LimitSharing.prototype.toJSON = function toJSON() {
|
|
50762
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50763
|
+
};
|
|
50764
|
+
|
|
50765
|
+
/**
|
|
50766
|
+
* Gets the default type url for LimitSharing
|
|
50767
|
+
* @function getTypeUrl
|
|
50768
|
+
* @memberof waproto.LimitSharing
|
|
50769
|
+
* @static
|
|
50770
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
50771
|
+
* @returns {string} The default type url
|
|
50772
|
+
*/
|
|
50773
|
+
LimitSharing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
50774
|
+
if (typeUrlPrefix === undefined) {
|
|
50775
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
50776
|
+
}
|
|
50777
|
+
return typeUrlPrefix + "/waproto.LimitSharing";
|
|
50778
|
+
};
|
|
50779
|
+
|
|
50780
|
+
/**
|
|
50781
|
+
* Trigger enum.
|
|
50782
|
+
* @name waproto.LimitSharing.Trigger
|
|
50783
|
+
* @enum {number}
|
|
50784
|
+
* @property {number} CHAT_SETTING=0 CHAT_SETTING value
|
|
50785
|
+
* @property {number} BIZ_SUPPORTS_FB_HOSTING=1 BIZ_SUPPORTS_FB_HOSTING value
|
|
50786
|
+
*/
|
|
50787
|
+
LimitSharing.Trigger = (function() {
|
|
50788
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
50789
|
+
values[valuesById[0] = "CHAT_SETTING"] = 0;
|
|
50790
|
+
values[valuesById[1] = "BIZ_SUPPORTS_FB_HOSTING"] = 1;
|
|
50791
|
+
return values;
|
|
50792
|
+
})();
|
|
50793
|
+
|
|
50794
|
+
return LimitSharing;
|
|
50795
|
+
})();
|
|
50796
|
+
|
|
49268
50797
|
waproto.LocalizedName = (function() {
|
|
49269
50798
|
|
|
49270
50799
|
/**
|
|
@@ -91800,6 +93329,7 @@ $root.waproto = (function() {
|
|
|
91800
93329
|
* @property {waproto.IMediaNotifyMessage|null} [mediaNotifyMessage] ProtocolMessage mediaNotifyMessage
|
|
91801
93330
|
* @property {waproto.Message.ICloudAPIThreadControlNotification|null} [cloudApiThreadControlNotification] ProtocolMessage cloudApiThreadControlNotification
|
|
91802
93331
|
* @property {waproto.ILIDMigrationMappingSyncMessage|null} [lidMigrationMappingSyncMessage] ProtocolMessage lidMigrationMappingSyncMessage
|
|
93332
|
+
* @property {waproto.ILimitSharing|null} [limitSharing] ProtocolMessage limitSharing
|
|
91803
93333
|
*/
|
|
91804
93334
|
|
|
91805
93335
|
/**
|
|
@@ -91977,6 +93507,14 @@ $root.waproto = (function() {
|
|
|
91977
93507
|
*/
|
|
91978
93508
|
ProtocolMessage.prototype.lidMigrationMappingSyncMessage = null;
|
|
91979
93509
|
|
|
93510
|
+
/**
|
|
93511
|
+
* ProtocolMessage limitSharing.
|
|
93512
|
+
* @member {waproto.ILimitSharing|null|undefined} limitSharing
|
|
93513
|
+
* @memberof waproto.Message.ProtocolMessage
|
|
93514
|
+
* @instance
|
|
93515
|
+
*/
|
|
93516
|
+
ProtocolMessage.prototype.limitSharing = null;
|
|
93517
|
+
|
|
91980
93518
|
// OneOf field names bound to virtual getters and setters
|
|
91981
93519
|
var $oneOfFields;
|
|
91982
93520
|
|
|
@@ -92100,6 +93638,12 @@ $root.waproto = (function() {
|
|
|
92100
93638
|
set: $util.oneOfSetter($oneOfFields)
|
|
92101
93639
|
});
|
|
92102
93640
|
|
|
93641
|
+
// Virtual OneOf for proto3 optional field
|
|
93642
|
+
Object.defineProperty(ProtocolMessage.prototype, "_limitSharing", {
|
|
93643
|
+
get: $util.oneOfGetter($oneOfFields = ["limitSharing"]),
|
|
93644
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93645
|
+
});
|
|
93646
|
+
|
|
92103
93647
|
/**
|
|
92104
93648
|
* Creates a new ProtocolMessage instance using the specified properties.
|
|
92105
93649
|
* @function create
|
|
@@ -92164,6 +93708,8 @@ $root.waproto = (function() {
|
|
|
92164
93708
|
$root.waproto.Message.CloudAPIThreadControlNotification.encode(message.cloudApiThreadControlNotification, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
92165
93709
|
if (message.lidMigrationMappingSyncMessage != null && Object.hasOwnProperty.call(message, "lidMigrationMappingSyncMessage"))
|
|
92166
93710
|
$root.waproto.LIDMigrationMappingSyncMessage.encode(message.lidMigrationMappingSyncMessage, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
93711
|
+
if (message.limitSharing != null && Object.hasOwnProperty.call(message, "limitSharing"))
|
|
93712
|
+
$root.waproto.LimitSharing.encode(message.limitSharing, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
|
|
92167
93713
|
return writer;
|
|
92168
93714
|
};
|
|
92169
93715
|
|
|
@@ -92278,6 +93824,10 @@ $root.waproto = (function() {
|
|
|
92278
93824
|
message.lidMigrationMappingSyncMessage = $root.waproto.LIDMigrationMappingSyncMessage.decode(reader, reader.uint32());
|
|
92279
93825
|
break;
|
|
92280
93826
|
}
|
|
93827
|
+
case 24: {
|
|
93828
|
+
message.limitSharing = $root.waproto.LimitSharing.decode(reader, reader.uint32());
|
|
93829
|
+
break;
|
|
93830
|
+
}
|
|
92281
93831
|
default:
|
|
92282
93832
|
reader.skipType(tag & 7);
|
|
92283
93833
|
break;
|
|
@@ -92349,6 +93899,7 @@ $root.waproto = (function() {
|
|
|
92349
93899
|
case 24:
|
|
92350
93900
|
case 25:
|
|
92351
93901
|
case 26:
|
|
93902
|
+
case 27:
|
|
92352
93903
|
break;
|
|
92353
93904
|
}
|
|
92354
93905
|
}
|
|
@@ -92484,6 +94035,14 @@ $root.waproto = (function() {
|
|
|
92484
94035
|
return "lidMigrationMappingSyncMessage." + error;
|
|
92485
94036
|
}
|
|
92486
94037
|
}
|
|
94038
|
+
if (message.limitSharing != null && message.hasOwnProperty("limitSharing")) {
|
|
94039
|
+
properties._limitSharing = 1;
|
|
94040
|
+
{
|
|
94041
|
+
var error = $root.waproto.LimitSharing.verify(message.limitSharing);
|
|
94042
|
+
if (error)
|
|
94043
|
+
return "limitSharing." + error;
|
|
94044
|
+
}
|
|
94045
|
+
}
|
|
92487
94046
|
return null;
|
|
92488
94047
|
};
|
|
92489
94048
|
|
|
@@ -92599,6 +94158,10 @@ $root.waproto = (function() {
|
|
|
92599
94158
|
case 26:
|
|
92600
94159
|
message.type = 26;
|
|
92601
94160
|
break;
|
|
94161
|
+
case "LIMIT_SHARING":
|
|
94162
|
+
case 27:
|
|
94163
|
+
message.type = 27;
|
|
94164
|
+
break;
|
|
92602
94165
|
}
|
|
92603
94166
|
if (object.ephemeralExpiration != null)
|
|
92604
94167
|
message.ephemeralExpiration = object.ephemeralExpiration >>> 0;
|
|
@@ -92692,6 +94255,11 @@ $root.waproto = (function() {
|
|
|
92692
94255
|
throw TypeError(".waproto.Message.ProtocolMessage.lidMigrationMappingSyncMessage: object expected");
|
|
92693
94256
|
message.lidMigrationMappingSyncMessage = $root.waproto.LIDMigrationMappingSyncMessage.fromObject(object.lidMigrationMappingSyncMessage);
|
|
92694
94257
|
}
|
|
94258
|
+
if (object.limitSharing != null) {
|
|
94259
|
+
if (typeof object.limitSharing !== "object")
|
|
94260
|
+
throw TypeError(".waproto.Message.ProtocolMessage.limitSharing: object expected");
|
|
94261
|
+
message.limitSharing = $root.waproto.LimitSharing.fromObject(object.limitSharing);
|
|
94262
|
+
}
|
|
92695
94263
|
return message;
|
|
92696
94264
|
};
|
|
92697
94265
|
|
|
@@ -92814,6 +94382,11 @@ $root.waproto = (function() {
|
|
|
92814
94382
|
if (options.oneofs)
|
|
92815
94383
|
object._lidMigrationMappingSyncMessage = "lidMigrationMappingSyncMessage";
|
|
92816
94384
|
}
|
|
94385
|
+
if (message.limitSharing != null && message.hasOwnProperty("limitSharing")) {
|
|
94386
|
+
object.limitSharing = $root.waproto.LimitSharing.toObject(message.limitSharing, options);
|
|
94387
|
+
if (options.oneofs)
|
|
94388
|
+
object._limitSharing = "limitSharing";
|
|
94389
|
+
}
|
|
92817
94390
|
return object;
|
|
92818
94391
|
};
|
|
92819
94392
|
|
|
@@ -92869,6 +94442,7 @@ $root.waproto = (function() {
|
|
|
92869
94442
|
* @property {number} BOT_MEMU_ONBOARDING_MESSAGE=24 BOT_MEMU_ONBOARDING_MESSAGE value
|
|
92870
94443
|
* @property {number} STATUS_MENTION_MESSAGE=25 STATUS_MENTION_MESSAGE value
|
|
92871
94444
|
* @property {number} STOP_GENERATION_MESSAGE=26 STOP_GENERATION_MESSAGE value
|
|
94445
|
+
* @property {number} LIMIT_SHARING=27 LIMIT_SHARING value
|
|
92872
94446
|
*/
|
|
92873
94447
|
ProtocolMessage.Type = (function() {
|
|
92874
94448
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -92894,6 +94468,7 @@ $root.waproto = (function() {
|
|
|
92894
94468
|
values[valuesById[24] = "BOT_MEMU_ONBOARDING_MESSAGE"] = 24;
|
|
92895
94469
|
values[valuesById[25] = "STATUS_MENTION_MESSAGE"] = 25;
|
|
92896
94470
|
values[valuesById[26] = "STOP_GENERATION_MESSAGE"] = 26;
|
|
94471
|
+
values[valuesById[27] = "LIMIT_SHARING"] = 27;
|
|
92897
94472
|
return values;
|
|
92898
94473
|
})();
|
|
92899
94474
|
|
|
@@ -100435,6 +102010,7 @@ $root.waproto = (function() {
|
|
|
100435
102010
|
* @property {Array.<waproto.IInteractiveAnnotation>|null} [annotations] VideoMessage annotations
|
|
100436
102011
|
* @property {string|null} [accessibilityLabel] VideoMessage accessibilityLabel
|
|
100437
102012
|
* @property {Array.<waproto.IProcessedVideo>|null} [processedVideos] VideoMessage processedVideos
|
|
102013
|
+
* @property {number|null} [externalShareFullVideoDurationInSeconds] VideoMessage externalShareFullVideoDurationInSeconds
|
|
100438
102014
|
*/
|
|
100439
102015
|
|
|
100440
102016
|
/**
|
|
@@ -100663,6 +102239,14 @@ $root.waproto = (function() {
|
|
|
100663
102239
|
*/
|
|
100664
102240
|
VideoMessage.prototype.processedVideos = $util.emptyArray;
|
|
100665
102241
|
|
|
102242
|
+
/**
|
|
102243
|
+
* VideoMessage externalShareFullVideoDurationInSeconds.
|
|
102244
|
+
* @member {number|null|undefined} externalShareFullVideoDurationInSeconds
|
|
102245
|
+
* @memberof waproto.Message.VideoMessage
|
|
102246
|
+
* @instance
|
|
102247
|
+
*/
|
|
102248
|
+
VideoMessage.prototype.externalShareFullVideoDurationInSeconds = null;
|
|
102249
|
+
|
|
100666
102250
|
// OneOf field names bound to virtual getters and setters
|
|
100667
102251
|
var $oneOfFields;
|
|
100668
102252
|
|
|
@@ -100804,6 +102388,12 @@ $root.waproto = (function() {
|
|
|
100804
102388
|
set: $util.oneOfSetter($oneOfFields)
|
|
100805
102389
|
});
|
|
100806
102390
|
|
|
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
|
+
|
|
100807
102397
|
/**
|
|
100808
102398
|
* Creates a new VideoMessage instance using the specified properties.
|
|
100809
102399
|
* @function create
|
|
@@ -100883,6 +102473,8 @@ $root.waproto = (function() {
|
|
|
100883
102473
|
if (message.processedVideos != null && message.processedVideos.length)
|
|
100884
102474
|
for (var i = 0; i < message.processedVideos.length; ++i)
|
|
100885
102475
|
$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);
|
|
100886
102478
|
return writer;
|
|
100887
102479
|
};
|
|
100888
102480
|
|
|
@@ -101027,6 +102619,10 @@ $root.waproto = (function() {
|
|
|
101027
102619
|
message.processedVideos.push($root.waproto.ProcessedVideo.decode(reader, reader.uint32()));
|
|
101028
102620
|
break;
|
|
101029
102621
|
}
|
|
102622
|
+
case 28: {
|
|
102623
|
+
message.externalShareFullVideoDurationInSeconds = reader.uint32();
|
|
102624
|
+
break;
|
|
102625
|
+
}
|
|
101030
102626
|
default:
|
|
101031
102627
|
reader.skipType(tag & 7);
|
|
101032
102628
|
break;
|
|
@@ -101214,6 +102810,11 @@ $root.waproto = (function() {
|
|
|
101214
102810
|
return "processedVideos." + error;
|
|
101215
102811
|
}
|
|
101216
102812
|
}
|
|
102813
|
+
if (message.externalShareFullVideoDurationInSeconds != null && message.hasOwnProperty("externalShareFullVideoDurationInSeconds")) {
|
|
102814
|
+
properties._externalShareFullVideoDurationInSeconds = 1;
|
|
102815
|
+
if (!$util.isInteger(message.externalShareFullVideoDurationInSeconds))
|
|
102816
|
+
return "externalShareFullVideoDurationInSeconds: integer expected";
|
|
102817
|
+
}
|
|
101217
102818
|
return null;
|
|
101218
102819
|
};
|
|
101219
102820
|
|
|
@@ -101361,6 +102962,8 @@ $root.waproto = (function() {
|
|
|
101361
102962
|
message.processedVideos[i] = $root.waproto.ProcessedVideo.fromObject(object.processedVideos[i]);
|
|
101362
102963
|
}
|
|
101363
102964
|
}
|
|
102965
|
+
if (object.externalShareFullVideoDurationInSeconds != null)
|
|
102966
|
+
message.externalShareFullVideoDurationInSeconds = object.externalShareFullVideoDurationInSeconds >>> 0;
|
|
101364
102967
|
return message;
|
|
101365
102968
|
};
|
|
101366
102969
|
|
|
@@ -101518,6 +103121,11 @@ $root.waproto = (function() {
|
|
|
101518
103121
|
for (var j = 0; j < message.processedVideos.length; ++j)
|
|
101519
103122
|
object.processedVideos[j] = $root.waproto.ProcessedVideo.toObject(message.processedVideos[j], options);
|
|
101520
103123
|
}
|
|
103124
|
+
if (message.externalShareFullVideoDurationInSeconds != null && message.hasOwnProperty("externalShareFullVideoDurationInSeconds")) {
|
|
103125
|
+
object.externalShareFullVideoDurationInSeconds = message.externalShareFullVideoDurationInSeconds;
|
|
103126
|
+
if (options.oneofs)
|
|
103127
|
+
object._externalShareFullVideoDurationInSeconds = "externalShareFullVideoDurationInSeconds";
|
|
103128
|
+
}
|
|
101521
103129
|
return object;
|
|
101522
103130
|
};
|
|
101523
103131
|
|
|
@@ -102621,6 +104229,7 @@ $root.waproto = (function() {
|
|
|
102621
104229
|
case 9:
|
|
102622
104230
|
case 10:
|
|
102623
104231
|
case 11:
|
|
104232
|
+
case 12:
|
|
102624
104233
|
break;
|
|
102625
104234
|
}
|
|
102626
104235
|
}
|
|
@@ -102707,6 +104316,10 @@ $root.waproto = (function() {
|
|
|
102707
104316
|
case 11:
|
|
102708
104317
|
message.associationType = 11;
|
|
102709
104318
|
break;
|
|
104319
|
+
case "MOTION_PHOTO":
|
|
104320
|
+
case 12:
|
|
104321
|
+
message.associationType = 12;
|
|
104322
|
+
break;
|
|
102710
104323
|
}
|
|
102711
104324
|
if (object.parentMessageKey != null) {
|
|
102712
104325
|
if (typeof object.parentMessageKey !== "object")
|
|
@@ -102791,6 +104404,7 @@ $root.waproto = (function() {
|
|
|
102791
104404
|
* @property {number} STATUS_NOTIFICATION=9 STATUS_NOTIFICATION value
|
|
102792
104405
|
* @property {number} HD_IMAGE_DUAL_UPLOAD=10 HD_IMAGE_DUAL_UPLOAD value
|
|
102793
104406
|
* @property {number} STICKER_ANNOTATION=11 STICKER_ANNOTATION value
|
|
104407
|
+
* @property {number} MOTION_PHOTO=12 MOTION_PHOTO value
|
|
102794
104408
|
*/
|
|
102795
104409
|
MessageAssociation.AssociationType = (function() {
|
|
102796
104410
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -102806,6 +104420,7 @@ $root.waproto = (function() {
|
|
|
102806
104420
|
values[valuesById[9] = "STATUS_NOTIFICATION"] = 9;
|
|
102807
104421
|
values[valuesById[10] = "HD_IMAGE_DUAL_UPLOAD"] = 10;
|
|
102808
104422
|
values[valuesById[11] = "STICKER_ANNOTATION"] = 11;
|
|
104423
|
+
values[valuesById[12] = "MOTION_PHOTO"] = 12;
|
|
102809
104424
|
return values;
|
|
102810
104425
|
})();
|
|
102811
104426
|
|