clarifai-web-grpc 10.6.4 → 10.7.0
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 +2 -1
- package/dist/cjs/proto/clarifai/api/service_pb.js +40 -2
- package/dist/esm/proto/clarifai/api/resources_pb.js +2 -1
- package/dist/esm/proto/clarifai/api/service_pb.js +40 -2
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +1 -0
- package/proto/clarifai/api/resources_pb.js +2 -1
- package/proto/clarifai/api/service_pb.d.ts +6 -0
- package/proto/clarifai/api/service_pb.js +51 -2
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
10.
|
|
1
|
+
10.7.0
|
|
@@ -39919,7 +39919,8 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function (message, write
|
|
|
39919
39919
|
proto.clarifai.api.TaskWorker.TaskWorkerStrategy = {
|
|
39920
39920
|
WORKER_STRATEGY_NOT_SET: 0,
|
|
39921
39921
|
PARTITIONED: 2,
|
|
39922
|
-
FULL: 3
|
|
39922
|
+
FULL: 3,
|
|
39923
|
+
DYNAMIC: 4
|
|
39923
39924
|
};
|
|
39924
39925
|
/**
|
|
39925
39926
|
* optional TaskWorkerStrategy strategy = 1;
|
|
@@ -28780,7 +28780,7 @@ proto.clarifai.api.GetModelRequest.prototype.clearAdditionalFieldsList = functio
|
|
|
28780
28780
|
* @private {!Array<number>}
|
|
28781
28781
|
* @const
|
|
28782
28782
|
*/
|
|
28783
|
-
proto.clarifai.api.ListModelsRequest.repeatedFields_ = [19, 8, 9, 17, 18, 21];
|
|
28783
|
+
proto.clarifai.api.ListModelsRequest.repeatedFields_ = [19, 8, 9, 17, 18, 21, 28];
|
|
28784
28784
|
/**
|
|
28785
28785
|
* Oneof group definitions for this message. Each group defines the field
|
|
28786
28786
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
@@ -28859,7 +28859,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
28859
28859
|
search: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
28860
28860
|
query: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
28861
28861
|
name: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
28862
|
-
filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
|
|
28862
|
+
filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
|
|
28863
|
+
modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f
|
|
28863
28864
|
};
|
|
28864
28865
|
if (includeInstance) {
|
|
28865
28866
|
obj.$jspbMessageInstance = msg;
|
|
@@ -28996,6 +28997,10 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function (msg
|
|
|
28996
28997
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
28997
28998
|
msg.setFilterByUserId(value);
|
|
28998
28999
|
break;
|
|
29000
|
+
case 28:
|
|
29001
|
+
var value = /** @type {string} */ (reader.readString());
|
|
29002
|
+
msg.addModelVersionIds(value);
|
|
29003
|
+
break;
|
|
28999
29004
|
default:
|
|
29000
29005
|
reader.skipField();
|
|
29001
29006
|
break;
|
|
@@ -29125,6 +29130,10 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function (message
|
|
|
29125
29130
|
if (f) {
|
|
29126
29131
|
writer.writeBool(22, f);
|
|
29127
29132
|
}
|
|
29133
|
+
f = message.getModelVersionIdsList();
|
|
29134
|
+
if (f.length > 0) {
|
|
29135
|
+
writer.writeRepeatedString(28, f);
|
|
29136
|
+
}
|
|
29128
29137
|
};
|
|
29129
29138
|
/**
|
|
29130
29139
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -29664,6 +29673,35 @@ proto.clarifai.api.ListModelsRequest.prototype.getFilterByUserId = function () {
|
|
|
29664
29673
|
proto.clarifai.api.ListModelsRequest.prototype.setFilterByUserId = function (value) {
|
|
29665
29674
|
return jspb.Message.setProto3BooleanField(this, 22, value);
|
|
29666
29675
|
};
|
|
29676
|
+
/**
|
|
29677
|
+
* repeated string model_version_ids = 28;
|
|
29678
|
+
* @return {!Array<string>}
|
|
29679
|
+
*/
|
|
29680
|
+
proto.clarifai.api.ListModelsRequest.prototype.getModelVersionIdsList = function () {
|
|
29681
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 28));
|
|
29682
|
+
};
|
|
29683
|
+
/**
|
|
29684
|
+
* @param {!Array<string>} value
|
|
29685
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
29686
|
+
*/
|
|
29687
|
+
proto.clarifai.api.ListModelsRequest.prototype.setModelVersionIdsList = function (value) {
|
|
29688
|
+
return jspb.Message.setField(this, 28, value || []);
|
|
29689
|
+
};
|
|
29690
|
+
/**
|
|
29691
|
+
* @param {string} value
|
|
29692
|
+
* @param {number=} opt_index
|
|
29693
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
29694
|
+
*/
|
|
29695
|
+
proto.clarifai.api.ListModelsRequest.prototype.addModelVersionIds = function (value, opt_index) {
|
|
29696
|
+
return jspb.Message.addToRepeatedField(this, 28, value, opt_index);
|
|
29697
|
+
};
|
|
29698
|
+
/**
|
|
29699
|
+
* Clears the list making it empty but non-null.
|
|
29700
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
29701
|
+
*/
|
|
29702
|
+
proto.clarifai.api.ListModelsRequest.prototype.clearModelVersionIdsList = function () {
|
|
29703
|
+
return this.setModelVersionIdsList([]);
|
|
29704
|
+
};
|
|
29667
29705
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
29668
29706
|
/**
|
|
29669
29707
|
* Creates an object representation of this proto.
|
|
@@ -39919,7 +39919,8 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function (message, write
|
|
|
39919
39919
|
proto.clarifai.api.TaskWorker.TaskWorkerStrategy = {
|
|
39920
39920
|
WORKER_STRATEGY_NOT_SET: 0,
|
|
39921
39921
|
PARTITIONED: 2,
|
|
39922
|
-
FULL: 3
|
|
39922
|
+
FULL: 3,
|
|
39923
|
+
DYNAMIC: 4
|
|
39923
39924
|
};
|
|
39924
39925
|
/**
|
|
39925
39926
|
* optional TaskWorkerStrategy strategy = 1;
|
|
@@ -28780,7 +28780,7 @@ proto.clarifai.api.GetModelRequest.prototype.clearAdditionalFieldsList = functio
|
|
|
28780
28780
|
* @private {!Array<number>}
|
|
28781
28781
|
* @const
|
|
28782
28782
|
*/
|
|
28783
|
-
proto.clarifai.api.ListModelsRequest.repeatedFields_ = [19, 8, 9, 17, 18, 21];
|
|
28783
|
+
proto.clarifai.api.ListModelsRequest.repeatedFields_ = [19, 8, 9, 17, 18, 21, 28];
|
|
28784
28784
|
/**
|
|
28785
28785
|
* Oneof group definitions for this message. Each group defines the field
|
|
28786
28786
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
@@ -28859,7 +28859,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
28859
28859
|
search: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
28860
28860
|
query: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
28861
28861
|
name: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
28862
|
-
filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
|
|
28862
|
+
filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
|
|
28863
|
+
modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f
|
|
28863
28864
|
};
|
|
28864
28865
|
if (includeInstance) {
|
|
28865
28866
|
obj.$jspbMessageInstance = msg;
|
|
@@ -28996,6 +28997,10 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function (msg
|
|
|
28996
28997
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
28997
28998
|
msg.setFilterByUserId(value);
|
|
28998
28999
|
break;
|
|
29000
|
+
case 28:
|
|
29001
|
+
var value = /** @type {string} */ (reader.readString());
|
|
29002
|
+
msg.addModelVersionIds(value);
|
|
29003
|
+
break;
|
|
28999
29004
|
default:
|
|
29000
29005
|
reader.skipField();
|
|
29001
29006
|
break;
|
|
@@ -29125,6 +29130,10 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function (message
|
|
|
29125
29130
|
if (f) {
|
|
29126
29131
|
writer.writeBool(22, f);
|
|
29127
29132
|
}
|
|
29133
|
+
f = message.getModelVersionIdsList();
|
|
29134
|
+
if (f.length > 0) {
|
|
29135
|
+
writer.writeRepeatedString(28, f);
|
|
29136
|
+
}
|
|
29128
29137
|
};
|
|
29129
29138
|
/**
|
|
29130
29139
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -29664,6 +29673,35 @@ proto.clarifai.api.ListModelsRequest.prototype.getFilterByUserId = function () {
|
|
|
29664
29673
|
proto.clarifai.api.ListModelsRequest.prototype.setFilterByUserId = function (value) {
|
|
29665
29674
|
return jspb.Message.setProto3BooleanField(this, 22, value);
|
|
29666
29675
|
};
|
|
29676
|
+
/**
|
|
29677
|
+
* repeated string model_version_ids = 28;
|
|
29678
|
+
* @return {!Array<string>}
|
|
29679
|
+
*/
|
|
29680
|
+
proto.clarifai.api.ListModelsRequest.prototype.getModelVersionIdsList = function () {
|
|
29681
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 28));
|
|
29682
|
+
};
|
|
29683
|
+
/**
|
|
29684
|
+
* @param {!Array<string>} value
|
|
29685
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
29686
|
+
*/
|
|
29687
|
+
proto.clarifai.api.ListModelsRequest.prototype.setModelVersionIdsList = function (value) {
|
|
29688
|
+
return jspb.Message.setField(this, 28, value || []);
|
|
29689
|
+
};
|
|
29690
|
+
/**
|
|
29691
|
+
* @param {string} value
|
|
29692
|
+
* @param {number=} opt_index
|
|
29693
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
29694
|
+
*/
|
|
29695
|
+
proto.clarifai.api.ListModelsRequest.prototype.addModelVersionIds = function (value, opt_index) {
|
|
29696
|
+
return jspb.Message.addToRepeatedField(this, 28, value, opt_index);
|
|
29697
|
+
};
|
|
29698
|
+
/**
|
|
29699
|
+
* Clears the list making it empty but non-null.
|
|
29700
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
29701
|
+
*/
|
|
29702
|
+
proto.clarifai.api.ListModelsRequest.prototype.clearModelVersionIdsList = function () {
|
|
29703
|
+
return this.setModelVersionIdsList([]);
|
|
29704
|
+
};
|
|
29667
29705
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
29668
29706
|
/**
|
|
29669
29707
|
* Creates an object representation of this proto.
|
package/package.json
CHANGED
|
@@ -49725,7 +49725,8 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer
|
|
|
49725
49725
|
proto.clarifai.api.TaskWorker.TaskWorkerStrategy = {
|
|
49726
49726
|
WORKER_STRATEGY_NOT_SET: 0,
|
|
49727
49727
|
PARTITIONED: 2,
|
|
49728
|
-
FULL: 3
|
|
49728
|
+
FULL: 3,
|
|
49729
|
+
DYNAMIC: 4
|
|
49729
49730
|
};
|
|
49730
49731
|
|
|
49731
49732
|
/**
|
|
@@ -3461,6 +3461,11 @@ export class ListModelsRequest extends jspb.Message {
|
|
|
3461
3461
|
getFilterByUserId(): boolean;
|
|
3462
3462
|
setFilterByUserId(value: boolean): ListModelsRequest;
|
|
3463
3463
|
|
|
3464
|
+
getModelVersionIdsList(): Array<string>;
|
|
3465
|
+
setModelVersionIdsList(value: Array<string>): ListModelsRequest;
|
|
3466
|
+
clearModelVersionIdsList(): ListModelsRequest;
|
|
3467
|
+
addModelVersionIds(value: string, index?: number): ListModelsRequest;
|
|
3468
|
+
|
|
3464
3469
|
getSortByCase(): ListModelsRequest.SortByCase;
|
|
3465
3470
|
|
|
3466
3471
|
serializeBinary(): Uint8Array;
|
|
@@ -3499,6 +3504,7 @@ export namespace ListModelsRequest {
|
|
|
3499
3504
|
query: string,
|
|
3500
3505
|
name: string,
|
|
3501
3506
|
filterByUserId: boolean,
|
|
3507
|
+
modelVersionIdsList: Array<string>,
|
|
3502
3508
|
}
|
|
3503
3509
|
|
|
3504
3510
|
export enum SortByCase {
|
|
@@ -34303,7 +34303,7 @@ proto.clarifai.api.GetModelRequest.prototype.clearAdditionalFieldsList = functio
|
|
|
34303
34303
|
* @private {!Array<number>}
|
|
34304
34304
|
* @const
|
|
34305
34305
|
*/
|
|
34306
|
-
proto.clarifai.api.ListModelsRequest.repeatedFields_ = [19,8,9,17,18,21];
|
|
34306
|
+
proto.clarifai.api.ListModelsRequest.repeatedFields_ = [19,8,9,17,18,21,28];
|
|
34307
34307
|
|
|
34308
34308
|
/**
|
|
34309
34309
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -34390,7 +34390,8 @@ proto.clarifai.api.ListModelsRequest.toObject = function(includeInstance, msg) {
|
|
|
34390
34390
|
search: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
34391
34391
|
query: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
34392
34392
|
name: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
34393
|
-
filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
|
|
34393
|
+
filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
|
|
34394
|
+
modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f
|
|
34394
34395
|
};
|
|
34395
34396
|
|
|
34396
34397
|
if (includeInstance) {
|
|
@@ -34532,6 +34533,10 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function(msg,
|
|
|
34532
34533
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
34533
34534
|
msg.setFilterByUserId(value);
|
|
34534
34535
|
break;
|
|
34536
|
+
case 28:
|
|
34537
|
+
var value = /** @type {string} */ (reader.readString());
|
|
34538
|
+
msg.addModelVersionIds(value);
|
|
34539
|
+
break;
|
|
34535
34540
|
default:
|
|
34536
34541
|
reader.skipField();
|
|
34537
34542
|
break;
|
|
@@ -34744,6 +34749,13 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function(message,
|
|
|
34744
34749
|
f
|
|
34745
34750
|
);
|
|
34746
34751
|
}
|
|
34752
|
+
f = message.getModelVersionIdsList();
|
|
34753
|
+
if (f.length > 0) {
|
|
34754
|
+
writer.writeRepeatedString(
|
|
34755
|
+
28,
|
|
34756
|
+
f
|
|
34757
|
+
);
|
|
34758
|
+
}
|
|
34747
34759
|
};
|
|
34748
34760
|
|
|
34749
34761
|
|
|
@@ -35438,6 +35450,43 @@ proto.clarifai.api.ListModelsRequest.prototype.setFilterByUserId = function(valu
|
|
|
35438
35450
|
};
|
|
35439
35451
|
|
|
35440
35452
|
|
|
35453
|
+
/**
|
|
35454
|
+
* repeated string model_version_ids = 28;
|
|
35455
|
+
* @return {!Array<string>}
|
|
35456
|
+
*/
|
|
35457
|
+
proto.clarifai.api.ListModelsRequest.prototype.getModelVersionIdsList = function() {
|
|
35458
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 28));
|
|
35459
|
+
};
|
|
35460
|
+
|
|
35461
|
+
|
|
35462
|
+
/**
|
|
35463
|
+
* @param {!Array<string>} value
|
|
35464
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
35465
|
+
*/
|
|
35466
|
+
proto.clarifai.api.ListModelsRequest.prototype.setModelVersionIdsList = function(value) {
|
|
35467
|
+
return jspb.Message.setField(this, 28, value || []);
|
|
35468
|
+
};
|
|
35469
|
+
|
|
35470
|
+
|
|
35471
|
+
/**
|
|
35472
|
+
* @param {string} value
|
|
35473
|
+
* @param {number=} opt_index
|
|
35474
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
35475
|
+
*/
|
|
35476
|
+
proto.clarifai.api.ListModelsRequest.prototype.addModelVersionIds = function(value, opt_index) {
|
|
35477
|
+
return jspb.Message.addToRepeatedField(this, 28, value, opt_index);
|
|
35478
|
+
};
|
|
35479
|
+
|
|
35480
|
+
|
|
35481
|
+
/**
|
|
35482
|
+
* Clears the list making it empty but non-null.
|
|
35483
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
35484
|
+
*/
|
|
35485
|
+
proto.clarifai.api.ListModelsRequest.prototype.clearModelVersionIdsList = function() {
|
|
35486
|
+
return this.setModelVersionIdsList([]);
|
|
35487
|
+
};
|
|
35488
|
+
|
|
35489
|
+
|
|
35441
35490
|
|
|
35442
35491
|
|
|
35443
35492
|
|