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.
@@ -238,7 +238,6 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
238
238
  goog.exportSymbol('proto.clarifai.api.Task', null, global);
239
239
  goog.exportSymbol('proto.clarifai.api.Task.TaskPriority', null, global);
240
240
  goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
241
- goog.exportSymbol('proto.clarifai.api.Task.WorkerType', null, global);
242
241
  goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
243
242
  goog.exportSymbol('proto.clarifai.api.TaskAssignment', null, global);
244
243
  goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
@@ -258,6 +257,7 @@ goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
258
257
  goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
259
258
  goog.exportSymbol('proto.clarifai.api.TaskWorker.StrategyInfoCase', null, global);
260
259
  goog.exportSymbol('proto.clarifai.api.TaskWorker.TaskWorkerStrategy', null, global);
260
+ goog.exportSymbol('proto.clarifai.api.TaskWorker.WorkerType', null, global);
261
261
  goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo', null, global);
262
262
  goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy', null, global);
263
263
  goog.exportSymbol('proto.clarifai.api.Text', null, global);
@@ -294,6 +294,11 @@ goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
294
294
  goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
295
295
  goog.exportSymbol('proto.clarifai.api.WorkflowState', null, global);
296
296
  goog.exportSymbol('proto.clarifai.api.WorkflowVersion', null, global);
297
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric', null, global);
298
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType', null, global);
299
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType', null, global);
300
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationTemplate', null, global);
301
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType', null, global);
297
302
  /**
298
303
  * Generated by JsPbCodeGenerator.
299
304
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4767,6 +4772,48 @@ if (goog.DEBUG && !COMPILED) {
4767
4772
  */
4768
4773
  proto.clarifai.api.AuditLogQuery.displayName = 'proto.clarifai.api.AuditLogQuery';
4769
4774
  }
4775
+ /**
4776
+ * Generated by JsPbCodeGenerator.
4777
+ * @param {Array=} opt_data Optional initial data array, typically from a
4778
+ * server response, or constructed directly in Javascript. The array is used
4779
+ * in place and becomes part of the constructed object. It is not cloned.
4780
+ * If no data is provided, the constructed object will be empty, but still
4781
+ * valid.
4782
+ * @extends {jspb.Message}
4783
+ * @constructor
4784
+ */
4785
+ proto.clarifai.api.WorkflowVersionEvaluationMetric = function (opt_data) {
4786
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4787
+ };
4788
+ goog.inherits(proto.clarifai.api.WorkflowVersionEvaluationMetric, jspb.Message);
4789
+ if (goog.DEBUG && !COMPILED) {
4790
+ /**
4791
+ * @public
4792
+ * @override
4793
+ */
4794
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationMetric';
4795
+ }
4796
+ /**
4797
+ * Generated by JsPbCodeGenerator.
4798
+ * @param {Array=} opt_data Optional initial data array, typically from a
4799
+ * server response, or constructed directly in Javascript. The array is used
4800
+ * in place and becomes part of the constructed object. It is not cloned.
4801
+ * If no data is provided, the constructed object will be empty, but still
4802
+ * valid.
4803
+ * @extends {jspb.Message}
4804
+ * @constructor
4805
+ */
4806
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate = function (opt_data) {
4807
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.WorkflowVersionEvaluationTemplate.repeatedFields_, null);
4808
+ };
4809
+ goog.inherits(proto.clarifai.api.WorkflowVersionEvaluationTemplate, jspb.Message);
4810
+ if (goog.DEBUG && !COMPILED) {
4811
+ /**
4812
+ * @public
4813
+ * @override
4814
+ */
4815
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationTemplate';
4816
+ }
4770
4817
  if (jspb.Message.GENERATE_TO_OBJECT) {
4771
4818
  /**
4772
4819
  * Creates an object representation of this proto.
@@ -8784,7 +8831,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
8784
8831
  userId: jspb.Message.getFieldWithDefault(msg, 10, ""),
8785
8832
  keypointInfo: (f = msg.getKeypointInfo()) && proto.clarifai.api.KeypointInfo.toObject(includeInstance, f),
8786
8833
  extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfo.toObject(includeInstance, f),
8787
- metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
8834
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
8835
+ image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
8788
8836
  };
8789
8837
  if (includeInstance) {
8790
8838
  obj.$jspbMessageInstance = msg;
@@ -8873,6 +8921,11 @@ proto.clarifai.api.Concept.deserializeBinaryFromReader = function (msg, reader)
8873
8921
  reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
8874
8922
  msg.setMetadata(value);
8875
8923
  break;
8924
+ case 22:
8925
+ var value = new proto.clarifai.api.Image;
8926
+ reader.readMessage(value, proto.clarifai.api.Image.deserializeBinaryFromReader);
8927
+ msg.setImage(value);
8928
+ break;
8876
8929
  default:
8877
8930
  reader.skipField();
8878
8931
  break;
@@ -8950,6 +9003,10 @@ proto.clarifai.api.Concept.serializeBinaryToWriter = function (message, writer)
8950
9003
  if (f != null) {
8951
9004
  writer.writeMessage(13, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
8952
9005
  }
9006
+ f = message.getImage();
9007
+ if (f != null) {
9008
+ writer.writeMessage(22, f, proto.clarifai.api.Image.serializeBinaryToWriter);
9009
+ }
8953
9010
  };
8954
9011
  /**
8955
9012
  * optional string id = 1;
@@ -9203,6 +9260,34 @@ proto.clarifai.api.Concept.prototype.clearMetadata = function () {
9203
9260
  proto.clarifai.api.Concept.prototype.hasMetadata = function () {
9204
9261
  return jspb.Message.getField(this, 13) != null;
9205
9262
  };
9263
+ /**
9264
+ * optional Image image = 22;
9265
+ * @return {?proto.clarifai.api.Image}
9266
+ */
9267
+ proto.clarifai.api.Concept.prototype.getImage = function () {
9268
+ return /** @type{?proto.clarifai.api.Image} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 22));
9269
+ };
9270
+ /**
9271
+ * @param {?proto.clarifai.api.Image|undefined} value
9272
+ * @return {!proto.clarifai.api.Concept} returns this
9273
+ */
9274
+ proto.clarifai.api.Concept.prototype.setImage = function (value) {
9275
+ return jspb.Message.setWrapperField(this, 22, value);
9276
+ };
9277
+ /**
9278
+ * Clears the message field making it undefined.
9279
+ * @return {!proto.clarifai.api.Concept} returns this
9280
+ */
9281
+ proto.clarifai.api.Concept.prototype.clearImage = function () {
9282
+ return this.setImage(undefined);
9283
+ };
9284
+ /**
9285
+ * Returns whether this field is set.
9286
+ * @return {boolean}
9287
+ */
9288
+ proto.clarifai.api.Concept.prototype.hasImage = function () {
9289
+ return jspb.Message.getField(this, 22) != null;
9290
+ };
9206
9291
  /**
9207
9292
  * List of repeated fields within this message type.
9208
9293
  * @private {!Array<number>}
@@ -38830,7 +38915,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
38830
38915
  type: jspb.Message.getFieldWithDefault(msg, 4, 0),
38831
38916
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
38832
38917
  worker: (f = msg.getWorker()) && proto.clarifai.api.TaskWorker.toObject(includeInstance, f),
38833
- workerType: jspb.Message.getFieldWithDefault(msg, 22, 0),
38834
38918
  conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
38835
38919
  inputSource: (f = msg.getInputSource()) && proto.clarifai.api.TaskInputSource.toObject(includeInstance, f),
38836
38920
  sampleMs: jspb.Message.getFieldWithDefault(msg, 9, 0),
@@ -38905,10 +38989,6 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function (msg, reader) {
38905
38989
  reader.readMessage(value, proto.clarifai.api.TaskWorker.deserializeBinaryFromReader);
38906
38990
  msg.setWorker(value);
38907
38991
  break;
38908
- case 22:
38909
- var value = /** @type {!proto.clarifai.api.Task.WorkerType} */ (reader.readEnum());
38910
- msg.setWorkerType(value);
38911
- break;
38912
38992
  case 7:
38913
38993
  var value = /** @type {string} */ (reader.readString());
38914
38994
  msg.addConceptIds(value);
@@ -39030,10 +39110,6 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
39030
39110
  if (f != null) {
39031
39111
  writer.writeMessage(6, f, proto.clarifai.api.TaskWorker.serializeBinaryToWriter);
39032
39112
  }
39033
- f = message.getWorkerType();
39034
- if (f !== 0.0) {
39035
- writer.writeEnum(22, f);
39036
- }
39037
39113
  f = message.getConceptIdsList();
39038
39114
  if (f.length > 0) {
39039
39115
  writer.writeRepeatedString(7, f);
@@ -39099,14 +39175,6 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
39099
39175
  writer.writeEnum(23, f);
39100
39176
  }
39101
39177
  };
39102
- /**
39103
- * @enum {number}
39104
- */
39105
- proto.clarifai.api.Task.WorkerType = {
39106
- WORKER_TYPE_NOT_SET: 0,
39107
- WORKER_HUMAN: 1,
39108
- WORKER_AUTO: 2
39109
- };
39110
39178
  /**
39111
39179
  * @enum {number}
39112
39180
  */
@@ -39251,20 +39319,6 @@ proto.clarifai.api.Task.prototype.clearWorker = function () {
39251
39319
  proto.clarifai.api.Task.prototype.hasWorker = function () {
39252
39320
  return jspb.Message.getField(this, 6) != null;
39253
39321
  };
39254
- /**
39255
- * optional WorkerType worker_type = 22;
39256
- * @return {!proto.clarifai.api.Task.WorkerType}
39257
- */
39258
- proto.clarifai.api.Task.prototype.getWorkerType = function () {
39259
- return /** @type {!proto.clarifai.api.Task.WorkerType} */ (jspb.Message.getFieldWithDefault(this, 22, 0));
39260
- };
39261
- /**
39262
- * @param {!proto.clarifai.api.Task.WorkerType} value
39263
- * @return {!proto.clarifai.api.Task} returns this
39264
- */
39265
- proto.clarifai.api.Task.prototype.setWorkerType = function (value) {
39266
- return jspb.Message.setProto3EnumField(this, 22, value);
39267
- };
39268
39322
  /**
39269
39323
  * repeated string concept_ids = 7;
39270
39324
  * @return {!Array<string>}
@@ -39850,7 +39904,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
39850
39904
  userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
39851
39905
  usersList: jspb.Message.toObjectList(msg.getUsersList(), proto.clarifai.api.User.toObject, includeInstance),
39852
39906
  partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f),
39853
- workersList: jspb.Message.toObjectList(msg.getWorkersList(), proto.clarifai.api.Worker.toObject, includeInstance)
39907
+ workersList: jspb.Message.toObjectList(msg.getWorkersList(), proto.clarifai.api.Worker.toObject, includeInstance),
39908
+ type: jspb.Message.getFieldWithDefault(msg, 8, 0)
39854
39909
  };
39855
39910
  if (includeInstance) {
39856
39911
  obj.$jspbMessageInstance = msg;
@@ -39905,6 +39960,10 @@ proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function (msg, reade
39905
39960
  reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
39906
39961
  msg.addWorkers(value);
39907
39962
  break;
39963
+ case 8:
39964
+ var value = /** @type {!proto.clarifai.api.TaskWorker.WorkerType} */ (reader.readEnum());
39965
+ msg.setType(value);
39966
+ break;
39908
39967
  default:
39909
39968
  reader.skipField();
39910
39969
  break;
@@ -39950,6 +40009,10 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function (message, write
39950
40009
  if (f.length > 0) {
39951
40010
  writer.writeRepeatedMessage(7, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
39952
40011
  }
40012
+ f = message.getType();
40013
+ if (f !== 0.0) {
40014
+ writer.writeEnum(8, f);
40015
+ }
39953
40016
  };
39954
40017
  /**
39955
40018
  * @enum {number}
@@ -39960,6 +40023,14 @@ proto.clarifai.api.TaskWorker.TaskWorkerStrategy = {
39960
40023
  FULL: 3,
39961
40024
  DYNAMIC: 4
39962
40025
  };
40026
+ /**
40027
+ * @enum {number}
40028
+ */
40029
+ proto.clarifai.api.TaskWorker.WorkerType = {
40030
+ WORKER_TYPE_NOT_SET: 0,
40031
+ WORKER_HUMAN: 1,
40032
+ WORKER_AUTO: 2
40033
+ };
39963
40034
  /**
39964
40035
  * optional TaskWorkerStrategy strategy = 1;
39965
40036
  * @return {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy}
@@ -40089,6 +40160,20 @@ proto.clarifai.api.TaskWorker.prototype.addWorkers = function (opt_value, opt_in
40089
40160
  proto.clarifai.api.TaskWorker.prototype.clearWorkersList = function () {
40090
40161
  return this.setWorkersList([]);
40091
40162
  };
40163
+ /**
40164
+ * optional WorkerType type = 8;
40165
+ * @return {!proto.clarifai.api.TaskWorker.WorkerType}
40166
+ */
40167
+ proto.clarifai.api.TaskWorker.prototype.getType = function () {
40168
+ return /** @type {!proto.clarifai.api.TaskWorker.WorkerType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
40169
+ };
40170
+ /**
40171
+ * @param {!proto.clarifai.api.TaskWorker.WorkerType} value
40172
+ * @return {!proto.clarifai.api.TaskWorker} returns this
40173
+ */
40174
+ proto.clarifai.api.TaskWorker.prototype.setType = function (value) {
40175
+ return jspb.Message.setProto3EnumField(this, 8, value);
40176
+ };
40092
40177
  if (jspb.Message.GENERATE_TO_OBJECT) {
40093
40178
  /**
40094
40179
  * Creates an object representation of this proto.
@@ -40729,7 +40814,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
40729
40814
  */
40730
40815
  proto.clarifai.api.TaskReviewManualStrategyInfo.toObject = function (includeInstance, msg) {
40731
40816
  var f, obj = {
40732
- samplePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0)
40817
+ samplePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
40818
+ approvalThreshold: jspb.Message.getFieldWithDefault(msg, 2, 0)
40733
40819
  };
40734
40820
  if (includeInstance) {
40735
40821
  obj.$jspbMessageInstance = msg;
@@ -40765,6 +40851,10 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinaryFromReader = fu
40765
40851
  var value = /** @type {number} */ (reader.readFloat());
40766
40852
  msg.setSamplePercentage(value);
40767
40853
  break;
40854
+ case 2:
40855
+ var value = /** @type {number} */ (reader.readInt32());
40856
+ msg.setApprovalThreshold(value);
40857
+ break;
40768
40858
  default:
40769
40859
  reader.skipField();
40770
40860
  break;
@@ -40794,6 +40884,10 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.serializeBinaryToWriter = functi
40794
40884
  if (f !== 0.0) {
40795
40885
  writer.writeFloat(1, f);
40796
40886
  }
40887
+ f = message.getApprovalThreshold();
40888
+ if (f !== 0) {
40889
+ writer.writeInt32(2, f);
40890
+ }
40797
40891
  };
40798
40892
  /**
40799
40893
  * optional float sample_percentage = 1;
@@ -40809,6 +40903,20 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.getSamplePercentage =
40809
40903
  proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.setSamplePercentage = function (value) {
40810
40904
  return jspb.Message.setProto3FloatField(this, 1, value);
40811
40905
  };
40906
+ /**
40907
+ * optional int32 approval_threshold = 2;
40908
+ * @return {number}
40909
+ */
40910
+ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.getApprovalThreshold = function () {
40911
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
40912
+ };
40913
+ /**
40914
+ * @param {number} value
40915
+ * @return {!proto.clarifai.api.TaskReviewManualStrategyInfo} returns this
40916
+ */
40917
+ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.setApprovalThreshold = function (value) {
40918
+ return jspb.Message.setProto3IntField(this, 2, value);
40919
+ };
40812
40920
  if (jspb.Message.GENERATE_TO_OBJECT) {
40813
40921
  /**
40814
40922
  * Creates an object representation of this proto.
@@ -56351,6 +56459,443 @@ proto.clarifai.api.AuditLogQuery.prototype.addSourceIps = function (value, opt_i
56351
56459
  proto.clarifai.api.AuditLogQuery.prototype.clearSourceIpsList = function () {
56352
56460
  return this.setSourceIpsList([]);
56353
56461
  };
56462
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56463
+ /**
56464
+ * Creates an object representation of this proto.
56465
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56466
+ * Optional fields that are not set will be set to undefined.
56467
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56468
+ * For the list of reserved names please see:
56469
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56470
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56471
+ * JSPB instance for transitional soy proto support:
56472
+ * http://goto/soy-param-migration
56473
+ * @return {!Object}
56474
+ */
56475
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.toObject = function (opt_includeInstance) {
56476
+ return proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject(opt_includeInstance, this);
56477
+ };
56478
+ /**
56479
+ * Static version of the {@see toObject} method.
56480
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56481
+ * the JSPB instance for transitional soy proto support:
56482
+ * http://goto/soy-param-migration
56483
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} msg The msg instance to transform.
56484
+ * @return {!Object}
56485
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56486
+ */
56487
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject = function (includeInstance, msg) {
56488
+ var f, obj = {
56489
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
56490
+ summary: jspb.Message.getFieldWithDefault(msg, 2, ""),
56491
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
56492
+ dataType: jspb.Message.getFieldWithDefault(msg, 4, 0),
56493
+ visualisationType: jspb.Message.getFieldWithDefault(msg, 5, 0)
56494
+ };
56495
+ if (includeInstance) {
56496
+ obj.$jspbMessageInstance = msg;
56497
+ }
56498
+ return obj;
56499
+ };
56500
+ }
56501
+ /**
56502
+ * Deserializes binary data (in protobuf wire format).
56503
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56504
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
56505
+ */
56506
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinary = function (bytes) {
56507
+ var reader = new jspb.BinaryReader(bytes);
56508
+ var msg = new proto.clarifai.api.WorkflowVersionEvaluationMetric;
56509
+ return proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader(msg, reader);
56510
+ };
56511
+ /**
56512
+ * Deserializes binary data (in protobuf wire format) from the
56513
+ * given reader into the given message object.
56514
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} msg The message object to deserialize into.
56515
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56516
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
56517
+ */
56518
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader = function (msg, reader) {
56519
+ while (reader.nextField()) {
56520
+ if (reader.isEndGroup()) {
56521
+ break;
56522
+ }
56523
+ var field = reader.getFieldNumber();
56524
+ switch (field) {
56525
+ case 1:
56526
+ var value = /** @type {string} */ (reader.readString());
56527
+ msg.setId(value);
56528
+ break;
56529
+ case 2:
56530
+ var value = /** @type {string} */ (reader.readString());
56531
+ msg.setSummary(value);
56532
+ break;
56533
+ case 3:
56534
+ var value = /** @type {string} */ (reader.readString());
56535
+ msg.setDescription(value);
56536
+ break;
56537
+ case 4:
56538
+ var value = /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} */ (reader.readEnum());
56539
+ msg.setDataType(value);
56540
+ break;
56541
+ case 5:
56542
+ var value = /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} */ (reader.readEnum());
56543
+ msg.setVisualisationType(value);
56544
+ break;
56545
+ default:
56546
+ reader.skipField();
56547
+ break;
56548
+ }
56549
+ }
56550
+ return msg;
56551
+ };
56552
+ /**
56553
+ * Serializes the message to binary data (in protobuf wire format).
56554
+ * @return {!Uint8Array}
56555
+ */
56556
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.serializeBinary = function () {
56557
+ var writer = new jspb.BinaryWriter();
56558
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter(this, writer);
56559
+ return writer.getResultBuffer();
56560
+ };
56561
+ /**
56562
+ * Serializes the given message to binary data (in protobuf wire
56563
+ * format), writing to the given BinaryWriter.
56564
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} message
56565
+ * @param {!jspb.BinaryWriter} writer
56566
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56567
+ */
56568
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter = function (message, writer) {
56569
+ var f = undefined;
56570
+ f = message.getId();
56571
+ if (f.length > 0) {
56572
+ writer.writeString(1, f);
56573
+ }
56574
+ f = message.getSummary();
56575
+ if (f.length > 0) {
56576
+ writer.writeString(2, f);
56577
+ }
56578
+ f = message.getDescription();
56579
+ if (f.length > 0) {
56580
+ writer.writeString(3, f);
56581
+ }
56582
+ f = message.getDataType();
56583
+ if (f !== 0.0) {
56584
+ writer.writeEnum(4, f);
56585
+ }
56586
+ f = message.getVisualisationType();
56587
+ if (f !== 0.0) {
56588
+ writer.writeEnum(5, f);
56589
+ }
56590
+ };
56591
+ /**
56592
+ * @enum {number}
56593
+ */
56594
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType = {
56595
+ DATA_TYPE_NOT_SET: 0,
56596
+ FLOAT: 1
56597
+ };
56598
+ /**
56599
+ * @enum {number}
56600
+ */
56601
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType = {
56602
+ VISUALIZATION_TYPE_NOT_SET: 0,
56603
+ CONFUSION_MATRIX: 1,
56604
+ PRECISION_RECALL_CURVE: 2,
56605
+ ROC_AUC_CURVE: 3
56606
+ };
56607
+ /**
56608
+ * optional string id = 1;
56609
+ * @return {string}
56610
+ */
56611
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getId = function () {
56612
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
56613
+ };
56614
+ /**
56615
+ * @param {string} value
56616
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
56617
+ */
56618
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setId = function (value) {
56619
+ return jspb.Message.setProto3StringField(this, 1, value);
56620
+ };
56621
+ /**
56622
+ * optional string summary = 2;
56623
+ * @return {string}
56624
+ */
56625
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getSummary = function () {
56626
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
56627
+ };
56628
+ /**
56629
+ * @param {string} value
56630
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
56631
+ */
56632
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setSummary = function (value) {
56633
+ return jspb.Message.setProto3StringField(this, 2, value);
56634
+ };
56635
+ /**
56636
+ * optional string description = 3;
56637
+ * @return {string}
56638
+ */
56639
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getDescription = function () {
56640
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
56641
+ };
56642
+ /**
56643
+ * @param {string} value
56644
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
56645
+ */
56646
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setDescription = function (value) {
56647
+ return jspb.Message.setProto3StringField(this, 3, value);
56648
+ };
56649
+ /**
56650
+ * optional DataType data_type = 4;
56651
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType}
56652
+ */
56653
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getDataType = function () {
56654
+ return /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
56655
+ };
56656
+ /**
56657
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} value
56658
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
56659
+ */
56660
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setDataType = function (value) {
56661
+ return jspb.Message.setProto3EnumField(this, 4, value);
56662
+ };
56663
+ /**
56664
+ * optional VisualisationType visualisation_type = 5;
56665
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType}
56666
+ */
56667
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getVisualisationType = function () {
56668
+ return /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
56669
+ };
56670
+ /**
56671
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} value
56672
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
56673
+ */
56674
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setVisualisationType = function (value) {
56675
+ return jspb.Message.setProto3EnumField(this, 5, value);
56676
+ };
56677
+ /**
56678
+ * List of repeated fields within this message type.
56679
+ * @private {!Array<number>}
56680
+ * @const
56681
+ */
56682
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.repeatedFields_ = [3, 4];
56683
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56684
+ /**
56685
+ * Creates an object representation of this proto.
56686
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56687
+ * Optional fields that are not set will be set to undefined.
56688
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56689
+ * For the list of reserved names please see:
56690
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56691
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56692
+ * JSPB instance for transitional soy proto support:
56693
+ * http://goto/soy-param-migration
56694
+ * @return {!Object}
56695
+ */
56696
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.toObject = function (opt_includeInstance) {
56697
+ return proto.clarifai.api.WorkflowVersionEvaluationTemplate.toObject(opt_includeInstance, this);
56698
+ };
56699
+ /**
56700
+ * Static version of the {@see toObject} method.
56701
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56702
+ * the JSPB instance for transitional soy proto support:
56703
+ * http://goto/soy-param-migration
56704
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} msg The msg instance to transform.
56705
+ * @return {!Object}
56706
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56707
+ */
56708
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.toObject = function (includeInstance, msg) {
56709
+ var f, obj = {
56710
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
56711
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
56712
+ taskTypesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
56713
+ workflowVersionEvaluationMetricsList: jspb.Message.toObjectList(msg.getWorkflowVersionEvaluationMetricsList(), proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject, includeInstance)
56714
+ };
56715
+ if (includeInstance) {
56716
+ obj.$jspbMessageInstance = msg;
56717
+ }
56718
+ return obj;
56719
+ };
56720
+ }
56721
+ /**
56722
+ * Deserializes binary data (in protobuf wire format).
56723
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56724
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate}
56725
+ */
56726
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinary = function (bytes) {
56727
+ var reader = new jspb.BinaryReader(bytes);
56728
+ var msg = new proto.clarifai.api.WorkflowVersionEvaluationTemplate;
56729
+ return proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinaryFromReader(msg, reader);
56730
+ };
56731
+ /**
56732
+ * Deserializes binary data (in protobuf wire format) from the
56733
+ * given reader into the given message object.
56734
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} msg The message object to deserialize into.
56735
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56736
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate}
56737
+ */
56738
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinaryFromReader = function (msg, reader) {
56739
+ while (reader.nextField()) {
56740
+ if (reader.isEndGroup()) {
56741
+ break;
56742
+ }
56743
+ var field = reader.getFieldNumber();
56744
+ switch (field) {
56745
+ case 1:
56746
+ var value = /** @type {string} */ (reader.readString());
56747
+ msg.setId(value);
56748
+ break;
56749
+ case 2:
56750
+ var value = /** @type {string} */ (reader.readString());
56751
+ msg.setDescription(value);
56752
+ break;
56753
+ case 3:
56754
+ var values = /** @type {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
56755
+ for (var i = 0; i < values.length; i++) {
56756
+ msg.addTaskTypes(values[i]);
56757
+ }
56758
+ break;
56759
+ case 4:
56760
+ var value = new proto.clarifai.api.WorkflowVersionEvaluationMetric;
56761
+ reader.readMessage(value, proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader);
56762
+ msg.addWorkflowVersionEvaluationMetrics(value);
56763
+ break;
56764
+ default:
56765
+ reader.skipField();
56766
+ break;
56767
+ }
56768
+ }
56769
+ return msg;
56770
+ };
56771
+ /**
56772
+ * Serializes the message to binary data (in protobuf wire format).
56773
+ * @return {!Uint8Array}
56774
+ */
56775
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.serializeBinary = function () {
56776
+ var writer = new jspb.BinaryWriter();
56777
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.serializeBinaryToWriter(this, writer);
56778
+ return writer.getResultBuffer();
56779
+ };
56780
+ /**
56781
+ * Serializes the given message to binary data (in protobuf wire
56782
+ * format), writing to the given BinaryWriter.
56783
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} message
56784
+ * @param {!jspb.BinaryWriter} writer
56785
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56786
+ */
56787
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.serializeBinaryToWriter = function (message, writer) {
56788
+ var f = undefined;
56789
+ f = message.getId();
56790
+ if (f.length > 0) {
56791
+ writer.writeString(1, f);
56792
+ }
56793
+ f = message.getDescription();
56794
+ if (f.length > 0) {
56795
+ writer.writeString(2, f);
56796
+ }
56797
+ f = message.getTaskTypesList();
56798
+ if (f.length > 0) {
56799
+ writer.writePackedEnum(3, f);
56800
+ }
56801
+ f = message.getWorkflowVersionEvaluationMetricsList();
56802
+ if (f.length > 0) {
56803
+ writer.writeRepeatedMessage(4, f, proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter);
56804
+ }
56805
+ };
56806
+ /**
56807
+ * @enum {number}
56808
+ */
56809
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType = {
56810
+ TASK_TYPE_NOT_SET: 0,
56811
+ TEXT_CLASSIFICATION: 1
56812
+ };
56813
+ /**
56814
+ * optional string id = 1;
56815
+ * @return {string}
56816
+ */
56817
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getId = function () {
56818
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
56819
+ };
56820
+ /**
56821
+ * @param {string} value
56822
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
56823
+ */
56824
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setId = function (value) {
56825
+ return jspb.Message.setProto3StringField(this, 1, value);
56826
+ };
56827
+ /**
56828
+ * optional string description = 2;
56829
+ * @return {string}
56830
+ */
56831
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getDescription = function () {
56832
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
56833
+ };
56834
+ /**
56835
+ * @param {string} value
56836
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
56837
+ */
56838
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setDescription = function (value) {
56839
+ return jspb.Message.setProto3StringField(this, 2, value);
56840
+ };
56841
+ /**
56842
+ * repeated TaskType task_types = 3;
56843
+ * @return {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>}
56844
+ */
56845
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getTaskTypesList = function () {
56846
+ return /** @type {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} */ (jspb.Message.getRepeatedField(this, 3));
56847
+ };
56848
+ /**
56849
+ * @param {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} value
56850
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
56851
+ */
56852
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setTaskTypesList = function (value) {
56853
+ return jspb.Message.setField(this, 3, value || []);
56854
+ };
56855
+ /**
56856
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType} value
56857
+ * @param {number=} opt_index
56858
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
56859
+ */
56860
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.addTaskTypes = function (value, opt_index) {
56861
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
56862
+ };
56863
+ /**
56864
+ * Clears the list making it empty but non-null.
56865
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
56866
+ */
56867
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearTaskTypesList = function () {
56868
+ return this.setTaskTypesList([]);
56869
+ };
56870
+ /**
56871
+ * repeated WorkflowVersionEvaluationMetric workflow_version_evaluation_metrics = 4;
56872
+ * @return {!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>}
56873
+ */
56874
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getWorkflowVersionEvaluationMetricsList = function () {
56875
+ return /** @type{!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.WorkflowVersionEvaluationMetric, 4));
56876
+ };
56877
+ /**
56878
+ * @param {!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>} value
56879
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
56880
+ */
56881
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setWorkflowVersionEvaluationMetricsList = function (value) {
56882
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
56883
+ };
56884
+ /**
56885
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric=} opt_value
56886
+ * @param {number=} opt_index
56887
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
56888
+ */
56889
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.addWorkflowVersionEvaluationMetrics = function (opt_value, opt_index) {
56890
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.WorkflowVersionEvaluationMetric, opt_index);
56891
+ };
56892
+ /**
56893
+ * Clears the list making it empty but non-null.
56894
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
56895
+ */
56896
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVersionEvaluationMetricsList = function () {
56897
+ return this.setWorkflowVersionEvaluationMetricsList([]);
56898
+ };
56354
56899
  /**
56355
56900
  * @enum {number}
56356
56901
  */