@miradorlabs/web-grpc 2.6.0 → 2.8.0

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.
@@ -0,0 +1,1111 @@
1
+ // source: proto/gateway/common/v1/attribute_value.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ goog.exportSymbol('proto.gateway.common.v1.AttributeArray', null, global);
25
+ goog.exportSymbol('proto.gateway.common.v1.AttributeKeyValue', null, global);
26
+ goog.exportSymbol('proto.gateway.common.v1.AttributeKeyValueList', null, global);
27
+ goog.exportSymbol('proto.gateway.common.v1.AttributeValue', null, global);
28
+ goog.exportSymbol('proto.gateway.common.v1.AttributeValue.ValueCase', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.gateway.common.v1.AttributeValue = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.common.v1.AttributeValue.oneofGroups_);
41
+ };
42
+ goog.inherits(proto.gateway.common.v1.AttributeValue, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.gateway.common.v1.AttributeValue.displayName = 'proto.gateway.common.v1.AttributeValue';
49
+ }
50
+ /**
51
+ * Generated by JsPbCodeGenerator.
52
+ * @param {Array=} opt_data Optional initial data array, typically from a
53
+ * server response, or constructed directly in Javascript. The array is used
54
+ * in place and becomes part of the constructed object. It is not cloned.
55
+ * If no data is provided, the constructed object will be empty, but still
56
+ * valid.
57
+ * @extends {jspb.Message}
58
+ * @constructor
59
+ */
60
+ proto.gateway.common.v1.AttributeArray = function(opt_data) {
61
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.common.v1.AttributeArray.repeatedFields_, null);
62
+ };
63
+ goog.inherits(proto.gateway.common.v1.AttributeArray, jspb.Message);
64
+ if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
69
+ proto.gateway.common.v1.AttributeArray.displayName = 'proto.gateway.common.v1.AttributeArray';
70
+ }
71
+ /**
72
+ * Generated by JsPbCodeGenerator.
73
+ * @param {Array=} opt_data Optional initial data array, typically from a
74
+ * server response, or constructed directly in Javascript. The array is used
75
+ * in place and becomes part of the constructed object. It is not cloned.
76
+ * If no data is provided, the constructed object will be empty, but still
77
+ * valid.
78
+ * @extends {jspb.Message}
79
+ * @constructor
80
+ */
81
+ proto.gateway.common.v1.AttributeKeyValue = function(opt_data) {
82
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
83
+ };
84
+ goog.inherits(proto.gateway.common.v1.AttributeKeyValue, jspb.Message);
85
+ if (goog.DEBUG && !COMPILED) {
86
+ /**
87
+ * @public
88
+ * @override
89
+ */
90
+ proto.gateway.common.v1.AttributeKeyValue.displayName = 'proto.gateway.common.v1.AttributeKeyValue';
91
+ }
92
+ /**
93
+ * Generated by JsPbCodeGenerator.
94
+ * @param {Array=} opt_data Optional initial data array, typically from a
95
+ * server response, or constructed directly in Javascript. The array is used
96
+ * in place and becomes part of the constructed object. It is not cloned.
97
+ * If no data is provided, the constructed object will be empty, but still
98
+ * valid.
99
+ * @extends {jspb.Message}
100
+ * @constructor
101
+ */
102
+ proto.gateway.common.v1.AttributeKeyValueList = function(opt_data) {
103
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.common.v1.AttributeKeyValueList.repeatedFields_, null);
104
+ };
105
+ goog.inherits(proto.gateway.common.v1.AttributeKeyValueList, jspb.Message);
106
+ if (goog.DEBUG && !COMPILED) {
107
+ /**
108
+ * @public
109
+ * @override
110
+ */
111
+ proto.gateway.common.v1.AttributeKeyValueList.displayName = 'proto.gateway.common.v1.AttributeKeyValueList';
112
+ }
113
+
114
+ /**
115
+ * Oneof group definitions for this message. Each group defines the field
116
+ * numbers belonging to that group. When of these fields' value is set, all
117
+ * other fields in the group are cleared. During deserialization, if multiple
118
+ * fields are encountered for a group, only the last value seen will be kept.
119
+ * @private {!Array<!Array<number>>}
120
+ * @const
121
+ */
122
+ proto.gateway.common.v1.AttributeValue.oneofGroups_ = [[1,2,3,4,5,6,7]];
123
+
124
+ /**
125
+ * @enum {number}
126
+ */
127
+ proto.gateway.common.v1.AttributeValue.ValueCase = {
128
+ VALUE_NOT_SET: 0,
129
+ STRING_VALUE: 1,
130
+ BOOL_VALUE: 2,
131
+ INT_VALUE: 3,
132
+ DOUBLE_VALUE: 4,
133
+ BYTES_VALUE: 5,
134
+ ARRAY_VALUE: 6,
135
+ KVLIST_VALUE: 7
136
+ };
137
+
138
+ /**
139
+ * @return {proto.gateway.common.v1.AttributeValue.ValueCase}
140
+ */
141
+ proto.gateway.common.v1.AttributeValue.prototype.getValueCase = function() {
142
+ return /** @type {proto.gateway.common.v1.AttributeValue.ValueCase} */(jspb.Message.computeOneofCase(this, proto.gateway.common.v1.AttributeValue.oneofGroups_[0]));
143
+ };
144
+
145
+
146
+
147
+ if (jspb.Message.GENERATE_TO_OBJECT) {
148
+ /**
149
+ * Creates an object representation of this proto.
150
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
151
+ * Optional fields that are not set will be set to undefined.
152
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
153
+ * For the list of reserved names please see:
154
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
155
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
156
+ * JSPB instance for transitional soy proto support:
157
+ * http://goto/soy-param-migration
158
+ * @return {!Object}
159
+ */
160
+ proto.gateway.common.v1.AttributeValue.prototype.toObject = function(opt_includeInstance) {
161
+ return proto.gateway.common.v1.AttributeValue.toObject(opt_includeInstance, this);
162
+ };
163
+
164
+
165
+ /**
166
+ * Static version of the {@see toObject} method.
167
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
168
+ * the JSPB instance for transitional soy proto support:
169
+ * http://goto/soy-param-migration
170
+ * @param {!proto.gateway.common.v1.AttributeValue} msg The msg instance to transform.
171
+ * @return {!Object}
172
+ * @suppress {unusedLocalVariables} f is only used for nested messages
173
+ */
174
+ proto.gateway.common.v1.AttributeValue.toObject = function(includeInstance, msg) {
175
+ var f, obj = {
176
+ stringValue: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
177
+ boolValue: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f,
178
+ intValue: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
179
+ doubleValue: (f = jspb.Message.getOptionalFloatingPointField(msg, 4)) == null ? undefined : f,
180
+ bytesValue: msg.getBytesValue_asB64(),
181
+ arrayValue: (f = msg.getArrayValue()) && proto.gateway.common.v1.AttributeArray.toObject(includeInstance, f),
182
+ kvlistValue: (f = msg.getKvlistValue()) && proto.gateway.common.v1.AttributeKeyValueList.toObject(includeInstance, f)
183
+ };
184
+
185
+ if (includeInstance) {
186
+ obj.$jspbMessageInstance = msg;
187
+ }
188
+ return obj;
189
+ };
190
+ }
191
+
192
+
193
+ /**
194
+ * Deserializes binary data (in protobuf wire format).
195
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
196
+ * @return {!proto.gateway.common.v1.AttributeValue}
197
+ */
198
+ proto.gateway.common.v1.AttributeValue.deserializeBinary = function(bytes) {
199
+ var reader = new jspb.BinaryReader(bytes);
200
+ var msg = new proto.gateway.common.v1.AttributeValue;
201
+ return proto.gateway.common.v1.AttributeValue.deserializeBinaryFromReader(msg, reader);
202
+ };
203
+
204
+
205
+ /**
206
+ * Deserializes binary data (in protobuf wire format) from the
207
+ * given reader into the given message object.
208
+ * @param {!proto.gateway.common.v1.AttributeValue} msg The message object to deserialize into.
209
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
210
+ * @return {!proto.gateway.common.v1.AttributeValue}
211
+ */
212
+ proto.gateway.common.v1.AttributeValue.deserializeBinaryFromReader = function(msg, reader) {
213
+ while (reader.nextField()) {
214
+ if (reader.isEndGroup()) {
215
+ break;
216
+ }
217
+ var field = reader.getFieldNumber();
218
+ switch (field) {
219
+ case 1:
220
+ var value = /** @type {string} */ (reader.readString());
221
+ msg.setStringValue(value);
222
+ break;
223
+ case 2:
224
+ var value = /** @type {boolean} */ (reader.readBool());
225
+ msg.setBoolValue(value);
226
+ break;
227
+ case 3:
228
+ var value = /** @type {number} */ (reader.readInt64());
229
+ msg.setIntValue(value);
230
+ break;
231
+ case 4:
232
+ var value = /** @type {number} */ (reader.readDouble());
233
+ msg.setDoubleValue(value);
234
+ break;
235
+ case 5:
236
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
237
+ msg.setBytesValue(value);
238
+ break;
239
+ case 6:
240
+ var value = new proto.gateway.common.v1.AttributeArray;
241
+ reader.readMessage(value,proto.gateway.common.v1.AttributeArray.deserializeBinaryFromReader);
242
+ msg.setArrayValue(value);
243
+ break;
244
+ case 7:
245
+ var value = new proto.gateway.common.v1.AttributeKeyValueList;
246
+ reader.readMessage(value,proto.gateway.common.v1.AttributeKeyValueList.deserializeBinaryFromReader);
247
+ msg.setKvlistValue(value);
248
+ break;
249
+ default:
250
+ reader.skipField();
251
+ break;
252
+ }
253
+ }
254
+ return msg;
255
+ };
256
+
257
+
258
+ /**
259
+ * Serializes the message to binary data (in protobuf wire format).
260
+ * @return {!Uint8Array}
261
+ */
262
+ proto.gateway.common.v1.AttributeValue.prototype.serializeBinary = function() {
263
+ var writer = new jspb.BinaryWriter();
264
+ proto.gateway.common.v1.AttributeValue.serializeBinaryToWriter(this, writer);
265
+ return writer.getResultBuffer();
266
+ };
267
+
268
+
269
+ /**
270
+ * Serializes the given message to binary data (in protobuf wire
271
+ * format), writing to the given BinaryWriter.
272
+ * @param {!proto.gateway.common.v1.AttributeValue} message
273
+ * @param {!jspb.BinaryWriter} writer
274
+ * @suppress {unusedLocalVariables} f is only used for nested messages
275
+ */
276
+ proto.gateway.common.v1.AttributeValue.serializeBinaryToWriter = function(message, writer) {
277
+ var f = undefined;
278
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
279
+ if (f != null) {
280
+ writer.writeString(
281
+ 1,
282
+ f
283
+ );
284
+ }
285
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
286
+ if (f != null) {
287
+ writer.writeBool(
288
+ 2,
289
+ f
290
+ );
291
+ }
292
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
293
+ if (f != null) {
294
+ writer.writeInt64(
295
+ 3,
296
+ f
297
+ );
298
+ }
299
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
300
+ if (f != null) {
301
+ writer.writeDouble(
302
+ 4,
303
+ f
304
+ );
305
+ }
306
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 5));
307
+ if (f != null) {
308
+ writer.writeBytes(
309
+ 5,
310
+ f
311
+ );
312
+ }
313
+ f = message.getArrayValue();
314
+ if (f != null) {
315
+ writer.writeMessage(
316
+ 6,
317
+ f,
318
+ proto.gateway.common.v1.AttributeArray.serializeBinaryToWriter
319
+ );
320
+ }
321
+ f = message.getKvlistValue();
322
+ if (f != null) {
323
+ writer.writeMessage(
324
+ 7,
325
+ f,
326
+ proto.gateway.common.v1.AttributeKeyValueList.serializeBinaryToWriter
327
+ );
328
+ }
329
+ };
330
+
331
+
332
+ /**
333
+ * optional string string_value = 1;
334
+ * @return {string}
335
+ */
336
+ proto.gateway.common.v1.AttributeValue.prototype.getStringValue = function() {
337
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
338
+ };
339
+
340
+
341
+ /**
342
+ * @param {string} value
343
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
344
+ */
345
+ proto.gateway.common.v1.AttributeValue.prototype.setStringValue = function(value) {
346
+ return jspb.Message.setOneofField(this, 1, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], value);
347
+ };
348
+
349
+
350
+ /**
351
+ * Clears the field making it undefined.
352
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
353
+ */
354
+ proto.gateway.common.v1.AttributeValue.prototype.clearStringValue = function() {
355
+ return jspb.Message.setOneofField(this, 1, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], undefined);
356
+ };
357
+
358
+
359
+ /**
360
+ * Returns whether this field is set.
361
+ * @return {boolean}
362
+ */
363
+ proto.gateway.common.v1.AttributeValue.prototype.hasStringValue = function() {
364
+ return jspb.Message.getField(this, 1) != null;
365
+ };
366
+
367
+
368
+ /**
369
+ * optional bool bool_value = 2;
370
+ * @return {boolean}
371
+ */
372
+ proto.gateway.common.v1.AttributeValue.prototype.getBoolValue = function() {
373
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
374
+ };
375
+
376
+
377
+ /**
378
+ * @param {boolean} value
379
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
380
+ */
381
+ proto.gateway.common.v1.AttributeValue.prototype.setBoolValue = function(value) {
382
+ return jspb.Message.setOneofField(this, 2, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], value);
383
+ };
384
+
385
+
386
+ /**
387
+ * Clears the field making it undefined.
388
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
389
+ */
390
+ proto.gateway.common.v1.AttributeValue.prototype.clearBoolValue = function() {
391
+ return jspb.Message.setOneofField(this, 2, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], undefined);
392
+ };
393
+
394
+
395
+ /**
396
+ * Returns whether this field is set.
397
+ * @return {boolean}
398
+ */
399
+ proto.gateway.common.v1.AttributeValue.prototype.hasBoolValue = function() {
400
+ return jspb.Message.getField(this, 2) != null;
401
+ };
402
+
403
+
404
+ /**
405
+ * optional int64 int_value = 3;
406
+ * @return {number}
407
+ */
408
+ proto.gateway.common.v1.AttributeValue.prototype.getIntValue = function() {
409
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
410
+ };
411
+
412
+
413
+ /**
414
+ * @param {number} value
415
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
416
+ */
417
+ proto.gateway.common.v1.AttributeValue.prototype.setIntValue = function(value) {
418
+ return jspb.Message.setOneofField(this, 3, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], value);
419
+ };
420
+
421
+
422
+ /**
423
+ * Clears the field making it undefined.
424
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
425
+ */
426
+ proto.gateway.common.v1.AttributeValue.prototype.clearIntValue = function() {
427
+ return jspb.Message.setOneofField(this, 3, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], undefined);
428
+ };
429
+
430
+
431
+ /**
432
+ * Returns whether this field is set.
433
+ * @return {boolean}
434
+ */
435
+ proto.gateway.common.v1.AttributeValue.prototype.hasIntValue = function() {
436
+ return jspb.Message.getField(this, 3) != null;
437
+ };
438
+
439
+
440
+ /**
441
+ * optional double double_value = 4;
442
+ * @return {number}
443
+ */
444
+ proto.gateway.common.v1.AttributeValue.prototype.getDoubleValue = function() {
445
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
446
+ };
447
+
448
+
449
+ /**
450
+ * @param {number} value
451
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
452
+ */
453
+ proto.gateway.common.v1.AttributeValue.prototype.setDoubleValue = function(value) {
454
+ return jspb.Message.setOneofField(this, 4, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], value);
455
+ };
456
+
457
+
458
+ /**
459
+ * Clears the field making it undefined.
460
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
461
+ */
462
+ proto.gateway.common.v1.AttributeValue.prototype.clearDoubleValue = function() {
463
+ return jspb.Message.setOneofField(this, 4, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], undefined);
464
+ };
465
+
466
+
467
+ /**
468
+ * Returns whether this field is set.
469
+ * @return {boolean}
470
+ */
471
+ proto.gateway.common.v1.AttributeValue.prototype.hasDoubleValue = function() {
472
+ return jspb.Message.getField(this, 4) != null;
473
+ };
474
+
475
+
476
+ /**
477
+ * optional bytes bytes_value = 5;
478
+ * @return {!(string|Uint8Array)}
479
+ */
480
+ proto.gateway.common.v1.AttributeValue.prototype.getBytesValue = function() {
481
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
482
+ };
483
+
484
+
485
+ /**
486
+ * optional bytes bytes_value = 5;
487
+ * This is a type-conversion wrapper around `getBytesValue()`
488
+ * @return {string}
489
+ */
490
+ proto.gateway.common.v1.AttributeValue.prototype.getBytesValue_asB64 = function() {
491
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
492
+ this.getBytesValue()));
493
+ };
494
+
495
+
496
+ /**
497
+ * optional bytes bytes_value = 5;
498
+ * Note that Uint8Array is not supported on all browsers.
499
+ * @see http://caniuse.com/Uint8Array
500
+ * This is a type-conversion wrapper around `getBytesValue()`
501
+ * @return {!Uint8Array}
502
+ */
503
+ proto.gateway.common.v1.AttributeValue.prototype.getBytesValue_asU8 = function() {
504
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
505
+ this.getBytesValue()));
506
+ };
507
+
508
+
509
+ /**
510
+ * @param {!(string|Uint8Array)} value
511
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
512
+ */
513
+ proto.gateway.common.v1.AttributeValue.prototype.setBytesValue = function(value) {
514
+ return jspb.Message.setOneofField(this, 5, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], value);
515
+ };
516
+
517
+
518
+ /**
519
+ * Clears the field making it undefined.
520
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
521
+ */
522
+ proto.gateway.common.v1.AttributeValue.prototype.clearBytesValue = function() {
523
+ return jspb.Message.setOneofField(this, 5, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], undefined);
524
+ };
525
+
526
+
527
+ /**
528
+ * Returns whether this field is set.
529
+ * @return {boolean}
530
+ */
531
+ proto.gateway.common.v1.AttributeValue.prototype.hasBytesValue = function() {
532
+ return jspb.Message.getField(this, 5) != null;
533
+ };
534
+
535
+
536
+ /**
537
+ * optional AttributeArray array_value = 6;
538
+ * @return {?proto.gateway.common.v1.AttributeArray}
539
+ */
540
+ proto.gateway.common.v1.AttributeValue.prototype.getArrayValue = function() {
541
+ return /** @type{?proto.gateway.common.v1.AttributeArray} */ (
542
+ jspb.Message.getWrapperField(this, proto.gateway.common.v1.AttributeArray, 6));
543
+ };
544
+
545
+
546
+ /**
547
+ * @param {?proto.gateway.common.v1.AttributeArray|undefined} value
548
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
549
+ */
550
+ proto.gateway.common.v1.AttributeValue.prototype.setArrayValue = function(value) {
551
+ return jspb.Message.setOneofWrapperField(this, 6, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], value);
552
+ };
553
+
554
+
555
+ /**
556
+ * Clears the message field making it undefined.
557
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
558
+ */
559
+ proto.gateway.common.v1.AttributeValue.prototype.clearArrayValue = function() {
560
+ return this.setArrayValue(undefined);
561
+ };
562
+
563
+
564
+ /**
565
+ * Returns whether this field is set.
566
+ * @return {boolean}
567
+ */
568
+ proto.gateway.common.v1.AttributeValue.prototype.hasArrayValue = function() {
569
+ return jspb.Message.getField(this, 6) != null;
570
+ };
571
+
572
+
573
+ /**
574
+ * optional AttributeKeyValueList kvlist_value = 7;
575
+ * @return {?proto.gateway.common.v1.AttributeKeyValueList}
576
+ */
577
+ proto.gateway.common.v1.AttributeValue.prototype.getKvlistValue = function() {
578
+ return /** @type{?proto.gateway.common.v1.AttributeKeyValueList} */ (
579
+ jspb.Message.getWrapperField(this, proto.gateway.common.v1.AttributeKeyValueList, 7));
580
+ };
581
+
582
+
583
+ /**
584
+ * @param {?proto.gateway.common.v1.AttributeKeyValueList|undefined} value
585
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
586
+ */
587
+ proto.gateway.common.v1.AttributeValue.prototype.setKvlistValue = function(value) {
588
+ return jspb.Message.setOneofWrapperField(this, 7, proto.gateway.common.v1.AttributeValue.oneofGroups_[0], value);
589
+ };
590
+
591
+
592
+ /**
593
+ * Clears the message field making it undefined.
594
+ * @return {!proto.gateway.common.v1.AttributeValue} returns this
595
+ */
596
+ proto.gateway.common.v1.AttributeValue.prototype.clearKvlistValue = function() {
597
+ return this.setKvlistValue(undefined);
598
+ };
599
+
600
+
601
+ /**
602
+ * Returns whether this field is set.
603
+ * @return {boolean}
604
+ */
605
+ proto.gateway.common.v1.AttributeValue.prototype.hasKvlistValue = function() {
606
+ return jspb.Message.getField(this, 7) != null;
607
+ };
608
+
609
+
610
+
611
+ /**
612
+ * List of repeated fields within this message type.
613
+ * @private {!Array<number>}
614
+ * @const
615
+ */
616
+ proto.gateway.common.v1.AttributeArray.repeatedFields_ = [1];
617
+
618
+
619
+
620
+ if (jspb.Message.GENERATE_TO_OBJECT) {
621
+ /**
622
+ * Creates an object representation of this proto.
623
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
624
+ * Optional fields that are not set will be set to undefined.
625
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
626
+ * For the list of reserved names please see:
627
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
628
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
629
+ * JSPB instance for transitional soy proto support:
630
+ * http://goto/soy-param-migration
631
+ * @return {!Object}
632
+ */
633
+ proto.gateway.common.v1.AttributeArray.prototype.toObject = function(opt_includeInstance) {
634
+ return proto.gateway.common.v1.AttributeArray.toObject(opt_includeInstance, this);
635
+ };
636
+
637
+
638
+ /**
639
+ * Static version of the {@see toObject} method.
640
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
641
+ * the JSPB instance for transitional soy proto support:
642
+ * http://goto/soy-param-migration
643
+ * @param {!proto.gateway.common.v1.AttributeArray} msg The msg instance to transform.
644
+ * @return {!Object}
645
+ * @suppress {unusedLocalVariables} f is only used for nested messages
646
+ */
647
+ proto.gateway.common.v1.AttributeArray.toObject = function(includeInstance, msg) {
648
+ var f, obj = {
649
+ valuesList: jspb.Message.toObjectList(msg.getValuesList(),
650
+ proto.gateway.common.v1.AttributeValue.toObject, includeInstance)
651
+ };
652
+
653
+ if (includeInstance) {
654
+ obj.$jspbMessageInstance = msg;
655
+ }
656
+ return obj;
657
+ };
658
+ }
659
+
660
+
661
+ /**
662
+ * Deserializes binary data (in protobuf wire format).
663
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
664
+ * @return {!proto.gateway.common.v1.AttributeArray}
665
+ */
666
+ proto.gateway.common.v1.AttributeArray.deserializeBinary = function(bytes) {
667
+ var reader = new jspb.BinaryReader(bytes);
668
+ var msg = new proto.gateway.common.v1.AttributeArray;
669
+ return proto.gateway.common.v1.AttributeArray.deserializeBinaryFromReader(msg, reader);
670
+ };
671
+
672
+
673
+ /**
674
+ * Deserializes binary data (in protobuf wire format) from the
675
+ * given reader into the given message object.
676
+ * @param {!proto.gateway.common.v1.AttributeArray} msg The message object to deserialize into.
677
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
678
+ * @return {!proto.gateway.common.v1.AttributeArray}
679
+ */
680
+ proto.gateway.common.v1.AttributeArray.deserializeBinaryFromReader = function(msg, reader) {
681
+ while (reader.nextField()) {
682
+ if (reader.isEndGroup()) {
683
+ break;
684
+ }
685
+ var field = reader.getFieldNumber();
686
+ switch (field) {
687
+ case 1:
688
+ var value = new proto.gateway.common.v1.AttributeValue;
689
+ reader.readMessage(value,proto.gateway.common.v1.AttributeValue.deserializeBinaryFromReader);
690
+ msg.addValues(value);
691
+ break;
692
+ default:
693
+ reader.skipField();
694
+ break;
695
+ }
696
+ }
697
+ return msg;
698
+ };
699
+
700
+
701
+ /**
702
+ * Serializes the message to binary data (in protobuf wire format).
703
+ * @return {!Uint8Array}
704
+ */
705
+ proto.gateway.common.v1.AttributeArray.prototype.serializeBinary = function() {
706
+ var writer = new jspb.BinaryWriter();
707
+ proto.gateway.common.v1.AttributeArray.serializeBinaryToWriter(this, writer);
708
+ return writer.getResultBuffer();
709
+ };
710
+
711
+
712
+ /**
713
+ * Serializes the given message to binary data (in protobuf wire
714
+ * format), writing to the given BinaryWriter.
715
+ * @param {!proto.gateway.common.v1.AttributeArray} message
716
+ * @param {!jspb.BinaryWriter} writer
717
+ * @suppress {unusedLocalVariables} f is only used for nested messages
718
+ */
719
+ proto.gateway.common.v1.AttributeArray.serializeBinaryToWriter = function(message, writer) {
720
+ var f = undefined;
721
+ f = message.getValuesList();
722
+ if (f.length > 0) {
723
+ writer.writeRepeatedMessage(
724
+ 1,
725
+ f,
726
+ proto.gateway.common.v1.AttributeValue.serializeBinaryToWriter
727
+ );
728
+ }
729
+ };
730
+
731
+
732
+ /**
733
+ * repeated AttributeValue values = 1;
734
+ * @return {!Array<!proto.gateway.common.v1.AttributeValue>}
735
+ */
736
+ proto.gateway.common.v1.AttributeArray.prototype.getValuesList = function() {
737
+ return /** @type{!Array<!proto.gateway.common.v1.AttributeValue>} */ (
738
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.common.v1.AttributeValue, 1));
739
+ };
740
+
741
+
742
+ /**
743
+ * @param {!Array<!proto.gateway.common.v1.AttributeValue>} value
744
+ * @return {!proto.gateway.common.v1.AttributeArray} returns this
745
+ */
746
+ proto.gateway.common.v1.AttributeArray.prototype.setValuesList = function(value) {
747
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
748
+ };
749
+
750
+
751
+ /**
752
+ * @param {!proto.gateway.common.v1.AttributeValue=} opt_value
753
+ * @param {number=} opt_index
754
+ * @return {!proto.gateway.common.v1.AttributeValue}
755
+ */
756
+ proto.gateway.common.v1.AttributeArray.prototype.addValues = function(opt_value, opt_index) {
757
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.common.v1.AttributeValue, opt_index);
758
+ };
759
+
760
+
761
+ /**
762
+ * Clears the list making it empty but non-null.
763
+ * @return {!proto.gateway.common.v1.AttributeArray} returns this
764
+ */
765
+ proto.gateway.common.v1.AttributeArray.prototype.clearValuesList = function() {
766
+ return this.setValuesList([]);
767
+ };
768
+
769
+
770
+
771
+
772
+
773
+ if (jspb.Message.GENERATE_TO_OBJECT) {
774
+ /**
775
+ * Creates an object representation of this proto.
776
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
777
+ * Optional fields that are not set will be set to undefined.
778
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
779
+ * For the list of reserved names please see:
780
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
781
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
782
+ * JSPB instance for transitional soy proto support:
783
+ * http://goto/soy-param-migration
784
+ * @return {!Object}
785
+ */
786
+ proto.gateway.common.v1.AttributeKeyValue.prototype.toObject = function(opt_includeInstance) {
787
+ return proto.gateway.common.v1.AttributeKeyValue.toObject(opt_includeInstance, this);
788
+ };
789
+
790
+
791
+ /**
792
+ * Static version of the {@see toObject} method.
793
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
794
+ * the JSPB instance for transitional soy proto support:
795
+ * http://goto/soy-param-migration
796
+ * @param {!proto.gateway.common.v1.AttributeKeyValue} msg The msg instance to transform.
797
+ * @return {!Object}
798
+ * @suppress {unusedLocalVariables} f is only used for nested messages
799
+ */
800
+ proto.gateway.common.v1.AttributeKeyValue.toObject = function(includeInstance, msg) {
801
+ var f, obj = {
802
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
803
+ value: (f = msg.getValue()) && proto.gateway.common.v1.AttributeValue.toObject(includeInstance, f)
804
+ };
805
+
806
+ if (includeInstance) {
807
+ obj.$jspbMessageInstance = msg;
808
+ }
809
+ return obj;
810
+ };
811
+ }
812
+
813
+
814
+ /**
815
+ * Deserializes binary data (in protobuf wire format).
816
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
817
+ * @return {!proto.gateway.common.v1.AttributeKeyValue}
818
+ */
819
+ proto.gateway.common.v1.AttributeKeyValue.deserializeBinary = function(bytes) {
820
+ var reader = new jspb.BinaryReader(bytes);
821
+ var msg = new proto.gateway.common.v1.AttributeKeyValue;
822
+ return proto.gateway.common.v1.AttributeKeyValue.deserializeBinaryFromReader(msg, reader);
823
+ };
824
+
825
+
826
+ /**
827
+ * Deserializes binary data (in protobuf wire format) from the
828
+ * given reader into the given message object.
829
+ * @param {!proto.gateway.common.v1.AttributeKeyValue} msg The message object to deserialize into.
830
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
831
+ * @return {!proto.gateway.common.v1.AttributeKeyValue}
832
+ */
833
+ proto.gateway.common.v1.AttributeKeyValue.deserializeBinaryFromReader = function(msg, reader) {
834
+ while (reader.nextField()) {
835
+ if (reader.isEndGroup()) {
836
+ break;
837
+ }
838
+ var field = reader.getFieldNumber();
839
+ switch (field) {
840
+ case 1:
841
+ var value = /** @type {string} */ (reader.readString());
842
+ msg.setKey(value);
843
+ break;
844
+ case 2:
845
+ var value = new proto.gateway.common.v1.AttributeValue;
846
+ reader.readMessage(value,proto.gateway.common.v1.AttributeValue.deserializeBinaryFromReader);
847
+ msg.setValue(value);
848
+ break;
849
+ default:
850
+ reader.skipField();
851
+ break;
852
+ }
853
+ }
854
+ return msg;
855
+ };
856
+
857
+
858
+ /**
859
+ * Serializes the message to binary data (in protobuf wire format).
860
+ * @return {!Uint8Array}
861
+ */
862
+ proto.gateway.common.v1.AttributeKeyValue.prototype.serializeBinary = function() {
863
+ var writer = new jspb.BinaryWriter();
864
+ proto.gateway.common.v1.AttributeKeyValue.serializeBinaryToWriter(this, writer);
865
+ return writer.getResultBuffer();
866
+ };
867
+
868
+
869
+ /**
870
+ * Serializes the given message to binary data (in protobuf wire
871
+ * format), writing to the given BinaryWriter.
872
+ * @param {!proto.gateway.common.v1.AttributeKeyValue} message
873
+ * @param {!jspb.BinaryWriter} writer
874
+ * @suppress {unusedLocalVariables} f is only used for nested messages
875
+ */
876
+ proto.gateway.common.v1.AttributeKeyValue.serializeBinaryToWriter = function(message, writer) {
877
+ var f = undefined;
878
+ f = message.getKey();
879
+ if (f.length > 0) {
880
+ writer.writeString(
881
+ 1,
882
+ f
883
+ );
884
+ }
885
+ f = message.getValue();
886
+ if (f != null) {
887
+ writer.writeMessage(
888
+ 2,
889
+ f,
890
+ proto.gateway.common.v1.AttributeValue.serializeBinaryToWriter
891
+ );
892
+ }
893
+ };
894
+
895
+
896
+ /**
897
+ * optional string key = 1;
898
+ * @return {string}
899
+ */
900
+ proto.gateway.common.v1.AttributeKeyValue.prototype.getKey = function() {
901
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
902
+ };
903
+
904
+
905
+ /**
906
+ * @param {string} value
907
+ * @return {!proto.gateway.common.v1.AttributeKeyValue} returns this
908
+ */
909
+ proto.gateway.common.v1.AttributeKeyValue.prototype.setKey = function(value) {
910
+ return jspb.Message.setProto3StringField(this, 1, value);
911
+ };
912
+
913
+
914
+ /**
915
+ * optional AttributeValue value = 2;
916
+ * @return {?proto.gateway.common.v1.AttributeValue}
917
+ */
918
+ proto.gateway.common.v1.AttributeKeyValue.prototype.getValue = function() {
919
+ return /** @type{?proto.gateway.common.v1.AttributeValue} */ (
920
+ jspb.Message.getWrapperField(this, proto.gateway.common.v1.AttributeValue, 2));
921
+ };
922
+
923
+
924
+ /**
925
+ * @param {?proto.gateway.common.v1.AttributeValue|undefined} value
926
+ * @return {!proto.gateway.common.v1.AttributeKeyValue} returns this
927
+ */
928
+ proto.gateway.common.v1.AttributeKeyValue.prototype.setValue = function(value) {
929
+ return jspb.Message.setWrapperField(this, 2, value);
930
+ };
931
+
932
+
933
+ /**
934
+ * Clears the message field making it undefined.
935
+ * @return {!proto.gateway.common.v1.AttributeKeyValue} returns this
936
+ */
937
+ proto.gateway.common.v1.AttributeKeyValue.prototype.clearValue = function() {
938
+ return this.setValue(undefined);
939
+ };
940
+
941
+
942
+ /**
943
+ * Returns whether this field is set.
944
+ * @return {boolean}
945
+ */
946
+ proto.gateway.common.v1.AttributeKeyValue.prototype.hasValue = function() {
947
+ return jspb.Message.getField(this, 2) != null;
948
+ };
949
+
950
+
951
+
952
+ /**
953
+ * List of repeated fields within this message type.
954
+ * @private {!Array<number>}
955
+ * @const
956
+ */
957
+ proto.gateway.common.v1.AttributeKeyValueList.repeatedFields_ = [1];
958
+
959
+
960
+
961
+ if (jspb.Message.GENERATE_TO_OBJECT) {
962
+ /**
963
+ * Creates an object representation of this proto.
964
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
965
+ * Optional fields that are not set will be set to undefined.
966
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
967
+ * For the list of reserved names please see:
968
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
969
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
970
+ * JSPB instance for transitional soy proto support:
971
+ * http://goto/soy-param-migration
972
+ * @return {!Object}
973
+ */
974
+ proto.gateway.common.v1.AttributeKeyValueList.prototype.toObject = function(opt_includeInstance) {
975
+ return proto.gateway.common.v1.AttributeKeyValueList.toObject(opt_includeInstance, this);
976
+ };
977
+
978
+
979
+ /**
980
+ * Static version of the {@see toObject} method.
981
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
982
+ * the JSPB instance for transitional soy proto support:
983
+ * http://goto/soy-param-migration
984
+ * @param {!proto.gateway.common.v1.AttributeKeyValueList} msg The msg instance to transform.
985
+ * @return {!Object}
986
+ * @suppress {unusedLocalVariables} f is only used for nested messages
987
+ */
988
+ proto.gateway.common.v1.AttributeKeyValueList.toObject = function(includeInstance, msg) {
989
+ var f, obj = {
990
+ valuesList: jspb.Message.toObjectList(msg.getValuesList(),
991
+ proto.gateway.common.v1.AttributeKeyValue.toObject, includeInstance)
992
+ };
993
+
994
+ if (includeInstance) {
995
+ obj.$jspbMessageInstance = msg;
996
+ }
997
+ return obj;
998
+ };
999
+ }
1000
+
1001
+
1002
+ /**
1003
+ * Deserializes binary data (in protobuf wire format).
1004
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1005
+ * @return {!proto.gateway.common.v1.AttributeKeyValueList}
1006
+ */
1007
+ proto.gateway.common.v1.AttributeKeyValueList.deserializeBinary = function(bytes) {
1008
+ var reader = new jspb.BinaryReader(bytes);
1009
+ var msg = new proto.gateway.common.v1.AttributeKeyValueList;
1010
+ return proto.gateway.common.v1.AttributeKeyValueList.deserializeBinaryFromReader(msg, reader);
1011
+ };
1012
+
1013
+
1014
+ /**
1015
+ * Deserializes binary data (in protobuf wire format) from the
1016
+ * given reader into the given message object.
1017
+ * @param {!proto.gateway.common.v1.AttributeKeyValueList} msg The message object to deserialize into.
1018
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1019
+ * @return {!proto.gateway.common.v1.AttributeKeyValueList}
1020
+ */
1021
+ proto.gateway.common.v1.AttributeKeyValueList.deserializeBinaryFromReader = function(msg, reader) {
1022
+ while (reader.nextField()) {
1023
+ if (reader.isEndGroup()) {
1024
+ break;
1025
+ }
1026
+ var field = reader.getFieldNumber();
1027
+ switch (field) {
1028
+ case 1:
1029
+ var value = new proto.gateway.common.v1.AttributeKeyValue;
1030
+ reader.readMessage(value,proto.gateway.common.v1.AttributeKeyValue.deserializeBinaryFromReader);
1031
+ msg.addValues(value);
1032
+ break;
1033
+ default:
1034
+ reader.skipField();
1035
+ break;
1036
+ }
1037
+ }
1038
+ return msg;
1039
+ };
1040
+
1041
+
1042
+ /**
1043
+ * Serializes the message to binary data (in protobuf wire format).
1044
+ * @return {!Uint8Array}
1045
+ */
1046
+ proto.gateway.common.v1.AttributeKeyValueList.prototype.serializeBinary = function() {
1047
+ var writer = new jspb.BinaryWriter();
1048
+ proto.gateway.common.v1.AttributeKeyValueList.serializeBinaryToWriter(this, writer);
1049
+ return writer.getResultBuffer();
1050
+ };
1051
+
1052
+
1053
+ /**
1054
+ * Serializes the given message to binary data (in protobuf wire
1055
+ * format), writing to the given BinaryWriter.
1056
+ * @param {!proto.gateway.common.v1.AttributeKeyValueList} message
1057
+ * @param {!jspb.BinaryWriter} writer
1058
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1059
+ */
1060
+ proto.gateway.common.v1.AttributeKeyValueList.serializeBinaryToWriter = function(message, writer) {
1061
+ var f = undefined;
1062
+ f = message.getValuesList();
1063
+ if (f.length > 0) {
1064
+ writer.writeRepeatedMessage(
1065
+ 1,
1066
+ f,
1067
+ proto.gateway.common.v1.AttributeKeyValue.serializeBinaryToWriter
1068
+ );
1069
+ }
1070
+ };
1071
+
1072
+
1073
+ /**
1074
+ * repeated AttributeKeyValue values = 1;
1075
+ * @return {!Array<!proto.gateway.common.v1.AttributeKeyValue>}
1076
+ */
1077
+ proto.gateway.common.v1.AttributeKeyValueList.prototype.getValuesList = function() {
1078
+ return /** @type{!Array<!proto.gateway.common.v1.AttributeKeyValue>} */ (
1079
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.common.v1.AttributeKeyValue, 1));
1080
+ };
1081
+
1082
+
1083
+ /**
1084
+ * @param {!Array<!proto.gateway.common.v1.AttributeKeyValue>} value
1085
+ * @return {!proto.gateway.common.v1.AttributeKeyValueList} returns this
1086
+ */
1087
+ proto.gateway.common.v1.AttributeKeyValueList.prototype.setValuesList = function(value) {
1088
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1089
+ };
1090
+
1091
+
1092
+ /**
1093
+ * @param {!proto.gateway.common.v1.AttributeKeyValue=} opt_value
1094
+ * @param {number=} opt_index
1095
+ * @return {!proto.gateway.common.v1.AttributeKeyValue}
1096
+ */
1097
+ proto.gateway.common.v1.AttributeKeyValueList.prototype.addValues = function(opt_value, opt_index) {
1098
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.common.v1.AttributeKeyValue, opt_index);
1099
+ };
1100
+
1101
+
1102
+ /**
1103
+ * Clears the list making it empty but non-null.
1104
+ * @return {!proto.gateway.common.v1.AttributeKeyValueList} returns this
1105
+ */
1106
+ proto.gateway.common.v1.AttributeKeyValueList.prototype.clearValuesList = function() {
1107
+ return this.setValuesList([]);
1108
+ };
1109
+
1110
+
1111
+ goog.object.extend(exports, proto.gateway.common.v1);