clarifai-web-grpc 3.0.0 → 4.2.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.
- package/.github/workflows/ci.yml +0 -2
- package/CHANGELOG.md +3 -10
- package/README.md +2 -2
- package/VERSION +1 -1
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.js +6 -4
- package/dist/cjs/proto/clarifai/api/resources_pb.js +8300 -1715
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +6999 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +20160 -8780
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +37 -1
- package/dist/cjs/proto/clarifai/api/status/status_pb.js +255 -2
- package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +18 -1
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +206 -0
- package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +18 -1
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +38 -5
- package/dist/cjs/proto/clarifai/auth/types/types_pb.js +18 -1
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +18 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/proto/clarifai/api/resources_pb.js +8300 -1715
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +6999 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +20160 -8780
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +37 -1
- package/dist/esm/proto/clarifai/api/status/status_pb.js +255 -2
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +18 -1
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +206 -0
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +18 -1
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +38 -5
- package/dist/esm/proto/clarifai/auth/types/types_pb.js +18 -1
- package/dist/esm/proto/clarifai/auth/util/extension_pb.js +18 -1
- package/index.ts +3 -3
- package/package.json +3 -8
- package/package.json-E +52 -0
- package/proto/clarifai/api/resources_pb.d.ts +2022 -1020
- package/proto/clarifai/api/resources_pb.js +21288 -13035
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +2000 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +10160 -0
- package/proto/clarifai/api/service_pb.d.ts +2788 -1161
- package/proto/clarifai/api/service_pb.js +23741 -9706
- package/proto/clarifai/api/status/status_code_pb.d.ts +22 -1
- package/proto/clarifai/api/status/status_code_pb.js +29 -1
- package/proto/clarifai/api/status/status_pb.d.ts +50 -13
- package/proto/clarifai/api/status/status_pb.js +304 -2
- package/proto/clarifai/api/utils/extensions_pb.d.ts +2 -1
- package/proto/clarifai/api/utils/extensions_pb.js +10 -1
- package/proto/clarifai/api/utils/matrix_pb.d.ts +28 -0
- package/proto/clarifai/api/utils/matrix_pb.js +234 -0
- package/proto/clarifai/api/utils/test_proto_pb.d.ts +12 -11
- package/proto/clarifai/api/utils/test_proto_pb.js +10 -1
- package/proto/clarifai/auth/scope/scope_pb.d.ts +23 -8
- package/proto/clarifai/auth/scope/scope_pb.js +30 -5
- package/proto/clarifai/auth/types/types_pb.d.ts +3 -1
- package/proto/clarifai/auth/types/types_pb.js +10 -1
- package/proto/clarifai/auth/util/extension_pb.d.ts +2 -1
- package/proto/clarifai/auth/util/extension_pb.js +10 -1
- package/.husky/pre-commit +0 -4
- package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
- package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +0 -908
- package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
- package/dist/esm/proto/clarifai/api/serviceServiceClientPb.js +0 -904
- package/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
- package/tests/basic.test.ts +0 -41
- package/tests/package.test.ts +0 -0
|
@@ -3,14 +3,31 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview
|
|
5
5
|
* @enhanceable
|
|
6
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
7
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
8
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
9
|
* @public
|
|
9
10
|
*/
|
|
10
11
|
// GENERATED CODE -- DO NOT EDIT!
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
// @ts-nocheck
|
|
11
14
|
var jspb = require('google-protobuf');
|
|
12
15
|
var goog = jspb;
|
|
13
|
-
var global =
|
|
16
|
+
var global = (function () {
|
|
17
|
+
if (this) {
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
if (typeof window !== 'undefined') {
|
|
21
|
+
return window;
|
|
22
|
+
}
|
|
23
|
+
if (typeof global !== 'undefined') {
|
|
24
|
+
return global;
|
|
25
|
+
}
|
|
26
|
+
if (typeof self !== 'undefined') {
|
|
27
|
+
return self;
|
|
28
|
+
}
|
|
29
|
+
return Function('return this')();
|
|
30
|
+
}.call(null));
|
|
14
31
|
goog.exportSymbol('proto.clarifai.api.status.StatusCode', null, global);
|
|
15
32
|
/**
|
|
16
33
|
* @enum {number}
|
|
@@ -22,6 +39,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
22
39
|
FAILURE: 10020,
|
|
23
40
|
TRY_AGAIN: 10030,
|
|
24
41
|
NOT_IMPLEMENTED: 10040,
|
|
42
|
+
MOVED: 10050,
|
|
25
43
|
CONN_ACCOUNT_ISSUES: 11000,
|
|
26
44
|
CONN_TOKEN_INVALID: 11001,
|
|
27
45
|
CONN_CREDENTIALS_INVALID: 11002,
|
|
@@ -44,6 +62,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
44
62
|
MODEL_QUEUED_FOR_TRAINING: 21103,
|
|
45
63
|
MODEL_UPLOADING: 21104,
|
|
46
64
|
MODEL_UPLOADING_FAILED: 21105,
|
|
65
|
+
MODEL_TRAINING_FAILED: 21106,
|
|
47
66
|
MODEL_TRAINING_NO_DATA: 21110,
|
|
48
67
|
MODEL_TRAINING_NO_POSITIVES: 21111,
|
|
49
68
|
MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: 21112,
|
|
@@ -72,6 +91,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
72
91
|
MODEL_EVALUATION_MSG_REDELIVER: 21314,
|
|
73
92
|
MODEL_EVALUATION_NEED_LABELS: 21315,
|
|
74
93
|
MODEL_EVALUATION_NEED_INPUTS: 21316,
|
|
94
|
+
MODEL_EVALUATION_FAILED: 21317,
|
|
75
95
|
MODEL_DEPLOYMENT_FAILED: 21350,
|
|
76
96
|
MODEL_DEPLOYING: 21351,
|
|
77
97
|
MODEL_QUEUED_FOR_DEPLOYMENT: 21352,
|
|
@@ -122,11 +142,24 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
122
142
|
DATA_DUMP_FAILED: 25152,
|
|
123
143
|
DATA_DUMP_IN_PROGRESS: 25153,
|
|
124
144
|
DATA_DUMP_NO_DATA: 25154,
|
|
145
|
+
DATA_DUMP_UNEXPECTED_ERROR: 25155,
|
|
125
146
|
APP_DUPLICATION_SUCCESS: 25200,
|
|
126
147
|
APP_DUPLICATION_FAILED: 25201,
|
|
127
148
|
APP_DUPLICATION_PENDING: 25202,
|
|
128
149
|
APP_DUPLICATION_IN_PROGRESS: 25203,
|
|
129
150
|
APP_DUPLICATION_INVALID_REQUEST: 25204,
|
|
151
|
+
MODULE_DOES_NOT_EXIST: 25300,
|
|
152
|
+
MODULE_PERMISSION_DENIED: 25301,
|
|
153
|
+
MODULE_INVALID_ARGUMENT: 25302,
|
|
154
|
+
MODULE_INVALID_REQUEST: 25303,
|
|
155
|
+
BULK_OPERATION_SUCCESS: 25400,
|
|
156
|
+
BULK_OPERATION_FAILED: 25401,
|
|
157
|
+
BULK_OPERATION_PENDING: 25402,
|
|
158
|
+
BULK_OPERATION_IN_PROGRESS: 25403,
|
|
159
|
+
BULK_OPERATION_INVALID_REQUEST: 25404,
|
|
160
|
+
BULK_OPERATION_CANCELLED: 25405,
|
|
161
|
+
BULK_OPERATION_UNEXPECTED_ERROR: 25406,
|
|
162
|
+
BULK_OPERATION_DELETED: 25407,
|
|
130
163
|
INPUT_DOWNLOAD_SUCCESS: 30000,
|
|
131
164
|
INPUT_DOWNLOAD_PENDING: 30001,
|
|
132
165
|
INPUT_DOWNLOAD_FAILED: 30002,
|
|
@@ -283,6 +316,9 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
283
316
|
DATASET_VERSION_READY: 64015,
|
|
284
317
|
DATASET_VERSION_FAILURE: 64020,
|
|
285
318
|
DATASET_VERSION_UNEXPECTED_ERROR: 64025,
|
|
319
|
+
DATASET_VERSION_CONFLICT: 64030,
|
|
320
|
+
DATASET_INPUT_SUCCESS: 64100,
|
|
321
|
+
DATASET_INPUT_DUPLICATE: 64101,
|
|
286
322
|
JOB_QUEUED: 64000,
|
|
287
323
|
JOB_RUNNING: 64001,
|
|
288
324
|
JOB_COMPLETED: 64002,
|
|
@@ -3,19 +3,37 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview
|
|
5
5
|
* @enhanceable
|
|
6
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
7
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
8
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
9
|
* @public
|
|
9
10
|
*/
|
|
10
11
|
// GENERATED CODE -- DO NOT EDIT!
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
// @ts-nocheck
|
|
11
14
|
var jspb = require('google-protobuf');
|
|
12
15
|
var goog = jspb;
|
|
13
|
-
var global =
|
|
16
|
+
var global = (function () {
|
|
17
|
+
if (this) {
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
if (typeof window !== 'undefined') {
|
|
21
|
+
return window;
|
|
22
|
+
}
|
|
23
|
+
if (typeof global !== 'undefined') {
|
|
24
|
+
return global;
|
|
25
|
+
}
|
|
26
|
+
if (typeof self !== 'undefined') {
|
|
27
|
+
return self;
|
|
28
|
+
}
|
|
29
|
+
return Function('return this')();
|
|
30
|
+
}.call(null));
|
|
14
31
|
var proto_clarifai_auth_util_extension_pb = require('../../../../proto/clarifai/auth/util/extension_pb.js');
|
|
15
32
|
goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
|
|
16
33
|
var proto_clarifai_api_status_status_code_pb = require('../../../../proto/clarifai/api/status/status_code_pb.js');
|
|
17
34
|
goog.object.extend(proto, proto_clarifai_api_status_status_code_pb);
|
|
18
35
|
goog.exportSymbol('proto.clarifai.api.status.BaseResponse', null, global);
|
|
36
|
+
goog.exportSymbol('proto.clarifai.api.status.RedirectInfo', null, global);
|
|
19
37
|
goog.exportSymbol('proto.clarifai.api.status.Status', null, global);
|
|
20
38
|
/**
|
|
21
39
|
* Generated by JsPbCodeGenerator.
|
|
@@ -38,6 +56,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
38
56
|
*/
|
|
39
57
|
proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
|
|
40
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Generated by JsPbCodeGenerator.
|
|
61
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
62
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
63
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
64
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
65
|
+
* valid.
|
|
66
|
+
* @extends {jspb.Message}
|
|
67
|
+
* @constructor
|
|
68
|
+
*/
|
|
69
|
+
proto.clarifai.api.status.RedirectInfo = function (opt_data) {
|
|
70
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
71
|
+
};
|
|
72
|
+
goog.inherits(proto.clarifai.api.status.RedirectInfo, jspb.Message);
|
|
73
|
+
if (goog.DEBUG && !COMPILED) {
|
|
74
|
+
/**
|
|
75
|
+
* @public
|
|
76
|
+
* @override
|
|
77
|
+
*/
|
|
78
|
+
proto.clarifai.api.status.RedirectInfo.displayName = 'proto.clarifai.api.status.RedirectInfo';
|
|
79
|
+
}
|
|
41
80
|
/**
|
|
42
81
|
* Generated by JsPbCodeGenerator.
|
|
43
82
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -99,7 +138,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
99
138
|
percentCompleted: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
100
139
|
timeRemaining: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
101
140
|
reqId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
102
|
-
internalDetails: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
141
|
+
internalDetails: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
142
|
+
redirectInfo: (f = msg.getRedirectInfo()) && proto.clarifai.api.status.RedirectInfo.toObject(includeInstance, f)
|
|
103
143
|
};
|
|
104
144
|
if (includeInstance) {
|
|
105
145
|
obj.$jspbMessageInstance = msg;
|
|
@@ -163,6 +203,11 @@ proto.clarifai.api.status.Status.deserializeBinaryFromReader = function (msg, re
|
|
|
163
203
|
var value = /** @type {string} */ (reader.readString());
|
|
164
204
|
msg.setInternalDetails(value);
|
|
165
205
|
break;
|
|
206
|
+
case 9:
|
|
207
|
+
var value = new proto.clarifai.api.status.RedirectInfo;
|
|
208
|
+
reader.readMessage(value, proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader);
|
|
209
|
+
msg.setRedirectInfo(value);
|
|
210
|
+
break;
|
|
166
211
|
default:
|
|
167
212
|
reader.skipField();
|
|
168
213
|
break;
|
|
@@ -220,6 +265,10 @@ proto.clarifai.api.status.Status.serializeBinaryToWriter = function (message, wr
|
|
|
220
265
|
if (f.length > 0) {
|
|
221
266
|
writer.writeString(8, f);
|
|
222
267
|
}
|
|
268
|
+
f = message.getRedirectInfo();
|
|
269
|
+
if (f != null) {
|
|
270
|
+
writer.writeMessage(9, f, proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter);
|
|
271
|
+
}
|
|
223
272
|
};
|
|
224
273
|
/**
|
|
225
274
|
* optional StatusCode code = 1;
|
|
@@ -348,6 +397,210 @@ proto.clarifai.api.status.Status.prototype.getInternalDetails = function () {
|
|
|
348
397
|
proto.clarifai.api.status.Status.prototype.setInternalDetails = function (value) {
|
|
349
398
|
return jspb.Message.setProto3StringField(this, 8, value);
|
|
350
399
|
};
|
|
400
|
+
/**
|
|
401
|
+
* optional RedirectInfo redirect_info = 9;
|
|
402
|
+
* @return {?proto.clarifai.api.status.RedirectInfo}
|
|
403
|
+
*/
|
|
404
|
+
proto.clarifai.api.status.Status.prototype.getRedirectInfo = function () {
|
|
405
|
+
return /** @type{?proto.clarifai.api.status.RedirectInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.status.RedirectInfo, 9));
|
|
406
|
+
};
|
|
407
|
+
/**
|
|
408
|
+
* @param {?proto.clarifai.api.status.RedirectInfo|undefined} value
|
|
409
|
+
* @return {!proto.clarifai.api.status.Status} returns this
|
|
410
|
+
*/
|
|
411
|
+
proto.clarifai.api.status.Status.prototype.setRedirectInfo = function (value) {
|
|
412
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* Clears the message field making it undefined.
|
|
416
|
+
* @return {!proto.clarifai.api.status.Status} returns this
|
|
417
|
+
*/
|
|
418
|
+
proto.clarifai.api.status.Status.prototype.clearRedirectInfo = function () {
|
|
419
|
+
return this.setRedirectInfo(undefined);
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* Returns whether this field is set.
|
|
423
|
+
* @return {boolean}
|
|
424
|
+
*/
|
|
425
|
+
proto.clarifai.api.status.Status.prototype.hasRedirectInfo = function () {
|
|
426
|
+
return jspb.Message.getField(this, 9) != null;
|
|
427
|
+
};
|
|
428
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
429
|
+
/**
|
|
430
|
+
* Creates an object representation of this proto.
|
|
431
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
432
|
+
* Optional fields that are not set will be set to undefined.
|
|
433
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
434
|
+
* For the list of reserved names please see:
|
|
435
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
436
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
437
|
+
* JSPB instance for transitional soy proto support:
|
|
438
|
+
* http://goto/soy-param-migration
|
|
439
|
+
* @return {!Object}
|
|
440
|
+
*/
|
|
441
|
+
proto.clarifai.api.status.RedirectInfo.prototype.toObject = function (opt_includeInstance) {
|
|
442
|
+
return proto.clarifai.api.status.RedirectInfo.toObject(opt_includeInstance, this);
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* Static version of the {@see toObject} method.
|
|
446
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
447
|
+
* the JSPB instance for transitional soy proto support:
|
|
448
|
+
* http://goto/soy-param-migration
|
|
449
|
+
* @param {!proto.clarifai.api.status.RedirectInfo} msg The msg instance to transform.
|
|
450
|
+
* @return {!Object}
|
|
451
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
452
|
+
*/
|
|
453
|
+
proto.clarifai.api.status.RedirectInfo.toObject = function (includeInstance, msg) {
|
|
454
|
+
var f, obj = {
|
|
455
|
+
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
456
|
+
resourceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
457
|
+
oldResourceId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
458
|
+
newResourceId: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
459
|
+
};
|
|
460
|
+
if (includeInstance) {
|
|
461
|
+
obj.$jspbMessageInstance = msg;
|
|
462
|
+
}
|
|
463
|
+
return obj;
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Deserializes binary data (in protobuf wire format).
|
|
468
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
469
|
+
* @return {!proto.clarifai.api.status.RedirectInfo}
|
|
470
|
+
*/
|
|
471
|
+
proto.clarifai.api.status.RedirectInfo.deserializeBinary = function (bytes) {
|
|
472
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
473
|
+
var msg = new proto.clarifai.api.status.RedirectInfo;
|
|
474
|
+
return proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader(msg, reader);
|
|
475
|
+
};
|
|
476
|
+
/**
|
|
477
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
478
|
+
* given reader into the given message object.
|
|
479
|
+
* @param {!proto.clarifai.api.status.RedirectInfo} msg The message object to deserialize into.
|
|
480
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
481
|
+
* @return {!proto.clarifai.api.status.RedirectInfo}
|
|
482
|
+
*/
|
|
483
|
+
proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader = function (msg, reader) {
|
|
484
|
+
while (reader.nextField()) {
|
|
485
|
+
if (reader.isEndGroup()) {
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
var field = reader.getFieldNumber();
|
|
489
|
+
switch (field) {
|
|
490
|
+
case 1:
|
|
491
|
+
var value = /** @type {string} */ (reader.readString());
|
|
492
|
+
msg.setUrl(value);
|
|
493
|
+
break;
|
|
494
|
+
case 2:
|
|
495
|
+
var value = /** @type {string} */ (reader.readString());
|
|
496
|
+
msg.setResourceType(value);
|
|
497
|
+
break;
|
|
498
|
+
case 3:
|
|
499
|
+
var value = /** @type {string} */ (reader.readString());
|
|
500
|
+
msg.setOldResourceId(value);
|
|
501
|
+
break;
|
|
502
|
+
case 4:
|
|
503
|
+
var value = /** @type {string} */ (reader.readString());
|
|
504
|
+
msg.setNewResourceId(value);
|
|
505
|
+
break;
|
|
506
|
+
default:
|
|
507
|
+
reader.skipField();
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
return msg;
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
515
|
+
* @return {!Uint8Array}
|
|
516
|
+
*/
|
|
517
|
+
proto.clarifai.api.status.RedirectInfo.prototype.serializeBinary = function () {
|
|
518
|
+
var writer = new jspb.BinaryWriter();
|
|
519
|
+
proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter(this, writer);
|
|
520
|
+
return writer.getResultBuffer();
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
524
|
+
* format), writing to the given BinaryWriter.
|
|
525
|
+
* @param {!proto.clarifai.api.status.RedirectInfo} message
|
|
526
|
+
* @param {!jspb.BinaryWriter} writer
|
|
527
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
528
|
+
*/
|
|
529
|
+
proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter = function (message, writer) {
|
|
530
|
+
var f = undefined;
|
|
531
|
+
f = message.getUrl();
|
|
532
|
+
if (f.length > 0) {
|
|
533
|
+
writer.writeString(1, f);
|
|
534
|
+
}
|
|
535
|
+
f = message.getResourceType();
|
|
536
|
+
if (f.length > 0) {
|
|
537
|
+
writer.writeString(2, f);
|
|
538
|
+
}
|
|
539
|
+
f = message.getOldResourceId();
|
|
540
|
+
if (f.length > 0) {
|
|
541
|
+
writer.writeString(3, f);
|
|
542
|
+
}
|
|
543
|
+
f = message.getNewResourceId();
|
|
544
|
+
if (f.length > 0) {
|
|
545
|
+
writer.writeString(4, f);
|
|
546
|
+
}
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* optional string url = 1;
|
|
550
|
+
* @return {string}
|
|
551
|
+
*/
|
|
552
|
+
proto.clarifai.api.status.RedirectInfo.prototype.getUrl = function () {
|
|
553
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
554
|
+
};
|
|
555
|
+
/**
|
|
556
|
+
* @param {string} value
|
|
557
|
+
* @return {!proto.clarifai.api.status.RedirectInfo} returns this
|
|
558
|
+
*/
|
|
559
|
+
proto.clarifai.api.status.RedirectInfo.prototype.setUrl = function (value) {
|
|
560
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
561
|
+
};
|
|
562
|
+
/**
|
|
563
|
+
* optional string resource_type = 2;
|
|
564
|
+
* @return {string}
|
|
565
|
+
*/
|
|
566
|
+
proto.clarifai.api.status.RedirectInfo.prototype.getResourceType = function () {
|
|
567
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
568
|
+
};
|
|
569
|
+
/**
|
|
570
|
+
* @param {string} value
|
|
571
|
+
* @return {!proto.clarifai.api.status.RedirectInfo} returns this
|
|
572
|
+
*/
|
|
573
|
+
proto.clarifai.api.status.RedirectInfo.prototype.setResourceType = function (value) {
|
|
574
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
575
|
+
};
|
|
576
|
+
/**
|
|
577
|
+
* optional string old_resource_id = 3;
|
|
578
|
+
* @return {string}
|
|
579
|
+
*/
|
|
580
|
+
proto.clarifai.api.status.RedirectInfo.prototype.getOldResourceId = function () {
|
|
581
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
582
|
+
};
|
|
583
|
+
/**
|
|
584
|
+
* @param {string} value
|
|
585
|
+
* @return {!proto.clarifai.api.status.RedirectInfo} returns this
|
|
586
|
+
*/
|
|
587
|
+
proto.clarifai.api.status.RedirectInfo.prototype.setOldResourceId = function (value) {
|
|
588
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* optional string new_resource_id = 4;
|
|
592
|
+
* @return {string}
|
|
593
|
+
*/
|
|
594
|
+
proto.clarifai.api.status.RedirectInfo.prototype.getNewResourceId = function () {
|
|
595
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
596
|
+
};
|
|
597
|
+
/**
|
|
598
|
+
* @param {string} value
|
|
599
|
+
* @return {!proto.clarifai.api.status.RedirectInfo} returns this
|
|
600
|
+
*/
|
|
601
|
+
proto.clarifai.api.status.RedirectInfo.prototype.setNewResourceId = function (value) {
|
|
602
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
603
|
+
};
|
|
351
604
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
352
605
|
/**
|
|
353
606
|
* Creates an object representation of this proto.
|
|
@@ -3,14 +3,31 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview
|
|
5
5
|
* @enhanceable
|
|
6
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
7
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
8
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
9
|
* @public
|
|
9
10
|
*/
|
|
10
11
|
// GENERATED CODE -- DO NOT EDIT!
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
// @ts-nocheck
|
|
11
14
|
var jspb = require('google-protobuf');
|
|
12
15
|
var goog = jspb;
|
|
13
|
-
var global =
|
|
16
|
+
var global = (function () {
|
|
17
|
+
if (this) {
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
if (typeof window !== 'undefined') {
|
|
21
|
+
return window;
|
|
22
|
+
}
|
|
23
|
+
if (typeof global !== 'undefined') {
|
|
24
|
+
return global;
|
|
25
|
+
}
|
|
26
|
+
if (typeof self !== 'undefined') {
|
|
27
|
+
return self;
|
|
28
|
+
}
|
|
29
|
+
return Function('return this')();
|
|
30
|
+
}.call(null));
|
|
14
31
|
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
|
15
32
|
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
|
16
33
|
goog.exportSymbol('proto.clarifai.api.utils.clDefaultFloat', null, global);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// source: proto/clarifai/api/utils/matrix.proto
|
|
3
|
+
/**
|
|
4
|
+
* @fileoverview
|
|
5
|
+
* @enhanceable
|
|
6
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
7
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
8
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
// @ts-nocheck
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function () {
|
|
17
|
+
if (this) {
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
if (typeof window !== 'undefined') {
|
|
21
|
+
return window;
|
|
22
|
+
}
|
|
23
|
+
if (typeof global !== 'undefined') {
|
|
24
|
+
return global;
|
|
25
|
+
}
|
|
26
|
+
if (typeof self !== 'undefined') {
|
|
27
|
+
return self;
|
|
28
|
+
}
|
|
29
|
+
return Function('return this')();
|
|
30
|
+
}.call(null));
|
|
31
|
+
goog.exportSymbol('proto.MatrixUint64', null, global);
|
|
32
|
+
/**
|
|
33
|
+
* Generated by JsPbCodeGenerator.
|
|
34
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
35
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
36
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
37
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
38
|
+
* valid.
|
|
39
|
+
* @extends {jspb.Message}
|
|
40
|
+
* @constructor
|
|
41
|
+
*/
|
|
42
|
+
proto.MatrixUint64 = function (opt_data) {
|
|
43
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.MatrixUint64.repeatedFields_, null);
|
|
44
|
+
};
|
|
45
|
+
goog.inherits(proto.MatrixUint64, jspb.Message);
|
|
46
|
+
if (goog.DEBUG && !COMPILED) {
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
* @override
|
|
50
|
+
*/
|
|
51
|
+
proto.MatrixUint64.displayName = 'proto.MatrixUint64';
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* List of repeated fields within this message type.
|
|
55
|
+
* @private {!Array<number>}
|
|
56
|
+
* @const
|
|
57
|
+
*/
|
|
58
|
+
proto.MatrixUint64.repeatedFields_ = [2];
|
|
59
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60
|
+
/**
|
|
61
|
+
* Creates an object representation of this proto.
|
|
62
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
63
|
+
* Optional fields that are not set will be set to undefined.
|
|
64
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
65
|
+
* For the list of reserved names please see:
|
|
66
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
67
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
68
|
+
* JSPB instance for transitional soy proto support:
|
|
69
|
+
* http://goto/soy-param-migration
|
|
70
|
+
* @return {!Object}
|
|
71
|
+
*/
|
|
72
|
+
proto.MatrixUint64.prototype.toObject = function (opt_includeInstance) {
|
|
73
|
+
return proto.MatrixUint64.toObject(opt_includeInstance, this);
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Static version of the {@see toObject} method.
|
|
77
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
78
|
+
* the JSPB instance for transitional soy proto support:
|
|
79
|
+
* http://goto/soy-param-migration
|
|
80
|
+
* @param {!proto.MatrixUint64} msg The msg instance to transform.
|
|
81
|
+
* @return {!Object}
|
|
82
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
83
|
+
*/
|
|
84
|
+
proto.MatrixUint64.toObject = function (includeInstance, msg) {
|
|
85
|
+
var f, obj = {
|
|
86
|
+
nCols: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
87
|
+
dataList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
88
|
+
};
|
|
89
|
+
if (includeInstance) {
|
|
90
|
+
obj.$jspbMessageInstance = msg;
|
|
91
|
+
}
|
|
92
|
+
return obj;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Deserializes binary data (in protobuf wire format).
|
|
97
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
98
|
+
* @return {!proto.MatrixUint64}
|
|
99
|
+
*/
|
|
100
|
+
proto.MatrixUint64.deserializeBinary = function (bytes) {
|
|
101
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
102
|
+
var msg = new proto.MatrixUint64;
|
|
103
|
+
return proto.MatrixUint64.deserializeBinaryFromReader(msg, reader);
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
107
|
+
* given reader into the given message object.
|
|
108
|
+
* @param {!proto.MatrixUint64} msg The message object to deserialize into.
|
|
109
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
110
|
+
* @return {!proto.MatrixUint64}
|
|
111
|
+
*/
|
|
112
|
+
proto.MatrixUint64.deserializeBinaryFromReader = function (msg, reader) {
|
|
113
|
+
while (reader.nextField()) {
|
|
114
|
+
if (reader.isEndGroup()) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
var field = reader.getFieldNumber();
|
|
118
|
+
switch (field) {
|
|
119
|
+
case 1:
|
|
120
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
121
|
+
msg.setNCols(value);
|
|
122
|
+
break;
|
|
123
|
+
case 2:
|
|
124
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
|
|
125
|
+
for (var i = 0; i < values.length; i++) {
|
|
126
|
+
msg.addData(values[i]);
|
|
127
|
+
}
|
|
128
|
+
break;
|
|
129
|
+
default:
|
|
130
|
+
reader.skipField();
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return msg;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
138
|
+
* @return {!Uint8Array}
|
|
139
|
+
*/
|
|
140
|
+
proto.MatrixUint64.prototype.serializeBinary = function () {
|
|
141
|
+
var writer = new jspb.BinaryWriter();
|
|
142
|
+
proto.MatrixUint64.serializeBinaryToWriter(this, writer);
|
|
143
|
+
return writer.getResultBuffer();
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
147
|
+
* format), writing to the given BinaryWriter.
|
|
148
|
+
* @param {!proto.MatrixUint64} message
|
|
149
|
+
* @param {!jspb.BinaryWriter} writer
|
|
150
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
151
|
+
*/
|
|
152
|
+
proto.MatrixUint64.serializeBinaryToWriter = function (message, writer) {
|
|
153
|
+
var f = undefined;
|
|
154
|
+
f = message.getNCols();
|
|
155
|
+
if (f !== 0) {
|
|
156
|
+
writer.writeUint64(1, f);
|
|
157
|
+
}
|
|
158
|
+
f = message.getDataList();
|
|
159
|
+
if (f.length > 0) {
|
|
160
|
+
writer.writePackedUint64(2, f);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* optional uint64 n_cols = 1;
|
|
165
|
+
* @return {number}
|
|
166
|
+
*/
|
|
167
|
+
proto.MatrixUint64.prototype.getNCols = function () {
|
|
168
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* @param {number} value
|
|
172
|
+
* @return {!proto.MatrixUint64} returns this
|
|
173
|
+
*/
|
|
174
|
+
proto.MatrixUint64.prototype.setNCols = function (value) {
|
|
175
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* repeated uint64 data = 2;
|
|
179
|
+
* @return {!Array<number>}
|
|
180
|
+
*/
|
|
181
|
+
proto.MatrixUint64.prototype.getDataList = function () {
|
|
182
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* @param {!Array<number>} value
|
|
186
|
+
* @return {!proto.MatrixUint64} returns this
|
|
187
|
+
*/
|
|
188
|
+
proto.MatrixUint64.prototype.setDataList = function (value) {
|
|
189
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* @param {number} value
|
|
193
|
+
* @param {number=} opt_index
|
|
194
|
+
* @return {!proto.MatrixUint64} returns this
|
|
195
|
+
*/
|
|
196
|
+
proto.MatrixUint64.prototype.addData = function (value, opt_index) {
|
|
197
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Clears the list making it empty but non-null.
|
|
201
|
+
* @return {!proto.MatrixUint64} returns this
|
|
202
|
+
*/
|
|
203
|
+
proto.MatrixUint64.prototype.clearDataList = function () {
|
|
204
|
+
return this.setDataList([]);
|
|
205
|
+
};
|
|
206
|
+
goog.object.extend(exports, proto);
|
|
@@ -3,14 +3,31 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview
|
|
5
5
|
* @enhanceable
|
|
6
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
7
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
8
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
9
|
* @public
|
|
9
10
|
*/
|
|
10
11
|
// GENERATED CODE -- DO NOT EDIT!
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
// @ts-nocheck
|
|
11
14
|
var jspb = require('google-protobuf');
|
|
12
15
|
var goog = jspb;
|
|
13
|
-
var global =
|
|
16
|
+
var global = (function () {
|
|
17
|
+
if (this) {
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
if (typeof window !== 'undefined') {
|
|
21
|
+
return window;
|
|
22
|
+
}
|
|
23
|
+
if (typeof global !== 'undefined') {
|
|
24
|
+
return global;
|
|
25
|
+
}
|
|
26
|
+
if (typeof self !== 'undefined') {
|
|
27
|
+
return self;
|
|
28
|
+
}
|
|
29
|
+
return Function('return this')();
|
|
30
|
+
}.call(null));
|
|
14
31
|
var proto_clarifai_api_utils_extensions_pb = require('../../../../proto/clarifai/api/utils/extensions_pb.js');
|
|
15
32
|
goog.object.extend(proto, proto_clarifai_api_utils_extensions_pb);
|
|
16
33
|
goog.exportSymbol('proto.clarifai.api.utils.TestProto', null, global);
|