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.
@@ -195,6 +195,7 @@ goog.exportSymbol('proto.clarifai.api.ModuleStar', null, global);
195
195
  goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global);
196
196
  goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global);
197
197
  goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global);
198
+ goog.exportSymbol('proto.clarifai.api.NDArray', null, global);
198
199
  goog.exportSymbol('proto.clarifai.api.NodeCapacityType', null, global);
199
200
  goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, global);
200
201
  goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
@@ -206,6 +207,7 @@ goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
206
207
  goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global);
207
208
  goog.exportSymbol('proto.clarifai.api.OverwriteGeo', null, global);
208
209
  goog.exportSymbol('proto.clarifai.api.PCAProjectionComparator', null, global);
210
+ goog.exportSymbol('proto.clarifai.api.Part', null, global);
209
211
  goog.exportSymbol('proto.clarifai.api.Password', null, global);
210
212
  goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global);
211
213
  goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
@@ -240,7 +242,6 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
240
242
  goog.exportSymbol('proto.clarifai.api.Task', null, global);
241
243
  goog.exportSymbol('proto.clarifai.api.Task.TaskPriority', null, global);
242
244
  goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
243
- goog.exportSymbol('proto.clarifai.api.Task.WorkerType', null, global);
244
245
  goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
245
246
  goog.exportSymbol('proto.clarifai.api.TaskAssignment', null, global);
246
247
  goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
@@ -260,6 +261,7 @@ goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
260
261
  goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
261
262
  goog.exportSymbol('proto.clarifai.api.TaskWorker.StrategyInfoCase', null, global);
262
263
  goog.exportSymbol('proto.clarifai.api.TaskWorker.TaskWorkerStrategy', null, global);
264
+ goog.exportSymbol('proto.clarifai.api.TaskWorker.WorkerType', null, global);
263
265
  goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo', null, global);
264
266
  goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy', null, global);
265
267
  goog.exportSymbol('proto.clarifai.api.Text', null, global);
@@ -296,6 +298,11 @@ goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
296
298
  goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
297
299
  goog.exportSymbol('proto.clarifai.api.WorkflowState', null, global);
298
300
  goog.exportSymbol('proto.clarifai.api.WorkflowVersion', null, global);
301
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric', null, global);
302
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType', null, global);
303
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType', null, global);
304
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationTemplate', null, global);
305
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType', null, global);
299
306
  /**
300
307
  * Generated by JsPbCodeGenerator.
301
308
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -884,6 +891,27 @@ if (goog.DEBUG && !COMPILED) {
884
891
  */
885
892
  proto.clarifai.api.Data.displayName = 'proto.clarifai.api.Data';
886
893
  }
894
+ /**
895
+ * Generated by JsPbCodeGenerator.
896
+ * @param {Array=} opt_data Optional initial data array, typically from a
897
+ * server response, or constructed directly in Javascript. The array is used
898
+ * in place and becomes part of the constructed object. It is not cloned.
899
+ * If no data is provided, the constructed object will be empty, but still
900
+ * valid.
901
+ * @extends {jspb.Message}
902
+ * @constructor
903
+ */
904
+ proto.clarifai.api.Part = function(opt_data) {
905
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
906
+ };
907
+ goog.inherits(proto.clarifai.api.Part, jspb.Message);
908
+ if (goog.DEBUG && !COMPILED) {
909
+ /**
910
+ * @public
911
+ * @override
912
+ */
913
+ proto.clarifai.api.Part.displayName = 'proto.clarifai.api.Part';
914
+ }
887
915
  /**
888
916
  * Generated by JsPbCodeGenerator.
889
917
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -989,6 +1017,27 @@ if (goog.DEBUG && !COMPILED) {
989
1017
  */
990
1018
  proto.clarifai.api.Frame.displayName = 'proto.clarifai.api.Frame';
991
1019
  }
1020
+ /**
1021
+ * Generated by JsPbCodeGenerator.
1022
+ * @param {Array=} opt_data Optional initial data array, typically from a
1023
+ * server response, or constructed directly in Javascript. The array is used
1024
+ * in place and becomes part of the constructed object. It is not cloned.
1025
+ * If no data is provided, the constructed object will be empty, but still
1026
+ * valid.
1027
+ * @extends {jspb.Message}
1028
+ * @constructor
1029
+ */
1030
+ proto.clarifai.api.NDArray = function(opt_data) {
1031
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.NDArray.repeatedFields_, null);
1032
+ };
1033
+ goog.inherits(proto.clarifai.api.NDArray, jspb.Message);
1034
+ if (goog.DEBUG && !COMPILED) {
1035
+ /**
1036
+ * @public
1037
+ * @override
1038
+ */
1039
+ proto.clarifai.api.NDArray.displayName = 'proto.clarifai.api.NDArray';
1040
+ }
992
1041
  /**
993
1042
  * Generated by JsPbCodeGenerator.
994
1043
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4769,6 +4818,48 @@ if (goog.DEBUG && !COMPILED) {
4769
4818
  */
4770
4819
  proto.clarifai.api.AuditLogQuery.displayName = 'proto.clarifai.api.AuditLogQuery';
4771
4820
  }
4821
+ /**
4822
+ * Generated by JsPbCodeGenerator.
4823
+ * @param {Array=} opt_data Optional initial data array, typically from a
4824
+ * server response, or constructed directly in Javascript. The array is used
4825
+ * in place and becomes part of the constructed object. It is not cloned.
4826
+ * If no data is provided, the constructed object will be empty, but still
4827
+ * valid.
4828
+ * @extends {jspb.Message}
4829
+ * @constructor
4830
+ */
4831
+ proto.clarifai.api.WorkflowVersionEvaluationMetric = function(opt_data) {
4832
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4833
+ };
4834
+ goog.inherits(proto.clarifai.api.WorkflowVersionEvaluationMetric, jspb.Message);
4835
+ if (goog.DEBUG && !COMPILED) {
4836
+ /**
4837
+ * @public
4838
+ * @override
4839
+ */
4840
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationMetric';
4841
+ }
4842
+ /**
4843
+ * Generated by JsPbCodeGenerator.
4844
+ * @param {Array=} opt_data Optional initial data array, typically from a
4845
+ * server response, or constructed directly in Javascript. The array is used
4846
+ * in place and becomes part of the constructed object. It is not cloned.
4847
+ * If no data is provided, the constructed object will be empty, but still
4848
+ * valid.
4849
+ * @extends {jspb.Message}
4850
+ * @constructor
4851
+ */
4852
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate = function(opt_data) {
4853
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.WorkflowVersionEvaluationTemplate.repeatedFields_, null);
4854
+ };
4855
+ goog.inherits(proto.clarifai.api.WorkflowVersionEvaluationTemplate, jspb.Message);
4856
+ if (goog.DEBUG && !COMPILED) {
4857
+ /**
4858
+ * @public
4859
+ * @override
4860
+ */
4861
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationTemplate';
4862
+ }
4772
4863
 
4773
4864
 
4774
4865
 
@@ -9887,7 +9978,8 @@ proto.clarifai.api.Concept.toObject = function(includeInstance, msg) {
9887
9978
  userId: jspb.Message.getFieldWithDefault(msg, 10, ""),
9888
9979
  keypointInfo: (f = msg.getKeypointInfo()) && proto.clarifai.api.KeypointInfo.toObject(includeInstance, f),
9889
9980
  extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfo.toObject(includeInstance, f),
9890
- metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
9981
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
9982
+ image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
9891
9983
  };
9892
9984
 
9893
9985
  if (includeInstance) {
@@ -9981,6 +10073,11 @@ proto.clarifai.api.Concept.deserializeBinaryFromReader = function(msg, reader) {
9981
10073
  reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
9982
10074
  msg.setMetadata(value);
9983
10075
  break;
10076
+ case 22:
10077
+ var value = new proto.clarifai.api.Image;
10078
+ reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
10079
+ msg.setImage(value);
10080
+ break;
9984
10081
  default:
9985
10082
  reader.skipField();
9986
10083
  break;
@@ -10106,6 +10203,14 @@ proto.clarifai.api.Concept.serializeBinaryToWriter = function(message, writer) {
10106
10203
  google_protobuf_struct_pb.Struct.serializeBinaryToWriter
10107
10204
  );
10108
10205
  }
10206
+ f = message.getImage();
10207
+ if (f != null) {
10208
+ writer.writeMessage(
10209
+ 22,
10210
+ f,
10211
+ proto.clarifai.api.Image.serializeBinaryToWriter
10212
+ );
10213
+ }
10109
10214
  };
10110
10215
 
10111
10216
 
@@ -10438,6 +10543,43 @@ proto.clarifai.api.Concept.prototype.hasMetadata = function() {
10438
10543
  };
10439
10544
 
10440
10545
 
10546
+ /**
10547
+ * optional Image image = 22;
10548
+ * @return {?proto.clarifai.api.Image}
10549
+ */
10550
+ proto.clarifai.api.Concept.prototype.getImage = function() {
10551
+ return /** @type{?proto.clarifai.api.Image} */ (
10552
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 22));
10553
+ };
10554
+
10555
+
10556
+ /**
10557
+ * @param {?proto.clarifai.api.Image|undefined} value
10558
+ * @return {!proto.clarifai.api.Concept} returns this
10559
+ */
10560
+ proto.clarifai.api.Concept.prototype.setImage = function(value) {
10561
+ return jspb.Message.setWrapperField(this, 22, value);
10562
+ };
10563
+
10564
+
10565
+ /**
10566
+ * Clears the message field making it undefined.
10567
+ * @return {!proto.clarifai.api.Concept} returns this
10568
+ */
10569
+ proto.clarifai.api.Concept.prototype.clearImage = function() {
10570
+ return this.setImage(undefined);
10571
+ };
10572
+
10573
+
10574
+ /**
10575
+ * Returns whether this field is set.
10576
+ * @return {boolean}
10577
+ */
10578
+ proto.clarifai.api.Concept.prototype.hasImage = function() {
10579
+ return jspb.Message.getField(this, 22) != null;
10580
+ };
10581
+
10582
+
10441
10583
 
10442
10584
  /**
10443
10585
  * List of repeated fields within this message type.
@@ -12828,7 +12970,7 @@ proto.clarifai.api.ConceptLanguage.prototype.setDefinition = function(value) {
12828
12970
  * @private {!Array<number>}
12829
12971
  * @const
12830
12972
  */
12831
- proto.clarifai.api.Data.repeatedFields_ = [3,7,8,9,11,12,15,16,17,18];
12973
+ proto.clarifai.api.Data.repeatedFields_ = [3,7,8,9,11,12,15,16,17,18,19];
12832
12974
 
12833
12975
 
12834
12976
 
@@ -12886,7 +13028,10 @@ proto.clarifai.api.Data.toObject = function(includeInstance, msg) {
12886
13028
  hitsList: jspb.Message.toObjectList(msg.getHitsList(),
12887
13029
  proto.clarifai.api.Hit.toObject, includeInstance),
12888
13030
  heatmapsList: jspb.Message.toObjectList(msg.getHeatmapsList(),
12889
- proto.clarifai.api.Image.toObject, includeInstance)
13031
+ proto.clarifai.api.Image.toObject, includeInstance),
13032
+ partsList: jspb.Message.toObjectList(msg.getPartsList(),
13033
+ proto.clarifai.api.Part.toObject, includeInstance),
13034
+ ndarray: (f = msg.getNdarray()) && proto.clarifai.api.NDArray.toObject(includeInstance, f)
12890
13035
  };
12891
13036
 
12892
13037
  if (includeInstance) {
@@ -13003,6 +13148,16 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function(msg, reader) {
13003
13148
  reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
13004
13149
  msg.addHeatmaps(value);
13005
13150
  break;
13151
+ case 19:
13152
+ var value = new proto.clarifai.api.Part;
13153
+ reader.readMessage(value,proto.clarifai.api.Part.deserializeBinaryFromReader);
13154
+ msg.addParts(value);
13155
+ break;
13156
+ case 20:
13157
+ var value = new proto.clarifai.api.NDArray;
13158
+ reader.readMessage(value,proto.clarifai.api.NDArray.deserializeBinaryFromReader);
13159
+ msg.setNdarray(value);
13160
+ break;
13006
13161
  default:
13007
13162
  reader.skipField();
13008
13163
  break;
@@ -13160,6 +13315,22 @@ proto.clarifai.api.Data.serializeBinaryToWriter = function(message, writer) {
13160
13315
  proto.clarifai.api.Image.serializeBinaryToWriter
13161
13316
  );
13162
13317
  }
13318
+ f = message.getPartsList();
13319
+ if (f.length > 0) {
13320
+ writer.writeRepeatedMessage(
13321
+ 19,
13322
+ f,
13323
+ proto.clarifai.api.Part.serializeBinaryToWriter
13324
+ );
13325
+ }
13326
+ f = message.getNdarray();
13327
+ if (f != null) {
13328
+ writer.writeMessage(
13329
+ 20,
13330
+ f,
13331
+ proto.clarifai.api.NDArray.serializeBinaryToWriter
13332
+ );
13333
+ }
13163
13334
  };
13164
13335
 
13165
13336
 
@@ -13765,6 +13936,232 @@ proto.clarifai.api.Data.prototype.clearHeatmapsList = function() {
13765
13936
  };
13766
13937
 
13767
13938
 
13939
+ /**
13940
+ * repeated Part parts = 19;
13941
+ * @return {!Array<!proto.clarifai.api.Part>}
13942
+ */
13943
+ proto.clarifai.api.Data.prototype.getPartsList = function() {
13944
+ return /** @type{!Array<!proto.clarifai.api.Part>} */ (
13945
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Part, 19));
13946
+ };
13947
+
13948
+
13949
+ /**
13950
+ * @param {!Array<!proto.clarifai.api.Part>} value
13951
+ * @return {!proto.clarifai.api.Data} returns this
13952
+ */
13953
+ proto.clarifai.api.Data.prototype.setPartsList = function(value) {
13954
+ return jspb.Message.setRepeatedWrapperField(this, 19, value);
13955
+ };
13956
+
13957
+
13958
+ /**
13959
+ * @param {!proto.clarifai.api.Part=} opt_value
13960
+ * @param {number=} opt_index
13961
+ * @return {!proto.clarifai.api.Part}
13962
+ */
13963
+ proto.clarifai.api.Data.prototype.addParts = function(opt_value, opt_index) {
13964
+ return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.clarifai.api.Part, opt_index);
13965
+ };
13966
+
13967
+
13968
+ /**
13969
+ * Clears the list making it empty but non-null.
13970
+ * @return {!proto.clarifai.api.Data} returns this
13971
+ */
13972
+ proto.clarifai.api.Data.prototype.clearPartsList = function() {
13973
+ return this.setPartsList([]);
13974
+ };
13975
+
13976
+
13977
+ /**
13978
+ * optional NDArray ndarray = 20;
13979
+ * @return {?proto.clarifai.api.NDArray}
13980
+ */
13981
+ proto.clarifai.api.Data.prototype.getNdarray = function() {
13982
+ return /** @type{?proto.clarifai.api.NDArray} */ (
13983
+ jspb.Message.getWrapperField(this, proto.clarifai.api.NDArray, 20));
13984
+ };
13985
+
13986
+
13987
+ /**
13988
+ * @param {?proto.clarifai.api.NDArray|undefined} value
13989
+ * @return {!proto.clarifai.api.Data} returns this
13990
+ */
13991
+ proto.clarifai.api.Data.prototype.setNdarray = function(value) {
13992
+ return jspb.Message.setWrapperField(this, 20, value);
13993
+ };
13994
+
13995
+
13996
+ /**
13997
+ * Clears the message field making it undefined.
13998
+ * @return {!proto.clarifai.api.Data} returns this
13999
+ */
14000
+ proto.clarifai.api.Data.prototype.clearNdarray = function() {
14001
+ return this.setNdarray(undefined);
14002
+ };
14003
+
14004
+
14005
+ /**
14006
+ * Returns whether this field is set.
14007
+ * @return {boolean}
14008
+ */
14009
+ proto.clarifai.api.Data.prototype.hasNdarray = function() {
14010
+ return jspb.Message.getField(this, 20) != null;
14011
+ };
14012
+
14013
+
14014
+
14015
+
14016
+
14017
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14018
+ /**
14019
+ * Creates an object representation of this proto.
14020
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14021
+ * Optional fields that are not set will be set to undefined.
14022
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14023
+ * For the list of reserved names please see:
14024
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14025
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14026
+ * JSPB instance for transitional soy proto support:
14027
+ * http://goto/soy-param-migration
14028
+ * @return {!Object}
14029
+ */
14030
+ proto.clarifai.api.Part.prototype.toObject = function(opt_includeInstance) {
14031
+ return proto.clarifai.api.Part.toObject(opt_includeInstance, this);
14032
+ };
14033
+
14034
+
14035
+ /**
14036
+ * Static version of the {@see toObject} method.
14037
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14038
+ * the JSPB instance for transitional soy proto support:
14039
+ * http://goto/soy-param-migration
14040
+ * @param {!proto.clarifai.api.Part} msg The msg instance to transform.
14041
+ * @return {!Object}
14042
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14043
+ */
14044
+ proto.clarifai.api.Part.toObject = function(includeInstance, msg) {
14045
+ var f, obj = {
14046
+ data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f)
14047
+ };
14048
+
14049
+ if (includeInstance) {
14050
+ obj.$jspbMessageInstance = msg;
14051
+ }
14052
+ return obj;
14053
+ };
14054
+ }
14055
+
14056
+
14057
+ /**
14058
+ * Deserializes binary data (in protobuf wire format).
14059
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14060
+ * @return {!proto.clarifai.api.Part}
14061
+ */
14062
+ proto.clarifai.api.Part.deserializeBinary = function(bytes) {
14063
+ var reader = new jspb.BinaryReader(bytes);
14064
+ var msg = new proto.clarifai.api.Part;
14065
+ return proto.clarifai.api.Part.deserializeBinaryFromReader(msg, reader);
14066
+ };
14067
+
14068
+
14069
+ /**
14070
+ * Deserializes binary data (in protobuf wire format) from the
14071
+ * given reader into the given message object.
14072
+ * @param {!proto.clarifai.api.Part} msg The message object to deserialize into.
14073
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14074
+ * @return {!proto.clarifai.api.Part}
14075
+ */
14076
+ proto.clarifai.api.Part.deserializeBinaryFromReader = function(msg, reader) {
14077
+ while (reader.nextField()) {
14078
+ if (reader.isEndGroup()) {
14079
+ break;
14080
+ }
14081
+ var field = reader.getFieldNumber();
14082
+ switch (field) {
14083
+ case 1:
14084
+ var value = new proto.clarifai.api.Data;
14085
+ reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader);
14086
+ msg.setData(value);
14087
+ break;
14088
+ default:
14089
+ reader.skipField();
14090
+ break;
14091
+ }
14092
+ }
14093
+ return msg;
14094
+ };
14095
+
14096
+
14097
+ /**
14098
+ * Serializes the message to binary data (in protobuf wire format).
14099
+ * @return {!Uint8Array}
14100
+ */
14101
+ proto.clarifai.api.Part.prototype.serializeBinary = function() {
14102
+ var writer = new jspb.BinaryWriter();
14103
+ proto.clarifai.api.Part.serializeBinaryToWriter(this, writer);
14104
+ return writer.getResultBuffer();
14105
+ };
14106
+
14107
+
14108
+ /**
14109
+ * Serializes the given message to binary data (in protobuf wire
14110
+ * format), writing to the given BinaryWriter.
14111
+ * @param {!proto.clarifai.api.Part} message
14112
+ * @param {!jspb.BinaryWriter} writer
14113
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14114
+ */
14115
+ proto.clarifai.api.Part.serializeBinaryToWriter = function(message, writer) {
14116
+ var f = undefined;
14117
+ f = message.getData();
14118
+ if (f != null) {
14119
+ writer.writeMessage(
14120
+ 1,
14121
+ f,
14122
+ proto.clarifai.api.Data.serializeBinaryToWriter
14123
+ );
14124
+ }
14125
+ };
14126
+
14127
+
14128
+ /**
14129
+ * optional Data data = 1;
14130
+ * @return {?proto.clarifai.api.Data}
14131
+ */
14132
+ proto.clarifai.api.Part.prototype.getData = function() {
14133
+ return /** @type{?proto.clarifai.api.Data} */ (
14134
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 1));
14135
+ };
14136
+
14137
+
14138
+ /**
14139
+ * @param {?proto.clarifai.api.Data|undefined} value
14140
+ * @return {!proto.clarifai.api.Part} returns this
14141
+ */
14142
+ proto.clarifai.api.Part.prototype.setData = function(value) {
14143
+ return jspb.Message.setWrapperField(this, 1, value);
14144
+ };
14145
+
14146
+
14147
+ /**
14148
+ * Clears the message field making it undefined.
14149
+ * @return {!proto.clarifai.api.Part} returns this
14150
+ */
14151
+ proto.clarifai.api.Part.prototype.clearData = function() {
14152
+ return this.setData(undefined);
14153
+ };
14154
+
14155
+
14156
+ /**
14157
+ * Returns whether this field is set.
14158
+ * @return {boolean}
14159
+ */
14160
+ proto.clarifai.api.Part.prototype.hasData = function() {
14161
+ return jspb.Message.getField(this, 1) != null;
14162
+ };
14163
+
14164
+
13768
14165
 
13769
14166
 
13770
14167
 
@@ -15136,6 +15533,248 @@ proto.clarifai.api.Frame.prototype.setId = function(value) {
15136
15533
 
15137
15534
 
15138
15535
 
15536
+ /**
15537
+ * List of repeated fields within this message type.
15538
+ * @private {!Array<number>}
15539
+ * @const
15540
+ */
15541
+ proto.clarifai.api.NDArray.repeatedFields_ = [2];
15542
+
15543
+
15544
+
15545
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15546
+ /**
15547
+ * Creates an object representation of this proto.
15548
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15549
+ * Optional fields that are not set will be set to undefined.
15550
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15551
+ * For the list of reserved names please see:
15552
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15553
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15554
+ * JSPB instance for transitional soy proto support:
15555
+ * http://goto/soy-param-migration
15556
+ * @return {!Object}
15557
+ */
15558
+ proto.clarifai.api.NDArray.prototype.toObject = function(opt_includeInstance) {
15559
+ return proto.clarifai.api.NDArray.toObject(opt_includeInstance, this);
15560
+ };
15561
+
15562
+
15563
+ /**
15564
+ * Static version of the {@see toObject} method.
15565
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15566
+ * the JSPB instance for transitional soy proto support:
15567
+ * http://goto/soy-param-migration
15568
+ * @param {!proto.clarifai.api.NDArray} msg The msg instance to transform.
15569
+ * @return {!Object}
15570
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15571
+ */
15572
+ proto.clarifai.api.NDArray.toObject = function(includeInstance, msg) {
15573
+ var f, obj = {
15574
+ buffer: msg.getBuffer_asB64(),
15575
+ shapeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
15576
+ dtype: jspb.Message.getFieldWithDefault(msg, 3, "")
15577
+ };
15578
+
15579
+ if (includeInstance) {
15580
+ obj.$jspbMessageInstance = msg;
15581
+ }
15582
+ return obj;
15583
+ };
15584
+ }
15585
+
15586
+
15587
+ /**
15588
+ * Deserializes binary data (in protobuf wire format).
15589
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15590
+ * @return {!proto.clarifai.api.NDArray}
15591
+ */
15592
+ proto.clarifai.api.NDArray.deserializeBinary = function(bytes) {
15593
+ var reader = new jspb.BinaryReader(bytes);
15594
+ var msg = new proto.clarifai.api.NDArray;
15595
+ return proto.clarifai.api.NDArray.deserializeBinaryFromReader(msg, reader);
15596
+ };
15597
+
15598
+
15599
+ /**
15600
+ * Deserializes binary data (in protobuf wire format) from the
15601
+ * given reader into the given message object.
15602
+ * @param {!proto.clarifai.api.NDArray} msg The message object to deserialize into.
15603
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15604
+ * @return {!proto.clarifai.api.NDArray}
15605
+ */
15606
+ proto.clarifai.api.NDArray.deserializeBinaryFromReader = function(msg, reader) {
15607
+ while (reader.nextField()) {
15608
+ if (reader.isEndGroup()) {
15609
+ break;
15610
+ }
15611
+ var field = reader.getFieldNumber();
15612
+ switch (field) {
15613
+ case 1:
15614
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
15615
+ msg.setBuffer(value);
15616
+ break;
15617
+ case 2:
15618
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
15619
+ for (var i = 0; i < values.length; i++) {
15620
+ msg.addShape(values[i]);
15621
+ }
15622
+ break;
15623
+ case 3:
15624
+ var value = /** @type {string} */ (reader.readString());
15625
+ msg.setDtype(value);
15626
+ break;
15627
+ default:
15628
+ reader.skipField();
15629
+ break;
15630
+ }
15631
+ }
15632
+ return msg;
15633
+ };
15634
+
15635
+
15636
+ /**
15637
+ * Serializes the message to binary data (in protobuf wire format).
15638
+ * @return {!Uint8Array}
15639
+ */
15640
+ proto.clarifai.api.NDArray.prototype.serializeBinary = function() {
15641
+ var writer = new jspb.BinaryWriter();
15642
+ proto.clarifai.api.NDArray.serializeBinaryToWriter(this, writer);
15643
+ return writer.getResultBuffer();
15644
+ };
15645
+
15646
+
15647
+ /**
15648
+ * Serializes the given message to binary data (in protobuf wire
15649
+ * format), writing to the given BinaryWriter.
15650
+ * @param {!proto.clarifai.api.NDArray} message
15651
+ * @param {!jspb.BinaryWriter} writer
15652
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15653
+ */
15654
+ proto.clarifai.api.NDArray.serializeBinaryToWriter = function(message, writer) {
15655
+ var f = undefined;
15656
+ f = message.getBuffer_asU8();
15657
+ if (f.length > 0) {
15658
+ writer.writeBytes(
15659
+ 1,
15660
+ f
15661
+ );
15662
+ }
15663
+ f = message.getShapeList();
15664
+ if (f.length > 0) {
15665
+ writer.writePackedUint32(
15666
+ 2,
15667
+ f
15668
+ );
15669
+ }
15670
+ f = message.getDtype();
15671
+ if (f.length > 0) {
15672
+ writer.writeString(
15673
+ 3,
15674
+ f
15675
+ );
15676
+ }
15677
+ };
15678
+
15679
+
15680
+ /**
15681
+ * optional bytes buffer = 1;
15682
+ * @return {string}
15683
+ */
15684
+ proto.clarifai.api.NDArray.prototype.getBuffer = function() {
15685
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15686
+ };
15687
+
15688
+
15689
+ /**
15690
+ * optional bytes buffer = 1;
15691
+ * This is a type-conversion wrapper around `getBuffer()`
15692
+ * @return {string}
15693
+ */
15694
+ proto.clarifai.api.NDArray.prototype.getBuffer_asB64 = function() {
15695
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
15696
+ this.getBuffer()));
15697
+ };
15698
+
15699
+
15700
+ /**
15701
+ * optional bytes buffer = 1;
15702
+ * Note that Uint8Array is not supported on all browsers.
15703
+ * @see http://caniuse.com/Uint8Array
15704
+ * This is a type-conversion wrapper around `getBuffer()`
15705
+ * @return {!Uint8Array}
15706
+ */
15707
+ proto.clarifai.api.NDArray.prototype.getBuffer_asU8 = function() {
15708
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
15709
+ this.getBuffer()));
15710
+ };
15711
+
15712
+
15713
+ /**
15714
+ * @param {!(string|Uint8Array)} value
15715
+ * @return {!proto.clarifai.api.NDArray} returns this
15716
+ */
15717
+ proto.clarifai.api.NDArray.prototype.setBuffer = function(value) {
15718
+ return jspb.Message.setProto3BytesField(this, 1, value);
15719
+ };
15720
+
15721
+
15722
+ /**
15723
+ * repeated uint32 shape = 2;
15724
+ * @return {!Array<number>}
15725
+ */
15726
+ proto.clarifai.api.NDArray.prototype.getShapeList = function() {
15727
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
15728
+ };
15729
+
15730
+
15731
+ /**
15732
+ * @param {!Array<number>} value
15733
+ * @return {!proto.clarifai.api.NDArray} returns this
15734
+ */
15735
+ proto.clarifai.api.NDArray.prototype.setShapeList = function(value) {
15736
+ return jspb.Message.setField(this, 2, value || []);
15737
+ };
15738
+
15739
+
15740
+ /**
15741
+ * @param {number} value
15742
+ * @param {number=} opt_index
15743
+ * @return {!proto.clarifai.api.NDArray} returns this
15744
+ */
15745
+ proto.clarifai.api.NDArray.prototype.addShape = function(value, opt_index) {
15746
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
15747
+ };
15748
+
15749
+
15750
+ /**
15751
+ * Clears the list making it empty but non-null.
15752
+ * @return {!proto.clarifai.api.NDArray} returns this
15753
+ */
15754
+ proto.clarifai.api.NDArray.prototype.clearShapeList = function() {
15755
+ return this.setShapeList([]);
15756
+ };
15757
+
15758
+
15759
+ /**
15760
+ * optional string dtype = 3;
15761
+ * @return {string}
15762
+ */
15763
+ proto.clarifai.api.NDArray.prototype.getDtype = function() {
15764
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15765
+ };
15766
+
15767
+
15768
+ /**
15769
+ * @param {string} value
15770
+ * @return {!proto.clarifai.api.NDArray} returns this
15771
+ */
15772
+ proto.clarifai.api.NDArray.prototype.setDtype = function(value) {
15773
+ return jspb.Message.setProto3StringField(this, 3, value);
15774
+ };
15775
+
15776
+
15777
+
15139
15778
 
15140
15779
 
15141
15780
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -48315,7 +48954,6 @@ proto.clarifai.api.Task.toObject = function(includeInstance, msg) {
48315
48954
  type: jspb.Message.getFieldWithDefault(msg, 4, 0),
48316
48955
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
48317
48956
  worker: (f = msg.getWorker()) && proto.clarifai.api.TaskWorker.toObject(includeInstance, f),
48318
- workerType: jspb.Message.getFieldWithDefault(msg, 22, 0),
48319
48957
  conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
48320
48958
  inputSource: (f = msg.getInputSource()) && proto.clarifai.api.TaskInputSource.toObject(includeInstance, f),
48321
48959
  sampleMs: jspb.Message.getFieldWithDefault(msg, 9, 0),
@@ -48396,10 +49034,6 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) {
48396
49034
  reader.readMessage(value,proto.clarifai.api.TaskWorker.deserializeBinaryFromReader);
48397
49035
  msg.setWorker(value);
48398
49036
  break;
48399
- case 22:
48400
- var value = /** @type {!proto.clarifai.api.Task.WorkerType} */ (reader.readEnum());
48401
- msg.setWorkerType(value);
48402
- break;
48403
49037
  case 7:
48404
49038
  var value = /** @type {string} */ (reader.readString());
48405
49039
  msg.addConceptIds(value);
@@ -48546,13 +49180,6 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
48546
49180
  proto.clarifai.api.TaskWorker.serializeBinaryToWriter
48547
49181
  );
48548
49182
  }
48549
- f = message.getWorkerType();
48550
- if (f !== 0.0) {
48551
- writer.writeEnum(
48552
- 22,
48553
- f
48554
- );
48555
- }
48556
49183
  f = message.getConceptIdsList();
48557
49184
  if (f.length > 0) {
48558
49185
  writer.writeRepeatedString(
@@ -48676,15 +49303,6 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
48676
49303
  };
48677
49304
 
48678
49305
 
48679
- /**
48680
- * @enum {number}
48681
- */
48682
- proto.clarifai.api.Task.WorkerType = {
48683
- WORKER_TYPE_NOT_SET: 0,
48684
- WORKER_HUMAN: 1,
48685
- WORKER_AUTO: 2
48686
- };
48687
-
48688
49306
  /**
48689
49307
  * @enum {number}
48690
49308
  */
@@ -48870,24 +49488,6 @@ proto.clarifai.api.Task.prototype.hasWorker = function() {
48870
49488
  };
48871
49489
 
48872
49490
 
48873
- /**
48874
- * optional WorkerType worker_type = 22;
48875
- * @return {!proto.clarifai.api.Task.WorkerType}
48876
- */
48877
- proto.clarifai.api.Task.prototype.getWorkerType = function() {
48878
- return /** @type {!proto.clarifai.api.Task.WorkerType} */ (jspb.Message.getFieldWithDefault(this, 22, 0));
48879
- };
48880
-
48881
-
48882
- /**
48883
- * @param {!proto.clarifai.api.Task.WorkerType} value
48884
- * @return {!proto.clarifai.api.Task} returns this
48885
- */
48886
- proto.clarifai.api.Task.prototype.setWorkerType = function(value) {
48887
- return jspb.Message.setProto3EnumField(this, 22, value);
48888
- };
48889
-
48890
-
48891
49491
  /**
48892
49492
  * repeated string concept_ids = 7;
48893
49493
  * @return {!Array<string>}
@@ -49634,7 +50234,8 @@ proto.clarifai.api.TaskWorker.toObject = function(includeInstance, msg) {
49634
50234
  proto.clarifai.api.User.toObject, includeInstance),
49635
50235
  partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f),
49636
50236
  workersList: jspb.Message.toObjectList(msg.getWorkersList(),
49637
- proto.clarifai.api.Worker.toObject, includeInstance)
50237
+ proto.clarifai.api.Worker.toObject, includeInstance),
50238
+ type: jspb.Message.getFieldWithDefault(msg, 8, 0)
49638
50239
  };
49639
50240
 
49640
50241
  if (includeInstance) {
@@ -49694,6 +50295,10 @@ proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function(msg, reader
49694
50295
  reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
49695
50296
  msg.addWorkers(value);
49696
50297
  break;
50298
+ case 8:
50299
+ var value = /** @type {!proto.clarifai.api.TaskWorker.WorkerType} */ (reader.readEnum());
50300
+ msg.setType(value);
50301
+ break;
49697
50302
  default:
49698
50303
  reader.skipField();
49699
50304
  break;
@@ -49761,6 +50366,13 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer
49761
50366
  proto.clarifai.api.Worker.serializeBinaryToWriter
49762
50367
  );
49763
50368
  }
50369
+ f = message.getType();
50370
+ if (f !== 0.0) {
50371
+ writer.writeEnum(
50372
+ 8,
50373
+ f
50374
+ );
50375
+ }
49764
50376
  };
49765
50377
 
49766
50378
 
@@ -49774,6 +50386,15 @@ proto.clarifai.api.TaskWorker.TaskWorkerStrategy = {
49774
50386
  DYNAMIC: 4
49775
50387
  };
49776
50388
 
50389
+ /**
50390
+ * @enum {number}
50391
+ */
50392
+ proto.clarifai.api.TaskWorker.WorkerType = {
50393
+ WORKER_TYPE_NOT_SET: 0,
50394
+ WORKER_HUMAN: 1,
50395
+ WORKER_AUTO: 2
50396
+ };
50397
+
49777
50398
  /**
49778
50399
  * optional TaskWorkerStrategy strategy = 1;
49779
50400
  * @return {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy}
@@ -49942,6 +50563,24 @@ proto.clarifai.api.TaskWorker.prototype.clearWorkersList = function() {
49942
50563
  };
49943
50564
 
49944
50565
 
50566
+ /**
50567
+ * optional WorkerType type = 8;
50568
+ * @return {!proto.clarifai.api.TaskWorker.WorkerType}
50569
+ */
50570
+ proto.clarifai.api.TaskWorker.prototype.getType = function() {
50571
+ return /** @type {!proto.clarifai.api.TaskWorker.WorkerType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
50572
+ };
50573
+
50574
+
50575
+ /**
50576
+ * @param {!proto.clarifai.api.TaskWorker.WorkerType} value
50577
+ * @return {!proto.clarifai.api.TaskWorker} returns this
50578
+ */
50579
+ proto.clarifai.api.TaskWorker.prototype.setType = function(value) {
50580
+ return jspb.Message.setProto3EnumField(this, 8, value);
50581
+ };
50582
+
50583
+
49945
50584
 
49946
50585
 
49947
50586
 
@@ -50741,7 +51380,8 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.toObject = function(op
50741
51380
  */
50742
51381
  proto.clarifai.api.TaskReviewManualStrategyInfo.toObject = function(includeInstance, msg) {
50743
51382
  var f, obj = {
50744
- samplePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0)
51383
+ samplePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
51384
+ approvalThreshold: jspb.Message.getFieldWithDefault(msg, 2, 0)
50745
51385
  };
50746
51386
 
50747
51387
  if (includeInstance) {
@@ -50782,6 +51422,10 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinaryFromReader = fu
50782
51422
  var value = /** @type {number} */ (reader.readFloat());
50783
51423
  msg.setSamplePercentage(value);
50784
51424
  break;
51425
+ case 2:
51426
+ var value = /** @type {number} */ (reader.readInt32());
51427
+ msg.setApprovalThreshold(value);
51428
+ break;
50785
51429
  default:
50786
51430
  reader.skipField();
50787
51431
  break;
@@ -50818,6 +51462,13 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.serializeBinaryToWriter = functi
50818
51462
  f
50819
51463
  );
50820
51464
  }
51465
+ f = message.getApprovalThreshold();
51466
+ if (f !== 0) {
51467
+ writer.writeInt32(
51468
+ 2,
51469
+ f
51470
+ );
51471
+ }
50821
51472
  };
50822
51473
 
50823
51474
 
@@ -50839,6 +51490,24 @@ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.setSamplePercentage =
50839
51490
  };
50840
51491
 
50841
51492
 
51493
+ /**
51494
+ * optional int32 approval_threshold = 2;
51495
+ * @return {number}
51496
+ */
51497
+ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.getApprovalThreshold = function() {
51498
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
51499
+ };
51500
+
51501
+
51502
+ /**
51503
+ * @param {number} value
51504
+ * @return {!proto.clarifai.api.TaskReviewManualStrategyInfo} returns this
51505
+ */
51506
+ proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.setApprovalThreshold = function(value) {
51507
+ return jspb.Message.setProto3IntField(this, 2, value);
51508
+ };
51509
+
51510
+
50842
51511
 
50843
51512
 
50844
51513
 
@@ -70547,6 +71216,553 @@ proto.clarifai.api.AuditLogQuery.prototype.clearSourceIpsList = function() {
70547
71216
  };
70548
71217
 
70549
71218
 
71219
+
71220
+
71221
+
71222
+ if (jspb.Message.GENERATE_TO_OBJECT) {
71223
+ /**
71224
+ * Creates an object representation of this proto.
71225
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
71226
+ * Optional fields that are not set will be set to undefined.
71227
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71228
+ * For the list of reserved names please see:
71229
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
71230
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
71231
+ * JSPB instance for transitional soy proto support:
71232
+ * http://goto/soy-param-migration
71233
+ * @return {!Object}
71234
+ */
71235
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.toObject = function(opt_includeInstance) {
71236
+ return proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject(opt_includeInstance, this);
71237
+ };
71238
+
71239
+
71240
+ /**
71241
+ * Static version of the {@see toObject} method.
71242
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
71243
+ * the JSPB instance for transitional soy proto support:
71244
+ * http://goto/soy-param-migration
71245
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} msg The msg instance to transform.
71246
+ * @return {!Object}
71247
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71248
+ */
71249
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject = function(includeInstance, msg) {
71250
+ var f, obj = {
71251
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
71252
+ summary: jspb.Message.getFieldWithDefault(msg, 2, ""),
71253
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
71254
+ dataType: jspb.Message.getFieldWithDefault(msg, 4, 0),
71255
+ visualisationType: jspb.Message.getFieldWithDefault(msg, 5, 0)
71256
+ };
71257
+
71258
+ if (includeInstance) {
71259
+ obj.$jspbMessageInstance = msg;
71260
+ }
71261
+ return obj;
71262
+ };
71263
+ }
71264
+
71265
+
71266
+ /**
71267
+ * Deserializes binary data (in protobuf wire format).
71268
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
71269
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
71270
+ */
71271
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinary = function(bytes) {
71272
+ var reader = new jspb.BinaryReader(bytes);
71273
+ var msg = new proto.clarifai.api.WorkflowVersionEvaluationMetric;
71274
+ return proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader(msg, reader);
71275
+ };
71276
+
71277
+
71278
+ /**
71279
+ * Deserializes binary data (in protobuf wire format) from the
71280
+ * given reader into the given message object.
71281
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} msg The message object to deserialize into.
71282
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71283
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
71284
+ */
71285
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader = function(msg, reader) {
71286
+ while (reader.nextField()) {
71287
+ if (reader.isEndGroup()) {
71288
+ break;
71289
+ }
71290
+ var field = reader.getFieldNumber();
71291
+ switch (field) {
71292
+ case 1:
71293
+ var value = /** @type {string} */ (reader.readString());
71294
+ msg.setId(value);
71295
+ break;
71296
+ case 2:
71297
+ var value = /** @type {string} */ (reader.readString());
71298
+ msg.setSummary(value);
71299
+ break;
71300
+ case 3:
71301
+ var value = /** @type {string} */ (reader.readString());
71302
+ msg.setDescription(value);
71303
+ break;
71304
+ case 4:
71305
+ var value = /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} */ (reader.readEnum());
71306
+ msg.setDataType(value);
71307
+ break;
71308
+ case 5:
71309
+ var value = /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} */ (reader.readEnum());
71310
+ msg.setVisualisationType(value);
71311
+ break;
71312
+ default:
71313
+ reader.skipField();
71314
+ break;
71315
+ }
71316
+ }
71317
+ return msg;
71318
+ };
71319
+
71320
+
71321
+ /**
71322
+ * Serializes the message to binary data (in protobuf wire format).
71323
+ * @return {!Uint8Array}
71324
+ */
71325
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.serializeBinary = function() {
71326
+ var writer = new jspb.BinaryWriter();
71327
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter(this, writer);
71328
+ return writer.getResultBuffer();
71329
+ };
71330
+
71331
+
71332
+ /**
71333
+ * Serializes the given message to binary data (in protobuf wire
71334
+ * format), writing to the given BinaryWriter.
71335
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric} message
71336
+ * @param {!jspb.BinaryWriter} writer
71337
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71338
+ */
71339
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter = function(message, writer) {
71340
+ var f = undefined;
71341
+ f = message.getId();
71342
+ if (f.length > 0) {
71343
+ writer.writeString(
71344
+ 1,
71345
+ f
71346
+ );
71347
+ }
71348
+ f = message.getSummary();
71349
+ if (f.length > 0) {
71350
+ writer.writeString(
71351
+ 2,
71352
+ f
71353
+ );
71354
+ }
71355
+ f = message.getDescription();
71356
+ if (f.length > 0) {
71357
+ writer.writeString(
71358
+ 3,
71359
+ f
71360
+ );
71361
+ }
71362
+ f = message.getDataType();
71363
+ if (f !== 0.0) {
71364
+ writer.writeEnum(
71365
+ 4,
71366
+ f
71367
+ );
71368
+ }
71369
+ f = message.getVisualisationType();
71370
+ if (f !== 0.0) {
71371
+ writer.writeEnum(
71372
+ 5,
71373
+ f
71374
+ );
71375
+ }
71376
+ };
71377
+
71378
+
71379
+ /**
71380
+ * @enum {number}
71381
+ */
71382
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType = {
71383
+ DATA_TYPE_NOT_SET: 0,
71384
+ FLOAT: 1
71385
+ };
71386
+
71387
+ /**
71388
+ * @enum {number}
71389
+ */
71390
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType = {
71391
+ VISUALIZATION_TYPE_NOT_SET: 0,
71392
+ CONFUSION_MATRIX: 1,
71393
+ PRECISION_RECALL_CURVE: 2,
71394
+ ROC_AUC_CURVE: 3
71395
+ };
71396
+
71397
+ /**
71398
+ * optional string id = 1;
71399
+ * @return {string}
71400
+ */
71401
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getId = function() {
71402
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
71403
+ };
71404
+
71405
+
71406
+ /**
71407
+ * @param {string} value
71408
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
71409
+ */
71410
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setId = function(value) {
71411
+ return jspb.Message.setProto3StringField(this, 1, value);
71412
+ };
71413
+
71414
+
71415
+ /**
71416
+ * optional string summary = 2;
71417
+ * @return {string}
71418
+ */
71419
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getSummary = function() {
71420
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
71421
+ };
71422
+
71423
+
71424
+ /**
71425
+ * @param {string} value
71426
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
71427
+ */
71428
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setSummary = function(value) {
71429
+ return jspb.Message.setProto3StringField(this, 2, value);
71430
+ };
71431
+
71432
+
71433
+ /**
71434
+ * optional string description = 3;
71435
+ * @return {string}
71436
+ */
71437
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getDescription = function() {
71438
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
71439
+ };
71440
+
71441
+
71442
+ /**
71443
+ * @param {string} value
71444
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
71445
+ */
71446
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setDescription = function(value) {
71447
+ return jspb.Message.setProto3StringField(this, 3, value);
71448
+ };
71449
+
71450
+
71451
+ /**
71452
+ * optional DataType data_type = 4;
71453
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType}
71454
+ */
71455
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getDataType = function() {
71456
+ return /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
71457
+ };
71458
+
71459
+
71460
+ /**
71461
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType} value
71462
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
71463
+ */
71464
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setDataType = function(value) {
71465
+ return jspb.Message.setProto3EnumField(this, 4, value);
71466
+ };
71467
+
71468
+
71469
+ /**
71470
+ * optional VisualisationType visualisation_type = 5;
71471
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType}
71472
+ */
71473
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.getVisualisationType = function() {
71474
+ return /** @type {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
71475
+ };
71476
+
71477
+
71478
+ /**
71479
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType} value
71480
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric} returns this
71481
+ */
71482
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.prototype.setVisualisationType = function(value) {
71483
+ return jspb.Message.setProto3EnumField(this, 5, value);
71484
+ };
71485
+
71486
+
71487
+
71488
+ /**
71489
+ * List of repeated fields within this message type.
71490
+ * @private {!Array<number>}
71491
+ * @const
71492
+ */
71493
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.repeatedFields_ = [3,4];
71494
+
71495
+
71496
+
71497
+ if (jspb.Message.GENERATE_TO_OBJECT) {
71498
+ /**
71499
+ * Creates an object representation of this proto.
71500
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
71501
+ * Optional fields that are not set will be set to undefined.
71502
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71503
+ * For the list of reserved names please see:
71504
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
71505
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
71506
+ * JSPB instance for transitional soy proto support:
71507
+ * http://goto/soy-param-migration
71508
+ * @return {!Object}
71509
+ */
71510
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.toObject = function(opt_includeInstance) {
71511
+ return proto.clarifai.api.WorkflowVersionEvaluationTemplate.toObject(opt_includeInstance, this);
71512
+ };
71513
+
71514
+
71515
+ /**
71516
+ * Static version of the {@see toObject} method.
71517
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
71518
+ * the JSPB instance for transitional soy proto support:
71519
+ * http://goto/soy-param-migration
71520
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} msg The msg instance to transform.
71521
+ * @return {!Object}
71522
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71523
+ */
71524
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.toObject = function(includeInstance, msg) {
71525
+ var f, obj = {
71526
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
71527
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
71528
+ taskTypesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
71529
+ workflowVersionEvaluationMetricsList: jspb.Message.toObjectList(msg.getWorkflowVersionEvaluationMetricsList(),
71530
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.toObject, includeInstance)
71531
+ };
71532
+
71533
+ if (includeInstance) {
71534
+ obj.$jspbMessageInstance = msg;
71535
+ }
71536
+ return obj;
71537
+ };
71538
+ }
71539
+
71540
+
71541
+ /**
71542
+ * Deserializes binary data (in protobuf wire format).
71543
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
71544
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate}
71545
+ */
71546
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinary = function(bytes) {
71547
+ var reader = new jspb.BinaryReader(bytes);
71548
+ var msg = new proto.clarifai.api.WorkflowVersionEvaluationTemplate;
71549
+ return proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinaryFromReader(msg, reader);
71550
+ };
71551
+
71552
+
71553
+ /**
71554
+ * Deserializes binary data (in protobuf wire format) from the
71555
+ * given reader into the given message object.
71556
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} msg The message object to deserialize into.
71557
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71558
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate}
71559
+ */
71560
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.deserializeBinaryFromReader = function(msg, reader) {
71561
+ while (reader.nextField()) {
71562
+ if (reader.isEndGroup()) {
71563
+ break;
71564
+ }
71565
+ var field = reader.getFieldNumber();
71566
+ switch (field) {
71567
+ case 1:
71568
+ var value = /** @type {string} */ (reader.readString());
71569
+ msg.setId(value);
71570
+ break;
71571
+ case 2:
71572
+ var value = /** @type {string} */ (reader.readString());
71573
+ msg.setDescription(value);
71574
+ break;
71575
+ case 3:
71576
+ var values = /** @type {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
71577
+ for (var i = 0; i < values.length; i++) {
71578
+ msg.addTaskTypes(values[i]);
71579
+ }
71580
+ break;
71581
+ case 4:
71582
+ var value = new proto.clarifai.api.WorkflowVersionEvaluationMetric;
71583
+ reader.readMessage(value,proto.clarifai.api.WorkflowVersionEvaluationMetric.deserializeBinaryFromReader);
71584
+ msg.addWorkflowVersionEvaluationMetrics(value);
71585
+ break;
71586
+ default:
71587
+ reader.skipField();
71588
+ break;
71589
+ }
71590
+ }
71591
+ return msg;
71592
+ };
71593
+
71594
+
71595
+ /**
71596
+ * Serializes the message to binary data (in protobuf wire format).
71597
+ * @return {!Uint8Array}
71598
+ */
71599
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.serializeBinary = function() {
71600
+ var writer = new jspb.BinaryWriter();
71601
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.serializeBinaryToWriter(this, writer);
71602
+ return writer.getResultBuffer();
71603
+ };
71604
+
71605
+
71606
+ /**
71607
+ * Serializes the given message to binary data (in protobuf wire
71608
+ * format), writing to the given BinaryWriter.
71609
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} message
71610
+ * @param {!jspb.BinaryWriter} writer
71611
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71612
+ */
71613
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.serializeBinaryToWriter = function(message, writer) {
71614
+ var f = undefined;
71615
+ f = message.getId();
71616
+ if (f.length > 0) {
71617
+ writer.writeString(
71618
+ 1,
71619
+ f
71620
+ );
71621
+ }
71622
+ f = message.getDescription();
71623
+ if (f.length > 0) {
71624
+ writer.writeString(
71625
+ 2,
71626
+ f
71627
+ );
71628
+ }
71629
+ f = message.getTaskTypesList();
71630
+ if (f.length > 0) {
71631
+ writer.writePackedEnum(
71632
+ 3,
71633
+ f
71634
+ );
71635
+ }
71636
+ f = message.getWorkflowVersionEvaluationMetricsList();
71637
+ if (f.length > 0) {
71638
+ writer.writeRepeatedMessage(
71639
+ 4,
71640
+ f,
71641
+ proto.clarifai.api.WorkflowVersionEvaluationMetric.serializeBinaryToWriter
71642
+ );
71643
+ }
71644
+ };
71645
+
71646
+
71647
+ /**
71648
+ * @enum {number}
71649
+ */
71650
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType = {
71651
+ TASK_TYPE_NOT_SET: 0,
71652
+ TEXT_CLASSIFICATION: 1
71653
+ };
71654
+
71655
+ /**
71656
+ * optional string id = 1;
71657
+ * @return {string}
71658
+ */
71659
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getId = function() {
71660
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
71661
+ };
71662
+
71663
+
71664
+ /**
71665
+ * @param {string} value
71666
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71667
+ */
71668
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setId = function(value) {
71669
+ return jspb.Message.setProto3StringField(this, 1, value);
71670
+ };
71671
+
71672
+
71673
+ /**
71674
+ * optional string description = 2;
71675
+ * @return {string}
71676
+ */
71677
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getDescription = function() {
71678
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
71679
+ };
71680
+
71681
+
71682
+ /**
71683
+ * @param {string} value
71684
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71685
+ */
71686
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setDescription = function(value) {
71687
+ return jspb.Message.setProto3StringField(this, 2, value);
71688
+ };
71689
+
71690
+
71691
+ /**
71692
+ * repeated TaskType task_types = 3;
71693
+ * @return {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>}
71694
+ */
71695
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getTaskTypesList = function() {
71696
+ return /** @type {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} */ (jspb.Message.getRepeatedField(this, 3));
71697
+ };
71698
+
71699
+
71700
+ /**
71701
+ * @param {!Array<!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType>} value
71702
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71703
+ */
71704
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setTaskTypesList = function(value) {
71705
+ return jspb.Message.setField(this, 3, value || []);
71706
+ };
71707
+
71708
+
71709
+ /**
71710
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationTemplate.TaskType} value
71711
+ * @param {number=} opt_index
71712
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71713
+ */
71714
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.addTaskTypes = function(value, opt_index) {
71715
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
71716
+ };
71717
+
71718
+
71719
+ /**
71720
+ * Clears the list making it empty but non-null.
71721
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71722
+ */
71723
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearTaskTypesList = function() {
71724
+ return this.setTaskTypesList([]);
71725
+ };
71726
+
71727
+
71728
+ /**
71729
+ * repeated WorkflowVersionEvaluationMetric workflow_version_evaluation_metrics = 4;
71730
+ * @return {!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>}
71731
+ */
71732
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.getWorkflowVersionEvaluationMetricsList = function() {
71733
+ return /** @type{!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>} */ (
71734
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.WorkflowVersionEvaluationMetric, 4));
71735
+ };
71736
+
71737
+
71738
+ /**
71739
+ * @param {!Array<!proto.clarifai.api.WorkflowVersionEvaluationMetric>} value
71740
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71741
+ */
71742
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.setWorkflowVersionEvaluationMetricsList = function(value) {
71743
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
71744
+ };
71745
+
71746
+
71747
+ /**
71748
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluationMetric=} opt_value
71749
+ * @param {number=} opt_index
71750
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationMetric}
71751
+ */
71752
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.addWorkflowVersionEvaluationMetrics = function(opt_value, opt_index) {
71753
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.WorkflowVersionEvaluationMetric, opt_index);
71754
+ };
71755
+
71756
+
71757
+ /**
71758
+ * Clears the list making it empty but non-null.
71759
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluationTemplate} returns this
71760
+ */
71761
+ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVersionEvaluationMetricsList = function() {
71762
+ return this.setWorkflowVersionEvaluationMetricsList([]);
71763
+ };
71764
+
71765
+
70550
71766
  /**
70551
71767
  * @enum {number}
70552
71768
  */