clarifai-web-grpc 1.1.8 → 2.0.0

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 (69) hide show
  1. package/.github/workflows/ci.yml +0 -6
  2. package/CHANGELOG.md +12 -10
  3. package/package.json +4 -28
  4. package/.husky/pre-commit +0 -4
  5. package/.mocharc.yml +0 -5
  6. package/dist/cjs/google/api/annotations_pb.d.ts +0 -1
  7. package/dist/cjs/google/api/annotations_pb.js +0 -32
  8. package/dist/cjs/google/api/http_pb.d.ts +0 -1
  9. package/dist/cjs/google/api/http_pb.js +0 -813
  10. package/dist/cjs/index.d.ts +0 -5
  11. package/dist/cjs/index.js +0 -11
  12. package/dist/cjs/proto/clarifai/api/resources_pb.d.ts +0 -1
  13. package/dist/cjs/proto/clarifai/api/resources_pb.js +0 -32957
  14. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  15. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +0 -908
  16. package/dist/cjs/proto/clarifai/api/service_pb.d.ts +0 -1
  17. package/dist/cjs/proto/clarifai/api/service_pb.js +0 -38791
  18. package/dist/cjs/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
  19. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +0 -312
  20. package/dist/cjs/proto/clarifai/api/status/status_pb.d.ts +0 -1
  21. package/dist/cjs/proto/clarifai/api/status/status_pb.js +0 -473
  22. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
  23. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +0 -52
  24. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
  25. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +0 -521
  26. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
  27. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +0 -294
  28. package/dist/cjs/proto/clarifai/auth/types/types_pb.d.ts +0 -1
  29. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +0 -26
  30. package/dist/cjs/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
  31. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +0 -80
  32. package/dist/cjs/resources.d.ts +0 -12
  33. package/dist/cjs/resources.js +0 -47
  34. package/dist/cjs/service.d.ts +0 -1
  35. package/dist/cjs/service.js +0 -13
  36. package/dist/esm/google/api/annotations_pb.d.ts +0 -1
  37. package/dist/esm/google/api/annotations_pb.js +0 -32
  38. package/dist/esm/google/api/http_pb.d.ts +0 -1
  39. package/dist/esm/google/api/http_pb.js +0 -813
  40. package/dist/esm/index.d.ts +0 -5
  41. package/dist/esm/index.js +0 -7
  42. package/dist/esm/proto/clarifai/api/resources_pb.d.ts +0 -1
  43. package/dist/esm/proto/clarifai/api/resources_pb.js +0 -32957
  44. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  45. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.js +0 -904
  46. package/dist/esm/proto/clarifai/api/service_pb.d.ts +0 -1
  47. package/dist/esm/proto/clarifai/api/service_pb.js +0 -38791
  48. package/dist/esm/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
  49. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +0 -312
  50. package/dist/esm/proto/clarifai/api/status/status_pb.d.ts +0 -1
  51. package/dist/esm/proto/clarifai/api/status/status_pb.js +0 -473
  52. package/dist/esm/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
  53. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +0 -52
  54. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
  55. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +0 -521
  56. package/dist/esm/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
  57. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +0 -294
  58. package/dist/esm/proto/clarifai/auth/types/types_pb.d.ts +0 -1
  59. package/dist/esm/proto/clarifai/auth/types/types_pb.js +0 -26
  60. package/dist/esm/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
  61. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +0 -80
  62. package/dist/esm/resources.d.ts +0 -12
  63. package/dist/esm/resources.js +0 -11
  64. package/dist/esm/service.d.ts +0 -1
  65. package/dist/esm/service.js +0 -1
  66. package/tests/basic.test.ts +0 -41
  67. package/tests/helpers.test.ts +0 -47
  68. package/tsconfig.cjs.json +0 -7
  69. package/tsconfig.json +0 -25
@@ -1,473 +0,0 @@
1
- "use strict";
2
- // source: proto/clarifai/api/status/status.proto
3
- /**
4
- * @fileoverview
5
- * @enhanceable
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- var jspb = require('google-protobuf');
12
- var goog = jspb;
13
- var global = Function('return this')();
14
- var proto_clarifai_auth_util_extension_pb = require('../../../../proto/clarifai/auth/util/extension_pb.js');
15
- goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
16
- var proto_clarifai_api_status_status_code_pb = require('../../../../proto/clarifai/api/status/status_code_pb.js');
17
- goog.object.extend(proto, proto_clarifai_api_status_status_code_pb);
18
- goog.exportSymbol('proto.clarifai.api.status.BaseResponse', null, global);
19
- goog.exportSymbol('proto.clarifai.api.status.Status', null, global);
20
- /**
21
- * Generated by JsPbCodeGenerator.
22
- * @param {Array=} opt_data Optional initial data array, typically from a
23
- * server response, or constructed directly in Javascript. The array is used
24
- * in place and becomes part of the constructed object. It is not cloned.
25
- * If no data is provided, the constructed object will be empty, but still
26
- * valid.
27
- * @extends {jspb.Message}
28
- * @constructor
29
- */
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);
32
- };
33
- goog.inherits(proto.clarifai.api.status.Status, jspb.Message);
34
- if (goog.DEBUG && !COMPILED) {
35
- /**
36
- * @public
37
- * @override
38
- */
39
- proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
40
- }
41
- /**
42
- * Generated by JsPbCodeGenerator.
43
- * @param {Array=} opt_data Optional initial data array, typically from a
44
- * server response, or constructed directly in Javascript. The array is used
45
- * in place and becomes part of the constructed object. It is not cloned.
46
- * If no data is provided, the constructed object will be empty, but still
47
- * valid.
48
- * @extends {jspb.Message}
49
- * @constructor
50
- */
51
- proto.clarifai.api.status.BaseResponse = function (opt_data) {
52
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
53
- };
54
- goog.inherits(proto.clarifai.api.status.BaseResponse, jspb.Message);
55
- if (goog.DEBUG && !COMPILED) {
56
- /**
57
- * @public
58
- * @override
59
- */
60
- proto.clarifai.api.status.BaseResponse.displayName = 'proto.clarifai.api.status.BaseResponse';
61
- }
62
- /**
63
- * List of repeated fields within this message type.
64
- * @private {!Array<number>}
65
- * @const
66
- */
67
- proto.clarifai.api.status.Status.repeatedFields_ = [4];
68
- 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
- };
109
- }
110
- /**
111
- * Deserializes binary data (in protobuf wire format).
112
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
113
- * @return {!proto.clarifai.api.status.Status}
114
- */
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);
119
- };
120
- /**
121
- * Deserializes binary data (in protobuf wire format) from the
122
- * given reader into the given message object.
123
- * @param {!proto.clarifai.api.status.Status} msg The message object to deserialize into.
124
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
125
- * @return {!proto.clarifai.api.status.Status}
126
- */
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
- }
170
- }
171
- return msg;
172
- };
173
- /**
174
- * Serializes the message to binary data (in protobuf wire format).
175
- * @return {!Uint8Array}
176
- */
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();
181
- };
182
- /**
183
- * Serializes the given message to binary data (in protobuf wire
184
- * format), writing to the given BinaryWriter.
185
- * @param {!proto.clarifai.api.status.Status} message
186
- * @param {!jspb.BinaryWriter} writer
187
- * @suppress {unusedLocalVariables} f is only used for nested messages
188
- */
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
- };
224
- /**
225
- * optional StatusCode code = 1;
226
- * @return {!proto.clarifai.api.status.StatusCode}
227
- */
228
- proto.clarifai.api.status.Status.prototype.getCode = function () {
229
- return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
230
- };
231
- /**
232
- * @param {!proto.clarifai.api.status.StatusCode} value
233
- * @return {!proto.clarifai.api.status.Status} returns this
234
- */
235
- proto.clarifai.api.status.Status.prototype.setCode = function (value) {
236
- return jspb.Message.setProto3EnumField(this, 1, value);
237
- };
238
- /**
239
- * optional string description = 2;
240
- * @return {string}
241
- */
242
- proto.clarifai.api.status.Status.prototype.getDescription = function () {
243
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
244
- };
245
- /**
246
- * @param {string} value
247
- * @return {!proto.clarifai.api.status.Status} returns this
248
- */
249
- proto.clarifai.api.status.Status.prototype.setDescription = function (value) {
250
- return jspb.Message.setProto3StringField(this, 2, value);
251
- };
252
- /**
253
- * optional string details = 3;
254
- * @return {string}
255
- */
256
- proto.clarifai.api.status.Status.prototype.getDetails = function () {
257
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
258
- };
259
- /**
260
- * @param {string} value
261
- * @return {!proto.clarifai.api.status.Status} returns this
262
- */
263
- proto.clarifai.api.status.Status.prototype.setDetails = function (value) {
264
- return jspb.Message.setProto3StringField(this, 3, value);
265
- };
266
- /**
267
- * repeated string stack_trace = 4;
268
- * @return {!Array<string>}
269
- */
270
- proto.clarifai.api.status.Status.prototype.getStackTraceList = function () {
271
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
272
- };
273
- /**
274
- * @param {!Array<string>} value
275
- * @return {!proto.clarifai.api.status.Status} returns this
276
- */
277
- proto.clarifai.api.status.Status.prototype.setStackTraceList = function (value) {
278
- return jspb.Message.setField(this, 4, value || []);
279
- };
280
- /**
281
- * @param {string} value
282
- * @param {number=} opt_index
283
- * @return {!proto.clarifai.api.status.Status} returns this
284
- */
285
- proto.clarifai.api.status.Status.prototype.addStackTrace = function (value, opt_index) {
286
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
287
- };
288
- /**
289
- * Clears the list making it empty but non-null.
290
- * @return {!proto.clarifai.api.status.Status} returns this
291
- */
292
- proto.clarifai.api.status.Status.prototype.clearStackTraceList = function () {
293
- return this.setStackTraceList([]);
294
- };
295
- /**
296
- * optional uint32 percent_completed = 5;
297
- * @return {number}
298
- */
299
- proto.clarifai.api.status.Status.prototype.getPercentCompleted = function () {
300
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
301
- };
302
- /**
303
- * @param {number} value
304
- * @return {!proto.clarifai.api.status.Status} returns this
305
- */
306
- proto.clarifai.api.status.Status.prototype.setPercentCompleted = function (value) {
307
- return jspb.Message.setProto3IntField(this, 5, value);
308
- };
309
- /**
310
- * optional uint32 time_remaining = 6;
311
- * @return {number}
312
- */
313
- proto.clarifai.api.status.Status.prototype.getTimeRemaining = function () {
314
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
315
- };
316
- /**
317
- * @param {number} value
318
- * @return {!proto.clarifai.api.status.Status} returns this
319
- */
320
- proto.clarifai.api.status.Status.prototype.setTimeRemaining = function (value) {
321
- return jspb.Message.setProto3IntField(this, 6, value);
322
- };
323
- /**
324
- * optional string req_id = 7;
325
- * @return {string}
326
- */
327
- proto.clarifai.api.status.Status.prototype.getReqId = function () {
328
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
329
- };
330
- /**
331
- * @param {string} value
332
- * @return {!proto.clarifai.api.status.Status} returns this
333
- */
334
- proto.clarifai.api.status.Status.prototype.setReqId = function (value) {
335
- return jspb.Message.setProto3StringField(this, 7, value);
336
- };
337
- /**
338
- * optional string internal_details = 8;
339
- * @return {string}
340
- */
341
- proto.clarifai.api.status.Status.prototype.getInternalDetails = function () {
342
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
343
- };
344
- /**
345
- * @param {string} value
346
- * @return {!proto.clarifai.api.status.Status} returns this
347
- */
348
- proto.clarifai.api.status.Status.prototype.setInternalDetails = function (value) {
349
- return jspb.Message.setProto3StringField(this, 8, value);
350
- };
351
- 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
- };
385
- }
386
- /**
387
- * Deserializes binary data (in protobuf wire format).
388
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
389
- * @return {!proto.clarifai.api.status.BaseResponse}
390
- */
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);
395
- };
396
- /**
397
- * Deserializes binary data (in protobuf wire format) from the
398
- * given reader into the given message object.
399
- * @param {!proto.clarifai.api.status.BaseResponse} msg The message object to deserialize into.
400
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
401
- * @return {!proto.clarifai.api.status.BaseResponse}
402
- */
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
- }
419
- }
420
- return msg;
421
- };
422
- /**
423
- * Serializes the message to binary data (in protobuf wire format).
424
- * @return {!Uint8Array}
425
- */
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();
430
- };
431
- /**
432
- * Serializes the given message to binary data (in protobuf wire
433
- * format), writing to the given BinaryWriter.
434
- * @param {!proto.clarifai.api.status.BaseResponse} message
435
- * @param {!jspb.BinaryWriter} writer
436
- * @suppress {unusedLocalVariables} f is only used for nested messages
437
- */
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
- }
444
- };
445
- /**
446
- * optional Status status = 1;
447
- * @return {?proto.clarifai.api.status.Status}
448
- */
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));
451
- };
452
- /**
453
- * @param {?proto.clarifai.api.status.Status|undefined} value
454
- * @return {!proto.clarifai.api.status.BaseResponse} returns this
455
- */
456
- proto.clarifai.api.status.BaseResponse.prototype.setStatus = function (value) {
457
- return jspb.Message.setWrapperField(this, 1, value);
458
- };
459
- /**
460
- * Clears the message field making it undefined.
461
- * @return {!proto.clarifai.api.status.BaseResponse} returns this
462
- */
463
- proto.clarifai.api.status.BaseResponse.prototype.clearStatus = function () {
464
- return this.setStatus(undefined);
465
- };
466
- /**
467
- * Returns whether this field is set.
468
- * @return {boolean}
469
- */
470
- proto.clarifai.api.status.BaseResponse.prototype.hasStatus = function () {
471
- return jspb.Message.getField(this, 1) != null;
472
- };
473
- goog.object.extend(exports, proto.clarifai.api.status);
@@ -1 +0,0 @@
1
- export {};
@@ -1,52 +0,0 @@
1
- "use strict";
2
- // source: proto/clarifai/api/utils/extensions.proto
3
- /**
4
- * @fileoverview
5
- * @enhanceable
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- var jspb = require('google-protobuf');
12
- var goog = jspb;
13
- var global = Function('return this')();
14
- var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
15
- goog.object.extend(proto, google_protobuf_descriptor_pb);
16
- goog.exportSymbol('proto.clarifai.api.utils.clDefaultFloat', null, global);
17
- goog.exportSymbol('proto.clarifai.api.utils.clMoretags', null, global);
18
- goog.exportSymbol('proto.clarifai.api.utils.clShowIfEmpty', null, global);
19
- /**
20
- * A tuple of {field number, class constructor} for the extension
21
- * field named `clShowIfEmpty`.
22
- * @type {!jspb.ExtensionFieldInfo<boolean>}
23
- */
24
- proto.clarifai.api.utils.clShowIfEmpty = new jspb.ExtensionFieldInfo(50000, { clShowIfEmpty: 0 }, null,
25
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
26
- google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50000] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.api.utils.clShowIfEmpty, jspb.BinaryReader.prototype.readBool, jspb.BinaryWriter.prototype.writeBool, undefined, undefined, false);
27
- // This registers the extension field with the extended class, so that
28
- // toObject() will function correctly.
29
- google_protobuf_descriptor_pb.FieldOptions.extensions[50000] = proto.clarifai.api.utils.clShowIfEmpty;
30
- /**
31
- * A tuple of {field number, class constructor} for the extension
32
- * field named `clMoretags`.
33
- * @type {!jspb.ExtensionFieldInfo<string>}
34
- */
35
- proto.clarifai.api.utils.clMoretags = new jspb.ExtensionFieldInfo(50001, { clMoretags: 0 }, null,
36
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
37
- google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50001] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.api.utils.clMoretags, jspb.BinaryReader.prototype.readString, jspb.BinaryWriter.prototype.writeString, undefined, undefined, false);
38
- // This registers the extension field with the extended class, so that
39
- // toObject() will function correctly.
40
- google_protobuf_descriptor_pb.FieldOptions.extensions[50001] = proto.clarifai.api.utils.clMoretags;
41
- /**
42
- * A tuple of {field number, class constructor} for the extension
43
- * field named `clDefaultFloat`.
44
- * @type {!jspb.ExtensionFieldInfo<number>}
45
- */
46
- proto.clarifai.api.utils.clDefaultFloat = new jspb.ExtensionFieldInfo(50010, { clDefaultFloat: 0 }, null,
47
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
48
- google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50010] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.api.utils.clDefaultFloat, jspb.BinaryReader.prototype.readFloat, jspb.BinaryWriter.prototype.writeFloat, undefined, undefined, false);
49
- // This registers the extension field with the extended class, so that
50
- // toObject() will function correctly.
51
- google_protobuf_descriptor_pb.FieldOptions.extensions[50010] = proto.clarifai.api.utils.clDefaultFloat;
52
- goog.object.extend(exports, proto.clarifai.api.utils);
@@ -1 +0,0 @@
1
- export {};