clarifai-web-grpc 11.0.3 → 11.0.5
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 +24 -1
- package/dist/cjs/proto/clarifai/api/service_pb.js +24 -1
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +24 -1
- package/dist/esm/proto/clarifai/api/service_pb.js +24 -1
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +4 -0
- package/proto/clarifai/api/resources_pb.js +31 -1
- package/proto/clarifai/api/service_pb.d.ts +4 -0
- package/proto/clarifai/api/service_pb.js +31 -1
- package/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
- package/proto/clarifai/api/status/status_code_pb.js +1 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.0.
|
|
1
|
+
11.0.5
|
|
@@ -55308,7 +55308,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
55308
55308
|
var f, obj = {
|
|
55309
55309
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
55310
55310
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
55311
|
-
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
|
|
55311
|
+
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
|
|
55312
|
+
price: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
55312
55313
|
};
|
|
55313
55314
|
if (includeInstance) {
|
|
55314
55315
|
obj.$jspbMessageInstance = msg;
|
|
@@ -55353,6 +55354,10 @@ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function (msg, rea
|
|
|
55353
55354
|
reader.readMessage(value, proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
55354
55355
|
msg.setComputeInfo(value);
|
|
55355
55356
|
break;
|
|
55357
|
+
case 4:
|
|
55358
|
+
var value = /** @type {string} */ (reader.readString());
|
|
55359
|
+
msg.setPrice(value);
|
|
55360
|
+
break;
|
|
55356
55361
|
default:
|
|
55357
55362
|
reader.skipField();
|
|
55358
55363
|
break;
|
|
@@ -55390,6 +55395,10 @@ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function (message, wri
|
|
|
55390
55395
|
if (f != null) {
|
|
55391
55396
|
writer.writeMessage(3, f, proto.clarifai.api.ComputeInfo.serializeBinaryToWriter);
|
|
55392
55397
|
}
|
|
55398
|
+
f = message.getPrice();
|
|
55399
|
+
if (f.length > 0) {
|
|
55400
|
+
writer.writeString(4, f);
|
|
55401
|
+
}
|
|
55393
55402
|
};
|
|
55394
55403
|
/**
|
|
55395
55404
|
* optional string id = 1;
|
|
@@ -55447,6 +55456,20 @@ proto.clarifai.api.InstanceType.prototype.clearComputeInfo = function () {
|
|
|
55447
55456
|
proto.clarifai.api.InstanceType.prototype.hasComputeInfo = function () {
|
|
55448
55457
|
return jspb.Message.getField(this, 3) != null;
|
|
55449
55458
|
};
|
|
55459
|
+
/**
|
|
55460
|
+
* optional string price = 4;
|
|
55461
|
+
* @return {string}
|
|
55462
|
+
*/
|
|
55463
|
+
proto.clarifai.api.InstanceType.prototype.getPrice = function () {
|
|
55464
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
55465
|
+
};
|
|
55466
|
+
/**
|
|
55467
|
+
* @param {string} value
|
|
55468
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
55469
|
+
*/
|
|
55470
|
+
proto.clarifai.api.InstanceType.prototype.setPrice = function (value) {
|
|
55471
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
55472
|
+
};
|
|
55450
55473
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55451
55474
|
/**
|
|
55452
55475
|
* Creates an object representation of this proto.
|
|
@@ -26785,7 +26785,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
26785
26785
|
versionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
26786
26786
|
inputsList: jspb.Message.toObjectList(msg.getInputsList(), proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
|
|
26787
26787
|
model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
|
|
26788
|
-
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f)
|
|
26788
|
+
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f),
|
|
26789
|
+
usePredictCache: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
26789
26790
|
};
|
|
26790
26791
|
if (includeInstance) {
|
|
26791
26792
|
obj.$jspbMessageInstance = msg;
|
|
@@ -26845,6 +26846,10 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio
|
|
|
26845
26846
|
reader.readMessage(value, proto_clarifai_api_resources_pb.RunnerSelector.deserializeBinaryFromReader);
|
|
26846
26847
|
msg.setRunnerSelector(value);
|
|
26847
26848
|
break;
|
|
26849
|
+
case 7:
|
|
26850
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
26851
|
+
msg.setUsePredictCache(value);
|
|
26852
|
+
break;
|
|
26848
26853
|
default:
|
|
26849
26854
|
reader.skipField();
|
|
26850
26855
|
break;
|
|
@@ -26894,6 +26899,10 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function (m
|
|
|
26894
26899
|
if (f != null) {
|
|
26895
26900
|
writer.writeMessage(6, f, proto_clarifai_api_resources_pb.RunnerSelector.serializeBinaryToWriter);
|
|
26896
26901
|
}
|
|
26902
|
+
f = message.getUsePredictCache();
|
|
26903
|
+
if (f) {
|
|
26904
|
+
writer.writeBool(7, f);
|
|
26905
|
+
}
|
|
26897
26906
|
};
|
|
26898
26907
|
/**
|
|
26899
26908
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -27036,6 +27045,20 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.clearRunnerSelector = funct
|
|
|
27036
27045
|
proto.clarifai.api.PostModelOutputsRequest.prototype.hasRunnerSelector = function () {
|
|
27037
27046
|
return jspb.Message.getField(this, 6) != null;
|
|
27038
27047
|
};
|
|
27048
|
+
/**
|
|
27049
|
+
* optional bool use_predict_cache = 7;
|
|
27050
|
+
* @return {boolean}
|
|
27051
|
+
*/
|
|
27052
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.getUsePredictCache = function () {
|
|
27053
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
27054
|
+
};
|
|
27055
|
+
/**
|
|
27056
|
+
* @param {boolean} value
|
|
27057
|
+
* @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
|
|
27058
|
+
*/
|
|
27059
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.setUsePredictCache = function (value) {
|
|
27060
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
27061
|
+
};
|
|
27039
27062
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27040
27063
|
/**
|
|
27041
27064
|
* Creates an object representation of this proto.
|
|
@@ -187,6 +187,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
187
187
|
INSTANCE_TYPE_DOES_NOT_EXIST: 26000,
|
|
188
188
|
INSTANCE_TYPE_INVALID_ARGUMENT: 26001,
|
|
189
189
|
INSTANCE_TYPE_INVALID_REQUEST: 26002,
|
|
190
|
+
COMPUTE_PLANE_METRICS_INVALID_REQUEST: 26100,
|
|
190
191
|
INPUT_SUCCESS: 30000,
|
|
191
192
|
INPUT_PENDING: 30001,
|
|
192
193
|
INPUT_FAILED: 30002,
|
|
@@ -55308,7 +55308,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
55308
55308
|
var f, obj = {
|
|
55309
55309
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
55310
55310
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
55311
|
-
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
|
|
55311
|
+
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
|
|
55312
|
+
price: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
55312
55313
|
};
|
|
55313
55314
|
if (includeInstance) {
|
|
55314
55315
|
obj.$jspbMessageInstance = msg;
|
|
@@ -55353,6 +55354,10 @@ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function (msg, rea
|
|
|
55353
55354
|
reader.readMessage(value, proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
55354
55355
|
msg.setComputeInfo(value);
|
|
55355
55356
|
break;
|
|
55357
|
+
case 4:
|
|
55358
|
+
var value = /** @type {string} */ (reader.readString());
|
|
55359
|
+
msg.setPrice(value);
|
|
55360
|
+
break;
|
|
55356
55361
|
default:
|
|
55357
55362
|
reader.skipField();
|
|
55358
55363
|
break;
|
|
@@ -55390,6 +55395,10 @@ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function (message, wri
|
|
|
55390
55395
|
if (f != null) {
|
|
55391
55396
|
writer.writeMessage(3, f, proto.clarifai.api.ComputeInfo.serializeBinaryToWriter);
|
|
55392
55397
|
}
|
|
55398
|
+
f = message.getPrice();
|
|
55399
|
+
if (f.length > 0) {
|
|
55400
|
+
writer.writeString(4, f);
|
|
55401
|
+
}
|
|
55393
55402
|
};
|
|
55394
55403
|
/**
|
|
55395
55404
|
* optional string id = 1;
|
|
@@ -55447,6 +55456,20 @@ proto.clarifai.api.InstanceType.prototype.clearComputeInfo = function () {
|
|
|
55447
55456
|
proto.clarifai.api.InstanceType.prototype.hasComputeInfo = function () {
|
|
55448
55457
|
return jspb.Message.getField(this, 3) != null;
|
|
55449
55458
|
};
|
|
55459
|
+
/**
|
|
55460
|
+
* optional string price = 4;
|
|
55461
|
+
* @return {string}
|
|
55462
|
+
*/
|
|
55463
|
+
proto.clarifai.api.InstanceType.prototype.getPrice = function () {
|
|
55464
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
55465
|
+
};
|
|
55466
|
+
/**
|
|
55467
|
+
* @param {string} value
|
|
55468
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
55469
|
+
*/
|
|
55470
|
+
proto.clarifai.api.InstanceType.prototype.setPrice = function (value) {
|
|
55471
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
55472
|
+
};
|
|
55450
55473
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55451
55474
|
/**
|
|
55452
55475
|
* Creates an object representation of this proto.
|
|
@@ -26785,7 +26785,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
26785
26785
|
versionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
26786
26786
|
inputsList: jspb.Message.toObjectList(msg.getInputsList(), proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
|
|
26787
26787
|
model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
|
|
26788
|
-
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f)
|
|
26788
|
+
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f),
|
|
26789
|
+
usePredictCache: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
26789
26790
|
};
|
|
26790
26791
|
if (includeInstance) {
|
|
26791
26792
|
obj.$jspbMessageInstance = msg;
|
|
@@ -26845,6 +26846,10 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio
|
|
|
26845
26846
|
reader.readMessage(value, proto_clarifai_api_resources_pb.RunnerSelector.deserializeBinaryFromReader);
|
|
26846
26847
|
msg.setRunnerSelector(value);
|
|
26847
26848
|
break;
|
|
26849
|
+
case 7:
|
|
26850
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
26851
|
+
msg.setUsePredictCache(value);
|
|
26852
|
+
break;
|
|
26848
26853
|
default:
|
|
26849
26854
|
reader.skipField();
|
|
26850
26855
|
break;
|
|
@@ -26894,6 +26899,10 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function (m
|
|
|
26894
26899
|
if (f != null) {
|
|
26895
26900
|
writer.writeMessage(6, f, proto_clarifai_api_resources_pb.RunnerSelector.serializeBinaryToWriter);
|
|
26896
26901
|
}
|
|
26902
|
+
f = message.getUsePredictCache();
|
|
26903
|
+
if (f) {
|
|
26904
|
+
writer.writeBool(7, f);
|
|
26905
|
+
}
|
|
26897
26906
|
};
|
|
26898
26907
|
/**
|
|
26899
26908
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -27036,6 +27045,20 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.clearRunnerSelector = funct
|
|
|
27036
27045
|
proto.clarifai.api.PostModelOutputsRequest.prototype.hasRunnerSelector = function () {
|
|
27037
27046
|
return jspb.Message.getField(this, 6) != null;
|
|
27038
27047
|
};
|
|
27048
|
+
/**
|
|
27049
|
+
* optional bool use_predict_cache = 7;
|
|
27050
|
+
* @return {boolean}
|
|
27051
|
+
*/
|
|
27052
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.getUsePredictCache = function () {
|
|
27053
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
27054
|
+
};
|
|
27055
|
+
/**
|
|
27056
|
+
* @param {boolean} value
|
|
27057
|
+
* @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
|
|
27058
|
+
*/
|
|
27059
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.setUsePredictCache = function (value) {
|
|
27060
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
27061
|
+
};
|
|
27039
27062
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27040
27063
|
/**
|
|
27041
27064
|
* Creates an object representation of this proto.
|
|
@@ -187,6 +187,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
187
187
|
INSTANCE_TYPE_DOES_NOT_EXIST: 26000,
|
|
188
188
|
INSTANCE_TYPE_INVALID_ARGUMENT: 26001,
|
|
189
189
|
INSTANCE_TYPE_INVALID_REQUEST: 26002,
|
|
190
|
+
COMPUTE_PLANE_METRICS_INVALID_REQUEST: 26100,
|
|
190
191
|
INPUT_SUCCESS: 30000,
|
|
191
192
|
INPUT_PENDING: 30001,
|
|
192
193
|
INPUT_FAILED: 30002,
|
package/package.json
CHANGED
|
@@ -8401,6 +8401,9 @@ export class InstanceType extends jspb.Message {
|
|
|
8401
8401
|
hasComputeInfo(): boolean;
|
|
8402
8402
|
clearComputeInfo(): InstanceType;
|
|
8403
8403
|
|
|
8404
|
+
getPrice(): string;
|
|
8405
|
+
setPrice(value: string): InstanceType;
|
|
8406
|
+
|
|
8404
8407
|
serializeBinary(): Uint8Array;
|
|
8405
8408
|
toObject(includeInstance?: boolean): InstanceType.AsObject;
|
|
8406
8409
|
static toObject(includeInstance: boolean, msg: InstanceType): InstanceType.AsObject;
|
|
@@ -8414,6 +8417,7 @@ export namespace InstanceType {
|
|
|
8414
8417
|
id: string,
|
|
8415
8418
|
description: string,
|
|
8416
8419
|
computeInfo?: ComputeInfo.AsObject,
|
|
8420
|
+
price: string,
|
|
8417
8421
|
}
|
|
8418
8422
|
}
|
|
8419
8423
|
|
|
@@ -69162,7 +69162,8 @@ proto.clarifai.api.InstanceType.toObject = function(includeInstance, msg) {
|
|
|
69162
69162
|
var f, obj = {
|
|
69163
69163
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
69164
69164
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
69165
|
-
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
|
|
69165
|
+
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
|
|
69166
|
+
price: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
69166
69167
|
};
|
|
69167
69168
|
|
|
69168
69169
|
if (includeInstance) {
|
|
@@ -69212,6 +69213,10 @@ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function(msg, read
|
|
|
69212
69213
|
reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
69213
69214
|
msg.setComputeInfo(value);
|
|
69214
69215
|
break;
|
|
69216
|
+
case 4:
|
|
69217
|
+
var value = /** @type {string} */ (reader.readString());
|
|
69218
|
+
msg.setPrice(value);
|
|
69219
|
+
break;
|
|
69215
69220
|
default:
|
|
69216
69221
|
reader.skipField();
|
|
69217
69222
|
break;
|
|
@@ -69263,6 +69268,13 @@ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function(message, writ
|
|
|
69263
69268
|
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
|
|
69264
69269
|
);
|
|
69265
69270
|
}
|
|
69271
|
+
f = message.getPrice();
|
|
69272
|
+
if (f.length > 0) {
|
|
69273
|
+
writer.writeString(
|
|
69274
|
+
4,
|
|
69275
|
+
f
|
|
69276
|
+
);
|
|
69277
|
+
}
|
|
69266
69278
|
};
|
|
69267
69279
|
|
|
69268
69280
|
|
|
@@ -69339,6 +69351,24 @@ proto.clarifai.api.InstanceType.prototype.hasComputeInfo = function() {
|
|
|
69339
69351
|
};
|
|
69340
69352
|
|
|
69341
69353
|
|
|
69354
|
+
/**
|
|
69355
|
+
* optional string price = 4;
|
|
69356
|
+
* @return {string}
|
|
69357
|
+
*/
|
|
69358
|
+
proto.clarifai.api.InstanceType.prototype.getPrice = function() {
|
|
69359
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
69360
|
+
};
|
|
69361
|
+
|
|
69362
|
+
|
|
69363
|
+
/**
|
|
69364
|
+
* @param {string} value
|
|
69365
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
69366
|
+
*/
|
|
69367
|
+
proto.clarifai.api.InstanceType.prototype.setPrice = function(value) {
|
|
69368
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
69369
|
+
};
|
|
69370
|
+
|
|
69371
|
+
|
|
69342
69372
|
|
|
69343
69373
|
|
|
69344
69374
|
|
|
@@ -3048,6 +3048,9 @@ export class PostModelOutputsRequest extends jspb.Message {
|
|
|
3048
3048
|
hasRunnerSelector(): boolean;
|
|
3049
3049
|
clearRunnerSelector(): PostModelOutputsRequest;
|
|
3050
3050
|
|
|
3051
|
+
getUsePredictCache(): boolean;
|
|
3052
|
+
setUsePredictCache(value: boolean): PostModelOutputsRequest;
|
|
3053
|
+
|
|
3051
3054
|
serializeBinary(): Uint8Array;
|
|
3052
3055
|
toObject(includeInstance?: boolean): PostModelOutputsRequest.AsObject;
|
|
3053
3056
|
static toObject(includeInstance: boolean, msg: PostModelOutputsRequest): PostModelOutputsRequest.AsObject;
|
|
@@ -3064,6 +3067,7 @@ export namespace PostModelOutputsRequest {
|
|
|
3064
3067
|
inputsList: Array<proto_clarifai_api_resources_pb.Input.AsObject>,
|
|
3065
3068
|
model?: proto_clarifai_api_resources_pb.Model.AsObject,
|
|
3066
3069
|
runnerSelector?: proto_clarifai_api_resources_pb.RunnerSelector.AsObject,
|
|
3070
|
+
usePredictCache: boolean,
|
|
3067
3071
|
}
|
|
3068
3072
|
}
|
|
3069
3073
|
|
|
@@ -31746,7 +31746,8 @@ proto.clarifai.api.PostModelOutputsRequest.toObject = function(includeInstance,
|
|
|
31746
31746
|
inputsList: jspb.Message.toObjectList(msg.getInputsList(),
|
|
31747
31747
|
proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
|
|
31748
31748
|
model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
|
|
31749
|
-
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f)
|
|
31749
|
+
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f),
|
|
31750
|
+
usePredictCache: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
31750
31751
|
};
|
|
31751
31752
|
|
|
31752
31753
|
if (includeInstance) {
|
|
@@ -31811,6 +31812,10 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio
|
|
|
31811
31812
|
reader.readMessage(value,proto_clarifai_api_resources_pb.RunnerSelector.deserializeBinaryFromReader);
|
|
31812
31813
|
msg.setRunnerSelector(value);
|
|
31813
31814
|
break;
|
|
31815
|
+
case 7:
|
|
31816
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
31817
|
+
msg.setUsePredictCache(value);
|
|
31818
|
+
break;
|
|
31814
31819
|
default:
|
|
31815
31820
|
reader.skipField();
|
|
31816
31821
|
break;
|
|
@@ -31886,6 +31891,13 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function(me
|
|
|
31886
31891
|
proto_clarifai_api_resources_pb.RunnerSelector.serializeBinaryToWriter
|
|
31887
31892
|
);
|
|
31888
31893
|
}
|
|
31894
|
+
f = message.getUsePredictCache();
|
|
31895
|
+
if (f) {
|
|
31896
|
+
writer.writeBool(
|
|
31897
|
+
7,
|
|
31898
|
+
f
|
|
31899
|
+
);
|
|
31900
|
+
}
|
|
31889
31901
|
};
|
|
31890
31902
|
|
|
31891
31903
|
|
|
@@ -32074,6 +32086,24 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.hasRunnerSelector = functio
|
|
|
32074
32086
|
};
|
|
32075
32087
|
|
|
32076
32088
|
|
|
32089
|
+
/**
|
|
32090
|
+
* optional bool use_predict_cache = 7;
|
|
32091
|
+
* @return {boolean}
|
|
32092
|
+
*/
|
|
32093
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.getUsePredictCache = function() {
|
|
32094
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
32095
|
+
};
|
|
32096
|
+
|
|
32097
|
+
|
|
32098
|
+
/**
|
|
32099
|
+
* @param {boolean} value
|
|
32100
|
+
* @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
|
|
32101
|
+
*/
|
|
32102
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.setUsePredictCache = function(value) {
|
|
32103
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
32104
|
+
};
|
|
32105
|
+
|
|
32106
|
+
|
|
32077
32107
|
|
|
32078
32108
|
|
|
32079
32109
|
|
|
@@ -166,6 +166,7 @@ export enum StatusCode {
|
|
|
166
166
|
INSTANCE_TYPE_DOES_NOT_EXIST = 26000,
|
|
167
167
|
INSTANCE_TYPE_INVALID_ARGUMENT = 26001,
|
|
168
168
|
INSTANCE_TYPE_INVALID_REQUEST = 26002,
|
|
169
|
+
COMPUTE_PLANE_METRICS_INVALID_REQUEST = 26100,
|
|
169
170
|
INPUT_SUCCESS = 30000,
|
|
170
171
|
INPUT_PENDING = 30001,
|
|
171
172
|
INPUT_FAILED = 30002,
|
|
@@ -189,6 +189,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
189
189
|
INSTANCE_TYPE_DOES_NOT_EXIST: 26000,
|
|
190
190
|
INSTANCE_TYPE_INVALID_ARGUMENT: 26001,
|
|
191
191
|
INSTANCE_TYPE_INVALID_REQUEST: 26002,
|
|
192
|
+
COMPUTE_PLANE_METRICS_INVALID_REQUEST: 26100,
|
|
192
193
|
INPUT_SUCCESS: 30000,
|
|
193
194
|
INPUT_PENDING: 30001,
|
|
194
195
|
INPUT_FAILED: 30002,
|