clarifai-web-grpc 10.4.0 → 10.5.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/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +154 -94
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +168 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +1714 -356
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +4 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +154 -94
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +168 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +1714 -356
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +4 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +25 -19
- package/proto/clarifai/api/resources_pb.js +196 -112
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +48 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +244 -0
- package/proto/clarifai/api/service_pb.d.ts +200 -0
- package/proto/clarifai/api/service_pb.js +2094 -409
- package/proto/clarifai/api/status/status_code_pb.d.ts +3 -0
- package/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +3 -0
- package/proto/clarifai/auth/scope/scope_pb.js +4 -1
|
@@ -175,6 +175,9 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
175
175
|
NODEPOOL_DOES_NOT_EXIST: 25700,
|
|
176
176
|
NODEPOOL_INVALID_ARGUMENT: 25701,
|
|
177
177
|
NODEPOOL_INVALID_REQUEST: 25702,
|
|
178
|
+
COMPUTE_CLUSTER_DOES_NOT_EXIST: 25800,
|
|
179
|
+
COMPUTE_CLUSTER_INVALID_ARGUMENT: 25801,
|
|
180
|
+
COMPUTE_CLUSTER_INVALID_REQUEST: 25802,
|
|
178
181
|
INPUT_DOWNLOAD_SUCCESS: 30000,
|
|
179
182
|
INPUT_DOWNLOAD_PENDING: 30001,
|
|
180
183
|
INPUT_DOWNLOAD_FAILED: 30002,
|
|
@@ -310,7 +310,10 @@ proto.clarifai.auth.scope.S = {
|
|
|
310
310
|
RUNNERITEMS_ADD: 135,
|
|
311
311
|
NODEPOOLS_GET: 136,
|
|
312
312
|
NODEPOOLS_ADD: 137,
|
|
313
|
-
NODEPOOLS_DELETE: 138
|
|
313
|
+
NODEPOOLS_DELETE: 138,
|
|
314
|
+
COMPUTECLUSTERS_GET: 139,
|
|
315
|
+
COMPUTECLUSTERS_ADD: 140,
|
|
316
|
+
COMPUTECLUSTERS_DELETE: 141
|
|
314
317
|
};
|
|
315
318
|
/**
|
|
316
319
|
* A tuple of {field number, class constructor} for the extension
|
package/package.json
CHANGED
|
@@ -4772,6 +4772,9 @@ export class User extends jspb.Message {
|
|
|
4772
4772
|
getIntention(): string;
|
|
4773
4773
|
setIntention(value: string): User;
|
|
4774
4774
|
|
|
4775
|
+
getReferralSource(): string;
|
|
4776
|
+
setReferralSource(value: string): User;
|
|
4777
|
+
|
|
4775
4778
|
getBillType(): string;
|
|
4776
4779
|
setBillType(value: string): User;
|
|
4777
4780
|
|
|
@@ -4850,6 +4853,7 @@ export namespace User {
|
|
|
4850
4853
|
jobTitle: string,
|
|
4851
4854
|
jobRole: string,
|
|
4852
4855
|
intention: string,
|
|
4856
|
+
referralSource: string,
|
|
4853
4857
|
billType: string,
|
|
4854
4858
|
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
4855
4859
|
dateGdprConsent?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
@@ -7983,15 +7987,10 @@ export class Runner extends jspb.Message {
|
|
|
7983
7987
|
clearLabelsList(): Runner;
|
|
7984
7988
|
addLabels(value: string, index?: number): Runner;
|
|
7985
7989
|
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
getWorkflow(): Workflow | undefined;
|
|
7992
|
-
setWorkflow(value?: Workflow): Runner;
|
|
7993
|
-
hasWorkflow(): boolean;
|
|
7994
|
-
clearWorkflow(): Runner;
|
|
7990
|
+
getWorker(): Worker | undefined;
|
|
7991
|
+
setWorker(value?: Worker): Runner;
|
|
7992
|
+
hasWorker(): boolean;
|
|
7993
|
+
clearWorker(): Runner;
|
|
7995
7994
|
|
|
7996
7995
|
getNodepool(): Nodepool | undefined;
|
|
7997
7996
|
setNodepool(value?: Nodepool): Runner;
|
|
@@ -8003,8 +8002,6 @@ export class Runner extends jspb.Message {
|
|
|
8003
8002
|
hasComputeInfo(): boolean;
|
|
8004
8003
|
clearComputeInfo(): Runner;
|
|
8005
8004
|
|
|
8006
|
-
getObjectCase(): Runner.ObjectCase;
|
|
8007
|
-
|
|
8008
8005
|
serializeBinary(): Uint8Array;
|
|
8009
8006
|
toObject(includeInstance?: boolean): Runner.AsObject;
|
|
8010
8007
|
static toObject(includeInstance: boolean, msg: Runner): Runner.AsObject;
|
|
@@ -8022,17 +8019,10 @@ export namespace Runner {
|
|
|
8022
8019
|
metadata?: google_protobuf_struct_pb.Struct.AsObject,
|
|
8023
8020
|
userId: string,
|
|
8024
8021
|
labelsList: Array<string>,
|
|
8025
|
-
|
|
8026
|
-
workflow?: Workflow.AsObject,
|
|
8022
|
+
worker?: Worker.AsObject,
|
|
8027
8023
|
nodepool?: Nodepool.AsObject,
|
|
8028
8024
|
computeInfo?: ComputeInfo.AsObject,
|
|
8029
8025
|
}
|
|
8030
|
-
|
|
8031
|
-
export enum ObjectCase {
|
|
8032
|
-
OBJECT_NOT_SET = 0,
|
|
8033
|
-
MODEL = 9,
|
|
8034
|
-
WORKFLOW = 10,
|
|
8035
|
-
}
|
|
8036
8026
|
}
|
|
8037
8027
|
|
|
8038
8028
|
export class Nodepool extends jspb.Message {
|
|
@@ -8202,6 +8192,19 @@ export class ComputeCluster extends jspb.Message {
|
|
|
8202
8192
|
getRegion(): string;
|
|
8203
8193
|
setRegion(value: string): ComputeCluster;
|
|
8204
8194
|
|
|
8195
|
+
getUserId(): string;
|
|
8196
|
+
setUserId(value: string): ComputeCluster;
|
|
8197
|
+
|
|
8198
|
+
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
8199
|
+
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): ComputeCluster;
|
|
8200
|
+
hasCreatedAt(): boolean;
|
|
8201
|
+
clearCreatedAt(): ComputeCluster;
|
|
8202
|
+
|
|
8203
|
+
getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
8204
|
+
setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): ComputeCluster;
|
|
8205
|
+
hasModifiedAt(): boolean;
|
|
8206
|
+
clearModifiedAt(): ComputeCluster;
|
|
8207
|
+
|
|
8205
8208
|
serializeBinary(): Uint8Array;
|
|
8206
8209
|
toObject(includeInstance?: boolean): ComputeCluster.AsObject;
|
|
8207
8210
|
static toObject(includeInstance: boolean, msg: ComputeCluster): ComputeCluster.AsObject;
|
|
@@ -8216,6 +8219,9 @@ export namespace ComputeCluster {
|
|
|
8216
8219
|
description: string,
|
|
8217
8220
|
cloudProvider?: CloudProvider.AsObject,
|
|
8218
8221
|
region: string,
|
|
8222
|
+
userId: string,
|
|
8223
|
+
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
8224
|
+
modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
8219
8225
|
}
|
|
8220
8226
|
}
|
|
8221
8227
|
|
|
@@ -219,7 +219,6 @@ goog.exportSymbol('proto.clarifai.api.Region', null, global);
|
|
|
219
219
|
goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
|
|
220
220
|
goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
|
|
221
221
|
goog.exportSymbol('proto.clarifai.api.Runner', null, global);
|
|
222
|
-
goog.exportSymbol('proto.clarifai.api.Runner.ObjectCase', null, global);
|
|
223
222
|
goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
|
|
224
223
|
goog.exportSymbol('proto.clarifai.api.RunnerSelector', null, global);
|
|
225
224
|
goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
|
|
@@ -4523,7 +4522,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4523
4522
|
* @constructor
|
|
4524
4523
|
*/
|
|
4525
4524
|
proto.clarifai.api.Runner = function(opt_data) {
|
|
4526
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_,
|
|
4525
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, null);
|
|
4527
4526
|
};
|
|
4528
4527
|
goog.inherits(proto.clarifai.api.Runner, jspb.Message);
|
|
4529
4528
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -41498,6 +41497,7 @@ proto.clarifai.api.User.toObject = function(includeInstance, msg) {
|
|
|
41498
41497
|
jobTitle: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
41499
41498
|
jobRole: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
|
41500
41499
|
intention: jspb.Message.getFieldWithDefault(msg, 24, ""),
|
|
41500
|
+
referralSource: jspb.Message.getFieldWithDefault(msg, 25, ""),
|
|
41501
41501
|
billType: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
41502
41502
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
41503
41503
|
dateGdprConsent: (f = msg.getDateGdprConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
@@ -41581,6 +41581,10 @@ proto.clarifai.api.User.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
41581
41581
|
var value = /** @type {string} */ (reader.readString());
|
|
41582
41582
|
msg.setIntention(value);
|
|
41583
41583
|
break;
|
|
41584
|
+
case 25:
|
|
41585
|
+
var value = /** @type {string} */ (reader.readString());
|
|
41586
|
+
msg.setReferralSource(value);
|
|
41587
|
+
break;
|
|
41584
41588
|
case 7:
|
|
41585
41589
|
var value = /** @type {string} */ (reader.readString());
|
|
41586
41590
|
msg.setBillType(value);
|
|
@@ -41731,6 +41735,13 @@ proto.clarifai.api.User.serializeBinaryToWriter = function(message, writer) {
|
|
|
41731
41735
|
f
|
|
41732
41736
|
);
|
|
41733
41737
|
}
|
|
41738
|
+
f = message.getReferralSource();
|
|
41739
|
+
if (f.length > 0) {
|
|
41740
|
+
writer.writeString(
|
|
41741
|
+
25,
|
|
41742
|
+
f
|
|
41743
|
+
);
|
|
41744
|
+
}
|
|
41734
41745
|
f = message.getBillType();
|
|
41735
41746
|
if (f.length > 0) {
|
|
41736
41747
|
writer.writeString(
|
|
@@ -41985,6 +41996,24 @@ proto.clarifai.api.User.prototype.setIntention = function(value) {
|
|
|
41985
41996
|
};
|
|
41986
41997
|
|
|
41987
41998
|
|
|
41999
|
+
/**
|
|
42000
|
+
* optional string referral_source = 25;
|
|
42001
|
+
* @return {string}
|
|
42002
|
+
*/
|
|
42003
|
+
proto.clarifai.api.User.prototype.getReferralSource = function() {
|
|
42004
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
|
|
42005
|
+
};
|
|
42006
|
+
|
|
42007
|
+
|
|
42008
|
+
/**
|
|
42009
|
+
* @param {string} value
|
|
42010
|
+
* @return {!proto.clarifai.api.User} returns this
|
|
42011
|
+
*/
|
|
42012
|
+
proto.clarifai.api.User.prototype.setReferralSource = function(value) {
|
|
42013
|
+
return jspb.Message.setProto3StringField(this, 25, value);
|
|
42014
|
+
};
|
|
42015
|
+
|
|
42016
|
+
|
|
41988
42017
|
/**
|
|
41989
42018
|
* optional string bill_type = 7;
|
|
41990
42019
|
* @return {string}
|
|
@@ -65761,32 +65790,6 @@ proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function(value) {
|
|
|
65761
65790
|
*/
|
|
65762
65791
|
proto.clarifai.api.Runner.repeatedFields_ = [7];
|
|
65763
65792
|
|
|
65764
|
-
/**
|
|
65765
|
-
* Oneof group definitions for this message. Each group defines the field
|
|
65766
|
-
* numbers belonging to that group. When of these fields' value is set, all
|
|
65767
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
|
65768
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
|
65769
|
-
* @private {!Array<!Array<number>>}
|
|
65770
|
-
* @const
|
|
65771
|
-
*/
|
|
65772
|
-
proto.clarifai.api.Runner.oneofGroups_ = [[9,10]];
|
|
65773
|
-
|
|
65774
|
-
/**
|
|
65775
|
-
* @enum {number}
|
|
65776
|
-
*/
|
|
65777
|
-
proto.clarifai.api.Runner.ObjectCase = {
|
|
65778
|
-
OBJECT_NOT_SET: 0,
|
|
65779
|
-
MODEL: 9,
|
|
65780
|
-
WORKFLOW: 10
|
|
65781
|
-
};
|
|
65782
|
-
|
|
65783
|
-
/**
|
|
65784
|
-
* @return {proto.clarifai.api.Runner.ObjectCase}
|
|
65785
|
-
*/
|
|
65786
|
-
proto.clarifai.api.Runner.prototype.getObjectCase = function() {
|
|
65787
|
-
return /** @type {proto.clarifai.api.Runner.ObjectCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Runner.oneofGroups_[0]));
|
|
65788
|
-
};
|
|
65789
|
-
|
|
65790
65793
|
|
|
65791
65794
|
|
|
65792
65795
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -65825,8 +65828,7 @@ proto.clarifai.api.Runner.toObject = function(includeInstance, msg) {
|
|
|
65825
65828
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
65826
65829
|
userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
65827
65830
|
labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
65828
|
-
|
|
65829
|
-
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
65831
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
65830
65832
|
nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
|
|
65831
65833
|
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
|
|
65832
65834
|
};
|
|
@@ -65896,22 +65898,17 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
65896
65898
|
var value = /** @type {string} */ (reader.readString());
|
|
65897
65899
|
msg.addLabels(value);
|
|
65898
65900
|
break;
|
|
65899
|
-
case
|
|
65900
|
-
var value = new proto.clarifai.api.
|
|
65901
|
-
reader.readMessage(value,proto.clarifai.api.
|
|
65902
|
-
msg.
|
|
65903
|
-
break;
|
|
65904
|
-
case 10:
|
|
65905
|
-
var value = new proto.clarifai.api.Workflow;
|
|
65906
|
-
reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
65907
|
-
msg.setWorkflow(value);
|
|
65901
|
+
case 8:
|
|
65902
|
+
var value = new proto.clarifai.api.Worker;
|
|
65903
|
+
reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
65904
|
+
msg.setWorker(value);
|
|
65908
65905
|
break;
|
|
65909
|
-
case
|
|
65906
|
+
case 9:
|
|
65910
65907
|
var value = new proto.clarifai.api.Nodepool;
|
|
65911
65908
|
reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
65912
65909
|
msg.setNodepool(value);
|
|
65913
65910
|
break;
|
|
65914
|
-
case
|
|
65911
|
+
case 10:
|
|
65915
65912
|
var value = new proto.clarifai.api.ComputeInfo;
|
|
65916
65913
|
reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
65917
65914
|
msg.setComputeInfo(value);
|
|
@@ -65997,26 +65994,18 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) {
|
|
|
65997
65994
|
f
|
|
65998
65995
|
);
|
|
65999
65996
|
}
|
|
66000
|
-
f = message.
|
|
66001
|
-
if (f != null) {
|
|
66002
|
-
writer.writeMessage(
|
|
66003
|
-
9,
|
|
66004
|
-
f,
|
|
66005
|
-
proto.clarifai.api.Model.serializeBinaryToWriter
|
|
66006
|
-
);
|
|
66007
|
-
}
|
|
66008
|
-
f = message.getWorkflow();
|
|
65997
|
+
f = message.getWorker();
|
|
66009
65998
|
if (f != null) {
|
|
66010
65999
|
writer.writeMessage(
|
|
66011
|
-
|
|
66000
|
+
8,
|
|
66012
66001
|
f,
|
|
66013
|
-
proto.clarifai.api.
|
|
66002
|
+
proto.clarifai.api.Worker.serializeBinaryToWriter
|
|
66014
66003
|
);
|
|
66015
66004
|
}
|
|
66016
66005
|
f = message.getNodepool();
|
|
66017
66006
|
if (f != null) {
|
|
66018
66007
|
writer.writeMessage(
|
|
66019
|
-
|
|
66008
|
+
9,
|
|
66020
66009
|
f,
|
|
66021
66010
|
proto.clarifai.api.Nodepool.serializeBinaryToWriter
|
|
66022
66011
|
);
|
|
@@ -66024,7 +66013,7 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) {
|
|
|
66024
66013
|
f = message.getComputeInfo();
|
|
66025
66014
|
if (f != null) {
|
|
66026
66015
|
writer.writeMessage(
|
|
66027
|
-
|
|
66016
|
+
10,
|
|
66028
66017
|
f,
|
|
66029
66018
|
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
|
|
66030
66019
|
);
|
|
@@ -66235,58 +66224,21 @@ proto.clarifai.api.Runner.prototype.clearLabelsList = function() {
|
|
|
66235
66224
|
|
|
66236
66225
|
|
|
66237
66226
|
/**
|
|
66238
|
-
* optional
|
|
66239
|
-
* @return {?proto.clarifai.api.
|
|
66240
|
-
*/
|
|
66241
|
-
proto.clarifai.api.Runner.prototype.getModel = function() {
|
|
66242
|
-
return /** @type{?proto.clarifai.api.Model} */ (
|
|
66243
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 9));
|
|
66244
|
-
};
|
|
66245
|
-
|
|
66246
|
-
|
|
66247
|
-
/**
|
|
66248
|
-
* @param {?proto.clarifai.api.Model|undefined} value
|
|
66249
|
-
* @return {!proto.clarifai.api.Runner} returns this
|
|
66250
|
-
*/
|
|
66251
|
-
proto.clarifai.api.Runner.prototype.setModel = function(value) {
|
|
66252
|
-
return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.Runner.oneofGroups_[0], value);
|
|
66253
|
-
};
|
|
66254
|
-
|
|
66255
|
-
|
|
66256
|
-
/**
|
|
66257
|
-
* Clears the message field making it undefined.
|
|
66258
|
-
* @return {!proto.clarifai.api.Runner} returns this
|
|
66259
|
-
*/
|
|
66260
|
-
proto.clarifai.api.Runner.prototype.clearModel = function() {
|
|
66261
|
-
return this.setModel(undefined);
|
|
66262
|
-
};
|
|
66263
|
-
|
|
66264
|
-
|
|
66265
|
-
/**
|
|
66266
|
-
* Returns whether this field is set.
|
|
66267
|
-
* @return {boolean}
|
|
66268
|
-
*/
|
|
66269
|
-
proto.clarifai.api.Runner.prototype.hasModel = function() {
|
|
66270
|
-
return jspb.Message.getField(this, 9) != null;
|
|
66271
|
-
};
|
|
66272
|
-
|
|
66273
|
-
|
|
66274
|
-
/**
|
|
66275
|
-
* optional Workflow workflow = 10;
|
|
66276
|
-
* @return {?proto.clarifai.api.Workflow}
|
|
66227
|
+
* optional Worker worker = 8;
|
|
66228
|
+
* @return {?proto.clarifai.api.Worker}
|
|
66277
66229
|
*/
|
|
66278
|
-
proto.clarifai.api.Runner.prototype.
|
|
66279
|
-
return /** @type{?proto.clarifai.api.
|
|
66280
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.
|
|
66230
|
+
proto.clarifai.api.Runner.prototype.getWorker = function() {
|
|
66231
|
+
return /** @type{?proto.clarifai.api.Worker} */ (
|
|
66232
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 8));
|
|
66281
66233
|
};
|
|
66282
66234
|
|
|
66283
66235
|
|
|
66284
66236
|
/**
|
|
66285
|
-
* @param {?proto.clarifai.api.
|
|
66237
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
66286
66238
|
* @return {!proto.clarifai.api.Runner} returns this
|
|
66287
66239
|
*/
|
|
66288
|
-
proto.clarifai.api.Runner.prototype.
|
|
66289
|
-
return jspb.Message.
|
|
66240
|
+
proto.clarifai.api.Runner.prototype.setWorker = function(value) {
|
|
66241
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
66290
66242
|
};
|
|
66291
66243
|
|
|
66292
66244
|
|
|
@@ -66294,8 +66246,8 @@ proto.clarifai.api.Runner.prototype.setWorkflow = function(value) {
|
|
|
66294
66246
|
* Clears the message field making it undefined.
|
|
66295
66247
|
* @return {!proto.clarifai.api.Runner} returns this
|
|
66296
66248
|
*/
|
|
66297
|
-
proto.clarifai.api.Runner.prototype.
|
|
66298
|
-
return this.
|
|
66249
|
+
proto.clarifai.api.Runner.prototype.clearWorker = function() {
|
|
66250
|
+
return this.setWorker(undefined);
|
|
66299
66251
|
};
|
|
66300
66252
|
|
|
66301
66253
|
|
|
@@ -66303,18 +66255,18 @@ proto.clarifai.api.Runner.prototype.clearWorkflow = function() {
|
|
|
66303
66255
|
* Returns whether this field is set.
|
|
66304
66256
|
* @return {boolean}
|
|
66305
66257
|
*/
|
|
66306
|
-
proto.clarifai.api.Runner.prototype.
|
|
66307
|
-
return jspb.Message.getField(this,
|
|
66258
|
+
proto.clarifai.api.Runner.prototype.hasWorker = function() {
|
|
66259
|
+
return jspb.Message.getField(this, 8) != null;
|
|
66308
66260
|
};
|
|
66309
66261
|
|
|
66310
66262
|
|
|
66311
66263
|
/**
|
|
66312
|
-
* optional Nodepool nodepool =
|
|
66264
|
+
* optional Nodepool nodepool = 9;
|
|
66313
66265
|
* @return {?proto.clarifai.api.Nodepool}
|
|
66314
66266
|
*/
|
|
66315
66267
|
proto.clarifai.api.Runner.prototype.getNodepool = function() {
|
|
66316
66268
|
return /** @type{?proto.clarifai.api.Nodepool} */ (
|
|
66317
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool,
|
|
66269
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 9));
|
|
66318
66270
|
};
|
|
66319
66271
|
|
|
66320
66272
|
|
|
@@ -66323,7 +66275,7 @@ proto.clarifai.api.Runner.prototype.getNodepool = function() {
|
|
|
66323
66275
|
* @return {!proto.clarifai.api.Runner} returns this
|
|
66324
66276
|
*/
|
|
66325
66277
|
proto.clarifai.api.Runner.prototype.setNodepool = function(value) {
|
|
66326
|
-
return jspb.Message.setWrapperField(this,
|
|
66278
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
66327
66279
|
};
|
|
66328
66280
|
|
|
66329
66281
|
|
|
@@ -66341,17 +66293,17 @@ proto.clarifai.api.Runner.prototype.clearNodepool = function() {
|
|
|
66341
66293
|
* @return {boolean}
|
|
66342
66294
|
*/
|
|
66343
66295
|
proto.clarifai.api.Runner.prototype.hasNodepool = function() {
|
|
66344
|
-
return jspb.Message.getField(this,
|
|
66296
|
+
return jspb.Message.getField(this, 9) != null;
|
|
66345
66297
|
};
|
|
66346
66298
|
|
|
66347
66299
|
|
|
66348
66300
|
/**
|
|
66349
|
-
* optional ComputeInfo compute_info =
|
|
66301
|
+
* optional ComputeInfo compute_info = 10;
|
|
66350
66302
|
* @return {?proto.clarifai.api.ComputeInfo}
|
|
66351
66303
|
*/
|
|
66352
66304
|
proto.clarifai.api.Runner.prototype.getComputeInfo = function() {
|
|
66353
66305
|
return /** @type{?proto.clarifai.api.ComputeInfo} */ (
|
|
66354
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo,
|
|
66306
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 10));
|
|
66355
66307
|
};
|
|
66356
66308
|
|
|
66357
66309
|
|
|
@@ -66360,7 +66312,7 @@ proto.clarifai.api.Runner.prototype.getComputeInfo = function() {
|
|
|
66360
66312
|
* @return {!proto.clarifai.api.Runner} returns this
|
|
66361
66313
|
*/
|
|
66362
66314
|
proto.clarifai.api.Runner.prototype.setComputeInfo = function(value) {
|
|
66363
|
-
return jspb.Message.setWrapperField(this,
|
|
66315
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
66364
66316
|
};
|
|
66365
66317
|
|
|
66366
66318
|
|
|
@@ -66378,7 +66330,7 @@ proto.clarifai.api.Runner.prototype.clearComputeInfo = function() {
|
|
|
66378
66330
|
* @return {boolean}
|
|
66379
66331
|
*/
|
|
66380
66332
|
proto.clarifai.api.Runner.prototype.hasComputeInfo = function() {
|
|
66381
|
-
return jspb.Message.getField(this,
|
|
66333
|
+
return jspb.Message.getField(this, 10) != null;
|
|
66382
66334
|
};
|
|
66383
66335
|
|
|
66384
66336
|
|
|
@@ -67571,7 +67523,10 @@ proto.clarifai.api.ComputeCluster.toObject = function(includeInstance, msg) {
|
|
|
67571
67523
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
67572
67524
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
67573
67525
|
cloudProvider: (f = msg.getCloudProvider()) && proto.clarifai.api.CloudProvider.toObject(includeInstance, f),
|
|
67574
|
-
region: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
67526
|
+
region: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
67527
|
+
userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
67528
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
67529
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
67575
67530
|
};
|
|
67576
67531
|
|
|
67577
67532
|
if (includeInstance) {
|
|
@@ -67625,6 +67580,20 @@ proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader = function(msg, re
|
|
|
67625
67580
|
var value = /** @type {string} */ (reader.readString());
|
|
67626
67581
|
msg.setRegion(value);
|
|
67627
67582
|
break;
|
|
67583
|
+
case 5:
|
|
67584
|
+
var value = /** @type {string} */ (reader.readString());
|
|
67585
|
+
msg.setUserId(value);
|
|
67586
|
+
break;
|
|
67587
|
+
case 6:
|
|
67588
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
67589
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
67590
|
+
msg.setCreatedAt(value);
|
|
67591
|
+
break;
|
|
67592
|
+
case 7:
|
|
67593
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
67594
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
67595
|
+
msg.setModifiedAt(value);
|
|
67596
|
+
break;
|
|
67628
67597
|
default:
|
|
67629
67598
|
reader.skipField();
|
|
67630
67599
|
break;
|
|
@@ -67683,6 +67652,29 @@ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter = function(message, wr
|
|
|
67683
67652
|
f
|
|
67684
67653
|
);
|
|
67685
67654
|
}
|
|
67655
|
+
f = message.getUserId();
|
|
67656
|
+
if (f.length > 0) {
|
|
67657
|
+
writer.writeString(
|
|
67658
|
+
5,
|
|
67659
|
+
f
|
|
67660
|
+
);
|
|
67661
|
+
}
|
|
67662
|
+
f = message.getCreatedAt();
|
|
67663
|
+
if (f != null) {
|
|
67664
|
+
writer.writeMessage(
|
|
67665
|
+
6,
|
|
67666
|
+
f,
|
|
67667
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
67668
|
+
);
|
|
67669
|
+
}
|
|
67670
|
+
f = message.getModifiedAt();
|
|
67671
|
+
if (f != null) {
|
|
67672
|
+
writer.writeMessage(
|
|
67673
|
+
7,
|
|
67674
|
+
f,
|
|
67675
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
67676
|
+
);
|
|
67677
|
+
}
|
|
67686
67678
|
};
|
|
67687
67679
|
|
|
67688
67680
|
|
|
@@ -67777,6 +67769,98 @@ proto.clarifai.api.ComputeCluster.prototype.setRegion = function(value) {
|
|
|
67777
67769
|
};
|
|
67778
67770
|
|
|
67779
67771
|
|
|
67772
|
+
/**
|
|
67773
|
+
* optional string user_id = 5;
|
|
67774
|
+
* @return {string}
|
|
67775
|
+
*/
|
|
67776
|
+
proto.clarifai.api.ComputeCluster.prototype.getUserId = function() {
|
|
67777
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
67778
|
+
};
|
|
67779
|
+
|
|
67780
|
+
|
|
67781
|
+
/**
|
|
67782
|
+
* @param {string} value
|
|
67783
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
67784
|
+
*/
|
|
67785
|
+
proto.clarifai.api.ComputeCluster.prototype.setUserId = function(value) {
|
|
67786
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
67787
|
+
};
|
|
67788
|
+
|
|
67789
|
+
|
|
67790
|
+
/**
|
|
67791
|
+
* optional google.protobuf.Timestamp created_at = 6;
|
|
67792
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
67793
|
+
*/
|
|
67794
|
+
proto.clarifai.api.ComputeCluster.prototype.getCreatedAt = function() {
|
|
67795
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
67796
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
67797
|
+
};
|
|
67798
|
+
|
|
67799
|
+
|
|
67800
|
+
/**
|
|
67801
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
67802
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
67803
|
+
*/
|
|
67804
|
+
proto.clarifai.api.ComputeCluster.prototype.setCreatedAt = function(value) {
|
|
67805
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
67806
|
+
};
|
|
67807
|
+
|
|
67808
|
+
|
|
67809
|
+
/**
|
|
67810
|
+
* Clears the message field making it undefined.
|
|
67811
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
67812
|
+
*/
|
|
67813
|
+
proto.clarifai.api.ComputeCluster.prototype.clearCreatedAt = function() {
|
|
67814
|
+
return this.setCreatedAt(undefined);
|
|
67815
|
+
};
|
|
67816
|
+
|
|
67817
|
+
|
|
67818
|
+
/**
|
|
67819
|
+
* Returns whether this field is set.
|
|
67820
|
+
* @return {boolean}
|
|
67821
|
+
*/
|
|
67822
|
+
proto.clarifai.api.ComputeCluster.prototype.hasCreatedAt = function() {
|
|
67823
|
+
return jspb.Message.getField(this, 6) != null;
|
|
67824
|
+
};
|
|
67825
|
+
|
|
67826
|
+
|
|
67827
|
+
/**
|
|
67828
|
+
* optional google.protobuf.Timestamp modified_at = 7;
|
|
67829
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
67830
|
+
*/
|
|
67831
|
+
proto.clarifai.api.ComputeCluster.prototype.getModifiedAt = function() {
|
|
67832
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
67833
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
67834
|
+
};
|
|
67835
|
+
|
|
67836
|
+
|
|
67837
|
+
/**
|
|
67838
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
67839
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
67840
|
+
*/
|
|
67841
|
+
proto.clarifai.api.ComputeCluster.prototype.setModifiedAt = function(value) {
|
|
67842
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
67843
|
+
};
|
|
67844
|
+
|
|
67845
|
+
|
|
67846
|
+
/**
|
|
67847
|
+
* Clears the message field making it undefined.
|
|
67848
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
67849
|
+
*/
|
|
67850
|
+
proto.clarifai.api.ComputeCluster.prototype.clearModifiedAt = function() {
|
|
67851
|
+
return this.setModifiedAt(undefined);
|
|
67852
|
+
};
|
|
67853
|
+
|
|
67854
|
+
|
|
67855
|
+
/**
|
|
67856
|
+
* Returns whether this field is set.
|
|
67857
|
+
* @return {boolean}
|
|
67858
|
+
*/
|
|
67859
|
+
proto.clarifai.api.ComputeCluster.prototype.hasModifiedAt = function() {
|
|
67860
|
+
return jspb.Message.getField(this, 7) != null;
|
|
67861
|
+
};
|
|
67862
|
+
|
|
67863
|
+
|
|
67780
67864
|
|
|
67781
67865
|
/**
|
|
67782
67866
|
* List of repeated fields within this message type.
|
|
@@ -1540,6 +1540,34 @@ export class V2Client {
|
|
|
1540
1540
|
response: proto_clarifai_api_service_pb.MultiTrainingTimeEstimateResponse) => void
|
|
1541
1541
|
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiTrainingTimeEstimateResponse>;
|
|
1542
1542
|
|
|
1543
|
+
getComputeCluster(
|
|
1544
|
+
request: proto_clarifai_api_service_pb.GetComputeClusterRequest,
|
|
1545
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
1546
|
+
callback: (err: grpcWeb.RpcError,
|
|
1547
|
+
response: proto_clarifai_api_service_pb.SingleComputeClusterResponse) => void
|
|
1548
|
+
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.SingleComputeClusterResponse>;
|
|
1549
|
+
|
|
1550
|
+
listComputeClusters(
|
|
1551
|
+
request: proto_clarifai_api_service_pb.ListComputeClustersRequest,
|
|
1552
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
1553
|
+
callback: (err: grpcWeb.RpcError,
|
|
1554
|
+
response: proto_clarifai_api_service_pb.MultiComputeClusterResponse) => void
|
|
1555
|
+
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiComputeClusterResponse>;
|
|
1556
|
+
|
|
1557
|
+
postComputeClusters(
|
|
1558
|
+
request: proto_clarifai_api_service_pb.PostComputeClustersRequest,
|
|
1559
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
1560
|
+
callback: (err: grpcWeb.RpcError,
|
|
1561
|
+
response: proto_clarifai_api_service_pb.MultiComputeClusterResponse) => void
|
|
1562
|
+
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiComputeClusterResponse>;
|
|
1563
|
+
|
|
1564
|
+
deleteComputeClusters(
|
|
1565
|
+
request: proto_clarifai_api_service_pb.DeleteComputeClustersRequest,
|
|
1566
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
1567
|
+
callback: (err: grpcWeb.RpcError,
|
|
1568
|
+
response: proto_clarifai_api_status_status_pb.BaseResponse) => void
|
|
1569
|
+
): grpcWeb.ClientReadableStream<proto_clarifai_api_status_status_pb.BaseResponse>;
|
|
1570
|
+
|
|
1543
1571
|
getNodepool(
|
|
1544
1572
|
request: proto_clarifai_api_service_pb.GetNodepoolRequest,
|
|
1545
1573
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -2677,6 +2705,26 @@ export class V2PromiseClient {
|
|
|
2677
2705
|
metadata?: grpcWeb.Metadata
|
|
2678
2706
|
): Promise<proto_clarifai_api_service_pb.MultiTrainingTimeEstimateResponse>;
|
|
2679
2707
|
|
|
2708
|
+
getComputeCluster(
|
|
2709
|
+
request: proto_clarifai_api_service_pb.GetComputeClusterRequest,
|
|
2710
|
+
metadata?: grpcWeb.Metadata
|
|
2711
|
+
): Promise<proto_clarifai_api_service_pb.SingleComputeClusterResponse>;
|
|
2712
|
+
|
|
2713
|
+
listComputeClusters(
|
|
2714
|
+
request: proto_clarifai_api_service_pb.ListComputeClustersRequest,
|
|
2715
|
+
metadata?: grpcWeb.Metadata
|
|
2716
|
+
): Promise<proto_clarifai_api_service_pb.MultiComputeClusterResponse>;
|
|
2717
|
+
|
|
2718
|
+
postComputeClusters(
|
|
2719
|
+
request: proto_clarifai_api_service_pb.PostComputeClustersRequest,
|
|
2720
|
+
metadata?: grpcWeb.Metadata
|
|
2721
|
+
): Promise<proto_clarifai_api_service_pb.MultiComputeClusterResponse>;
|
|
2722
|
+
|
|
2723
|
+
deleteComputeClusters(
|
|
2724
|
+
request: proto_clarifai_api_service_pb.DeleteComputeClustersRequest,
|
|
2725
|
+
metadata?: grpcWeb.Metadata
|
|
2726
|
+
): Promise<proto_clarifai_api_status_status_pb.BaseResponse>;
|
|
2727
|
+
|
|
2680
2728
|
getNodepool(
|
|
2681
2729
|
request: proto_clarifai_api_service_pb.GetNodepoolRequest,
|
|
2682
2730
|
metadata?: grpcWeb.Metadata
|