clarifai-web-grpc 10.8.6 → 10.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -240,7 +240,6 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
240
240
  goog.exportSymbol('proto.clarifai.api.Task', null, global);
241
241
  goog.exportSymbol('proto.clarifai.api.Task.TaskPriority', null, global);
242
242
  goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
243
- goog.exportSymbol('proto.clarifai.api.Task.WorkerType', null, global);
244
243
  goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
245
244
  goog.exportSymbol('proto.clarifai.api.TaskAssignment', null, global);
246
245
  goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
@@ -260,6 +259,7 @@ goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
260
259
  goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
261
260
  goog.exportSymbol('proto.clarifai.api.TaskWorker.StrategyInfoCase', null, global);
262
261
  goog.exportSymbol('proto.clarifai.api.TaskWorker.TaskWorkerStrategy', null, global);
262
+ goog.exportSymbol('proto.clarifai.api.TaskWorker.WorkerType', null, global);
263
263
  goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo', null, global);
264
264
  goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy', null, global);
265
265
  goog.exportSymbol('proto.clarifai.api.Text', null, global);
@@ -296,6 +296,11 @@ goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
296
296
  goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
297
297
  goog.exportSymbol('proto.clarifai.api.WorkflowState', null, global);
298
298
  goog.exportSymbol('proto.clarifai.api.WorkflowVersion', null, global);
299
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric', null, global);
300
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType', null, global);
301
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType', null, global);
302
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationTemplate', null, global);
303
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType', null, global);
299
304
  /**
300
305
  * Generated by JsPbCodeGenerator.
301
306
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4769,6 +4774,48 @@ if (goog.DEBUG && !COMPILED) {
4769
4774
  */
4770
4775
  proto.clarifai.api.AuditLogQuery.displayName = 'proto.clarifai.api.AuditLogQuery';
4771
4776
  }
4777
+ /**
4778
+ * Generated by JsPbCodeGenerator.
4779
+ * @param {Array=} opt_data Optional initial data array, typically from a
4780
+ * server response, or constructed directly in Javascript. The array is used
4781
+ * in place and becomes part of the constructed object. It is not cloned.
4782
+ * If no data is provided, the constructed object will be empty, but still
4783
+ * valid.
4784
+ * @extends {jspb.Message}
4785
+ * @constructor
4786
+ */
4787
+ proto.clarifai.api.WorkflowVersionEvaluationMetric = function(opt_data) {
4788
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4789
+ };
4790
+ goog.inherits(proto.clarifai.api.WorkflowVersionEvaluationMetric, jspb.Message);
4791
+ if (goog.DEBUG && !COMPILED) {
4792
+ /**
4793
+ * @public
4794
+ * @override
4795
+ */
4796
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationMetric';
4797
+ }
4798
+ /**
4799
+ * Generated by JsPbCodeGenerator.
4800
+ * @param {Array=} opt_data Optional initial data array, typically from a
4801
+ * server response, or constructed directly in Javascript. The array is used
4802
+ * in place and becomes part of the constructed object. It is not cloned.
4803
+ * If no data is provided, the constructed object will be empty, but still
4804
+ * valid.
4805
+ * @extends {jspb.Message}
4806
+ * @constructor
4807
+ */
4808
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate = function(opt_data) {
4809
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.WorkflowVersionEvaluationTemplate.repeatedFields_, null);
4810
+ };
4811
+ goog.inherits(proto.clarifai.api.WorkflowVersionEvaluationTemplate, jspb.Message);
4812
+ if (goog.DEBUG && !COMPILED) {
4813
+ /**
4814
+ * @public
4815
+ * @override
4816
+ */
4817
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationTemplate';
4818
+ }
4772
4819
 
4773
4820
 
4774
4821
 
@@ -9887,7 +9934,8 @@ proto.clarifai.api.Concept.toObject = function(includeInstance, msg) {
9887
9934
  userId: jspb.Message.getFieldWithDefault(msg, 10, ""),
9888
9935
  keypointInfo: (f = msg.getKeypointInfo()) && proto.clarifai.api.KeypointInfo.toObject(includeInstance, f),
9889
9936
  extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfo.toObject(includeInstance, f),
9890
- metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
9937
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
9938
+ image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
9891
9939
  };
9892
9940
 
9893
9941
  if (includeInstance) {
@@ -9981,6 +10029,11 @@ proto.clarifai.api.Concept.deserializeBinaryFromReader = function(msg, reader) {
9981
10029
  reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
9982
10030
  msg.setMetadata(value);
9983
10031
  break;
10032
+ case 22:
10033
+ var value = new proto.clarifai.api.Image;
10034
+ reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
10035
+ msg.setImage(value);
10036
+ break;
9984
10037
  default:
9985
10038
  reader.skipField();
9986
10039
  break;
@@ -10106,6 +10159,14 @@ proto.clarifai.api.Concept.serializeBinaryToWriter = function(message, writer) {
10106
10159
  google_protobuf_struct_pb.Struct.serializeBinaryToWriter
10107
10160
  );
10108
10161
  }
10162
+ f = message.getImage();
10163
+ if (f != null) {
10164
+ writer.writeMessage(
10165
+ 22,
10166
+ f,
10167
+ proto.clarifai.api.Image.serializeBinaryToWriter
10168
+ );
10169
+ }
10109
10170
  };
10110
10171
 
10111
10172
 
@@ -10438,6 +10499,43 @@ proto.clarifai.api.Concept.prototype.hasMetadata = function() {
10438
10499
  };
10439
10500
 
10440
10501
 
10502
+ /**
10503
+ * optional Image image = 22;
10504
+ * @return {?proto.clarifai.api.Image}
10505
+ */
10506
+ proto.clarifai.api.Concept.prototype.getImage = function() {
10507
+ return /** @type{?proto.clarifai.api.Image} */ (
10508
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 22));
10509
+ };
10510
+
10511
+
10512
+ /**
10513
+ * @param {?proto.clarifai.api.Image|undefined} value
10514
+ * @return {!proto.clarifai.api.Concept} returns this
10515
+ */
10516
+ proto.clarifai.api.Concept.prototype.setImage = function(value) {
10517
+ return jspb.Message.setWrapperField(this, 22, value);
10518
+ };
10519
+
10520
+
10521
+ /**
10522
+ * Clears the message field making it undefined.
10523
+ * @return {!proto.clarifai.api.Concept} returns this
10524
+ */
10525
+ proto.clarifai.api.Concept.prototype.clearImage = function() {
10526
+ return this.setImage(undefined);
10527
+ };
10528
+
10529
+
10530
+ /**
10531
+ * Returns whether this field is set.
10532
+ * @return {boolean}
10533
+ */
10534
+ proto.clarifai.api.Concept.prototype.hasImage = function() {
10535
+ return jspb.Message.getField(this, 22) != null;
10536
+ };
10537
+
10538
+
10441
10539
 
10442
10540
  /**
10443
10541
  * List of repeated fields within this message type.
@@ -48315,7 +48413,6 @@ proto.clarifai.api.Task.toObject = function(includeInstance, msg) {
48315
48413
  type: jspb.Message.getFieldWithDefault(msg, 4, 0),
48316
48414
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
48317
48415
  worker: (f = msg.getWorker()) && proto.clarifai.api.TaskWorker.toObject(includeInstance, f),
48318
- workerType: jspb.Message.getFieldWithDefault(msg, 22, 0),
48319
48416
  conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
48320
48417
  inputSource: (f = msg.getInputSource()) && proto.clarifai.api.TaskInputSource.toObject(includeInstance, f),
48321
48418
  sampleMs: jspb.Message.getFieldWithDefault(msg, 9, 0),
@@ -48396,10 +48493,6 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) {
48396
48493
  reader.readMessage(value,proto.clarifai.api.TaskWorker.deserializeBinaryFromReader);
48397
48494
  msg.setWorker(value);
48398
48495
  break;
48399
- case 22:
48400
- var value = /** @type {!proto.clarifai.api.Task.WorkerType} */ (reader.readEnum());
48401
- msg.setWorkerType(value);
48402
- break;
48403
48496
  case 7:
48404
48497
  var value = /** @type {string} */ (reader.readString());
48405
48498
  msg.addConceptIds(value);
@@ -48546,13 +48639,6 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
48546
48639
  proto.clarifai.api.TaskWorker.serializeBinaryToWriter
48547
48640
  );
48548
48641
  }
48549
- f = message.getWorkerType();
48550
- if (f !== 0.0) {
48551
- writer.writeEnum(
48552
- 22,
48553
- f
48554
- );
48555
- }
48556
48642
  f = message.getConceptIdsList();
48557
48643
  if (f.length > 0) {
48558
48644
  writer.writeRepeatedString(
@@ -48676,15 +48762,6 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
48676
48762
  };
48677
48763
 
48678
48764
 
48679
- /**
48680
- * @enum {number}
48681
- */
48682
- proto.clarifai.api.Task.WorkerType = {
48683
- WORKER_TYPE_NOT_SET: 0,
48684
- WORKER_HUMAN: 1,
48685
- WORKER_AUTO: 2
48686
- };
48687
-
48688
48765
  /**
48689
48766
  * @enum {number}
48690
48767
  */
@@ -48870,24 +48947,6 @@ proto.clarifai.api.Task.prototype.hasWorker = function() {
48870
48947
  };
48871
48948
 
48872
48949
 
48873
- /**
48874
- * optional WorkerType worker_type = 22;
48875
- * @return {!proto.clarifai.api.Task.WorkerType}
48876
- */
48877
- proto.clarifai.api.Task.prototype.getWorkerType = function() {
48878
- return /** @type {!proto.clarifai.api.Task.WorkerType} */ (jspb.Message.getFieldWithDefault(this, 22, 0));
48879
- };
48880
-
48881
-
48882
- /**
48883
- * @param {!proto.clarifai.api.Task.WorkerType} value
48884
- * @return {!proto.clarifai.api.Task} returns this
48885
- */
48886
- proto.clarifai.api.Task.prototype.setWorkerType = function(value) {
48887
- return jspb.Message.setProto3EnumField(this, 22, value);
48888
- };
48889
-
48890
-
48891
48950
  /**
48892
48951
  * repeated string concept_ids = 7;
48893
48952
  * @return {!Array<string>}
@@ -49634,7 +49693,8 @@ proto.clarifai.api.TaskWorker.toObject = function(includeInstance, msg) {
49634
49693
  proto.clarifai.api.User.toObject, includeInstance),
49635
49694
  partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f),
49636
49695
  workersList: jspb.Message.toObjectList(msg.getWorkersList(),
49637
- proto.clarifai.api.Worker.toObject, includeInstance)
49696
+ proto.clarifai.api.Worker.toObject, includeInstance),
49697
+ type: jspb.Message.getFieldWithDefault(msg, 8, 0)
49638
49698
  };
49639
49699
 
49640
49700
  if (includeInstance) {
@@ -49694,6 +49754,10 @@ proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function(msg, reader
49694
49754
  reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
49695
49755
  msg.addWorkers(value);
49696
49756
  break;
49757
+ case 8:
49758
+ var value = /** @type {!proto.clarifai.api.TaskWorker.WorkerType} */ (reader.readEnum());
49759
+ msg.setType(value);
49760
+ break;
49697
49761
  default:
49698
49762
  reader.skipField();
49699
49763
  break;
@@ -49761,6 +49825,13 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer
49761
49825
  proto.clarifai.api.Worker.serializeBinaryToWriter
49762
49826
  );
49763
49827
  }
49828
+ f = message.getType();
49829
+ if (f !== 0.0) {
49830
+ writer.writeEnum(
49831
+ 8,
49832
+ f
49833
+ );
49834
+ }
49764
49835
  };
49765
49836
 
49766
49837
 
@@ -49774,6 +49845,15 @@ proto.clarifai.api.TaskWorker.TaskWorkerStrategy = {
49774
49845
  DYNAMIC: 4
49775
49846
  };
49776
49847
 
49848
+ /**
49849
+ * @enum {number}
49850
+ */
49851
+ proto.clarifai.api.TaskWorker.WorkerType = {
49852
+ WORKER_TYPE_NOT_SET: 0,
49853
+ WORKER_HUMAN: 1,
49854
+ WORKER_AUTO: 2
49855
+ };
49856
+
49777
49857
  /**
49778
49858
  * optional TaskWorkerStrategy strategy = 1;
49779
49859
  * @return {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy}
@@ -49942,6 +50022,24 @@ proto.clarifai.api.TaskWorker.prototype.clearWorkersList = function() {
49942
50022
  };
49943
50023
 
49944
50024
 
50025
+ /**
50026
+ * optional WorkerType type = 8;
50027
+ * @return {!proto.clarifai.api.TaskWorker.WorkerType}
50028
+ */
50029
+ proto.clarifai.api.TaskWorker.prototype.getType = function() {
50030
+ return /** @type {!proto.clarifai.api.TaskWorker.WorkerType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
50031
+ };
50032
+
50033
+
50034
+ /**
50035
+ * @param {!proto.clarifai.api.TaskWorker.WorkerType} value
50036
+ * @return {!proto.clarifai.api.TaskWorker} returns this
50037
+ */
50038
+ proto.clarifai.api.TaskWorker.prototype.setType = function(value) {
50039
+ return jspb.Message.setProto3EnumField(this, 8, value);
50040
+ };
50041
+
50042
+
49945
50043
 
49946
50044
 
49947
50045
 
@@ -50741,7 +50839,8 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.toObject = function(op
50741
50839
  */
50742
50840
  proto.clarifai.api.TaskReviewManualStrategyInfo.toObject = function(includeInstance, msg) {
50743
50841
  var f, obj = {
50744
- samplePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0)
50842
+ samplePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
50843
+ approvalThreshold: jspb.Message.getFieldWithDefault(msg, 2, 0)
50745
50844
  };
50746
50845
 
50747
50846
  if (includeInstance) {
@@ -50782,6 +50881,10 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinaryFromReader = fu
50782
50881
  var value = /** @type {number} */ (reader.readFloat());
50783
50882
  msg.setSamplePercentage(value);
50784
50883
  break;
50884
+ case 2:
50885
+ var value = /** @type {number} */ (reader.readInt32());
50886
+ msg.setApprovalThreshold(value);
50887
+ break;
50785
50888
  default:
50786
50889
  reader.skipField();
50787
50890
  break;
@@ -50818,6 +50921,13 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.serializeBinaryToWriter = functi
50818
50921
  f
50819
50922
  );
50820
50923
  }
50924
+ f = message.getApprovalThreshold();
50925
+ if (f !== 0) {
50926
+ writer.writeInt32(
50927
+ 2,
50928
+ f
50929
+ );
50930
+ }
50821
50931
  };
50822
50932
 
50823
50933
 
@@ -50839,6 +50949,24 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.setSamplePercentage =
50839
50949
  };
50840
50950
 
50841
50951
 
50952
+ /**
50953
+ * optional int32 approval_threshold = 2;
50954
+ * @return {number}
50955
+ */
50956
+ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.getApprovalThreshold = function() {
50957
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
50958
+ };
50959
+
50960
+
50961
+ /**
50962
+ * @param {number} value
50963
+ * @return {!proto.clarifai.api.TaskReviewManualStrategyInfo} returns this
50964
+ */
50965
+ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.setApprovalThreshold = function(value) {
50966
+ return jspb.Message.setProto3IntField(this, 2, value);
50967
+ };
50968
+
50969
+
50842
50970
 
50843
50971
 
50844
50972
 
@@ -70547,6 +70675,553 @@ proto.clarifai.api.AuditLogQuery.prototype.clearSourceIpsList = function() {
70547
70675
  };
70548
70676
 
70549
70677
 
70678
+
70679
+
70680
+
70681
+ if (jspb.Message.GENERATE_TO_OBJECT) {
70682
+ /**
70683
+ * Creates an object representation of this proto.
70684
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
70685
+ * Optional fields that are not set will be set to undefined.
70686
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
70687
+ * For the list of reserved names please see:
70688
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
70689
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
70690
+ * JSPB instance for transitional soy proto support:
70691
+ * http://goto/soy-param-migration
70692
+ * @return {!Object}
70693
+ */
70694
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.toObject = function(opt_includeInstance) {
70695
+ return proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject(opt_includeInstance, this);
70696
+ };
70697
+
70698
+
70699
+ /**
70700
+ * Static version of the {@see toObject} method.
70701
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70702
+ * the JSPB instance for transitional soy proto support:
70703
+ * http://goto/soy-param-migration
70704
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} msg The msg instance to transform.
70705
+ * @return {!Object}
70706
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70707
+ */
70708
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject = function(includeInstance, msg) {
70709
+ var f, obj = {
70710
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
70711
+ summary: jspb.Message.getFieldWithDefault(msg, 2, ""),
70712
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
70713
+ dataType: jspb.Message.getFieldWithDefault(msg, 4, 0),
70714
+ visualisationType: jspb.Message.getFieldWithDefault(msg, 5, 0)
70715
+ };
70716
+
70717
+ if (includeInstance) {
70718
+ obj.$jspbMessageInstance = msg;
70719
+ }
70720
+ return obj;
70721
+ };
70722
+ }
70723
+
70724
+
70725
+ /**
70726
+ * Deserializes binary data (in protobuf wire format).
70727
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
70728
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
70729
+ */
70730
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinary = function(bytes) {
70731
+ var reader = new jspb.BinaryReader(bytes);
70732
+ var msg = new proto.clarifai.api.WorkflowVersionEvaluationMetric;
70733
+ return proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader(msg, reader);
70734
+ };
70735
+
70736
+
70737
+ /**
70738
+ * Deserializes binary data (in protobuf wire format) from the
70739
+ * given reader into the given message object.
70740
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} msg The message object to deserialize into.
70741
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
70742
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
70743
+ */
70744
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader = function(msg, reader) {
70745
+ while (reader.nextField()) {
70746
+ if (reader.isEndGroup()) {
70747
+ break;
70748
+ }
70749
+ var field = reader.getFieldNumber();
70750
+ switch (field) {
70751
+ case 1:
70752
+ var value = /** @type {string} */ (reader.readString());
70753
+ msg.setId(value);
70754
+ break;
70755
+ case 2:
70756
+ var value = /** @type {string} */ (reader.readString());
70757
+ msg.setSummary(value);
70758
+ break;
70759
+ case 3:
70760
+ var value = /** @type {string} */ (reader.readString());
70761
+ msg.setDescription(value);
70762
+ break;
70763
+ case 4:
70764
+ var value = /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} */ (reader.readEnum());
70765
+ msg.setDataType(value);
70766
+ break;
70767
+ case 5:
70768
+ var value = /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} */ (reader.readEnum());
70769
+ msg.setVisualisationType(value);
70770
+ break;
70771
+ default:
70772
+ reader.skipField();
70773
+ break;
70774
+ }
70775
+ }
70776
+ return msg;
70777
+ };
70778
+
70779
+
70780
+ /**
70781
+ * Serializes the message to binary data (in protobuf wire format).
70782
+ * @return {!Uint8Array}
70783
+ */
70784
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.serializeBinary = function() {
70785
+ var writer = new jspb.BinaryWriter();
70786
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter(this, writer);
70787
+ return writer.getResultBuffer();
70788
+ };
70789
+
70790
+
70791
+ /**
70792
+ * Serializes the given message to binary data (in protobuf wire
70793
+ * format), writing to the given BinaryWriter.
70794
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} message
70795
+ * @param {!jspb.BinaryWriter} writer
70796
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70797
+ */
70798
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter = function(message, writer) {
70799
+ var f = undefined;
70800
+ f = message.getId();
70801
+ if (f.length > 0) {
70802
+ writer.writeString(
70803
+ 1,
70804
+ f
70805
+ );
70806
+ }
70807
+ f = message.getSummary();
70808
+ if (f.length > 0) {
70809
+ writer.writeString(
70810
+ 2,
70811
+ f
70812
+ );
70813
+ }
70814
+ f = message.getDescription();
70815
+ if (f.length > 0) {
70816
+ writer.writeString(
70817
+ 3,
70818
+ f
70819
+ );
70820
+ }
70821
+ f = message.getDataType();
70822
+ if (f !== 0.0) {
70823
+ writer.writeEnum(
70824
+ 4,
70825
+ f
70826
+ );
70827
+ }
70828
+ f = message.getVisualisationType();
70829
+ if (f !== 0.0) {
70830
+ writer.writeEnum(
70831
+ 5,
70832
+ f
70833
+ );
70834
+ }
70835
+ };
70836
+
70837
+
70838
+ /**
70839
+ * @enum {number}
70840
+ */
70841
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType = {
70842
+ DATA_TYPE_NOT_SET: 0,
70843
+ FLOAT: 1
70844
+ };
70845
+
70846
+ /**
70847
+ * @enum {number}
70848
+ */
70849
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType = {
70850
+ VISUALIZATION_TYPE_NOT_SET: 0,
70851
+ CONFUSION_MATRIX: 1,
70852
+ PRECISION_RECALL_CURVE: 2,
70853
+ ROC_AUC_CURVE: 3
70854
+ };
70855
+
70856
+ /**
70857
+ * optional string id = 1;
70858
+ * @return {string}
70859
+ */
70860
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getId = function() {
70861
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
70862
+ };
70863
+
70864
+
70865
+ /**
70866
+ * @param {string} value
70867
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
70868
+ */
70869
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setId = function(value) {
70870
+ return jspb.Message.setProto3StringField(this, 1, value);
70871
+ };
70872
+
70873
+
70874
+ /**
70875
+ * optional string summary = 2;
70876
+ * @return {string}
70877
+ */
70878
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getSummary = function() {
70879
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
70880
+ };
70881
+
70882
+
70883
+ /**
70884
+ * @param {string} value
70885
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
70886
+ */
70887
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setSummary = function(value) {
70888
+ return jspb.Message.setProto3StringField(this, 2, value);
70889
+ };
70890
+
70891
+
70892
+ /**
70893
+ * optional string description = 3;
70894
+ * @return {string}
70895
+ */
70896
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getDescription = function() {
70897
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
70898
+ };
70899
+
70900
+
70901
+ /**
70902
+ * @param {string} value
70903
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
70904
+ */
70905
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setDescription = function(value) {
70906
+ return jspb.Message.setProto3StringField(this, 3, value);
70907
+ };
70908
+
70909
+
70910
+ /**
70911
+ * optional DataType data_type = 4;
70912
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType}
70913
+ */
70914
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getDataType = function() {
70915
+ return /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
70916
+ };
70917
+
70918
+
70919
+ /**
70920
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} value
70921
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
70922
+ */
70923
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setDataType = function(value) {
70924
+ return jspb.Message.setProto3EnumField(this, 4, value);
70925
+ };
70926
+
70927
+
70928
+ /**
70929
+ * optional VisualisationType visualisation_type = 5;
70930
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType}
70931
+ */
70932
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getVisualisationType = function() {
70933
+ return /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
70934
+ };
70935
+
70936
+
70937
+ /**
70938
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} value
70939
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
70940
+ */
70941
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setVisualisationType = function(value) {
70942
+ return jspb.Message.setProto3EnumField(this, 5, value);
70943
+ };
70944
+
70945
+
70946
+
70947
+ /**
70948
+ * List of repeated fields within this message type.
70949
+ * @private {!Array<number>}
70950
+ * @const
70951
+ */
70952
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.repeatedFields_ = [3,4];
70953
+
70954
+
70955
+
70956
+ if (jspb.Message.GENERATE_TO_OBJECT) {
70957
+ /**
70958
+ * Creates an object representation of this proto.
70959
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
70960
+ * Optional fields that are not set will be set to undefined.
70961
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
70962
+ * For the list of reserved names please see:
70963
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
70964
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
70965
+ * JSPB instance for transitional soy proto support:
70966
+ * http://goto/soy-param-migration
70967
+ * @return {!Object}
70968
+ */
70969
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.toObject = function(opt_includeInstance) {
70970
+ return proto.clarifai.api.WorkflowVersionEvaluationTemplate.toObject(opt_includeInstance, this);
70971
+ };
70972
+
70973
+
70974
+ /**
70975
+ * Static version of the {@see toObject} method.
70976
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70977
+ * the JSPB instance for transitional soy proto support:
70978
+ * http://goto/soy-param-migration
70979
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} msg The msg instance to transform.
70980
+ * @return {!Object}
70981
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70982
+ */
70983
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.toObject = function(includeInstance, msg) {
70984
+ var f, obj = {
70985
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
70986
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
70987
+ taskTypesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
70988
+ workflowVersionEvaluationMetricsList: jspb.Message.toObjectList(msg.getWorkflowVersionEvaluationMetricsList(),
70989
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject, includeInstance)
70990
+ };
70991
+
70992
+ if (includeInstance) {
70993
+ obj.$jspbMessageInstance = msg;
70994
+ }
70995
+ return obj;
70996
+ };
70997
+ }
70998
+
70999
+
71000
+ /**
71001
+ * Deserializes binary data (in protobuf wire format).
71002
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
71003
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate}
71004
+ */
71005
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinary = function(bytes) {
71006
+ var reader = new jspb.BinaryReader(bytes);
71007
+ var msg = new proto.clarifai.api.WorkflowVersionEvaluationTemplate;
71008
+ return proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinaryFromReader(msg, reader);
71009
+ };
71010
+
71011
+
71012
+ /**
71013
+ * Deserializes binary data (in protobuf wire format) from the
71014
+ * given reader into the given message object.
71015
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} msg The message object to deserialize into.
71016
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71017
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate}
71018
+ */
71019
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinaryFromReader = function(msg, reader) {
71020
+ while (reader.nextField()) {
71021
+ if (reader.isEndGroup()) {
71022
+ break;
71023
+ }
71024
+ var field = reader.getFieldNumber();
71025
+ switch (field) {
71026
+ case 1:
71027
+ var value = /** @type {string} */ (reader.readString());
71028
+ msg.setId(value);
71029
+ break;
71030
+ case 2:
71031
+ var value = /** @type {string} */ (reader.readString());
71032
+ msg.setDescription(value);
71033
+ break;
71034
+ case 3:
71035
+ var values = /** @type {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
71036
+ for (var i = 0; i < values.length; i++) {
71037
+ msg.addTaskTypes(values[i]);
71038
+ }
71039
+ break;
71040
+ case 4:
71041
+ var value = new proto.clarifai.api.WorkflowVersionEvaluationMetric;
71042
+ reader.readMessage(value,proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader);
71043
+ msg.addWorkflowVersionEvaluationMetrics(value);
71044
+ break;
71045
+ default:
71046
+ reader.skipField();
71047
+ break;
71048
+ }
71049
+ }
71050
+ return msg;
71051
+ };
71052
+
71053
+
71054
+ /**
71055
+ * Serializes the message to binary data (in protobuf wire format).
71056
+ * @return {!Uint8Array}
71057
+ */
71058
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.serializeBinary = function() {
71059
+ var writer = new jspb.BinaryWriter();
71060
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.serializeBinaryToWriter(this, writer);
71061
+ return writer.getResultBuffer();
71062
+ };
71063
+
71064
+
71065
+ /**
71066
+ * Serializes the given message to binary data (in protobuf wire
71067
+ * format), writing to the given BinaryWriter.
71068
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} message
71069
+ * @param {!jspb.BinaryWriter} writer
71070
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71071
+ */
71072
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.serializeBinaryToWriter = function(message, writer) {
71073
+ var f = undefined;
71074
+ f = message.getId();
71075
+ if (f.length > 0) {
71076
+ writer.writeString(
71077
+ 1,
71078
+ f
71079
+ );
71080
+ }
71081
+ f = message.getDescription();
71082
+ if (f.length > 0) {
71083
+ writer.writeString(
71084
+ 2,
71085
+ f
71086
+ );
71087
+ }
71088
+ f = message.getTaskTypesList();
71089
+ if (f.length > 0) {
71090
+ writer.writePackedEnum(
71091
+ 3,
71092
+ f
71093
+ );
71094
+ }
71095
+ f = message.getWorkflowVersionEvaluationMetricsList();
71096
+ if (f.length > 0) {
71097
+ writer.writeRepeatedMessage(
71098
+ 4,
71099
+ f,
71100
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter
71101
+ );
71102
+ }
71103
+ };
71104
+
71105
+
71106
+ /**
71107
+ * @enum {number}
71108
+ */
71109
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType = {
71110
+ TASK_TYPE_NOT_SET: 0,
71111
+ TEXT_CLASSIFICATION: 1
71112
+ };
71113
+
71114
+ /**
71115
+ * optional string id = 1;
71116
+ * @return {string}
71117
+ */
71118
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getId = function() {
71119
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
71120
+ };
71121
+
71122
+
71123
+ /**
71124
+ * @param {string} value
71125
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71126
+ */
71127
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setId = function(value) {
71128
+ return jspb.Message.setProto3StringField(this, 1, value);
71129
+ };
71130
+
71131
+
71132
+ /**
71133
+ * optional string description = 2;
71134
+ * @return {string}
71135
+ */
71136
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getDescription = function() {
71137
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
71138
+ };
71139
+
71140
+
71141
+ /**
71142
+ * @param {string} value
71143
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71144
+ */
71145
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setDescription = function(value) {
71146
+ return jspb.Message.setProto3StringField(this, 2, value);
71147
+ };
71148
+
71149
+
71150
+ /**
71151
+ * repeated TaskType task_types = 3;
71152
+ * @return {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>}
71153
+ */
71154
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getTaskTypesList = function() {
71155
+ return /** @type {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} */ (jspb.Message.getRepeatedField(this, 3));
71156
+ };
71157
+
71158
+
71159
+ /**
71160
+ * @param {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} value
71161
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71162
+ */
71163
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setTaskTypesList = function(value) {
71164
+ return jspb.Message.setField(this, 3, value || []);
71165
+ };
71166
+
71167
+
71168
+ /**
71169
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType} value
71170
+ * @param {number=} opt_index
71171
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71172
+ */
71173
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.addTaskTypes = function(value, opt_index) {
71174
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
71175
+ };
71176
+
71177
+
71178
+ /**
71179
+ * Clears the list making it empty but non-null.
71180
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71181
+ */
71182
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearTaskTypesList = function() {
71183
+ return this.setTaskTypesList([]);
71184
+ };
71185
+
71186
+
71187
+ /**
71188
+ * repeated WorkflowVersionEvaluationMetric workflow_version_evaluation_metrics = 4;
71189
+ * @return {!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>}
71190
+ */
71191
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getWorkflowVersionEvaluationMetricsList = function() {
71192
+ return /** @type{!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>} */ (
71193
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.WorkflowVersionEvaluationMetric, 4));
71194
+ };
71195
+
71196
+
71197
+ /**
71198
+ * @param {!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>} value
71199
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71200
+ */
71201
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setWorkflowVersionEvaluationMetricsList = function(value) {
71202
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
71203
+ };
71204
+
71205
+
71206
+ /**
71207
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric=} opt_value
71208
+ * @param {number=} opt_index
71209
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
71210
+ */
71211
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.addWorkflowVersionEvaluationMetrics = function(opt_value, opt_index) {
71212
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.WorkflowVersionEvaluationMetric, opt_index);
71213
+ };
71214
+
71215
+
71216
+ /**
71217
+ * Clears the list making it empty but non-null.
71218
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71219
+ */
71220
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVersionEvaluationMetricsList = function() {
71221
+ return this.setWorkflowVersionEvaluationMetricsList([]);
71222
+ };
71223
+
71224
+
70550
71225
  /**
70551
71226
  * @enum {number}
70552
71227
  */