Skip to content

Commit

Permalink
GRPC clients version 10.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Jul 30, 2024
1 parent 192f3ad commit 6153a64
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.6.4
10.6.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-nodejs-grpc",
"version": "10.6.4",
"version": "10.6.5",
"description": "The official Clarifai Node.js gRPC client",
"main": "src/index.js",
"repository": "https://github.com/Clarifai/clarifai-javascript-grpc",
Expand Down
6 changes: 6 additions & 0 deletions proto/clarifai/api/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3151,10 +3151,16 @@ message TaskWorker {

// The inputs will be partitioned in several partitions.
// Each worker will label one or more input partitions.
// All inputs are assigned at task creation.
PARTITIONED = 2;

// Each worker will label all inputs from input source.
// All inputs are assigned at task creation.
FULL = 3;

// Each worker will dynamically get 10 inputs assigned at a time.
// No inputs are assigned at task creation.
DYNAMIC = 4;
}

// Workers that will work on this task.
Expand Down
1 change: 1 addition & 0 deletions proto/clarifai/api/resources_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5757,6 +5757,7 @@ export namespace TaskWorker {
WORKER_STRATEGY_NOT_SET = 0,
PARTITIONED = 2,
FULL = 3,
DYNAMIC = 4,
}


Expand Down
3 changes: 2 additions & 1 deletion proto/clarifai/api/resources_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -49725,7 +49725,8 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer
proto.clarifai.api.TaskWorker.TaskWorkerStrategy = {
WORKER_STRATEGY_NOT_SET: 0,
PARTITIONED: 2,
FULL: 3
FULL: 3,
DYNAMIC: 4
};

/**
Expand Down
2 changes: 2 additions & 0 deletions proto/clarifai/api/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5388,6 +5388,8 @@ message ListModelsRequest {
// Extends the name filter to include the user_id of the application owner that the model belongs to.
// Deprecated: use search instead of name.
bool filter_by_user_id = 22 [deprecated = true];
// Filter by the model version ids. If set, only return the model of these versions.
repeated string model_version_ids = 28;
}

// ResourceCountRequest
Expand Down
5 changes: 5 additions & 0 deletions proto/clarifai/api/service_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3589,6 +3589,10 @@ export class ListModelsRequest extends jspb.Message {
setName(value: string): ListModelsRequest;
getFilterByUserId(): boolean;
setFilterByUserId(value: boolean): ListModelsRequest;
clearModelVersionIdsList(): void;
getModelVersionIdsList(): Array<string>;
setModelVersionIdsList(value: Array<string>): ListModelsRequest;
addModelVersionIds(value: string, index?: number): string;

getSortByCase(): ListModelsRequest.SortByCase;

Expand Down Expand Up @@ -3630,6 +3634,7 @@ export namespace ListModelsRequest {
query: string,
name: string,
filterByUserId: boolean,
modelVersionIdsList: Array<string>,
}

export enum SortByCase {
Expand Down
53 changes: 51 additions & 2 deletions proto/clarifai/api/service_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -34303,7 +34303,7 @@ proto.clarifai.api.GetModelRequest.prototype.clearAdditionalFieldsList = functio
* @private {!Array<number>}
* @const
*/
proto.clarifai.api.ListModelsRequest.repeatedFields_ = [19,8,9,17,18,21];
proto.clarifai.api.ListModelsRequest.repeatedFields_ = [19,8,9,17,18,21,28];

/**
* Oneof group definitions for this message. Each group defines the field
Expand Down Expand Up @@ -34390,7 +34390,8 @@ proto.clarifai.api.ListModelsRequest.toObject = function(includeInstance, msg) {
search: jspb.Message.getFieldWithDefault(msg, 27, ""),
query: jspb.Message.getFieldWithDefault(msg, 14, ""),
name: jspb.Message.getFieldWithDefault(msg, 5, ""),
filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -34532,6 +34533,10 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function(msg,
var value = /** @type {boolean} */ (reader.readBool());
msg.setFilterByUserId(value);
break;
case 28:
var value = /** @type {string} */ (reader.readString());
msg.addModelVersionIds(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -34744,6 +34749,13 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function(message,
f
);
}
f = message.getModelVersionIdsList();
if (f.length > 0) {
writer.writeRepeatedString(
28,
f
);
}
};


Expand Down Expand Up @@ -35438,6 +35450,43 @@ proto.clarifai.api.ListModelsRequest.prototype.setFilterByUserId = function(valu
};


/**
* repeated string model_version_ids = 28;
* @return {!Array<string>}
*/
proto.clarifai.api.ListModelsRequest.prototype.getModelVersionIdsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 28));
};


/**
* @param {!Array<string>} value
* @return {!proto.clarifai.api.ListModelsRequest} returns this
*/
proto.clarifai.api.ListModelsRequest.prototype.setModelVersionIdsList = function(value) {
return jspb.Message.setField(this, 28, value || []);
};


/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.clarifai.api.ListModelsRequest} returns this
*/
proto.clarifai.api.ListModelsRequest.prototype.addModelVersionIds = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 28, value, opt_index);
};


/**
* Clears the list making it empty but non-null.
* @return {!proto.clarifai.api.ListModelsRequest} returns this
*/
proto.clarifai.api.ListModelsRequest.prototype.clearModelVersionIdsList = function() {
return this.setModelVersionIdsList([]);
};





Expand Down
2 changes: 2 additions & 0 deletions proto/clarifai/api/service_processed.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5388,6 +5388,8 @@ message ListModelsRequest {
// Extends the name filter to include the user_id of the application owner that the model belongs to.
// Deprecated: use search instead of name.
bool filter_by_user_id = 22 [deprecated = true];
// Filter by the model version ids. If set, only return the model of these versions.
repeated string model_version_ids = 28;
}

// ResourceCountRequest
Expand Down

0 comments on commit 6153a64

Please sign in to comment.