clarifai-web-grpc 2.0.2 → 4.1.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 +2 -0
- package/.mocharc.yml +5 -0
- package/CHANGELOG.md +3 -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 +17 -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
|
File without changes
|
|
@@ -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}
|
|
@@ -122,11 +139,16 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
122
139
|
DATA_DUMP_FAILED: 25152,
|
|
123
140
|
DATA_DUMP_IN_PROGRESS: 25153,
|
|
124
141
|
DATA_DUMP_NO_DATA: 25154,
|
|
142
|
+
DATA_DUMP_UNEXPECTED_ERROR: 25155,
|
|
125
143
|
APP_DUPLICATION_SUCCESS: 25200,
|
|
126
144
|
APP_DUPLICATION_FAILED: 25201,
|
|
127
145
|
APP_DUPLICATION_PENDING: 25202,
|
|
128
146
|
APP_DUPLICATION_IN_PROGRESS: 25203,
|
|
129
147
|
APP_DUPLICATION_INVALID_REQUEST: 25204,
|
|
148
|
+
MODULE_DOES_NOT_EXIST: 25300,
|
|
149
|
+
MODULE_PERMISSION_DENIED: 25301,
|
|
150
|
+
MODULE_INVALID_ARGUMENT: 25302,
|
|
151
|
+
MODULE_INVALID_REQUEST: 25303,
|
|
130
152
|
INPUT_DOWNLOAD_SUCCESS: 30000,
|
|
131
153
|
INPUT_DOWNLOAD_PENDING: 30001,
|
|
132
154
|
INPUT_DOWNLOAD_FAILED: 30002,
|
|
File without changes
|
|
@@ -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_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');
|
|
File without changes
|
|
@@ -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);
|
|
File without changes
|
|
@@ -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);
|
|
File without changes
|
|
@@ -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);
|
|
File without changes
|
|
@@ -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.auth.scope.S', null, global);
|
|
@@ -105,8 +122,10 @@ proto.clarifai.auth.scope.ScopeList.deserializeBinaryFromReader = function (msg,
|
|
|
105
122
|
var field = reader.getFieldNumber();
|
|
106
123
|
switch (field) {
|
|
107
124
|
case 1:
|
|
108
|
-
var
|
|
109
|
-
|
|
125
|
+
var values = /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
126
|
+
for (var i = 0; i < values.length; i++) {
|
|
127
|
+
msg.addScopes(values[i]);
|
|
128
|
+
}
|
|
110
129
|
break;
|
|
111
130
|
case 2:
|
|
112
131
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -211,7 +230,6 @@ proto.clarifai.auth.scope.S = {
|
|
|
211
230
|
UNDEF: 0,
|
|
212
231
|
ALL: 1,
|
|
213
232
|
PREDICT: 2,
|
|
214
|
-
SEARCH: 3,
|
|
215
233
|
INPUTS_ADD: 4,
|
|
216
234
|
INPUTS_GET: 5,
|
|
217
235
|
INPUTS_PATCH: 7,
|
|
@@ -267,7 +285,21 @@ proto.clarifai.auth.scope.S = {
|
|
|
267
285
|
USERFEATURECONFIGS_GET: 71,
|
|
268
286
|
FINDDUPLICATEANNOTATIONSJOBS_ADD: 102,
|
|
269
287
|
FINDDUPLICATEANNOTATIONSJOBS_GET: 103,
|
|
270
|
-
FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104
|
|
288
|
+
FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104,
|
|
289
|
+
DATASETS_GET: 105,
|
|
290
|
+
DATASETS_ADD: 106,
|
|
291
|
+
DATASETS_DELETE: 107,
|
|
292
|
+
SEARCH: 3,
|
|
293
|
+
SAVEDSEARCH_GET: 114,
|
|
294
|
+
SAVEDSEARCH_ADD: 115,
|
|
295
|
+
SAVEDSEARCH_DELETE: 116,
|
|
296
|
+
MODELVERSIONPUBLICATIONS_ADD: 117,
|
|
297
|
+
MODELVERSIONPUBLICATIONS_DELETE: 118,
|
|
298
|
+
WORKFLOWPUBLICATIONS_ADD: 119,
|
|
299
|
+
WORKFLOWPUBLICATIONS_DELETE: 120,
|
|
300
|
+
BULKOPERATION_ADD: 121,
|
|
301
|
+
BULKOPERATION_GET: 122,
|
|
302
|
+
BULKOPERATION_DELETE: 123
|
|
271
303
|
};
|
|
272
304
|
/**
|
|
273
305
|
* A tuple of {field number, class constructor} for the extension
|
|
File without changes
|
|
@@ -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.auth.types.AuthType', null, global);
|
|
15
32
|
/**
|
|
16
33
|
* @enum {number}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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_auth_scope_scope_pb = require('../../../../proto/clarifai/auth/scope/scope_pb.js');
|
|
15
32
|
goog.object.extend(proto, proto_clarifai_auth_scope_scope_pb);
|
|
16
33
|
var proto_clarifai_auth_types_types_pb = require('../../../../proto/clarifai/auth/types/types_pb.js');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './proto/clarifai/api/resources_pb';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./proto/clarifai/api/resources_pb"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './proto/clarifai/api/service_pb';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./proto/clarifai/api/service_pb"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// source: google/api/annotations.proto
|
|
3
|
+
/**
|
|
4
|
+
* @fileoverview
|
|
5
|
+
* @enhanceable
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
var jspb = require('google-protobuf');
|
|
14
|
+
var goog = jspb;
|
|
15
|
+
var global = Function('return this')();
|
|
16
|
+
var google_api_http_pb = require('../../google/api/http_pb.js');
|
|
17
|
+
goog.object.extend(proto, google_api_http_pb);
|
|
18
|
+
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
|
20
|
+
goog.exportSymbol('proto.google.api.http', null, global);
|
|
21
|
+
/**
|
|
22
|
+
* A tuple of {field number, class constructor} for the extension
|
|
23
|
+
* field named `http`.
|
|
24
|
+
* @type {!jspb.ExtensionFieldInfo<!proto.google.api.HttpRule>}
|
|
25
|
+
*/
|
|
26
|
+
proto.google.api.http = new jspb.ExtensionFieldInfo(72295728, { http: 0 }, google_api_http_pb.HttpRule,
|
|
27
|
+
/** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (google_api_http_pb.HttpRule.toObject), 0);
|
|
28
|
+
google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo(proto.google.api.http, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeMessage, google_api_http_pb.HttpRule.serializeBinaryToWriter, google_api_http_pb.HttpRule.deserializeBinaryFromReader, false);
|
|
29
|
+
// This registers the extension field with the extended class, so that
|
|
30
|
+
// toObject() will function correctly.
|
|
31
|
+
google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http;
|
|
32
|
+
goog.object.extend(exports, proto.google.api);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|