clarifai-web-grpc 11.0.1 → 11.0.3
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 +47 -1
- package/dist/cjs/proto/clarifai/api/service_pb.js +24 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +47 -1
- package/dist/esm/proto/clarifai/api/service_pb.js +24 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +8 -0
- package/proto/clarifai/api/resources_pb.js +61 -1
- package/proto/clarifai/api/service_pb.d.ts +4 -0
- package/proto/clarifai/api/service_pb.js +31 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.0.
|
|
1
|
+
11.0.3
|
|
@@ -31148,7 +31148,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
31148
31148
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
31149
31149
|
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
31150
31150
|
input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
|
|
31151
|
-
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f)
|
|
31151
|
+
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f),
|
|
31152
|
+
promptTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
31153
|
+
completionTokens: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
31152
31154
|
};
|
|
31153
31155
|
if (includeInstance) {
|
|
31154
31156
|
obj.$jspbMessageInstance = msg;
|
|
@@ -31209,6 +31211,14 @@ proto.clarifai.api.Output.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
31209
31211
|
reader.readMessage(value, proto.clarifai.api.Data.deserializeBinaryFromReader);
|
|
31210
31212
|
msg.setData(value);
|
|
31211
31213
|
break;
|
|
31214
|
+
case 7:
|
|
31215
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
31216
|
+
msg.setPromptTokens(value);
|
|
31217
|
+
break;
|
|
31218
|
+
case 8:
|
|
31219
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
31220
|
+
msg.setCompletionTokens(value);
|
|
31221
|
+
break;
|
|
31212
31222
|
default:
|
|
31213
31223
|
reader.skipField();
|
|
31214
31224
|
break;
|
|
@@ -31258,6 +31268,14 @@ proto.clarifai.api.Output.serializeBinaryToWriter = function (message, writer) {
|
|
|
31258
31268
|
if (f != null) {
|
|
31259
31269
|
writer.writeMessage(6, f, proto.clarifai.api.Data.serializeBinaryToWriter);
|
|
31260
31270
|
}
|
|
31271
|
+
f = message.getPromptTokens();
|
|
31272
|
+
if (f !== 0) {
|
|
31273
|
+
writer.writeUint32(7, f);
|
|
31274
|
+
}
|
|
31275
|
+
f = message.getCompletionTokens();
|
|
31276
|
+
if (f !== 0) {
|
|
31277
|
+
writer.writeUint32(8, f);
|
|
31278
|
+
}
|
|
31261
31279
|
};
|
|
31262
31280
|
/**
|
|
31263
31281
|
* optional string id = 1;
|
|
@@ -31413,6 +31431,34 @@ proto.clarifai.api.Output.prototype.clearData = function () {
|
|
|
31413
31431
|
proto.clarifai.api.Output.prototype.hasData = function () {
|
|
31414
31432
|
return jspb.Message.getField(this, 6) != null;
|
|
31415
31433
|
};
|
|
31434
|
+
/**
|
|
31435
|
+
* optional uint32 prompt_tokens = 7;
|
|
31436
|
+
* @return {number}
|
|
31437
|
+
*/
|
|
31438
|
+
proto.clarifai.api.Output.prototype.getPromptTokens = function () {
|
|
31439
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
31440
|
+
};
|
|
31441
|
+
/**
|
|
31442
|
+
* @param {number} value
|
|
31443
|
+
* @return {!proto.clarifai.api.Output} returns this
|
|
31444
|
+
*/
|
|
31445
|
+
proto.clarifai.api.Output.prototype.setPromptTokens = function (value) {
|
|
31446
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
31447
|
+
};
|
|
31448
|
+
/**
|
|
31449
|
+
* optional uint32 completion_tokens = 8;
|
|
31450
|
+
* @return {number}
|
|
31451
|
+
*/
|
|
31452
|
+
proto.clarifai.api.Output.prototype.getCompletionTokens = function () {
|
|
31453
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
31454
|
+
};
|
|
31455
|
+
/**
|
|
31456
|
+
* @param {number} value
|
|
31457
|
+
* @return {!proto.clarifai.api.Output} returns this
|
|
31458
|
+
*/
|
|
31459
|
+
proto.clarifai.api.Output.prototype.setCompletionTokens = function (value) {
|
|
31460
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
31461
|
+
};
|
|
31416
31462
|
/**
|
|
31417
31463
|
* List of repeated fields within this message type.
|
|
31418
31464
|
* @private {!Array<number>}
|
|
@@ -35656,7 +35656,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
35656
35656
|
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
35657
35657
|
modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f),
|
|
35658
35658
|
totalSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
35659
|
-
isV3: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
35659
|
+
isV3: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
35660
|
+
storageRequestSize: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
35660
35661
|
};
|
|
35661
35662
|
if (includeInstance) {
|
|
35662
35663
|
obj.$jspbMessageInstance = msg;
|
|
@@ -35710,6 +35711,10 @@ proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader = f
|
|
|
35710
35711
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
35711
35712
|
msg.setIsV3(value);
|
|
35712
35713
|
break;
|
|
35714
|
+
case 6:
|
|
35715
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
35716
|
+
msg.setStorageRequestSize(value);
|
|
35717
|
+
break;
|
|
35713
35718
|
default:
|
|
35714
35719
|
reader.skipField();
|
|
35715
35720
|
break;
|
|
@@ -35755,6 +35760,10 @@ proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter = funct
|
|
|
35755
35760
|
if (f) {
|
|
35756
35761
|
writer.writeBool(5, f);
|
|
35757
35762
|
}
|
|
35763
|
+
f = message.getStorageRequestSize();
|
|
35764
|
+
if (f !== 0) {
|
|
35765
|
+
writer.writeUint64(6, f);
|
|
35766
|
+
}
|
|
35758
35767
|
};
|
|
35759
35768
|
/**
|
|
35760
35769
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -35854,6 +35863,20 @@ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getIsV3 = function ()
|
|
|
35854
35863
|
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setIsV3 = function (value) {
|
|
35855
35864
|
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
35856
35865
|
};
|
|
35866
|
+
/**
|
|
35867
|
+
* optional uint64 storage_request_size = 6;
|
|
35868
|
+
* @return {number}
|
|
35869
|
+
*/
|
|
35870
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getStorageRequestSize = function () {
|
|
35871
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
35872
|
+
};
|
|
35873
|
+
/**
|
|
35874
|
+
* @param {number} value
|
|
35875
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
|
|
35876
|
+
*/
|
|
35877
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setStorageRequestSize = function (value) {
|
|
35878
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
35879
|
+
};
|
|
35857
35880
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35858
35881
|
/**
|
|
35859
35882
|
* Creates an object representation of this proto.
|
|
@@ -31148,7 +31148,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
31148
31148
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
31149
31149
|
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
31150
31150
|
input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
|
|
31151
|
-
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f)
|
|
31151
|
+
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f),
|
|
31152
|
+
promptTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
31153
|
+
completionTokens: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
31152
31154
|
};
|
|
31153
31155
|
if (includeInstance) {
|
|
31154
31156
|
obj.$jspbMessageInstance = msg;
|
|
@@ -31209,6 +31211,14 @@ proto.clarifai.api.Output.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
31209
31211
|
reader.readMessage(value, proto.clarifai.api.Data.deserializeBinaryFromReader);
|
|
31210
31212
|
msg.setData(value);
|
|
31211
31213
|
break;
|
|
31214
|
+
case 7:
|
|
31215
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
31216
|
+
msg.setPromptTokens(value);
|
|
31217
|
+
break;
|
|
31218
|
+
case 8:
|
|
31219
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
31220
|
+
msg.setCompletionTokens(value);
|
|
31221
|
+
break;
|
|
31212
31222
|
default:
|
|
31213
31223
|
reader.skipField();
|
|
31214
31224
|
break;
|
|
@@ -31258,6 +31268,14 @@ proto.clarifai.api.Output.serializeBinaryToWriter = function (message, writer) {
|
|
|
31258
31268
|
if (f != null) {
|
|
31259
31269
|
writer.writeMessage(6, f, proto.clarifai.api.Data.serializeBinaryToWriter);
|
|
31260
31270
|
}
|
|
31271
|
+
f = message.getPromptTokens();
|
|
31272
|
+
if (f !== 0) {
|
|
31273
|
+
writer.writeUint32(7, f);
|
|
31274
|
+
}
|
|
31275
|
+
f = message.getCompletionTokens();
|
|
31276
|
+
if (f !== 0) {
|
|
31277
|
+
writer.writeUint32(8, f);
|
|
31278
|
+
}
|
|
31261
31279
|
};
|
|
31262
31280
|
/**
|
|
31263
31281
|
* optional string id = 1;
|
|
@@ -31413,6 +31431,34 @@ proto.clarifai.api.Output.prototype.clearData = function () {
|
|
|
31413
31431
|
proto.clarifai.api.Output.prototype.hasData = function () {
|
|
31414
31432
|
return jspb.Message.getField(this, 6) != null;
|
|
31415
31433
|
};
|
|
31434
|
+
/**
|
|
31435
|
+
* optional uint32 prompt_tokens = 7;
|
|
31436
|
+
* @return {number}
|
|
31437
|
+
*/
|
|
31438
|
+
proto.clarifai.api.Output.prototype.getPromptTokens = function () {
|
|
31439
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
31440
|
+
};
|
|
31441
|
+
/**
|
|
31442
|
+
* @param {number} value
|
|
31443
|
+
* @return {!proto.clarifai.api.Output} returns this
|
|
31444
|
+
*/
|
|
31445
|
+
proto.clarifai.api.Output.prototype.setPromptTokens = function (value) {
|
|
31446
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
31447
|
+
};
|
|
31448
|
+
/**
|
|
31449
|
+
* optional uint32 completion_tokens = 8;
|
|
31450
|
+
* @return {number}
|
|
31451
|
+
*/
|
|
31452
|
+
proto.clarifai.api.Output.prototype.getCompletionTokens = function () {
|
|
31453
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
31454
|
+
};
|
|
31455
|
+
/**
|
|
31456
|
+
* @param {number} value
|
|
31457
|
+
* @return {!proto.clarifai.api.Output} returns this
|
|
31458
|
+
*/
|
|
31459
|
+
proto.clarifai.api.Output.prototype.setCompletionTokens = function (value) {
|
|
31460
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
31461
|
+
};
|
|
31416
31462
|
/**
|
|
31417
31463
|
* List of repeated fields within this message type.
|
|
31418
31464
|
* @private {!Array<number>}
|
|
@@ -35656,7 +35656,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
35656
35656
|
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
35657
35657
|
modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f),
|
|
35658
35658
|
totalSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
35659
|
-
isV3: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
35659
|
+
isV3: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
35660
|
+
storageRequestSize: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
35660
35661
|
};
|
|
35661
35662
|
if (includeInstance) {
|
|
35662
35663
|
obj.$jspbMessageInstance = msg;
|
|
@@ -35710,6 +35711,10 @@ proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader = f
|
|
|
35710
35711
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
35711
35712
|
msg.setIsV3(value);
|
|
35712
35713
|
break;
|
|
35714
|
+
case 6:
|
|
35715
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
35716
|
+
msg.setStorageRequestSize(value);
|
|
35717
|
+
break;
|
|
35713
35718
|
default:
|
|
35714
35719
|
reader.skipField();
|
|
35715
35720
|
break;
|
|
@@ -35755,6 +35760,10 @@ proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter = funct
|
|
|
35755
35760
|
if (f) {
|
|
35756
35761
|
writer.writeBool(5, f);
|
|
35757
35762
|
}
|
|
35763
|
+
f = message.getStorageRequestSize();
|
|
35764
|
+
if (f !== 0) {
|
|
35765
|
+
writer.writeUint64(6, f);
|
|
35766
|
+
}
|
|
35758
35767
|
};
|
|
35759
35768
|
/**
|
|
35760
35769
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -35854,6 +35863,20 @@ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getIsV3 = function ()
|
|
|
35854
35863
|
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setIsV3 = function (value) {
|
|
35855
35864
|
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
35856
35865
|
};
|
|
35866
|
+
/**
|
|
35867
|
+
* optional uint64 storage_request_size = 6;
|
|
35868
|
+
* @return {number}
|
|
35869
|
+
*/
|
|
35870
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getStorageRequestSize = function () {
|
|
35871
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
35872
|
+
};
|
|
35873
|
+
/**
|
|
35874
|
+
* @param {number} value
|
|
35875
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
|
|
35876
|
+
*/
|
|
35877
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setStorageRequestSize = function (value) {
|
|
35878
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
35879
|
+
};
|
|
35857
35880
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35858
35881
|
/**
|
|
35859
35882
|
* Creates an object representation of this proto.
|
package/package.json
CHANGED
|
@@ -4354,6 +4354,12 @@ export class Output extends jspb.Message {
|
|
|
4354
4354
|
hasData(): boolean;
|
|
4355
4355
|
clearData(): Output;
|
|
4356
4356
|
|
|
4357
|
+
getPromptTokens(): number;
|
|
4358
|
+
setPromptTokens(value: number): Output;
|
|
4359
|
+
|
|
4360
|
+
getCompletionTokens(): number;
|
|
4361
|
+
setCompletionTokens(value: number): Output;
|
|
4362
|
+
|
|
4357
4363
|
serializeBinary(): Uint8Array;
|
|
4358
4364
|
toObject(includeInstance?: boolean): Output.AsObject;
|
|
4359
4365
|
static toObject(includeInstance: boolean, msg: Output): Output.AsObject;
|
|
@@ -4370,6 +4376,8 @@ export namespace Output {
|
|
|
4370
4376
|
model?: Model.AsObject,
|
|
4371
4377
|
input?: Input.AsObject,
|
|
4372
4378
|
data?: Data.AsObject,
|
|
4379
|
+
promptTokens: number,
|
|
4380
|
+
completionTokens: number,
|
|
4373
4381
|
}
|
|
4374
4382
|
}
|
|
4375
4383
|
|
|
@@ -38402,7 +38402,9 @@ proto.clarifai.api.Output.toObject = function(includeInstance, msg) {
|
|
|
38402
38402
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
38403
38403
|
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
38404
38404
|
input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
|
|
38405
|
-
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f)
|
|
38405
|
+
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f),
|
|
38406
|
+
promptTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
38407
|
+
completionTokens: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
38406
38408
|
};
|
|
38407
38409
|
|
|
38408
38410
|
if (includeInstance) {
|
|
@@ -38468,6 +38470,14 @@ proto.clarifai.api.Output.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
38468
38470
|
reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader);
|
|
38469
38471
|
msg.setData(value);
|
|
38470
38472
|
break;
|
|
38473
|
+
case 7:
|
|
38474
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
38475
|
+
msg.setPromptTokens(value);
|
|
38476
|
+
break;
|
|
38477
|
+
case 8:
|
|
38478
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
38479
|
+
msg.setCompletionTokens(value);
|
|
38480
|
+
break;
|
|
38471
38481
|
default:
|
|
38472
38482
|
reader.skipField();
|
|
38473
38483
|
break;
|
|
@@ -38544,6 +38554,20 @@ proto.clarifai.api.Output.serializeBinaryToWriter = function(message, writer) {
|
|
|
38544
38554
|
proto.clarifai.api.Data.serializeBinaryToWriter
|
|
38545
38555
|
);
|
|
38546
38556
|
}
|
|
38557
|
+
f = message.getPromptTokens();
|
|
38558
|
+
if (f !== 0) {
|
|
38559
|
+
writer.writeUint32(
|
|
38560
|
+
7,
|
|
38561
|
+
f
|
|
38562
|
+
);
|
|
38563
|
+
}
|
|
38564
|
+
f = message.getCompletionTokens();
|
|
38565
|
+
if (f !== 0) {
|
|
38566
|
+
writer.writeUint32(
|
|
38567
|
+
8,
|
|
38568
|
+
f
|
|
38569
|
+
);
|
|
38570
|
+
}
|
|
38547
38571
|
};
|
|
38548
38572
|
|
|
38549
38573
|
|
|
@@ -38750,6 +38774,42 @@ proto.clarifai.api.Output.prototype.hasData = function() {
|
|
|
38750
38774
|
};
|
|
38751
38775
|
|
|
38752
38776
|
|
|
38777
|
+
/**
|
|
38778
|
+
* optional uint32 prompt_tokens = 7;
|
|
38779
|
+
* @return {number}
|
|
38780
|
+
*/
|
|
38781
|
+
proto.clarifai.api.Output.prototype.getPromptTokens = function() {
|
|
38782
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
38783
|
+
};
|
|
38784
|
+
|
|
38785
|
+
|
|
38786
|
+
/**
|
|
38787
|
+
* @param {number} value
|
|
38788
|
+
* @return {!proto.clarifai.api.Output} returns this
|
|
38789
|
+
*/
|
|
38790
|
+
proto.clarifai.api.Output.prototype.setPromptTokens = function(value) {
|
|
38791
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
38792
|
+
};
|
|
38793
|
+
|
|
38794
|
+
|
|
38795
|
+
/**
|
|
38796
|
+
* optional uint32 completion_tokens = 8;
|
|
38797
|
+
* @return {number}
|
|
38798
|
+
*/
|
|
38799
|
+
proto.clarifai.api.Output.prototype.getCompletionTokens = function() {
|
|
38800
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
38801
|
+
};
|
|
38802
|
+
|
|
38803
|
+
|
|
38804
|
+
/**
|
|
38805
|
+
* @param {number} value
|
|
38806
|
+
* @return {!proto.clarifai.api.Output} returns this
|
|
38807
|
+
*/
|
|
38808
|
+
proto.clarifai.api.Output.prototype.setCompletionTokens = function(value) {
|
|
38809
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
38810
|
+
};
|
|
38811
|
+
|
|
38812
|
+
|
|
38753
38813
|
|
|
38754
38814
|
/**
|
|
38755
38815
|
* List of repeated fields within this message type.
|
|
@@ -4478,6 +4478,9 @@ export class PostModelVersionsUploadConfig extends jspb.Message {
|
|
|
4478
4478
|
getIsV3(): boolean;
|
|
4479
4479
|
setIsV3(value: boolean): PostModelVersionsUploadConfig;
|
|
4480
4480
|
|
|
4481
|
+
getStorageRequestSize(): number;
|
|
4482
|
+
setStorageRequestSize(value: number): PostModelVersionsUploadConfig;
|
|
4483
|
+
|
|
4481
4484
|
serializeBinary(): Uint8Array;
|
|
4482
4485
|
toObject(includeInstance?: boolean): PostModelVersionsUploadConfig.AsObject;
|
|
4483
4486
|
static toObject(includeInstance: boolean, msg: PostModelVersionsUploadConfig): PostModelVersionsUploadConfig.AsObject;
|
|
@@ -4493,6 +4496,7 @@ export namespace PostModelVersionsUploadConfig {
|
|
|
4493
4496
|
modelVersion?: proto_clarifai_api_resources_pb.ModelVersion.AsObject,
|
|
4494
4497
|
totalSize: number,
|
|
4495
4498
|
isV3: boolean,
|
|
4499
|
+
storageRequestSize: number,
|
|
4496
4500
|
}
|
|
4497
4501
|
}
|
|
4498
4502
|
|
|
@@ -42973,7 +42973,8 @@ proto.clarifai.api.PostModelVersionsUploadConfig.toObject = function(includeInst
|
|
|
42973
42973
|
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
42974
42974
|
modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f),
|
|
42975
42975
|
totalSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
42976
|
-
isV3: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
42976
|
+
isV3: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
42977
|
+
storageRequestSize: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
42977
42978
|
};
|
|
42978
42979
|
|
|
42979
42980
|
if (includeInstance) {
|
|
@@ -43032,6 +43033,10 @@ proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader = f
|
|
|
43032
43033
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
43033
43034
|
msg.setIsV3(value);
|
|
43034
43035
|
break;
|
|
43036
|
+
case 6:
|
|
43037
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
43038
|
+
msg.setStorageRequestSize(value);
|
|
43039
|
+
break;
|
|
43035
43040
|
default:
|
|
43036
43041
|
reader.skipField();
|
|
43037
43042
|
break;
|
|
@@ -43098,6 +43103,13 @@ proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter = funct
|
|
|
43098
43103
|
f
|
|
43099
43104
|
);
|
|
43100
43105
|
}
|
|
43106
|
+
f = message.getStorageRequestSize();
|
|
43107
|
+
if (f !== 0) {
|
|
43108
|
+
writer.writeUint64(
|
|
43109
|
+
6,
|
|
43110
|
+
f
|
|
43111
|
+
);
|
|
43112
|
+
}
|
|
43101
43113
|
};
|
|
43102
43114
|
|
|
43103
43115
|
|
|
@@ -43229,6 +43241,24 @@ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setIsV3 = function(va
|
|
|
43229
43241
|
};
|
|
43230
43242
|
|
|
43231
43243
|
|
|
43244
|
+
/**
|
|
43245
|
+
* optional uint64 storage_request_size = 6;
|
|
43246
|
+
* @return {number}
|
|
43247
|
+
*/
|
|
43248
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getStorageRequestSize = function() {
|
|
43249
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
43250
|
+
};
|
|
43251
|
+
|
|
43252
|
+
|
|
43253
|
+
/**
|
|
43254
|
+
* @param {number} value
|
|
43255
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
|
|
43256
|
+
*/
|
|
43257
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setStorageRequestSize = function(value) {
|
|
43258
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
43259
|
+
};
|
|
43260
|
+
|
|
43261
|
+
|
|
43232
43262
|
|
|
43233
43263
|
|
|
43234
43264
|
|