Skip to content

Commit

Permalink
GRPC clients version 10.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Nov 21, 2024
1 parent 4fd4b7e commit 378be61
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.10.0
10.10.1
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.10.0",
"version": "10.10.1",
"description": "The official Clarifai Node.js gRPC client",
"main": "src/index.js",
"repository": "https://github.com/Clarifai/clarifai-javascript-grpc",
Expand Down
4 changes: 4 additions & 0 deletions proto/clarifai/api/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3208,6 +3208,10 @@ message Task {

HIGH = 3;
}

// To handle arbitrary json metadata you can use a struct field:
// https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
google.protobuf.Struct metadata = 24;
}

// AiAssistParameters
Expand Down
6 changes: 6 additions & 0 deletions proto/clarifai/api/resources_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5754,6 +5754,11 @@ export class Task extends jspb.Message {
getPriority(): Task.TaskPriority;
setPriority(value: Task.TaskPriority): Task;

hasMetadata(): boolean;
clearMetadata(): void;
getMetadata(): google_protobuf_struct_pb.Struct | undefined;
setMetadata(value?: google_protobuf_struct_pb.Struct): Task;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Task.AsObject;
static toObject(includeInstance: boolean, msg: Task): Task.AsObject;
Expand Down Expand Up @@ -5788,6 +5793,7 @@ export namespace Task {
deletePreviousAnnotations: boolean,
metrics?: TaskMetrics.AsObject,
priority: Task.TaskPriority,
metadata?: google_protobuf_struct_pb.Struct.AsObject,
}

export enum TaskType {
Expand Down
53 changes: 52 additions & 1 deletion proto/clarifai/api/resources_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -49305,7 +49305,8 @@ proto.clarifai.api.Task.toObject = function(includeInstance, msg) {
proto.clarifai.api.TaskConcept.toObject, includeInstance),
deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f),
priority: jspb.Message.getFieldWithDefault(msg, 23, 0)
priority: jspb.Message.getFieldWithDefault(msg, 23, 0),
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
};

if (includeInstance) {
Expand Down Expand Up @@ -49441,6 +49442,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) {
var value = /** @type {!proto.clarifai.api.Task.TaskPriority} */ (reader.readEnum());
msg.setPriority(value);
break;
case 24:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setMetadata(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -49635,6 +49641,14 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getMetadata();
if (f != null) {
writer.writeMessage(
24,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
};


Expand Down Expand Up @@ -50283,6 +50297,43 @@ proto.clarifai.api.Task.prototype.setPriority = function(value) {
};


/**
* optional google.protobuf.Struct metadata = 24;
* @return {?proto.google.protobuf.Struct}
*/
proto.clarifai.api.Task.prototype.getMetadata = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 24));
};


/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.clarifai.api.Task} returns this
*/
proto.clarifai.api.Task.prototype.setMetadata = function(value) {
return jspb.Message.setWrapperField(this, 24, value);
};


/**
* Clears the message field making it undefined.
* @return {!proto.clarifai.api.Task} returns this
*/
proto.clarifai.api.Task.prototype.clearMetadata = function() {
return this.setMetadata(undefined);
};


/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.clarifai.api.Task.prototype.hasMetadata = function() {
return jspb.Message.getField(this, 24) != null;
};



/**
* List of repeated fields within this message type.
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 @@ -3962,6 +3962,7 @@ service V2 {




}


Expand Down Expand Up @@ -7999,3 +8000,4 @@ message MultiWorkflowEvaluationTemplateResponse {




2 changes: 2 additions & 0 deletions proto/clarifai/api/service_processed.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3962,6 +3962,7 @@ service V2 {




}


Expand Down Expand Up @@ -7999,3 +8000,4 @@ message MultiWorkflowEvaluationTemplateResponse {




0 comments on commit 378be61

Please sign in to comment.