clarifai-web-grpc 10.8.7 → 10.9.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.
@@ -193,6 +193,7 @@ goog.exportSymbol('proto.clarifai.api.ModuleStar', null, global);
193
193
  goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global);
194
194
  goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global);
195
195
  goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global);
196
+ goog.exportSymbol('proto.clarifai.api.NDArray', null, global);
196
197
  goog.exportSymbol('proto.clarifai.api.NodeCapacityType', null, global);
197
198
  goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, global);
198
199
  goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
@@ -204,6 +205,7 @@ goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
204
205
  goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global);
205
206
  goog.exportSymbol('proto.clarifai.api.OverwriteGeo', null, global);
206
207
  goog.exportSymbol('proto.clarifai.api.PCAProjectionComparator', null, global);
208
+ goog.exportSymbol('proto.clarifai.api.Part', null, global);
207
209
  goog.exportSymbol('proto.clarifai.api.Password', null, global);
208
210
  goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global);
209
211
  goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
@@ -238,7 +240,6 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
238
240
  goog.exportSymbol('proto.clarifai.api.Task', null, global);
239
241
  goog.exportSymbol('proto.clarifai.api.Task.TaskPriority', null, global);
240
242
  goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
241
- goog.exportSymbol('proto.clarifai.api.Task.WorkerType', null, global);
242
243
  goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
243
244
  goog.exportSymbol('proto.clarifai.api.TaskAssignment', null, global);
244
245
  goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
@@ -258,6 +259,7 @@ goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
258
259
  goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
259
260
  goog.exportSymbol('proto.clarifai.api.TaskWorker.StrategyInfoCase', null, global);
260
261
  goog.exportSymbol('proto.clarifai.api.TaskWorker.TaskWorkerStrategy', null, global);
262
+ goog.exportSymbol('proto.clarifai.api.TaskWorker.WorkerType', null, global);
261
263
  goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo', null, global);
262
264
  goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy', null, global);
263
265
  goog.exportSymbol('proto.clarifai.api.Text', null, global);
@@ -294,6 +296,11 @@ goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
294
296
  goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
295
297
  goog.exportSymbol('proto.clarifai.api.WorkflowState', null, global);
296
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);
297
304
  /**
298
305
  * Generated by JsPbCodeGenerator.
299
306
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -882,6 +889,27 @@ if (goog.DEBUG && !COMPILED) {
882
889
  */
883
890
  proto.clarifai.api.Data.displayName = 'proto.clarifai.api.Data';
884
891
  }
892
+ /**
893
+ * Generated by JsPbCodeGenerator.
894
+ * @param {Array=} opt_data Optional initial data array, typically from a
895
+ * server response, or constructed directly in Javascript. The array is used
896
+ * in place and becomes part of the constructed object. It is not cloned.
897
+ * If no data is provided, the constructed object will be empty, but still
898
+ * valid.
899
+ * @extends {jspb.Message}
900
+ * @constructor
901
+ */
902
+ proto.clarifai.api.Part = function (opt_data) {
903
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
904
+ };
905
+ goog.inherits(proto.clarifai.api.Part, jspb.Message);
906
+ if (goog.DEBUG && !COMPILED) {
907
+ /**
908
+ * @public
909
+ * @override
910
+ */
911
+ proto.clarifai.api.Part.displayName = 'proto.clarifai.api.Part';
912
+ }
885
913
  /**
886
914
  * Generated by JsPbCodeGenerator.
887
915
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -987,6 +1015,27 @@ if (goog.DEBUG && !COMPILED) {
987
1015
  */
988
1016
  proto.clarifai.api.Frame.displayName = 'proto.clarifai.api.Frame';
989
1017
  }
1018
+ /**
1019
+ * Generated by JsPbCodeGenerator.
1020
+ * @param {Array=} opt_data Optional initial data array, typically from a
1021
+ * server response, or constructed directly in Javascript. The array is used
1022
+ * in place and becomes part of the constructed object. It is not cloned.
1023
+ * If no data is provided, the constructed object will be empty, but still
1024
+ * valid.
1025
+ * @extends {jspb.Message}
1026
+ * @constructor
1027
+ */
1028
+ proto.clarifai.api.NDArray = function (opt_data) {
1029
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.NDArray.repeatedFields_, null);
1030
+ };
1031
+ goog.inherits(proto.clarifai.api.NDArray, jspb.Message);
1032
+ if (goog.DEBUG && !COMPILED) {
1033
+ /**
1034
+ * @public
1035
+ * @override
1036
+ */
1037
+ proto.clarifai.api.NDArray.displayName = 'proto.clarifai.api.NDArray';
1038
+ }
990
1039
  /**
991
1040
  * Generated by JsPbCodeGenerator.
992
1041
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4767,6 +4816,48 @@ if (goog.DEBUG && !COMPILED) {
4767
4816
  */
4768
4817
  proto.clarifai.api.AuditLogQuery.displayName = 'proto.clarifai.api.AuditLogQuery';
4769
4818
  }
4819
+ /**
4820
+ * Generated by JsPbCodeGenerator.
4821
+ * @param {Array=} opt_data Optional initial data array, typically from a
4822
+ * server response, or constructed directly in Javascript. The array is used
4823
+ * in place and becomes part of the constructed object. It is not cloned.
4824
+ * If no data is provided, the constructed object will be empty, but still
4825
+ * valid.
4826
+ * @extends {jspb.Message}
4827
+ * @constructor
4828
+ */
4829
+ proto.clarifai.api.WorkflowVersionEvaluationMetric = function (opt_data) {
4830
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4831
+ };
4832
+ goog.inherits(proto.clarifai.api.WorkflowVersionEvaluationMetric, jspb.Message);
4833
+ if (goog.DEBUG && !COMPILED) {
4834
+ /**
4835
+ * @public
4836
+ * @override
4837
+ */
4838
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationMetric';
4839
+ }
4840
+ /**
4841
+ * Generated by JsPbCodeGenerator.
4842
+ * @param {Array=} opt_data Optional initial data array, typically from a
4843
+ * server response, or constructed directly in Javascript. The array is used
4844
+ * in place and becomes part of the constructed object. It is not cloned.
4845
+ * If no data is provided, the constructed object will be empty, but still
4846
+ * valid.
4847
+ * @extends {jspb.Message}
4848
+ * @constructor
4849
+ */
4850
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate = function (opt_data) {
4851
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.WorkflowVersionEvaluationTemplate.repeatedFields_, null);
4852
+ };
4853
+ goog.inherits(proto.clarifai.api.WorkflowVersionEvaluationTemplate, jspb.Message);
4854
+ if (goog.DEBUG && !COMPILED) {
4855
+ /**
4856
+ * @public
4857
+ * @override
4858
+ */
4859
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationTemplate';
4860
+ }
4770
4861
  if (jspb.Message.GENERATE_TO_OBJECT) {
4771
4862
  /**
4772
4863
  * Creates an object representation of this proto.
@@ -8784,7 +8875,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
8784
8875
  userId: jspb.Message.getFieldWithDefault(msg, 10, ""),
8785
8876
  keypointInfo: (f = msg.getKeypointInfo()) && proto.clarifai.api.KeypointInfo.toObject(includeInstance, f),
8786
8877
  extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfo.toObject(includeInstance, f),
8787
- metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
8878
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
8879
+ image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
8788
8880
  };
8789
8881
  if (includeInstance) {
8790
8882
  obj.$jspbMessageInstance = msg;
@@ -8873,6 +8965,11 @@ proto.clarifai.api.Concept.deserializeBinaryFromReader = function (msg, reader)
8873
8965
  reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
8874
8966
  msg.setMetadata(value);
8875
8967
  break;
8968
+ case 22:
8969
+ var value = new proto.clarifai.api.Image;
8970
+ reader.readMessage(value, proto.clarifai.api.Image.deserializeBinaryFromReader);
8971
+ msg.setImage(value);
8972
+ break;
8876
8973
  default:
8877
8974
  reader.skipField();
8878
8975
  break;
@@ -8950,6 +9047,10 @@ proto.clarifai.api.Concept.serializeBinaryToWriter = function (message, writer)
8950
9047
  if (f != null) {
8951
9048
  writer.writeMessage(13, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
8952
9049
  }
9050
+ f = message.getImage();
9051
+ if (f != null) {
9052
+ writer.writeMessage(22, f, proto.clarifai.api.Image.serializeBinaryToWriter);
9053
+ }
8953
9054
  };
8954
9055
  /**
8955
9056
  * optional string id = 1;
@@ -9203,6 +9304,34 @@ proto.clarifai.api.Concept.prototype.clearMetadata = function () {
9203
9304
  proto.clarifai.api.Concept.prototype.hasMetadata = function () {
9204
9305
  return jspb.Message.getField(this, 13) != null;
9205
9306
  };
9307
+ /**
9308
+ * optional Image image = 22;
9309
+ * @return {?proto.clarifai.api.Image}
9310
+ */
9311
+ proto.clarifai.api.Concept.prototype.getImage = function () {
9312
+ return /** @type{?proto.clarifai.api.Image} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 22));
9313
+ };
9314
+ /**
9315
+ * @param {?proto.clarifai.api.Image|undefined} value
9316
+ * @return {!proto.clarifai.api.Concept} returns this
9317
+ */
9318
+ proto.clarifai.api.Concept.prototype.setImage = function (value) {
9319
+ return jspb.Message.setWrapperField(this, 22, value);
9320
+ };
9321
+ /**
9322
+ * Clears the message field making it undefined.
9323
+ * @return {!proto.clarifai.api.Concept} returns this
9324
+ */
9325
+ proto.clarifai.api.Concept.prototype.clearImage = function () {
9326
+ return this.setImage(undefined);
9327
+ };
9328
+ /**
9329
+ * Returns whether this field is set.
9330
+ * @return {boolean}
9331
+ */
9332
+ proto.clarifai.api.Concept.prototype.hasImage = function () {
9333
+ return jspb.Message.getField(this, 22) != null;
9334
+ };
9206
9335
  /**
9207
9336
  * List of repeated fields within this message type.
9208
9337
  * @private {!Array<number>}
@@ -11101,7 +11230,7 @@ proto.clarifai.api.ConceptLanguage.prototype.setDefinition = function (value) {
11101
11230
  * @private {!Array<number>}
11102
11231
  * @const
11103
11232
  */
11104
- proto.clarifai.api.Data.repeatedFields_ = [3, 7, 8, 9, 11, 12, 15, 16, 17, 18];
11233
+ proto.clarifai.api.Data.repeatedFields_ = [3, 7, 8, 9, 11, 12, 15, 16, 17, 18, 19];
11105
11234
  if (jspb.Message.GENERATE_TO_OBJECT) {
11106
11235
  /**
11107
11236
  * Creates an object representation of this proto.
@@ -11144,7 +11273,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
11144
11273
  tracksList: jspb.Message.toObjectList(msg.getTracksList(), proto.clarifai.api.Track.toObject, includeInstance),
11145
11274
  timeSegmentsList: jspb.Message.toObjectList(msg.getTimeSegmentsList(), proto.clarifai.api.TimeSegment.toObject, includeInstance),
11146
11275
  hitsList: jspb.Message.toObjectList(msg.getHitsList(), proto.clarifai.api.Hit.toObject, includeInstance),
11147
- heatmapsList: jspb.Message.toObjectList(msg.getHeatmapsList(), proto.clarifai.api.Image.toObject, includeInstance)
11276
+ heatmapsList: jspb.Message.toObjectList(msg.getHeatmapsList(), proto.clarifai.api.Image.toObject, includeInstance),
11277
+ partsList: jspb.Message.toObjectList(msg.getPartsList(), proto.clarifai.api.Part.toObject, includeInstance),
11278
+ ndarray: (f = msg.getNdarray()) && proto.clarifai.api.NDArray.toObject(includeInstance, f)
11148
11279
  };
11149
11280
  if (includeInstance) {
11150
11281
  obj.$jspbMessageInstance = msg;
@@ -11256,6 +11387,16 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function (msg, reader) {
11256
11387
  reader.readMessage(value, proto.clarifai.api.Image.deserializeBinaryFromReader);
11257
11388
  msg.addHeatmaps(value);
11258
11389
  break;
11390
+ case 19:
11391
+ var value = new proto.clarifai.api.Part;
11392
+ reader.readMessage(value, proto.clarifai.api.Part.deserializeBinaryFromReader);
11393
+ msg.addParts(value);
11394
+ break;
11395
+ case 20:
11396
+ var value = new proto.clarifai.api.NDArray;
11397
+ reader.readMessage(value, proto.clarifai.api.NDArray.deserializeBinaryFromReader);
11398
+ msg.setNdarray(value);
11399
+ break;
11259
11400
  default:
11260
11401
  reader.skipField();
11261
11402
  break;
@@ -11345,6 +11486,14 @@ proto.clarifai.api.Data.serializeBinaryToWriter = function (message, writer) {
11345
11486
  if (f.length > 0) {
11346
11487
  writer.writeRepeatedMessage(18, f, proto.clarifai.api.Image.serializeBinaryToWriter);
11347
11488
  }
11489
+ f = message.getPartsList();
11490
+ if (f.length > 0) {
11491
+ writer.writeRepeatedMessage(19, f, proto.clarifai.api.Part.serializeBinaryToWriter);
11492
+ }
11493
+ f = message.getNdarray();
11494
+ if (f != null) {
11495
+ writer.writeMessage(20, f, proto.clarifai.api.NDArray.serializeBinaryToWriter);
11496
+ }
11348
11497
  };
11349
11498
  /**
11350
11499
  * optional Image image = 1;
@@ -11804,6 +11953,185 @@ proto.clarifai.api.Data.prototype.addHeatmaps = function (opt_value, opt_index)
11804
11953
  proto.clarifai.api.Data.prototype.clearHeatmapsList = function () {
11805
11954
  return this.setHeatmapsList([]);
11806
11955
  };
11956
+ /**
11957
+ * repeated Part parts = 19;
11958
+ * @return {!Array<!proto.clarifai.api.Part>}
11959
+ */
11960
+ proto.clarifai.api.Data.prototype.getPartsList = function () {
11961
+ return /** @type{!Array<!proto.clarifai.api.Part>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Part, 19));
11962
+ };
11963
+ /**
11964
+ * @param {!Array<!proto.clarifai.api.Part>} value
11965
+ * @return {!proto.clarifai.api.Data} returns this
11966
+ */
11967
+ proto.clarifai.api.Data.prototype.setPartsList = function (value) {
11968
+ return jspb.Message.setRepeatedWrapperField(this, 19, value);
11969
+ };
11970
+ /**
11971
+ * @param {!proto.clarifai.api.Part=} opt_value
11972
+ * @param {number=} opt_index
11973
+ * @return {!proto.clarifai.api.Part}
11974
+ */
11975
+ proto.clarifai.api.Data.prototype.addParts = function (opt_value, opt_index) {
11976
+ return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.clarifai.api.Part, opt_index);
11977
+ };
11978
+ /**
11979
+ * Clears the list making it empty but non-null.
11980
+ * @return {!proto.clarifai.api.Data} returns this
11981
+ */
11982
+ proto.clarifai.api.Data.prototype.clearPartsList = function () {
11983
+ return this.setPartsList([]);
11984
+ };
11985
+ /**
11986
+ * optional NDArray ndarray = 20;
11987
+ * @return {?proto.clarifai.api.NDArray}
11988
+ */
11989
+ proto.clarifai.api.Data.prototype.getNdarray = function () {
11990
+ return /** @type{?proto.clarifai.api.NDArray} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.NDArray, 20));
11991
+ };
11992
+ /**
11993
+ * @param {?proto.clarifai.api.NDArray|undefined} value
11994
+ * @return {!proto.clarifai.api.Data} returns this
11995
+ */
11996
+ proto.clarifai.api.Data.prototype.setNdarray = function (value) {
11997
+ return jspb.Message.setWrapperField(this, 20, value);
11998
+ };
11999
+ /**
12000
+ * Clears the message field making it undefined.
12001
+ * @return {!proto.clarifai.api.Data} returns this
12002
+ */
12003
+ proto.clarifai.api.Data.prototype.clearNdarray = function () {
12004
+ return this.setNdarray(undefined);
12005
+ };
12006
+ /**
12007
+ * Returns whether this field is set.
12008
+ * @return {boolean}
12009
+ */
12010
+ proto.clarifai.api.Data.prototype.hasNdarray = function () {
12011
+ return jspb.Message.getField(this, 20) != null;
12012
+ };
12013
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12014
+ /**
12015
+ * Creates an object representation of this proto.
12016
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12017
+ * Optional fields that are not set will be set to undefined.
12018
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12019
+ * For the list of reserved names please see:
12020
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12021
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12022
+ * JSPB instance for transitional soy proto support:
12023
+ * http://goto/soy-param-migration
12024
+ * @return {!Object}
12025
+ */
12026
+ proto.clarifai.api.Part.prototype.toObject = function (opt_includeInstance) {
12027
+ return proto.clarifai.api.Part.toObject(opt_includeInstance, this);
12028
+ };
12029
+ /**
12030
+ * Static version of the {@see toObject} method.
12031
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12032
+ * the JSPB instance for transitional soy proto support:
12033
+ * http://goto/soy-param-migration
12034
+ * @param {!proto.clarifai.api.Part} msg The msg instance to transform.
12035
+ * @return {!Object}
12036
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12037
+ */
12038
+ proto.clarifai.api.Part.toObject = function (includeInstance, msg) {
12039
+ var f, obj = {
12040
+ data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f)
12041
+ };
12042
+ if (includeInstance) {
12043
+ obj.$jspbMessageInstance = msg;
12044
+ }
12045
+ return obj;
12046
+ };
12047
+ }
12048
+ /**
12049
+ * Deserializes binary data (in protobuf wire format).
12050
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12051
+ * @return {!proto.clarifai.api.Part}
12052
+ */
12053
+ proto.clarifai.api.Part.deserializeBinary = function (bytes) {
12054
+ var reader = new jspb.BinaryReader(bytes);
12055
+ var msg = new proto.clarifai.api.Part;
12056
+ return proto.clarifai.api.Part.deserializeBinaryFromReader(msg, reader);
12057
+ };
12058
+ /**
12059
+ * Deserializes binary data (in protobuf wire format) from the
12060
+ * given reader into the given message object.
12061
+ * @param {!proto.clarifai.api.Part} msg The message object to deserialize into.
12062
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12063
+ * @return {!proto.clarifai.api.Part}
12064
+ */
12065
+ proto.clarifai.api.Part.deserializeBinaryFromReader = function (msg, reader) {
12066
+ while (reader.nextField()) {
12067
+ if (reader.isEndGroup()) {
12068
+ break;
12069
+ }
12070
+ var field = reader.getFieldNumber();
12071
+ switch (field) {
12072
+ case 1:
12073
+ var value = new proto.clarifai.api.Data;
12074
+ reader.readMessage(value, proto.clarifai.api.Data.deserializeBinaryFromReader);
12075
+ msg.setData(value);
12076
+ break;
12077
+ default:
12078
+ reader.skipField();
12079
+ break;
12080
+ }
12081
+ }
12082
+ return msg;
12083
+ };
12084
+ /**
12085
+ * Serializes the message to binary data (in protobuf wire format).
12086
+ * @return {!Uint8Array}
12087
+ */
12088
+ proto.clarifai.api.Part.prototype.serializeBinary = function () {
12089
+ var writer = new jspb.BinaryWriter();
12090
+ proto.clarifai.api.Part.serializeBinaryToWriter(this, writer);
12091
+ return writer.getResultBuffer();
12092
+ };
12093
+ /**
12094
+ * Serializes the given message to binary data (in protobuf wire
12095
+ * format), writing to the given BinaryWriter.
12096
+ * @param {!proto.clarifai.api.Part} message
12097
+ * @param {!jspb.BinaryWriter} writer
12098
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12099
+ */
12100
+ proto.clarifai.api.Part.serializeBinaryToWriter = function (message, writer) {
12101
+ var f = undefined;
12102
+ f = message.getData();
12103
+ if (f != null) {
12104
+ writer.writeMessage(1, f, proto.clarifai.api.Data.serializeBinaryToWriter);
12105
+ }
12106
+ };
12107
+ /**
12108
+ * optional Data data = 1;
12109
+ * @return {?proto.clarifai.api.Data}
12110
+ */
12111
+ proto.clarifai.api.Part.prototype.getData = function () {
12112
+ return /** @type{?proto.clarifai.api.Data} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 1));
12113
+ };
12114
+ /**
12115
+ * @param {?proto.clarifai.api.Data|undefined} value
12116
+ * @return {!proto.clarifai.api.Part} returns this
12117
+ */
12118
+ proto.clarifai.api.Part.prototype.setData = function (value) {
12119
+ return jspb.Message.setWrapperField(this, 1, value);
12120
+ };
12121
+ /**
12122
+ * Clears the message field making it undefined.
12123
+ * @return {!proto.clarifai.api.Part} returns this
12124
+ */
12125
+ proto.clarifai.api.Part.prototype.clearData = function () {
12126
+ return this.setData(undefined);
12127
+ };
12128
+ /**
12129
+ * Returns whether this field is set.
12130
+ * @return {boolean}
12131
+ */
12132
+ proto.clarifai.api.Part.prototype.hasData = function () {
12133
+ return jspb.Message.getField(this, 1) != null;
12134
+ };
11807
12135
  if (jspb.Message.GENERATE_TO_OBJECT) {
11808
12136
  /**
11809
12137
  * Creates an object representation of this proto.
@@ -12879,6 +13207,200 @@ proto.clarifai.api.Frame.prototype.getId = function () {
12879
13207
  proto.clarifai.api.Frame.prototype.setId = function (value) {
12880
13208
  return jspb.Message.setProto3StringField(this, 3, value);
12881
13209
  };
13210
+ /**
13211
+ * List of repeated fields within this message type.
13212
+ * @private {!Array<number>}
13213
+ * @const
13214
+ */
13215
+ proto.clarifai.api.NDArray.repeatedFields_ = [2];
13216
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13217
+ /**
13218
+ * Creates an object representation of this proto.
13219
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13220
+ * Optional fields that are not set will be set to undefined.
13221
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13222
+ * For the list of reserved names please see:
13223
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13224
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13225
+ * JSPB instance for transitional soy proto support:
13226
+ * http://goto/soy-param-migration
13227
+ * @return {!Object}
13228
+ */
13229
+ proto.clarifai.api.NDArray.prototype.toObject = function (opt_includeInstance) {
13230
+ return proto.clarifai.api.NDArray.toObject(opt_includeInstance, this);
13231
+ };
13232
+ /**
13233
+ * Static version of the {@see toObject} method.
13234
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13235
+ * the JSPB instance for transitional soy proto support:
13236
+ * http://goto/soy-param-migration
13237
+ * @param {!proto.clarifai.api.NDArray} msg The msg instance to transform.
13238
+ * @return {!Object}
13239
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13240
+ */
13241
+ proto.clarifai.api.NDArray.toObject = function (includeInstance, msg) {
13242
+ var f, obj = {
13243
+ buffer: msg.getBuffer_asB64(),
13244
+ shapeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
13245
+ dtype: jspb.Message.getFieldWithDefault(msg, 3, "")
13246
+ };
13247
+ if (includeInstance) {
13248
+ obj.$jspbMessageInstance = msg;
13249
+ }
13250
+ return obj;
13251
+ };
13252
+ }
13253
+ /**
13254
+ * Deserializes binary data (in protobuf wire format).
13255
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13256
+ * @return {!proto.clarifai.api.NDArray}
13257
+ */
13258
+ proto.clarifai.api.NDArray.deserializeBinary = function (bytes) {
13259
+ var reader = new jspb.BinaryReader(bytes);
13260
+ var msg = new proto.clarifai.api.NDArray;
13261
+ return proto.clarifai.api.NDArray.deserializeBinaryFromReader(msg, reader);
13262
+ };
13263
+ /**
13264
+ * Deserializes binary data (in protobuf wire format) from the
13265
+ * given reader into the given message object.
13266
+ * @param {!proto.clarifai.api.NDArray} msg The message object to deserialize into.
13267
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13268
+ * @return {!proto.clarifai.api.NDArray}
13269
+ */
13270
+ proto.clarifai.api.NDArray.deserializeBinaryFromReader = function (msg, reader) {
13271
+ while (reader.nextField()) {
13272
+ if (reader.isEndGroup()) {
13273
+ break;
13274
+ }
13275
+ var field = reader.getFieldNumber();
13276
+ switch (field) {
13277
+ case 1:
13278
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
13279
+ msg.setBuffer(value);
13280
+ break;
13281
+ case 2:
13282
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
13283
+ for (var i = 0; i < values.length; i++) {
13284
+ msg.addShape(values[i]);
13285
+ }
13286
+ break;
13287
+ case 3:
13288
+ var value = /** @type {string} */ (reader.readString());
13289
+ msg.setDtype(value);
13290
+ break;
13291
+ default:
13292
+ reader.skipField();
13293
+ break;
13294
+ }
13295
+ }
13296
+ return msg;
13297
+ };
13298
+ /**
13299
+ * Serializes the message to binary data (in protobuf wire format).
13300
+ * @return {!Uint8Array}
13301
+ */
13302
+ proto.clarifai.api.NDArray.prototype.serializeBinary = function () {
13303
+ var writer = new jspb.BinaryWriter();
13304
+ proto.clarifai.api.NDArray.serializeBinaryToWriter(this, writer);
13305
+ return writer.getResultBuffer();
13306
+ };
13307
+ /**
13308
+ * Serializes the given message to binary data (in protobuf wire
13309
+ * format), writing to the given BinaryWriter.
13310
+ * @param {!proto.clarifai.api.NDArray} message
13311
+ * @param {!jspb.BinaryWriter} writer
13312
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13313
+ */
13314
+ proto.clarifai.api.NDArray.serializeBinaryToWriter = function (message, writer) {
13315
+ var f = undefined;
13316
+ f = message.getBuffer_asU8();
13317
+ if (f.length > 0) {
13318
+ writer.writeBytes(1, f);
13319
+ }
13320
+ f = message.getShapeList();
13321
+ if (f.length > 0) {
13322
+ writer.writePackedUint32(2, f);
13323
+ }
13324
+ f = message.getDtype();
13325
+ if (f.length > 0) {
13326
+ writer.writeString(3, f);
13327
+ }
13328
+ };
13329
+ /**
13330
+ * optional bytes buffer = 1;
13331
+ * @return {string}
13332
+ */
13333
+ proto.clarifai.api.NDArray.prototype.getBuffer = function () {
13334
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13335
+ };
13336
+ /**
13337
+ * optional bytes buffer = 1;
13338
+ * This is a type-conversion wrapper around `getBuffer()`
13339
+ * @return {string}
13340
+ */
13341
+ proto.clarifai.api.NDArray.prototype.getBuffer_asB64 = function () {
13342
+ return /** @type {string} */ (jspb.Message.bytesAsB64(this.getBuffer()));
13343
+ };
13344
+ /**
13345
+ * optional bytes buffer = 1;
13346
+ * Note that Uint8Array is not supported on all browsers.
13347
+ * @see http://caniuse.com/Uint8Array
13348
+ * This is a type-conversion wrapper around `getBuffer()`
13349
+ * @return {!Uint8Array}
13350
+ */
13351
+ proto.clarifai.api.NDArray.prototype.getBuffer_asU8 = function () {
13352
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getBuffer()));
13353
+ };
13354
+ /**
13355
+ * @param {!(string|Uint8Array)} value
13356
+ * @return {!proto.clarifai.api.NDArray} returns this
13357
+ */
13358
+ proto.clarifai.api.NDArray.prototype.setBuffer = function (value) {
13359
+ return jspb.Message.setProto3BytesField(this, 1, value);
13360
+ };
13361
+ /**
13362
+ * repeated uint32 shape = 2;
13363
+ * @return {!Array<number>}
13364
+ */
13365
+ proto.clarifai.api.NDArray.prototype.getShapeList = function () {
13366
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
13367
+ };
13368
+ /**
13369
+ * @param {!Array<number>} value
13370
+ * @return {!proto.clarifai.api.NDArray} returns this
13371
+ */
13372
+ proto.clarifai.api.NDArray.prototype.setShapeList = function (value) {
13373
+ return jspb.Message.setField(this, 2, value || []);
13374
+ };
13375
+ /**
13376
+ * @param {number} value
13377
+ * @param {number=} opt_index
13378
+ * @return {!proto.clarifai.api.NDArray} returns this
13379
+ */
13380
+ proto.clarifai.api.NDArray.prototype.addShape = function (value, opt_index) {
13381
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
13382
+ };
13383
+ /**
13384
+ * Clears the list making it empty but non-null.
13385
+ * @return {!proto.clarifai.api.NDArray} returns this
13386
+ */
13387
+ proto.clarifai.api.NDArray.prototype.clearShapeList = function () {
13388
+ return this.setShapeList([]);
13389
+ };
13390
+ /**
13391
+ * optional string dtype = 3;
13392
+ * @return {string}
13393
+ */
13394
+ proto.clarifai.api.NDArray.prototype.getDtype = function () {
13395
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
13396
+ };
13397
+ /**
13398
+ * @param {string} value
13399
+ * @return {!proto.clarifai.api.NDArray} returns this
13400
+ */
13401
+ proto.clarifai.api.NDArray.prototype.setDtype = function (value) {
13402
+ return jspb.Message.setProto3StringField(this, 3, value);
13403
+ };
12882
13404
  if (jspb.Message.GENERATE_TO_OBJECT) {
12883
13405
  /**
12884
13406
  * Creates an object representation of this proto.
@@ -38830,7 +39352,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
38830
39352
  type: jspb.Message.getFieldWithDefault(msg, 4, 0),
38831
39353
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
38832
39354
  worker: (f = msg.getWorker()) && proto.clarifai.api.TaskWorker.toObject(includeInstance, f),
38833
- workerType: jspb.Message.getFieldWithDefault(msg, 22, 0),
38834
39355
  conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
38835
39356
  inputSource: (f = msg.getInputSource()) && proto.clarifai.api.TaskInputSource.toObject(includeInstance, f),
38836
39357
  sampleMs: jspb.Message.getFieldWithDefault(msg, 9, 0),
@@ -38905,10 +39426,6 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function (msg, reader) {
38905
39426
  reader.readMessage(value, proto.clarifai.api.TaskWorker.deserializeBinaryFromReader);
38906
39427
  msg.setWorker(value);
38907
39428
  break;
38908
- case 22:
38909
- var value = /** @type {!proto.clarifai.api.Task.WorkerType} */ (reader.readEnum());
38910
- msg.setWorkerType(value);
38911
- break;
38912
39429
  case 7:
38913
39430
  var value = /** @type {string} */ (reader.readString());
38914
39431
  msg.addConceptIds(value);
@@ -39030,10 +39547,6 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
39030
39547
  if (f != null) {
39031
39548
  writer.writeMessage(6, f, proto.clarifai.api.TaskWorker.serializeBinaryToWriter);
39032
39549
  }
39033
- f = message.getWorkerType();
39034
- if (f !== 0.0) {
39035
- writer.writeEnum(22, f);
39036
- }
39037
39550
  f = message.getConceptIdsList();
39038
39551
  if (f.length > 0) {
39039
39552
  writer.writeRepeatedString(7, f);
@@ -39099,14 +39612,6 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
39099
39612
  writer.writeEnum(23, f);
39100
39613
  }
39101
39614
  };
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
39615
  /**
39111
39616
  * @enum {number}
39112
39617
  */
@@ -39251,20 +39756,6 @@ proto.clarifai.api.Task.prototype.clearWorker = function () {
39251
39756
  proto.clarifai.api.Task.prototype.hasWorker = function () {
39252
39757
  return jspb.Message.getField(this, 6) != null;
39253
39758
  };
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
39759
  /**
39269
39760
  * repeated string concept_ids = 7;
39270
39761
  * @return {!Array<string>}
@@ -39850,7 +40341,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
39850
40341
  userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
39851
40342
  usersList: jspb.Message.toObjectList(msg.getUsersList(), proto.clarifai.api.User.toObject, includeInstance),
39852
40343
  partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f),
39853
- workersList: jspb.Message.toObjectList(msg.getWorkersList(), proto.clarifai.api.Worker.toObject, includeInstance)
40344
+ workersList: jspb.Message.toObjectList(msg.getWorkersList(), proto.clarifai.api.Worker.toObject, includeInstance),
40345
+ type: jspb.Message.getFieldWithDefault(msg, 8, 0)
39854
40346
  };
39855
40347
  if (includeInstance) {
39856
40348
  obj.$jspbMessageInstance = msg;
@@ -39905,6 +40397,10 @@ proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function (msg, reade
39905
40397
  reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
39906
40398
  msg.addWorkers(value);
39907
40399
  break;
40400
+ case 8:
40401
+ var value = /** @type {!proto.clarifai.api.TaskWorker.WorkerType} */ (reader.readEnum());
40402
+ msg.setType(value);
40403
+ break;
39908
40404
  default:
39909
40405
  reader.skipField();
39910
40406
  break;
@@ -39950,6 +40446,10 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function (message, write
39950
40446
  if (f.length > 0) {
39951
40447
  writer.writeRepeatedMessage(7, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
39952
40448
  }
40449
+ f = message.getType();
40450
+ if (f !== 0.0) {
40451
+ writer.writeEnum(8, f);
40452
+ }
39953
40453
  };
39954
40454
  /**
39955
40455
  * @enum {number}
@@ -39960,6 +40460,14 @@ proto.clarifai.api.TaskWorker.TaskWorkerStrategy = {
39960
40460
  FULL: 3,
39961
40461
  DYNAMIC: 4
39962
40462
  };
40463
+ /**
40464
+ * @enum {number}
40465
+ */
40466
+ proto.clarifai.api.TaskWorker.WorkerType = {
40467
+ WORKER_TYPE_NOT_SET: 0,
40468
+ WORKER_HUMAN: 1,
40469
+ WORKER_AUTO: 2
40470
+ };
39963
40471
  /**
39964
40472
  * optional TaskWorkerStrategy strategy = 1;
39965
40473
  * @return {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy}
@@ -40089,6 +40597,20 @@ proto.clarifai.api.TaskWorker.prototype.addWorkers = function (opt_value, opt_in
40089
40597
  proto.clarifai.api.TaskWorker.prototype.clearWorkersList = function () {
40090
40598
  return this.setWorkersList([]);
40091
40599
  };
40600
+ /**
40601
+ * optional WorkerType type = 8;
40602
+ * @return {!proto.clarifai.api.TaskWorker.WorkerType}
40603
+ */
40604
+ proto.clarifai.api.TaskWorker.prototype.getType = function () {
40605
+ return /** @type {!proto.clarifai.api.TaskWorker.WorkerType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
40606
+ };
40607
+ /**
40608
+ * @param {!proto.clarifai.api.TaskWorker.WorkerType} value
40609
+ * @return {!proto.clarifai.api.TaskWorker} returns this
40610
+ */
40611
+ proto.clarifai.api.TaskWorker.prototype.setType = function (value) {
40612
+ return jspb.Message.setProto3EnumField(this, 8, value);
40613
+ };
40092
40614
  if (jspb.Message.GENERATE_TO_OBJECT) {
40093
40615
  /**
40094
40616
  * Creates an object representation of this proto.
@@ -40729,7 +41251,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
40729
41251
  */
40730
41252
  proto.clarifai.api.TaskReviewManualStrategyInfo.toObject = function (includeInstance, msg) {
40731
41253
  var f, obj = {
40732
- samplePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0)
41254
+ samplePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
41255
+ approvalThreshold: jspb.Message.getFieldWithDefault(msg, 2, 0)
40733
41256
  };
40734
41257
  if (includeInstance) {
40735
41258
  obj.$jspbMessageInstance = msg;
@@ -40765,6 +41288,10 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinaryFromReader = fu
40765
41288
  var value = /** @type {number} */ (reader.readFloat());
40766
41289
  msg.setSamplePercentage(value);
40767
41290
  break;
41291
+ case 2:
41292
+ var value = /** @type {number} */ (reader.readInt32());
41293
+ msg.setApprovalThreshold(value);
41294
+ break;
40768
41295
  default:
40769
41296
  reader.skipField();
40770
41297
  break;
@@ -40794,6 +41321,10 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.serializeBinaryToWriter = functi
40794
41321
  if (f !== 0.0) {
40795
41322
  writer.writeFloat(1, f);
40796
41323
  }
41324
+ f = message.getApprovalThreshold();
41325
+ if (f !== 0) {
41326
+ writer.writeInt32(2, f);
41327
+ }
40797
41328
  };
40798
41329
  /**
40799
41330
  * optional float sample_percentage = 1;
@@ -40809,6 +41340,20 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.getSamplePercentage =
40809
41340
  proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.setSamplePercentage = function (value) {
40810
41341
  return jspb.Message.setProto3FloatField(this, 1, value);
40811
41342
  };
41343
+ /**
41344
+ * optional int32 approval_threshold = 2;
41345
+ * @return {number}
41346
+ */
41347
+ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.getApprovalThreshold = function () {
41348
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
41349
+ };
41350
+ /**
41351
+ * @param {number} value
41352
+ * @return {!proto.clarifai.api.TaskReviewManualStrategyInfo} returns this
41353
+ */
41354
+ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.setApprovalThreshold = function (value) {
41355
+ return jspb.Message.setProto3IntField(this, 2, value);
41356
+ };
40812
41357
  if (jspb.Message.GENERATE_TO_OBJECT) {
40813
41358
  /**
40814
41359
  * Creates an object representation of this proto.
@@ -56351,6 +56896,443 @@ proto.clarifai.api.AuditLogQuery.prototype.addSourceIps = function (value, opt_i
56351
56896
  proto.clarifai.api.AuditLogQuery.prototype.clearSourceIpsList = function () {
56352
56897
  return this.setSourceIpsList([]);
56353
56898
  };
56899
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56900
+ /**
56901
+ * Creates an object representation of this proto.
56902
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56903
+ * Optional fields that are not set will be set to undefined.
56904
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56905
+ * For the list of reserved names please see:
56906
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56907
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56908
+ * JSPB instance for transitional soy proto support:
56909
+ * http://goto/soy-param-migration
56910
+ * @return {!Object}
56911
+ */
56912
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.toObject = function (opt_includeInstance) {
56913
+ return proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject(opt_includeInstance, this);
56914
+ };
56915
+ /**
56916
+ * Static version of the {@see toObject} method.
56917
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56918
+ * the JSPB instance for transitional soy proto support:
56919
+ * http://goto/soy-param-migration
56920
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} msg The msg instance to transform.
56921
+ * @return {!Object}
56922
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56923
+ */
56924
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject = function (includeInstance, msg) {
56925
+ var f, obj = {
56926
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
56927
+ summary: jspb.Message.getFieldWithDefault(msg, 2, ""),
56928
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
56929
+ dataType: jspb.Message.getFieldWithDefault(msg, 4, 0),
56930
+ visualisationType: jspb.Message.getFieldWithDefault(msg, 5, 0)
56931
+ };
56932
+ if (includeInstance) {
56933
+ obj.$jspbMessageInstance = msg;
56934
+ }
56935
+ return obj;
56936
+ };
56937
+ }
56938
+ /**
56939
+ * Deserializes binary data (in protobuf wire format).
56940
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56941
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
56942
+ */
56943
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinary = function (bytes) {
56944
+ var reader = new jspb.BinaryReader(bytes);
56945
+ var msg = new proto.clarifai.api.WorkflowVersionEvaluationMetric;
56946
+ return proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader(msg, reader);
56947
+ };
56948
+ /**
56949
+ * Deserializes binary data (in protobuf wire format) from the
56950
+ * given reader into the given message object.
56951
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} msg The message object to deserialize into.
56952
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56953
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
56954
+ */
56955
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader = function (msg, reader) {
56956
+ while (reader.nextField()) {
56957
+ if (reader.isEndGroup()) {
56958
+ break;
56959
+ }
56960
+ var field = reader.getFieldNumber();
56961
+ switch (field) {
56962
+ case 1:
56963
+ var value = /** @type {string} */ (reader.readString());
56964
+ msg.setId(value);
56965
+ break;
56966
+ case 2:
56967
+ var value = /** @type {string} */ (reader.readString());
56968
+ msg.setSummary(value);
56969
+ break;
56970
+ case 3:
56971
+ var value = /** @type {string} */ (reader.readString());
56972
+ msg.setDescription(value);
56973
+ break;
56974
+ case 4:
56975
+ var value = /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} */ (reader.readEnum());
56976
+ msg.setDataType(value);
56977
+ break;
56978
+ case 5:
56979
+ var value = /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} */ (reader.readEnum());
56980
+ msg.setVisualisationType(value);
56981
+ break;
56982
+ default:
56983
+ reader.skipField();
56984
+ break;
56985
+ }
56986
+ }
56987
+ return msg;
56988
+ };
56989
+ /**
56990
+ * Serializes the message to binary data (in protobuf wire format).
56991
+ * @return {!Uint8Array}
56992
+ */
56993
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.serializeBinary = function () {
56994
+ var writer = new jspb.BinaryWriter();
56995
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter(this, writer);
56996
+ return writer.getResultBuffer();
56997
+ };
56998
+ /**
56999
+ * Serializes the given message to binary data (in protobuf wire
57000
+ * format), writing to the given BinaryWriter.
57001
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} message
57002
+ * @param {!jspb.BinaryWriter} writer
57003
+ * @suppress {unusedLocalVariables} f is only used for nested messages
57004
+ */
57005
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter = function (message, writer) {
57006
+ var f = undefined;
57007
+ f = message.getId();
57008
+ if (f.length > 0) {
57009
+ writer.writeString(1, f);
57010
+ }
57011
+ f = message.getSummary();
57012
+ if (f.length > 0) {
57013
+ writer.writeString(2, f);
57014
+ }
57015
+ f = message.getDescription();
57016
+ if (f.length > 0) {
57017
+ writer.writeString(3, f);
57018
+ }
57019
+ f = message.getDataType();
57020
+ if (f !== 0.0) {
57021
+ writer.writeEnum(4, f);
57022
+ }
57023
+ f = message.getVisualisationType();
57024
+ if (f !== 0.0) {
57025
+ writer.writeEnum(5, f);
57026
+ }
57027
+ };
57028
+ /**
57029
+ * @enum {number}
57030
+ */
57031
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType = {
57032
+ DATA_TYPE_NOT_SET: 0,
57033
+ FLOAT: 1
57034
+ };
57035
+ /**
57036
+ * @enum {number}
57037
+ */
57038
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType = {
57039
+ VISUALIZATION_TYPE_NOT_SET: 0,
57040
+ CONFUSION_MATRIX: 1,
57041
+ PRECISION_RECALL_CURVE: 2,
57042
+ ROC_AUC_CURVE: 3
57043
+ };
57044
+ /**
57045
+ * optional string id = 1;
57046
+ * @return {string}
57047
+ */
57048
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getId = function () {
57049
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
57050
+ };
57051
+ /**
57052
+ * @param {string} value
57053
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
57054
+ */
57055
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setId = function (value) {
57056
+ return jspb.Message.setProto3StringField(this, 1, value);
57057
+ };
57058
+ /**
57059
+ * optional string summary = 2;
57060
+ * @return {string}
57061
+ */
57062
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getSummary = function () {
57063
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
57064
+ };
57065
+ /**
57066
+ * @param {string} value
57067
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
57068
+ */
57069
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setSummary = function (value) {
57070
+ return jspb.Message.setProto3StringField(this, 2, value);
57071
+ };
57072
+ /**
57073
+ * optional string description = 3;
57074
+ * @return {string}
57075
+ */
57076
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getDescription = function () {
57077
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
57078
+ };
57079
+ /**
57080
+ * @param {string} value
57081
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
57082
+ */
57083
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setDescription = function (value) {
57084
+ return jspb.Message.setProto3StringField(this, 3, value);
57085
+ };
57086
+ /**
57087
+ * optional DataType data_type = 4;
57088
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType}
57089
+ */
57090
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getDataType = function () {
57091
+ return /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
57092
+ };
57093
+ /**
57094
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} value
57095
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
57096
+ */
57097
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setDataType = function (value) {
57098
+ return jspb.Message.setProto3EnumField(this, 4, value);
57099
+ };
57100
+ /**
57101
+ * optional VisualisationType visualisation_type = 5;
57102
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType}
57103
+ */
57104
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getVisualisationType = function () {
57105
+ return /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
57106
+ };
57107
+ /**
57108
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} value
57109
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
57110
+ */
57111
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setVisualisationType = function (value) {
57112
+ return jspb.Message.setProto3EnumField(this, 5, value);
57113
+ };
57114
+ /**
57115
+ * List of repeated fields within this message type.
57116
+ * @private {!Array<number>}
57117
+ * @const
57118
+ */
57119
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.repeatedFields_ = [3, 4];
57120
+ if (jspb.Message.GENERATE_TO_OBJECT) {
57121
+ /**
57122
+ * Creates an object representation of this proto.
57123
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
57124
+ * Optional fields that are not set will be set to undefined.
57125
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
57126
+ * For the list of reserved names please see:
57127
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
57128
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
57129
+ * JSPB instance for transitional soy proto support:
57130
+ * http://goto/soy-param-migration
57131
+ * @return {!Object}
57132
+ */
57133
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.toObject = function (opt_includeInstance) {
57134
+ return proto.clarifai.api.WorkflowVersionEvaluationTemplate.toObject(opt_includeInstance, this);
57135
+ };
57136
+ /**
57137
+ * Static version of the {@see toObject} method.
57138
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
57139
+ * the JSPB instance for transitional soy proto support:
57140
+ * http://goto/soy-param-migration
57141
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} msg The msg instance to transform.
57142
+ * @return {!Object}
57143
+ * @suppress {unusedLocalVariables} f is only used for nested messages
57144
+ */
57145
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.toObject = function (includeInstance, msg) {
57146
+ var f, obj = {
57147
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
57148
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
57149
+ taskTypesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
57150
+ workflowVersionEvaluationMetricsList: jspb.Message.toObjectList(msg.getWorkflowVersionEvaluationMetricsList(), proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject, includeInstance)
57151
+ };
57152
+ if (includeInstance) {
57153
+ obj.$jspbMessageInstance = msg;
57154
+ }
57155
+ return obj;
57156
+ };
57157
+ }
57158
+ /**
57159
+ * Deserializes binary data (in protobuf wire format).
57160
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
57161
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate}
57162
+ */
57163
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinary = function (bytes) {
57164
+ var reader = new jspb.BinaryReader(bytes);
57165
+ var msg = new proto.clarifai.api.WorkflowVersionEvaluationTemplate;
57166
+ return proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinaryFromReader(msg, reader);
57167
+ };
57168
+ /**
57169
+ * Deserializes binary data (in protobuf wire format) from the
57170
+ * given reader into the given message object.
57171
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} msg The message object to deserialize into.
57172
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
57173
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate}
57174
+ */
57175
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinaryFromReader = function (msg, reader) {
57176
+ while (reader.nextField()) {
57177
+ if (reader.isEndGroup()) {
57178
+ break;
57179
+ }
57180
+ var field = reader.getFieldNumber();
57181
+ switch (field) {
57182
+ case 1:
57183
+ var value = /** @type {string} */ (reader.readString());
57184
+ msg.setId(value);
57185
+ break;
57186
+ case 2:
57187
+ var value = /** @type {string} */ (reader.readString());
57188
+ msg.setDescription(value);
57189
+ break;
57190
+ case 3:
57191
+ var values = /** @type {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
57192
+ for (var i = 0; i < values.length; i++) {
57193
+ msg.addTaskTypes(values[i]);
57194
+ }
57195
+ break;
57196
+ case 4:
57197
+ var value = new proto.clarifai.api.WorkflowVersionEvaluationMetric;
57198
+ reader.readMessage(value, proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader);
57199
+ msg.addWorkflowVersionEvaluationMetrics(value);
57200
+ break;
57201
+ default:
57202
+ reader.skipField();
57203
+ break;
57204
+ }
57205
+ }
57206
+ return msg;
57207
+ };
57208
+ /**
57209
+ * Serializes the message to binary data (in protobuf wire format).
57210
+ * @return {!Uint8Array}
57211
+ */
57212
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.serializeBinary = function () {
57213
+ var writer = new jspb.BinaryWriter();
57214
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.serializeBinaryToWriter(this, writer);
57215
+ return writer.getResultBuffer();
57216
+ };
57217
+ /**
57218
+ * Serializes the given message to binary data (in protobuf wire
57219
+ * format), writing to the given BinaryWriter.
57220
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} message
57221
+ * @param {!jspb.BinaryWriter} writer
57222
+ * @suppress {unusedLocalVariables} f is only used for nested messages
57223
+ */
57224
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.serializeBinaryToWriter = function (message, writer) {
57225
+ var f = undefined;
57226
+ f = message.getId();
57227
+ if (f.length > 0) {
57228
+ writer.writeString(1, f);
57229
+ }
57230
+ f = message.getDescription();
57231
+ if (f.length > 0) {
57232
+ writer.writeString(2, f);
57233
+ }
57234
+ f = message.getTaskTypesList();
57235
+ if (f.length > 0) {
57236
+ writer.writePackedEnum(3, f);
57237
+ }
57238
+ f = message.getWorkflowVersionEvaluationMetricsList();
57239
+ if (f.length > 0) {
57240
+ writer.writeRepeatedMessage(4, f, proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter);
57241
+ }
57242
+ };
57243
+ /**
57244
+ * @enum {number}
57245
+ */
57246
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType = {
57247
+ TASK_TYPE_NOT_SET: 0,
57248
+ TEXT_CLASSIFICATION: 1
57249
+ };
57250
+ /**
57251
+ * optional string id = 1;
57252
+ * @return {string}
57253
+ */
57254
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getId = function () {
57255
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
57256
+ };
57257
+ /**
57258
+ * @param {string} value
57259
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
57260
+ */
57261
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setId = function (value) {
57262
+ return jspb.Message.setProto3StringField(this, 1, value);
57263
+ };
57264
+ /**
57265
+ * optional string description = 2;
57266
+ * @return {string}
57267
+ */
57268
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getDescription = function () {
57269
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
57270
+ };
57271
+ /**
57272
+ * @param {string} value
57273
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
57274
+ */
57275
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setDescription = function (value) {
57276
+ return jspb.Message.setProto3StringField(this, 2, value);
57277
+ };
57278
+ /**
57279
+ * repeated TaskType task_types = 3;
57280
+ * @return {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>}
57281
+ */
57282
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getTaskTypesList = function () {
57283
+ return /** @type {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} */ (jspb.Message.getRepeatedField(this, 3));
57284
+ };
57285
+ /**
57286
+ * @param {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} value
57287
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
57288
+ */
57289
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setTaskTypesList = function (value) {
57290
+ return jspb.Message.setField(this, 3, value || []);
57291
+ };
57292
+ /**
57293
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType} value
57294
+ * @param {number=} opt_index
57295
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
57296
+ */
57297
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.addTaskTypes = function (value, opt_index) {
57298
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
57299
+ };
57300
+ /**
57301
+ * Clears the list making it empty but non-null.
57302
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
57303
+ */
57304
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearTaskTypesList = function () {
57305
+ return this.setTaskTypesList([]);
57306
+ };
57307
+ /**
57308
+ * repeated WorkflowVersionEvaluationMetric workflow_version_evaluation_metrics = 4;
57309
+ * @return {!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>}
57310
+ */
57311
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getWorkflowVersionEvaluationMetricsList = function () {
57312
+ return /** @type{!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.WorkflowVersionEvaluationMetric, 4));
57313
+ };
57314
+ /**
57315
+ * @param {!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>} value
57316
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
57317
+ */
57318
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setWorkflowVersionEvaluationMetricsList = function (value) {
57319
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
57320
+ };
57321
+ /**
57322
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric=} opt_value
57323
+ * @param {number=} opt_index
57324
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
57325
+ */
57326
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.addWorkflowVersionEvaluationMetrics = function (opt_value, opt_index) {
57327
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.WorkflowVersionEvaluationMetric, opt_index);
57328
+ };
57329
+ /**
57330
+ * Clears the list making it empty but non-null.
57331
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
57332
+ */
57333
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVersionEvaluationMetricsList = function () {
57334
+ return this.setWorkflowVersionEvaluationMetricsList([]);
57335
+ };
56354
57336
  /**
56355
57337
  * @enum {number}
56356
57338
  */