Skip to content

Commit 36bcdb8

Browse files
committed
GRPC clients version 12.0.12
1 parent 70576a2 commit 36bcdb8

File tree

5 files changed

+43
-8
lines changed

5 files changed

+43
-8
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.0.11
1+
12.0.12

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clarifai-nodejs-grpc",
3-
"version": "12.0.11",
3+
"version": "12.0.12",
44
"description": "The official Clarifai Node.js gRPC client",
55
"main": "src/index.js",
66
"repository": "https://github.com/Clarifai/clarifai-javascript-grpc",

proto/clarifai/api/resources.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,8 @@ message FrameInfo {
818818
// May be 0 for interpolated frames that are generated for brief time (training) or if new frame is manually added
819819
uint32 index = 1 [(clarifai.api.utils.cl_show_if_empty) = true, deprecated = true];
820820
// time in the video in milliseconds. This is independent of the sampling rates used during
821-
// processing.
822-
uint32 time = 2 [(clarifai.api.utils.cl_show_if_empty) = true];
821+
// processing. Changed from uint32 to uint64 to support video livestreams longer than 49.7 days.
822+
uint64 time = 2 [(clarifai.api.utils.cl_show_if_empty) = true];
823823
// The absolute number of the frame in the (original) video
824824
// Different from index. Index is just the order in which frames were processed for search (and can be 0 for manual annotations)
825825
uint32 number = 3 [(clarifai.api.utils.cl_show_if_empty) = true];
@@ -2162,6 +2162,8 @@ message ModelVersion {
21622162
repeated MethodSignature method_signatures = 26;
21632163
// List of special handling instructions for this model version.
21642164
repeated SpecialHandling special_handling = 27;
2165+
// The number of threads to use for this model version.
2166+
int32 num_threads = 28;
21652167
}
21662168

21672169
// MethodSignature is a definition of a method that a model can have.

proto/clarifai/api/resources_pb.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3772,6 +3772,8 @@ export class ModelVersion extends jspb.Message {
37723772
getSpecialHandlingList(): Array<SpecialHandling>;
37733773
setSpecialHandlingList(value: Array<SpecialHandling>): ModelVersion;
37743774
addSpecialHandling(value?: SpecialHandling, index?: number): SpecialHandling;
3775+
getNumThreads(): number;
3776+
setNumThreads(value: number): ModelVersion;
37753777

37763778
serializeBinary(): Uint8Array;
37773779
toObject(includeInstance?: boolean): ModelVersion.AsObject;
@@ -3809,6 +3811,7 @@ export namespace ModelVersion {
38093811
buildInfo?: BuildInfo.AsObject,
38103812
methodSignaturesList: Array<MethodSignature.AsObject>,
38113813
specialHandlingList: Array<SpecialHandling.AsObject>,
3814+
numThreads: number,
38123815
}
38133816
}
38143817

proto/clarifai/api/resources_pb.js

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17578,7 +17578,7 @@ proto.clarifai.api.FrameInfo.deserializeBinaryFromReader = function(msg, reader)
1757817578
msg.setIndex(value);
1757917579
break;
1758017580
case 2:
17581-
var value = /** @type {number} */ (reader.readUint32());
17581+
var value = /** @type {number} */ (reader.readUint64());
1758217582
msg.setTime(value);
1758317583
break;
1758417584
case 3:
@@ -17623,7 +17623,7 @@ proto.clarifai.api.FrameInfo.serializeBinaryToWriter = function(message, writer)
1762317623
}
1762417624
f = message.getTime();
1762517625
if (f !== 0) {
17626-
writer.writeUint32(
17626+
writer.writeUint64(
1762717627
2,
1762817628
f
1762917629
);
@@ -17657,7 +17657,7 @@ proto.clarifai.api.FrameInfo.prototype.setIndex = function(value) {
1765717657

1765817658

1765917659
/**
17660-
* optional uint32 time = 2;
17660+
* optional uint64 time = 2;
1766117661
* @return {number}
1766217662
*/
1766317663
proto.clarifai.api.FrameInfo.prototype.getTime = function() {
@@ -34439,7 +34439,8 @@ proto.clarifai.api.ModelVersion.toObject = function(includeInstance, msg) {
3443934439
methodSignaturesList: jspb.Message.toObjectList(msg.getMethodSignaturesList(),
3444034440
proto.clarifai.api.MethodSignature.toObject, includeInstance),
3444134441
specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(),
34442-
proto.clarifai.api.SpecialHandling.toObject, includeInstance)
34442+
proto.clarifai.api.SpecialHandling.toObject, includeInstance),
34443+
numThreads: jspb.Message.getFieldWithDefault(msg, 28, 0)
3444334444
};
3444434445

3444534446
if (includeInstance) {
@@ -34588,6 +34589,10 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function(msg, read
3458834589
reader.readMessage(value,proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader);
3458934590
msg.addSpecialHandling(value);
3459034591
break;
34592+
case 28:
34593+
var value = /** @type {number} */ (reader.readInt32());
34594+
msg.setNumThreads(value);
34595+
break;
3459134596
default:
3459234597
reader.skipField();
3459334598
break;
@@ -34801,6 +34806,13 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function(message, writ
3480134806
proto.clarifai.api.SpecialHandling.serializeBinaryToWriter
3480234807
);
3480334808
}
34809+
f = message.getNumThreads();
34810+
if (f !== 0) {
34811+
writer.writeInt32(
34812+
28,
34813+
f
34814+
);
34815+
}
3480434816
};
3480534817

3480634818

@@ -35542,6 +35554,24 @@ proto.clarifai.api.ModelVersion.prototype.clearSpecialHandlingList = function()
3554235554
};
3554335555

3554435556

35557+
/**
35558+
* optional int32 num_threads = 28;
35559+
* @return {number}
35560+
*/
35561+
proto.clarifai.api.ModelVersion.prototype.getNumThreads = function() {
35562+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 28, 0));
35563+
};
35564+
35565+
35566+
/**
35567+
* @param {number} value
35568+
* @return {!proto.clarifai.api.ModelVersion} returns this
35569+
*/
35570+
proto.clarifai.api.ModelVersion.prototype.setNumThreads = function(value) {
35571+
return jspb.Message.setProto3IntField(this, 28, value);
35572+
};
35573+
35574+
3554535575

3554635576
/**
3554735577
* List of repeated fields within this message type.

0 commit comments

Comments
 (0)