@sniipwebmaster/config-service-client-grpcweb-ts 23.17.1722

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,911 @@
1
+ /**
2
+ * @fileoverview
3
+ * @enhanceable
4
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
5
+ * field starts with 'MSG_' and isn't a translatable message.
6
+ * @public
7
+ */
8
+ // GENERATED CODE -- DO NOT EDIT!
9
+
10
+ var jspb = require('google-protobuf');
11
+ var goog = jspb;
12
+ var global = Function('return this')();
13
+
14
+ goog.exportSymbol('proto.google.api.CustomHttpPattern', null, global);
15
+ goog.exportSymbol('proto.google.api.Http', null, global);
16
+ goog.exportSymbol('proto.google.api.HttpRule', null, global);
17
+
18
+ /**
19
+ * Generated by JsPbCodeGenerator.
20
+ * @param {Array=} opt_data Optional initial data array, typically from a
21
+ * server response, or constructed directly in Javascript. The array is used
22
+ * in place and becomes part of the constructed object. It is not cloned.
23
+ * If no data is provided, the constructed object will be empty, but still
24
+ * valid.
25
+ * @extends {jspb.Message}
26
+ * @constructor
27
+ */
28
+ proto.google.api.Http = function(opt_data) {
29
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Http.repeatedFields_, null);
30
+ };
31
+ goog.inherits(proto.google.api.Http, jspb.Message);
32
+ if (goog.DEBUG && !COMPILED) {
33
+ proto.google.api.Http.displayName = 'proto.google.api.Http';
34
+ }
35
+ /**
36
+ * List of repeated fields within this message type.
37
+ * @private {!Array<number>}
38
+ * @const
39
+ */
40
+ proto.google.api.Http.repeatedFields_ = [1];
41
+
42
+
43
+
44
+ if (jspb.Message.GENERATE_TO_OBJECT) {
45
+ /**
46
+ * Creates an object representation of this proto suitable for use in Soy templates.
47
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
48
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49
+ * For the list of reserved names please see:
50
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
51
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
52
+ * for transitional soy proto support: http://goto/soy-param-migration
53
+ * @return {!Object}
54
+ */
55
+ proto.google.api.Http.prototype.toObject = function(opt_includeInstance) {
56
+ return proto.google.api.Http.toObject(opt_includeInstance, this);
57
+ };
58
+
59
+
60
+ /**
61
+ * Static version of the {@see toObject} method.
62
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
63
+ * instance for transitional soy proto support:
64
+ * http://goto/soy-param-migration
65
+ * @param {!proto.google.api.Http} msg The msg instance to transform.
66
+ * @return {!Object}
67
+ * @suppress {unusedLocalVariables} f is only used for nested messages
68
+ */
69
+ proto.google.api.Http.toObject = function(includeInstance, msg) {
70
+ var f, obj = {
71
+ rulesList: jspb.Message.toObjectList(msg.getRulesList(),
72
+ proto.google.api.HttpRule.toObject, includeInstance),
73
+ fullyDecodeReservedExpansion: jspb.Message.getFieldWithDefault(msg, 2, false)
74
+ };
75
+
76
+ if (includeInstance) {
77
+ obj.$jspbMessageInstance = msg;
78
+ }
79
+ return obj;
80
+ };
81
+ }
82
+
83
+
84
+ /**
85
+ * Deserializes binary data (in protobuf wire format).
86
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
87
+ * @return {!proto.google.api.Http}
88
+ */
89
+ proto.google.api.Http.deserializeBinary = function(bytes) {
90
+ var reader = new jspb.BinaryReader(bytes);
91
+ var msg = new proto.google.api.Http;
92
+ return proto.google.api.Http.deserializeBinaryFromReader(msg, reader);
93
+ };
94
+
95
+
96
+ /**
97
+ * Deserializes binary data (in protobuf wire format) from the
98
+ * given reader into the given message object.
99
+ * @param {!proto.google.api.Http} msg The message object to deserialize into.
100
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
101
+ * @return {!proto.google.api.Http}
102
+ */
103
+ proto.google.api.Http.deserializeBinaryFromReader = function(msg, reader) {
104
+ while (reader.nextField()) {
105
+ if (reader.isEndGroup()) {
106
+ break;
107
+ }
108
+ var field = reader.getFieldNumber();
109
+ switch (field) {
110
+ case 1:
111
+ var value = new proto.google.api.HttpRule;
112
+ reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader);
113
+ msg.addRules(value);
114
+ break;
115
+ case 2:
116
+ var value = /** @type {boolean} */ (reader.readBool());
117
+ msg.setFullyDecodeReservedExpansion(value);
118
+ break;
119
+ default:
120
+ reader.skipField();
121
+ break;
122
+ }
123
+ }
124
+ return msg;
125
+ };
126
+
127
+
128
+ /**
129
+ * Serializes the message to binary data (in protobuf wire format).
130
+ * @return {!Uint8Array}
131
+ */
132
+ proto.google.api.Http.prototype.serializeBinary = function() {
133
+ var writer = new jspb.BinaryWriter();
134
+ proto.google.api.Http.serializeBinaryToWriter(this, writer);
135
+ return writer.getResultBuffer();
136
+ };
137
+
138
+
139
+ /**
140
+ * Serializes the given message to binary data (in protobuf wire
141
+ * format), writing to the given BinaryWriter.
142
+ * @param {!proto.google.api.Http} message
143
+ * @param {!jspb.BinaryWriter} writer
144
+ * @suppress {unusedLocalVariables} f is only used for nested messages
145
+ */
146
+ proto.google.api.Http.serializeBinaryToWriter = function(message, writer) {
147
+ var f = undefined;
148
+ f = message.getRulesList();
149
+ if (f.length > 0) {
150
+ writer.writeRepeatedMessage(
151
+ 1,
152
+ f,
153
+ proto.google.api.HttpRule.serializeBinaryToWriter
154
+ );
155
+ }
156
+ f = message.getFullyDecodeReservedExpansion();
157
+ if (f) {
158
+ writer.writeBool(
159
+ 2,
160
+ f
161
+ );
162
+ }
163
+ };
164
+
165
+
166
+ /**
167
+ * repeated HttpRule rules = 1;
168
+ * @return {!Array<!proto.google.api.HttpRule>}
169
+ */
170
+ proto.google.api.Http.prototype.getRulesList = function() {
171
+ return /** @type{!Array<!proto.google.api.HttpRule>} */ (
172
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 1));
173
+ };
174
+
175
+
176
+ /** @param {!Array<!proto.google.api.HttpRule>} value */
177
+ proto.google.api.Http.prototype.setRulesList = function(value) {
178
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
179
+ };
180
+
181
+
182
+ /**
183
+ * @param {!proto.google.api.HttpRule=} opt_value
184
+ * @param {number=} opt_index
185
+ * @return {!proto.google.api.HttpRule}
186
+ */
187
+ proto.google.api.Http.prototype.addRules = function(opt_value, opt_index) {
188
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.HttpRule, opt_index);
189
+ };
190
+
191
+
192
+ proto.google.api.Http.prototype.clearRulesList = function() {
193
+ this.setRulesList([]);
194
+ };
195
+
196
+
197
+ /**
198
+ * optional bool fully_decode_reserved_expansion = 2;
199
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
200
+ * You should avoid comparisons like {@code val === true/false} in those cases.
201
+ * @return {boolean}
202
+ */
203
+ proto.google.api.Http.prototype.getFullyDecodeReservedExpansion = function() {
204
+ return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false));
205
+ };
206
+
207
+
208
+ /** @param {boolean} value */
209
+ proto.google.api.Http.prototype.setFullyDecodeReservedExpansion = function(value) {
210
+ jspb.Message.setProto3BooleanField(this, 2, value);
211
+ };
212
+
213
+
214
+
215
+ /**
216
+ * Generated by JsPbCodeGenerator.
217
+ * @param {Array=} opt_data Optional initial data array, typically from a
218
+ * server response, or constructed directly in Javascript. The array is used
219
+ * in place and becomes part of the constructed object. It is not cloned.
220
+ * If no data is provided, the constructed object will be empty, but still
221
+ * valid.
222
+ * @extends {jspb.Message}
223
+ * @constructor
224
+ */
225
+ proto.google.api.HttpRule = function(opt_data) {
226
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.HttpRule.repeatedFields_, proto.google.api.HttpRule.oneofGroups_);
227
+ };
228
+ goog.inherits(proto.google.api.HttpRule, jspb.Message);
229
+ if (goog.DEBUG && !COMPILED) {
230
+ proto.google.api.HttpRule.displayName = 'proto.google.api.HttpRule';
231
+ }
232
+ /**
233
+ * List of repeated fields within this message type.
234
+ * @private {!Array<number>}
235
+ * @const
236
+ */
237
+ proto.google.api.HttpRule.repeatedFields_ = [11];
238
+
239
+ /**
240
+ * Oneof group definitions for this message. Each group defines the field
241
+ * numbers belonging to that group. When of these fields' value is set, all
242
+ * other fields in the group are cleared. During deserialization, if multiple
243
+ * fields are encountered for a group, only the last value seen will be kept.
244
+ * @private {!Array<!Array<number>>}
245
+ * @const
246
+ */
247
+ proto.google.api.HttpRule.oneofGroups_ = [[2,3,4,5,6,8]];
248
+
249
+ /**
250
+ * @enum {number}
251
+ */
252
+ proto.google.api.HttpRule.PatternCase = {
253
+ PATTERN_NOT_SET: 0,
254
+ GET: 2,
255
+ PUT: 3,
256
+ POST: 4,
257
+ DELETE: 5,
258
+ PATCH: 6,
259
+ CUSTOM: 8
260
+ };
261
+
262
+ /**
263
+ * @return {proto.google.api.HttpRule.PatternCase}
264
+ */
265
+ proto.google.api.HttpRule.prototype.getPatternCase = function() {
266
+ return /** @type {proto.google.api.HttpRule.PatternCase} */(jspb.Message.computeOneofCase(this, proto.google.api.HttpRule.oneofGroups_[0]));
267
+ };
268
+
269
+
270
+
271
+ if (jspb.Message.GENERATE_TO_OBJECT) {
272
+ /**
273
+ * Creates an object representation of this proto suitable for use in Soy templates.
274
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
275
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
276
+ * For the list of reserved names please see:
277
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
278
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
279
+ * for transitional soy proto support: http://goto/soy-param-migration
280
+ * @return {!Object}
281
+ */
282
+ proto.google.api.HttpRule.prototype.toObject = function(opt_includeInstance) {
283
+ return proto.google.api.HttpRule.toObject(opt_includeInstance, this);
284
+ };
285
+
286
+
287
+ /**
288
+ * Static version of the {@see toObject} method.
289
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
290
+ * instance for transitional soy proto support:
291
+ * http://goto/soy-param-migration
292
+ * @param {!proto.google.api.HttpRule} msg The msg instance to transform.
293
+ * @return {!Object}
294
+ * @suppress {unusedLocalVariables} f is only used for nested messages
295
+ */
296
+ proto.google.api.HttpRule.toObject = function(includeInstance, msg) {
297
+ var f, obj = {
298
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
299
+ get: jspb.Message.getFieldWithDefault(msg, 2, ""),
300
+ put: jspb.Message.getFieldWithDefault(msg, 3, ""),
301
+ post: jspb.Message.getFieldWithDefault(msg, 4, ""),
302
+ pb_delete: jspb.Message.getFieldWithDefault(msg, 5, ""),
303
+ patch: jspb.Message.getFieldWithDefault(msg, 6, ""),
304
+ custom: (f = msg.getCustom()) && proto.google.api.CustomHttpPattern.toObject(includeInstance, f),
305
+ body: jspb.Message.getFieldWithDefault(msg, 7, ""),
306
+ responseBody: jspb.Message.getFieldWithDefault(msg, 12, ""),
307
+ additionalBindingsList: jspb.Message.toObjectList(msg.getAdditionalBindingsList(),
308
+ proto.google.api.HttpRule.toObject, includeInstance)
309
+ };
310
+
311
+ if (includeInstance) {
312
+ obj.$jspbMessageInstance = msg;
313
+ }
314
+ return obj;
315
+ };
316
+ }
317
+
318
+
319
+ /**
320
+ * Deserializes binary data (in protobuf wire format).
321
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
322
+ * @return {!proto.google.api.HttpRule}
323
+ */
324
+ proto.google.api.HttpRule.deserializeBinary = function(bytes) {
325
+ var reader = new jspb.BinaryReader(bytes);
326
+ var msg = new proto.google.api.HttpRule;
327
+ return proto.google.api.HttpRule.deserializeBinaryFromReader(msg, reader);
328
+ };
329
+
330
+
331
+ /**
332
+ * Deserializes binary data (in protobuf wire format) from the
333
+ * given reader into the given message object.
334
+ * @param {!proto.google.api.HttpRule} msg The message object to deserialize into.
335
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
336
+ * @return {!proto.google.api.HttpRule}
337
+ */
338
+ proto.google.api.HttpRule.deserializeBinaryFromReader = function(msg, reader) {
339
+ while (reader.nextField()) {
340
+ if (reader.isEndGroup()) {
341
+ break;
342
+ }
343
+ var field = reader.getFieldNumber();
344
+ switch (field) {
345
+ case 1:
346
+ var value = /** @type {string} */ (reader.readString());
347
+ msg.setSelector(value);
348
+ break;
349
+ case 2:
350
+ var value = /** @type {string} */ (reader.readString());
351
+ msg.setGet(value);
352
+ break;
353
+ case 3:
354
+ var value = /** @type {string} */ (reader.readString());
355
+ msg.setPut(value);
356
+ break;
357
+ case 4:
358
+ var value = /** @type {string} */ (reader.readString());
359
+ msg.setPost(value);
360
+ break;
361
+ case 5:
362
+ var value = /** @type {string} */ (reader.readString());
363
+ msg.setDelete(value);
364
+ break;
365
+ case 6:
366
+ var value = /** @type {string} */ (reader.readString());
367
+ msg.setPatch(value);
368
+ break;
369
+ case 8:
370
+ var value = new proto.google.api.CustomHttpPattern;
371
+ reader.readMessage(value,proto.google.api.CustomHttpPattern.deserializeBinaryFromReader);
372
+ msg.setCustom(value);
373
+ break;
374
+ case 7:
375
+ var value = /** @type {string} */ (reader.readString());
376
+ msg.setBody(value);
377
+ break;
378
+ case 12:
379
+ var value = /** @type {string} */ (reader.readString());
380
+ msg.setResponseBody(value);
381
+ break;
382
+ case 11:
383
+ var value = new proto.google.api.HttpRule;
384
+ reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader);
385
+ msg.addAdditionalBindings(value);
386
+ break;
387
+ default:
388
+ reader.skipField();
389
+ break;
390
+ }
391
+ }
392
+ return msg;
393
+ };
394
+
395
+
396
+ /**
397
+ * Serializes the message to binary data (in protobuf wire format).
398
+ * @return {!Uint8Array}
399
+ */
400
+ proto.google.api.HttpRule.prototype.serializeBinary = function() {
401
+ var writer = new jspb.BinaryWriter();
402
+ proto.google.api.HttpRule.serializeBinaryToWriter(this, writer);
403
+ return writer.getResultBuffer();
404
+ };
405
+
406
+
407
+ /**
408
+ * Serializes the given message to binary data (in protobuf wire
409
+ * format), writing to the given BinaryWriter.
410
+ * @param {!proto.google.api.HttpRule} message
411
+ * @param {!jspb.BinaryWriter} writer
412
+ * @suppress {unusedLocalVariables} f is only used for nested messages
413
+ */
414
+ proto.google.api.HttpRule.serializeBinaryToWriter = function(message, writer) {
415
+ var f = undefined;
416
+ f = message.getSelector();
417
+ if (f.length > 0) {
418
+ writer.writeString(
419
+ 1,
420
+ f
421
+ );
422
+ }
423
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
424
+ if (f != null) {
425
+ writer.writeString(
426
+ 2,
427
+ f
428
+ );
429
+ }
430
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
431
+ if (f != null) {
432
+ writer.writeString(
433
+ 3,
434
+ f
435
+ );
436
+ }
437
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
438
+ if (f != null) {
439
+ writer.writeString(
440
+ 4,
441
+ f
442
+ );
443
+ }
444
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
445
+ if (f != null) {
446
+ writer.writeString(
447
+ 5,
448
+ f
449
+ );
450
+ }
451
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
452
+ if (f != null) {
453
+ writer.writeString(
454
+ 6,
455
+ f
456
+ );
457
+ }
458
+ f = message.getCustom();
459
+ if (f != null) {
460
+ writer.writeMessage(
461
+ 8,
462
+ f,
463
+ proto.google.api.CustomHttpPattern.serializeBinaryToWriter
464
+ );
465
+ }
466
+ f = message.getBody();
467
+ if (f.length > 0) {
468
+ writer.writeString(
469
+ 7,
470
+ f
471
+ );
472
+ }
473
+ f = message.getResponseBody();
474
+ if (f.length > 0) {
475
+ writer.writeString(
476
+ 12,
477
+ f
478
+ );
479
+ }
480
+ f = message.getAdditionalBindingsList();
481
+ if (f.length > 0) {
482
+ writer.writeRepeatedMessage(
483
+ 11,
484
+ f,
485
+ proto.google.api.HttpRule.serializeBinaryToWriter
486
+ );
487
+ }
488
+ };
489
+
490
+
491
+ /**
492
+ * optional string selector = 1;
493
+ * @return {string}
494
+ */
495
+ proto.google.api.HttpRule.prototype.getSelector = function() {
496
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
497
+ };
498
+
499
+
500
+ /** @param {string} value */
501
+ proto.google.api.HttpRule.prototype.setSelector = function(value) {
502
+ jspb.Message.setProto3StringField(this, 1, value);
503
+ };
504
+
505
+
506
+ /**
507
+ * optional string get = 2;
508
+ * @return {string}
509
+ */
510
+ proto.google.api.HttpRule.prototype.getGet = function() {
511
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
512
+ };
513
+
514
+
515
+ /** @param {string} value */
516
+ proto.google.api.HttpRule.prototype.setGet = function(value) {
517
+ jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], value);
518
+ };
519
+
520
+
521
+ proto.google.api.HttpRule.prototype.clearGet = function() {
522
+ jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], undefined);
523
+ };
524
+
525
+
526
+ /**
527
+ * Returns whether this field is set.
528
+ * @return {!boolean}
529
+ */
530
+ proto.google.api.HttpRule.prototype.hasGet = function() {
531
+ return jspb.Message.getField(this, 2) != null;
532
+ };
533
+
534
+
535
+ /**
536
+ * optional string put = 3;
537
+ * @return {string}
538
+ */
539
+ proto.google.api.HttpRule.prototype.getPut = function() {
540
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
541
+ };
542
+
543
+
544
+ /** @param {string} value */
545
+ proto.google.api.HttpRule.prototype.setPut = function(value) {
546
+ jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], value);
547
+ };
548
+
549
+
550
+ proto.google.api.HttpRule.prototype.clearPut = function() {
551
+ jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], undefined);
552
+ };
553
+
554
+
555
+ /**
556
+ * Returns whether this field is set.
557
+ * @return {!boolean}
558
+ */
559
+ proto.google.api.HttpRule.prototype.hasPut = function() {
560
+ return jspb.Message.getField(this, 3) != null;
561
+ };
562
+
563
+
564
+ /**
565
+ * optional string post = 4;
566
+ * @return {string}
567
+ */
568
+ proto.google.api.HttpRule.prototype.getPost = function() {
569
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
570
+ };
571
+
572
+
573
+ /** @param {string} value */
574
+ proto.google.api.HttpRule.prototype.setPost = function(value) {
575
+ jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], value);
576
+ };
577
+
578
+
579
+ proto.google.api.HttpRule.prototype.clearPost = function() {
580
+ jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], undefined);
581
+ };
582
+
583
+
584
+ /**
585
+ * Returns whether this field is set.
586
+ * @return {!boolean}
587
+ */
588
+ proto.google.api.HttpRule.prototype.hasPost = function() {
589
+ return jspb.Message.getField(this, 4) != null;
590
+ };
591
+
592
+
593
+ /**
594
+ * optional string delete = 5;
595
+ * @return {string}
596
+ */
597
+ proto.google.api.HttpRule.prototype.getDelete = function() {
598
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
599
+ };
600
+
601
+
602
+ /** @param {string} value */
603
+ proto.google.api.HttpRule.prototype.setDelete = function(value) {
604
+ jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], value);
605
+ };
606
+
607
+
608
+ proto.google.api.HttpRule.prototype.clearDelete = function() {
609
+ jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], undefined);
610
+ };
611
+
612
+
613
+ /**
614
+ * Returns whether this field is set.
615
+ * @return {!boolean}
616
+ */
617
+ proto.google.api.HttpRule.prototype.hasDelete = function() {
618
+ return jspb.Message.getField(this, 5) != null;
619
+ };
620
+
621
+
622
+ /**
623
+ * optional string patch = 6;
624
+ * @return {string}
625
+ */
626
+ proto.google.api.HttpRule.prototype.getPatch = function() {
627
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
628
+ };
629
+
630
+
631
+ /** @param {string} value */
632
+ proto.google.api.HttpRule.prototype.setPatch = function(value) {
633
+ jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], value);
634
+ };
635
+
636
+
637
+ proto.google.api.HttpRule.prototype.clearPatch = function() {
638
+ jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], undefined);
639
+ };
640
+
641
+
642
+ /**
643
+ * Returns whether this field is set.
644
+ * @return {!boolean}
645
+ */
646
+ proto.google.api.HttpRule.prototype.hasPatch = function() {
647
+ return jspb.Message.getField(this, 6) != null;
648
+ };
649
+
650
+
651
+ /**
652
+ * optional CustomHttpPattern custom = 8;
653
+ * @return {?proto.google.api.CustomHttpPattern}
654
+ */
655
+ proto.google.api.HttpRule.prototype.getCustom = function() {
656
+ return /** @type{?proto.google.api.CustomHttpPattern} */ (
657
+ jspb.Message.getWrapperField(this, proto.google.api.CustomHttpPattern, 8));
658
+ };
659
+
660
+
661
+ /** @param {?proto.google.api.CustomHttpPattern|undefined} value */
662
+ proto.google.api.HttpRule.prototype.setCustom = function(value) {
663
+ jspb.Message.setOneofWrapperField(this, 8, proto.google.api.HttpRule.oneofGroups_[0], value);
664
+ };
665
+
666
+
667
+ proto.google.api.HttpRule.prototype.clearCustom = function() {
668
+ this.setCustom(undefined);
669
+ };
670
+
671
+
672
+ /**
673
+ * Returns whether this field is set.
674
+ * @return {!boolean}
675
+ */
676
+ proto.google.api.HttpRule.prototype.hasCustom = function() {
677
+ return jspb.Message.getField(this, 8) != null;
678
+ };
679
+
680
+
681
+ /**
682
+ * optional string body = 7;
683
+ * @return {string}
684
+ */
685
+ proto.google.api.HttpRule.prototype.getBody = function() {
686
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
687
+ };
688
+
689
+
690
+ /** @param {string} value */
691
+ proto.google.api.HttpRule.prototype.setBody = function(value) {
692
+ jspb.Message.setProto3StringField(this, 7, value);
693
+ };
694
+
695
+
696
+ /**
697
+ * optional string response_body = 12;
698
+ * @return {string}
699
+ */
700
+ proto.google.api.HttpRule.prototype.getResponseBody = function() {
701
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
702
+ };
703
+
704
+
705
+ /** @param {string} value */
706
+ proto.google.api.HttpRule.prototype.setResponseBody = function(value) {
707
+ jspb.Message.setProto3StringField(this, 12, value);
708
+ };
709
+
710
+
711
+ /**
712
+ * repeated HttpRule additional_bindings = 11;
713
+ * @return {!Array<!proto.google.api.HttpRule>}
714
+ */
715
+ proto.google.api.HttpRule.prototype.getAdditionalBindingsList = function() {
716
+ return /** @type{!Array<!proto.google.api.HttpRule>} */ (
717
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 11));
718
+ };
719
+
720
+
721
+ /** @param {!Array<!proto.google.api.HttpRule>} value */
722
+ proto.google.api.HttpRule.prototype.setAdditionalBindingsList = function(value) {
723
+ jspb.Message.setRepeatedWrapperField(this, 11, value);
724
+ };
725
+
726
+
727
+ /**
728
+ * @param {!proto.google.api.HttpRule=} opt_value
729
+ * @param {number=} opt_index
730
+ * @return {!proto.google.api.HttpRule}
731
+ */
732
+ proto.google.api.HttpRule.prototype.addAdditionalBindings = function(opt_value, opt_index) {
733
+ return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.google.api.HttpRule, opt_index);
734
+ };
735
+
736
+
737
+ proto.google.api.HttpRule.prototype.clearAdditionalBindingsList = function() {
738
+ this.setAdditionalBindingsList([]);
739
+ };
740
+
741
+
742
+
743
+ /**
744
+ * Generated by JsPbCodeGenerator.
745
+ * @param {Array=} opt_data Optional initial data array, typically from a
746
+ * server response, or constructed directly in Javascript. The array is used
747
+ * in place and becomes part of the constructed object. It is not cloned.
748
+ * If no data is provided, the constructed object will be empty, but still
749
+ * valid.
750
+ * @extends {jspb.Message}
751
+ * @constructor
752
+ */
753
+ proto.google.api.CustomHttpPattern = function(opt_data) {
754
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
755
+ };
756
+ goog.inherits(proto.google.api.CustomHttpPattern, jspb.Message);
757
+ if (goog.DEBUG && !COMPILED) {
758
+ proto.google.api.CustomHttpPattern.displayName = 'proto.google.api.CustomHttpPattern';
759
+ }
760
+
761
+
762
+ if (jspb.Message.GENERATE_TO_OBJECT) {
763
+ /**
764
+ * Creates an object representation of this proto suitable for use in Soy templates.
765
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
766
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
767
+ * For the list of reserved names please see:
768
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
769
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
770
+ * for transitional soy proto support: http://goto/soy-param-migration
771
+ * @return {!Object}
772
+ */
773
+ proto.google.api.CustomHttpPattern.prototype.toObject = function(opt_includeInstance) {
774
+ return proto.google.api.CustomHttpPattern.toObject(opt_includeInstance, this);
775
+ };
776
+
777
+
778
+ /**
779
+ * Static version of the {@see toObject} method.
780
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
781
+ * instance for transitional soy proto support:
782
+ * http://goto/soy-param-migration
783
+ * @param {!proto.google.api.CustomHttpPattern} msg The msg instance to transform.
784
+ * @return {!Object}
785
+ * @suppress {unusedLocalVariables} f is only used for nested messages
786
+ */
787
+ proto.google.api.CustomHttpPattern.toObject = function(includeInstance, msg) {
788
+ var f, obj = {
789
+ kind: jspb.Message.getFieldWithDefault(msg, 1, ""),
790
+ path: jspb.Message.getFieldWithDefault(msg, 2, "")
791
+ };
792
+
793
+ if (includeInstance) {
794
+ obj.$jspbMessageInstance = msg;
795
+ }
796
+ return obj;
797
+ };
798
+ }
799
+
800
+
801
+ /**
802
+ * Deserializes binary data (in protobuf wire format).
803
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
804
+ * @return {!proto.google.api.CustomHttpPattern}
805
+ */
806
+ proto.google.api.CustomHttpPattern.deserializeBinary = function(bytes) {
807
+ var reader = new jspb.BinaryReader(bytes);
808
+ var msg = new proto.google.api.CustomHttpPattern;
809
+ return proto.google.api.CustomHttpPattern.deserializeBinaryFromReader(msg, reader);
810
+ };
811
+
812
+
813
+ /**
814
+ * Deserializes binary data (in protobuf wire format) from the
815
+ * given reader into the given message object.
816
+ * @param {!proto.google.api.CustomHttpPattern} msg The message object to deserialize into.
817
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
818
+ * @return {!proto.google.api.CustomHttpPattern}
819
+ */
820
+ proto.google.api.CustomHttpPattern.deserializeBinaryFromReader = function(msg, reader) {
821
+ while (reader.nextField()) {
822
+ if (reader.isEndGroup()) {
823
+ break;
824
+ }
825
+ var field = reader.getFieldNumber();
826
+ switch (field) {
827
+ case 1:
828
+ var value = /** @type {string} */ (reader.readString());
829
+ msg.setKind(value);
830
+ break;
831
+ case 2:
832
+ var value = /** @type {string} */ (reader.readString());
833
+ msg.setPath(value);
834
+ break;
835
+ default:
836
+ reader.skipField();
837
+ break;
838
+ }
839
+ }
840
+ return msg;
841
+ };
842
+
843
+
844
+ /**
845
+ * Serializes the message to binary data (in protobuf wire format).
846
+ * @return {!Uint8Array}
847
+ */
848
+ proto.google.api.CustomHttpPattern.prototype.serializeBinary = function() {
849
+ var writer = new jspb.BinaryWriter();
850
+ proto.google.api.CustomHttpPattern.serializeBinaryToWriter(this, writer);
851
+ return writer.getResultBuffer();
852
+ };
853
+
854
+
855
+ /**
856
+ * Serializes the given message to binary data (in protobuf wire
857
+ * format), writing to the given BinaryWriter.
858
+ * @param {!proto.google.api.CustomHttpPattern} message
859
+ * @param {!jspb.BinaryWriter} writer
860
+ * @suppress {unusedLocalVariables} f is only used for nested messages
861
+ */
862
+ proto.google.api.CustomHttpPattern.serializeBinaryToWriter = function(message, writer) {
863
+ var f = undefined;
864
+ f = message.getKind();
865
+ if (f.length > 0) {
866
+ writer.writeString(
867
+ 1,
868
+ f
869
+ );
870
+ }
871
+ f = message.getPath();
872
+ if (f.length > 0) {
873
+ writer.writeString(
874
+ 2,
875
+ f
876
+ );
877
+ }
878
+ };
879
+
880
+
881
+ /**
882
+ * optional string kind = 1;
883
+ * @return {string}
884
+ */
885
+ proto.google.api.CustomHttpPattern.prototype.getKind = function() {
886
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
887
+ };
888
+
889
+
890
+ /** @param {string} value */
891
+ proto.google.api.CustomHttpPattern.prototype.setKind = function(value) {
892
+ jspb.Message.setProto3StringField(this, 1, value);
893
+ };
894
+
895
+
896
+ /**
897
+ * optional string path = 2;
898
+ * @return {string}
899
+ */
900
+ proto.google.api.CustomHttpPattern.prototype.getPath = function() {
901
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
902
+ };
903
+
904
+
905
+ /** @param {string} value */
906
+ proto.google.api.CustomHttpPattern.prototype.setPath = function(value) {
907
+ jspb.Message.setProto3StringField(this, 2, value);
908
+ };
909
+
910
+
911
+ goog.object.extend(exports, proto.google.api);