Skip to content

Commit

Permalink
GRPC clients version 11.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Jan 30, 2025
1 parent 57e43e8 commit 046b200
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
11.0.4
11.0.5
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clarifai-web-grpc",
"version": "11.0.4",
"version": "11.0.5",
"description": "The official Clarifai gRPC-web client",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 4 additions & 0 deletions proto/clarifai/api/resources_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8401,6 +8401,9 @@ export class InstanceType extends jspb.Message {
hasComputeInfo(): boolean;
clearComputeInfo(): InstanceType;

getPrice(): string;
setPrice(value: string): InstanceType;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): InstanceType.AsObject;
static toObject(includeInstance: boolean, msg: InstanceType): InstanceType.AsObject;
Expand All @@ -8414,6 +8417,7 @@ export namespace InstanceType {
id: string,
description: string,
computeInfo?: ComputeInfo.AsObject,
price: string,
}
}

Expand Down
32 changes: 31 additions & 1 deletion proto/clarifai/api/resources_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -69162,7 +69162,8 @@ proto.clarifai.api.InstanceType.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
price: jspb.Message.getFieldWithDefault(msg, 4, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -69212,6 +69213,10 @@ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function(msg, read
reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
msg.setComputeInfo(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setPrice(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -69263,6 +69268,13 @@ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function(message, writ
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
);
}
f = message.getPrice();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};


Expand Down Expand Up @@ -69339,6 +69351,24 @@ proto.clarifai.api.InstanceType.prototype.hasComputeInfo = function() {
};


/**
* optional string price = 4;
* @return {string}
*/
proto.clarifai.api.InstanceType.prototype.getPrice = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};


/**
* @param {string} value
* @return {!proto.clarifai.api.InstanceType} returns this
*/
proto.clarifai.api.InstanceType.prototype.setPrice = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};





Expand Down
4 changes: 4 additions & 0 deletions proto/clarifai/api/service_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3048,6 +3048,9 @@ export class PostModelOutputsRequest extends jspb.Message {
hasRunnerSelector(): boolean;
clearRunnerSelector(): PostModelOutputsRequest;

getUsePredictCache(): boolean;
setUsePredictCache(value: boolean): PostModelOutputsRequest;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PostModelOutputsRequest.AsObject;
static toObject(includeInstance: boolean, msg: PostModelOutputsRequest): PostModelOutputsRequest.AsObject;
Expand All @@ -3064,6 +3067,7 @@ export namespace PostModelOutputsRequest {
inputsList: Array<proto_clarifai_api_resources_pb.Input.AsObject>,
model?: proto_clarifai_api_resources_pb.Model.AsObject,
runnerSelector?: proto_clarifai_api_resources_pb.RunnerSelector.AsObject,
usePredictCache: boolean,
}
}

Expand Down
32 changes: 31 additions & 1 deletion proto/clarifai/api/service_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -31746,7 +31746,8 @@ proto.clarifai.api.PostModelOutputsRequest.toObject = function(includeInstance,
inputsList: jspb.Message.toObjectList(msg.getInputsList(),
proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f)
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f),
usePredictCache: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
};

if (includeInstance) {
Expand Down Expand Up @@ -31811,6 +31812,10 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio
reader.readMessage(value,proto_clarifai_api_resources_pb.RunnerSelector.deserializeBinaryFromReader);
msg.setRunnerSelector(value);
break;
case 7:
var value = /** @type {boolean} */ (reader.readBool());
msg.setUsePredictCache(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -31886,6 +31891,13 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function(me
proto_clarifai_api_resources_pb.RunnerSelector.serializeBinaryToWriter
);
}
f = message.getUsePredictCache();
if (f) {
writer.writeBool(
7,
f
);
}
};


Expand Down Expand Up @@ -32074,6 +32086,24 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.hasRunnerSelector = functio
};


/**
* optional bool use_predict_cache = 7;
* @return {boolean}
*/
proto.clarifai.api.PostModelOutputsRequest.prototype.getUsePredictCache = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
};


/**
* @param {boolean} value
* @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
*/
proto.clarifai.api.PostModelOutputsRequest.prototype.setUsePredictCache = function(value) {
return jspb.Message.setProto3BooleanField(this, 7, value);
};





Expand Down
1 change: 1 addition & 0 deletions proto/clarifai/api/status/status_code_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export enum StatusCode {
INSTANCE_TYPE_DOES_NOT_EXIST = 26000,
INSTANCE_TYPE_INVALID_ARGUMENT = 26001,
INSTANCE_TYPE_INVALID_REQUEST = 26002,
COMPUTE_PLANE_METRICS_INVALID_REQUEST = 26100,
INPUT_SUCCESS = 30000,
INPUT_PENDING = 30001,
INPUT_FAILED = 30002,
Expand Down
1 change: 1 addition & 0 deletions proto/clarifai/api/status/status_code_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ proto.clarifai.api.status.StatusCode = {
INSTANCE_TYPE_DOES_NOT_EXIST: 26000,
INSTANCE_TYPE_INVALID_ARGUMENT: 26001,
INSTANCE_TYPE_INVALID_REQUEST: 26002,
COMPUTE_PLANE_METRICS_INVALID_REQUEST: 26100,
INPUT_SUCCESS: 30000,
INPUT_PENDING: 30001,
INPUT_FAILED: 30002,
Expand Down

0 comments on commit 046b200

Please sign in to comment.