@superblocksteam/sabs-types-js 0.0.1-demo-databricks-deploy

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