@replit/protocol 0.2.52 → 0.2.53
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/iotester/index.js.flow +1 -1
- package/main/index.d.ts +2 -310
- package/main/index.js +12 -828
- package/main/index.js.flow +3 -439
- package/package-lock.json +879 -0
- package/package.json +2 -2
package/main/index.js
CHANGED
|
@@ -33776,7 +33776,7 @@
|
|
|
33776
33776
|
* @interface IDotReplitUpdateOp
|
|
33777
33777
|
* @property {string|null} [op] DotReplitUpdateOp op
|
|
33778
33778
|
* @property {string|null} [path] DotReplitUpdateOp path
|
|
33779
|
-
* @property {
|
|
33779
|
+
* @property {string|null} [value] DotReplitUpdateOp value
|
|
33780
33780
|
*/
|
|
33781
33781
|
|
|
33782
33782
|
/**
|
|
@@ -33811,11 +33811,11 @@
|
|
|
33811
33811
|
|
|
33812
33812
|
/**
|
|
33813
33813
|
* DotReplitUpdateOp value.
|
|
33814
|
-
* @member {
|
|
33814
|
+
* @member {string} value
|
|
33815
33815
|
* @memberof api.DotReplitUpdateOp
|
|
33816
33816
|
* @instance
|
|
33817
33817
|
*/
|
|
33818
|
-
DotReplitUpdateOp.prototype.value =
|
|
33818
|
+
DotReplitUpdateOp.prototype.value = "";
|
|
33819
33819
|
|
|
33820
33820
|
/**
|
|
33821
33821
|
* Creates a new DotReplitUpdateOp instance using the specified properties.
|
|
@@ -33846,7 +33846,7 @@
|
|
|
33846
33846
|
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
33847
33847
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
|
|
33848
33848
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
33849
|
-
|
|
33849
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.value);
|
|
33850
33850
|
return writer;
|
|
33851
33851
|
};
|
|
33852
33852
|
|
|
@@ -33888,7 +33888,7 @@
|
|
|
33888
33888
|
message.path = reader.string();
|
|
33889
33889
|
break;
|
|
33890
33890
|
case 3:
|
|
33891
|
-
message.value =
|
|
33891
|
+
message.value = reader.string();
|
|
33892
33892
|
break;
|
|
33893
33893
|
default:
|
|
33894
33894
|
reader.skipType(tag & 7);
|
|
@@ -33931,11 +33931,9 @@
|
|
|
33931
33931
|
if (message.path != null && message.hasOwnProperty("path"))
|
|
33932
33932
|
if (!$util.isString(message.path))
|
|
33933
33933
|
return "path: string expected";
|
|
33934
|
-
if (message.value != null && message.hasOwnProperty("value"))
|
|
33935
|
-
|
|
33936
|
-
|
|
33937
|
-
return "value." + error;
|
|
33938
|
-
}
|
|
33934
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
33935
|
+
if (!$util.isString(message.value))
|
|
33936
|
+
return "value: string expected";
|
|
33939
33937
|
return null;
|
|
33940
33938
|
};
|
|
33941
33939
|
|
|
@@ -33955,11 +33953,8 @@
|
|
|
33955
33953
|
message.op = String(object.op);
|
|
33956
33954
|
if (object.path != null)
|
|
33957
33955
|
message.path = String(object.path);
|
|
33958
|
-
if (object.value != null)
|
|
33959
|
-
|
|
33960
|
-
throw TypeError(".api.DotReplitUpdateOp.value: object expected");
|
|
33961
|
-
message.value = $root.google.protobuf.Value.fromObject(object.value);
|
|
33962
|
-
}
|
|
33956
|
+
if (object.value != null)
|
|
33957
|
+
message.value = String(object.value);
|
|
33963
33958
|
return message;
|
|
33964
33959
|
};
|
|
33965
33960
|
|
|
@@ -33979,14 +33974,14 @@
|
|
|
33979
33974
|
if (options.defaults) {
|
|
33980
33975
|
object.op = "";
|
|
33981
33976
|
object.path = "";
|
|
33982
|
-
object.value =
|
|
33977
|
+
object.value = "";
|
|
33983
33978
|
}
|
|
33984
33979
|
if (message.op != null && message.hasOwnProperty("op"))
|
|
33985
33980
|
object.op = message.op;
|
|
33986
33981
|
if (message.path != null && message.hasOwnProperty("path"))
|
|
33987
33982
|
object.path = message.path;
|
|
33988
33983
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
33989
|
-
object.value =
|
|
33984
|
+
object.value = message.value;
|
|
33990
33985
|
return object;
|
|
33991
33986
|
};
|
|
33992
33987
|
|
|
@@ -43066,817 +43061,6 @@
|
|
|
43066
43061
|
return Timestamp;
|
|
43067
43062
|
})();
|
|
43068
43063
|
|
|
43069
|
-
protobuf.Struct = (function() {
|
|
43070
|
-
|
|
43071
|
-
/**
|
|
43072
|
-
* Properties of a Struct.
|
|
43073
|
-
* @memberof google.protobuf
|
|
43074
|
-
* @interface IStruct
|
|
43075
|
-
* @property {Object.<string,google.protobuf.Value|google.protobuf.IValue>|null} [fields] Struct fields
|
|
43076
|
-
*/
|
|
43077
|
-
|
|
43078
|
-
/**
|
|
43079
|
-
* Constructs a new Struct.
|
|
43080
|
-
* @memberof google.protobuf
|
|
43081
|
-
* @classdesc Represents a Struct.
|
|
43082
|
-
* @constructor
|
|
43083
|
-
* @param {google.protobuf.IStruct=} [properties] Properties to set
|
|
43084
|
-
*/
|
|
43085
|
-
function Struct(properties) {
|
|
43086
|
-
this.fields = {};
|
|
43087
|
-
if (properties)
|
|
43088
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43089
|
-
if (properties[keys[i]] != null)
|
|
43090
|
-
this[keys[i]] = properties[keys[i]];
|
|
43091
|
-
}
|
|
43092
|
-
|
|
43093
|
-
/**
|
|
43094
|
-
* Struct fields.
|
|
43095
|
-
* @member {Object.<string,google.protobuf.Value>} fields
|
|
43096
|
-
* @memberof google.protobuf.Struct
|
|
43097
|
-
* @instance
|
|
43098
|
-
*/
|
|
43099
|
-
Struct.prototype.fields = $util.emptyObject;
|
|
43100
|
-
|
|
43101
|
-
/**
|
|
43102
|
-
* Creates a new Struct instance using the specified properties.
|
|
43103
|
-
* @function create
|
|
43104
|
-
* @memberof google.protobuf.Struct
|
|
43105
|
-
* @static
|
|
43106
|
-
* @param {google.protobuf.IStruct=} [properties] Properties to set
|
|
43107
|
-
* @returns {google.protobuf.Struct} Struct instance
|
|
43108
|
-
*/
|
|
43109
|
-
Struct.create = function create(properties) {
|
|
43110
|
-
return Struct.fromObject(properties);
|
|
43111
|
-
};
|
|
43112
|
-
|
|
43113
|
-
/**
|
|
43114
|
-
* Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
|
|
43115
|
-
* @function encode
|
|
43116
|
-
* @memberof google.protobuf.Struct
|
|
43117
|
-
* @static
|
|
43118
|
-
* @param {google.protobuf.Struct} message Struct message or plain object to encode
|
|
43119
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43120
|
-
* @returns {$protobuf.Writer} Writer
|
|
43121
|
-
*/
|
|
43122
|
-
Struct.encode = function encode(message, writer) {
|
|
43123
|
-
if (!writer)
|
|
43124
|
-
writer = $Writer.create();
|
|
43125
|
-
if (message.fields != null && Object.hasOwnProperty.call(message, "fields"))
|
|
43126
|
-
for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) {
|
|
43127
|
-
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
43128
|
-
$root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
43129
|
-
}
|
|
43130
|
-
return writer;
|
|
43131
|
-
};
|
|
43132
|
-
|
|
43133
|
-
/**
|
|
43134
|
-
* Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
|
|
43135
|
-
* @function encodeDelimited
|
|
43136
|
-
* @memberof google.protobuf.Struct
|
|
43137
|
-
* @static
|
|
43138
|
-
* @param {google.protobuf.Struct} message Struct message or plain object to encode
|
|
43139
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43140
|
-
* @returns {$protobuf.Writer} Writer
|
|
43141
|
-
*/
|
|
43142
|
-
Struct.encodeDelimited = function encodeDelimited(message, writer) {
|
|
43143
|
-
return this.encode(message, writer).ldelim();
|
|
43144
|
-
};
|
|
43145
|
-
|
|
43146
|
-
/**
|
|
43147
|
-
* Decodes a Struct message from the specified reader or buffer.
|
|
43148
|
-
* @function decode
|
|
43149
|
-
* @memberof google.protobuf.Struct
|
|
43150
|
-
* @static
|
|
43151
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43152
|
-
* @param {number} [length] Message length if known beforehand
|
|
43153
|
-
* @returns {google.protobuf.Struct} Struct
|
|
43154
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43155
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43156
|
-
*/
|
|
43157
|
-
Struct.decode = function decode(reader, length) {
|
|
43158
|
-
if (!(reader instanceof $Reader))
|
|
43159
|
-
reader = $Reader.create(reader);
|
|
43160
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value;
|
|
43161
|
-
while (reader.pos < end) {
|
|
43162
|
-
var tag = reader.uint32();
|
|
43163
|
-
switch (tag >>> 3) {
|
|
43164
|
-
case 1:
|
|
43165
|
-
if (message.fields === $util.emptyObject)
|
|
43166
|
-
message.fields = {};
|
|
43167
|
-
var end2 = reader.uint32() + reader.pos;
|
|
43168
|
-
key = "";
|
|
43169
|
-
value = null;
|
|
43170
|
-
while (reader.pos < end2) {
|
|
43171
|
-
var tag2 = reader.uint32();
|
|
43172
|
-
switch (tag2 >>> 3) {
|
|
43173
|
-
case 1:
|
|
43174
|
-
key = reader.string();
|
|
43175
|
-
break;
|
|
43176
|
-
case 2:
|
|
43177
|
-
value = $root.google.protobuf.Value.decode(reader, reader.uint32());
|
|
43178
|
-
break;
|
|
43179
|
-
default:
|
|
43180
|
-
reader.skipType(tag2 & 7);
|
|
43181
|
-
break;
|
|
43182
|
-
}
|
|
43183
|
-
}
|
|
43184
|
-
message.fields[key] = value;
|
|
43185
|
-
break;
|
|
43186
|
-
default:
|
|
43187
|
-
reader.skipType(tag & 7);
|
|
43188
|
-
break;
|
|
43189
|
-
}
|
|
43190
|
-
}
|
|
43191
|
-
return message;
|
|
43192
|
-
};
|
|
43193
|
-
|
|
43194
|
-
/**
|
|
43195
|
-
* Decodes a Struct message from the specified reader or buffer, length delimited.
|
|
43196
|
-
* @function decodeDelimited
|
|
43197
|
-
* @memberof google.protobuf.Struct
|
|
43198
|
-
* @static
|
|
43199
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43200
|
-
* @returns {google.protobuf.Struct} Struct
|
|
43201
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43202
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43203
|
-
*/
|
|
43204
|
-
Struct.decodeDelimited = function decodeDelimited(reader) {
|
|
43205
|
-
if (!(reader instanceof $Reader))
|
|
43206
|
-
reader = new $Reader(reader);
|
|
43207
|
-
return this.decode(reader, reader.uint32());
|
|
43208
|
-
};
|
|
43209
|
-
|
|
43210
|
-
/**
|
|
43211
|
-
* Verifies a Struct message.
|
|
43212
|
-
* @function verify
|
|
43213
|
-
* @memberof google.protobuf.Struct
|
|
43214
|
-
* @static
|
|
43215
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
43216
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
43217
|
-
*/
|
|
43218
|
-
Struct.verify = function verify(message) {
|
|
43219
|
-
if (typeof message !== "object" || message === null)
|
|
43220
|
-
return "object expected";
|
|
43221
|
-
if (message.fields != null && message.hasOwnProperty("fields")) {
|
|
43222
|
-
if (!$util.isObject(message.fields))
|
|
43223
|
-
return "fields: object expected";
|
|
43224
|
-
var key = Object.keys(message.fields);
|
|
43225
|
-
for (var i = 0; i < key.length; ++i) {
|
|
43226
|
-
var error = $root.google.protobuf.Value.verify(message.fields[key[i]]);
|
|
43227
|
-
if (error)
|
|
43228
|
-
return "fields." + error;
|
|
43229
|
-
}
|
|
43230
|
-
}
|
|
43231
|
-
return null;
|
|
43232
|
-
};
|
|
43233
|
-
|
|
43234
|
-
/**
|
|
43235
|
-
* Creates a Struct message from a plain object. Also converts values to their respective internal types.
|
|
43236
|
-
* @function fromObject
|
|
43237
|
-
* @memberof google.protobuf.Struct
|
|
43238
|
-
* @static
|
|
43239
|
-
* @param {Object.<string,*>} object Plain object
|
|
43240
|
-
* @returns {google.protobuf.Struct} Struct
|
|
43241
|
-
*/
|
|
43242
|
-
Struct.fromObject = function fromObject(object) {
|
|
43243
|
-
if (object instanceof $root.google.protobuf.Struct)
|
|
43244
|
-
return object;
|
|
43245
|
-
var message = new $root.google.protobuf.Struct();
|
|
43246
|
-
if (object.fields) {
|
|
43247
|
-
if (typeof object.fields !== "object")
|
|
43248
|
-
throw TypeError(".google.protobuf.Struct.fields: object expected");
|
|
43249
|
-
message.fields = {};
|
|
43250
|
-
for (var keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) {
|
|
43251
|
-
if (typeof object.fields[keys[i]] !== "object")
|
|
43252
|
-
throw TypeError(".google.protobuf.Struct.fields: object expected");
|
|
43253
|
-
message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]);
|
|
43254
|
-
}
|
|
43255
|
-
}
|
|
43256
|
-
return message;
|
|
43257
|
-
};
|
|
43258
|
-
|
|
43259
|
-
/**
|
|
43260
|
-
* Creates a plain object from a Struct message. Also converts values to other types if specified.
|
|
43261
|
-
* @function toObject
|
|
43262
|
-
* @memberof google.protobuf.Struct
|
|
43263
|
-
* @static
|
|
43264
|
-
* @param {google.protobuf.Struct} message Struct
|
|
43265
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
43266
|
-
* @returns {Object.<string,*>} Plain object
|
|
43267
|
-
*/
|
|
43268
|
-
Struct.toObject = function toObject(message, options) {
|
|
43269
|
-
if (!options)
|
|
43270
|
-
options = {};
|
|
43271
|
-
var object = {};
|
|
43272
|
-
if (options.objects || options.defaults)
|
|
43273
|
-
object.fields = {};
|
|
43274
|
-
var keys2;
|
|
43275
|
-
if (message.fields && (keys2 = Object.keys(message.fields)).length) {
|
|
43276
|
-
object.fields = {};
|
|
43277
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
43278
|
-
object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options);
|
|
43279
|
-
}
|
|
43280
|
-
return object;
|
|
43281
|
-
};
|
|
43282
|
-
|
|
43283
|
-
/**
|
|
43284
|
-
* Converts this Struct to JSON.
|
|
43285
|
-
* @function toJSON
|
|
43286
|
-
* @memberof google.protobuf.Struct
|
|
43287
|
-
* @instance
|
|
43288
|
-
* @returns {Object.<string,*>} JSON object
|
|
43289
|
-
*/
|
|
43290
|
-
Struct.prototype.toJSON = function toJSON() {
|
|
43291
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
43292
|
-
};
|
|
43293
|
-
|
|
43294
|
-
return Struct;
|
|
43295
|
-
})();
|
|
43296
|
-
|
|
43297
|
-
protobuf.Value = (function() {
|
|
43298
|
-
|
|
43299
|
-
/**
|
|
43300
|
-
* Properties of a Value.
|
|
43301
|
-
* @memberof google.protobuf
|
|
43302
|
-
* @interface IValue
|
|
43303
|
-
* @property {google.protobuf.NullValue|null} [nullValue] Value nullValue
|
|
43304
|
-
* @property {number|null} [numberValue] Value numberValue
|
|
43305
|
-
* @property {string|null} [stringValue] Value stringValue
|
|
43306
|
-
* @property {boolean|null} [boolValue] Value boolValue
|
|
43307
|
-
* @property {google.protobuf.Struct|google.protobuf.IStruct|null} [structValue] Value structValue
|
|
43308
|
-
* @property {google.protobuf.ListValue|google.protobuf.IListValue|null} [listValue] Value listValue
|
|
43309
|
-
*/
|
|
43310
|
-
|
|
43311
|
-
/**
|
|
43312
|
-
* Constructs a new Value.
|
|
43313
|
-
* @memberof google.protobuf
|
|
43314
|
-
* @classdesc Represents a Value.
|
|
43315
|
-
* @constructor
|
|
43316
|
-
* @param {google.protobuf.IValue=} [properties] Properties to set
|
|
43317
|
-
*/
|
|
43318
|
-
function Value(properties) {
|
|
43319
|
-
if (properties)
|
|
43320
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43321
|
-
if (properties[keys[i]] != null)
|
|
43322
|
-
this[keys[i]] = properties[keys[i]];
|
|
43323
|
-
}
|
|
43324
|
-
|
|
43325
|
-
/**
|
|
43326
|
-
* Value nullValue.
|
|
43327
|
-
* @member {google.protobuf.NullValue|null|undefined} nullValue
|
|
43328
|
-
* @memberof google.protobuf.Value
|
|
43329
|
-
* @instance
|
|
43330
|
-
*/
|
|
43331
|
-
Value.prototype.nullValue = null;
|
|
43332
|
-
|
|
43333
|
-
/**
|
|
43334
|
-
* Value numberValue.
|
|
43335
|
-
* @member {number|null|undefined} numberValue
|
|
43336
|
-
* @memberof google.protobuf.Value
|
|
43337
|
-
* @instance
|
|
43338
|
-
*/
|
|
43339
|
-
Value.prototype.numberValue = null;
|
|
43340
|
-
|
|
43341
|
-
/**
|
|
43342
|
-
* Value stringValue.
|
|
43343
|
-
* @member {string|null|undefined} stringValue
|
|
43344
|
-
* @memberof google.protobuf.Value
|
|
43345
|
-
* @instance
|
|
43346
|
-
*/
|
|
43347
|
-
Value.prototype.stringValue = null;
|
|
43348
|
-
|
|
43349
|
-
/**
|
|
43350
|
-
* Value boolValue.
|
|
43351
|
-
* @member {boolean|null|undefined} boolValue
|
|
43352
|
-
* @memberof google.protobuf.Value
|
|
43353
|
-
* @instance
|
|
43354
|
-
*/
|
|
43355
|
-
Value.prototype.boolValue = null;
|
|
43356
|
-
|
|
43357
|
-
/**
|
|
43358
|
-
* Value structValue.
|
|
43359
|
-
* @member {google.protobuf.Struct|null|undefined} structValue
|
|
43360
|
-
* @memberof google.protobuf.Value
|
|
43361
|
-
* @instance
|
|
43362
|
-
*/
|
|
43363
|
-
Value.prototype.structValue = null;
|
|
43364
|
-
|
|
43365
|
-
/**
|
|
43366
|
-
* Value listValue.
|
|
43367
|
-
* @member {google.protobuf.ListValue|null|undefined} listValue
|
|
43368
|
-
* @memberof google.protobuf.Value
|
|
43369
|
-
* @instance
|
|
43370
|
-
*/
|
|
43371
|
-
Value.prototype.listValue = null;
|
|
43372
|
-
|
|
43373
|
-
// OneOf field names bound to virtual getters and setters
|
|
43374
|
-
var $oneOfFields;
|
|
43375
|
-
|
|
43376
|
-
/**
|
|
43377
|
-
* Value kind.
|
|
43378
|
-
* @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind
|
|
43379
|
-
* @memberof google.protobuf.Value
|
|
43380
|
-
* @instance
|
|
43381
|
-
*/
|
|
43382
|
-
Object.defineProperty(Value.prototype, "kind", {
|
|
43383
|
-
get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]),
|
|
43384
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
43385
|
-
});
|
|
43386
|
-
|
|
43387
|
-
/**
|
|
43388
|
-
* Creates a new Value instance using the specified properties.
|
|
43389
|
-
* @function create
|
|
43390
|
-
* @memberof google.protobuf.Value
|
|
43391
|
-
* @static
|
|
43392
|
-
* @param {google.protobuf.IValue=} [properties] Properties to set
|
|
43393
|
-
* @returns {google.protobuf.Value} Value instance
|
|
43394
|
-
*/
|
|
43395
|
-
Value.create = function create(properties) {
|
|
43396
|
-
return Value.fromObject(properties);
|
|
43397
|
-
};
|
|
43398
|
-
|
|
43399
|
-
/**
|
|
43400
|
-
* Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
|
|
43401
|
-
* @function encode
|
|
43402
|
-
* @memberof google.protobuf.Value
|
|
43403
|
-
* @static
|
|
43404
|
-
* @param {google.protobuf.Value} message Value message or plain object to encode
|
|
43405
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43406
|
-
* @returns {$protobuf.Writer} Writer
|
|
43407
|
-
*/
|
|
43408
|
-
Value.encode = function encode(message, writer) {
|
|
43409
|
-
if (!writer)
|
|
43410
|
-
writer = $Writer.create();
|
|
43411
|
-
if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue"))
|
|
43412
|
-
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue);
|
|
43413
|
-
if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue"))
|
|
43414
|
-
writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue);
|
|
43415
|
-
if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue"))
|
|
43416
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue);
|
|
43417
|
-
if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue"))
|
|
43418
|
-
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue);
|
|
43419
|
-
if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue"))
|
|
43420
|
-
$root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
43421
|
-
if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue"))
|
|
43422
|
-
$root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
43423
|
-
return writer;
|
|
43424
|
-
};
|
|
43425
|
-
|
|
43426
|
-
/**
|
|
43427
|
-
* Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
|
|
43428
|
-
* @function encodeDelimited
|
|
43429
|
-
* @memberof google.protobuf.Value
|
|
43430
|
-
* @static
|
|
43431
|
-
* @param {google.protobuf.Value} message Value message or plain object to encode
|
|
43432
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43433
|
-
* @returns {$protobuf.Writer} Writer
|
|
43434
|
-
*/
|
|
43435
|
-
Value.encodeDelimited = function encodeDelimited(message, writer) {
|
|
43436
|
-
return this.encode(message, writer).ldelim();
|
|
43437
|
-
};
|
|
43438
|
-
|
|
43439
|
-
/**
|
|
43440
|
-
* Decodes a Value message from the specified reader or buffer.
|
|
43441
|
-
* @function decode
|
|
43442
|
-
* @memberof google.protobuf.Value
|
|
43443
|
-
* @static
|
|
43444
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43445
|
-
* @param {number} [length] Message length if known beforehand
|
|
43446
|
-
* @returns {google.protobuf.Value} Value
|
|
43447
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43448
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43449
|
-
*/
|
|
43450
|
-
Value.decode = function decode(reader, length) {
|
|
43451
|
-
if (!(reader instanceof $Reader))
|
|
43452
|
-
reader = $Reader.create(reader);
|
|
43453
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value();
|
|
43454
|
-
while (reader.pos < end) {
|
|
43455
|
-
var tag = reader.uint32();
|
|
43456
|
-
switch (tag >>> 3) {
|
|
43457
|
-
case 1:
|
|
43458
|
-
message.nullValue = reader.int32();
|
|
43459
|
-
break;
|
|
43460
|
-
case 2:
|
|
43461
|
-
message.numberValue = reader.double();
|
|
43462
|
-
break;
|
|
43463
|
-
case 3:
|
|
43464
|
-
message.stringValue = reader.string();
|
|
43465
|
-
break;
|
|
43466
|
-
case 4:
|
|
43467
|
-
message.boolValue = reader.bool();
|
|
43468
|
-
break;
|
|
43469
|
-
case 5:
|
|
43470
|
-
message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32());
|
|
43471
|
-
break;
|
|
43472
|
-
case 6:
|
|
43473
|
-
message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32());
|
|
43474
|
-
break;
|
|
43475
|
-
default:
|
|
43476
|
-
reader.skipType(tag & 7);
|
|
43477
|
-
break;
|
|
43478
|
-
}
|
|
43479
|
-
}
|
|
43480
|
-
return message;
|
|
43481
|
-
};
|
|
43482
|
-
|
|
43483
|
-
/**
|
|
43484
|
-
* Decodes a Value message from the specified reader or buffer, length delimited.
|
|
43485
|
-
* @function decodeDelimited
|
|
43486
|
-
* @memberof google.protobuf.Value
|
|
43487
|
-
* @static
|
|
43488
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43489
|
-
* @returns {google.protobuf.Value} Value
|
|
43490
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43491
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43492
|
-
*/
|
|
43493
|
-
Value.decodeDelimited = function decodeDelimited(reader) {
|
|
43494
|
-
if (!(reader instanceof $Reader))
|
|
43495
|
-
reader = new $Reader(reader);
|
|
43496
|
-
return this.decode(reader, reader.uint32());
|
|
43497
|
-
};
|
|
43498
|
-
|
|
43499
|
-
/**
|
|
43500
|
-
* Verifies a Value message.
|
|
43501
|
-
* @function verify
|
|
43502
|
-
* @memberof google.protobuf.Value
|
|
43503
|
-
* @static
|
|
43504
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
43505
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
43506
|
-
*/
|
|
43507
|
-
Value.verify = function verify(message) {
|
|
43508
|
-
if (typeof message !== "object" || message === null)
|
|
43509
|
-
return "object expected";
|
|
43510
|
-
var properties = {};
|
|
43511
|
-
if (message.nullValue != null && message.hasOwnProperty("nullValue")) {
|
|
43512
|
-
properties.kind = 1;
|
|
43513
|
-
switch (message.nullValue) {
|
|
43514
|
-
default:
|
|
43515
|
-
return "nullValue: enum value expected";
|
|
43516
|
-
case 0:
|
|
43517
|
-
break;
|
|
43518
|
-
}
|
|
43519
|
-
}
|
|
43520
|
-
if (message.numberValue != null && message.hasOwnProperty("numberValue")) {
|
|
43521
|
-
if (properties.kind === 1)
|
|
43522
|
-
return "kind: multiple values";
|
|
43523
|
-
properties.kind = 1;
|
|
43524
|
-
if (typeof message.numberValue !== "number")
|
|
43525
|
-
return "numberValue: number expected";
|
|
43526
|
-
}
|
|
43527
|
-
if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
|
|
43528
|
-
if (properties.kind === 1)
|
|
43529
|
-
return "kind: multiple values";
|
|
43530
|
-
properties.kind = 1;
|
|
43531
|
-
if (!$util.isString(message.stringValue))
|
|
43532
|
-
return "stringValue: string expected";
|
|
43533
|
-
}
|
|
43534
|
-
if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
|
|
43535
|
-
if (properties.kind === 1)
|
|
43536
|
-
return "kind: multiple values";
|
|
43537
|
-
properties.kind = 1;
|
|
43538
|
-
if (typeof message.boolValue !== "boolean")
|
|
43539
|
-
return "boolValue: boolean expected";
|
|
43540
|
-
}
|
|
43541
|
-
if (message.structValue != null && message.hasOwnProperty("structValue")) {
|
|
43542
|
-
if (properties.kind === 1)
|
|
43543
|
-
return "kind: multiple values";
|
|
43544
|
-
properties.kind = 1;
|
|
43545
|
-
{
|
|
43546
|
-
var error = $root.google.protobuf.Struct.verify(message.structValue);
|
|
43547
|
-
if (error)
|
|
43548
|
-
return "structValue." + error;
|
|
43549
|
-
}
|
|
43550
|
-
}
|
|
43551
|
-
if (message.listValue != null && message.hasOwnProperty("listValue")) {
|
|
43552
|
-
if (properties.kind === 1)
|
|
43553
|
-
return "kind: multiple values";
|
|
43554
|
-
properties.kind = 1;
|
|
43555
|
-
{
|
|
43556
|
-
var error = $root.google.protobuf.ListValue.verify(message.listValue);
|
|
43557
|
-
if (error)
|
|
43558
|
-
return "listValue." + error;
|
|
43559
|
-
}
|
|
43560
|
-
}
|
|
43561
|
-
return null;
|
|
43562
|
-
};
|
|
43563
|
-
|
|
43564
|
-
/**
|
|
43565
|
-
* Creates a Value message from a plain object. Also converts values to their respective internal types.
|
|
43566
|
-
* @function fromObject
|
|
43567
|
-
* @memberof google.protobuf.Value
|
|
43568
|
-
* @static
|
|
43569
|
-
* @param {Object.<string,*>} object Plain object
|
|
43570
|
-
* @returns {google.protobuf.Value} Value
|
|
43571
|
-
*/
|
|
43572
|
-
Value.fromObject = function fromObject(object) {
|
|
43573
|
-
if (object instanceof $root.google.protobuf.Value)
|
|
43574
|
-
return object;
|
|
43575
|
-
var message = new $root.google.protobuf.Value();
|
|
43576
|
-
switch (object.nullValue) {
|
|
43577
|
-
case "NULL_VALUE":
|
|
43578
|
-
case 0:
|
|
43579
|
-
message.nullValue = 0;
|
|
43580
|
-
break;
|
|
43581
|
-
}
|
|
43582
|
-
if (object.numberValue != null)
|
|
43583
|
-
message.numberValue = Number(object.numberValue);
|
|
43584
|
-
if (object.stringValue != null)
|
|
43585
|
-
message.stringValue = String(object.stringValue);
|
|
43586
|
-
if (object.boolValue != null)
|
|
43587
|
-
message.boolValue = Boolean(object.boolValue);
|
|
43588
|
-
if (object.structValue != null) {
|
|
43589
|
-
if (typeof object.structValue !== "object")
|
|
43590
|
-
throw TypeError(".google.protobuf.Value.structValue: object expected");
|
|
43591
|
-
message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue);
|
|
43592
|
-
}
|
|
43593
|
-
if (object.listValue != null) {
|
|
43594
|
-
if (typeof object.listValue !== "object")
|
|
43595
|
-
throw TypeError(".google.protobuf.Value.listValue: object expected");
|
|
43596
|
-
message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue);
|
|
43597
|
-
}
|
|
43598
|
-
return message;
|
|
43599
|
-
};
|
|
43600
|
-
|
|
43601
|
-
/**
|
|
43602
|
-
* Creates a plain object from a Value message. Also converts values to other types if specified.
|
|
43603
|
-
* @function toObject
|
|
43604
|
-
* @memberof google.protobuf.Value
|
|
43605
|
-
* @static
|
|
43606
|
-
* @param {google.protobuf.Value} message Value
|
|
43607
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
43608
|
-
* @returns {Object.<string,*>} Plain object
|
|
43609
|
-
*/
|
|
43610
|
-
Value.toObject = function toObject(message, options) {
|
|
43611
|
-
if (!options)
|
|
43612
|
-
options = {};
|
|
43613
|
-
var object = {};
|
|
43614
|
-
if (message.nullValue != null && message.hasOwnProperty("nullValue")) {
|
|
43615
|
-
object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] : message.nullValue;
|
|
43616
|
-
if (options.oneofs)
|
|
43617
|
-
object.kind = "nullValue";
|
|
43618
|
-
}
|
|
43619
|
-
if (message.numberValue != null && message.hasOwnProperty("numberValue")) {
|
|
43620
|
-
object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue;
|
|
43621
|
-
if (options.oneofs)
|
|
43622
|
-
object.kind = "numberValue";
|
|
43623
|
-
}
|
|
43624
|
-
if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
|
|
43625
|
-
object.stringValue = message.stringValue;
|
|
43626
|
-
if (options.oneofs)
|
|
43627
|
-
object.kind = "stringValue";
|
|
43628
|
-
}
|
|
43629
|
-
if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
|
|
43630
|
-
object.boolValue = message.boolValue;
|
|
43631
|
-
if (options.oneofs)
|
|
43632
|
-
object.kind = "boolValue";
|
|
43633
|
-
}
|
|
43634
|
-
if (message.structValue != null && message.hasOwnProperty("structValue")) {
|
|
43635
|
-
object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options);
|
|
43636
|
-
if (options.oneofs)
|
|
43637
|
-
object.kind = "structValue";
|
|
43638
|
-
}
|
|
43639
|
-
if (message.listValue != null && message.hasOwnProperty("listValue")) {
|
|
43640
|
-
object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options);
|
|
43641
|
-
if (options.oneofs)
|
|
43642
|
-
object.kind = "listValue";
|
|
43643
|
-
}
|
|
43644
|
-
return object;
|
|
43645
|
-
};
|
|
43646
|
-
|
|
43647
|
-
/**
|
|
43648
|
-
* Converts this Value to JSON.
|
|
43649
|
-
* @function toJSON
|
|
43650
|
-
* @memberof google.protobuf.Value
|
|
43651
|
-
* @instance
|
|
43652
|
-
* @returns {Object.<string,*>} JSON object
|
|
43653
|
-
*/
|
|
43654
|
-
Value.prototype.toJSON = function toJSON() {
|
|
43655
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
43656
|
-
};
|
|
43657
|
-
|
|
43658
|
-
return Value;
|
|
43659
|
-
})();
|
|
43660
|
-
|
|
43661
|
-
/**
|
|
43662
|
-
* NullValue enum.
|
|
43663
|
-
* @name google.protobuf.NullValue
|
|
43664
|
-
* @enum {number}
|
|
43665
|
-
* @property {number} NULL_VALUE=0 NULL_VALUE value
|
|
43666
|
-
*/
|
|
43667
|
-
protobuf.NullValue = (function() {
|
|
43668
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
43669
|
-
values[valuesById[0] = "NULL_VALUE"] = 0;
|
|
43670
|
-
return values;
|
|
43671
|
-
})();
|
|
43672
|
-
|
|
43673
|
-
protobuf.ListValue = (function() {
|
|
43674
|
-
|
|
43675
|
-
/**
|
|
43676
|
-
* Properties of a ListValue.
|
|
43677
|
-
* @memberof google.protobuf
|
|
43678
|
-
* @interface IListValue
|
|
43679
|
-
* @property {Array.<google.protobuf.Value|google.protobuf.IValue>|null} [values] ListValue values
|
|
43680
|
-
*/
|
|
43681
|
-
|
|
43682
|
-
/**
|
|
43683
|
-
* Constructs a new ListValue.
|
|
43684
|
-
* @memberof google.protobuf
|
|
43685
|
-
* @classdesc Represents a ListValue.
|
|
43686
|
-
* @constructor
|
|
43687
|
-
* @param {google.protobuf.IListValue=} [properties] Properties to set
|
|
43688
|
-
*/
|
|
43689
|
-
function ListValue(properties) {
|
|
43690
|
-
this.values = [];
|
|
43691
|
-
if (properties)
|
|
43692
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43693
|
-
if (properties[keys[i]] != null)
|
|
43694
|
-
this[keys[i]] = properties[keys[i]];
|
|
43695
|
-
}
|
|
43696
|
-
|
|
43697
|
-
/**
|
|
43698
|
-
* ListValue values.
|
|
43699
|
-
* @member {Array.<google.protobuf.Value>} values
|
|
43700
|
-
* @memberof google.protobuf.ListValue
|
|
43701
|
-
* @instance
|
|
43702
|
-
*/
|
|
43703
|
-
ListValue.prototype.values = $util.emptyArray;
|
|
43704
|
-
|
|
43705
|
-
/**
|
|
43706
|
-
* Creates a new ListValue instance using the specified properties.
|
|
43707
|
-
* @function create
|
|
43708
|
-
* @memberof google.protobuf.ListValue
|
|
43709
|
-
* @static
|
|
43710
|
-
* @param {google.protobuf.IListValue=} [properties] Properties to set
|
|
43711
|
-
* @returns {google.protobuf.ListValue} ListValue instance
|
|
43712
|
-
*/
|
|
43713
|
-
ListValue.create = function create(properties) {
|
|
43714
|
-
return ListValue.fromObject(properties);
|
|
43715
|
-
};
|
|
43716
|
-
|
|
43717
|
-
/**
|
|
43718
|
-
* Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
|
|
43719
|
-
* @function encode
|
|
43720
|
-
* @memberof google.protobuf.ListValue
|
|
43721
|
-
* @static
|
|
43722
|
-
* @param {google.protobuf.ListValue} message ListValue message or plain object to encode
|
|
43723
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43724
|
-
* @returns {$protobuf.Writer} Writer
|
|
43725
|
-
*/
|
|
43726
|
-
ListValue.encode = function encode(message, writer) {
|
|
43727
|
-
if (!writer)
|
|
43728
|
-
writer = $Writer.create();
|
|
43729
|
-
if (message.values != null && message.values.length)
|
|
43730
|
-
for (var i = 0; i < message.values.length; ++i)
|
|
43731
|
-
$root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
43732
|
-
return writer;
|
|
43733
|
-
};
|
|
43734
|
-
|
|
43735
|
-
/**
|
|
43736
|
-
* Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
|
|
43737
|
-
* @function encodeDelimited
|
|
43738
|
-
* @memberof google.protobuf.ListValue
|
|
43739
|
-
* @static
|
|
43740
|
-
* @param {google.protobuf.ListValue} message ListValue message or plain object to encode
|
|
43741
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43742
|
-
* @returns {$protobuf.Writer} Writer
|
|
43743
|
-
*/
|
|
43744
|
-
ListValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
43745
|
-
return this.encode(message, writer).ldelim();
|
|
43746
|
-
};
|
|
43747
|
-
|
|
43748
|
-
/**
|
|
43749
|
-
* Decodes a ListValue message from the specified reader or buffer.
|
|
43750
|
-
* @function decode
|
|
43751
|
-
* @memberof google.protobuf.ListValue
|
|
43752
|
-
* @static
|
|
43753
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43754
|
-
* @param {number} [length] Message length if known beforehand
|
|
43755
|
-
* @returns {google.protobuf.ListValue} ListValue
|
|
43756
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43757
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43758
|
-
*/
|
|
43759
|
-
ListValue.decode = function decode(reader, length) {
|
|
43760
|
-
if (!(reader instanceof $Reader))
|
|
43761
|
-
reader = $Reader.create(reader);
|
|
43762
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue();
|
|
43763
|
-
while (reader.pos < end) {
|
|
43764
|
-
var tag = reader.uint32();
|
|
43765
|
-
switch (tag >>> 3) {
|
|
43766
|
-
case 1:
|
|
43767
|
-
if (!(message.values && message.values.length))
|
|
43768
|
-
message.values = [];
|
|
43769
|
-
message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32()));
|
|
43770
|
-
break;
|
|
43771
|
-
default:
|
|
43772
|
-
reader.skipType(tag & 7);
|
|
43773
|
-
break;
|
|
43774
|
-
}
|
|
43775
|
-
}
|
|
43776
|
-
return message;
|
|
43777
|
-
};
|
|
43778
|
-
|
|
43779
|
-
/**
|
|
43780
|
-
* Decodes a ListValue message from the specified reader or buffer, length delimited.
|
|
43781
|
-
* @function decodeDelimited
|
|
43782
|
-
* @memberof google.protobuf.ListValue
|
|
43783
|
-
* @static
|
|
43784
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43785
|
-
* @returns {google.protobuf.ListValue} ListValue
|
|
43786
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43787
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43788
|
-
*/
|
|
43789
|
-
ListValue.decodeDelimited = function decodeDelimited(reader) {
|
|
43790
|
-
if (!(reader instanceof $Reader))
|
|
43791
|
-
reader = new $Reader(reader);
|
|
43792
|
-
return this.decode(reader, reader.uint32());
|
|
43793
|
-
};
|
|
43794
|
-
|
|
43795
|
-
/**
|
|
43796
|
-
* Verifies a ListValue message.
|
|
43797
|
-
* @function verify
|
|
43798
|
-
* @memberof google.protobuf.ListValue
|
|
43799
|
-
* @static
|
|
43800
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
43801
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
43802
|
-
*/
|
|
43803
|
-
ListValue.verify = function verify(message) {
|
|
43804
|
-
if (typeof message !== "object" || message === null)
|
|
43805
|
-
return "object expected";
|
|
43806
|
-
if (message.values != null && message.hasOwnProperty("values")) {
|
|
43807
|
-
if (!Array.isArray(message.values))
|
|
43808
|
-
return "values: array expected";
|
|
43809
|
-
for (var i = 0; i < message.values.length; ++i) {
|
|
43810
|
-
var error = $root.google.protobuf.Value.verify(message.values[i]);
|
|
43811
|
-
if (error)
|
|
43812
|
-
return "values." + error;
|
|
43813
|
-
}
|
|
43814
|
-
}
|
|
43815
|
-
return null;
|
|
43816
|
-
};
|
|
43817
|
-
|
|
43818
|
-
/**
|
|
43819
|
-
* Creates a ListValue message from a plain object. Also converts values to their respective internal types.
|
|
43820
|
-
* @function fromObject
|
|
43821
|
-
* @memberof google.protobuf.ListValue
|
|
43822
|
-
* @static
|
|
43823
|
-
* @param {Object.<string,*>} object Plain object
|
|
43824
|
-
* @returns {google.protobuf.ListValue} ListValue
|
|
43825
|
-
*/
|
|
43826
|
-
ListValue.fromObject = function fromObject(object) {
|
|
43827
|
-
if (object instanceof $root.google.protobuf.ListValue)
|
|
43828
|
-
return object;
|
|
43829
|
-
var message = new $root.google.protobuf.ListValue();
|
|
43830
|
-
if (object.values) {
|
|
43831
|
-
if (!Array.isArray(object.values))
|
|
43832
|
-
throw TypeError(".google.protobuf.ListValue.values: array expected");
|
|
43833
|
-
message.values = [];
|
|
43834
|
-
for (var i = 0; i < object.values.length; ++i) {
|
|
43835
|
-
if (typeof object.values[i] !== "object")
|
|
43836
|
-
throw TypeError(".google.protobuf.ListValue.values: object expected");
|
|
43837
|
-
message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]);
|
|
43838
|
-
}
|
|
43839
|
-
}
|
|
43840
|
-
return message;
|
|
43841
|
-
};
|
|
43842
|
-
|
|
43843
|
-
/**
|
|
43844
|
-
* Creates a plain object from a ListValue message. Also converts values to other types if specified.
|
|
43845
|
-
* @function toObject
|
|
43846
|
-
* @memberof google.protobuf.ListValue
|
|
43847
|
-
* @static
|
|
43848
|
-
* @param {google.protobuf.ListValue} message ListValue
|
|
43849
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
43850
|
-
* @returns {Object.<string,*>} Plain object
|
|
43851
|
-
*/
|
|
43852
|
-
ListValue.toObject = function toObject(message, options) {
|
|
43853
|
-
if (!options)
|
|
43854
|
-
options = {};
|
|
43855
|
-
var object = {};
|
|
43856
|
-
if (options.arrays || options.defaults)
|
|
43857
|
-
object.values = [];
|
|
43858
|
-
if (message.values && message.values.length) {
|
|
43859
|
-
object.values = [];
|
|
43860
|
-
for (var j = 0; j < message.values.length; ++j)
|
|
43861
|
-
object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options);
|
|
43862
|
-
}
|
|
43863
|
-
return object;
|
|
43864
|
-
};
|
|
43865
|
-
|
|
43866
|
-
/**
|
|
43867
|
-
* Converts this ListValue to JSON.
|
|
43868
|
-
* @function toJSON
|
|
43869
|
-
* @memberof google.protobuf.ListValue
|
|
43870
|
-
* @instance
|
|
43871
|
-
* @returns {Object.<string,*>} JSON object
|
|
43872
|
-
*/
|
|
43873
|
-
ListValue.prototype.toJSON = function toJSON() {
|
|
43874
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
43875
|
-
};
|
|
43876
|
-
|
|
43877
|
-
return ListValue;
|
|
43878
|
-
})();
|
|
43879
|
-
|
|
43880
43064
|
return protobuf;
|
|
43881
43065
|
})();
|
|
43882
43066
|
|