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.
Files changed (67) hide show
  1. package/.github/workflows/ci.yml +0 -2
  2. package/CHANGELOG.md +3 -10
  3. package/README.md +2 -2
  4. package/VERSION +1 -1
  5. package/dist/cjs/index.d.ts +3 -3
  6. package/dist/cjs/index.js +6 -4
  7. package/dist/cjs/proto/clarifai/api/resources_pb.js +8300 -1715
  8. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
  9. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +6999 -0
  10. package/dist/cjs/proto/clarifai/api/service_pb.js +20160 -8780
  11. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +37 -1
  12. package/dist/cjs/proto/clarifai/api/status/status_pb.js +255 -2
  13. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +18 -1
  14. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
  15. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +206 -0
  16. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +18 -1
  17. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +38 -5
  18. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +18 -1
  19. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +18 -1
  20. package/dist/esm/index.d.ts +3 -3
  21. package/dist/esm/index.js +3 -3
  22. package/dist/esm/proto/clarifai/api/resources_pb.js +8300 -1715
  23. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
  24. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +6999 -0
  25. package/dist/esm/proto/clarifai/api/service_pb.js +20160 -8780
  26. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +37 -1
  27. package/dist/esm/proto/clarifai/api/status/status_pb.js +255 -2
  28. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +18 -1
  29. package/dist/esm/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
  30. package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +206 -0
  31. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +18 -1
  32. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +38 -5
  33. package/dist/esm/proto/clarifai/auth/types/types_pb.js +18 -1
  34. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +18 -1
  35. package/index.ts +3 -3
  36. package/package.json +3 -8
  37. package/package.json-E +52 -0
  38. package/proto/clarifai/api/resources_pb.d.ts +2022 -1020
  39. package/proto/clarifai/api/resources_pb.js +21288 -13035
  40. package/proto/clarifai/api/service_grpc_web_pb.d.ts +2000 -0
  41. package/proto/clarifai/api/service_grpc_web_pb.js +10160 -0
  42. package/proto/clarifai/api/service_pb.d.ts +2788 -1161
  43. package/proto/clarifai/api/service_pb.js +23741 -9706
  44. package/proto/clarifai/api/status/status_code_pb.d.ts +22 -1
  45. package/proto/clarifai/api/status/status_code_pb.js +29 -1
  46. package/proto/clarifai/api/status/status_pb.d.ts +50 -13
  47. package/proto/clarifai/api/status/status_pb.js +304 -2
  48. package/proto/clarifai/api/utils/extensions_pb.d.ts +2 -1
  49. package/proto/clarifai/api/utils/extensions_pb.js +10 -1
  50. package/proto/clarifai/api/utils/matrix_pb.d.ts +28 -0
  51. package/proto/clarifai/api/utils/matrix_pb.js +234 -0
  52. package/proto/clarifai/api/utils/test_proto_pb.d.ts +12 -11
  53. package/proto/clarifai/api/utils/test_proto_pb.js +10 -1
  54. package/proto/clarifai/auth/scope/scope_pb.d.ts +23 -8
  55. package/proto/clarifai/auth/scope/scope_pb.js +30 -5
  56. package/proto/clarifai/auth/types/types_pb.d.ts +3 -1
  57. package/proto/clarifai/auth/types/types_pb.js +10 -1
  58. package/proto/clarifai/auth/util/extension_pb.d.ts +2 -1
  59. package/proto/clarifai/auth/util/extension_pb.js +10 -1
  60. package/.husky/pre-commit +0 -4
  61. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  62. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +0 -908
  63. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  64. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.js +0 -904
  65. package/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
  66. package/tests/basic.test.ts +0 -41
  67. package/tests/package.test.ts +0 -0
@@ -1,4 +1,6 @@
1
- import * as jspb from "google-protobuf"
1
+ import * as jspb from 'google-protobuf'
2
+
3
+
2
4
 
3
5
  export enum StatusCode {
4
6
  ZERO = 0,
@@ -7,6 +9,7 @@ export enum StatusCode {
7
9
  FAILURE = 10020,
8
10
  TRY_AGAIN = 10030,
9
11
  NOT_IMPLEMENTED = 10040,
12
+ MOVED = 10050,
10
13
  CONN_ACCOUNT_ISSUES = 11000,
11
14
  CONN_TOKEN_INVALID = 11001,
12
15
  CONN_CREDENTIALS_INVALID = 11002,
@@ -29,6 +32,7 @@ export enum StatusCode {
29
32
  MODEL_QUEUED_FOR_TRAINING = 21103,
30
33
  MODEL_UPLOADING = 21104,
31
34
  MODEL_UPLOADING_FAILED = 21105,
35
+ MODEL_TRAINING_FAILED = 21106,
32
36
  MODEL_TRAINING_NO_DATA = 21110,
33
37
  MODEL_TRAINING_NO_POSITIVES = 21111,
34
38
  MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS = 21112,
@@ -57,6 +61,7 @@ export enum StatusCode {
57
61
  MODEL_EVALUATION_MSG_REDELIVER = 21314,
58
62
  MODEL_EVALUATION_NEED_LABELS = 21315,
59
63
  MODEL_EVALUATION_NEED_INPUTS = 21316,
64
+ MODEL_EVALUATION_FAILED = 21317,
60
65
  MODEL_DEPLOYMENT_FAILED = 21350,
61
66
  MODEL_DEPLOYING = 21351,
62
67
  MODEL_QUEUED_FOR_DEPLOYMENT = 21352,
@@ -107,11 +112,24 @@ export enum StatusCode {
107
112
  DATA_DUMP_FAILED = 25152,
108
113
  DATA_DUMP_IN_PROGRESS = 25153,
109
114
  DATA_DUMP_NO_DATA = 25154,
115
+ DATA_DUMP_UNEXPECTED_ERROR = 25155,
110
116
  APP_DUPLICATION_SUCCESS = 25200,
111
117
  APP_DUPLICATION_FAILED = 25201,
112
118
  APP_DUPLICATION_PENDING = 25202,
113
119
  APP_DUPLICATION_IN_PROGRESS = 25203,
114
120
  APP_DUPLICATION_INVALID_REQUEST = 25204,
121
+ MODULE_DOES_NOT_EXIST = 25300,
122
+ MODULE_PERMISSION_DENIED = 25301,
123
+ MODULE_INVALID_ARGUMENT = 25302,
124
+ MODULE_INVALID_REQUEST = 25303,
125
+ BULK_OPERATION_SUCCESS = 25400,
126
+ BULK_OPERATION_FAILED = 25401,
127
+ BULK_OPERATION_PENDING = 25402,
128
+ BULK_OPERATION_IN_PROGRESS = 25403,
129
+ BULK_OPERATION_INVALID_REQUEST = 25404,
130
+ BULK_OPERATION_CANCELLED = 25405,
131
+ BULK_OPERATION_UNEXPECTED_ERROR = 25406,
132
+ BULK_OPERATION_DELETED = 25407,
115
133
  INPUT_DOWNLOAD_SUCCESS = 30000,
116
134
  INPUT_DOWNLOAD_PENDING = 30001,
117
135
  INPUT_DOWNLOAD_FAILED = 30002,
@@ -268,6 +286,9 @@ export enum StatusCode {
268
286
  DATASET_VERSION_READY = 64015,
269
287
  DATASET_VERSION_FAILURE = 64020,
270
288
  DATASET_VERSION_UNEXPECTED_ERROR = 64025,
289
+ DATASET_VERSION_CONFLICT = 64030,
290
+ DATASET_INPUT_SUCCESS = 64100,
291
+ DATASET_INPUT_DUPLICATE = 64101,
271
292
  JOB_QUEUED = 64000,
272
293
  JOB_RUNNING = 64001,
273
294
  JOB_COMPLETED = 64002,
@@ -2,15 +2,24 @@
2
2
  /**
3
3
  * @fileoverview
4
4
  * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
5
6
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
7
  * field starts with 'MSG_' and isn't a translatable message.
7
8
  * @public
8
9
  */
9
10
  // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
10
13
 
11
14
  var jspb = require('google-protobuf');
12
15
  var goog = jspb;
13
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
14
23
 
15
24
  goog.exportSymbol('proto.clarifai.api.status.StatusCode', null, global);
16
25
  /**
@@ -23,6 +32,7 @@ proto.clarifai.api.status.StatusCode = {
23
32
  FAILURE: 10020,
24
33
  TRY_AGAIN: 10030,
25
34
  NOT_IMPLEMENTED: 10040,
35
+ MOVED: 10050,
26
36
  CONN_ACCOUNT_ISSUES: 11000,
27
37
  CONN_TOKEN_INVALID: 11001,
28
38
  CONN_CREDENTIALS_INVALID: 11002,
@@ -45,6 +55,7 @@ proto.clarifai.api.status.StatusCode = {
45
55
  MODEL_QUEUED_FOR_TRAINING: 21103,
46
56
  MODEL_UPLOADING: 21104,
47
57
  MODEL_UPLOADING_FAILED: 21105,
58
+ MODEL_TRAINING_FAILED: 21106,
48
59
  MODEL_TRAINING_NO_DATA: 21110,
49
60
  MODEL_TRAINING_NO_POSITIVES: 21111,
50
61
  MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: 21112,
@@ -73,6 +84,7 @@ proto.clarifai.api.status.StatusCode = {
73
84
  MODEL_EVALUATION_MSG_REDELIVER: 21314,
74
85
  MODEL_EVALUATION_NEED_LABELS: 21315,
75
86
  MODEL_EVALUATION_NEED_INPUTS: 21316,
87
+ MODEL_EVALUATION_FAILED: 21317,
76
88
  MODEL_DEPLOYMENT_FAILED: 21350,
77
89
  MODEL_DEPLOYING: 21351,
78
90
  MODEL_QUEUED_FOR_DEPLOYMENT: 21352,
@@ -123,11 +135,24 @@ proto.clarifai.api.status.StatusCode = {
123
135
  DATA_DUMP_FAILED: 25152,
124
136
  DATA_DUMP_IN_PROGRESS: 25153,
125
137
  DATA_DUMP_NO_DATA: 25154,
138
+ DATA_DUMP_UNEXPECTED_ERROR: 25155,
126
139
  APP_DUPLICATION_SUCCESS: 25200,
127
140
  APP_DUPLICATION_FAILED: 25201,
128
141
  APP_DUPLICATION_PENDING: 25202,
129
142
  APP_DUPLICATION_IN_PROGRESS: 25203,
130
143
  APP_DUPLICATION_INVALID_REQUEST: 25204,
144
+ MODULE_DOES_NOT_EXIST: 25300,
145
+ MODULE_PERMISSION_DENIED: 25301,
146
+ MODULE_INVALID_ARGUMENT: 25302,
147
+ MODULE_INVALID_REQUEST: 25303,
148
+ BULK_OPERATION_SUCCESS: 25400,
149
+ BULK_OPERATION_FAILED: 25401,
150
+ BULK_OPERATION_PENDING: 25402,
151
+ BULK_OPERATION_IN_PROGRESS: 25403,
152
+ BULK_OPERATION_INVALID_REQUEST: 25404,
153
+ BULK_OPERATION_CANCELLED: 25405,
154
+ BULK_OPERATION_UNEXPECTED_ERROR: 25406,
155
+ BULK_OPERATION_DELETED: 25407,
131
156
  INPUT_DOWNLOAD_SUCCESS: 30000,
132
157
  INPUT_DOWNLOAD_PENDING: 30001,
133
158
  INPUT_DOWNLOAD_FAILED: 30002,
@@ -284,6 +309,9 @@ proto.clarifai.api.status.StatusCode = {
284
309
  DATASET_VERSION_READY: 64015,
285
310
  DATASET_VERSION_FAILURE: 64020,
286
311
  DATASET_VERSION_UNEXPECTED_ERROR: 64025,
312
+ DATASET_VERSION_CONFLICT: 64030,
313
+ DATASET_INPUT_SUCCESS: 64100,
314
+ DATASET_INPUT_DUPLICATE: 64101,
287
315
  JOB_QUEUED: 64000,
288
316
  JOB_RUNNING: 64001,
289
317
  JOB_COMPLETED: 64002,
@@ -1,34 +1,40 @@
1
- import * as jspb from "google-protobuf"
1
+ import * as jspb from 'google-protobuf'
2
2
 
3
3
  import * as proto_clarifai_auth_util_extension_pb from '../../../../proto/clarifai/auth/util/extension_pb';
4
4
  import * as proto_clarifai_api_status_status_code_pb from '../../../../proto/clarifai/api/status/status_code_pb';
5
5
 
6
+
6
7
  export class Status extends jspb.Message {
7
8
  getCode(): proto_clarifai_api_status_status_code_pb.StatusCode;
8
- setCode(value: proto_clarifai_api_status_status_code_pb.StatusCode): void;
9
+ setCode(value: proto_clarifai_api_status_status_code_pb.StatusCode): Status;
9
10
 
10
11
  getDescription(): string;
11
- setDescription(value: string): void;
12
+ setDescription(value: string): Status;
12
13
 
13
14
  getDetails(): string;
14
- setDetails(value: string): void;
15
+ setDetails(value: string): Status;
15
16
 
16
17
  getStackTraceList(): Array<string>;
17
- setStackTraceList(value: Array<string>): void;
18
- clearStackTraceList(): void;
19
- addStackTrace(value: string, index?: number): void;
18
+ setStackTraceList(value: Array<string>): Status;
19
+ clearStackTraceList(): Status;
20
+ addStackTrace(value: string, index?: number): Status;
20
21
 
21
22
  getPercentCompleted(): number;
22
- setPercentCompleted(value: number): void;
23
+ setPercentCompleted(value: number): Status;
23
24
 
24
25
  getTimeRemaining(): number;
25
- setTimeRemaining(value: number): void;
26
+ setTimeRemaining(value: number): Status;
26
27
 
27
28
  getReqId(): string;
28
- setReqId(value: string): void;
29
+ setReqId(value: string): Status;
29
30
 
30
31
  getInternalDetails(): string;
31
- setInternalDetails(value: string): void;
32
+ setInternalDetails(value: string): Status;
33
+
34
+ getRedirectInfo(): RedirectInfo | undefined;
35
+ setRedirectInfo(value?: RedirectInfo): Status;
36
+ hasRedirectInfo(): boolean;
37
+ clearRedirectInfo(): Status;
32
38
 
33
39
  serializeBinary(): Uint8Array;
34
40
  toObject(includeInstance?: boolean): Status.AsObject;
@@ -48,14 +54,45 @@ export namespace Status {
48
54
  timeRemaining: number,
49
55
  reqId: string,
50
56
  internalDetails: string,
57
+ redirectInfo?: RedirectInfo.AsObject,
58
+ }
59
+ }
60
+
61
+ export class RedirectInfo extends jspb.Message {
62
+ getUrl(): string;
63
+ setUrl(value: string): RedirectInfo;
64
+
65
+ getResourceType(): string;
66
+ setResourceType(value: string): RedirectInfo;
67
+
68
+ getOldResourceId(): string;
69
+ setOldResourceId(value: string): RedirectInfo;
70
+
71
+ getNewResourceId(): string;
72
+ setNewResourceId(value: string): RedirectInfo;
73
+
74
+ serializeBinary(): Uint8Array;
75
+ toObject(includeInstance?: boolean): RedirectInfo.AsObject;
76
+ static toObject(includeInstance: boolean, msg: RedirectInfo): RedirectInfo.AsObject;
77
+ static serializeBinaryToWriter(message: RedirectInfo, writer: jspb.BinaryWriter): void;
78
+ static deserializeBinary(bytes: Uint8Array): RedirectInfo;
79
+ static deserializeBinaryFromReader(message: RedirectInfo, reader: jspb.BinaryReader): RedirectInfo;
80
+ }
81
+
82
+ export namespace RedirectInfo {
83
+ export type AsObject = {
84
+ url: string,
85
+ resourceType: string,
86
+ oldResourceId: string,
87
+ newResourceId: string,
51
88
  }
52
89
  }
53
90
 
54
91
  export class BaseResponse extends jspb.Message {
55
92
  getStatus(): Status | undefined;
56
- setStatus(value?: Status): void;
93
+ setStatus(value?: Status): BaseResponse;
57
94
  hasStatus(): boolean;
58
- clearStatus(): void;
95
+ clearStatus(): BaseResponse;
59
96
 
60
97
  serializeBinary(): Uint8Array;
61
98
  toObject(includeInstance?: boolean): BaseResponse.AsObject;
@@ -2,21 +2,31 @@
2
2
  /**
3
3
  * @fileoverview
4
4
  * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
5
6
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
7
  * field starts with 'MSG_' and isn't a translatable message.
7
8
  * @public
8
9
  */
9
10
  // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
10
13
 
11
14
  var jspb = require('google-protobuf');
12
15
  var goog = jspb;
13
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
14
23
 
15
24
  var proto_clarifai_auth_util_extension_pb = require('../../../../proto/clarifai/auth/util/extension_pb.js');
16
25
  goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
17
26
  var proto_clarifai_api_status_status_code_pb = require('../../../../proto/clarifai/api/status/status_code_pb.js');
18
27
  goog.object.extend(proto, proto_clarifai_api_status_status_code_pb);
19
28
  goog.exportSymbol('proto.clarifai.api.status.BaseResponse', null, global);
29
+ goog.exportSymbol('proto.clarifai.api.status.RedirectInfo', null, global);
20
30
  goog.exportSymbol('proto.clarifai.api.status.Status', null, global);
21
31
  /**
22
32
  * Generated by JsPbCodeGenerator.
@@ -39,6 +49,27 @@ if (goog.DEBUG && !COMPILED) {
39
49
  */
40
50
  proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
41
51
  }
52
+ /**
53
+ * Generated by JsPbCodeGenerator.
54
+ * @param {Array=} opt_data Optional initial data array, typically from a
55
+ * server response, or constructed directly in Javascript. The array is used
56
+ * in place and becomes part of the constructed object. It is not cloned.
57
+ * If no data is provided, the constructed object will be empty, but still
58
+ * valid.
59
+ * @extends {jspb.Message}
60
+ * @constructor
61
+ */
62
+ proto.clarifai.api.status.RedirectInfo = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
+ };
65
+ goog.inherits(proto.clarifai.api.status.RedirectInfo, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.clarifai.api.status.RedirectInfo.displayName = 'proto.clarifai.api.status.RedirectInfo';
72
+ }
42
73
  /**
43
74
  * Generated by JsPbCodeGenerator.
44
75
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -106,7 +137,8 @@ proto.clarifai.api.status.Status.toObject = function(includeInstance, msg) {
106
137
  percentCompleted: jspb.Message.getFieldWithDefault(msg, 5, 0),
107
138
  timeRemaining: jspb.Message.getFieldWithDefault(msg, 6, 0),
108
139
  reqId: jspb.Message.getFieldWithDefault(msg, 7, ""),
109
- internalDetails: jspb.Message.getFieldWithDefault(msg, 8, "")
140
+ internalDetails: jspb.Message.getFieldWithDefault(msg, 8, ""),
141
+ redirectInfo: (f = msg.getRedirectInfo()) && proto.clarifai.api.status.RedirectInfo.toObject(includeInstance, f)
110
142
  };
111
143
 
112
144
  if (includeInstance) {
@@ -175,6 +207,11 @@ proto.clarifai.api.status.Status.deserializeBinaryFromReader = function(msg, rea
175
207
  var value = /** @type {string} */ (reader.readString());
176
208
  msg.setInternalDetails(value);
177
209
  break;
210
+ case 9:
211
+ var value = new proto.clarifai.api.status.RedirectInfo;
212
+ reader.readMessage(value,proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader);
213
+ msg.setRedirectInfo(value);
214
+ break;
178
215
  default:
179
216
  reader.skipField();
180
217
  break;
@@ -260,6 +297,14 @@ proto.clarifai.api.status.Status.serializeBinaryToWriter = function(message, wri
260
297
  f
261
298
  );
262
299
  }
300
+ f = message.getRedirectInfo();
301
+ if (f != null) {
302
+ writer.writeMessage(
303
+ 9,
304
+ f,
305
+ proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter
306
+ );
307
+ }
263
308
  };
264
309
 
265
310
 
@@ -426,6 +471,263 @@ proto.clarifai.api.status.Status.prototype.setInternalDetails = function(value)
426
471
  };
427
472
 
428
473
 
474
+ /**
475
+ * optional RedirectInfo redirect_info = 9;
476
+ * @return {?proto.clarifai.api.status.RedirectInfo}
477
+ */
478
+ proto.clarifai.api.status.Status.prototype.getRedirectInfo = function() {
479
+ return /** @type{?proto.clarifai.api.status.RedirectInfo} */ (
480
+ jspb.Message.getWrapperField(this, proto.clarifai.api.status.RedirectInfo, 9));
481
+ };
482
+
483
+
484
+ /**
485
+ * @param {?proto.clarifai.api.status.RedirectInfo|undefined} value
486
+ * @return {!proto.clarifai.api.status.Status} returns this
487
+ */
488
+ proto.clarifai.api.status.Status.prototype.setRedirectInfo = function(value) {
489
+ return jspb.Message.setWrapperField(this, 9, value);
490
+ };
491
+
492
+
493
+ /**
494
+ * Clears the message field making it undefined.
495
+ * @return {!proto.clarifai.api.status.Status} returns this
496
+ */
497
+ proto.clarifai.api.status.Status.prototype.clearRedirectInfo = function() {
498
+ return this.setRedirectInfo(undefined);
499
+ };
500
+
501
+
502
+ /**
503
+ * Returns whether this field is set.
504
+ * @return {boolean}
505
+ */
506
+ proto.clarifai.api.status.Status.prototype.hasRedirectInfo = function() {
507
+ return jspb.Message.getField(this, 9) != null;
508
+ };
509
+
510
+
511
+
512
+
513
+
514
+ if (jspb.Message.GENERATE_TO_OBJECT) {
515
+ /**
516
+ * Creates an object representation of this proto.
517
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
518
+ * Optional fields that are not set will be set to undefined.
519
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
520
+ * For the list of reserved names please see:
521
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
522
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
523
+ * JSPB instance for transitional soy proto support:
524
+ * http://goto/soy-param-migration
525
+ * @return {!Object}
526
+ */
527
+ proto.clarifai.api.status.RedirectInfo.prototype.toObject = function(opt_includeInstance) {
528
+ return proto.clarifai.api.status.RedirectInfo.toObject(opt_includeInstance, this);
529
+ };
530
+
531
+
532
+ /**
533
+ * Static version of the {@see toObject} method.
534
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
535
+ * the JSPB instance for transitional soy proto support:
536
+ * http://goto/soy-param-migration
537
+ * @param {!proto.clarifai.api.status.RedirectInfo} msg The msg instance to transform.
538
+ * @return {!Object}
539
+ * @suppress {unusedLocalVariables} f is only used for nested messages
540
+ */
541
+ proto.clarifai.api.status.RedirectInfo.toObject = function(includeInstance, msg) {
542
+ var f, obj = {
543
+ url: jspb.Message.getFieldWithDefault(msg, 1, ""),
544
+ resourceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
545
+ oldResourceId: jspb.Message.getFieldWithDefault(msg, 3, ""),
546
+ newResourceId: jspb.Message.getFieldWithDefault(msg, 4, "")
547
+ };
548
+
549
+ if (includeInstance) {
550
+ obj.$jspbMessageInstance = msg;
551
+ }
552
+ return obj;
553
+ };
554
+ }
555
+
556
+
557
+ /**
558
+ * Deserializes binary data (in protobuf wire format).
559
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
560
+ * @return {!proto.clarifai.api.status.RedirectInfo}
561
+ */
562
+ proto.clarifai.api.status.RedirectInfo.deserializeBinary = function(bytes) {
563
+ var reader = new jspb.BinaryReader(bytes);
564
+ var msg = new proto.clarifai.api.status.RedirectInfo;
565
+ return proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader(msg, reader);
566
+ };
567
+
568
+
569
+ /**
570
+ * Deserializes binary data (in protobuf wire format) from the
571
+ * given reader into the given message object.
572
+ * @param {!proto.clarifai.api.status.RedirectInfo} msg The message object to deserialize into.
573
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
574
+ * @return {!proto.clarifai.api.status.RedirectInfo}
575
+ */
576
+ proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader = function(msg, reader) {
577
+ while (reader.nextField()) {
578
+ if (reader.isEndGroup()) {
579
+ break;
580
+ }
581
+ var field = reader.getFieldNumber();
582
+ switch (field) {
583
+ case 1:
584
+ var value = /** @type {string} */ (reader.readString());
585
+ msg.setUrl(value);
586
+ break;
587
+ case 2:
588
+ var value = /** @type {string} */ (reader.readString());
589
+ msg.setResourceType(value);
590
+ break;
591
+ case 3:
592
+ var value = /** @type {string} */ (reader.readString());
593
+ msg.setOldResourceId(value);
594
+ break;
595
+ case 4:
596
+ var value = /** @type {string} */ (reader.readString());
597
+ msg.setNewResourceId(value);
598
+ break;
599
+ default:
600
+ reader.skipField();
601
+ break;
602
+ }
603
+ }
604
+ return msg;
605
+ };
606
+
607
+
608
+ /**
609
+ * Serializes the message to binary data (in protobuf wire format).
610
+ * @return {!Uint8Array}
611
+ */
612
+ proto.clarifai.api.status.RedirectInfo.prototype.serializeBinary = function() {
613
+ var writer = new jspb.BinaryWriter();
614
+ proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter(this, writer);
615
+ return writer.getResultBuffer();
616
+ };
617
+
618
+
619
+ /**
620
+ * Serializes the given message to binary data (in protobuf wire
621
+ * format), writing to the given BinaryWriter.
622
+ * @param {!proto.clarifai.api.status.RedirectInfo} message
623
+ * @param {!jspb.BinaryWriter} writer
624
+ * @suppress {unusedLocalVariables} f is only used for nested messages
625
+ */
626
+ proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter = function(message, writer) {
627
+ var f = undefined;
628
+ f = message.getUrl();
629
+ if (f.length > 0) {
630
+ writer.writeString(
631
+ 1,
632
+ f
633
+ );
634
+ }
635
+ f = message.getResourceType();
636
+ if (f.length > 0) {
637
+ writer.writeString(
638
+ 2,
639
+ f
640
+ );
641
+ }
642
+ f = message.getOldResourceId();
643
+ if (f.length > 0) {
644
+ writer.writeString(
645
+ 3,
646
+ f
647
+ );
648
+ }
649
+ f = message.getNewResourceId();
650
+ if (f.length > 0) {
651
+ writer.writeString(
652
+ 4,
653
+ f
654
+ );
655
+ }
656
+ };
657
+
658
+
659
+ /**
660
+ * optional string url = 1;
661
+ * @return {string}
662
+ */
663
+ proto.clarifai.api.status.RedirectInfo.prototype.getUrl = function() {
664
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
665
+ };
666
+
667
+
668
+ /**
669
+ * @param {string} value
670
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
671
+ */
672
+ proto.clarifai.api.status.RedirectInfo.prototype.setUrl = function(value) {
673
+ return jspb.Message.setProto3StringField(this, 1, value);
674
+ };
675
+
676
+
677
+ /**
678
+ * optional string resource_type = 2;
679
+ * @return {string}
680
+ */
681
+ proto.clarifai.api.status.RedirectInfo.prototype.getResourceType = function() {
682
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
683
+ };
684
+
685
+
686
+ /**
687
+ * @param {string} value
688
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
689
+ */
690
+ proto.clarifai.api.status.RedirectInfo.prototype.setResourceType = function(value) {
691
+ return jspb.Message.setProto3StringField(this, 2, value);
692
+ };
693
+
694
+
695
+ /**
696
+ * optional string old_resource_id = 3;
697
+ * @return {string}
698
+ */
699
+ proto.clarifai.api.status.RedirectInfo.prototype.getOldResourceId = function() {
700
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
701
+ };
702
+
703
+
704
+ /**
705
+ * @param {string} value
706
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
707
+ */
708
+ proto.clarifai.api.status.RedirectInfo.prototype.setOldResourceId = function(value) {
709
+ return jspb.Message.setProto3StringField(this, 3, value);
710
+ };
711
+
712
+
713
+ /**
714
+ * optional string new_resource_id = 4;
715
+ * @return {string}
716
+ */
717
+ proto.clarifai.api.status.RedirectInfo.prototype.getNewResourceId = function() {
718
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
719
+ };
720
+
721
+
722
+ /**
723
+ * @param {string} value
724
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
725
+ */
726
+ proto.clarifai.api.status.RedirectInfo.prototype.setNewResourceId = function(value) {
727
+ return jspb.Message.setProto3StringField(this, 4, value);
728
+ };
729
+
730
+
429
731
 
430
732
 
431
733
 
@@ -1,4 +1,5 @@
1
- import * as jspb from "google-protobuf"
1
+ import * as jspb from 'google-protobuf'
2
2
 
3
3
  import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb';
4
4
 
5
+
@@ -2,15 +2,24 @@
2
2
  /**
3
3
  * @fileoverview
4
4
  * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
5
6
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
7
  * field starts with 'MSG_' and isn't a translatable message.
7
8
  * @public
8
9
  */
9
10
  // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
10
13
 
11
14
  var jspb = require('google-protobuf');
12
15
  var goog = jspb;
13
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
14
23
 
15
24
  var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
16
25
  goog.object.extend(proto, google_protobuf_descriptor_pb);
@@ -0,0 +1,28 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+
4
+
5
+ export class MatrixUint64 extends jspb.Message {
6
+ getNCols(): number;
7
+ setNCols(value: number): MatrixUint64;
8
+
9
+ getDataList(): Array<number>;
10
+ setDataList(value: Array<number>): MatrixUint64;
11
+ clearDataList(): MatrixUint64;
12
+ addData(value: number, index?: number): MatrixUint64;
13
+
14
+ serializeBinary(): Uint8Array;
15
+ toObject(includeInstance?: boolean): MatrixUint64.AsObject;
16
+ static toObject(includeInstance: boolean, msg: MatrixUint64): MatrixUint64.AsObject;
17
+ static serializeBinaryToWriter(message: MatrixUint64, writer: jspb.BinaryWriter): void;
18
+ static deserializeBinary(bytes: Uint8Array): MatrixUint64;
19
+ static deserializeBinaryFromReader(message: MatrixUint64, reader: jspb.BinaryReader): MatrixUint64;
20
+ }
21
+
22
+ export namespace MatrixUint64 {
23
+ export type AsObject = {
24
+ nCols: number,
25
+ dataList: Array<number>,
26
+ }
27
+ }
28
+