clarifai-web-grpc 10.4.1 → 10.5.1
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 +326 -272
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +210 -42
- package/dist/cjs/proto/clarifai/api/service_pb.js +1364 -378
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +4 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +326 -272
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +210 -42
- package/dist/esm/proto/clarifai/api/service_pb.js +1364 -378
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +4 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +49 -43
- package/proto/clarifai/api/resources_pb.js +401 -322
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +60 -12
- package/proto/clarifai/api/service_grpc_web_pb.js +305 -61
- package/proto/clarifai/api/service_pb.d.ts +194 -52
- package/proto/clarifai/api/service_pb.js +2254 -1038
- package/proto/clarifai/api/status/status_code_pb.d.ts +3 -0
- package/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +3 -0
- package/proto/clarifai/auth/scope/scope_pb.js +4 -1
|
@@ -81,7 +81,6 @@ goog.exportSymbol('proto.clarifai.api.Concept', null, global);
|
|
|
81
81
|
goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
|
|
82
82
|
goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
|
|
83
83
|
goog.exportSymbol('proto.clarifai.api.ConceptLanguage', null, global);
|
|
84
|
-
goog.exportSymbol('proto.clarifai.api.ConceptMappingJob', null, global);
|
|
85
84
|
goog.exportSymbol('proto.clarifai.api.ConceptQuery', null, global);
|
|
86
85
|
goog.exportSymbol('proto.clarifai.api.ConceptQuery.SourceCase', null, global);
|
|
87
86
|
goog.exportSymbol('proto.clarifai.api.ConceptRelation', null, global);
|
|
@@ -116,7 +115,6 @@ goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global);
|
|
|
116
115
|
goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global);
|
|
117
116
|
goog.exportSymbol('proto.clarifai.api.DeleteMetadata', null, global);
|
|
118
117
|
goog.exportSymbol('proto.clarifai.api.Deployment', null, global);
|
|
119
|
-
goog.exportSymbol('proto.clarifai.api.Deployment.ObjectCase', null, global);
|
|
120
118
|
goog.exportSymbol('proto.clarifai.api.Deployment.SchedulingChoice', null, global);
|
|
121
119
|
goog.exportSymbol('proto.clarifai.api.DetailConceptCount', null, global);
|
|
122
120
|
goog.exportSymbol('proto.clarifai.api.DuplicateAnnotationsResults', null, global);
|
|
@@ -241,6 +239,7 @@ goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
|
|
|
241
239
|
goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
|
|
242
240
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
|
|
243
241
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource.TaskInputSourceType', null, global);
|
|
242
|
+
goog.exportSymbol('proto.clarifai.api.TaskInputSourceMetrics', null, global);
|
|
244
243
|
goog.exportSymbol('proto.clarifai.api.TaskMetrics', null, global);
|
|
245
244
|
goog.exportSymbol('proto.clarifai.api.TaskReview', null, global);
|
|
246
245
|
goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global);
|
|
@@ -836,27 +835,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
836
835
|
*/
|
|
837
836
|
proto.clarifai.api.KnowledgeGraph.displayName = 'proto.clarifai.api.KnowledgeGraph';
|
|
838
837
|
}
|
|
839
|
-
/**
|
|
840
|
-
* Generated by JsPbCodeGenerator.
|
|
841
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
842
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
843
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
844
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
845
|
-
* valid.
|
|
846
|
-
* @extends {jspb.Message}
|
|
847
|
-
* @constructor
|
|
848
|
-
*/
|
|
849
|
-
proto.clarifai.api.ConceptMappingJob = function(opt_data) {
|
|
850
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptMappingJob.repeatedFields_, null);
|
|
851
|
-
};
|
|
852
|
-
goog.inherits(proto.clarifai.api.ConceptMappingJob, jspb.Message);
|
|
853
|
-
if (goog.DEBUG && !COMPILED) {
|
|
854
|
-
/**
|
|
855
|
-
* @public
|
|
856
|
-
* @override
|
|
857
|
-
*/
|
|
858
|
-
proto.clarifai.api.ConceptMappingJob.displayName = 'proto.clarifai.api.ConceptMappingJob';
|
|
859
|
-
}
|
|
860
838
|
/**
|
|
861
839
|
* Generated by JsPbCodeGenerator.
|
|
862
840
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3482,6 +3460,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3482
3460
|
*/
|
|
3483
3461
|
proto.clarifai.api.TaskReviewMetrics.displayName = 'proto.clarifai.api.TaskReviewMetrics';
|
|
3484
3462
|
}
|
|
3463
|
+
/**
|
|
3464
|
+
* Generated by JsPbCodeGenerator.
|
|
3465
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3466
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3467
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3468
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3469
|
+
* valid.
|
|
3470
|
+
* @extends {jspb.Message}
|
|
3471
|
+
* @constructor
|
|
3472
|
+
*/
|
|
3473
|
+
proto.clarifai.api.TaskInputSourceMetrics = function(opt_data) {
|
|
3474
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3475
|
+
};
|
|
3476
|
+
goog.inherits(proto.clarifai.api.TaskInputSourceMetrics, jspb.Message);
|
|
3477
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3478
|
+
/**
|
|
3479
|
+
* @public
|
|
3480
|
+
* @override
|
|
3481
|
+
*/
|
|
3482
|
+
proto.clarifai.api.TaskInputSourceMetrics.displayName = 'proto.clarifai.api.TaskInputSourceMetrics';
|
|
3483
|
+
}
|
|
3485
3484
|
/**
|
|
3486
3485
|
* Generated by JsPbCodeGenerator.
|
|
3487
3486
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4690,7 +4689,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4690
4689
|
* @constructor
|
|
4691
4690
|
*/
|
|
4692
4691
|
proto.clarifai.api.Deployment = function(opt_data) {
|
|
4693
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Deployment.repeatedFields_,
|
|
4692
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Deployment.repeatedFields_, null);
|
|
4694
4693
|
};
|
|
4695
4694
|
goog.inherits(proto.clarifai.api.Deployment, jspb.Message);
|
|
4696
4695
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -12555,192 +12554,6 @@ proto.clarifai.api.KnowledgeGraph.prototype.setSampledExamplesAppId = function(v
|
|
|
12555
12554
|
|
|
12556
12555
|
|
|
12557
12556
|
|
|
12558
|
-
/**
|
|
12559
|
-
* List of repeated fields within this message type.
|
|
12560
|
-
* @private {!Array<number>}
|
|
12561
|
-
* @const
|
|
12562
|
-
*/
|
|
12563
|
-
proto.clarifai.api.ConceptMappingJob.repeatedFields_ = [2];
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12568
|
-
/**
|
|
12569
|
-
* Creates an object representation of this proto.
|
|
12570
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12571
|
-
* Optional fields that are not set will be set to undefined.
|
|
12572
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12573
|
-
* For the list of reserved names please see:
|
|
12574
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12575
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12576
|
-
* JSPB instance for transitional soy proto support:
|
|
12577
|
-
* http://goto/soy-param-migration
|
|
12578
|
-
* @return {!Object}
|
|
12579
|
-
*/
|
|
12580
|
-
proto.clarifai.api.ConceptMappingJob.prototype.toObject = function(opt_includeInstance) {
|
|
12581
|
-
return proto.clarifai.api.ConceptMappingJob.toObject(opt_includeInstance, this);
|
|
12582
|
-
};
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
/**
|
|
12586
|
-
* Static version of the {@see toObject} method.
|
|
12587
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12588
|
-
* the JSPB instance for transitional soy proto support:
|
|
12589
|
-
* http://goto/soy-param-migration
|
|
12590
|
-
* @param {!proto.clarifai.api.ConceptMappingJob} msg The msg instance to transform.
|
|
12591
|
-
* @return {!Object}
|
|
12592
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12593
|
-
*/
|
|
12594
|
-
proto.clarifai.api.ConceptMappingJob.toObject = function(includeInstance, msg) {
|
|
12595
|
-
var f, obj = {
|
|
12596
|
-
knowledgeGraphId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
12597
|
-
conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
12598
|
-
};
|
|
12599
|
-
|
|
12600
|
-
if (includeInstance) {
|
|
12601
|
-
obj.$jspbMessageInstance = msg;
|
|
12602
|
-
}
|
|
12603
|
-
return obj;
|
|
12604
|
-
};
|
|
12605
|
-
}
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
/**
|
|
12609
|
-
* Deserializes binary data (in protobuf wire format).
|
|
12610
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12611
|
-
* @return {!proto.clarifai.api.ConceptMappingJob}
|
|
12612
|
-
*/
|
|
12613
|
-
proto.clarifai.api.ConceptMappingJob.deserializeBinary = function(bytes) {
|
|
12614
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
12615
|
-
var msg = new proto.clarifai.api.ConceptMappingJob;
|
|
12616
|
-
return proto.clarifai.api.ConceptMappingJob.deserializeBinaryFromReader(msg, reader);
|
|
12617
|
-
};
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
/**
|
|
12621
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
12622
|
-
* given reader into the given message object.
|
|
12623
|
-
* @param {!proto.clarifai.api.ConceptMappingJob} msg The message object to deserialize into.
|
|
12624
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12625
|
-
* @return {!proto.clarifai.api.ConceptMappingJob}
|
|
12626
|
-
*/
|
|
12627
|
-
proto.clarifai.api.ConceptMappingJob.deserializeBinaryFromReader = function(msg, reader) {
|
|
12628
|
-
while (reader.nextField()) {
|
|
12629
|
-
if (reader.isEndGroup()) {
|
|
12630
|
-
break;
|
|
12631
|
-
}
|
|
12632
|
-
var field = reader.getFieldNumber();
|
|
12633
|
-
switch (field) {
|
|
12634
|
-
case 1:
|
|
12635
|
-
var value = /** @type {string} */ (reader.readString());
|
|
12636
|
-
msg.setKnowledgeGraphId(value);
|
|
12637
|
-
break;
|
|
12638
|
-
case 2:
|
|
12639
|
-
var value = /** @type {string} */ (reader.readString());
|
|
12640
|
-
msg.addConceptIds(value);
|
|
12641
|
-
break;
|
|
12642
|
-
default:
|
|
12643
|
-
reader.skipField();
|
|
12644
|
-
break;
|
|
12645
|
-
}
|
|
12646
|
-
}
|
|
12647
|
-
return msg;
|
|
12648
|
-
};
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
/**
|
|
12652
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
12653
|
-
* @return {!Uint8Array}
|
|
12654
|
-
*/
|
|
12655
|
-
proto.clarifai.api.ConceptMappingJob.prototype.serializeBinary = function() {
|
|
12656
|
-
var writer = new jspb.BinaryWriter();
|
|
12657
|
-
proto.clarifai.api.ConceptMappingJob.serializeBinaryToWriter(this, writer);
|
|
12658
|
-
return writer.getResultBuffer();
|
|
12659
|
-
};
|
|
12660
|
-
|
|
12661
|
-
|
|
12662
|
-
/**
|
|
12663
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
12664
|
-
* format), writing to the given BinaryWriter.
|
|
12665
|
-
* @param {!proto.clarifai.api.ConceptMappingJob} message
|
|
12666
|
-
* @param {!jspb.BinaryWriter} writer
|
|
12667
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12668
|
-
*/
|
|
12669
|
-
proto.clarifai.api.ConceptMappingJob.serializeBinaryToWriter = function(message, writer) {
|
|
12670
|
-
var f = undefined;
|
|
12671
|
-
f = message.getKnowledgeGraphId();
|
|
12672
|
-
if (f.length > 0) {
|
|
12673
|
-
writer.writeString(
|
|
12674
|
-
1,
|
|
12675
|
-
f
|
|
12676
|
-
);
|
|
12677
|
-
}
|
|
12678
|
-
f = message.getConceptIdsList();
|
|
12679
|
-
if (f.length > 0) {
|
|
12680
|
-
writer.writeRepeatedString(
|
|
12681
|
-
2,
|
|
12682
|
-
f
|
|
12683
|
-
);
|
|
12684
|
-
}
|
|
12685
|
-
};
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
/**
|
|
12689
|
-
* optional string knowledge_graph_id = 1;
|
|
12690
|
-
* @return {string}
|
|
12691
|
-
*/
|
|
12692
|
-
proto.clarifai.api.ConceptMappingJob.prototype.getKnowledgeGraphId = function() {
|
|
12693
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
12694
|
-
};
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
/**
|
|
12698
|
-
* @param {string} value
|
|
12699
|
-
* @return {!proto.clarifai.api.ConceptMappingJob} returns this
|
|
12700
|
-
*/
|
|
12701
|
-
proto.clarifai.api.ConceptMappingJob.prototype.setKnowledgeGraphId = function(value) {
|
|
12702
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
12703
|
-
};
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
/**
|
|
12707
|
-
* repeated string concept_ids = 2;
|
|
12708
|
-
* @return {!Array<string>}
|
|
12709
|
-
*/
|
|
12710
|
-
proto.clarifai.api.ConceptMappingJob.prototype.getConceptIdsList = function() {
|
|
12711
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
12712
|
-
};
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
/**
|
|
12716
|
-
* @param {!Array<string>} value
|
|
12717
|
-
* @return {!proto.clarifai.api.ConceptMappingJob} returns this
|
|
12718
|
-
*/
|
|
12719
|
-
proto.clarifai.api.ConceptMappingJob.prototype.setConceptIdsList = function(value) {
|
|
12720
|
-
return jspb.Message.setField(this, 2, value || []);
|
|
12721
|
-
};
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
/**
|
|
12725
|
-
* @param {string} value
|
|
12726
|
-
* @param {number=} opt_index
|
|
12727
|
-
* @return {!proto.clarifai.api.ConceptMappingJob} returns this
|
|
12728
|
-
*/
|
|
12729
|
-
proto.clarifai.api.ConceptMappingJob.prototype.addConceptIds = function(value, opt_index) {
|
|
12730
|
-
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
12731
|
-
};
|
|
12732
|
-
|
|
12733
|
-
|
|
12734
|
-
/**
|
|
12735
|
-
* Clears the list making it empty but non-null.
|
|
12736
|
-
* @return {!proto.clarifai.api.ConceptMappingJob} returns this
|
|
12737
|
-
*/
|
|
12738
|
-
proto.clarifai.api.ConceptMappingJob.prototype.clearConceptIdsList = function() {
|
|
12739
|
-
return this.setConceptIdsList([]);
|
|
12740
|
-
};
|
|
12741
|
-
|
|
12742
|
-
|
|
12743
|
-
|
|
12744
12557
|
|
|
12745
12558
|
|
|
12746
12559
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -52587,7 +52400,8 @@ proto.clarifai.api.TaskMetrics.prototype.toObject = function(opt_includeInstance
|
|
|
52587
52400
|
proto.clarifai.api.TaskMetrics.toObject = function(includeInstance, msg) {
|
|
52588
52401
|
var f, obj = {
|
|
52589
52402
|
work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f),
|
|
52590
|
-
review: (f = msg.getReview()) && proto.clarifai.api.TaskReviewMetrics.toObject(includeInstance, f)
|
|
52403
|
+
review: (f = msg.getReview()) && proto.clarifai.api.TaskReviewMetrics.toObject(includeInstance, f),
|
|
52404
|
+
inputSource: (f = msg.getInputSource()) && proto.clarifai.api.TaskInputSourceMetrics.toObject(includeInstance, f)
|
|
52591
52405
|
};
|
|
52592
52406
|
|
|
52593
52407
|
if (includeInstance) {
|
|
@@ -52634,6 +52448,11 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function(msg, reade
|
|
|
52634
52448
|
reader.readMessage(value,proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader);
|
|
52635
52449
|
msg.setReview(value);
|
|
52636
52450
|
break;
|
|
52451
|
+
case 4:
|
|
52452
|
+
var value = new proto.clarifai.api.TaskInputSourceMetrics;
|
|
52453
|
+
reader.readMessage(value,proto.clarifai.api.TaskInputSourceMetrics.deserializeBinaryFromReader);
|
|
52454
|
+
msg.setInputSource(value);
|
|
52455
|
+
break;
|
|
52637
52456
|
default:
|
|
52638
52457
|
reader.skipField();
|
|
52639
52458
|
break;
|
|
@@ -52679,6 +52498,14 @@ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function(message, write
|
|
|
52679
52498
|
proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter
|
|
52680
52499
|
);
|
|
52681
52500
|
}
|
|
52501
|
+
f = message.getInputSource();
|
|
52502
|
+
if (f != null) {
|
|
52503
|
+
writer.writeMessage(
|
|
52504
|
+
4,
|
|
52505
|
+
f,
|
|
52506
|
+
proto.clarifai.api.TaskInputSourceMetrics.serializeBinaryToWriter
|
|
52507
|
+
);
|
|
52508
|
+
}
|
|
52682
52509
|
};
|
|
52683
52510
|
|
|
52684
52511
|
|
|
@@ -52756,6 +52583,43 @@ proto.clarifai.api.TaskMetrics.prototype.hasReview = function() {
|
|
|
52756
52583
|
};
|
|
52757
52584
|
|
|
52758
52585
|
|
|
52586
|
+
/**
|
|
52587
|
+
* optional TaskInputSourceMetrics input_source = 4;
|
|
52588
|
+
* @return {?proto.clarifai.api.TaskInputSourceMetrics}
|
|
52589
|
+
*/
|
|
52590
|
+
proto.clarifai.api.TaskMetrics.prototype.getInputSource = function() {
|
|
52591
|
+
return /** @type{?proto.clarifai.api.TaskInputSourceMetrics} */ (
|
|
52592
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.TaskInputSourceMetrics, 4));
|
|
52593
|
+
};
|
|
52594
|
+
|
|
52595
|
+
|
|
52596
|
+
/**
|
|
52597
|
+
* @param {?proto.clarifai.api.TaskInputSourceMetrics|undefined} value
|
|
52598
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
52599
|
+
*/
|
|
52600
|
+
proto.clarifai.api.TaskMetrics.prototype.setInputSource = function(value) {
|
|
52601
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
52602
|
+
};
|
|
52603
|
+
|
|
52604
|
+
|
|
52605
|
+
/**
|
|
52606
|
+
* Clears the message field making it undefined.
|
|
52607
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
52608
|
+
*/
|
|
52609
|
+
proto.clarifai.api.TaskMetrics.prototype.clearInputSource = function() {
|
|
52610
|
+
return this.setInputSource(undefined);
|
|
52611
|
+
};
|
|
52612
|
+
|
|
52613
|
+
|
|
52614
|
+
/**
|
|
52615
|
+
* Returns whether this field is set.
|
|
52616
|
+
* @return {boolean}
|
|
52617
|
+
*/
|
|
52618
|
+
proto.clarifai.api.TaskMetrics.prototype.hasInputSource = function() {
|
|
52619
|
+
return jspb.Message.getField(this, 4) != null;
|
|
52620
|
+
};
|
|
52621
|
+
|
|
52622
|
+
|
|
52759
52623
|
|
|
52760
52624
|
|
|
52761
52625
|
|
|
@@ -53079,6 +52943,136 @@ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = funct
|
|
|
53079
52943
|
|
|
53080
52944
|
|
|
53081
52945
|
|
|
52946
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
52947
|
+
/**
|
|
52948
|
+
* Creates an object representation of this proto.
|
|
52949
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
52950
|
+
* Optional fields that are not set will be set to undefined.
|
|
52951
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
52952
|
+
* For the list of reserved names please see:
|
|
52953
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
52954
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
52955
|
+
* JSPB instance for transitional soy proto support:
|
|
52956
|
+
* http://goto/soy-param-migration
|
|
52957
|
+
* @return {!Object}
|
|
52958
|
+
*/
|
|
52959
|
+
proto.clarifai.api.TaskInputSourceMetrics.prototype.toObject = function(opt_includeInstance) {
|
|
52960
|
+
return proto.clarifai.api.TaskInputSourceMetrics.toObject(opt_includeInstance, this);
|
|
52961
|
+
};
|
|
52962
|
+
|
|
52963
|
+
|
|
52964
|
+
/**
|
|
52965
|
+
* Static version of the {@see toObject} method.
|
|
52966
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
52967
|
+
* the JSPB instance for transitional soy proto support:
|
|
52968
|
+
* http://goto/soy-param-migration
|
|
52969
|
+
* @param {!proto.clarifai.api.TaskInputSourceMetrics} msg The msg instance to transform.
|
|
52970
|
+
* @return {!Object}
|
|
52971
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
52972
|
+
*/
|
|
52973
|
+
proto.clarifai.api.TaskInputSourceMetrics.toObject = function(includeInstance, msg) {
|
|
52974
|
+
var f, obj = {
|
|
52975
|
+
inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
52976
|
+
};
|
|
52977
|
+
|
|
52978
|
+
if (includeInstance) {
|
|
52979
|
+
obj.$jspbMessageInstance = msg;
|
|
52980
|
+
}
|
|
52981
|
+
return obj;
|
|
52982
|
+
};
|
|
52983
|
+
}
|
|
52984
|
+
|
|
52985
|
+
|
|
52986
|
+
/**
|
|
52987
|
+
* Deserializes binary data (in protobuf wire format).
|
|
52988
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
52989
|
+
* @return {!proto.clarifai.api.TaskInputSourceMetrics}
|
|
52990
|
+
*/
|
|
52991
|
+
proto.clarifai.api.TaskInputSourceMetrics.deserializeBinary = function(bytes) {
|
|
52992
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
52993
|
+
var msg = new proto.clarifai.api.TaskInputSourceMetrics;
|
|
52994
|
+
return proto.clarifai.api.TaskInputSourceMetrics.deserializeBinaryFromReader(msg, reader);
|
|
52995
|
+
};
|
|
52996
|
+
|
|
52997
|
+
|
|
52998
|
+
/**
|
|
52999
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53000
|
+
* given reader into the given message object.
|
|
53001
|
+
* @param {!proto.clarifai.api.TaskInputSourceMetrics} msg The message object to deserialize into.
|
|
53002
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53003
|
+
* @return {!proto.clarifai.api.TaskInputSourceMetrics}
|
|
53004
|
+
*/
|
|
53005
|
+
proto.clarifai.api.TaskInputSourceMetrics.deserializeBinaryFromReader = function(msg, reader) {
|
|
53006
|
+
while (reader.nextField()) {
|
|
53007
|
+
if (reader.isEndGroup()) {
|
|
53008
|
+
break;
|
|
53009
|
+
}
|
|
53010
|
+
var field = reader.getFieldNumber();
|
|
53011
|
+
switch (field) {
|
|
53012
|
+
case 1:
|
|
53013
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
53014
|
+
msg.setInputsCountEstimated(value);
|
|
53015
|
+
break;
|
|
53016
|
+
default:
|
|
53017
|
+
reader.skipField();
|
|
53018
|
+
break;
|
|
53019
|
+
}
|
|
53020
|
+
}
|
|
53021
|
+
return msg;
|
|
53022
|
+
};
|
|
53023
|
+
|
|
53024
|
+
|
|
53025
|
+
/**
|
|
53026
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53027
|
+
* @return {!Uint8Array}
|
|
53028
|
+
*/
|
|
53029
|
+
proto.clarifai.api.TaskInputSourceMetrics.prototype.serializeBinary = function() {
|
|
53030
|
+
var writer = new jspb.BinaryWriter();
|
|
53031
|
+
proto.clarifai.api.TaskInputSourceMetrics.serializeBinaryToWriter(this, writer);
|
|
53032
|
+
return writer.getResultBuffer();
|
|
53033
|
+
};
|
|
53034
|
+
|
|
53035
|
+
|
|
53036
|
+
/**
|
|
53037
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53038
|
+
* format), writing to the given BinaryWriter.
|
|
53039
|
+
* @param {!proto.clarifai.api.TaskInputSourceMetrics} message
|
|
53040
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53041
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53042
|
+
*/
|
|
53043
|
+
proto.clarifai.api.TaskInputSourceMetrics.serializeBinaryToWriter = function(message, writer) {
|
|
53044
|
+
var f = undefined;
|
|
53045
|
+
f = message.getInputsCountEstimated();
|
|
53046
|
+
if (f !== 0) {
|
|
53047
|
+
writer.writeUint64(
|
|
53048
|
+
1,
|
|
53049
|
+
f
|
|
53050
|
+
);
|
|
53051
|
+
}
|
|
53052
|
+
};
|
|
53053
|
+
|
|
53054
|
+
|
|
53055
|
+
/**
|
|
53056
|
+
* optional uint64 inputs_count_estimated = 1;
|
|
53057
|
+
* @return {number}
|
|
53058
|
+
*/
|
|
53059
|
+
proto.clarifai.api.TaskInputSourceMetrics.prototype.getInputsCountEstimated = function() {
|
|
53060
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
53061
|
+
};
|
|
53062
|
+
|
|
53063
|
+
|
|
53064
|
+
/**
|
|
53065
|
+
* @param {number} value
|
|
53066
|
+
* @return {!proto.clarifai.api.TaskInputSourceMetrics} returns this
|
|
53067
|
+
*/
|
|
53068
|
+
proto.clarifai.api.TaskInputSourceMetrics.prototype.setInputsCountEstimated = function(value) {
|
|
53069
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
53070
|
+
};
|
|
53071
|
+
|
|
53072
|
+
|
|
53073
|
+
|
|
53074
|
+
|
|
53075
|
+
|
|
53082
53076
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53083
53077
|
/**
|
|
53084
53078
|
* Creates an object representation of this proto.
|
|
@@ -65830,7 +65824,8 @@ proto.clarifai.api.Runner.toObject = function(includeInstance, msg) {
|
|
|
65830
65824
|
labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
65831
65825
|
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
65832
65826
|
nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
|
|
65833
|
-
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
|
|
65827
|
+
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
|
|
65828
|
+
numReplicas: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
|
65834
65829
|
};
|
|
65835
65830
|
|
|
65836
65831
|
if (includeInstance) {
|
|
@@ -65913,6 +65908,10 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
65913
65908
|
reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
65914
65909
|
msg.setComputeInfo(value);
|
|
65915
65910
|
break;
|
|
65911
|
+
case 11:
|
|
65912
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
65913
|
+
msg.setNumReplicas(value);
|
|
65914
|
+
break;
|
|
65916
65915
|
default:
|
|
65917
65916
|
reader.skipField();
|
|
65918
65917
|
break;
|
|
@@ -66018,6 +66017,13 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) {
|
|
|
66018
66017
|
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
|
|
66019
66018
|
);
|
|
66020
66019
|
}
|
|
66020
|
+
f = message.getNumReplicas();
|
|
66021
|
+
if (f !== 0) {
|
|
66022
|
+
writer.writeUint32(
|
|
66023
|
+
11,
|
|
66024
|
+
f
|
|
66025
|
+
);
|
|
66026
|
+
}
|
|
66021
66027
|
};
|
|
66022
66028
|
|
|
66023
66029
|
|
|
@@ -66334,6 +66340,24 @@ proto.clarifai.api.Runner.prototype.hasComputeInfo = function() {
|
|
|
66334
66340
|
};
|
|
66335
66341
|
|
|
66336
66342
|
|
|
66343
|
+
/**
|
|
66344
|
+
* optional uint32 num_replicas = 11;
|
|
66345
|
+
* @return {number}
|
|
66346
|
+
*/
|
|
66347
|
+
proto.clarifai.api.Runner.prototype.getNumReplicas = function() {
|
|
66348
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
66349
|
+
};
|
|
66350
|
+
|
|
66351
|
+
|
|
66352
|
+
/**
|
|
66353
|
+
* @param {number} value
|
|
66354
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
66355
|
+
*/
|
|
66356
|
+
proto.clarifai.api.Runner.prototype.setNumReplicas = function(value) {
|
|
66357
|
+
return jspb.Message.setProto3IntField(this, 11, value);
|
|
66358
|
+
};
|
|
66359
|
+
|
|
66360
|
+
|
|
66337
66361
|
|
|
66338
66362
|
/**
|
|
66339
66363
|
* List of repeated fields within this message type.
|
|
@@ -68425,32 +68449,6 @@ proto.clarifai.api.AutoscaleConfig.prototype.setEnablePacking = function(value)
|
|
|
68425
68449
|
*/
|
|
68426
68450
|
proto.clarifai.api.Deployment.repeatedFields_ = [4];
|
|
68427
68451
|
|
|
68428
|
-
/**
|
|
68429
|
-
* Oneof group definitions for this message. Each group defines the field
|
|
68430
|
-
* numbers belonging to that group. When of these fields' value is set, all
|
|
68431
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
|
68432
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
|
68433
|
-
* @private {!Array<!Array<number>>}
|
|
68434
|
-
* @const
|
|
68435
|
-
*/
|
|
68436
|
-
proto.clarifai.api.Deployment.oneofGroups_ = [[5,6]];
|
|
68437
|
-
|
|
68438
|
-
/**
|
|
68439
|
-
* @enum {number}
|
|
68440
|
-
*/
|
|
68441
|
-
proto.clarifai.api.Deployment.ObjectCase = {
|
|
68442
|
-
OBJECT_NOT_SET: 0,
|
|
68443
|
-
MODEL: 5,
|
|
68444
|
-
WORKFLOW: 6
|
|
68445
|
-
};
|
|
68446
|
-
|
|
68447
|
-
/**
|
|
68448
|
-
* @return {proto.clarifai.api.Deployment.ObjectCase}
|
|
68449
|
-
*/
|
|
68450
|
-
proto.clarifai.api.Deployment.prototype.getObjectCase = function() {
|
|
68451
|
-
return /** @type {proto.clarifai.api.Deployment.ObjectCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Deployment.oneofGroups_[0]));
|
|
68452
|
-
};
|
|
68453
|
-
|
|
68454
68452
|
|
|
68455
68453
|
|
|
68456
68454
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -68487,11 +68485,13 @@ proto.clarifai.api.Deployment.toObject = function(includeInstance, msg) {
|
|
|
68487
68485
|
autoscaleConfig: (f = msg.getAutoscaleConfig()) && proto.clarifai.api.AutoscaleConfig.toObject(includeInstance, f),
|
|
68488
68486
|
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(),
|
|
68489
68487
|
proto.clarifai.api.Nodepool.toObject, includeInstance),
|
|
68490
|
-
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
68491
|
-
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
68492
68488
|
schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
68493
68489
|
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
68494
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
68490
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
68491
|
+
description: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
68492
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
68493
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
68494
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
68495
68495
|
};
|
|
68496
68496
|
|
|
68497
68497
|
if (includeInstance) {
|
|
@@ -68546,16 +68546,6 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function(msg, reader
|
|
|
68546
68546
|
reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
68547
68547
|
msg.addNodepools(value);
|
|
68548
68548
|
break;
|
|
68549
|
-
case 5:
|
|
68550
|
-
var value = new proto.clarifai.api.Model;
|
|
68551
|
-
reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
68552
|
-
msg.setModel(value);
|
|
68553
|
-
break;
|
|
68554
|
-
case 6:
|
|
68555
|
-
var value = new proto.clarifai.api.Workflow;
|
|
68556
|
-
reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
68557
|
-
msg.setWorkflow(value);
|
|
68558
|
-
break;
|
|
68559
68549
|
case 7:
|
|
68560
68550
|
var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
|
|
68561
68551
|
msg.setSchedulingChoice(value);
|
|
@@ -68570,6 +68560,25 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function(msg, reader
|
|
|
68570
68560
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
68571
68561
|
msg.setMetadata(value);
|
|
68572
68562
|
break;
|
|
68563
|
+
case 10:
|
|
68564
|
+
var value = /** @type {string} */ (reader.readString());
|
|
68565
|
+
msg.setDescription(value);
|
|
68566
|
+
break;
|
|
68567
|
+
case 11:
|
|
68568
|
+
var value = new proto.clarifai.api.Worker;
|
|
68569
|
+
reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
68570
|
+
msg.setWorker(value);
|
|
68571
|
+
break;
|
|
68572
|
+
case 12:
|
|
68573
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
68574
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
68575
|
+
msg.setCreatedAt(value);
|
|
68576
|
+
break;
|
|
68577
|
+
case 13:
|
|
68578
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
68579
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
68580
|
+
msg.setModifiedAt(value);
|
|
68581
|
+
break;
|
|
68573
68582
|
default:
|
|
68574
68583
|
reader.skipField();
|
|
68575
68584
|
break;
|
|
@@ -68629,22 +68638,6 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function(message, writer
|
|
|
68629
68638
|
proto.clarifai.api.Nodepool.serializeBinaryToWriter
|
|
68630
68639
|
);
|
|
68631
68640
|
}
|
|
68632
|
-
f = message.getModel();
|
|
68633
|
-
if (f != null) {
|
|
68634
|
-
writer.writeMessage(
|
|
68635
|
-
5,
|
|
68636
|
-
f,
|
|
68637
|
-
proto.clarifai.api.Model.serializeBinaryToWriter
|
|
68638
|
-
);
|
|
68639
|
-
}
|
|
68640
|
-
f = message.getWorkflow();
|
|
68641
|
-
if (f != null) {
|
|
68642
|
-
writer.writeMessage(
|
|
68643
|
-
6,
|
|
68644
|
-
f,
|
|
68645
|
-
proto.clarifai.api.Workflow.serializeBinaryToWriter
|
|
68646
|
-
);
|
|
68647
|
-
}
|
|
68648
68641
|
f = message.getSchedulingChoice();
|
|
68649
68642
|
if (f !== 0.0) {
|
|
68650
68643
|
writer.writeEnum(
|
|
@@ -68668,6 +68661,37 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function(message, writer
|
|
|
68668
68661
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
68669
68662
|
);
|
|
68670
68663
|
}
|
|
68664
|
+
f = message.getDescription();
|
|
68665
|
+
if (f.length > 0) {
|
|
68666
|
+
writer.writeString(
|
|
68667
|
+
10,
|
|
68668
|
+
f
|
|
68669
|
+
);
|
|
68670
|
+
}
|
|
68671
|
+
f = message.getWorker();
|
|
68672
|
+
if (f != null) {
|
|
68673
|
+
writer.writeMessage(
|
|
68674
|
+
11,
|
|
68675
|
+
f,
|
|
68676
|
+
proto.clarifai.api.Worker.serializeBinaryToWriter
|
|
68677
|
+
);
|
|
68678
|
+
}
|
|
68679
|
+
f = message.getCreatedAt();
|
|
68680
|
+
if (f != null) {
|
|
68681
|
+
writer.writeMessage(
|
|
68682
|
+
12,
|
|
68683
|
+
f,
|
|
68684
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
68685
|
+
);
|
|
68686
|
+
}
|
|
68687
|
+
f = message.getModifiedAt();
|
|
68688
|
+
if (f != null) {
|
|
68689
|
+
writer.writeMessage(
|
|
68690
|
+
13,
|
|
68691
|
+
f,
|
|
68692
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
68693
|
+
);
|
|
68694
|
+
}
|
|
68671
68695
|
};
|
|
68672
68696
|
|
|
68673
68697
|
|
|
@@ -68798,21 +68822,39 @@ proto.clarifai.api.Deployment.prototype.clearNodepoolsList = function() {
|
|
|
68798
68822
|
|
|
68799
68823
|
|
|
68800
68824
|
/**
|
|
68801
|
-
* optional
|
|
68802
|
-
* @return {
|
|
68825
|
+
* optional SchedulingChoice scheduling_choice = 7;
|
|
68826
|
+
* @return {!proto.clarifai.api.Deployment.SchedulingChoice}
|
|
68803
68827
|
*/
|
|
68804
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68805
|
-
return /** @type{
|
|
68806
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 5));
|
|
68828
|
+
proto.clarifai.api.Deployment.prototype.getSchedulingChoice = function() {
|
|
68829
|
+
return /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
68807
68830
|
};
|
|
68808
68831
|
|
|
68809
68832
|
|
|
68810
68833
|
/**
|
|
68811
|
-
* @param {
|
|
68834
|
+
* @param {!proto.clarifai.api.Deployment.SchedulingChoice} value
|
|
68835
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
68836
|
+
*/
|
|
68837
|
+
proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function(value) {
|
|
68838
|
+
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
68839
|
+
};
|
|
68840
|
+
|
|
68841
|
+
|
|
68842
|
+
/**
|
|
68843
|
+
* optional Visibility visibility = 8;
|
|
68844
|
+
* @return {?proto.clarifai.api.Visibility}
|
|
68845
|
+
*/
|
|
68846
|
+
proto.clarifai.api.Deployment.prototype.getVisibility = function() {
|
|
68847
|
+
return /** @type{?proto.clarifai.api.Visibility} */ (
|
|
68848
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 8));
|
|
68849
|
+
};
|
|
68850
|
+
|
|
68851
|
+
|
|
68852
|
+
/**
|
|
68853
|
+
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
68812
68854
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
68813
68855
|
*/
|
|
68814
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68815
|
-
return jspb.Message.
|
|
68856
|
+
proto.clarifai.api.Deployment.prototype.setVisibility = function(value) {
|
|
68857
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
68816
68858
|
};
|
|
68817
68859
|
|
|
68818
68860
|
|
|
@@ -68820,8 +68862,8 @@ proto.clarifai.api.Deployment.prototype.setModel = function(value) {
|
|
|
68820
68862
|
* Clears the message field making it undefined.
|
|
68821
68863
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
68822
68864
|
*/
|
|
68823
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68824
|
-
return this.
|
|
68865
|
+
proto.clarifai.api.Deployment.prototype.clearVisibility = function() {
|
|
68866
|
+
return this.setVisibility(undefined);
|
|
68825
68867
|
};
|
|
68826
68868
|
|
|
68827
68869
|
|
|
@@ -68829,27 +68871,27 @@ proto.clarifai.api.Deployment.prototype.clearModel = function() {
|
|
|
68829
68871
|
* Returns whether this field is set.
|
|
68830
68872
|
* @return {boolean}
|
|
68831
68873
|
*/
|
|
68832
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68833
|
-
return jspb.Message.getField(this,
|
|
68874
|
+
proto.clarifai.api.Deployment.prototype.hasVisibility = function() {
|
|
68875
|
+
return jspb.Message.getField(this, 8) != null;
|
|
68834
68876
|
};
|
|
68835
68877
|
|
|
68836
68878
|
|
|
68837
68879
|
/**
|
|
68838
|
-
* optional
|
|
68839
|
-
* @return {?proto.
|
|
68880
|
+
* optional google.protobuf.Struct metadata = 9;
|
|
68881
|
+
* @return {?proto.google.protobuf.Struct}
|
|
68840
68882
|
*/
|
|
68841
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68842
|
-
return /** @type{?proto.
|
|
68843
|
-
jspb.Message.getWrapperField(this,
|
|
68883
|
+
proto.clarifai.api.Deployment.prototype.getMetadata = function() {
|
|
68884
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
68885
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 9));
|
|
68844
68886
|
};
|
|
68845
68887
|
|
|
68846
68888
|
|
|
68847
68889
|
/**
|
|
68848
|
-
* @param {?proto.
|
|
68890
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
68849
68891
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
68850
68892
|
*/
|
|
68851
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68852
|
-
return jspb.Message.
|
|
68893
|
+
proto.clarifai.api.Deployment.prototype.setMetadata = function(value) {
|
|
68894
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
68853
68895
|
};
|
|
68854
68896
|
|
|
68855
68897
|
|
|
@@ -68857,8 +68899,8 @@ proto.clarifai.api.Deployment.prototype.setWorkflow = function(value) {
|
|
|
68857
68899
|
* Clears the message field making it undefined.
|
|
68858
68900
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
68859
68901
|
*/
|
|
68860
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68861
|
-
return this.
|
|
68902
|
+
proto.clarifai.api.Deployment.prototype.clearMetadata = function() {
|
|
68903
|
+
return this.setMetadata(undefined);
|
|
68862
68904
|
};
|
|
68863
68905
|
|
|
68864
68906
|
|
|
@@ -68866,45 +68908,45 @@ proto.clarifai.api.Deployment.prototype.clearWorkflow = function() {
|
|
|
68866
68908
|
* Returns whether this field is set.
|
|
68867
68909
|
* @return {boolean}
|
|
68868
68910
|
*/
|
|
68869
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68870
|
-
return jspb.Message.getField(this,
|
|
68911
|
+
proto.clarifai.api.Deployment.prototype.hasMetadata = function() {
|
|
68912
|
+
return jspb.Message.getField(this, 9) != null;
|
|
68871
68913
|
};
|
|
68872
68914
|
|
|
68873
68915
|
|
|
68874
68916
|
/**
|
|
68875
|
-
* optional
|
|
68876
|
-
* @return {
|
|
68917
|
+
* optional string description = 10;
|
|
68918
|
+
* @return {string}
|
|
68877
68919
|
*/
|
|
68878
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68879
|
-
return /** @type {
|
|
68920
|
+
proto.clarifai.api.Deployment.prototype.getDescription = function() {
|
|
68921
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
68880
68922
|
};
|
|
68881
68923
|
|
|
68882
68924
|
|
|
68883
68925
|
/**
|
|
68884
|
-
* @param {
|
|
68926
|
+
* @param {string} value
|
|
68885
68927
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
68886
68928
|
*/
|
|
68887
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68888
|
-
return jspb.Message.
|
|
68929
|
+
proto.clarifai.api.Deployment.prototype.setDescription = function(value) {
|
|
68930
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
68889
68931
|
};
|
|
68890
68932
|
|
|
68891
68933
|
|
|
68892
68934
|
/**
|
|
68893
|
-
* optional
|
|
68894
|
-
* @return {?proto.clarifai.api.
|
|
68935
|
+
* optional Worker worker = 11;
|
|
68936
|
+
* @return {?proto.clarifai.api.Worker}
|
|
68895
68937
|
*/
|
|
68896
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68897
|
-
return /** @type{?proto.clarifai.api.
|
|
68898
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.
|
|
68938
|
+
proto.clarifai.api.Deployment.prototype.getWorker = function() {
|
|
68939
|
+
return /** @type{?proto.clarifai.api.Worker} */ (
|
|
68940
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 11));
|
|
68899
68941
|
};
|
|
68900
68942
|
|
|
68901
68943
|
|
|
68902
68944
|
/**
|
|
68903
|
-
* @param {?proto.clarifai.api.
|
|
68945
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
68904
68946
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
68905
68947
|
*/
|
|
68906
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68907
|
-
return jspb.Message.setWrapperField(this,
|
|
68948
|
+
proto.clarifai.api.Deployment.prototype.setWorker = function(value) {
|
|
68949
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
68908
68950
|
};
|
|
68909
68951
|
|
|
68910
68952
|
|
|
@@ -68912,8 +68954,8 @@ proto.clarifai.api.Deployment.prototype.setVisibility = function(value) {
|
|
|
68912
68954
|
* Clears the message field making it undefined.
|
|
68913
68955
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
68914
68956
|
*/
|
|
68915
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68916
|
-
return this.
|
|
68957
|
+
proto.clarifai.api.Deployment.prototype.clearWorker = function() {
|
|
68958
|
+
return this.setWorker(undefined);
|
|
68917
68959
|
};
|
|
68918
68960
|
|
|
68919
68961
|
|
|
@@ -68921,27 +68963,27 @@ proto.clarifai.api.Deployment.prototype.clearVisibility = function() {
|
|
|
68921
68963
|
* Returns whether this field is set.
|
|
68922
68964
|
* @return {boolean}
|
|
68923
68965
|
*/
|
|
68924
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68925
|
-
return jspb.Message.getField(this,
|
|
68966
|
+
proto.clarifai.api.Deployment.prototype.hasWorker = function() {
|
|
68967
|
+
return jspb.Message.getField(this, 11) != null;
|
|
68926
68968
|
};
|
|
68927
68969
|
|
|
68928
68970
|
|
|
68929
68971
|
/**
|
|
68930
|
-
* optional google.protobuf.
|
|
68931
|
-
* @return {?proto.google.protobuf.
|
|
68972
|
+
* optional google.protobuf.Timestamp created_at = 12;
|
|
68973
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
68932
68974
|
*/
|
|
68933
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68934
|
-
return /** @type{?proto.google.protobuf.
|
|
68935
|
-
jspb.Message.getWrapperField(this,
|
|
68975
|
+
proto.clarifai.api.Deployment.prototype.getCreatedAt = function() {
|
|
68976
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
68977
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
|
|
68936
68978
|
};
|
|
68937
68979
|
|
|
68938
68980
|
|
|
68939
68981
|
/**
|
|
68940
|
-
* @param {?proto.google.protobuf.
|
|
68982
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
68941
68983
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
68942
68984
|
*/
|
|
68943
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68944
|
-
return jspb.Message.setWrapperField(this,
|
|
68985
|
+
proto.clarifai.api.Deployment.prototype.setCreatedAt = function(value) {
|
|
68986
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
68945
68987
|
};
|
|
68946
68988
|
|
|
68947
68989
|
|
|
@@ -68949,8 +68991,8 @@ proto.clarifai.api.Deployment.prototype.setMetadata = function(value) {
|
|
|
68949
68991
|
* Clears the message field making it undefined.
|
|
68950
68992
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
68951
68993
|
*/
|
|
68952
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68953
|
-
return this.
|
|
68994
|
+
proto.clarifai.api.Deployment.prototype.clearCreatedAt = function() {
|
|
68995
|
+
return this.setCreatedAt(undefined);
|
|
68954
68996
|
};
|
|
68955
68997
|
|
|
68956
68998
|
|
|
@@ -68958,8 +69000,45 @@ proto.clarifai.api.Deployment.prototype.clearMetadata = function() {
|
|
|
68958
69000
|
* Returns whether this field is set.
|
|
68959
69001
|
* @return {boolean}
|
|
68960
69002
|
*/
|
|
68961
|
-
proto.clarifai.api.Deployment.prototype.
|
|
68962
|
-
return jspb.Message.getField(this,
|
|
69003
|
+
proto.clarifai.api.Deployment.prototype.hasCreatedAt = function() {
|
|
69004
|
+
return jspb.Message.getField(this, 12) != null;
|
|
69005
|
+
};
|
|
69006
|
+
|
|
69007
|
+
|
|
69008
|
+
/**
|
|
69009
|
+
* optional google.protobuf.Timestamp modified_at = 13;
|
|
69010
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
69011
|
+
*/
|
|
69012
|
+
proto.clarifai.api.Deployment.prototype.getModifiedAt = function() {
|
|
69013
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
69014
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 13));
|
|
69015
|
+
};
|
|
69016
|
+
|
|
69017
|
+
|
|
69018
|
+
/**
|
|
69019
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
69020
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
69021
|
+
*/
|
|
69022
|
+
proto.clarifai.api.Deployment.prototype.setModifiedAt = function(value) {
|
|
69023
|
+
return jspb.Message.setWrapperField(this, 13, value);
|
|
69024
|
+
};
|
|
69025
|
+
|
|
69026
|
+
|
|
69027
|
+
/**
|
|
69028
|
+
* Clears the message field making it undefined.
|
|
69029
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
69030
|
+
*/
|
|
69031
|
+
proto.clarifai.api.Deployment.prototype.clearModifiedAt = function() {
|
|
69032
|
+
return this.setModifiedAt(undefined);
|
|
69033
|
+
};
|
|
69034
|
+
|
|
69035
|
+
|
|
69036
|
+
/**
|
|
69037
|
+
* Returns whether this field is set.
|
|
69038
|
+
* @return {boolean}
|
|
69039
|
+
*/
|
|
69040
|
+
proto.clarifai.api.Deployment.prototype.hasModifiedAt = function() {
|
|
69041
|
+
return jspb.Message.getField(this, 13) != null;
|
|
68963
69042
|
};
|
|
68964
69043
|
|
|
68965
69044
|
|