clarifai-web-grpc 10.4.0 → 10.4.1
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
|
|
@@ -217,7 +217,6 @@ goog.exportSymbol('proto.clarifai.api.Region', null, global);
|
|
|
217
217
|
goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
|
|
218
218
|
goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
|
|
219
219
|
goog.exportSymbol('proto.clarifai.api.Runner', null, global);
|
|
220
|
-
goog.exportSymbol('proto.clarifai.api.Runner.ObjectCase', null, global);
|
|
221
220
|
goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
|
|
222
221
|
goog.exportSymbol('proto.clarifai.api.RunnerSelector', null, global);
|
|
223
222
|
goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
|
|
@@ -4521,7 +4520,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4521
4520
|
* @constructor
|
|
4522
4521
|
*/
|
|
4523
4522
|
proto.clarifai.api.Runner = function (opt_data) {
|
|
4524
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_,
|
|
4523
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, null);
|
|
4525
4524
|
};
|
|
4526
4525
|
goog.inherits(proto.clarifai.api.Runner, jspb.Message);
|
|
4527
4526
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -33540,6 +33539,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
33540
33539
|
jobTitle: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
33541
33540
|
jobRole: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
|
33542
33541
|
intention: jspb.Message.getFieldWithDefault(msg, 24, ""),
|
|
33542
|
+
referralSource: jspb.Message.getFieldWithDefault(msg, 25, ""),
|
|
33543
33543
|
billType: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
33544
33544
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
33545
33545
|
dateGdprConsent: (f = msg.getDateGdprConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
@@ -33617,6 +33617,10 @@ proto.clarifai.api.User.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
33617
33617
|
var value = /** @type {string} */ (reader.readString());
|
|
33618
33618
|
msg.setIntention(value);
|
|
33619
33619
|
break;
|
|
33620
|
+
case 25:
|
|
33621
|
+
var value = /** @type {string} */ (reader.readString());
|
|
33622
|
+
msg.setReferralSource(value);
|
|
33623
|
+
break;
|
|
33620
33624
|
case 7:
|
|
33621
33625
|
var value = /** @type {string} */ (reader.readString());
|
|
33622
33626
|
msg.setBillType(value);
|
|
@@ -33739,6 +33743,10 @@ proto.clarifai.api.User.serializeBinaryToWriter = function (message, writer) {
|
|
|
33739
33743
|
if (f.length > 0) {
|
|
33740
33744
|
writer.writeString(24, f);
|
|
33741
33745
|
}
|
|
33746
|
+
f = message.getReferralSource();
|
|
33747
|
+
if (f.length > 0) {
|
|
33748
|
+
writer.writeString(25, f);
|
|
33749
|
+
}
|
|
33742
33750
|
f = message.getBillType();
|
|
33743
33751
|
if (f.length > 0) {
|
|
33744
33752
|
writer.writeString(7, f);
|
|
@@ -33908,6 +33916,20 @@ proto.clarifai.api.User.prototype.getIntention = function () {
|
|
|
33908
33916
|
proto.clarifai.api.User.prototype.setIntention = function (value) {
|
|
33909
33917
|
return jspb.Message.setProto3StringField(this, 24, value);
|
|
33910
33918
|
};
|
|
33919
|
+
/**
|
|
33920
|
+
* optional string referral_source = 25;
|
|
33921
|
+
* @return {string}
|
|
33922
|
+
*/
|
|
33923
|
+
proto.clarifai.api.User.prototype.getReferralSource = function () {
|
|
33924
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
|
|
33925
|
+
};
|
|
33926
|
+
/**
|
|
33927
|
+
* @param {string} value
|
|
33928
|
+
* @return {!proto.clarifai.api.User} returns this
|
|
33929
|
+
*/
|
|
33930
|
+
proto.clarifai.api.User.prototype.setReferralSource = function (value) {
|
|
33931
|
+
return jspb.Message.setProto3StringField(this, 25, value);
|
|
33932
|
+
};
|
|
33911
33933
|
/**
|
|
33912
33934
|
* optional string bill_type = 7;
|
|
33913
33935
|
* @return {string}
|
|
@@ -52610,29 +52632,6 @@ proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function (value) {
|
|
|
52610
52632
|
* @const
|
|
52611
52633
|
*/
|
|
52612
52634
|
proto.clarifai.api.Runner.repeatedFields_ = [7];
|
|
52613
|
-
/**
|
|
52614
|
-
* Oneof group definitions for this message. Each group defines the field
|
|
52615
|
-
* numbers belonging to that group. When of these fields' value is set, all
|
|
52616
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
|
52617
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
|
52618
|
-
* @private {!Array<!Array<number>>}
|
|
52619
|
-
* @const
|
|
52620
|
-
*/
|
|
52621
|
-
proto.clarifai.api.Runner.oneofGroups_ = [[9, 10]];
|
|
52622
|
-
/**
|
|
52623
|
-
* @enum {number}
|
|
52624
|
-
*/
|
|
52625
|
-
proto.clarifai.api.Runner.ObjectCase = {
|
|
52626
|
-
OBJECT_NOT_SET: 0,
|
|
52627
|
-
MODEL: 9,
|
|
52628
|
-
WORKFLOW: 10
|
|
52629
|
-
};
|
|
52630
|
-
/**
|
|
52631
|
-
* @return {proto.clarifai.api.Runner.ObjectCase}
|
|
52632
|
-
*/
|
|
52633
|
-
proto.clarifai.api.Runner.prototype.getObjectCase = function () {
|
|
52634
|
-
return /** @type {proto.clarifai.api.Runner.ObjectCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.Runner.oneofGroups_[0]));
|
|
52635
|
-
};
|
|
52636
52635
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
52637
52636
|
/**
|
|
52638
52637
|
* Creates an object representation of this proto.
|
|
@@ -52667,8 +52666,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
52667
52666
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
52668
52667
|
userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
52669
52668
|
labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
52670
|
-
|
|
52671
|
-
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
52669
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
52672
52670
|
nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
|
|
52673
52671
|
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
|
|
52674
52672
|
};
|
|
@@ -52733,22 +52731,17 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
52733
52731
|
var value = /** @type {string} */ (reader.readString());
|
|
52734
52732
|
msg.addLabels(value);
|
|
52735
52733
|
break;
|
|
52736
|
-
case
|
|
52737
|
-
var value = new proto.clarifai.api.
|
|
52738
|
-
reader.readMessage(value, proto.clarifai.api.
|
|
52739
|
-
msg.
|
|
52740
|
-
break;
|
|
52741
|
-
case 10:
|
|
52742
|
-
var value = new proto.clarifai.api.Workflow;
|
|
52743
|
-
reader.readMessage(value, proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
52744
|
-
msg.setWorkflow(value);
|
|
52734
|
+
case 8:
|
|
52735
|
+
var value = new proto.clarifai.api.Worker;
|
|
52736
|
+
reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
52737
|
+
msg.setWorker(value);
|
|
52745
52738
|
break;
|
|
52746
|
-
case
|
|
52739
|
+
case 9:
|
|
52747
52740
|
var value = new proto.clarifai.api.Nodepool;
|
|
52748
52741
|
reader.readMessage(value, proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
52749
52742
|
msg.setNodepool(value);
|
|
52750
52743
|
break;
|
|
52751
|
-
case
|
|
52744
|
+
case 10:
|
|
52752
52745
|
var value = new proto.clarifai.api.ComputeInfo;
|
|
52753
52746
|
reader.readMessage(value, proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
52754
52747
|
msg.setComputeInfo(value);
|
|
@@ -52806,21 +52799,17 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function (message, writer) {
|
|
|
52806
52799
|
if (f.length > 0) {
|
|
52807
52800
|
writer.writeRepeatedString(7, f);
|
|
52808
52801
|
}
|
|
52809
|
-
f = message.
|
|
52810
|
-
if (f != null) {
|
|
52811
|
-
writer.writeMessage(9, f, proto.clarifai.api.Model.serializeBinaryToWriter);
|
|
52812
|
-
}
|
|
52813
|
-
f = message.getWorkflow();
|
|
52802
|
+
f = message.getWorker();
|
|
52814
52803
|
if (f != null) {
|
|
52815
|
-
writer.writeMessage(
|
|
52804
|
+
writer.writeMessage(8, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
|
|
52816
52805
|
}
|
|
52817
52806
|
f = message.getNodepool();
|
|
52818
52807
|
if (f != null) {
|
|
52819
|
-
writer.writeMessage(
|
|
52808
|
+
writer.writeMessage(9, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
|
|
52820
52809
|
}
|
|
52821
52810
|
f = message.getComputeInfo();
|
|
52822
52811
|
if (f != null) {
|
|
52823
|
-
writer.writeMessage(
|
|
52812
|
+
writer.writeMessage(10, f, proto.clarifai.api.ComputeInfo.serializeBinaryToWriter);
|
|
52824
52813
|
}
|
|
52825
52814
|
};
|
|
52826
52815
|
/**
|
|
@@ -52979,74 +52968,46 @@ proto.clarifai.api.Runner.prototype.clearLabelsList = function () {
|
|
|
52979
52968
|
return this.setLabelsList([]);
|
|
52980
52969
|
};
|
|
52981
52970
|
/**
|
|
52982
|
-
* optional
|
|
52983
|
-
* @return {?proto.clarifai.api.
|
|
52984
|
-
*/
|
|
52985
|
-
proto.clarifai.api.Runner.prototype.getModel = function () {
|
|
52986
|
-
return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 9));
|
|
52987
|
-
};
|
|
52988
|
-
/**
|
|
52989
|
-
* @param {?proto.clarifai.api.Model|undefined} value
|
|
52990
|
-
* @return {!proto.clarifai.api.Runner} returns this
|
|
52991
|
-
*/
|
|
52992
|
-
proto.clarifai.api.Runner.prototype.setModel = function (value) {
|
|
52993
|
-
return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.Runner.oneofGroups_[0], value);
|
|
52994
|
-
};
|
|
52995
|
-
/**
|
|
52996
|
-
* Clears the message field making it undefined.
|
|
52997
|
-
* @return {!proto.clarifai.api.Runner} returns this
|
|
52998
|
-
*/
|
|
52999
|
-
proto.clarifai.api.Runner.prototype.clearModel = function () {
|
|
53000
|
-
return this.setModel(undefined);
|
|
53001
|
-
};
|
|
53002
|
-
/**
|
|
53003
|
-
* Returns whether this field is set.
|
|
53004
|
-
* @return {boolean}
|
|
53005
|
-
*/
|
|
53006
|
-
proto.clarifai.api.Runner.prototype.hasModel = function () {
|
|
53007
|
-
return jspb.Message.getField(this, 9) != null;
|
|
53008
|
-
};
|
|
53009
|
-
/**
|
|
53010
|
-
* optional Workflow workflow = 10;
|
|
53011
|
-
* @return {?proto.clarifai.api.Workflow}
|
|
52971
|
+
* optional Worker worker = 8;
|
|
52972
|
+
* @return {?proto.clarifai.api.Worker}
|
|
53012
52973
|
*/
|
|
53013
|
-
proto.clarifai.api.Runner.prototype.
|
|
53014
|
-
return /** @type{?proto.clarifai.api.
|
|
52974
|
+
proto.clarifai.api.Runner.prototype.getWorker = function () {
|
|
52975
|
+
return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 8));
|
|
53015
52976
|
};
|
|
53016
52977
|
/**
|
|
53017
|
-
* @param {?proto.clarifai.api.
|
|
52978
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
53018
52979
|
* @return {!proto.clarifai.api.Runner} returns this
|
|
53019
52980
|
*/
|
|
53020
|
-
proto.clarifai.api.Runner.prototype.
|
|
53021
|
-
return jspb.Message.
|
|
52981
|
+
proto.clarifai.api.Runner.prototype.setWorker = function (value) {
|
|
52982
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
53022
52983
|
};
|
|
53023
52984
|
/**
|
|
53024
52985
|
* Clears the message field making it undefined.
|
|
53025
52986
|
* @return {!proto.clarifai.api.Runner} returns this
|
|
53026
52987
|
*/
|
|
53027
|
-
proto.clarifai.api.Runner.prototype.
|
|
53028
|
-
return this.
|
|
52988
|
+
proto.clarifai.api.Runner.prototype.clearWorker = function () {
|
|
52989
|
+
return this.setWorker(undefined);
|
|
53029
52990
|
};
|
|
53030
52991
|
/**
|
|
53031
52992
|
* Returns whether this field is set.
|
|
53032
52993
|
* @return {boolean}
|
|
53033
52994
|
*/
|
|
53034
|
-
proto.clarifai.api.Runner.prototype.
|
|
53035
|
-
return jspb.Message.getField(this,
|
|
52995
|
+
proto.clarifai.api.Runner.prototype.hasWorker = function () {
|
|
52996
|
+
return jspb.Message.getField(this, 8) != null;
|
|
53036
52997
|
};
|
|
53037
52998
|
/**
|
|
53038
|
-
* optional Nodepool nodepool =
|
|
52999
|
+
* optional Nodepool nodepool = 9;
|
|
53039
53000
|
* @return {?proto.clarifai.api.Nodepool}
|
|
53040
53001
|
*/
|
|
53041
53002
|
proto.clarifai.api.Runner.prototype.getNodepool = function () {
|
|
53042
|
-
return /** @type{?proto.clarifai.api.Nodepool} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool,
|
|
53003
|
+
return /** @type{?proto.clarifai.api.Nodepool} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 9));
|
|
53043
53004
|
};
|
|
53044
53005
|
/**
|
|
53045
53006
|
* @param {?proto.clarifai.api.Nodepool|undefined} value
|
|
53046
53007
|
* @return {!proto.clarifai.api.Runner} returns this
|
|
53047
53008
|
*/
|
|
53048
53009
|
proto.clarifai.api.Runner.prototype.setNodepool = function (value) {
|
|
53049
|
-
return jspb.Message.setWrapperField(this,
|
|
53010
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
53050
53011
|
};
|
|
53051
53012
|
/**
|
|
53052
53013
|
* Clears the message field making it undefined.
|
|
@@ -53060,21 +53021,21 @@ proto.clarifai.api.Runner.prototype.clearNodepool = function () {
|
|
|
53060
53021
|
* @return {boolean}
|
|
53061
53022
|
*/
|
|
53062
53023
|
proto.clarifai.api.Runner.prototype.hasNodepool = function () {
|
|
53063
|
-
return jspb.Message.getField(this,
|
|
53024
|
+
return jspb.Message.getField(this, 9) != null;
|
|
53064
53025
|
};
|
|
53065
53026
|
/**
|
|
53066
|
-
* optional ComputeInfo compute_info =
|
|
53027
|
+
* optional ComputeInfo compute_info = 10;
|
|
53067
53028
|
* @return {?proto.clarifai.api.ComputeInfo}
|
|
53068
53029
|
*/
|
|
53069
53030
|
proto.clarifai.api.Runner.prototype.getComputeInfo = function () {
|
|
53070
|
-
return /** @type{?proto.clarifai.api.ComputeInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo,
|
|
53031
|
+
return /** @type{?proto.clarifai.api.ComputeInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 10));
|
|
53071
53032
|
};
|
|
53072
53033
|
/**
|
|
53073
53034
|
* @param {?proto.clarifai.api.ComputeInfo|undefined} value
|
|
53074
53035
|
* @return {!proto.clarifai.api.Runner} returns this
|
|
53075
53036
|
*/
|
|
53076
53037
|
proto.clarifai.api.Runner.prototype.setComputeInfo = function (value) {
|
|
53077
|
-
return jspb.Message.setWrapperField(this,
|
|
53038
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
53078
53039
|
};
|
|
53079
53040
|
/**
|
|
53080
53041
|
* Clears the message field making it undefined.
|
|
@@ -53088,7 +53049,7 @@ proto.clarifai.api.Runner.prototype.clearComputeInfo = function () {
|
|
|
53088
53049
|
* @return {boolean}
|
|
53089
53050
|
*/
|
|
53090
53051
|
proto.clarifai.api.Runner.prototype.hasComputeInfo = function () {
|
|
53091
|
-
return jspb.Message.getField(this,
|
|
53052
|
+
return jspb.Message.getField(this, 10) != null;
|
|
53092
53053
|
};
|
|
53093
53054
|
/**
|
|
53094
53055
|
* List of repeated fields within this message type.
|
|
@@ -54028,7 +53989,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
54028
53989
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
54029
53990
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
54030
53991
|
cloudProvider: (f = msg.getCloudProvider()) && proto.clarifai.api.CloudProvider.toObject(includeInstance, f),
|
|
54031
|
-
region: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
53992
|
+
region: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
53993
|
+
userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
53994
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
53995
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
54032
53996
|
};
|
|
54033
53997
|
if (includeInstance) {
|
|
54034
53998
|
obj.$jspbMessageInstance = msg;
|
|
@@ -54077,6 +54041,20 @@ proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader = function (msg, r
|
|
|
54077
54041
|
var value = /** @type {string} */ (reader.readString());
|
|
54078
54042
|
msg.setRegion(value);
|
|
54079
54043
|
break;
|
|
54044
|
+
case 5:
|
|
54045
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54046
|
+
msg.setUserId(value);
|
|
54047
|
+
break;
|
|
54048
|
+
case 6:
|
|
54049
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54050
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54051
|
+
msg.setCreatedAt(value);
|
|
54052
|
+
break;
|
|
54053
|
+
case 7:
|
|
54054
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54055
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54056
|
+
msg.setModifiedAt(value);
|
|
54057
|
+
break;
|
|
54080
54058
|
default:
|
|
54081
54059
|
reader.skipField();
|
|
54082
54060
|
break;
|
|
@@ -54118,6 +54096,18 @@ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter = function (message, w
|
|
|
54118
54096
|
if (f.length > 0) {
|
|
54119
54097
|
writer.writeString(4, f);
|
|
54120
54098
|
}
|
|
54099
|
+
f = message.getUserId();
|
|
54100
|
+
if (f.length > 0) {
|
|
54101
|
+
writer.writeString(5, f);
|
|
54102
|
+
}
|
|
54103
|
+
f = message.getCreatedAt();
|
|
54104
|
+
if (f != null) {
|
|
54105
|
+
writer.writeMessage(6, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
54106
|
+
}
|
|
54107
|
+
f = message.getModifiedAt();
|
|
54108
|
+
if (f != null) {
|
|
54109
|
+
writer.writeMessage(7, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
54110
|
+
}
|
|
54121
54111
|
};
|
|
54122
54112
|
/**
|
|
54123
54113
|
* optional string id = 1;
|
|
@@ -54189,6 +54179,76 @@ proto.clarifai.api.ComputeCluster.prototype.getRegion = function () {
|
|
|
54189
54179
|
proto.clarifai.api.ComputeCluster.prototype.setRegion = function (value) {
|
|
54190
54180
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
54191
54181
|
};
|
|
54182
|
+
/**
|
|
54183
|
+
* optional string user_id = 5;
|
|
54184
|
+
* @return {string}
|
|
54185
|
+
*/
|
|
54186
|
+
proto.clarifai.api.ComputeCluster.prototype.getUserId = function () {
|
|
54187
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
54188
|
+
};
|
|
54189
|
+
/**
|
|
54190
|
+
* @param {string} value
|
|
54191
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
54192
|
+
*/
|
|
54193
|
+
proto.clarifai.api.ComputeCluster.prototype.setUserId = function (value) {
|
|
54194
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
54195
|
+
};
|
|
54196
|
+
/**
|
|
54197
|
+
* optional google.protobuf.Timestamp created_at = 6;
|
|
54198
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
54199
|
+
*/
|
|
54200
|
+
proto.clarifai.api.ComputeCluster.prototype.getCreatedAt = function () {
|
|
54201
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
54202
|
+
};
|
|
54203
|
+
/**
|
|
54204
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
54205
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
54206
|
+
*/
|
|
54207
|
+
proto.clarifai.api.ComputeCluster.prototype.setCreatedAt = function (value) {
|
|
54208
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
54209
|
+
};
|
|
54210
|
+
/**
|
|
54211
|
+
* Clears the message field making it undefined.
|
|
54212
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
54213
|
+
*/
|
|
54214
|
+
proto.clarifai.api.ComputeCluster.prototype.clearCreatedAt = function () {
|
|
54215
|
+
return this.setCreatedAt(undefined);
|
|
54216
|
+
};
|
|
54217
|
+
/**
|
|
54218
|
+
* Returns whether this field is set.
|
|
54219
|
+
* @return {boolean}
|
|
54220
|
+
*/
|
|
54221
|
+
proto.clarifai.api.ComputeCluster.prototype.hasCreatedAt = function () {
|
|
54222
|
+
return jspb.Message.getField(this, 6) != null;
|
|
54223
|
+
};
|
|
54224
|
+
/**
|
|
54225
|
+
* optional google.protobuf.Timestamp modified_at = 7;
|
|
54226
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
54227
|
+
*/
|
|
54228
|
+
proto.clarifai.api.ComputeCluster.prototype.getModifiedAt = function () {
|
|
54229
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
54230
|
+
};
|
|
54231
|
+
/**
|
|
54232
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
54233
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
54234
|
+
*/
|
|
54235
|
+
proto.clarifai.api.ComputeCluster.prototype.setModifiedAt = function (value) {
|
|
54236
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
54237
|
+
};
|
|
54238
|
+
/**
|
|
54239
|
+
* Clears the message field making it undefined.
|
|
54240
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
54241
|
+
*/
|
|
54242
|
+
proto.clarifai.api.ComputeCluster.prototype.clearModifiedAt = function () {
|
|
54243
|
+
return this.setModifiedAt(undefined);
|
|
54244
|
+
};
|
|
54245
|
+
/**
|
|
54246
|
+
* Returns whether this field is set.
|
|
54247
|
+
* @return {boolean}
|
|
54248
|
+
*/
|
|
54249
|
+
proto.clarifai.api.ComputeCluster.prototype.hasModifiedAt = function () {
|
|
54250
|
+
return jspb.Message.getField(this, 7) != null;
|
|
54251
|
+
};
|
|
54192
54252
|
/**
|
|
54193
54253
|
* List of repeated fields within this message type.
|
|
54194
54254
|
* @private {!Array<number>}
|
|
@@ -9264,6 +9264,174 @@ proto.clarifai.api.V2PromiseClient.prototype.postModelVersionsTrainingTimeEstima
|
|
|
9264
9264
|
return this.client_.unaryCall(this.hostname_ +
|
|
9265
9265
|
'/clarifai.api.V2/PostModelVersionsTrainingTimeEstimate', request, metadata || {}, methodDescriptor_V2_PostModelVersionsTrainingTimeEstimate);
|
|
9266
9266
|
};
|
|
9267
|
+
/**
|
|
9268
|
+
* @const
|
|
9269
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
9270
|
+
* !proto.clarifai.api.GetComputeClusterRequest,
|
|
9271
|
+
* !proto.clarifai.api.SingleComputeClusterResponse>}
|
|
9272
|
+
*/
|
|
9273
|
+
const methodDescriptor_V2_GetComputeCluster = new grpc.web.MethodDescriptor('/clarifai.api.V2/GetComputeCluster', grpc.web.MethodType.UNARY, proto.clarifai.api.GetComputeClusterRequest, proto.clarifai.api.SingleComputeClusterResponse,
|
|
9274
|
+
/**
|
|
9275
|
+
* @param {!proto.clarifai.api.GetComputeClusterRequest} request
|
|
9276
|
+
* @return {!Uint8Array}
|
|
9277
|
+
*/
|
|
9278
|
+
function (request) {
|
|
9279
|
+
return request.serializeBinary();
|
|
9280
|
+
}, proto.clarifai.api.SingleComputeClusterResponse.deserializeBinary);
|
|
9281
|
+
/**
|
|
9282
|
+
* @param {!proto.clarifai.api.GetComputeClusterRequest} request The
|
|
9283
|
+
* request proto
|
|
9284
|
+
* @param {?Object<string, string>} metadata User defined
|
|
9285
|
+
* call metadata
|
|
9286
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.SingleComputeClusterResponse)}
|
|
9287
|
+
* callback The callback function(error, response)
|
|
9288
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.SingleComputeClusterResponse>|undefined}
|
|
9289
|
+
* The XHR Node Readable Stream
|
|
9290
|
+
*/
|
|
9291
|
+
proto.clarifai.api.V2Client.prototype.getComputeCluster =
|
|
9292
|
+
function (request, metadata, callback) {
|
|
9293
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
9294
|
+
'/clarifai.api.V2/GetComputeCluster', request, metadata || {}, methodDescriptor_V2_GetComputeCluster, callback);
|
|
9295
|
+
};
|
|
9296
|
+
/**
|
|
9297
|
+
* @param {!proto.clarifai.api.GetComputeClusterRequest} request The
|
|
9298
|
+
* request proto
|
|
9299
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
9300
|
+
* call metadata
|
|
9301
|
+
* @return {!Promise<!proto.clarifai.api.SingleComputeClusterResponse>}
|
|
9302
|
+
* Promise that resolves to the response
|
|
9303
|
+
*/
|
|
9304
|
+
proto.clarifai.api.V2PromiseClient.prototype.getComputeCluster =
|
|
9305
|
+
function (request, metadata) {
|
|
9306
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
9307
|
+
'/clarifai.api.V2/GetComputeCluster', request, metadata || {}, methodDescriptor_V2_GetComputeCluster);
|
|
9308
|
+
};
|
|
9309
|
+
/**
|
|
9310
|
+
* @const
|
|
9311
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
9312
|
+
* !proto.clarifai.api.ListComputeClustersRequest,
|
|
9313
|
+
* !proto.clarifai.api.MultiComputeClusterResponse>}
|
|
9314
|
+
*/
|
|
9315
|
+
const methodDescriptor_V2_ListComputeClusters = new grpc.web.MethodDescriptor('/clarifai.api.V2/ListComputeClusters', grpc.web.MethodType.UNARY, proto.clarifai.api.ListComputeClustersRequest, proto.clarifai.api.MultiComputeClusterResponse,
|
|
9316
|
+
/**
|
|
9317
|
+
* @param {!proto.clarifai.api.ListComputeClustersRequest} request
|
|
9318
|
+
* @return {!Uint8Array}
|
|
9319
|
+
*/
|
|
9320
|
+
function (request) {
|
|
9321
|
+
return request.serializeBinary();
|
|
9322
|
+
}, proto.clarifai.api.MultiComputeClusterResponse.deserializeBinary);
|
|
9323
|
+
/**
|
|
9324
|
+
* @param {!proto.clarifai.api.ListComputeClustersRequest} request The
|
|
9325
|
+
* request proto
|
|
9326
|
+
* @param {?Object<string, string>} metadata User defined
|
|
9327
|
+
* call metadata
|
|
9328
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiComputeClusterResponse)}
|
|
9329
|
+
* callback The callback function(error, response)
|
|
9330
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiComputeClusterResponse>|undefined}
|
|
9331
|
+
* The XHR Node Readable Stream
|
|
9332
|
+
*/
|
|
9333
|
+
proto.clarifai.api.V2Client.prototype.listComputeClusters =
|
|
9334
|
+
function (request, metadata, callback) {
|
|
9335
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
9336
|
+
'/clarifai.api.V2/ListComputeClusters', request, metadata || {}, methodDescriptor_V2_ListComputeClusters, callback);
|
|
9337
|
+
};
|
|
9338
|
+
/**
|
|
9339
|
+
* @param {!proto.clarifai.api.ListComputeClustersRequest} request The
|
|
9340
|
+
* request proto
|
|
9341
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
9342
|
+
* call metadata
|
|
9343
|
+
* @return {!Promise<!proto.clarifai.api.MultiComputeClusterResponse>}
|
|
9344
|
+
* Promise that resolves to the response
|
|
9345
|
+
*/
|
|
9346
|
+
proto.clarifai.api.V2PromiseClient.prototype.listComputeClusters =
|
|
9347
|
+
function (request, metadata) {
|
|
9348
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
9349
|
+
'/clarifai.api.V2/ListComputeClusters', request, metadata || {}, methodDescriptor_V2_ListComputeClusters);
|
|
9350
|
+
};
|
|
9351
|
+
/**
|
|
9352
|
+
* @const
|
|
9353
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
9354
|
+
* !proto.clarifai.api.PostComputeClustersRequest,
|
|
9355
|
+
* !proto.clarifai.api.MultiComputeClusterResponse>}
|
|
9356
|
+
*/
|
|
9357
|
+
const methodDescriptor_V2_PostComputeClusters = new grpc.web.MethodDescriptor('/clarifai.api.V2/PostComputeClusters', grpc.web.MethodType.UNARY, proto.clarifai.api.PostComputeClustersRequest, proto.clarifai.api.MultiComputeClusterResponse,
|
|
9358
|
+
/**
|
|
9359
|
+
* @param {!proto.clarifai.api.PostComputeClustersRequest} request
|
|
9360
|
+
* @return {!Uint8Array}
|
|
9361
|
+
*/
|
|
9362
|
+
function (request) {
|
|
9363
|
+
return request.serializeBinary();
|
|
9364
|
+
}, proto.clarifai.api.MultiComputeClusterResponse.deserializeBinary);
|
|
9365
|
+
/**
|
|
9366
|
+
* @param {!proto.clarifai.api.PostComputeClustersRequest} request The
|
|
9367
|
+
* request proto
|
|
9368
|
+
* @param {?Object<string, string>} metadata User defined
|
|
9369
|
+
* call metadata
|
|
9370
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiComputeClusterResponse)}
|
|
9371
|
+
* callback The callback function(error, response)
|
|
9372
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiComputeClusterResponse>|undefined}
|
|
9373
|
+
* The XHR Node Readable Stream
|
|
9374
|
+
*/
|
|
9375
|
+
proto.clarifai.api.V2Client.prototype.postComputeClusters =
|
|
9376
|
+
function (request, metadata, callback) {
|
|
9377
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
9378
|
+
'/clarifai.api.V2/PostComputeClusters', request, metadata || {}, methodDescriptor_V2_PostComputeClusters, callback);
|
|
9379
|
+
};
|
|
9380
|
+
/**
|
|
9381
|
+
* @param {!proto.clarifai.api.PostComputeClustersRequest} request The
|
|
9382
|
+
* request proto
|
|
9383
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
9384
|
+
* call metadata
|
|
9385
|
+
* @return {!Promise<!proto.clarifai.api.MultiComputeClusterResponse>}
|
|
9386
|
+
* Promise that resolves to the response
|
|
9387
|
+
*/
|
|
9388
|
+
proto.clarifai.api.V2PromiseClient.prototype.postComputeClusters =
|
|
9389
|
+
function (request, metadata) {
|
|
9390
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
9391
|
+
'/clarifai.api.V2/PostComputeClusters', request, metadata || {}, methodDescriptor_V2_PostComputeClusters);
|
|
9392
|
+
};
|
|
9393
|
+
/**
|
|
9394
|
+
* @const
|
|
9395
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
9396
|
+
* !proto.clarifai.api.DeleteComputeClustersRequest,
|
|
9397
|
+
* !proto.clarifai.api.status.BaseResponse>}
|
|
9398
|
+
*/
|
|
9399
|
+
const methodDescriptor_V2_DeleteComputeClusters = new grpc.web.MethodDescriptor('/clarifai.api.V2/DeleteComputeClusters', grpc.web.MethodType.UNARY, proto.clarifai.api.DeleteComputeClustersRequest, proto_clarifai_api_status_status_pb.BaseResponse,
|
|
9400
|
+
/**
|
|
9401
|
+
* @param {!proto.clarifai.api.DeleteComputeClustersRequest} request
|
|
9402
|
+
* @return {!Uint8Array}
|
|
9403
|
+
*/
|
|
9404
|
+
function (request) {
|
|
9405
|
+
return request.serializeBinary();
|
|
9406
|
+
}, proto_clarifai_api_status_status_pb.BaseResponse.deserializeBinary);
|
|
9407
|
+
/**
|
|
9408
|
+
* @param {!proto.clarifai.api.DeleteComputeClustersRequest} request The
|
|
9409
|
+
* request proto
|
|
9410
|
+
* @param {?Object<string, string>} metadata User defined
|
|
9411
|
+
* call metadata
|
|
9412
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.status.BaseResponse)}
|
|
9413
|
+
* callback The callback function(error, response)
|
|
9414
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.status.BaseResponse>|undefined}
|
|
9415
|
+
* The XHR Node Readable Stream
|
|
9416
|
+
*/
|
|
9417
|
+
proto.clarifai.api.V2Client.prototype.deleteComputeClusters =
|
|
9418
|
+
function (request, metadata, callback) {
|
|
9419
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
9420
|
+
'/clarifai.api.V2/DeleteComputeClusters', request, metadata || {}, methodDescriptor_V2_DeleteComputeClusters, callback);
|
|
9421
|
+
};
|
|
9422
|
+
/**
|
|
9423
|
+
* @param {!proto.clarifai.api.DeleteComputeClustersRequest} request The
|
|
9424
|
+
* request proto
|
|
9425
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
9426
|
+
* call metadata
|
|
9427
|
+
* @return {!Promise<!proto.clarifai.api.status.BaseResponse>}
|
|
9428
|
+
* Promise that resolves to the response
|
|
9429
|
+
*/
|
|
9430
|
+
proto.clarifai.api.V2PromiseClient.prototype.deleteComputeClusters =
|
|
9431
|
+
function (request, metadata) {
|
|
9432
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
9433
|
+
'/clarifai.api.V2/DeleteComputeClusters', request, metadata || {}, methodDescriptor_V2_DeleteComputeClusters);
|
|
9434
|
+
};
|
|
9267
9435
|
/**
|
|
9268
9436
|
* @const
|
|
9269
9437
|
* @type {!grpc.web.MethodDescriptor<
|