clarifai-web-grpc 1.1.6 → 2.0.1

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 (62) hide show
  1. package/.github/workflows/ci.yml +0 -6
  2. package/CHANGELOG.md +2 -2
  3. package/{lib/google → google}/api/annotations_grpc_pb.js +0 -0
  4. package/{src/google → google}/api/annotations_pb.js +0 -0
  5. package/{lib/google → google}/api/http_grpc_pb.js +0 -0
  6. package/{src/google → google}/api/http_pb.js +0 -0
  7. package/lib/google/api/annotations_pb.js +4 -19
  8. package/lib/google/api/http_pb.js +414 -606
  9. package/lib/proto/clarifai/api/resources_pb.d.ts +1 -5052
  10. package/lib/proto/clarifai/api/resources_pb.js +17880 -26127
  11. package/lib/proto/clarifai/api/service_pb.d.ts +1 -5582
  12. package/lib/proto/clarifai/api/service_pb.js +20941 -30047
  13. package/lib/proto/clarifai/api/status/status_code_pb.d.ts +1 -296
  14. package/lib/proto/clarifai/api/status/status_code_pb.js +293 -295
  15. package/lib/proto/clarifai/api/status/status_pb.d.ts +1 -73
  16. package/lib/proto/clarifai/api/status/status_pb.js +250 -357
  17. package/lib/proto/clarifai/api/utils/extensions_pb.d.ts +1 -4
  18. package/lib/proto/clarifai/api/utils/extensions_pb.js +10 -53
  19. package/lib/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -81
  20. package/lib/proto/clarifai/api/utils/test_proto_pb.js +266 -385
  21. package/lib/proto/clarifai/auth/scope/scope_pb.d.ts +1 -92
  22. package/lib/proto/clarifai/auth/scope/scope_pb.js +163 -232
  23. package/lib/proto/clarifai/auth/types/types_pb.d.ts +1 -10
  24. package/lib/proto/clarifai/auth/types/types_pb.js +7 -9
  25. package/lib/proto/clarifai/auth/util/extension_pb.d.ts +1 -6
  26. package/lib/proto/clarifai/auth/util/extension_pb.js +16 -87
  27. package/package.json +6 -30
  28. package/{src/proto → proto}/clarifai/api/resources_pb.d.ts +0 -0
  29. package/{src/proto → proto}/clarifai/api/resources_pb.js +0 -0
  30. package/{lib/proto → proto}/clarifai/api/serviceServiceClientPb.ts +0 -0
  31. package/{src/proto → proto}/clarifai/api/service_pb.d.ts +0 -0
  32. package/{src/proto → proto}/clarifai/api/service_pb.js +0 -0
  33. package/{src/proto → proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
  34. package/{src/proto → proto}/clarifai/api/status/status_code_pb.js +0 -0
  35. package/{src/proto → proto}/clarifai/api/status/status_pb.d.ts +0 -0
  36. package/{src/proto → proto}/clarifai/api/status/status_pb.js +0 -0
  37. package/{src/proto → proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
  38. package/{src/proto → proto}/clarifai/api/utils/extensions_pb.js +0 -0
  39. package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
  40. package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.js +0 -0
  41. package/{src/proto → proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
  42. package/{src/proto → proto}/clarifai/auth/scope/scope_pb.js +0 -0
  43. package/{src/proto → proto}/clarifai/auth/types/types_pb.d.ts +0 -0
  44. package/{src/proto → proto}/clarifai/auth/types/types_pb.js +0 -0
  45. package/{src/proto → proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
  46. package/{src/proto → proto}/clarifai/auth/util/extension_pb.js +0 -0
  47. package/tsconfig.json +3 -9
  48. package/.husky/pre-commit +0 -4
  49. package/.mocharc.yml +0 -5
  50. package/lib/google/api/annotations_grpc_pb.d.ts +0 -0
  51. package/lib/google/api/http_grpc_pb.d.ts +0 -0
  52. package/lib/index.d.ts +0 -5
  53. package/lib/index.js +0 -7
  54. package/lib/resources.d.ts +0 -12
  55. package/lib/resources.js +0 -11
  56. package/lib/service.d.ts +0 -1
  57. package/lib/service.js +0 -1
  58. package/src/google/api/annotations_grpc_pb.js +0 -1
  59. package/src/google/api/http_grpc_pb.js +0 -1
  60. package/src/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
  61. package/tests/basic.test.ts +0 -15
  62. package/tests/helpers.test.ts +0 -31
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  // source: proto/clarifai/api/status/status.proto
2
3
  /**
3
4
  * @fileoverview
@@ -7,11 +8,9 @@
7
8
  * @public
8
9
  */
9
10
  // GENERATED CODE -- DO NOT EDIT!
10
-
11
11
  var jspb = require('google-protobuf');
12
12
  var goog = jspb;
13
13
  var global = Function('return this')();
14
-
15
14
  var proto_clarifai_auth_util_extension_pb = require('../../../../proto/clarifai/auth/util/extension_pb.js');
16
15
  goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
17
16
  var proto_clarifai_api_status_status_code_pb = require('../../../../proto/clarifai/api/status/status_code_pb.js');
@@ -28,16 +27,16 @@ goog.exportSymbol('proto.clarifai.api.status.Status', null, global);
28
27
  * @extends {jspb.Message}
29
28
  * @constructor
30
29
  */
31
- proto.clarifai.api.status.Status = function(opt_data) {
32
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.status.Status.repeatedFields_, null);
30
+ proto.clarifai.api.status.Status = function (opt_data) {
31
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.status.Status.repeatedFields_, null);
33
32
  };
34
33
  goog.inherits(proto.clarifai.api.status.Status, jspb.Message);
35
34
  if (goog.DEBUG && !COMPILED) {
36
- /**
37
- * @public
38
- * @override
39
- */
40
- proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
35
+ /**
36
+ * @public
37
+ * @override
38
+ */
39
+ proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
41
40
  }
42
41
  /**
43
42
  * Generated by JsPbCodeGenerator.
@@ -49,86 +48,75 @@ if (goog.DEBUG && !COMPILED) {
49
48
  * @extends {jspb.Message}
50
49
  * @constructor
51
50
  */
52
- proto.clarifai.api.status.BaseResponse = function(opt_data) {
53
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
51
+ proto.clarifai.api.status.BaseResponse = function (opt_data) {
52
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
54
53
  };
55
54
  goog.inherits(proto.clarifai.api.status.BaseResponse, jspb.Message);
56
55
  if (goog.DEBUG && !COMPILED) {
57
- /**
58
- * @public
59
- * @override
60
- */
61
- proto.clarifai.api.status.BaseResponse.displayName = 'proto.clarifai.api.status.BaseResponse';
56
+ /**
57
+ * @public
58
+ * @override
59
+ */
60
+ proto.clarifai.api.status.BaseResponse.displayName = 'proto.clarifai.api.status.BaseResponse';
62
61
  }
63
-
64
62
  /**
65
63
  * List of repeated fields within this message type.
66
64
  * @private {!Array<number>}
67
65
  * @const
68
66
  */
69
67
  proto.clarifai.api.status.Status.repeatedFields_ = [4];
70
-
71
-
72
-
73
68
  if (jspb.Message.GENERATE_TO_OBJECT) {
74
- /**
75
- * Creates an object representation of this proto.
76
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
77
- * Optional fields that are not set will be set to undefined.
78
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
79
- * For the list of reserved names please see:
80
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
81
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
82
- * JSPB instance for transitional soy proto support:
83
- * http://goto/soy-param-migration
84
- * @return {!Object}
85
- */
86
- proto.clarifai.api.status.Status.prototype.toObject = function(opt_includeInstance) {
87
- return proto.clarifai.api.status.Status.toObject(opt_includeInstance, this);
88
- };
89
-
90
-
91
- /**
92
- * Static version of the {@see toObject} method.
93
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
94
- * the JSPB instance for transitional soy proto support:
95
- * http://goto/soy-param-migration
96
- * @param {!proto.clarifai.api.status.Status} msg The msg instance to transform.
97
- * @return {!Object}
98
- * @suppress {unusedLocalVariables} f is only used for nested messages
99
- */
100
- proto.clarifai.api.status.Status.toObject = function(includeInstance, msg) {
101
- var f, obj = {
102
- code: jspb.Message.getFieldWithDefault(msg, 1, 0),
103
- description: jspb.Message.getFieldWithDefault(msg, 2, ""),
104
- details: jspb.Message.getFieldWithDefault(msg, 3, ""),
105
- stackTraceList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
106
- percentCompleted: jspb.Message.getFieldWithDefault(msg, 5, 0),
107
- timeRemaining: jspb.Message.getFieldWithDefault(msg, 6, 0),
108
- reqId: jspb.Message.getFieldWithDefault(msg, 7, ""),
109
- internalDetails: jspb.Message.getFieldWithDefault(msg, 8, "")
110
- };
111
-
112
- if (includeInstance) {
113
- obj.$jspbMessageInstance = msg;
114
- }
115
- return obj;
116
- };
69
+ /**
70
+ * Creates an object representation of this proto.
71
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
72
+ * Optional fields that are not set will be set to undefined.
73
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
74
+ * For the list of reserved names please see:
75
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
76
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
77
+ * JSPB instance for transitional soy proto support:
78
+ * http://goto/soy-param-migration
79
+ * @return {!Object}
80
+ */
81
+ proto.clarifai.api.status.Status.prototype.toObject = function (opt_includeInstance) {
82
+ return proto.clarifai.api.status.Status.toObject(opt_includeInstance, this);
83
+ };
84
+ /**
85
+ * Static version of the {@see toObject} method.
86
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
87
+ * the JSPB instance for transitional soy proto support:
88
+ * http://goto/soy-param-migration
89
+ * @param {!proto.clarifai.api.status.Status} msg The msg instance to transform.
90
+ * @return {!Object}
91
+ * @suppress {unusedLocalVariables} f is only used for nested messages
92
+ */
93
+ proto.clarifai.api.status.Status.toObject = function (includeInstance, msg) {
94
+ var f, obj = {
95
+ code: jspb.Message.getFieldWithDefault(msg, 1, 0),
96
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
97
+ details: jspb.Message.getFieldWithDefault(msg, 3, ""),
98
+ stackTraceList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
99
+ percentCompleted: jspb.Message.getFieldWithDefault(msg, 5, 0),
100
+ timeRemaining: jspb.Message.getFieldWithDefault(msg, 6, 0),
101
+ reqId: jspb.Message.getFieldWithDefault(msg, 7, ""),
102
+ internalDetails: jspb.Message.getFieldWithDefault(msg, 8, "")
103
+ };
104
+ if (includeInstance) {
105
+ obj.$jspbMessageInstance = msg;
106
+ }
107
+ return obj;
108
+ };
117
109
  }
118
-
119
-
120
110
  /**
121
111
  * Deserializes binary data (in protobuf wire format).
122
112
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
123
113
  * @return {!proto.clarifai.api.status.Status}
124
114
  */
125
- proto.clarifai.api.status.Status.deserializeBinary = function(bytes) {
126
- var reader = new jspb.BinaryReader(bytes);
127
- var msg = new proto.clarifai.api.status.Status;
128
- return proto.clarifai.api.status.Status.deserializeBinaryFromReader(msg, reader);
115
+ proto.clarifai.api.status.Status.deserializeBinary = function (bytes) {
116
+ var reader = new jspb.BinaryReader(bytes);
117
+ var msg = new proto.clarifai.api.status.Status;
118
+ return proto.clarifai.api.status.Status.deserializeBinaryFromReader(msg, reader);
129
119
  };
130
-
131
-
132
120
  /**
133
121
  * Deserializes binary data (in protobuf wire format) from the
134
122
  * given reader into the given message object.
@@ -136,65 +124,61 @@ proto.clarifai.api.status.Status.deserializeBinary = function(bytes) {
136
124
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
137
125
  * @return {!proto.clarifai.api.status.Status}
138
126
  */
139
- proto.clarifai.api.status.Status.deserializeBinaryFromReader = function(msg, reader) {
140
- while (reader.nextField()) {
141
- if (reader.isEndGroup()) {
142
- break;
143
- }
144
- var field = reader.getFieldNumber();
145
- switch (field) {
146
- case 1:
147
- var value = /** @type {!proto.clarifai.api.status.StatusCode} */ (reader.readEnum());
148
- msg.setCode(value);
149
- break;
150
- case 2:
151
- var value = /** @type {string} */ (reader.readString());
152
- msg.setDescription(value);
153
- break;
154
- case 3:
155
- var value = /** @type {string} */ (reader.readString());
156
- msg.setDetails(value);
157
- break;
158
- case 4:
159
- var value = /** @type {string} */ (reader.readString());
160
- msg.addStackTrace(value);
161
- break;
162
- case 5:
163
- var value = /** @type {number} */ (reader.readUint32());
164
- msg.setPercentCompleted(value);
165
- break;
166
- case 6:
167
- var value = /** @type {number} */ (reader.readUint32());
168
- msg.setTimeRemaining(value);
169
- break;
170
- case 7:
171
- var value = /** @type {string} */ (reader.readString());
172
- msg.setReqId(value);
173
- break;
174
- case 8:
175
- var value = /** @type {string} */ (reader.readString());
176
- msg.setInternalDetails(value);
177
- break;
178
- default:
179
- reader.skipField();
180
- break;
127
+ proto.clarifai.api.status.Status.deserializeBinaryFromReader = function (msg, reader) {
128
+ while (reader.nextField()) {
129
+ if (reader.isEndGroup()) {
130
+ break;
131
+ }
132
+ var field = reader.getFieldNumber();
133
+ switch (field) {
134
+ case 1:
135
+ var value = /** @type {!proto.clarifai.api.status.StatusCode} */ (reader.readEnum());
136
+ msg.setCode(value);
137
+ break;
138
+ case 2:
139
+ var value = /** @type {string} */ (reader.readString());
140
+ msg.setDescription(value);
141
+ break;
142
+ case 3:
143
+ var value = /** @type {string} */ (reader.readString());
144
+ msg.setDetails(value);
145
+ break;
146
+ case 4:
147
+ var value = /** @type {string} */ (reader.readString());
148
+ msg.addStackTrace(value);
149
+ break;
150
+ case 5:
151
+ var value = /** @type {number} */ (reader.readUint32());
152
+ msg.setPercentCompleted(value);
153
+ break;
154
+ case 6:
155
+ var value = /** @type {number} */ (reader.readUint32());
156
+ msg.setTimeRemaining(value);
157
+ break;
158
+ case 7:
159
+ var value = /** @type {string} */ (reader.readString());
160
+ msg.setReqId(value);
161
+ break;
162
+ case 8:
163
+ var value = /** @type {string} */ (reader.readString());
164
+ msg.setInternalDetails(value);
165
+ break;
166
+ default:
167
+ reader.skipField();
168
+ break;
169
+ }
181
170
  }
182
- }
183
- return msg;
171
+ return msg;
184
172
  };
185
-
186
-
187
173
  /**
188
174
  * Serializes the message to binary data (in protobuf wire format).
189
175
  * @return {!Uint8Array}
190
176
  */
191
- proto.clarifai.api.status.Status.prototype.serializeBinary = function() {
192
- var writer = new jspb.BinaryWriter();
193
- proto.clarifai.api.status.Status.serializeBinaryToWriter(this, writer);
194
- return writer.getResultBuffer();
177
+ proto.clarifai.api.status.Status.prototype.serializeBinary = function () {
178
+ var writer = new jspb.BinaryWriter();
179
+ proto.clarifai.api.status.Status.serializeBinaryToWriter(this, writer);
180
+ return writer.getResultBuffer();
195
181
  };
196
-
197
-
198
182
  /**
199
183
  * Serializes the given message to binary data (in protobuf wire
200
184
  * format), writing to the given BinaryWriter.
@@ -202,285 +186,213 @@ proto.clarifai.api.status.Status.prototype.serializeBinary = function() {
202
186
  * @param {!jspb.BinaryWriter} writer
203
187
  * @suppress {unusedLocalVariables} f is only used for nested messages
204
188
  */
205
- proto.clarifai.api.status.Status.serializeBinaryToWriter = function(message, writer) {
206
- var f = undefined;
207
- f = message.getCode();
208
- if (f !== 0.0) {
209
- writer.writeEnum(
210
- 1,
211
- f
212
- );
213
- }
214
- f = message.getDescription();
215
- if (f.length > 0) {
216
- writer.writeString(
217
- 2,
218
- f
219
- );
220
- }
221
- f = message.getDetails();
222
- if (f.length > 0) {
223
- writer.writeString(
224
- 3,
225
- f
226
- );
227
- }
228
- f = message.getStackTraceList();
229
- if (f.length > 0) {
230
- writer.writeRepeatedString(
231
- 4,
232
- f
233
- );
234
- }
235
- f = message.getPercentCompleted();
236
- if (f !== 0) {
237
- writer.writeUint32(
238
- 5,
239
- f
240
- );
241
- }
242
- f = message.getTimeRemaining();
243
- if (f !== 0) {
244
- writer.writeUint32(
245
- 6,
246
- f
247
- );
248
- }
249
- f = message.getReqId();
250
- if (f.length > 0) {
251
- writer.writeString(
252
- 7,
253
- f
254
- );
255
- }
256
- f = message.getInternalDetails();
257
- if (f.length > 0) {
258
- writer.writeString(
259
- 8,
260
- f
261
- );
262
- }
263
- };
264
-
265
-
189
+ proto.clarifai.api.status.Status.serializeBinaryToWriter = function (message, writer) {
190
+ var f = undefined;
191
+ f = message.getCode();
192
+ if (f !== 0.0) {
193
+ writer.writeEnum(1, f);
194
+ }
195
+ f = message.getDescription();
196
+ if (f.length > 0) {
197
+ writer.writeString(2, f);
198
+ }
199
+ f = message.getDetails();
200
+ if (f.length > 0) {
201
+ writer.writeString(3, f);
202
+ }
203
+ f = message.getStackTraceList();
204
+ if (f.length > 0) {
205
+ writer.writeRepeatedString(4, f);
206
+ }
207
+ f = message.getPercentCompleted();
208
+ if (f !== 0) {
209
+ writer.writeUint32(5, f);
210
+ }
211
+ f = message.getTimeRemaining();
212
+ if (f !== 0) {
213
+ writer.writeUint32(6, f);
214
+ }
215
+ f = message.getReqId();
216
+ if (f.length > 0) {
217
+ writer.writeString(7, f);
218
+ }
219
+ f = message.getInternalDetails();
220
+ if (f.length > 0) {
221
+ writer.writeString(8, f);
222
+ }
223
+ };
266
224
  /**
267
225
  * optional StatusCode code = 1;
268
226
  * @return {!proto.clarifai.api.status.StatusCode}
269
227
  */
270
- proto.clarifai.api.status.Status.prototype.getCode = function() {
271
- return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
228
+ proto.clarifai.api.status.Status.prototype.getCode = function () {
229
+ return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
272
230
  };
273
-
274
-
275
231
  /**
276
232
  * @param {!proto.clarifai.api.status.StatusCode} value
277
233
  * @return {!proto.clarifai.api.status.Status} returns this
278
234
  */
279
- proto.clarifai.api.status.Status.prototype.setCode = function(value) {
280
- return jspb.Message.setProto3EnumField(this, 1, value);
235
+ proto.clarifai.api.status.Status.prototype.setCode = function (value) {
236
+ return jspb.Message.setProto3EnumField(this, 1, value);
281
237
  };
282
-
283
-
284
238
  /**
285
239
  * optional string description = 2;
286
240
  * @return {string}
287
241
  */
288
- proto.clarifai.api.status.Status.prototype.getDescription = function() {
289
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
242
+ proto.clarifai.api.status.Status.prototype.getDescription = function () {
243
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
290
244
  };
291
-
292
-
293
245
  /**
294
246
  * @param {string} value
295
247
  * @return {!proto.clarifai.api.status.Status} returns this
296
248
  */
297
- proto.clarifai.api.status.Status.prototype.setDescription = function(value) {
298
- return jspb.Message.setProto3StringField(this, 2, value);
249
+ proto.clarifai.api.status.Status.prototype.setDescription = function (value) {
250
+ return jspb.Message.setProto3StringField(this, 2, value);
299
251
  };
300
-
301
-
302
252
  /**
303
253
  * optional string details = 3;
304
254
  * @return {string}
305
255
  */
306
- proto.clarifai.api.status.Status.prototype.getDetails = function() {
307
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
256
+ proto.clarifai.api.status.Status.prototype.getDetails = function () {
257
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
308
258
  };
309
-
310
-
311
259
  /**
312
260
  * @param {string} value
313
261
  * @return {!proto.clarifai.api.status.Status} returns this
314
262
  */
315
- proto.clarifai.api.status.Status.prototype.setDetails = function(value) {
316
- return jspb.Message.setProto3StringField(this, 3, value);
263
+ proto.clarifai.api.status.Status.prototype.setDetails = function (value) {
264
+ return jspb.Message.setProto3StringField(this, 3, value);
317
265
  };
318
-
319
-
320
266
  /**
321
267
  * repeated string stack_trace = 4;
322
268
  * @return {!Array<string>}
323
269
  */
324
- proto.clarifai.api.status.Status.prototype.getStackTraceList = function() {
325
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
270
+ proto.clarifai.api.status.Status.prototype.getStackTraceList = function () {
271
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
326
272
  };
327
-
328
-
329
273
  /**
330
274
  * @param {!Array<string>} value
331
275
  * @return {!proto.clarifai.api.status.Status} returns this
332
276
  */
333
- proto.clarifai.api.status.Status.prototype.setStackTraceList = function(value) {
334
- return jspb.Message.setField(this, 4, value || []);
277
+ proto.clarifai.api.status.Status.prototype.setStackTraceList = function (value) {
278
+ return jspb.Message.setField(this, 4, value || []);
335
279
  };
336
-
337
-
338
280
  /**
339
281
  * @param {string} value
340
282
  * @param {number=} opt_index
341
283
  * @return {!proto.clarifai.api.status.Status} returns this
342
284
  */
343
- proto.clarifai.api.status.Status.prototype.addStackTrace = function(value, opt_index) {
344
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
285
+ proto.clarifai.api.status.Status.prototype.addStackTrace = function (value, opt_index) {
286
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
345
287
  };
346
-
347
-
348
288
  /**
349
289
  * Clears the list making it empty but non-null.
350
290
  * @return {!proto.clarifai.api.status.Status} returns this
351
291
  */
352
- proto.clarifai.api.status.Status.prototype.clearStackTraceList = function() {
353
- return this.setStackTraceList([]);
292
+ proto.clarifai.api.status.Status.prototype.clearStackTraceList = function () {
293
+ return this.setStackTraceList([]);
354
294
  };
355
-
356
-
357
295
  /**
358
296
  * optional uint32 percent_completed = 5;
359
297
  * @return {number}
360
298
  */
361
- proto.clarifai.api.status.Status.prototype.getPercentCompleted = function() {
362
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
299
+ proto.clarifai.api.status.Status.prototype.getPercentCompleted = function () {
300
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
363
301
  };
364
-
365
-
366
302
  /**
367
303
  * @param {number} value
368
304
  * @return {!proto.clarifai.api.status.Status} returns this
369
305
  */
370
- proto.clarifai.api.status.Status.prototype.setPercentCompleted = function(value) {
371
- return jspb.Message.setProto3IntField(this, 5, value);
306
+ proto.clarifai.api.status.Status.prototype.setPercentCompleted = function (value) {
307
+ return jspb.Message.setProto3IntField(this, 5, value);
372
308
  };
373
-
374
-
375
309
  /**
376
310
  * optional uint32 time_remaining = 6;
377
311
  * @return {number}
378
312
  */
379
- proto.clarifai.api.status.Status.prototype.getTimeRemaining = function() {
380
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
313
+ proto.clarifai.api.status.Status.prototype.getTimeRemaining = function () {
314
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
381
315
  };
382
-
383
-
384
316
  /**
385
317
  * @param {number} value
386
318
  * @return {!proto.clarifai.api.status.Status} returns this
387
319
  */
388
- proto.clarifai.api.status.Status.prototype.setTimeRemaining = function(value) {
389
- return jspb.Message.setProto3IntField(this, 6, value);
320
+ proto.clarifai.api.status.Status.prototype.setTimeRemaining = function (value) {
321
+ return jspb.Message.setProto3IntField(this, 6, value);
390
322
  };
391
-
392
-
393
323
  /**
394
324
  * optional string req_id = 7;
395
325
  * @return {string}
396
326
  */
397
- proto.clarifai.api.status.Status.prototype.getReqId = function() {
398
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
327
+ proto.clarifai.api.status.Status.prototype.getReqId = function () {
328
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
399
329
  };
400
-
401
-
402
330
  /**
403
331
  * @param {string} value
404
332
  * @return {!proto.clarifai.api.status.Status} returns this
405
333
  */
406
- proto.clarifai.api.status.Status.prototype.setReqId = function(value) {
407
- return jspb.Message.setProto3StringField(this, 7, value);
334
+ proto.clarifai.api.status.Status.prototype.setReqId = function (value) {
335
+ return jspb.Message.setProto3StringField(this, 7, value);
408
336
  };
409
-
410
-
411
337
  /**
412
338
  * optional string internal_details = 8;
413
339
  * @return {string}
414
340
  */
415
- proto.clarifai.api.status.Status.prototype.getInternalDetails = function() {
416
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
341
+ proto.clarifai.api.status.Status.prototype.getInternalDetails = function () {
342
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
417
343
  };
418
-
419
-
420
344
  /**
421
345
  * @param {string} value
422
346
  * @return {!proto.clarifai.api.status.Status} returns this
423
347
  */
424
- proto.clarifai.api.status.Status.prototype.setInternalDetails = function(value) {
425
- return jspb.Message.setProto3StringField(this, 8, value);
348
+ proto.clarifai.api.status.Status.prototype.setInternalDetails = function (value) {
349
+ return jspb.Message.setProto3StringField(this, 8, value);
426
350
  };
427
-
428
-
429
-
430
-
431
-
432
351
  if (jspb.Message.GENERATE_TO_OBJECT) {
433
- /**
434
- * Creates an object representation of this proto.
435
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
436
- * Optional fields that are not set will be set to undefined.
437
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
438
- * For the list of reserved names please see:
439
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
440
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
441
- * JSPB instance for transitional soy proto support:
442
- * http://goto/soy-param-migration
443
- * @return {!Object}
444
- */
445
- proto.clarifai.api.status.BaseResponse.prototype.toObject = function(opt_includeInstance) {
446
- return proto.clarifai.api.status.BaseResponse.toObject(opt_includeInstance, this);
447
- };
448
-
449
-
450
- /**
451
- * Static version of the {@see toObject} method.
452
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
453
- * the JSPB instance for transitional soy proto support:
454
- * http://goto/soy-param-migration
455
- * @param {!proto.clarifai.api.status.BaseResponse} msg The msg instance to transform.
456
- * @return {!Object}
457
- * @suppress {unusedLocalVariables} f is only used for nested messages
458
- */
459
- proto.clarifai.api.status.BaseResponse.toObject = function(includeInstance, msg) {
460
- var f, obj = {
461
- status: (f = msg.getStatus()) && proto.clarifai.api.status.Status.toObject(includeInstance, f)
462
- };
463
-
464
- if (includeInstance) {
465
- obj.$jspbMessageInstance = msg;
466
- }
467
- return obj;
468
- };
352
+ /**
353
+ * Creates an object representation of this proto.
354
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
355
+ * Optional fields that are not set will be set to undefined.
356
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
357
+ * For the list of reserved names please see:
358
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
359
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
360
+ * JSPB instance for transitional soy proto support:
361
+ * http://goto/soy-param-migration
362
+ * @return {!Object}
363
+ */
364
+ proto.clarifai.api.status.BaseResponse.prototype.toObject = function (opt_includeInstance) {
365
+ return proto.clarifai.api.status.BaseResponse.toObject(opt_includeInstance, this);
366
+ };
367
+ /**
368
+ * Static version of the {@see toObject} method.
369
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
370
+ * the JSPB instance for transitional soy proto support:
371
+ * http://goto/soy-param-migration
372
+ * @param {!proto.clarifai.api.status.BaseResponse} msg The msg instance to transform.
373
+ * @return {!Object}
374
+ * @suppress {unusedLocalVariables} f is only used for nested messages
375
+ */
376
+ proto.clarifai.api.status.BaseResponse.toObject = function (includeInstance, msg) {
377
+ var f, obj = {
378
+ status: (f = msg.getStatus()) && proto.clarifai.api.status.Status.toObject(includeInstance, f)
379
+ };
380
+ if (includeInstance) {
381
+ obj.$jspbMessageInstance = msg;
382
+ }
383
+ return obj;
384
+ };
469
385
  }
470
-
471
-
472
386
  /**
473
387
  * Deserializes binary data (in protobuf wire format).
474
388
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
475
389
  * @return {!proto.clarifai.api.status.BaseResponse}
476
390
  */
477
- proto.clarifai.api.status.BaseResponse.deserializeBinary = function(bytes) {
478
- var reader = new jspb.BinaryReader(bytes);
479
- var msg = new proto.clarifai.api.status.BaseResponse;
480
- return proto.clarifai.api.status.BaseResponse.deserializeBinaryFromReader(msg, reader);
391
+ proto.clarifai.api.status.BaseResponse.deserializeBinary = function (bytes) {
392
+ var reader = new jspb.BinaryReader(bytes);
393
+ var msg = new proto.clarifai.api.status.BaseResponse;
394
+ return proto.clarifai.api.status.BaseResponse.deserializeBinaryFromReader(msg, reader);
481
395
  };
482
-
483
-
484
396
  /**
485
397
  * Deserializes binary data (in protobuf wire format) from the
486
398
  * given reader into the given message object.
@@ -488,38 +400,34 @@ proto.clarifai.api.status.BaseResponse.deserializeBinary = function(bytes) {
488
400
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
489
401
  * @return {!proto.clarifai.api.status.BaseResponse}
490
402
  */
491
- proto.clarifai.api.status.BaseResponse.deserializeBinaryFromReader = function(msg, reader) {
492
- while (reader.nextField()) {
493
- if (reader.isEndGroup()) {
494
- break;
403
+ proto.clarifai.api.status.BaseResponse.deserializeBinaryFromReader = function (msg, reader) {
404
+ while (reader.nextField()) {
405
+ if (reader.isEndGroup()) {
406
+ break;
407
+ }
408
+ var field = reader.getFieldNumber();
409
+ switch (field) {
410
+ case 1:
411
+ var value = new proto.clarifai.api.status.Status;
412
+ reader.readMessage(value, proto.clarifai.api.status.Status.deserializeBinaryFromReader);
413
+ msg.setStatus(value);
414
+ break;
415
+ default:
416
+ reader.skipField();
417
+ break;
418
+ }
495
419
  }
496
- var field = reader.getFieldNumber();
497
- switch (field) {
498
- case 1:
499
- var value = new proto.clarifai.api.status.Status;
500
- reader.readMessage(value,proto.clarifai.api.status.Status.deserializeBinaryFromReader);
501
- msg.setStatus(value);
502
- break;
503
- default:
504
- reader.skipField();
505
- break;
506
- }
507
- }
508
- return msg;
420
+ return msg;
509
421
  };
510
-
511
-
512
422
  /**
513
423
  * Serializes the message to binary data (in protobuf wire format).
514
424
  * @return {!Uint8Array}
515
425
  */
516
- proto.clarifai.api.status.BaseResponse.prototype.serializeBinary = function() {
517
- var writer = new jspb.BinaryWriter();
518
- proto.clarifai.api.status.BaseResponse.serializeBinaryToWriter(this, writer);
519
- return writer.getResultBuffer();
426
+ proto.clarifai.api.status.BaseResponse.prototype.serializeBinary = function () {
427
+ var writer = new jspb.BinaryWriter();
428
+ proto.clarifai.api.status.BaseResponse.serializeBinaryToWriter(this, writer);
429
+ return writer.getResultBuffer();
520
430
  };
521
-
522
-
523
431
  /**
524
432
  * Serializes the given message to binary data (in protobuf wire
525
433
  * format), writing to the given BinaryWriter.
@@ -527,54 +435,39 @@ proto.clarifai.api.status.BaseResponse.prototype.serializeBinary = function() {
527
435
  * @param {!jspb.BinaryWriter} writer
528
436
  * @suppress {unusedLocalVariables} f is only used for nested messages
529
437
  */
530
- proto.clarifai.api.status.BaseResponse.serializeBinaryToWriter = function(message, writer) {
531
- var f = undefined;
532
- f = message.getStatus();
533
- if (f != null) {
534
- writer.writeMessage(
535
- 1,
536
- f,
537
- proto.clarifai.api.status.Status.serializeBinaryToWriter
538
- );
539
- }
438
+ proto.clarifai.api.status.BaseResponse.serializeBinaryToWriter = function (message, writer) {
439
+ var f = undefined;
440
+ f = message.getStatus();
441
+ if (f != null) {
442
+ writer.writeMessage(1, f, proto.clarifai.api.status.Status.serializeBinaryToWriter);
443
+ }
540
444
  };
541
-
542
-
543
445
  /**
544
446
  * optional Status status = 1;
545
447
  * @return {?proto.clarifai.api.status.Status}
546
448
  */
547
- proto.clarifai.api.status.BaseResponse.prototype.getStatus = function() {
548
- return /** @type{?proto.clarifai.api.status.Status} */ (
549
- jspb.Message.getWrapperField(this, proto.clarifai.api.status.Status, 1));
449
+ proto.clarifai.api.status.BaseResponse.prototype.getStatus = function () {
450
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.status.Status, 1));
550
451
  };
551
-
552
-
553
452
  /**
554
453
  * @param {?proto.clarifai.api.status.Status|undefined} value
555
454
  * @return {!proto.clarifai.api.status.BaseResponse} returns this
556
455
  */
557
- proto.clarifai.api.status.BaseResponse.prototype.setStatus = function(value) {
558
- return jspb.Message.setWrapperField(this, 1, value);
456
+ proto.clarifai.api.status.BaseResponse.prototype.setStatus = function (value) {
457
+ return jspb.Message.setWrapperField(this, 1, value);
559
458
  };
560
-
561
-
562
459
  /**
563
460
  * Clears the message field making it undefined.
564
461
  * @return {!proto.clarifai.api.status.BaseResponse} returns this
565
462
  */
566
- proto.clarifai.api.status.BaseResponse.prototype.clearStatus = function() {
567
- return this.setStatus(undefined);
463
+ proto.clarifai.api.status.BaseResponse.prototype.clearStatus = function () {
464
+ return this.setStatus(undefined);
568
465
  };
569
-
570
-
571
466
  /**
572
467
  * Returns whether this field is set.
573
468
  * @return {boolean}
574
469
  */
575
- proto.clarifai.api.status.BaseResponse.prototype.hasStatus = function() {
576
- return jspb.Message.getField(this, 1) != null;
470
+ proto.clarifai.api.status.BaseResponse.prototype.hasStatus = function () {
471
+ return jspb.Message.getField(this, 1) != null;
577
472
  };
578
-
579
-
580
473
  goog.object.extend(exports, proto.clarifai.api.status);