clarifai-web-grpc 2.0.1 → 4.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.
- package/.github/workflows/ci.yml +4 -0
- package/.mocharc.yml +5 -0
- package/CHANGELOG.md +8 -3
- package/README.md +2 -2
- package/VERSION +1 -1
- package/{lib → dist/cjs}/google/api/annotations_pb.d.ts +0 -0
- package/{lib → dist/cjs}/google/api/annotations_pb.js +0 -0
- package/{lib → dist/cjs}/google/api/http_pb.d.ts +0 -0
- package/{lib → dist/cjs}/google/api/http_pb.js +0 -0
- package/dist/cjs/index.d.ts +7 -0
- package/dist/cjs/index.js +16 -0
- package/{lib → dist/cjs}/proto/clarifai/api/resources_pb.d.ts +0 -0
- package/{lib → dist/cjs}/proto/clarifai/api/resources_pb.js +3595 -302
- 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 +6663 -0
- package/{lib → dist/cjs}/proto/clarifai/api/service_pb.d.ts +0 -0
- package/{lib → dist/cjs}/proto/clarifai/api/service_pb.js +16838 -7904
- package/{lib → dist/cjs}/proto/clarifai/api/status/status_code_pb.d.ts +0 -0
- package/{lib → dist/cjs}/proto/clarifai/api/status/status_code_pb.js +23 -1
- package/{lib → dist/cjs}/proto/clarifai/api/status/status_pb.d.ts +0 -0
- package/{lib → dist/cjs}/proto/clarifai/api/status/status_pb.js +18 -1
- package/{lib → dist/cjs}/proto/clarifai/api/utils/extensions_pb.d.ts +0 -0
- package/{lib → dist/cjs}/proto/clarifai/api/utils/extensions_pb.js +18 -1
- package/{lib/proto/clarifai/api/utils/test_proto_pb.d.ts → dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts} +0 -0
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +206 -0
- package/{lib/proto/clarifai/auth/scope/scope_pb.d.ts → dist/cjs/proto/clarifai/api/utils/test_proto_pb.d.ts} +0 -0
- package/{lib → dist/cjs}/proto/clarifai/api/utils/test_proto_pb.js +18 -1
- package/{lib/proto/clarifai/auth/types/types_pb.d.ts → dist/cjs/proto/clarifai/auth/scope/scope_pb.d.ts} +0 -0
- package/{lib → dist/cjs}/proto/clarifai/auth/scope/scope_pb.js +37 -5
- package/{lib/proto/clarifai/auth/util/extension_pb.d.ts → dist/cjs/proto/clarifai/auth/types/types_pb.d.ts} +0 -0
- package/{lib → dist/cjs}/proto/clarifai/auth/types/types_pb.js +18 -1
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
- package/{lib → dist/cjs}/proto/clarifai/auth/util/extension_pb.js +18 -1
- package/dist/cjs/resources.d.ts +1 -0
- package/dist/cjs/resources.js +13 -0
- package/dist/cjs/service.d.ts +1 -0
- package/dist/cjs/service.js +13 -0
- package/dist/esm/google/api/annotations_pb.d.ts +1 -0
- package/dist/esm/google/api/annotations_pb.js +32 -0
- package/dist/esm/google/api/http_pb.d.ts +1 -0
- package/dist/esm/google/api/http_pb.js +813 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/proto/clarifai/api/resources_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +36250 -0
- 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 +6663 -0
- package/dist/esm/proto/clarifai/api/service_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +47725 -0
- package/dist/esm/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +334 -0
- package/dist/esm/proto/clarifai/api/status/status_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/status/status_pb.js +490 -0
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +69 -0
- 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.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +538 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +326 -0
- package/dist/esm/proto/clarifai/auth/types/types_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/auth/types/types_pb.js +43 -0
- package/dist/esm/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/auth/util/extension_pb.js +97 -0
- package/dist/esm/resources.d.ts +1 -0
- package/dist/esm/resources.js +1 -0
- package/dist/esm/service.d.ts +1 -0
- package/dist/esm/service.js +1 -0
- package/index.ts +11 -0
- package/package.json +12 -18
- package/proto/clarifai/api/resources_pb.d.ts +1522 -1014
- package/proto/clarifai/api/resources_pb.js +7122 -2949
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +1904 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +9672 -0
- package/proto/clarifai/api/service_pb.d.ts +2235 -962
- package/proto/clarifai/api/service_pb.js +20033 -9036
- package/proto/clarifai/api/status/status_code_pb.d.ts +8 -1
- package/proto/clarifai/api/status/status_code_pb.js +15 -1
- package/proto/clarifai/api/status/status_pb.d.ts +14 -13
- package/proto/clarifai/api/status/status_pb.js +10 -1
- 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 +22 -8
- package/proto/clarifai/auth/scope/scope_pb.js +29 -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/resources.ts +1 -0
- package/service.ts +1 -0
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.json +11 -3
- package/.eslintrc.yml +0 -12
- package/lib/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
- package/lib/proto/clarifai/api/serviceServiceClientPb.js +0 -904
- package/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import * as jspb from
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
|
|
2
4
|
|
|
3
5
|
export enum StatusCode {
|
|
4
6
|
ZERO = 0,
|
|
@@ -107,11 +109,16 @@ export enum StatusCode {
|
|
|
107
109
|
DATA_DUMP_FAILED = 25152,
|
|
108
110
|
DATA_DUMP_IN_PROGRESS = 25153,
|
|
109
111
|
DATA_DUMP_NO_DATA = 25154,
|
|
112
|
+
DATA_DUMP_UNEXPECTED_ERROR = 25155,
|
|
110
113
|
APP_DUPLICATION_SUCCESS = 25200,
|
|
111
114
|
APP_DUPLICATION_FAILED = 25201,
|
|
112
115
|
APP_DUPLICATION_PENDING = 25202,
|
|
113
116
|
APP_DUPLICATION_IN_PROGRESS = 25203,
|
|
114
117
|
APP_DUPLICATION_INVALID_REQUEST = 25204,
|
|
118
|
+
MODULE_DOES_NOT_EXIST = 25300,
|
|
119
|
+
MODULE_PERMISSION_DENIED = 25301,
|
|
120
|
+
MODULE_INVALID_ARGUMENT = 25302,
|
|
121
|
+
MODULE_INVALID_REQUEST = 25303,
|
|
115
122
|
INPUT_DOWNLOAD_SUCCESS = 30000,
|
|
116
123
|
INPUT_DOWNLOAD_PENDING = 30001,
|
|
117
124
|
INPUT_DOWNLOAD_FAILED = 30002,
|
|
@@ -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 =
|
|
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
|
/**
|
|
@@ -123,11 +132,16 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
123
132
|
DATA_DUMP_FAILED: 25152,
|
|
124
133
|
DATA_DUMP_IN_PROGRESS: 25153,
|
|
125
134
|
DATA_DUMP_NO_DATA: 25154,
|
|
135
|
+
DATA_DUMP_UNEXPECTED_ERROR: 25155,
|
|
126
136
|
APP_DUPLICATION_SUCCESS: 25200,
|
|
127
137
|
APP_DUPLICATION_FAILED: 25201,
|
|
128
138
|
APP_DUPLICATION_PENDING: 25202,
|
|
129
139
|
APP_DUPLICATION_IN_PROGRESS: 25203,
|
|
130
140
|
APP_DUPLICATION_INVALID_REQUEST: 25204,
|
|
141
|
+
MODULE_DOES_NOT_EXIST: 25300,
|
|
142
|
+
MODULE_PERMISSION_DENIED: 25301,
|
|
143
|
+
MODULE_INVALID_ARGUMENT: 25302,
|
|
144
|
+
MODULE_INVALID_REQUEST: 25303,
|
|
131
145
|
INPUT_DOWNLOAD_SUCCESS: 30000,
|
|
132
146
|
INPUT_DOWNLOAD_PENDING: 30001,
|
|
133
147
|
INPUT_DOWNLOAD_FAILED: 30002,
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import * as jspb from
|
|
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):
|
|
9
|
+
setCode(value: proto_clarifai_api_status_status_code_pb.StatusCode): Status;
|
|
9
10
|
|
|
10
11
|
getDescription(): string;
|
|
11
|
-
setDescription(value: string):
|
|
12
|
+
setDescription(value: string): Status;
|
|
12
13
|
|
|
13
14
|
getDetails(): string;
|
|
14
|
-
setDetails(value: string):
|
|
15
|
+
setDetails(value: string): Status;
|
|
15
16
|
|
|
16
17
|
getStackTraceList(): Array<string>;
|
|
17
|
-
setStackTraceList(value: Array<string>):
|
|
18
|
-
clearStackTraceList():
|
|
19
|
-
addStackTrace(value: string, index?: number):
|
|
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):
|
|
23
|
+
setPercentCompleted(value: number): Status;
|
|
23
24
|
|
|
24
25
|
getTimeRemaining(): number;
|
|
25
|
-
setTimeRemaining(value: number):
|
|
26
|
+
setTimeRemaining(value: number): Status;
|
|
26
27
|
|
|
27
28
|
getReqId(): string;
|
|
28
|
-
setReqId(value: string):
|
|
29
|
+
setReqId(value: string): Status;
|
|
29
30
|
|
|
30
31
|
getInternalDetails(): string;
|
|
31
|
-
setInternalDetails(value: string):
|
|
32
|
+
setInternalDetails(value: string): Status;
|
|
32
33
|
|
|
33
34
|
serializeBinary(): Uint8Array;
|
|
34
35
|
toObject(includeInstance?: boolean): Status.AsObject;
|
|
@@ -53,9 +54,9 @@ export namespace Status {
|
|
|
53
54
|
|
|
54
55
|
export class BaseResponse extends jspb.Message {
|
|
55
56
|
getStatus(): Status | undefined;
|
|
56
|
-
setStatus(value?: Status):
|
|
57
|
+
setStatus(value?: Status): BaseResponse;
|
|
57
58
|
hasStatus(): boolean;
|
|
58
|
-
clearStatus():
|
|
59
|
+
clearStatus(): BaseResponse;
|
|
59
60
|
|
|
60
61
|
serializeBinary(): Uint8Array;
|
|
61
62
|
toObject(includeInstance?: boolean): BaseResponse.AsObject;
|
|
@@ -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 =
|
|
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);
|
|
@@ -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 =
|
|
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
|
+
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
// source: proto/clarifai/api/utils/matrix.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
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
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
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));
|
|
23
|
+
|
|
24
|
+
goog.exportSymbol('proto.MatrixUint64', null, global);
|
|
25
|
+
/**
|
|
26
|
+
* Generated by JsPbCodeGenerator.
|
|
27
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
28
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
29
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
30
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
31
|
+
* valid.
|
|
32
|
+
* @extends {jspb.Message}
|
|
33
|
+
* @constructor
|
|
34
|
+
*/
|
|
35
|
+
proto.MatrixUint64 = function(opt_data) {
|
|
36
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.MatrixUint64.repeatedFields_, null);
|
|
37
|
+
};
|
|
38
|
+
goog.inherits(proto.MatrixUint64, jspb.Message);
|
|
39
|
+
if (goog.DEBUG && !COMPILED) {
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @override
|
|
43
|
+
*/
|
|
44
|
+
proto.MatrixUint64.displayName = 'proto.MatrixUint64';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* List of repeated fields within this message type.
|
|
49
|
+
* @private {!Array<number>}
|
|
50
|
+
* @const
|
|
51
|
+
*/
|
|
52
|
+
proto.MatrixUint64.repeatedFields_ = [2];
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
57
|
+
/**
|
|
58
|
+
* Creates an object representation of this proto.
|
|
59
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60
|
+
* Optional fields that are not set will be set to undefined.
|
|
61
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
62
|
+
* For the list of reserved names please see:
|
|
63
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
64
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
65
|
+
* JSPB instance for transitional soy proto support:
|
|
66
|
+
* http://goto/soy-param-migration
|
|
67
|
+
* @return {!Object}
|
|
68
|
+
*/
|
|
69
|
+
proto.MatrixUint64.prototype.toObject = function(opt_includeInstance) {
|
|
70
|
+
return proto.MatrixUint64.toObject(opt_includeInstance, this);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Static version of the {@see toObject} method.
|
|
76
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
77
|
+
* the JSPB instance for transitional soy proto support:
|
|
78
|
+
* http://goto/soy-param-migration
|
|
79
|
+
* @param {!proto.MatrixUint64} msg The msg instance to transform.
|
|
80
|
+
* @return {!Object}
|
|
81
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
82
|
+
*/
|
|
83
|
+
proto.MatrixUint64.toObject = function(includeInstance, msg) {
|
|
84
|
+
var f, obj = {
|
|
85
|
+
nCols: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
86
|
+
dataList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
if (includeInstance) {
|
|
90
|
+
obj.$jspbMessageInstance = msg;
|
|
91
|
+
}
|
|
92
|
+
return obj;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Deserializes binary data (in protobuf wire format).
|
|
99
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
100
|
+
* @return {!proto.MatrixUint64}
|
|
101
|
+
*/
|
|
102
|
+
proto.MatrixUint64.deserializeBinary = function(bytes) {
|
|
103
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
104
|
+
var msg = new proto.MatrixUint64;
|
|
105
|
+
return proto.MatrixUint64.deserializeBinaryFromReader(msg, reader);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
111
|
+
* given reader into the given message object.
|
|
112
|
+
* @param {!proto.MatrixUint64} msg The message object to deserialize into.
|
|
113
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
114
|
+
* @return {!proto.MatrixUint64}
|
|
115
|
+
*/
|
|
116
|
+
proto.MatrixUint64.deserializeBinaryFromReader = function(msg, reader) {
|
|
117
|
+
while (reader.nextField()) {
|
|
118
|
+
if (reader.isEndGroup()) {
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
var field = reader.getFieldNumber();
|
|
122
|
+
switch (field) {
|
|
123
|
+
case 1:
|
|
124
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
125
|
+
msg.setNCols(value);
|
|
126
|
+
break;
|
|
127
|
+
case 2:
|
|
128
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
|
|
129
|
+
for (var i = 0; i < values.length; i++) {
|
|
130
|
+
msg.addData(values[i]);
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
default:
|
|
134
|
+
reader.skipField();
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return msg;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
144
|
+
* @return {!Uint8Array}
|
|
145
|
+
*/
|
|
146
|
+
proto.MatrixUint64.prototype.serializeBinary = function() {
|
|
147
|
+
var writer = new jspb.BinaryWriter();
|
|
148
|
+
proto.MatrixUint64.serializeBinaryToWriter(this, writer);
|
|
149
|
+
return writer.getResultBuffer();
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
155
|
+
* format), writing to the given BinaryWriter.
|
|
156
|
+
* @param {!proto.MatrixUint64} message
|
|
157
|
+
* @param {!jspb.BinaryWriter} writer
|
|
158
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
159
|
+
*/
|
|
160
|
+
proto.MatrixUint64.serializeBinaryToWriter = function(message, writer) {
|
|
161
|
+
var f = undefined;
|
|
162
|
+
f = message.getNCols();
|
|
163
|
+
if (f !== 0) {
|
|
164
|
+
writer.writeUint64(
|
|
165
|
+
1,
|
|
166
|
+
f
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
f = message.getDataList();
|
|
170
|
+
if (f.length > 0) {
|
|
171
|
+
writer.writePackedUint64(
|
|
172
|
+
2,
|
|
173
|
+
f
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* optional uint64 n_cols = 1;
|
|
181
|
+
* @return {number}
|
|
182
|
+
*/
|
|
183
|
+
proto.MatrixUint64.prototype.getNCols = function() {
|
|
184
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @param {number} value
|
|
190
|
+
* @return {!proto.MatrixUint64} returns this
|
|
191
|
+
*/
|
|
192
|
+
proto.MatrixUint64.prototype.setNCols = function(value) {
|
|
193
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* repeated uint64 data = 2;
|
|
199
|
+
* @return {!Array<number>}
|
|
200
|
+
*/
|
|
201
|
+
proto.MatrixUint64.prototype.getDataList = function() {
|
|
202
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @param {!Array<number>} value
|
|
208
|
+
* @return {!proto.MatrixUint64} returns this
|
|
209
|
+
*/
|
|
210
|
+
proto.MatrixUint64.prototype.setDataList = function(value) {
|
|
211
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @param {number} value
|
|
217
|
+
* @param {number=} opt_index
|
|
218
|
+
* @return {!proto.MatrixUint64} returns this
|
|
219
|
+
*/
|
|
220
|
+
proto.MatrixUint64.prototype.addData = function(value, opt_index) {
|
|
221
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Clears the list making it empty but non-null.
|
|
227
|
+
* @return {!proto.MatrixUint64} returns this
|
|
228
|
+
*/
|
|
229
|
+
proto.MatrixUint64.prototype.clearDataList = function() {
|
|
230
|
+
return this.setDataList([]);
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
goog.object.extend(exports, proto);
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import * as jspb from
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
2
|
|
|
3
3
|
import * as proto_clarifai_api_utils_extensions_pb from '../../../../proto/clarifai/api/utils/extensions_pb';
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
export class TestProto extends jspb.Message {
|
|
6
7
|
getId(): string;
|
|
7
|
-
setId(value: string):
|
|
8
|
+
setId(value: string): TestProto;
|
|
8
9
|
|
|
9
10
|
getMessage(): string;
|
|
10
|
-
setMessage(value: string):
|
|
11
|
+
setMessage(value: string): TestProto;
|
|
11
12
|
|
|
12
13
|
getValue(): number;
|
|
13
|
-
setValue(value: number):
|
|
14
|
+
setValue(value: number): TestProto;
|
|
14
15
|
|
|
15
16
|
getImageBytes(): Uint8Array | string;
|
|
16
17
|
getImageBytes_asU8(): Uint8Array;
|
|
17
18
|
getImageBytes_asB64(): string;
|
|
18
|
-
setImageBytes(value: Uint8Array | string):
|
|
19
|
+
setImageBytes(value: Uint8Array | string): TestProto;
|
|
19
20
|
|
|
20
21
|
getStringOneof(): string;
|
|
21
|
-
setStringOneof(value: string):
|
|
22
|
+
setStringOneof(value: string): TestProto;
|
|
22
23
|
|
|
23
24
|
getBoolOneof(): boolean;
|
|
24
|
-
setBoolOneof(value: boolean):
|
|
25
|
+
setBoolOneof(value: boolean): TestProto;
|
|
25
26
|
|
|
26
27
|
getMessageOneof(): TestProto2 | undefined;
|
|
27
|
-
setMessageOneof(value?: TestProto2):
|
|
28
|
+
setMessageOneof(value?: TestProto2): TestProto;
|
|
28
29
|
hasMessageOneof(): boolean;
|
|
29
|
-
clearMessageOneof():
|
|
30
|
+
clearMessageOneof(): TestProto;
|
|
30
31
|
|
|
31
32
|
getOneOfFieldCase(): TestProto.OneOfFieldCase;
|
|
32
33
|
|
|
@@ -59,10 +60,10 @@ export namespace TestProto {
|
|
|
59
60
|
|
|
60
61
|
export class TestProto2 extends jspb.Message {
|
|
61
62
|
getId(): string;
|
|
62
|
-
setId(value: string):
|
|
63
|
+
setId(value: string): TestProto2;
|
|
63
64
|
|
|
64
65
|
getFlip(): boolean;
|
|
65
|
-
setFlip(value: boolean):
|
|
66
|
+
setFlip(value: boolean): TestProto2;
|
|
66
67
|
|
|
67
68
|
serializeBinary(): Uint8Array;
|
|
68
69
|
toObject(includeInstance?: boolean): TestProto2.AsObject;
|
|
@@ -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 =
|
|
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_api_utils_extensions_pb = require('../../../../proto/clarifai/api/utils/extensions_pb.js');
|
|
16
25
|
goog.object.extend(proto, proto_clarifai_api_utils_extensions_pb);
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import * as jspb from
|
|
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
|
+
|
|
5
6
|
export class ScopeList extends jspb.Message {
|
|
6
7
|
getScopesList(): Array<S>;
|
|
7
|
-
setScopesList(value: Array<S>):
|
|
8
|
-
clearScopesList():
|
|
9
|
-
addScopes(value: S, index?: number):
|
|
8
|
+
setScopesList(value: Array<S>): ScopeList;
|
|
9
|
+
clearScopesList(): ScopeList;
|
|
10
|
+
addScopes(value: S, index?: number): ScopeList;
|
|
10
11
|
|
|
11
12
|
getEndpointsList(): Array<string>;
|
|
12
|
-
setEndpointsList(value: Array<string>):
|
|
13
|
-
clearEndpointsList():
|
|
14
|
-
addEndpoints(value: string, index?: number):
|
|
13
|
+
setEndpointsList(value: Array<string>): ScopeList;
|
|
14
|
+
clearEndpointsList(): ScopeList;
|
|
15
|
+
addEndpoints(value: string, index?: number): ScopeList;
|
|
15
16
|
|
|
16
17
|
serializeBinary(): Uint8Array;
|
|
17
18
|
toObject(includeInstance?: boolean): ScopeList.AsObject;
|
|
@@ -32,7 +33,6 @@ export enum S {
|
|
|
32
33
|
UNDEF = 0,
|
|
33
34
|
ALL = 1,
|
|
34
35
|
PREDICT = 2,
|
|
35
|
-
SEARCH = 3,
|
|
36
36
|
INPUTS_ADD = 4,
|
|
37
37
|
INPUTS_GET = 5,
|
|
38
38
|
INPUTS_PATCH = 7,
|
|
@@ -89,4 +89,18 @@ export enum S {
|
|
|
89
89
|
FINDDUPLICATEANNOTATIONSJOBS_ADD = 102,
|
|
90
90
|
FINDDUPLICATEANNOTATIONSJOBS_GET = 103,
|
|
91
91
|
FINDDUPLICATEANNOTATIONSJOBS_DELETE = 104,
|
|
92
|
+
DATASETS_GET = 105,
|
|
93
|
+
DATASETS_ADD = 106,
|
|
94
|
+
DATASETS_DELETE = 107,
|
|
95
|
+
SEARCH = 3,
|
|
96
|
+
SAVEDSEARCH_GET = 114,
|
|
97
|
+
SAVEDSEARCH_ADD = 115,
|
|
98
|
+
SAVEDSEARCH_DELETE = 116,
|
|
99
|
+
MODELVERSIONPUBLICATIONS_ADD = 117,
|
|
100
|
+
MODELVERSIONPUBLICATIONS_DELETE = 118,
|
|
101
|
+
WORKFLOWPUBLICATIONS_ADD = 119,
|
|
102
|
+
WORKFLOWPUBLICATIONS_DELETE = 120,
|
|
103
|
+
BULKOPERATION_ADD = 121,
|
|
104
|
+
BULKOPERATION_GET = 122,
|
|
105
|
+
BULKOPERATION_DELETE = 123,
|
|
92
106
|
}
|
|
@@ -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 =
|
|
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);
|
|
@@ -117,8 +126,10 @@ proto.clarifai.auth.scope.ScopeList.deserializeBinaryFromReader = function(msg,
|
|
|
117
126
|
var field = reader.getFieldNumber();
|
|
118
127
|
switch (field) {
|
|
119
128
|
case 1:
|
|
120
|
-
var
|
|
121
|
-
|
|
129
|
+
var values = /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
130
|
+
for (var i = 0; i < values.length; i++) {
|
|
131
|
+
msg.addScopes(values[i]);
|
|
132
|
+
}
|
|
122
133
|
break;
|
|
123
134
|
case 2:
|
|
124
135
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -251,7 +262,6 @@ proto.clarifai.auth.scope.S = {
|
|
|
251
262
|
UNDEF: 0,
|
|
252
263
|
ALL: 1,
|
|
253
264
|
PREDICT: 2,
|
|
254
|
-
SEARCH: 3,
|
|
255
265
|
INPUTS_ADD: 4,
|
|
256
266
|
INPUTS_GET: 5,
|
|
257
267
|
INPUTS_PATCH: 7,
|
|
@@ -307,7 +317,21 @@ proto.clarifai.auth.scope.S = {
|
|
|
307
317
|
USERFEATURECONFIGS_GET: 71,
|
|
308
318
|
FINDDUPLICATEANNOTATIONSJOBS_ADD: 102,
|
|
309
319
|
FINDDUPLICATEANNOTATIONSJOBS_GET: 103,
|
|
310
|
-
FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104
|
|
320
|
+
FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104,
|
|
321
|
+
DATASETS_GET: 105,
|
|
322
|
+
DATASETS_ADD: 106,
|
|
323
|
+
DATASETS_DELETE: 107,
|
|
324
|
+
SEARCH: 3,
|
|
325
|
+
SAVEDSEARCH_GET: 114,
|
|
326
|
+
SAVEDSEARCH_ADD: 115,
|
|
327
|
+
SAVEDSEARCH_DELETE: 116,
|
|
328
|
+
MODELVERSIONPUBLICATIONS_ADD: 117,
|
|
329
|
+
MODELVERSIONPUBLICATIONS_DELETE: 118,
|
|
330
|
+
WORKFLOWPUBLICATIONS_ADD: 119,
|
|
331
|
+
WORKFLOWPUBLICATIONS_DELETE: 120,
|
|
332
|
+
BULKOPERATION_ADD: 121,
|
|
333
|
+
BULKOPERATION_GET: 122,
|
|
334
|
+
BULKOPERATION_DELETE: 123
|
|
311
335
|
};
|
|
312
336
|
|
|
313
337
|
|