clarifai-web-grpc 10.1.3 → 10.1.5
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 +251 -5
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +251 -5
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +40 -0
- package/proto/clarifai/api/resources_pb.js +307 -5
- package/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
- package/proto/clarifai/api/status/status_code_pb.js +1 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
10.1.
|
|
1
|
+
10.1.5
|
|
@@ -219,6 +219,7 @@ goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
|
|
|
219
219
|
goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
|
|
220
220
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
|
|
221
221
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource.TaskInputSourceType', null, global);
|
|
222
|
+
goog.exportSymbol('proto.clarifai.api.TaskMetrics', null, global);
|
|
222
223
|
goog.exportSymbol('proto.clarifai.api.TaskReview', null, global);
|
|
223
224
|
goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global);
|
|
224
225
|
goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, global);
|
|
@@ -259,6 +260,7 @@ goog.exportSymbol('proto.clarifai.api.W3C', null, global);
|
|
|
259
260
|
goog.exportSymbol('proto.clarifai.api.Worker', null, global);
|
|
260
261
|
goog.exportSymbol('proto.clarifai.api.Worker.WorkerCase', null, global);
|
|
261
262
|
goog.exportSymbol('proto.clarifai.api.Workflow', null, global);
|
|
263
|
+
goog.exportSymbol('proto.clarifai.api.WorkflowModelUseCase', null, global);
|
|
262
264
|
goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
|
|
263
265
|
goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
|
|
264
266
|
goog.exportSymbol('proto.clarifai.api.WorkflowResultsSimilarity', null, global);
|
|
@@ -737,7 +739,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
737
739
|
* @constructor
|
|
738
740
|
*/
|
|
739
741
|
proto.clarifai.api.ConceptQuery = function (opt_data) {
|
|
740
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
742
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_, null);
|
|
741
743
|
};
|
|
742
744
|
goog.inherits(proto.clarifai.api.ConceptQuery, jspb.Message);
|
|
743
745
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -3309,6 +3311,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3309
3311
|
*/
|
|
3310
3312
|
proto.clarifai.api.TaskConcept.displayName = 'proto.clarifai.api.TaskConcept';
|
|
3311
3313
|
}
|
|
3314
|
+
/**
|
|
3315
|
+
* Generated by JsPbCodeGenerator.
|
|
3316
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3317
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3318
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3319
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3320
|
+
* valid.
|
|
3321
|
+
* @extends {jspb.Message}
|
|
3322
|
+
* @constructor
|
|
3323
|
+
*/
|
|
3324
|
+
proto.clarifai.api.TaskMetrics = function (opt_data) {
|
|
3325
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3326
|
+
};
|
|
3327
|
+
goog.inherits(proto.clarifai.api.TaskMetrics, jspb.Message);
|
|
3328
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3329
|
+
/**
|
|
3330
|
+
* @public
|
|
3331
|
+
* @override
|
|
3332
|
+
*/
|
|
3333
|
+
proto.clarifai.api.TaskMetrics.displayName = 'proto.clarifai.api.TaskMetrics';
|
|
3334
|
+
}
|
|
3312
3335
|
/**
|
|
3313
3336
|
* Generated by JsPbCodeGenerator.
|
|
3314
3337
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -9481,6 +9504,12 @@ proto.clarifai.api.DetailConceptCount.prototype.clearProcessing = function () {
|
|
|
9481
9504
|
proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function () {
|
|
9482
9505
|
return jspb.Message.getField(this, 4) != null;
|
|
9483
9506
|
};
|
|
9507
|
+
/**
|
|
9508
|
+
* List of repeated fields within this message type.
|
|
9509
|
+
* @private {!Array<number>}
|
|
9510
|
+
* @const
|
|
9511
|
+
*/
|
|
9512
|
+
proto.clarifai.api.ConceptQuery.repeatedFields_ = [4];
|
|
9484
9513
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9485
9514
|
/**
|
|
9486
9515
|
* Creates an object representation of this proto.
|
|
@@ -9510,7 +9539,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
9510
9539
|
var f, obj = {
|
|
9511
9540
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9512
9541
|
language: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
9513
|
-
workflowId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
9542
|
+
workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
9543
|
+
useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
9514
9544
|
};
|
|
9515
9545
|
if (includeInstance) {
|
|
9516
9546
|
obj.$jspbMessageInstance = msg;
|
|
@@ -9554,6 +9584,12 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function (msg, rea
|
|
|
9554
9584
|
var value = /** @type {string} */ (reader.readString());
|
|
9555
9585
|
msg.setWorkflowId(value);
|
|
9556
9586
|
break;
|
|
9587
|
+
case 4:
|
|
9588
|
+
var values = /** @type {!Array<!proto.clarifai.api.WorkflowModelUseCase>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
9589
|
+
for (var i = 0; i < values.length; i++) {
|
|
9590
|
+
msg.addUseCases(values[i]);
|
|
9591
|
+
}
|
|
9592
|
+
break;
|
|
9557
9593
|
default:
|
|
9558
9594
|
reader.skipField();
|
|
9559
9595
|
break;
|
|
@@ -9591,6 +9627,10 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function (message, wri
|
|
|
9591
9627
|
if (f.length > 0) {
|
|
9592
9628
|
writer.writeString(3, f);
|
|
9593
9629
|
}
|
|
9630
|
+
f = message.getUseCasesList();
|
|
9631
|
+
if (f.length > 0) {
|
|
9632
|
+
writer.writePackedEnum(4, f);
|
|
9633
|
+
}
|
|
9594
9634
|
};
|
|
9595
9635
|
/**
|
|
9596
9636
|
* optional string name = 1;
|
|
@@ -9634,6 +9674,35 @@ proto.clarifai.api.ConceptQuery.prototype.getWorkflowId = function () {
|
|
|
9634
9674
|
proto.clarifai.api.ConceptQuery.prototype.setWorkflowId = function (value) {
|
|
9635
9675
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
9636
9676
|
};
|
|
9677
|
+
/**
|
|
9678
|
+
* repeated WorkflowModelUseCase use_cases = 4;
|
|
9679
|
+
* @return {!Array<!proto.clarifai.api.WorkflowModelUseCase>}
|
|
9680
|
+
*/
|
|
9681
|
+
proto.clarifai.api.ConceptQuery.prototype.getUseCasesList = function () {
|
|
9682
|
+
return /** @type {!Array<!proto.clarifai.api.WorkflowModelUseCase>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
9683
|
+
};
|
|
9684
|
+
/**
|
|
9685
|
+
* @param {!Array<!proto.clarifai.api.WorkflowModelUseCase>} value
|
|
9686
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
9687
|
+
*/
|
|
9688
|
+
proto.clarifai.api.ConceptQuery.prototype.setUseCasesList = function (value) {
|
|
9689
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
9690
|
+
};
|
|
9691
|
+
/**
|
|
9692
|
+
* @param {!proto.clarifai.api.WorkflowModelUseCase} value
|
|
9693
|
+
* @param {number=} opt_index
|
|
9694
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
9695
|
+
*/
|
|
9696
|
+
proto.clarifai.api.ConceptQuery.prototype.addUseCases = function (value, opt_index) {
|
|
9697
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
9698
|
+
};
|
|
9699
|
+
/**
|
|
9700
|
+
* Clears the list making it empty but non-null.
|
|
9701
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
9702
|
+
*/
|
|
9703
|
+
proto.clarifai.api.ConceptQuery.prototype.clearUseCasesList = function () {
|
|
9704
|
+
return this.setUseCasesList([]);
|
|
9705
|
+
};
|
|
9637
9706
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9638
9707
|
/**
|
|
9639
9708
|
* Creates an object representation of this proto.
|
|
@@ -37047,7 +37116,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
37047
37116
|
copyConcepts: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
37048
37117
|
copyAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
37049
37118
|
copyModels: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
37050
|
-
copyWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
37119
|
+
copyWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
37120
|
+
copyInstalledModuleVersions: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
|
37051
37121
|
};
|
|
37052
37122
|
if (includeInstance) {
|
|
37053
37123
|
obj.$jspbMessageInstance = msg;
|
|
@@ -37099,6 +37169,10 @@ proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader = function
|
|
|
37099
37169
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
37100
37170
|
msg.setCopyWorkflows(value);
|
|
37101
37171
|
break;
|
|
37172
|
+
case 6:
|
|
37173
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
37174
|
+
msg.setCopyInstalledModuleVersions(value);
|
|
37175
|
+
break;
|
|
37102
37176
|
default:
|
|
37103
37177
|
reader.skipField();
|
|
37104
37178
|
break;
|
|
@@ -37144,6 +37218,10 @@ proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter = function (mes
|
|
|
37144
37218
|
if (f) {
|
|
37145
37219
|
writer.writeBool(5, f);
|
|
37146
37220
|
}
|
|
37221
|
+
f = message.getCopyInstalledModuleVersions();
|
|
37222
|
+
if (f) {
|
|
37223
|
+
writer.writeBool(6, f);
|
|
37224
|
+
}
|
|
37147
37225
|
};
|
|
37148
37226
|
/**
|
|
37149
37227
|
* optional bool copy_inputs = 1;
|
|
@@ -37215,6 +37293,20 @@ proto.clarifai.api.AppDuplicationFilters.prototype.getCopyWorkflows = function (
|
|
|
37215
37293
|
proto.clarifai.api.AppDuplicationFilters.prototype.setCopyWorkflows = function (value) {
|
|
37216
37294
|
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
37217
37295
|
};
|
|
37296
|
+
/**
|
|
37297
|
+
* optional bool copy_installed_module_versions = 6;
|
|
37298
|
+
* @return {boolean}
|
|
37299
|
+
*/
|
|
37300
|
+
proto.clarifai.api.AppDuplicationFilters.prototype.getCopyInstalledModuleVersions = function () {
|
|
37301
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
37302
|
+
};
|
|
37303
|
+
/**
|
|
37304
|
+
* @param {boolean} value
|
|
37305
|
+
* @return {!proto.clarifai.api.AppDuplicationFilters} returns this
|
|
37306
|
+
*/
|
|
37307
|
+
proto.clarifai.api.AppDuplicationFilters.prototype.setCopyInstalledModuleVersions = function (value) {
|
|
37308
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
37309
|
+
};
|
|
37218
37310
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
37219
37311
|
/**
|
|
37220
37312
|
* Creates an object representation of this proto.
|
|
@@ -37671,7 +37763,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
37671
37763
|
userId: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
37672
37764
|
labelOrderId: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
37673
37765
|
conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), proto.clarifai.api.TaskConcept.toObject, includeInstance),
|
|
37674
|
-
deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false)
|
|
37766
|
+
deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
|
|
37767
|
+
metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f)
|
|
37675
37768
|
};
|
|
37676
37769
|
if (includeInstance) {
|
|
37677
37770
|
obj.$jspbMessageInstance = msg;
|
|
@@ -37793,6 +37886,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
37793
37886
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
37794
37887
|
msg.setDeletePreviousAnnotations(value);
|
|
37795
37888
|
break;
|
|
37889
|
+
case 21:
|
|
37890
|
+
var value = new proto.clarifai.api.TaskMetrics;
|
|
37891
|
+
reader.readMessage(value, proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader);
|
|
37892
|
+
msg.setMetrics(value);
|
|
37893
|
+
break;
|
|
37796
37894
|
default:
|
|
37797
37895
|
reader.skipField();
|
|
37798
37896
|
break;
|
|
@@ -37898,6 +37996,10 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
|
|
|
37898
37996
|
if (f) {
|
|
37899
37997
|
writer.writeBool(20, f);
|
|
37900
37998
|
}
|
|
37999
|
+
f = message.getMetrics();
|
|
38000
|
+
if (f != null) {
|
|
38001
|
+
writer.writeMessage(21, f, proto.clarifai.api.TaskMetrics.serializeBinaryToWriter);
|
|
38002
|
+
}
|
|
37901
38003
|
};
|
|
37902
38004
|
/**
|
|
37903
38005
|
* @enum {number}
|
|
@@ -38344,6 +38446,34 @@ proto.clarifai.api.Task.prototype.getDeletePreviousAnnotations = function () {
|
|
|
38344
38446
|
proto.clarifai.api.Task.prototype.setDeletePreviousAnnotations = function (value) {
|
|
38345
38447
|
return jspb.Message.setProto3BooleanField(this, 20, value);
|
|
38346
38448
|
};
|
|
38449
|
+
/**
|
|
38450
|
+
* optional TaskMetrics metrics = 21;
|
|
38451
|
+
* @return {?proto.clarifai.api.TaskMetrics}
|
|
38452
|
+
*/
|
|
38453
|
+
proto.clarifai.api.Task.prototype.getMetrics = function () {
|
|
38454
|
+
return /** @type{?proto.clarifai.api.TaskMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TaskMetrics, 21));
|
|
38455
|
+
};
|
|
38456
|
+
/**
|
|
38457
|
+
* @param {?proto.clarifai.api.TaskMetrics|undefined} value
|
|
38458
|
+
* @return {!proto.clarifai.api.Task} returns this
|
|
38459
|
+
*/
|
|
38460
|
+
proto.clarifai.api.Task.prototype.setMetrics = function (value) {
|
|
38461
|
+
return jspb.Message.setWrapperField(this, 21, value);
|
|
38462
|
+
};
|
|
38463
|
+
/**
|
|
38464
|
+
* Clears the message field making it undefined.
|
|
38465
|
+
* @return {!proto.clarifai.api.Task} returns this
|
|
38466
|
+
*/
|
|
38467
|
+
proto.clarifai.api.Task.prototype.clearMetrics = function () {
|
|
38468
|
+
return this.setMetrics(undefined);
|
|
38469
|
+
};
|
|
38470
|
+
/**
|
|
38471
|
+
* Returns whether this field is set.
|
|
38472
|
+
* @return {boolean}
|
|
38473
|
+
*/
|
|
38474
|
+
proto.clarifai.api.Task.prototype.hasMetrics = function () {
|
|
38475
|
+
return jspb.Message.getField(this, 21) != null;
|
|
38476
|
+
};
|
|
38347
38477
|
/**
|
|
38348
38478
|
* List of repeated fields within this message type.
|
|
38349
38479
|
* @private {!Array<number>}
|
|
@@ -40514,6 +40644,113 @@ proto.clarifai.api.TaskConcept.prototype.clearAutoAnnotationConfig = function ()
|
|
|
40514
40644
|
proto.clarifai.api.TaskConcept.prototype.hasAutoAnnotationConfig = function () {
|
|
40515
40645
|
return jspb.Message.getField(this, 2) != null;
|
|
40516
40646
|
};
|
|
40647
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40648
|
+
/**
|
|
40649
|
+
* Creates an object representation of this proto.
|
|
40650
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
40651
|
+
* Optional fields that are not set will be set to undefined.
|
|
40652
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
40653
|
+
* For the list of reserved names please see:
|
|
40654
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
40655
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
40656
|
+
* JSPB instance for transitional soy proto support:
|
|
40657
|
+
* http://goto/soy-param-migration
|
|
40658
|
+
* @return {!Object}
|
|
40659
|
+
*/
|
|
40660
|
+
proto.clarifai.api.TaskMetrics.prototype.toObject = function (opt_includeInstance) {
|
|
40661
|
+
return proto.clarifai.api.TaskMetrics.toObject(opt_includeInstance, this);
|
|
40662
|
+
};
|
|
40663
|
+
/**
|
|
40664
|
+
* Static version of the {@see toObject} method.
|
|
40665
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
40666
|
+
* the JSPB instance for transitional soy proto support:
|
|
40667
|
+
* http://goto/soy-param-migration
|
|
40668
|
+
* @param {!proto.clarifai.api.TaskMetrics} msg The msg instance to transform.
|
|
40669
|
+
* @return {!Object}
|
|
40670
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40671
|
+
*/
|
|
40672
|
+
proto.clarifai.api.TaskMetrics.toObject = function (includeInstance, msg) {
|
|
40673
|
+
var f, obj = {
|
|
40674
|
+
estimatedLabeledInputsCount: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
40675
|
+
};
|
|
40676
|
+
if (includeInstance) {
|
|
40677
|
+
obj.$jspbMessageInstance = msg;
|
|
40678
|
+
}
|
|
40679
|
+
return obj;
|
|
40680
|
+
};
|
|
40681
|
+
}
|
|
40682
|
+
/**
|
|
40683
|
+
* Deserializes binary data (in protobuf wire format).
|
|
40684
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
40685
|
+
* @return {!proto.clarifai.api.TaskMetrics}
|
|
40686
|
+
*/
|
|
40687
|
+
proto.clarifai.api.TaskMetrics.deserializeBinary = function (bytes) {
|
|
40688
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
40689
|
+
var msg = new proto.clarifai.api.TaskMetrics;
|
|
40690
|
+
return proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader(msg, reader);
|
|
40691
|
+
};
|
|
40692
|
+
/**
|
|
40693
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
40694
|
+
* given reader into the given message object.
|
|
40695
|
+
* @param {!proto.clarifai.api.TaskMetrics} msg The message object to deserialize into.
|
|
40696
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
40697
|
+
* @return {!proto.clarifai.api.TaskMetrics}
|
|
40698
|
+
*/
|
|
40699
|
+
proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function (msg, reader) {
|
|
40700
|
+
while (reader.nextField()) {
|
|
40701
|
+
if (reader.isEndGroup()) {
|
|
40702
|
+
break;
|
|
40703
|
+
}
|
|
40704
|
+
var field = reader.getFieldNumber();
|
|
40705
|
+
switch (field) {
|
|
40706
|
+
case 1:
|
|
40707
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
40708
|
+
msg.setEstimatedLabeledInputsCount(value);
|
|
40709
|
+
break;
|
|
40710
|
+
default:
|
|
40711
|
+
reader.skipField();
|
|
40712
|
+
break;
|
|
40713
|
+
}
|
|
40714
|
+
}
|
|
40715
|
+
return msg;
|
|
40716
|
+
};
|
|
40717
|
+
/**
|
|
40718
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
40719
|
+
* @return {!Uint8Array}
|
|
40720
|
+
*/
|
|
40721
|
+
proto.clarifai.api.TaskMetrics.prototype.serializeBinary = function () {
|
|
40722
|
+
var writer = new jspb.BinaryWriter();
|
|
40723
|
+
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter(this, writer);
|
|
40724
|
+
return writer.getResultBuffer();
|
|
40725
|
+
};
|
|
40726
|
+
/**
|
|
40727
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
40728
|
+
* format), writing to the given BinaryWriter.
|
|
40729
|
+
* @param {!proto.clarifai.api.TaskMetrics} message
|
|
40730
|
+
* @param {!jspb.BinaryWriter} writer
|
|
40731
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40732
|
+
*/
|
|
40733
|
+
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function (message, writer) {
|
|
40734
|
+
var f = undefined;
|
|
40735
|
+
f = message.getEstimatedLabeledInputsCount();
|
|
40736
|
+
if (f !== 0) {
|
|
40737
|
+
writer.writeUint64(1, f);
|
|
40738
|
+
}
|
|
40739
|
+
};
|
|
40740
|
+
/**
|
|
40741
|
+
* optional uint64 estimated_labeled_inputs_count = 1;
|
|
40742
|
+
* @return {number}
|
|
40743
|
+
*/
|
|
40744
|
+
proto.clarifai.api.TaskMetrics.prototype.getEstimatedLabeledInputsCount = function () {
|
|
40745
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
40746
|
+
};
|
|
40747
|
+
/**
|
|
40748
|
+
* @param {number} value
|
|
40749
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
40750
|
+
*/
|
|
40751
|
+
proto.clarifai.api.TaskMetrics.prototype.setEstimatedLabeledInputsCount = function (value) {
|
|
40752
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
40753
|
+
};
|
|
40517
40754
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40518
40755
|
/**
|
|
40519
40756
|
* Creates an object representation of this proto.
|
|
@@ -50863,6 +51100,14 @@ proto.clarifai.api.Runner.prototype.addLabels = function (value, opt_index) {
|
|
|
50863
51100
|
proto.clarifai.api.Runner.prototype.clearLabelsList = function () {
|
|
50864
51101
|
return this.setLabelsList([]);
|
|
50865
51102
|
};
|
|
51103
|
+
/**
|
|
51104
|
+
* @enum {number}
|
|
51105
|
+
*/
|
|
51106
|
+
proto.clarifai.api.WorkflowModelUseCase = {
|
|
51107
|
+
WORKFLOW_MODEL_USE_CASE_NOT_SET: 0,
|
|
51108
|
+
CLASSIFICATION: 1,
|
|
51109
|
+
DETECTION: 2
|
|
51110
|
+
};
|
|
50866
51111
|
/**
|
|
50867
51112
|
* @enum {number}
|
|
50868
51113
|
*/
|
|
@@ -50935,7 +51180,8 @@ proto.clarifai.api.EvaluationType = {
|
|
|
50935
51180
|
DETECTION: 2,
|
|
50936
51181
|
SEGMENTATION: 3,
|
|
50937
51182
|
CLUSTERING: 4,
|
|
50938
|
-
TRACKER: 5
|
|
51183
|
+
TRACKER: 5,
|
|
51184
|
+
GENERATION: 6
|
|
50939
51185
|
};
|
|
50940
51186
|
/**
|
|
50941
51187
|
* @enum {number}
|
|
@@ -356,6 +356,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
356
356
|
INTERNAL_SERVER_ISSUE: 98004,
|
|
357
357
|
INTERNAL_FETCHING_ISSUE: 98005,
|
|
358
358
|
INTERNAL_DATABASE_ISSUE: 98006,
|
|
359
|
+
INTERNAL_CONTEXT_CANCELED: 98008,
|
|
359
360
|
INTERNAL_UNEXPECTED_TIMEOUT: 98009,
|
|
360
361
|
INTERNAL_UNEXPECTED_V1: 98010,
|
|
361
362
|
INTERNAL_UNEXPECTED_PANIC: 98011,
|
|
@@ -219,6 +219,7 @@ goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
|
|
|
219
219
|
goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
|
|
220
220
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
|
|
221
221
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource.TaskInputSourceType', null, global);
|
|
222
|
+
goog.exportSymbol('proto.clarifai.api.TaskMetrics', null, global);
|
|
222
223
|
goog.exportSymbol('proto.clarifai.api.TaskReview', null, global);
|
|
223
224
|
goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global);
|
|
224
225
|
goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, global);
|
|
@@ -259,6 +260,7 @@ goog.exportSymbol('proto.clarifai.api.W3C', null, global);
|
|
|
259
260
|
goog.exportSymbol('proto.clarifai.api.Worker', null, global);
|
|
260
261
|
goog.exportSymbol('proto.clarifai.api.Worker.WorkerCase', null, global);
|
|
261
262
|
goog.exportSymbol('proto.clarifai.api.Workflow', null, global);
|
|
263
|
+
goog.exportSymbol('proto.clarifai.api.WorkflowModelUseCase', null, global);
|
|
262
264
|
goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
|
|
263
265
|
goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
|
|
264
266
|
goog.exportSymbol('proto.clarifai.api.WorkflowResultsSimilarity', null, global);
|
|
@@ -737,7 +739,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
737
739
|
* @constructor
|
|
738
740
|
*/
|
|
739
741
|
proto.clarifai.api.ConceptQuery = function (opt_data) {
|
|
740
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
742
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_, null);
|
|
741
743
|
};
|
|
742
744
|
goog.inherits(proto.clarifai.api.ConceptQuery, jspb.Message);
|
|
743
745
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -3309,6 +3311,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3309
3311
|
*/
|
|
3310
3312
|
proto.clarifai.api.TaskConcept.displayName = 'proto.clarifai.api.TaskConcept';
|
|
3311
3313
|
}
|
|
3314
|
+
/**
|
|
3315
|
+
* Generated by JsPbCodeGenerator.
|
|
3316
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3317
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3318
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3319
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3320
|
+
* valid.
|
|
3321
|
+
* @extends {jspb.Message}
|
|
3322
|
+
* @constructor
|
|
3323
|
+
*/
|
|
3324
|
+
proto.clarifai.api.TaskMetrics = function (opt_data) {
|
|
3325
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3326
|
+
};
|
|
3327
|
+
goog.inherits(proto.clarifai.api.TaskMetrics, jspb.Message);
|
|
3328
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3329
|
+
/**
|
|
3330
|
+
* @public
|
|
3331
|
+
* @override
|
|
3332
|
+
*/
|
|
3333
|
+
proto.clarifai.api.TaskMetrics.displayName = 'proto.clarifai.api.TaskMetrics';
|
|
3334
|
+
}
|
|
3312
3335
|
/**
|
|
3313
3336
|
* Generated by JsPbCodeGenerator.
|
|
3314
3337
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -9481,6 +9504,12 @@ proto.clarifai.api.DetailConceptCount.prototype.clearProcessing = function () {
|
|
|
9481
9504
|
proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function () {
|
|
9482
9505
|
return jspb.Message.getField(this, 4) != null;
|
|
9483
9506
|
};
|
|
9507
|
+
/**
|
|
9508
|
+
* List of repeated fields within this message type.
|
|
9509
|
+
* @private {!Array<number>}
|
|
9510
|
+
* @const
|
|
9511
|
+
*/
|
|
9512
|
+
proto.clarifai.api.ConceptQuery.repeatedFields_ = [4];
|
|
9484
9513
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9485
9514
|
/**
|
|
9486
9515
|
* Creates an object representation of this proto.
|
|
@@ -9510,7 +9539,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
9510
9539
|
var f, obj = {
|
|
9511
9540
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9512
9541
|
language: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
9513
|
-
workflowId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
9542
|
+
workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
9543
|
+
useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
9514
9544
|
};
|
|
9515
9545
|
if (includeInstance) {
|
|
9516
9546
|
obj.$jspbMessageInstance = msg;
|
|
@@ -9554,6 +9584,12 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function (msg, rea
|
|
|
9554
9584
|
var value = /** @type {string} */ (reader.readString());
|
|
9555
9585
|
msg.setWorkflowId(value);
|
|
9556
9586
|
break;
|
|
9587
|
+
case 4:
|
|
9588
|
+
var values = /** @type {!Array<!proto.clarifai.api.WorkflowModelUseCase>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
9589
|
+
for (var i = 0; i < values.length; i++) {
|
|
9590
|
+
msg.addUseCases(values[i]);
|
|
9591
|
+
}
|
|
9592
|
+
break;
|
|
9557
9593
|
default:
|
|
9558
9594
|
reader.skipField();
|
|
9559
9595
|
break;
|
|
@@ -9591,6 +9627,10 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function (message, wri
|
|
|
9591
9627
|
if (f.length > 0) {
|
|
9592
9628
|
writer.writeString(3, f);
|
|
9593
9629
|
}
|
|
9630
|
+
f = message.getUseCasesList();
|
|
9631
|
+
if (f.length > 0) {
|
|
9632
|
+
writer.writePackedEnum(4, f);
|
|
9633
|
+
}
|
|
9594
9634
|
};
|
|
9595
9635
|
/**
|
|
9596
9636
|
* optional string name = 1;
|
|
@@ -9634,6 +9674,35 @@ proto.clarifai.api.ConceptQuery.prototype.getWorkflowId = function () {
|
|
|
9634
9674
|
proto.clarifai.api.ConceptQuery.prototype.setWorkflowId = function (value) {
|
|
9635
9675
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
9636
9676
|
};
|
|
9677
|
+
/**
|
|
9678
|
+
* repeated WorkflowModelUseCase use_cases = 4;
|
|
9679
|
+
* @return {!Array<!proto.clarifai.api.WorkflowModelUseCase>}
|
|
9680
|
+
*/
|
|
9681
|
+
proto.clarifai.api.ConceptQuery.prototype.getUseCasesList = function () {
|
|
9682
|
+
return /** @type {!Array<!proto.clarifai.api.WorkflowModelUseCase>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
9683
|
+
};
|
|
9684
|
+
/**
|
|
9685
|
+
* @param {!Array<!proto.clarifai.api.WorkflowModelUseCase>} value
|
|
9686
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
9687
|
+
*/
|
|
9688
|
+
proto.clarifai.api.ConceptQuery.prototype.setUseCasesList = function (value) {
|
|
9689
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
9690
|
+
};
|
|
9691
|
+
/**
|
|
9692
|
+
* @param {!proto.clarifai.api.WorkflowModelUseCase} value
|
|
9693
|
+
* @param {number=} opt_index
|
|
9694
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
9695
|
+
*/
|
|
9696
|
+
proto.clarifai.api.ConceptQuery.prototype.addUseCases = function (value, opt_index) {
|
|
9697
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
9698
|
+
};
|
|
9699
|
+
/**
|
|
9700
|
+
* Clears the list making it empty but non-null.
|
|
9701
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
9702
|
+
*/
|
|
9703
|
+
proto.clarifai.api.ConceptQuery.prototype.clearUseCasesList = function () {
|
|
9704
|
+
return this.setUseCasesList([]);
|
|
9705
|
+
};
|
|
9637
9706
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9638
9707
|
/**
|
|
9639
9708
|
* Creates an object representation of this proto.
|
|
@@ -37047,7 +37116,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
37047
37116
|
copyConcepts: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
37048
37117
|
copyAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
37049
37118
|
copyModels: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
37050
|
-
copyWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
37119
|
+
copyWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
37120
|
+
copyInstalledModuleVersions: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
|
37051
37121
|
};
|
|
37052
37122
|
if (includeInstance) {
|
|
37053
37123
|
obj.$jspbMessageInstance = msg;
|
|
@@ -37099,6 +37169,10 @@ proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader = function
|
|
|
37099
37169
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
37100
37170
|
msg.setCopyWorkflows(value);
|
|
37101
37171
|
break;
|
|
37172
|
+
case 6:
|
|
37173
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
37174
|
+
msg.setCopyInstalledModuleVersions(value);
|
|
37175
|
+
break;
|
|
37102
37176
|
default:
|
|
37103
37177
|
reader.skipField();
|
|
37104
37178
|
break;
|
|
@@ -37144,6 +37218,10 @@ proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter = function (mes
|
|
|
37144
37218
|
if (f) {
|
|
37145
37219
|
writer.writeBool(5, f);
|
|
37146
37220
|
}
|
|
37221
|
+
f = message.getCopyInstalledModuleVersions();
|
|
37222
|
+
if (f) {
|
|
37223
|
+
writer.writeBool(6, f);
|
|
37224
|
+
}
|
|
37147
37225
|
};
|
|
37148
37226
|
/**
|
|
37149
37227
|
* optional bool copy_inputs = 1;
|
|
@@ -37215,6 +37293,20 @@ proto.clarifai.api.AppDuplicationFilters.prototype.getCopyWorkflows = function (
|
|
|
37215
37293
|
proto.clarifai.api.AppDuplicationFilters.prototype.setCopyWorkflows = function (value) {
|
|
37216
37294
|
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
37217
37295
|
};
|
|
37296
|
+
/**
|
|
37297
|
+
* optional bool copy_installed_module_versions = 6;
|
|
37298
|
+
* @return {boolean}
|
|
37299
|
+
*/
|
|
37300
|
+
proto.clarifai.api.AppDuplicationFilters.prototype.getCopyInstalledModuleVersions = function () {
|
|
37301
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
37302
|
+
};
|
|
37303
|
+
/**
|
|
37304
|
+
* @param {boolean} value
|
|
37305
|
+
* @return {!proto.clarifai.api.AppDuplicationFilters} returns this
|
|
37306
|
+
*/
|
|
37307
|
+
proto.clarifai.api.AppDuplicationFilters.prototype.setCopyInstalledModuleVersions = function (value) {
|
|
37308
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
37309
|
+
};
|
|
37218
37310
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
37219
37311
|
/**
|
|
37220
37312
|
* Creates an object representation of this proto.
|
|
@@ -37671,7 +37763,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
37671
37763
|
userId: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
37672
37764
|
labelOrderId: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
37673
37765
|
conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), proto.clarifai.api.TaskConcept.toObject, includeInstance),
|
|
37674
|
-
deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false)
|
|
37766
|
+
deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
|
|
37767
|
+
metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f)
|
|
37675
37768
|
};
|
|
37676
37769
|
if (includeInstance) {
|
|
37677
37770
|
obj.$jspbMessageInstance = msg;
|
|
@@ -37793,6 +37886,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
37793
37886
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
37794
37887
|
msg.setDeletePreviousAnnotations(value);
|
|
37795
37888
|
break;
|
|
37889
|
+
case 21:
|
|
37890
|
+
var value = new proto.clarifai.api.TaskMetrics;
|
|
37891
|
+
reader.readMessage(value, proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader);
|
|
37892
|
+
msg.setMetrics(value);
|
|
37893
|
+
break;
|
|
37796
37894
|
default:
|
|
37797
37895
|
reader.skipField();
|
|
37798
37896
|
break;
|
|
@@ -37898,6 +37996,10 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
|
|
|
37898
37996
|
if (f) {
|
|
37899
37997
|
writer.writeBool(20, f);
|
|
37900
37998
|
}
|
|
37999
|
+
f = message.getMetrics();
|
|
38000
|
+
if (f != null) {
|
|
38001
|
+
writer.writeMessage(21, f, proto.clarifai.api.TaskMetrics.serializeBinaryToWriter);
|
|
38002
|
+
}
|
|
37901
38003
|
};
|
|
37902
38004
|
/**
|
|
37903
38005
|
* @enum {number}
|
|
@@ -38344,6 +38446,34 @@ proto.clarifai.api.Task.prototype.getDeletePreviousAnnotations = function () {
|
|
|
38344
38446
|
proto.clarifai.api.Task.prototype.setDeletePreviousAnnotations = function (value) {
|
|
38345
38447
|
return jspb.Message.setProto3BooleanField(this, 20, value);
|
|
38346
38448
|
};
|
|
38449
|
+
/**
|
|
38450
|
+
* optional TaskMetrics metrics = 21;
|
|
38451
|
+
* @return {?proto.clarifai.api.TaskMetrics}
|
|
38452
|
+
*/
|
|
38453
|
+
proto.clarifai.api.Task.prototype.getMetrics = function () {
|
|
38454
|
+
return /** @type{?proto.clarifai.api.TaskMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TaskMetrics, 21));
|
|
38455
|
+
};
|
|
38456
|
+
/**
|
|
38457
|
+
* @param {?proto.clarifai.api.TaskMetrics|undefined} value
|
|
38458
|
+
* @return {!proto.clarifai.api.Task} returns this
|
|
38459
|
+
*/
|
|
38460
|
+
proto.clarifai.api.Task.prototype.setMetrics = function (value) {
|
|
38461
|
+
return jspb.Message.setWrapperField(this, 21, value);
|
|
38462
|
+
};
|
|
38463
|
+
/**
|
|
38464
|
+
* Clears the message field making it undefined.
|
|
38465
|
+
* @return {!proto.clarifai.api.Task} returns this
|
|
38466
|
+
*/
|
|
38467
|
+
proto.clarifai.api.Task.prototype.clearMetrics = function () {
|
|
38468
|
+
return this.setMetrics(undefined);
|
|
38469
|
+
};
|
|
38470
|
+
/**
|
|
38471
|
+
* Returns whether this field is set.
|
|
38472
|
+
* @return {boolean}
|
|
38473
|
+
*/
|
|
38474
|
+
proto.clarifai.api.Task.prototype.hasMetrics = function () {
|
|
38475
|
+
return jspb.Message.getField(this, 21) != null;
|
|
38476
|
+
};
|
|
38347
38477
|
/**
|
|
38348
38478
|
* List of repeated fields within this message type.
|
|
38349
38479
|
* @private {!Array<number>}
|
|
@@ -40514,6 +40644,113 @@ proto.clarifai.api.TaskConcept.prototype.clearAutoAnnotationConfig = function ()
|
|
|
40514
40644
|
proto.clarifai.api.TaskConcept.prototype.hasAutoAnnotationConfig = function () {
|
|
40515
40645
|
return jspb.Message.getField(this, 2) != null;
|
|
40516
40646
|
};
|
|
40647
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40648
|
+
/**
|
|
40649
|
+
* Creates an object representation of this proto.
|
|
40650
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
40651
|
+
* Optional fields that are not set will be set to undefined.
|
|
40652
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
40653
|
+
* For the list of reserved names please see:
|
|
40654
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
40655
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
40656
|
+
* JSPB instance for transitional soy proto support:
|
|
40657
|
+
* http://goto/soy-param-migration
|
|
40658
|
+
* @return {!Object}
|
|
40659
|
+
*/
|
|
40660
|
+
proto.clarifai.api.TaskMetrics.prototype.toObject = function (opt_includeInstance) {
|
|
40661
|
+
return proto.clarifai.api.TaskMetrics.toObject(opt_includeInstance, this);
|
|
40662
|
+
};
|
|
40663
|
+
/**
|
|
40664
|
+
* Static version of the {@see toObject} method.
|
|
40665
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
40666
|
+
* the JSPB instance for transitional soy proto support:
|
|
40667
|
+
* http://goto/soy-param-migration
|
|
40668
|
+
* @param {!proto.clarifai.api.TaskMetrics} msg The msg instance to transform.
|
|
40669
|
+
* @return {!Object}
|
|
40670
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40671
|
+
*/
|
|
40672
|
+
proto.clarifai.api.TaskMetrics.toObject = function (includeInstance, msg) {
|
|
40673
|
+
var f, obj = {
|
|
40674
|
+
estimatedLabeledInputsCount: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
40675
|
+
};
|
|
40676
|
+
if (includeInstance) {
|
|
40677
|
+
obj.$jspbMessageInstance = msg;
|
|
40678
|
+
}
|
|
40679
|
+
return obj;
|
|
40680
|
+
};
|
|
40681
|
+
}
|
|
40682
|
+
/**
|
|
40683
|
+
* Deserializes binary data (in protobuf wire format).
|
|
40684
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
40685
|
+
* @return {!proto.clarifai.api.TaskMetrics}
|
|
40686
|
+
*/
|
|
40687
|
+
proto.clarifai.api.TaskMetrics.deserializeBinary = function (bytes) {
|
|
40688
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
40689
|
+
var msg = new proto.clarifai.api.TaskMetrics;
|
|
40690
|
+
return proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader(msg, reader);
|
|
40691
|
+
};
|
|
40692
|
+
/**
|
|
40693
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
40694
|
+
* given reader into the given message object.
|
|
40695
|
+
* @param {!proto.clarifai.api.TaskMetrics} msg The message object to deserialize into.
|
|
40696
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
40697
|
+
* @return {!proto.clarifai.api.TaskMetrics}
|
|
40698
|
+
*/
|
|
40699
|
+
proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function (msg, reader) {
|
|
40700
|
+
while (reader.nextField()) {
|
|
40701
|
+
if (reader.isEndGroup()) {
|
|
40702
|
+
break;
|
|
40703
|
+
}
|
|
40704
|
+
var field = reader.getFieldNumber();
|
|
40705
|
+
switch (field) {
|
|
40706
|
+
case 1:
|
|
40707
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
40708
|
+
msg.setEstimatedLabeledInputsCount(value);
|
|
40709
|
+
break;
|
|
40710
|
+
default:
|
|
40711
|
+
reader.skipField();
|
|
40712
|
+
break;
|
|
40713
|
+
}
|
|
40714
|
+
}
|
|
40715
|
+
return msg;
|
|
40716
|
+
};
|
|
40717
|
+
/**
|
|
40718
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
40719
|
+
* @return {!Uint8Array}
|
|
40720
|
+
*/
|
|
40721
|
+
proto.clarifai.api.TaskMetrics.prototype.serializeBinary = function () {
|
|
40722
|
+
var writer = new jspb.BinaryWriter();
|
|
40723
|
+
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter(this, writer);
|
|
40724
|
+
return writer.getResultBuffer();
|
|
40725
|
+
};
|
|
40726
|
+
/**
|
|
40727
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
40728
|
+
* format), writing to the given BinaryWriter.
|
|
40729
|
+
* @param {!proto.clarifai.api.TaskMetrics} message
|
|
40730
|
+
* @param {!jspb.BinaryWriter} writer
|
|
40731
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40732
|
+
*/
|
|
40733
|
+
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function (message, writer) {
|
|
40734
|
+
var f = undefined;
|
|
40735
|
+
f = message.getEstimatedLabeledInputsCount();
|
|
40736
|
+
if (f !== 0) {
|
|
40737
|
+
writer.writeUint64(1, f);
|
|
40738
|
+
}
|
|
40739
|
+
};
|
|
40740
|
+
/**
|
|
40741
|
+
* optional uint64 estimated_labeled_inputs_count = 1;
|
|
40742
|
+
* @return {number}
|
|
40743
|
+
*/
|
|
40744
|
+
proto.clarifai.api.TaskMetrics.prototype.getEstimatedLabeledInputsCount = function () {
|
|
40745
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
40746
|
+
};
|
|
40747
|
+
/**
|
|
40748
|
+
* @param {number} value
|
|
40749
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
40750
|
+
*/
|
|
40751
|
+
proto.clarifai.api.TaskMetrics.prototype.setEstimatedLabeledInputsCount = function (value) {
|
|
40752
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
40753
|
+
};
|
|
40517
40754
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40518
40755
|
/**
|
|
40519
40756
|
* Creates an object representation of this proto.
|
|
@@ -50863,6 +51100,14 @@ proto.clarifai.api.Runner.prototype.addLabels = function (value, opt_index) {
|
|
|
50863
51100
|
proto.clarifai.api.Runner.prototype.clearLabelsList = function () {
|
|
50864
51101
|
return this.setLabelsList([]);
|
|
50865
51102
|
};
|
|
51103
|
+
/**
|
|
51104
|
+
* @enum {number}
|
|
51105
|
+
*/
|
|
51106
|
+
proto.clarifai.api.WorkflowModelUseCase = {
|
|
51107
|
+
WORKFLOW_MODEL_USE_CASE_NOT_SET: 0,
|
|
51108
|
+
CLASSIFICATION: 1,
|
|
51109
|
+
DETECTION: 2
|
|
51110
|
+
};
|
|
50866
51111
|
/**
|
|
50867
51112
|
* @enum {number}
|
|
50868
51113
|
*/
|
|
@@ -50935,7 +51180,8 @@ proto.clarifai.api.EvaluationType = {
|
|
|
50935
51180
|
DETECTION: 2,
|
|
50936
51181
|
SEGMENTATION: 3,
|
|
50937
51182
|
CLUSTERING: 4,
|
|
50938
|
-
TRACKER: 5
|
|
51183
|
+
TRACKER: 5,
|
|
51184
|
+
GENERATION: 6
|
|
50939
51185
|
};
|
|
50940
51186
|
/**
|
|
50941
51187
|
* @enum {number}
|
|
@@ -356,6 +356,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
356
356
|
INTERNAL_SERVER_ISSUE: 98004,
|
|
357
357
|
INTERNAL_FETCHING_ISSUE: 98005,
|
|
358
358
|
INTERNAL_DATABASE_ISSUE: 98006,
|
|
359
|
+
INTERNAL_CONTEXT_CANCELED: 98008,
|
|
359
360
|
INTERNAL_UNEXPECTED_TIMEOUT: 98009,
|
|
360
361
|
INTERNAL_UNEXPECTED_V1: 98010,
|
|
361
362
|
INTERNAL_UNEXPECTED_PANIC: 98011,
|
package/package.json
CHANGED
|
@@ -867,6 +867,11 @@ export class ConceptQuery extends jspb.Message {
|
|
|
867
867
|
getWorkflowId(): string;
|
|
868
868
|
setWorkflowId(value: string): ConceptQuery;
|
|
869
869
|
|
|
870
|
+
getUseCasesList(): Array<WorkflowModelUseCase>;
|
|
871
|
+
setUseCasesList(value: Array<WorkflowModelUseCase>): ConceptQuery;
|
|
872
|
+
clearUseCasesList(): ConceptQuery;
|
|
873
|
+
addUseCases(value: WorkflowModelUseCase, index?: number): ConceptQuery;
|
|
874
|
+
|
|
870
875
|
serializeBinary(): Uint8Array;
|
|
871
876
|
toObject(includeInstance?: boolean): ConceptQuery.AsObject;
|
|
872
877
|
static toObject(includeInstance: boolean, msg: ConceptQuery): ConceptQuery.AsObject;
|
|
@@ -880,6 +885,7 @@ export namespace ConceptQuery {
|
|
|
880
885
|
name: string,
|
|
881
886
|
language: string,
|
|
882
887
|
workflowId: string,
|
|
888
|
+
useCasesList: Array<WorkflowModelUseCase>,
|
|
883
889
|
}
|
|
884
890
|
}
|
|
885
891
|
|
|
@@ -5399,6 +5405,9 @@ export class AppDuplicationFilters extends jspb.Message {
|
|
|
5399
5405
|
getCopyWorkflows(): boolean;
|
|
5400
5406
|
setCopyWorkflows(value: boolean): AppDuplicationFilters;
|
|
5401
5407
|
|
|
5408
|
+
getCopyInstalledModuleVersions(): boolean;
|
|
5409
|
+
setCopyInstalledModuleVersions(value: boolean): AppDuplicationFilters;
|
|
5410
|
+
|
|
5402
5411
|
serializeBinary(): Uint8Array;
|
|
5403
5412
|
toObject(includeInstance?: boolean): AppDuplicationFilters.AsObject;
|
|
5404
5413
|
static toObject(includeInstance: boolean, msg: AppDuplicationFilters): AppDuplicationFilters.AsObject;
|
|
@@ -5414,6 +5423,7 @@ export namespace AppDuplicationFilters {
|
|
|
5414
5423
|
copyAnnotations: boolean,
|
|
5415
5424
|
copyModels: boolean,
|
|
5416
5425
|
copyWorkflows: boolean,
|
|
5426
|
+
copyInstalledModuleVersions: boolean,
|
|
5417
5427
|
}
|
|
5418
5428
|
}
|
|
5419
5429
|
|
|
@@ -5566,6 +5576,11 @@ export class Task extends jspb.Message {
|
|
|
5566
5576
|
getDeletePreviousAnnotations(): boolean;
|
|
5567
5577
|
setDeletePreviousAnnotations(value: boolean): Task;
|
|
5568
5578
|
|
|
5579
|
+
getMetrics(): TaskMetrics | undefined;
|
|
5580
|
+
setMetrics(value?: TaskMetrics): Task;
|
|
5581
|
+
hasMetrics(): boolean;
|
|
5582
|
+
clearMetrics(): Task;
|
|
5583
|
+
|
|
5569
5584
|
serializeBinary(): Uint8Array;
|
|
5570
5585
|
toObject(includeInstance?: boolean): Task.AsObject;
|
|
5571
5586
|
static toObject(includeInstance: boolean, msg: Task): Task.AsObject;
|
|
@@ -5596,6 +5611,7 @@ export namespace Task {
|
|
|
5596
5611
|
labelOrderId: string,
|
|
5597
5612
|
conceptsList: Array<TaskConcept.AsObject>,
|
|
5598
5613
|
deletePreviousAnnotations: boolean,
|
|
5614
|
+
metrics?: TaskMetrics.AsObject,
|
|
5599
5615
|
}
|
|
5600
5616
|
|
|
5601
5617
|
export enum TaskType {
|
|
@@ -5991,6 +6007,24 @@ export namespace TaskConcept {
|
|
|
5991
6007
|
}
|
|
5992
6008
|
}
|
|
5993
6009
|
|
|
6010
|
+
export class TaskMetrics extends jspb.Message {
|
|
6011
|
+
getEstimatedLabeledInputsCount(): number;
|
|
6012
|
+
setEstimatedLabeledInputsCount(value: number): TaskMetrics;
|
|
6013
|
+
|
|
6014
|
+
serializeBinary(): Uint8Array;
|
|
6015
|
+
toObject(includeInstance?: boolean): TaskMetrics.AsObject;
|
|
6016
|
+
static toObject(includeInstance: boolean, msg: TaskMetrics): TaskMetrics.AsObject;
|
|
6017
|
+
static serializeBinaryToWriter(message: TaskMetrics, writer: jspb.BinaryWriter): void;
|
|
6018
|
+
static deserializeBinary(bytes: Uint8Array): TaskMetrics;
|
|
6019
|
+
static deserializeBinaryFromReader(message: TaskMetrics, reader: jspb.BinaryReader): TaskMetrics;
|
|
6020
|
+
}
|
|
6021
|
+
|
|
6022
|
+
export namespace TaskMetrics {
|
|
6023
|
+
export type AsObject = {
|
|
6024
|
+
estimatedLabeledInputsCount: number,
|
|
6025
|
+
}
|
|
6026
|
+
}
|
|
6027
|
+
|
|
5994
6028
|
export class Collector extends jspb.Message {
|
|
5995
6029
|
getId(): string;
|
|
5996
6030
|
setId(value: string): Collector;
|
|
@@ -7725,6 +7759,11 @@ export namespace Runner {
|
|
|
7725
7759
|
}
|
|
7726
7760
|
}
|
|
7727
7761
|
|
|
7762
|
+
export enum WorkflowModelUseCase {
|
|
7763
|
+
WORKFLOW_MODEL_USE_CASE_NOT_SET = 0,
|
|
7764
|
+
CLASSIFICATION = 1,
|
|
7765
|
+
DETECTION = 2,
|
|
7766
|
+
}
|
|
7728
7767
|
export enum DatasetVersionMetricsGroupType {
|
|
7729
7768
|
DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET = 0,
|
|
7730
7769
|
INPUT_TYPE = 2,
|
|
@@ -7777,6 +7816,7 @@ export enum EvaluationType {
|
|
|
7777
7816
|
SEGMENTATION = 3,
|
|
7778
7817
|
CLUSTERING = 4,
|
|
7779
7818
|
TRACKER = 5,
|
|
7819
|
+
GENERATION = 6,
|
|
7780
7820
|
}
|
|
7781
7821
|
export enum APIEventType {
|
|
7782
7822
|
API_EVENT_TYPE_NOT_SET = 0,
|
|
@@ -221,6 +221,7 @@ goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
|
|
|
221
221
|
goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
|
|
222
222
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
|
|
223
223
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource.TaskInputSourceType', null, global);
|
|
224
|
+
goog.exportSymbol('proto.clarifai.api.TaskMetrics', null, global);
|
|
224
225
|
goog.exportSymbol('proto.clarifai.api.TaskReview', null, global);
|
|
225
226
|
goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global);
|
|
226
227
|
goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, global);
|
|
@@ -261,6 +262,7 @@ goog.exportSymbol('proto.clarifai.api.W3C', null, global);
|
|
|
261
262
|
goog.exportSymbol('proto.clarifai.api.Worker', null, global);
|
|
262
263
|
goog.exportSymbol('proto.clarifai.api.Worker.WorkerCase', null, global);
|
|
263
264
|
goog.exportSymbol('proto.clarifai.api.Workflow', null, global);
|
|
265
|
+
goog.exportSymbol('proto.clarifai.api.WorkflowModelUseCase', null, global);
|
|
264
266
|
goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
|
|
265
267
|
goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
|
|
266
268
|
goog.exportSymbol('proto.clarifai.api.WorkflowResultsSimilarity', null, global);
|
|
@@ -739,7 +741,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
739
741
|
* @constructor
|
|
740
742
|
*/
|
|
741
743
|
proto.clarifai.api.ConceptQuery = function(opt_data) {
|
|
742
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
744
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_, null);
|
|
743
745
|
};
|
|
744
746
|
goog.inherits(proto.clarifai.api.ConceptQuery, jspb.Message);
|
|
745
747
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -3311,6 +3313,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3311
3313
|
*/
|
|
3312
3314
|
proto.clarifai.api.TaskConcept.displayName = 'proto.clarifai.api.TaskConcept';
|
|
3313
3315
|
}
|
|
3316
|
+
/**
|
|
3317
|
+
* Generated by JsPbCodeGenerator.
|
|
3318
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3319
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3320
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3321
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3322
|
+
* valid.
|
|
3323
|
+
* @extends {jspb.Message}
|
|
3324
|
+
* @constructor
|
|
3325
|
+
*/
|
|
3326
|
+
proto.clarifai.api.TaskMetrics = function(opt_data) {
|
|
3327
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3328
|
+
};
|
|
3329
|
+
goog.inherits(proto.clarifai.api.TaskMetrics, jspb.Message);
|
|
3330
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3331
|
+
/**
|
|
3332
|
+
* @public
|
|
3333
|
+
* @override
|
|
3334
|
+
*/
|
|
3335
|
+
proto.clarifai.api.TaskMetrics.displayName = 'proto.clarifai.api.TaskMetrics';
|
|
3336
|
+
}
|
|
3314
3337
|
/**
|
|
3315
3338
|
* Generated by JsPbCodeGenerator.
|
|
3316
3339
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -10883,6 +10906,13 @@ proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function() {
|
|
|
10883
10906
|
|
|
10884
10907
|
|
|
10885
10908
|
|
|
10909
|
+
/**
|
|
10910
|
+
* List of repeated fields within this message type.
|
|
10911
|
+
* @private {!Array<number>}
|
|
10912
|
+
* @const
|
|
10913
|
+
*/
|
|
10914
|
+
proto.clarifai.api.ConceptQuery.repeatedFields_ = [4];
|
|
10915
|
+
|
|
10886
10916
|
|
|
10887
10917
|
|
|
10888
10918
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -10916,7 +10946,8 @@ proto.clarifai.api.ConceptQuery.toObject = function(includeInstance, msg) {
|
|
|
10916
10946
|
var f, obj = {
|
|
10917
10947
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
10918
10948
|
language: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
10919
|
-
workflowId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
10949
|
+
workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
10950
|
+
useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
10920
10951
|
};
|
|
10921
10952
|
|
|
10922
10953
|
if (includeInstance) {
|
|
@@ -10965,6 +10996,12 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function(msg, read
|
|
|
10965
10996
|
var value = /** @type {string} */ (reader.readString());
|
|
10966
10997
|
msg.setWorkflowId(value);
|
|
10967
10998
|
break;
|
|
10999
|
+
case 4:
|
|
11000
|
+
var values = /** @type {!Array<!proto.clarifai.api.WorkflowModelUseCase>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
11001
|
+
for (var i = 0; i < values.length; i++) {
|
|
11002
|
+
msg.addUseCases(values[i]);
|
|
11003
|
+
}
|
|
11004
|
+
break;
|
|
10968
11005
|
default:
|
|
10969
11006
|
reader.skipField();
|
|
10970
11007
|
break;
|
|
@@ -11015,6 +11052,13 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function(message, writ
|
|
|
11015
11052
|
f
|
|
11016
11053
|
);
|
|
11017
11054
|
}
|
|
11055
|
+
f = message.getUseCasesList();
|
|
11056
|
+
if (f.length > 0) {
|
|
11057
|
+
writer.writePackedEnum(
|
|
11058
|
+
4,
|
|
11059
|
+
f
|
|
11060
|
+
);
|
|
11061
|
+
}
|
|
11018
11062
|
};
|
|
11019
11063
|
|
|
11020
11064
|
|
|
@@ -11072,6 +11116,43 @@ proto.clarifai.api.ConceptQuery.prototype.setWorkflowId = function(value) {
|
|
|
11072
11116
|
};
|
|
11073
11117
|
|
|
11074
11118
|
|
|
11119
|
+
/**
|
|
11120
|
+
* repeated WorkflowModelUseCase use_cases = 4;
|
|
11121
|
+
* @return {!Array<!proto.clarifai.api.WorkflowModelUseCase>}
|
|
11122
|
+
*/
|
|
11123
|
+
proto.clarifai.api.ConceptQuery.prototype.getUseCasesList = function() {
|
|
11124
|
+
return /** @type {!Array<!proto.clarifai.api.WorkflowModelUseCase>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
11125
|
+
};
|
|
11126
|
+
|
|
11127
|
+
|
|
11128
|
+
/**
|
|
11129
|
+
* @param {!Array<!proto.clarifai.api.WorkflowModelUseCase>} value
|
|
11130
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
11131
|
+
*/
|
|
11132
|
+
proto.clarifai.api.ConceptQuery.prototype.setUseCasesList = function(value) {
|
|
11133
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
11134
|
+
};
|
|
11135
|
+
|
|
11136
|
+
|
|
11137
|
+
/**
|
|
11138
|
+
* @param {!proto.clarifai.api.WorkflowModelUseCase} value
|
|
11139
|
+
* @param {number=} opt_index
|
|
11140
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
11141
|
+
*/
|
|
11142
|
+
proto.clarifai.api.ConceptQuery.prototype.addUseCases = function(value, opt_index) {
|
|
11143
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
11144
|
+
};
|
|
11145
|
+
|
|
11146
|
+
|
|
11147
|
+
/**
|
|
11148
|
+
* Clears the list making it empty but non-null.
|
|
11149
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
11150
|
+
*/
|
|
11151
|
+
proto.clarifai.api.ConceptQuery.prototype.clearUseCasesList = function() {
|
|
11152
|
+
return this.setUseCasesList([]);
|
|
11153
|
+
};
|
|
11154
|
+
|
|
11155
|
+
|
|
11075
11156
|
|
|
11076
11157
|
|
|
11077
11158
|
|
|
@@ -46132,7 +46213,8 @@ proto.clarifai.api.AppDuplicationFilters.toObject = function(includeInstance, ms
|
|
|
46132
46213
|
copyConcepts: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
46133
46214
|
copyAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
46134
46215
|
copyModels: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
46135
|
-
copyWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
46216
|
+
copyWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
46217
|
+
copyInstalledModuleVersions: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
|
46136
46218
|
};
|
|
46137
46219
|
|
|
46138
46220
|
if (includeInstance) {
|
|
@@ -46189,6 +46271,10 @@ proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader = function(
|
|
|
46189
46271
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
46190
46272
|
msg.setCopyWorkflows(value);
|
|
46191
46273
|
break;
|
|
46274
|
+
case 6:
|
|
46275
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
46276
|
+
msg.setCopyInstalledModuleVersions(value);
|
|
46277
|
+
break;
|
|
46192
46278
|
default:
|
|
46193
46279
|
reader.skipField();
|
|
46194
46280
|
break;
|
|
@@ -46253,6 +46339,13 @@ proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter = function(mess
|
|
|
46253
46339
|
f
|
|
46254
46340
|
);
|
|
46255
46341
|
}
|
|
46342
|
+
f = message.getCopyInstalledModuleVersions();
|
|
46343
|
+
if (f) {
|
|
46344
|
+
writer.writeBool(
|
|
46345
|
+
6,
|
|
46346
|
+
f
|
|
46347
|
+
);
|
|
46348
|
+
}
|
|
46256
46349
|
};
|
|
46257
46350
|
|
|
46258
46351
|
|
|
@@ -46346,6 +46439,24 @@ proto.clarifai.api.AppDuplicationFilters.prototype.setCopyWorkflows = function(v
|
|
|
46346
46439
|
};
|
|
46347
46440
|
|
|
46348
46441
|
|
|
46442
|
+
/**
|
|
46443
|
+
* optional bool copy_installed_module_versions = 6;
|
|
46444
|
+
* @return {boolean}
|
|
46445
|
+
*/
|
|
46446
|
+
proto.clarifai.api.AppDuplicationFilters.prototype.getCopyInstalledModuleVersions = function() {
|
|
46447
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
46448
|
+
};
|
|
46449
|
+
|
|
46450
|
+
|
|
46451
|
+
/**
|
|
46452
|
+
* @param {boolean} value
|
|
46453
|
+
* @return {!proto.clarifai.api.AppDuplicationFilters} returns this
|
|
46454
|
+
*/
|
|
46455
|
+
proto.clarifai.api.AppDuplicationFilters.prototype.setCopyInstalledModuleVersions = function(value) {
|
|
46456
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
46457
|
+
};
|
|
46458
|
+
|
|
46459
|
+
|
|
46349
46460
|
|
|
46350
46461
|
|
|
46351
46462
|
|
|
@@ -46931,7 +47042,8 @@ proto.clarifai.api.Task.toObject = function(includeInstance, msg) {
|
|
|
46931
47042
|
labelOrderId: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
46932
47043
|
conceptsList: jspb.Message.toObjectList(msg.getConceptsList(),
|
|
46933
47044
|
proto.clarifai.api.TaskConcept.toObject, includeInstance),
|
|
46934
|
-
deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false)
|
|
47045
|
+
deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
|
|
47046
|
+
metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f)
|
|
46935
47047
|
};
|
|
46936
47048
|
|
|
46937
47049
|
if (includeInstance) {
|
|
@@ -47058,6 +47170,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
47058
47170
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
47059
47171
|
msg.setDeletePreviousAnnotations(value);
|
|
47060
47172
|
break;
|
|
47173
|
+
case 21:
|
|
47174
|
+
var value = new proto.clarifai.api.TaskMetrics;
|
|
47175
|
+
reader.readMessage(value,proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader);
|
|
47176
|
+
msg.setMetrics(value);
|
|
47177
|
+
break;
|
|
47061
47178
|
default:
|
|
47062
47179
|
reader.skipField();
|
|
47063
47180
|
break;
|
|
@@ -47237,6 +47354,14 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
|
|
|
47237
47354
|
f
|
|
47238
47355
|
);
|
|
47239
47356
|
}
|
|
47357
|
+
f = message.getMetrics();
|
|
47358
|
+
if (f != null) {
|
|
47359
|
+
writer.writeMessage(
|
|
47360
|
+
21,
|
|
47361
|
+
f,
|
|
47362
|
+
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter
|
|
47363
|
+
);
|
|
47364
|
+
}
|
|
47240
47365
|
};
|
|
47241
47366
|
|
|
47242
47367
|
|
|
@@ -47820,6 +47945,43 @@ proto.clarifai.api.Task.prototype.setDeletePreviousAnnotations = function(value)
|
|
|
47820
47945
|
};
|
|
47821
47946
|
|
|
47822
47947
|
|
|
47948
|
+
/**
|
|
47949
|
+
* optional TaskMetrics metrics = 21;
|
|
47950
|
+
* @return {?proto.clarifai.api.TaskMetrics}
|
|
47951
|
+
*/
|
|
47952
|
+
proto.clarifai.api.Task.prototype.getMetrics = function() {
|
|
47953
|
+
return /** @type{?proto.clarifai.api.TaskMetrics} */ (
|
|
47954
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.TaskMetrics, 21));
|
|
47955
|
+
};
|
|
47956
|
+
|
|
47957
|
+
|
|
47958
|
+
/**
|
|
47959
|
+
* @param {?proto.clarifai.api.TaskMetrics|undefined} value
|
|
47960
|
+
* @return {!proto.clarifai.api.Task} returns this
|
|
47961
|
+
*/
|
|
47962
|
+
proto.clarifai.api.Task.prototype.setMetrics = function(value) {
|
|
47963
|
+
return jspb.Message.setWrapperField(this, 21, value);
|
|
47964
|
+
};
|
|
47965
|
+
|
|
47966
|
+
|
|
47967
|
+
/**
|
|
47968
|
+
* Clears the message field making it undefined.
|
|
47969
|
+
* @return {!proto.clarifai.api.Task} returns this
|
|
47970
|
+
*/
|
|
47971
|
+
proto.clarifai.api.Task.prototype.clearMetrics = function() {
|
|
47972
|
+
return this.setMetrics(undefined);
|
|
47973
|
+
};
|
|
47974
|
+
|
|
47975
|
+
|
|
47976
|
+
/**
|
|
47977
|
+
* Returns whether this field is set.
|
|
47978
|
+
* @return {boolean}
|
|
47979
|
+
*/
|
|
47980
|
+
proto.clarifai.api.Task.prototype.hasMetrics = function() {
|
|
47981
|
+
return jspb.Message.getField(this, 21) != null;
|
|
47982
|
+
};
|
|
47983
|
+
|
|
47984
|
+
|
|
47823
47985
|
|
|
47824
47986
|
/**
|
|
47825
47987
|
* List of repeated fields within this message type.
|
|
@@ -50539,6 +50701,136 @@ proto.clarifai.api.TaskConcept.prototype.hasAutoAnnotationConfig = function() {
|
|
|
50539
50701
|
|
|
50540
50702
|
|
|
50541
50703
|
|
|
50704
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
50705
|
+
/**
|
|
50706
|
+
* Creates an object representation of this proto.
|
|
50707
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
50708
|
+
* Optional fields that are not set will be set to undefined.
|
|
50709
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
50710
|
+
* For the list of reserved names please see:
|
|
50711
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
50712
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
50713
|
+
* JSPB instance for transitional soy proto support:
|
|
50714
|
+
* http://goto/soy-param-migration
|
|
50715
|
+
* @return {!Object}
|
|
50716
|
+
*/
|
|
50717
|
+
proto.clarifai.api.TaskMetrics.prototype.toObject = function(opt_includeInstance) {
|
|
50718
|
+
return proto.clarifai.api.TaskMetrics.toObject(opt_includeInstance, this);
|
|
50719
|
+
};
|
|
50720
|
+
|
|
50721
|
+
|
|
50722
|
+
/**
|
|
50723
|
+
* Static version of the {@see toObject} method.
|
|
50724
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
50725
|
+
* the JSPB instance for transitional soy proto support:
|
|
50726
|
+
* http://goto/soy-param-migration
|
|
50727
|
+
* @param {!proto.clarifai.api.TaskMetrics} msg The msg instance to transform.
|
|
50728
|
+
* @return {!Object}
|
|
50729
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
50730
|
+
*/
|
|
50731
|
+
proto.clarifai.api.TaskMetrics.toObject = function(includeInstance, msg) {
|
|
50732
|
+
var f, obj = {
|
|
50733
|
+
estimatedLabeledInputsCount: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
50734
|
+
};
|
|
50735
|
+
|
|
50736
|
+
if (includeInstance) {
|
|
50737
|
+
obj.$jspbMessageInstance = msg;
|
|
50738
|
+
}
|
|
50739
|
+
return obj;
|
|
50740
|
+
};
|
|
50741
|
+
}
|
|
50742
|
+
|
|
50743
|
+
|
|
50744
|
+
/**
|
|
50745
|
+
* Deserializes binary data (in protobuf wire format).
|
|
50746
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
50747
|
+
* @return {!proto.clarifai.api.TaskMetrics}
|
|
50748
|
+
*/
|
|
50749
|
+
proto.clarifai.api.TaskMetrics.deserializeBinary = function(bytes) {
|
|
50750
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
50751
|
+
var msg = new proto.clarifai.api.TaskMetrics;
|
|
50752
|
+
return proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader(msg, reader);
|
|
50753
|
+
};
|
|
50754
|
+
|
|
50755
|
+
|
|
50756
|
+
/**
|
|
50757
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
50758
|
+
* given reader into the given message object.
|
|
50759
|
+
* @param {!proto.clarifai.api.TaskMetrics} msg The message object to deserialize into.
|
|
50760
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
50761
|
+
* @return {!proto.clarifai.api.TaskMetrics}
|
|
50762
|
+
*/
|
|
50763
|
+
proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function(msg, reader) {
|
|
50764
|
+
while (reader.nextField()) {
|
|
50765
|
+
if (reader.isEndGroup()) {
|
|
50766
|
+
break;
|
|
50767
|
+
}
|
|
50768
|
+
var field = reader.getFieldNumber();
|
|
50769
|
+
switch (field) {
|
|
50770
|
+
case 1:
|
|
50771
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
50772
|
+
msg.setEstimatedLabeledInputsCount(value);
|
|
50773
|
+
break;
|
|
50774
|
+
default:
|
|
50775
|
+
reader.skipField();
|
|
50776
|
+
break;
|
|
50777
|
+
}
|
|
50778
|
+
}
|
|
50779
|
+
return msg;
|
|
50780
|
+
};
|
|
50781
|
+
|
|
50782
|
+
|
|
50783
|
+
/**
|
|
50784
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
50785
|
+
* @return {!Uint8Array}
|
|
50786
|
+
*/
|
|
50787
|
+
proto.clarifai.api.TaskMetrics.prototype.serializeBinary = function() {
|
|
50788
|
+
var writer = new jspb.BinaryWriter();
|
|
50789
|
+
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter(this, writer);
|
|
50790
|
+
return writer.getResultBuffer();
|
|
50791
|
+
};
|
|
50792
|
+
|
|
50793
|
+
|
|
50794
|
+
/**
|
|
50795
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
50796
|
+
* format), writing to the given BinaryWriter.
|
|
50797
|
+
* @param {!proto.clarifai.api.TaskMetrics} message
|
|
50798
|
+
* @param {!jspb.BinaryWriter} writer
|
|
50799
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
50800
|
+
*/
|
|
50801
|
+
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function(message, writer) {
|
|
50802
|
+
var f = undefined;
|
|
50803
|
+
f = message.getEstimatedLabeledInputsCount();
|
|
50804
|
+
if (f !== 0) {
|
|
50805
|
+
writer.writeUint64(
|
|
50806
|
+
1,
|
|
50807
|
+
f
|
|
50808
|
+
);
|
|
50809
|
+
}
|
|
50810
|
+
};
|
|
50811
|
+
|
|
50812
|
+
|
|
50813
|
+
/**
|
|
50814
|
+
* optional uint64 estimated_labeled_inputs_count = 1;
|
|
50815
|
+
* @return {number}
|
|
50816
|
+
*/
|
|
50817
|
+
proto.clarifai.api.TaskMetrics.prototype.getEstimatedLabeledInputsCount = function() {
|
|
50818
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
50819
|
+
};
|
|
50820
|
+
|
|
50821
|
+
|
|
50822
|
+
/**
|
|
50823
|
+
* @param {number} value
|
|
50824
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
50825
|
+
*/
|
|
50826
|
+
proto.clarifai.api.TaskMetrics.prototype.setEstimatedLabeledInputsCount = function(value) {
|
|
50827
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
50828
|
+
};
|
|
50829
|
+
|
|
50830
|
+
|
|
50831
|
+
|
|
50832
|
+
|
|
50833
|
+
|
|
50542
50834
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
50543
50835
|
/**
|
|
50544
50836
|
* Creates an object representation of this proto.
|
|
@@ -63641,6 +63933,15 @@ proto.clarifai.api.Runner.prototype.clearLabelsList = function() {
|
|
|
63641
63933
|
};
|
|
63642
63934
|
|
|
63643
63935
|
|
|
63936
|
+
/**
|
|
63937
|
+
* @enum {number}
|
|
63938
|
+
*/
|
|
63939
|
+
proto.clarifai.api.WorkflowModelUseCase = {
|
|
63940
|
+
WORKFLOW_MODEL_USE_CASE_NOT_SET: 0,
|
|
63941
|
+
CLASSIFICATION: 1,
|
|
63942
|
+
DETECTION: 2
|
|
63943
|
+
};
|
|
63944
|
+
|
|
63644
63945
|
/**
|
|
63645
63946
|
* @enum {number}
|
|
63646
63947
|
*/
|
|
@@ -63719,7 +64020,8 @@ proto.clarifai.api.EvaluationType = {
|
|
|
63719
64020
|
DETECTION: 2,
|
|
63720
64021
|
SEGMENTATION: 3,
|
|
63721
64022
|
CLUSTERING: 4,
|
|
63722
|
-
TRACKER: 5
|
|
64023
|
+
TRACKER: 5,
|
|
64024
|
+
GENERATION: 6
|
|
63723
64025
|
};
|
|
63724
64026
|
|
|
63725
64027
|
/**
|
|
@@ -335,6 +335,7 @@ export enum StatusCode {
|
|
|
335
335
|
INTERNAL_SERVER_ISSUE = 98004,
|
|
336
336
|
INTERNAL_FETCHING_ISSUE = 98005,
|
|
337
337
|
INTERNAL_DATABASE_ISSUE = 98006,
|
|
338
|
+
INTERNAL_CONTEXT_CANCELED = 98008,
|
|
338
339
|
INTERNAL_UNEXPECTED_TIMEOUT = 98009,
|
|
339
340
|
INTERNAL_UNEXPECTED_V1 = 98010,
|
|
340
341
|
INTERNAL_UNEXPECTED_PANIC = 98011,
|
|
@@ -358,6 +358,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
358
358
|
INTERNAL_SERVER_ISSUE: 98004,
|
|
359
359
|
INTERNAL_FETCHING_ISSUE: 98005,
|
|
360
360
|
INTERNAL_DATABASE_ISSUE: 98006,
|
|
361
|
+
INTERNAL_CONTEXT_CANCELED: 98008,
|
|
361
362
|
INTERNAL_UNEXPECTED_TIMEOUT: 98009,
|
|
362
363
|
INTERNAL_UNEXPECTED_V1: 98010,
|
|
363
364
|
INTERNAL_UNEXPECTED_PANIC: 98011,
|