clarifai-web-grpc 1.1.3 → 1.1.7

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 (66) hide show
  1. package/.github/workflows/ci.yml +0 -2
  2. package/CHANGELOG.md +3 -3
  3. package/lib/google/api/annotations_grpc_pb.js +1 -2
  4. package/lib/google/api/annotations_pb.js +19 -4
  5. package/lib/google/api/http_grpc_pb.js +1 -2
  6. package/lib/google/api/http_pb.js +606 -414
  7. package/lib/proto/clarifai/api/resources_pb.d.ts +5052 -1
  8. package/lib/proto/clarifai/api/resources_pb.js +26126 -17879
  9. package/lib/proto/clarifai/api/serviceServiceClientPb.ts +3002 -0
  10. package/lib/proto/clarifai/api/service_pb.d.ts +5582 -1
  11. package/lib/proto/clarifai/api/service_pb.js +30050 -20944
  12. package/lib/proto/clarifai/api/status/status_code_pb.d.ts +296 -1
  13. package/lib/proto/clarifai/api/status/status_code_pb.js +295 -293
  14. package/lib/proto/clarifai/api/status/status_pb.d.ts +73 -1
  15. package/lib/proto/clarifai/api/status/status_pb.js +357 -250
  16. package/lib/proto/clarifai/api/utils/extensions_pb.d.ts +4 -1
  17. package/lib/proto/clarifai/api/utils/extensions_pb.js +53 -10
  18. package/lib/proto/clarifai/api/utils/test_proto_pb.d.ts +81 -1
  19. package/lib/proto/clarifai/api/utils/test_proto_pb.js +385 -266
  20. package/lib/proto/clarifai/auth/scope/scope_pb.d.ts +92 -1
  21. package/lib/proto/clarifai/auth/scope/scope_pb.js +232 -163
  22. package/lib/proto/clarifai/auth/types/types_pb.d.ts +10 -1
  23. package/lib/proto/clarifai/auth/types/types_pb.js +9 -7
  24. package/lib/proto/clarifai/auth/util/extension_pb.d.ts +6 -1
  25. package/lib/proto/clarifai/auth/util/extension_pb.js +87 -16
  26. package/package.json +22 -18
  27. package/tsconfig.json +6 -4
  28. package/.husky/pre-commit +0 -4
  29. package/.mocharc.yml +0 -5
  30. package/dist/google/api/annotations_grpc_pb.d.ts +0 -0
  31. package/dist/google/api/annotations_grpc_pb.js +0 -2
  32. package/dist/google/api/annotations_pb.d.ts +0 -1
  33. package/dist/google/api/annotations_pb.js +0 -32
  34. package/dist/google/api/http_grpc_pb.d.ts +0 -0
  35. package/dist/google/api/http_grpc_pb.js +0 -2
  36. package/dist/google/api/http_pb.d.ts +0 -1
  37. package/dist/google/api/http_pb.js +0 -813
  38. package/dist/index.d.ts +0 -5
  39. package/dist/index.js +0 -11
  40. package/dist/proto/clarifai/api/resources_pb.d.ts +0 -1
  41. package/dist/proto/clarifai/api/resources_pb.js +0 -32957
  42. package/dist/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  43. package/dist/proto/clarifai/api/serviceServiceClientPb.js +0 -908
  44. package/dist/proto/clarifai/api/service_pb.d.ts +0 -1
  45. package/dist/proto/clarifai/api/service_pb.js +0 -38791
  46. package/dist/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
  47. package/dist/proto/clarifai/api/status/status_code_pb.js +0 -312
  48. package/dist/proto/clarifai/api/status/status_pb.d.ts +0 -1
  49. package/dist/proto/clarifai/api/status/status_pb.js +0 -473
  50. package/dist/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
  51. package/dist/proto/clarifai/api/utils/extensions_pb.js +0 -52
  52. package/dist/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
  53. package/dist/proto/clarifai/api/utils/test_proto_pb.js +0 -521
  54. package/dist/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
  55. package/dist/proto/clarifai/auth/scope/scope_pb.js +0 -294
  56. package/dist/proto/clarifai/auth/types/types_pb.d.ts +0 -1
  57. package/dist/proto/clarifai/auth/types/types_pb.js +0 -26
  58. package/dist/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
  59. package/dist/proto/clarifai/auth/util/extension_pb.js +0 -80
  60. package/dist/resources.d.ts +0 -12
  61. package/dist/resources.js +0 -47
  62. package/dist/service.d.ts +0 -1
  63. package/dist/service.js +0 -13
  64. package/tests/basic.test.ts +0 -41
  65. package/tests/helpers.test.ts +0 -47
  66. package/tsconfig.cjs.json +0 -7
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // source: proto/clarifai/api/status/status.proto
3
2
  /**
4
3
  * @fileoverview
@@ -8,9 +7,11 @@
8
7
  * @public
9
8
  */
10
9
  // 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
+
14
15
  var proto_clarifai_auth_util_extension_pb = require('../../../../proto/clarifai/auth/util/extension_pb.js');
15
16
  goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
16
17
  var proto_clarifai_api_status_status_code_pb = require('../../../../proto/clarifai/api/status/status_code_pb.js');
@@ -27,16 +28,16 @@ goog.exportSymbol('proto.clarifai.api.status.Status', null, global);
27
28
  * @extends {jspb.Message}
28
29
  * @constructor
29
30
  */
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);
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);
32
33
  };
33
34
  goog.inherits(proto.clarifai.api.status.Status, jspb.Message);
34
35
  if (goog.DEBUG && !COMPILED) {
35
- /**
36
- * @public
37
- * @override
38
- */
39
- proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
36
+ /**
37
+ * @public
38
+ * @override
39
+ */
40
+ proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
40
41
  }
41
42
  /**
42
43
  * Generated by JsPbCodeGenerator.
@@ -48,75 +49,86 @@ if (goog.DEBUG && !COMPILED) {
48
49
  * @extends {jspb.Message}
49
50
  * @constructor
50
51
  */
51
- proto.clarifai.api.status.BaseResponse = function (opt_data) {
52
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
+ proto.clarifai.api.status.BaseResponse = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
53
54
  };
54
55
  goog.inherits(proto.clarifai.api.status.BaseResponse, jspb.Message);
55
56
  if (goog.DEBUG && !COMPILED) {
56
- /**
57
- * @public
58
- * @override
59
- */
60
- proto.clarifai.api.status.BaseResponse.displayName = 'proto.clarifai.api.status.BaseResponse';
57
+ /**
58
+ * @public
59
+ * @override
60
+ */
61
+ proto.clarifai.api.status.BaseResponse.displayName = 'proto.clarifai.api.status.BaseResponse';
61
62
  }
63
+
62
64
  /**
63
65
  * List of repeated fields within this message type.
64
66
  * @private {!Array<number>}
65
67
  * @const
66
68
  */
67
69
  proto.clarifai.api.status.Status.repeatedFields_ = [4];
70
+
71
+
72
+
68
73
  if (jspb.Message.GENERATE_TO_OBJECT) {
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
- };
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
+ };
109
117
  }
118
+
119
+
110
120
  /**
111
121
  * Deserializes binary data (in protobuf wire format).
112
122
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
113
123
  * @return {!proto.clarifai.api.status.Status}
114
124
  */
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);
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);
119
129
  };
130
+
131
+
120
132
  /**
121
133
  * Deserializes binary data (in protobuf wire format) from the
122
134
  * given reader into the given message object.
@@ -124,61 +136,65 @@ proto.clarifai.api.status.Status.deserializeBinary = function (bytes) {
124
136
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
125
137
  * @return {!proto.clarifai.api.status.Status}
126
138
  */
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
- }
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;
170
181
  }
171
- return msg;
182
+ }
183
+ return msg;
172
184
  };
185
+
186
+
173
187
  /**
174
188
  * Serializes the message to binary data (in protobuf wire format).
175
189
  * @return {!Uint8Array}
176
190
  */
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();
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();
181
195
  };
196
+
197
+
182
198
  /**
183
199
  * Serializes the given message to binary data (in protobuf wire
184
200
  * format), writing to the given BinaryWriter.
@@ -186,213 +202,285 @@ proto.clarifai.api.status.Status.prototype.serializeBinary = function () {
186
202
  * @param {!jspb.BinaryWriter} writer
187
203
  * @suppress {unusedLocalVariables} f is only used for nested messages
188
204
  */
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
- };
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
+
224
266
  /**
225
267
  * optional StatusCode code = 1;
226
268
  * @return {!proto.clarifai.api.status.StatusCode}
227
269
  */
228
- proto.clarifai.api.status.Status.prototype.getCode = function () {
229
- return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
270
+ proto.clarifai.api.status.Status.prototype.getCode = function() {
271
+ return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
230
272
  };
273
+
274
+
231
275
  /**
232
276
  * @param {!proto.clarifai.api.status.StatusCode} value
233
277
  * @return {!proto.clarifai.api.status.Status} returns this
234
278
  */
235
- proto.clarifai.api.status.Status.prototype.setCode = function (value) {
236
- return jspb.Message.setProto3EnumField(this, 1, value);
279
+ proto.clarifai.api.status.Status.prototype.setCode = function(value) {
280
+ return jspb.Message.setProto3EnumField(this, 1, value);
237
281
  };
282
+
283
+
238
284
  /**
239
285
  * optional string description = 2;
240
286
  * @return {string}
241
287
  */
242
- proto.clarifai.api.status.Status.prototype.getDescription = function () {
243
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
288
+ proto.clarifai.api.status.Status.prototype.getDescription = function() {
289
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
244
290
  };
291
+
292
+
245
293
  /**
246
294
  * @param {string} value
247
295
  * @return {!proto.clarifai.api.status.Status} returns this
248
296
  */
249
- proto.clarifai.api.status.Status.prototype.setDescription = function (value) {
250
- return jspb.Message.setProto3StringField(this, 2, value);
297
+ proto.clarifai.api.status.Status.prototype.setDescription = function(value) {
298
+ return jspb.Message.setProto3StringField(this, 2, value);
251
299
  };
300
+
301
+
252
302
  /**
253
303
  * optional string details = 3;
254
304
  * @return {string}
255
305
  */
256
- proto.clarifai.api.status.Status.prototype.getDetails = function () {
257
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
306
+ proto.clarifai.api.status.Status.prototype.getDetails = function() {
307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
258
308
  };
309
+
310
+
259
311
  /**
260
312
  * @param {string} value
261
313
  * @return {!proto.clarifai.api.status.Status} returns this
262
314
  */
263
- proto.clarifai.api.status.Status.prototype.setDetails = function (value) {
264
- return jspb.Message.setProto3StringField(this, 3, value);
315
+ proto.clarifai.api.status.Status.prototype.setDetails = function(value) {
316
+ return jspb.Message.setProto3StringField(this, 3, value);
265
317
  };
318
+
319
+
266
320
  /**
267
321
  * repeated string stack_trace = 4;
268
322
  * @return {!Array<string>}
269
323
  */
270
- proto.clarifai.api.status.Status.prototype.getStackTraceList = function () {
271
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
324
+ proto.clarifai.api.status.Status.prototype.getStackTraceList = function() {
325
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
272
326
  };
327
+
328
+
273
329
  /**
274
330
  * @param {!Array<string>} value
275
331
  * @return {!proto.clarifai.api.status.Status} returns this
276
332
  */
277
- proto.clarifai.api.status.Status.prototype.setStackTraceList = function (value) {
278
- return jspb.Message.setField(this, 4, value || []);
333
+ proto.clarifai.api.status.Status.prototype.setStackTraceList = function(value) {
334
+ return jspb.Message.setField(this, 4, value || []);
279
335
  };
336
+
337
+
280
338
  /**
281
339
  * @param {string} value
282
340
  * @param {number=} opt_index
283
341
  * @return {!proto.clarifai.api.status.Status} returns this
284
342
  */
285
- proto.clarifai.api.status.Status.prototype.addStackTrace = function (value, opt_index) {
286
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
343
+ proto.clarifai.api.status.Status.prototype.addStackTrace = function(value, opt_index) {
344
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
287
345
  };
346
+
347
+
288
348
  /**
289
349
  * Clears the list making it empty but non-null.
290
350
  * @return {!proto.clarifai.api.status.Status} returns this
291
351
  */
292
- proto.clarifai.api.status.Status.prototype.clearStackTraceList = function () {
293
- return this.setStackTraceList([]);
352
+ proto.clarifai.api.status.Status.prototype.clearStackTraceList = function() {
353
+ return this.setStackTraceList([]);
294
354
  };
355
+
356
+
295
357
  /**
296
358
  * optional uint32 percent_completed = 5;
297
359
  * @return {number}
298
360
  */
299
- proto.clarifai.api.status.Status.prototype.getPercentCompleted = function () {
300
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
361
+ proto.clarifai.api.status.Status.prototype.getPercentCompleted = function() {
362
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
301
363
  };
364
+
365
+
302
366
  /**
303
367
  * @param {number} value
304
368
  * @return {!proto.clarifai.api.status.Status} returns this
305
369
  */
306
- proto.clarifai.api.status.Status.prototype.setPercentCompleted = function (value) {
307
- return jspb.Message.setProto3IntField(this, 5, value);
370
+ proto.clarifai.api.status.Status.prototype.setPercentCompleted = function(value) {
371
+ return jspb.Message.setProto3IntField(this, 5, value);
308
372
  };
373
+
374
+
309
375
  /**
310
376
  * optional uint32 time_remaining = 6;
311
377
  * @return {number}
312
378
  */
313
- proto.clarifai.api.status.Status.prototype.getTimeRemaining = function () {
314
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
379
+ proto.clarifai.api.status.Status.prototype.getTimeRemaining = function() {
380
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
315
381
  };
382
+
383
+
316
384
  /**
317
385
  * @param {number} value
318
386
  * @return {!proto.clarifai.api.status.Status} returns this
319
387
  */
320
- proto.clarifai.api.status.Status.prototype.setTimeRemaining = function (value) {
321
- return jspb.Message.setProto3IntField(this, 6, value);
388
+ proto.clarifai.api.status.Status.prototype.setTimeRemaining = function(value) {
389
+ return jspb.Message.setProto3IntField(this, 6, value);
322
390
  };
391
+
392
+
323
393
  /**
324
394
  * optional string req_id = 7;
325
395
  * @return {string}
326
396
  */
327
- proto.clarifai.api.status.Status.prototype.getReqId = function () {
328
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
397
+ proto.clarifai.api.status.Status.prototype.getReqId = function() {
398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
329
399
  };
400
+
401
+
330
402
  /**
331
403
  * @param {string} value
332
404
  * @return {!proto.clarifai.api.status.Status} returns this
333
405
  */
334
- proto.clarifai.api.status.Status.prototype.setReqId = function (value) {
335
- return jspb.Message.setProto3StringField(this, 7, value);
406
+ proto.clarifai.api.status.Status.prototype.setReqId = function(value) {
407
+ return jspb.Message.setProto3StringField(this, 7, value);
336
408
  };
409
+
410
+
337
411
  /**
338
412
  * optional string internal_details = 8;
339
413
  * @return {string}
340
414
  */
341
- proto.clarifai.api.status.Status.prototype.getInternalDetails = function () {
342
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
415
+ proto.clarifai.api.status.Status.prototype.getInternalDetails = function() {
416
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
343
417
  };
418
+
419
+
344
420
  /**
345
421
  * @param {string} value
346
422
  * @return {!proto.clarifai.api.status.Status} returns this
347
423
  */
348
- proto.clarifai.api.status.Status.prototype.setInternalDetails = function (value) {
349
- return jspb.Message.setProto3StringField(this, 8, value);
424
+ proto.clarifai.api.status.Status.prototype.setInternalDetails = function(value) {
425
+ return jspb.Message.setProto3StringField(this, 8, value);
350
426
  };
427
+
428
+
429
+
430
+
431
+
351
432
  if (jspb.Message.GENERATE_TO_OBJECT) {
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
- };
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
+ };
385
469
  }
470
+
471
+
386
472
  /**
387
473
  * Deserializes binary data (in protobuf wire format).
388
474
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
389
475
  * @return {!proto.clarifai.api.status.BaseResponse}
390
476
  */
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);
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);
395
481
  };
482
+
483
+
396
484
  /**
397
485
  * Deserializes binary data (in protobuf wire format) from the
398
486
  * given reader into the given message object.
@@ -400,34 +488,38 @@ proto.clarifai.api.status.BaseResponse.deserializeBinary = function (bytes) {
400
488
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
401
489
  * @return {!proto.clarifai.api.status.BaseResponse}
402
490
  */
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
- }
491
+ proto.clarifai.api.status.BaseResponse.deserializeBinaryFromReader = function(msg, reader) {
492
+ while (reader.nextField()) {
493
+ if (reader.isEndGroup()) {
494
+ break;
419
495
  }
420
- return msg;
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;
421
509
  };
510
+
511
+
422
512
  /**
423
513
  * Serializes the message to binary data (in protobuf wire format).
424
514
  * @return {!Uint8Array}
425
515
  */
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();
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();
430
520
  };
521
+
522
+
431
523
  /**
432
524
  * Serializes the given message to binary data (in protobuf wire
433
525
  * format), writing to the given BinaryWriter.
@@ -435,39 +527,54 @@ proto.clarifai.api.status.BaseResponse.prototype.serializeBinary = function () {
435
527
  * @param {!jspb.BinaryWriter} writer
436
528
  * @suppress {unusedLocalVariables} f is only used for nested messages
437
529
  */
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
- }
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
+ }
444
540
  };
541
+
542
+
445
543
  /**
446
544
  * optional Status status = 1;
447
545
  * @return {?proto.clarifai.api.status.Status}
448
546
  */
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));
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));
451
550
  };
551
+
552
+
452
553
  /**
453
554
  * @param {?proto.clarifai.api.status.Status|undefined} value
454
555
  * @return {!proto.clarifai.api.status.BaseResponse} returns this
455
556
  */
456
- proto.clarifai.api.status.BaseResponse.prototype.setStatus = function (value) {
457
- return jspb.Message.setWrapperField(this, 1, value);
557
+ proto.clarifai.api.status.BaseResponse.prototype.setStatus = function(value) {
558
+ return jspb.Message.setWrapperField(this, 1, value);
458
559
  };
560
+
561
+
459
562
  /**
460
563
  * Clears the message field making it undefined.
461
564
  * @return {!proto.clarifai.api.status.BaseResponse} returns this
462
565
  */
463
- proto.clarifai.api.status.BaseResponse.prototype.clearStatus = function () {
464
- return this.setStatus(undefined);
566
+ proto.clarifai.api.status.BaseResponse.prototype.clearStatus = function() {
567
+ return this.setStatus(undefined);
465
568
  };
569
+
570
+
466
571
  /**
467
572
  * Returns whether this field is set.
468
573
  * @return {boolean}
469
574
  */
470
- proto.clarifai.api.status.BaseResponse.prototype.hasStatus = function () {
471
- return jspb.Message.getField(this, 1) != null;
575
+ proto.clarifai.api.status.BaseResponse.prototype.hasStatus = function() {
576
+ return jspb.Message.getField(this, 1) != null;
472
577
  };
578
+
579
+
473
580
  goog.object.extend(exports, proto.clarifai.api.status);