clarifai-web-grpc 1.1.4 → 1.1.5

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