clarifai-web-grpc 10.3.0 → 10.3.2

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.
@@ -56,6 +56,7 @@ goog.exportSymbol('proto.clarifai.api.AppDuplication', null, global);
56
56
  goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
57
57
  goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
58
58
  goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
59
+ goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
59
60
  goog.exportSymbol('proto.clarifai.api.Audio', null, global);
60
61
  goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
61
62
  goog.exportSymbol('proto.clarifai.api.AutoscaleConfig', null, global);
@@ -108,6 +109,7 @@ goog.exportSymbol('proto.clarifai.api.DatasetVersionMetrics', null, global);
108
109
  goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroup', null, global);
109
110
  goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroupType', null, global);
110
111
  goog.exportSymbol('proto.clarifai.api.DatasetVersionProcessingInfo', null, global);
112
+ goog.exportSymbol('proto.clarifai.api.DatasetVersionRequestOrigin', null, global);
111
113
  goog.exportSymbol('proto.clarifai.api.DeleteConcepts', null, global);
112
114
  goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global);
113
115
  goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global);
@@ -205,6 +207,7 @@ goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
205
207
  goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
206
208
  goog.exportSymbol('proto.clarifai.api.PrecisionRecallCurve', null, global);
207
209
  goog.exportSymbol('proto.clarifai.api.PretrainedModelConfig', null, global);
210
+ goog.exportSymbol('proto.clarifai.api.ProcessingInfo', null, global);
208
211
  goog.exportSymbol('proto.clarifai.api.Progress', null, global);
209
212
  goog.exportSymbol('proto.clarifai.api.Query', null, global);
210
213
  goog.exportSymbol('proto.clarifai.api.ROC', null, global);
@@ -214,6 +217,7 @@ goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
214
217
  goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
215
218
  goog.exportSymbol('proto.clarifai.api.Runner', null, global);
216
219
  goog.exportSymbol('proto.clarifai.api.Runner.ObjectCase', null, global);
220
+ goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
217
221
  goog.exportSymbol('proto.clarifai.api.RunnerSelector', null, global);
218
222
  goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
219
223
  goog.exportSymbol('proto.clarifai.api.Search', null, global);
@@ -388,6 +392,27 @@ if (goog.DEBUG && !COMPILED) {
388
392
  */
389
393
  proto.clarifai.api.AppQuery.displayName = 'proto.clarifai.api.AppQuery';
390
394
  }
395
+ /**
396
+ * Generated by JsPbCodeGenerator.
397
+ * @param {Array=} opt_data Optional initial data array, typically from a
398
+ * server response, or constructed directly in Javascript. The array is used
399
+ * in place and becomes part of the constructed object. It is not cloned.
400
+ * If no data is provided, the constructed object will be empty, but still
401
+ * valid.
402
+ * @extends {jspb.Message}
403
+ * @constructor
404
+ */
405
+ proto.clarifai.api.AppResourceCounts = function(opt_data) {
406
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
407
+ };
408
+ goog.inherits(proto.clarifai.api.AppResourceCounts, jspb.Message);
409
+ if (goog.DEBUG && !COMPILED) {
410
+ /**
411
+ * @public
412
+ * @override
413
+ */
414
+ proto.clarifai.api.AppResourceCounts.displayName = 'proto.clarifai.api.AppResourceCounts';
415
+ }
391
416
  /**
392
417
  * Generated by JsPbCodeGenerator.
393
418
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4609,6 +4634,27 @@ if (goog.DEBUG && !COMPILED) {
4609
4634
  */
4610
4635
  proto.clarifai.api.RunnerSelector.displayName = 'proto.clarifai.api.RunnerSelector';
4611
4636
  }
4637
+ /**
4638
+ * Generated by JsPbCodeGenerator.
4639
+ * @param {Array=} opt_data Optional initial data array, typically from a
4640
+ * server response, or constructed directly in Javascript. The array is used
4641
+ * in place and becomes part of the constructed object. It is not cloned.
4642
+ * If no data is provided, the constructed object will be empty, but still
4643
+ * valid.
4644
+ * @extends {jspb.Message}
4645
+ * @constructor
4646
+ */
4647
+ proto.clarifai.api.ProcessingInfo = function(opt_data) {
4648
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4649
+ };
4650
+ goog.inherits(proto.clarifai.api.ProcessingInfo, jspb.Message);
4651
+ if (goog.DEBUG && !COMPILED) {
4652
+ /**
4653
+ * @public
4654
+ * @override
4655
+ */
4656
+ proto.clarifai.api.ProcessingInfo.displayName = 'proto.clarifai.api.ProcessingInfo';
4657
+ }
4612
4658
 
4613
4659
 
4614
4660
 
@@ -6465,7 +6511,8 @@ proto.clarifai.api.AppExtraInfo.prototype.toObject = function(opt_includeInstanc
6465
6511
  */
6466
6512
  proto.clarifai.api.AppExtraInfo.toObject = function(includeInstance, msg) {
6467
6513
  var f, obj = {
6468
- searchRevisionMarker: jspb.Message.getFieldWithDefault(msg, 1, "")
6514
+ searchRevisionMarker: jspb.Message.getFieldWithDefault(msg, 1, ""),
6515
+ counts: (f = msg.getCounts()) && proto.clarifai.api.AppResourceCounts.toObject(includeInstance, f)
6469
6516
  };
6470
6517
 
6471
6518
  if (includeInstance) {
@@ -6506,6 +6553,11 @@ proto.clarifai.api.AppExtraInfo.deserializeBinaryFromReader = function(msg, read
6506
6553
  var value = /** @type {string} */ (reader.readString());
6507
6554
  msg.setSearchRevisionMarker(value);
6508
6555
  break;
6556
+ case 2:
6557
+ var value = new proto.clarifai.api.AppResourceCounts;
6558
+ reader.readMessage(value,proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader);
6559
+ msg.setCounts(value);
6560
+ break;
6509
6561
  default:
6510
6562
  reader.skipField();
6511
6563
  break;
@@ -6542,6 +6594,14 @@ proto.clarifai.api.AppExtraInfo.serializeBinaryToWriter = function(message, writ
6542
6594
  f
6543
6595
  );
6544
6596
  }
6597
+ f = message.getCounts();
6598
+ if (f != null) {
6599
+ writer.writeMessage(
6600
+ 2,
6601
+ f,
6602
+ proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter
6603
+ );
6604
+ }
6545
6605
  };
6546
6606
 
6547
6607
 
@@ -6563,6 +6623,43 @@ proto.clarifai.api.AppExtraInfo.prototype.setSearchRevisionMarker = function(val
6563
6623
  };
6564
6624
 
6565
6625
 
6626
+ /**
6627
+ * optional AppResourceCounts counts = 2;
6628
+ * @return {?proto.clarifai.api.AppResourceCounts}
6629
+ */
6630
+ proto.clarifai.api.AppExtraInfo.prototype.getCounts = function() {
6631
+ return /** @type{?proto.clarifai.api.AppResourceCounts} */ (
6632
+ jspb.Message.getWrapperField(this, proto.clarifai.api.AppResourceCounts, 2));
6633
+ };
6634
+
6635
+
6636
+ /**
6637
+ * @param {?proto.clarifai.api.AppResourceCounts|undefined} value
6638
+ * @return {!proto.clarifai.api.AppExtraInfo} returns this
6639
+ */
6640
+ proto.clarifai.api.AppExtraInfo.prototype.setCounts = function(value) {
6641
+ return jspb.Message.setWrapperField(this, 2, value);
6642
+ };
6643
+
6644
+
6645
+ /**
6646
+ * Clears the message field making it undefined.
6647
+ * @return {!proto.clarifai.api.AppExtraInfo} returns this
6648
+ */
6649
+ proto.clarifai.api.AppExtraInfo.prototype.clearCounts = function() {
6650
+ return this.setCounts(undefined);
6651
+ };
6652
+
6653
+
6654
+ /**
6655
+ * Returns whether this field is set.
6656
+ * @return {boolean}
6657
+ */
6658
+ proto.clarifai.api.AppExtraInfo.prototype.hasCounts = function() {
6659
+ return jspb.Message.getField(this, 2) != null;
6660
+ };
6661
+
6662
+
6566
6663
 
6567
6664
 
6568
6665
 
@@ -6694,6 +6791,256 @@ proto.clarifai.api.AppQuery.prototype.setName = function(value) {
6694
6791
 
6695
6792
 
6696
6793
 
6794
+
6795
+
6796
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6797
+ /**
6798
+ * Creates an object representation of this proto.
6799
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6800
+ * Optional fields that are not set will be set to undefined.
6801
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6802
+ * For the list of reserved names please see:
6803
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6804
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6805
+ * JSPB instance for transitional soy proto support:
6806
+ * http://goto/soy-param-migration
6807
+ * @return {!Object}
6808
+ */
6809
+ proto.clarifai.api.AppResourceCounts.prototype.toObject = function(opt_includeInstance) {
6810
+ return proto.clarifai.api.AppResourceCounts.toObject(opt_includeInstance, this);
6811
+ };
6812
+
6813
+
6814
+ /**
6815
+ * Static version of the {@see toObject} method.
6816
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6817
+ * the JSPB instance for transitional soy proto support:
6818
+ * http://goto/soy-param-migration
6819
+ * @param {!proto.clarifai.api.AppResourceCounts} msg The msg instance to transform.
6820
+ * @return {!Object}
6821
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6822
+ */
6823
+ proto.clarifai.api.AppResourceCounts.toObject = function(includeInstance, msg) {
6824
+ var f, obj = {
6825
+ datasets: jspb.Message.getFieldWithDefault(msg, 1, 0),
6826
+ models: jspb.Message.getFieldWithDefault(msg, 2, 0),
6827
+ workflows: jspb.Message.getFieldWithDefault(msg, 3, 0),
6828
+ modules: jspb.Message.getFieldWithDefault(msg, 4, 0),
6829
+ inputs: jspb.Message.getFieldWithDefault(msg, 5, 0)
6830
+ };
6831
+
6832
+ if (includeInstance) {
6833
+ obj.$jspbMessageInstance = msg;
6834
+ }
6835
+ return obj;
6836
+ };
6837
+ }
6838
+
6839
+
6840
+ /**
6841
+ * Deserializes binary data (in protobuf wire format).
6842
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6843
+ * @return {!proto.clarifai.api.AppResourceCounts}
6844
+ */
6845
+ proto.clarifai.api.AppResourceCounts.deserializeBinary = function(bytes) {
6846
+ var reader = new jspb.BinaryReader(bytes);
6847
+ var msg = new proto.clarifai.api.AppResourceCounts;
6848
+ return proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader(msg, reader);
6849
+ };
6850
+
6851
+
6852
+ /**
6853
+ * Deserializes binary data (in protobuf wire format) from the
6854
+ * given reader into the given message object.
6855
+ * @param {!proto.clarifai.api.AppResourceCounts} msg The message object to deserialize into.
6856
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6857
+ * @return {!proto.clarifai.api.AppResourceCounts}
6858
+ */
6859
+ proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader = function(msg, reader) {
6860
+ while (reader.nextField()) {
6861
+ if (reader.isEndGroup()) {
6862
+ break;
6863
+ }
6864
+ var field = reader.getFieldNumber();
6865
+ switch (field) {
6866
+ case 1:
6867
+ var value = /** @type {number} */ (reader.readInt64());
6868
+ msg.setDatasets(value);
6869
+ break;
6870
+ case 2:
6871
+ var value = /** @type {number} */ (reader.readInt64());
6872
+ msg.setModels(value);
6873
+ break;
6874
+ case 3:
6875
+ var value = /** @type {number} */ (reader.readInt64());
6876
+ msg.setWorkflows(value);
6877
+ break;
6878
+ case 4:
6879
+ var value = /** @type {number} */ (reader.readInt64());
6880
+ msg.setModules(value);
6881
+ break;
6882
+ case 5:
6883
+ var value = /** @type {number} */ (reader.readInt64());
6884
+ msg.setInputs(value);
6885
+ break;
6886
+ default:
6887
+ reader.skipField();
6888
+ break;
6889
+ }
6890
+ }
6891
+ return msg;
6892
+ };
6893
+
6894
+
6895
+ /**
6896
+ * Serializes the message to binary data (in protobuf wire format).
6897
+ * @return {!Uint8Array}
6898
+ */
6899
+ proto.clarifai.api.AppResourceCounts.prototype.serializeBinary = function() {
6900
+ var writer = new jspb.BinaryWriter();
6901
+ proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter(this, writer);
6902
+ return writer.getResultBuffer();
6903
+ };
6904
+
6905
+
6906
+ /**
6907
+ * Serializes the given message to binary data (in protobuf wire
6908
+ * format), writing to the given BinaryWriter.
6909
+ * @param {!proto.clarifai.api.AppResourceCounts} message
6910
+ * @param {!jspb.BinaryWriter} writer
6911
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6912
+ */
6913
+ proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter = function(message, writer) {
6914
+ var f = undefined;
6915
+ f = message.getDatasets();
6916
+ if (f !== 0) {
6917
+ writer.writeInt64(
6918
+ 1,
6919
+ f
6920
+ );
6921
+ }
6922
+ f = message.getModels();
6923
+ if (f !== 0) {
6924
+ writer.writeInt64(
6925
+ 2,
6926
+ f
6927
+ );
6928
+ }
6929
+ f = message.getWorkflows();
6930
+ if (f !== 0) {
6931
+ writer.writeInt64(
6932
+ 3,
6933
+ f
6934
+ );
6935
+ }
6936
+ f = message.getModules();
6937
+ if (f !== 0) {
6938
+ writer.writeInt64(
6939
+ 4,
6940
+ f
6941
+ );
6942
+ }
6943
+ f = message.getInputs();
6944
+ if (f !== 0) {
6945
+ writer.writeInt64(
6946
+ 5,
6947
+ f
6948
+ );
6949
+ }
6950
+ };
6951
+
6952
+
6953
+ /**
6954
+ * optional int64 datasets = 1;
6955
+ * @return {number}
6956
+ */
6957
+ proto.clarifai.api.AppResourceCounts.prototype.getDatasets = function() {
6958
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6959
+ };
6960
+
6961
+
6962
+ /**
6963
+ * @param {number} value
6964
+ * @return {!proto.clarifai.api.AppResourceCounts} returns this
6965
+ */
6966
+ proto.clarifai.api.AppResourceCounts.prototype.setDatasets = function(value) {
6967
+ return jspb.Message.setProto3IntField(this, 1, value);
6968
+ };
6969
+
6970
+
6971
+ /**
6972
+ * optional int64 models = 2;
6973
+ * @return {number}
6974
+ */
6975
+ proto.clarifai.api.AppResourceCounts.prototype.getModels = function() {
6976
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6977
+ };
6978
+
6979
+
6980
+ /**
6981
+ * @param {number} value
6982
+ * @return {!proto.clarifai.api.AppResourceCounts} returns this
6983
+ */
6984
+ proto.clarifai.api.AppResourceCounts.prototype.setModels = function(value) {
6985
+ return jspb.Message.setProto3IntField(this, 2, value);
6986
+ };
6987
+
6988
+
6989
+ /**
6990
+ * optional int64 workflows = 3;
6991
+ * @return {number}
6992
+ */
6993
+ proto.clarifai.api.AppResourceCounts.prototype.getWorkflows = function() {
6994
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6995
+ };
6996
+
6997
+
6998
+ /**
6999
+ * @param {number} value
7000
+ * @return {!proto.clarifai.api.AppResourceCounts} returns this
7001
+ */
7002
+ proto.clarifai.api.AppResourceCounts.prototype.setWorkflows = function(value) {
7003
+ return jspb.Message.setProto3IntField(this, 3, value);
7004
+ };
7005
+
7006
+
7007
+ /**
7008
+ * optional int64 modules = 4;
7009
+ * @return {number}
7010
+ */
7011
+ proto.clarifai.api.AppResourceCounts.prototype.getModules = function() {
7012
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
7013
+ };
7014
+
7015
+
7016
+ /**
7017
+ * @param {number} value
7018
+ * @return {!proto.clarifai.api.AppResourceCounts} returns this
7019
+ */
7020
+ proto.clarifai.api.AppResourceCounts.prototype.setModules = function(value) {
7021
+ return jspb.Message.setProto3IntField(this, 4, value);
7022
+ };
7023
+
7024
+
7025
+ /**
7026
+ * optional int64 inputs = 5;
7027
+ * @return {number}
7028
+ */
7029
+ proto.clarifai.api.AppResourceCounts.prototype.getInputs = function() {
7030
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
7031
+ };
7032
+
7033
+
7034
+ /**
7035
+ * @param {number} value
7036
+ * @return {!proto.clarifai.api.AppResourceCounts} returns this
7037
+ */
7038
+ proto.clarifai.api.AppResourceCounts.prototype.setInputs = function(value) {
7039
+ return jspb.Message.setProto3IntField(this, 5, value);
7040
+ };
7041
+
7042
+
7043
+
6697
7044
  /**
6698
7045
  * List of repeated fields within this message type.
6699
7046
  * @private {!Array<number>}
@@ -19568,7 +19915,8 @@ proto.clarifai.api.DatasetVersion.toObject = function(includeInstance, msg) {
19568
19915
  exportInfo: (f = msg.getExportInfo()) && proto.clarifai.api.DatasetVersionExportInfo.toObject(includeInstance, f),
19569
19916
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
19570
19917
  visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
19571
- embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f
19918
+ embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
19919
+ requestOrigin: jspb.Message.getFieldWithDefault(msg, 20, 0)
19572
19920
  };
19573
19921
 
19574
19922
  if (includeInstance) {
@@ -19680,6 +20028,10 @@ proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader = function(msg, re
19680
20028
  var value = /** @type {string} */ (reader.readString());
19681
20029
  msg.addEmbedModelVersionIds(value);
19682
20030
  break;
20031
+ case 20:
20032
+ var value = /** @type {!proto.clarifai.api.DatasetVersionRequestOrigin} */ (reader.readEnum());
20033
+ msg.setRequestOrigin(value);
20034
+ break;
19683
20035
  default:
19684
20036
  reader.skipField();
19685
20037
  break;
@@ -19827,6 +20179,13 @@ proto.clarifai.api.DatasetVersion.serializeBinaryToWriter = function(message, wr
19827
20179
  f
19828
20180
  );
19829
20181
  }
20182
+ f = message.getRequestOrigin();
20183
+ if (f !== 0.0) {
20184
+ writer.writeEnum(
20185
+ 20,
20186
+ f
20187
+ );
20188
+ }
19830
20189
  };
19831
20190
 
19832
20191
 
@@ -20313,6 +20672,24 @@ proto.clarifai.api.DatasetVersion.prototype.clearEmbedModelVersionIdsList = func
20313
20672
  };
20314
20673
 
20315
20674
 
20675
+ /**
20676
+ * optional DatasetVersionRequestOrigin request_origin = 20;
20677
+ * @return {!proto.clarifai.api.DatasetVersionRequestOrigin}
20678
+ */
20679
+ proto.clarifai.api.DatasetVersion.prototype.getRequestOrigin = function() {
20680
+ return /** @type {!proto.clarifai.api.DatasetVersionRequestOrigin} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
20681
+ };
20682
+
20683
+
20684
+ /**
20685
+ * @param {!proto.clarifai.api.DatasetVersionRequestOrigin} value
20686
+ * @return {!proto.clarifai.api.DatasetVersion} returns this
20687
+ */
20688
+ proto.clarifai.api.DatasetVersion.prototype.setRequestOrigin = function(value) {
20689
+ return jspb.Message.setProto3EnumField(this, 20, value);
20690
+ };
20691
+
20692
+
20316
20693
 
20317
20694
 
20318
20695
 
@@ -50984,7 +51361,8 @@ proto.clarifai.api.TaskStatusCountPerUser.toObject = function(includeInstance, m
50984
51361
  awaitingReview: jspb.Message.getFieldWithDefault(msg, 3, 0),
50985
51362
  success: jspb.Message.getFieldWithDefault(msg, 4, 0),
50986
51363
  reviewDenied: jspb.Message.getFieldWithDefault(msg, 5, 0),
50987
- awaitingConsensusReview: jspb.Message.getFieldWithDefault(msg, 6, 0)
51364
+ awaitingConsensusReview: jspb.Message.getFieldWithDefault(msg, 6, 0),
51365
+ worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f)
50988
51366
  };
50989
51367
 
50990
51368
  if (includeInstance) {
@@ -51045,6 +51423,11 @@ proto.clarifai.api.TaskStatusCountPerUser.deserializeBinaryFromReader = function
51045
51423
  var value = /** @type {number} */ (reader.readUint32());
51046
51424
  msg.setAwaitingConsensusReview(value);
51047
51425
  break;
51426
+ case 7:
51427
+ var value = new proto.clarifai.api.Worker;
51428
+ reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
51429
+ msg.setWorker(value);
51430
+ break;
51048
51431
  default:
51049
51432
  reader.skipField();
51050
51433
  break;
@@ -51116,6 +51499,14 @@ proto.clarifai.api.TaskStatusCountPerUser.serializeBinaryToWriter = function(mes
51116
51499
  f
51117
51500
  );
51118
51501
  }
51502
+ f = message.getWorker();
51503
+ if (f != null) {
51504
+ writer.writeMessage(
51505
+ 7,
51506
+ f,
51507
+ proto.clarifai.api.Worker.serializeBinaryToWriter
51508
+ );
51509
+ }
51119
51510
  };
51120
51511
 
51121
51512
 
@@ -51227,6 +51618,43 @@ proto.clarifai.api.TaskStatusCountPerUser.prototype.setAwaitingConsensusReview =
51227
51618
  };
51228
51619
 
51229
51620
 
51621
+ /**
51622
+ * optional Worker worker = 7;
51623
+ * @return {?proto.clarifai.api.Worker}
51624
+ */
51625
+ proto.clarifai.api.TaskStatusCountPerUser.prototype.getWorker = function() {
51626
+ return /** @type{?proto.clarifai.api.Worker} */ (
51627
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 7));
51628
+ };
51629
+
51630
+
51631
+ /**
51632
+ * @param {?proto.clarifai.api.Worker|undefined} value
51633
+ * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this
51634
+ */
51635
+ proto.clarifai.api.TaskStatusCountPerUser.prototype.setWorker = function(value) {
51636
+ return jspb.Message.setWrapperField(this, 7, value);
51637
+ };
51638
+
51639
+
51640
+ /**
51641
+ * Clears the message field making it undefined.
51642
+ * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this
51643
+ */
51644
+ proto.clarifai.api.TaskStatusCountPerUser.prototype.clearWorker = function() {
51645
+ return this.setWorker(undefined);
51646
+ };
51647
+
51648
+
51649
+ /**
51650
+ * Returns whether this field is set.
51651
+ * @return {boolean}
51652
+ */
51653
+ proto.clarifai.api.TaskStatusCountPerUser.prototype.hasWorker = function() {
51654
+ return jspb.Message.getField(this, 7) != null;
51655
+ };
51656
+
51657
+
51230
51658
 
51231
51659
 
51232
51660
 
@@ -67348,6 +67776,187 @@ proto.clarifai.api.RunnerSelector.prototype.hasDeployment = function() {
67348
67776
  };
67349
67777
 
67350
67778
 
67779
+
67780
+
67781
+
67782
+ if (jspb.Message.GENERATE_TO_OBJECT) {
67783
+ /**
67784
+ * Creates an object representation of this proto.
67785
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67786
+ * Optional fields that are not set will be set to undefined.
67787
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
67788
+ * For the list of reserved names please see:
67789
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
67790
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
67791
+ * JSPB instance for transitional soy proto support:
67792
+ * http://goto/soy-param-migration
67793
+ * @return {!Object}
67794
+ */
67795
+ proto.clarifai.api.ProcessingInfo.prototype.toObject = function(opt_includeInstance) {
67796
+ return proto.clarifai.api.ProcessingInfo.toObject(opt_includeInstance, this);
67797
+ };
67798
+
67799
+
67800
+ /**
67801
+ * Static version of the {@see toObject} method.
67802
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
67803
+ * the JSPB instance for transitional soy proto support:
67804
+ * http://goto/soy-param-migration
67805
+ * @param {!proto.clarifai.api.ProcessingInfo} msg The msg instance to transform.
67806
+ * @return {!Object}
67807
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67808
+ */
67809
+ proto.clarifai.api.ProcessingInfo.toObject = function(includeInstance, msg) {
67810
+ var f, obj = {
67811
+ runnerMethodType: jspb.Message.getFieldWithDefault(msg, 1, 0),
67812
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
67813
+ };
67814
+
67815
+ if (includeInstance) {
67816
+ obj.$jspbMessageInstance = msg;
67817
+ }
67818
+ return obj;
67819
+ };
67820
+ }
67821
+
67822
+
67823
+ /**
67824
+ * Deserializes binary data (in protobuf wire format).
67825
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
67826
+ * @return {!proto.clarifai.api.ProcessingInfo}
67827
+ */
67828
+ proto.clarifai.api.ProcessingInfo.deserializeBinary = function(bytes) {
67829
+ var reader = new jspb.BinaryReader(bytes);
67830
+ var msg = new proto.clarifai.api.ProcessingInfo;
67831
+ return proto.clarifai.api.ProcessingInfo.deserializeBinaryFromReader(msg, reader);
67832
+ };
67833
+
67834
+
67835
+ /**
67836
+ * Deserializes binary data (in protobuf wire format) from the
67837
+ * given reader into the given message object.
67838
+ * @param {!proto.clarifai.api.ProcessingInfo} msg The message object to deserialize into.
67839
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
67840
+ * @return {!proto.clarifai.api.ProcessingInfo}
67841
+ */
67842
+ proto.clarifai.api.ProcessingInfo.deserializeBinaryFromReader = function(msg, reader) {
67843
+ while (reader.nextField()) {
67844
+ if (reader.isEndGroup()) {
67845
+ break;
67846
+ }
67847
+ var field = reader.getFieldNumber();
67848
+ switch (field) {
67849
+ case 1:
67850
+ var value = /** @type {!proto.clarifai.api.RunnerMethodType} */ (reader.readEnum());
67851
+ msg.setRunnerMethodType(value);
67852
+ break;
67853
+ case 2:
67854
+ var value = new proto_clarifai_api_status_status_pb.Status;
67855
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
67856
+ msg.setStatus(value);
67857
+ break;
67858
+ default:
67859
+ reader.skipField();
67860
+ break;
67861
+ }
67862
+ }
67863
+ return msg;
67864
+ };
67865
+
67866
+
67867
+ /**
67868
+ * Serializes the message to binary data (in protobuf wire format).
67869
+ * @return {!Uint8Array}
67870
+ */
67871
+ proto.clarifai.api.ProcessingInfo.prototype.serializeBinary = function() {
67872
+ var writer = new jspb.BinaryWriter();
67873
+ proto.clarifai.api.ProcessingInfo.serializeBinaryToWriter(this, writer);
67874
+ return writer.getResultBuffer();
67875
+ };
67876
+
67877
+
67878
+ /**
67879
+ * Serializes the given message to binary data (in protobuf wire
67880
+ * format), writing to the given BinaryWriter.
67881
+ * @param {!proto.clarifai.api.ProcessingInfo} message
67882
+ * @param {!jspb.BinaryWriter} writer
67883
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67884
+ */
67885
+ proto.clarifai.api.ProcessingInfo.serializeBinaryToWriter = function(message, writer) {
67886
+ var f = undefined;
67887
+ f = message.getRunnerMethodType();
67888
+ if (f !== 0.0) {
67889
+ writer.writeEnum(
67890
+ 1,
67891
+ f
67892
+ );
67893
+ }
67894
+ f = message.getStatus();
67895
+ if (f != null) {
67896
+ writer.writeMessage(
67897
+ 2,
67898
+ f,
67899
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
67900
+ );
67901
+ }
67902
+ };
67903
+
67904
+
67905
+ /**
67906
+ * optional RunnerMethodType runner_method_type = 1;
67907
+ * @return {!proto.clarifai.api.RunnerMethodType}
67908
+ */
67909
+ proto.clarifai.api.ProcessingInfo.prototype.getRunnerMethodType = function() {
67910
+ return /** @type {!proto.clarifai.api.RunnerMethodType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
67911
+ };
67912
+
67913
+
67914
+ /**
67915
+ * @param {!proto.clarifai.api.RunnerMethodType} value
67916
+ * @return {!proto.clarifai.api.ProcessingInfo} returns this
67917
+ */
67918
+ proto.clarifai.api.ProcessingInfo.prototype.setRunnerMethodType = function(value) {
67919
+ return jspb.Message.setProto3EnumField(this, 1, value);
67920
+ };
67921
+
67922
+
67923
+ /**
67924
+ * optional status.Status status = 2;
67925
+ * @return {?proto.clarifai.api.status.Status}
67926
+ */
67927
+ proto.clarifai.api.ProcessingInfo.prototype.getStatus = function() {
67928
+ return /** @type{?proto.clarifai.api.status.Status} */ (
67929
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
67930
+ };
67931
+
67932
+
67933
+ /**
67934
+ * @param {?proto.clarifai.api.status.Status|undefined} value
67935
+ * @return {!proto.clarifai.api.ProcessingInfo} returns this
67936
+ */
67937
+ proto.clarifai.api.ProcessingInfo.prototype.setStatus = function(value) {
67938
+ return jspb.Message.setWrapperField(this, 2, value);
67939
+ };
67940
+
67941
+
67942
+ /**
67943
+ * Clears the message field making it undefined.
67944
+ * @return {!proto.clarifai.api.ProcessingInfo} returns this
67945
+ */
67946
+ proto.clarifai.api.ProcessingInfo.prototype.clearStatus = function() {
67947
+ return this.setStatus(undefined);
67948
+ };
67949
+
67950
+
67951
+ /**
67952
+ * Returns whether this field is set.
67953
+ * @return {boolean}
67954
+ */
67955
+ proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function() {
67956
+ return jspb.Message.getField(this, 2) != null;
67957
+ };
67958
+
67959
+
67351
67960
  /**
67352
67961
  * @enum {number}
67353
67962
  */
@@ -67357,6 +67966,17 @@ proto.clarifai.api.WorkflowModelUseCase = {
67357
67966
  DETECTION: 2
67358
67967
  };
67359
67968
 
67969
+ /**
67970
+ * @enum {number}
67971
+ */
67972
+ proto.clarifai.api.DatasetVersionRequestOrigin = {
67973
+ DATASET_VERSION_REQUEST_ORIGIN_NOT_SET: 0,
67974
+ MANUAL: 1,
67975
+ TRAINING: 2,
67976
+ EVAL_GROUND_TRUTH: 3,
67977
+ EVAL_PREDICTIONS: 4
67978
+ };
67979
+
67360
67980
  /**
67361
67981
  * @enum {number}
67362
67982
  */
@@ -67520,4 +68140,15 @@ proto.clarifai.api.InputIDConflictResolution = {
67520
68140
  SUFFIX: 2
67521
68141
  };
67522
68142
 
68143
+ /**
68144
+ * @enum {number}
68145
+ */
68146
+ proto.clarifai.api.RunnerMethodType = {
68147
+ UNKNOWN: 0,
68148
+ UNARY_UNARY: 1,
68149
+ UNARY_STREAMING: 2,
68150
+ STREAMING_UNARY: 3,
68151
+ STREAMING_STREAMING: 4
68152
+ };
68153
+
67523
68154
  goog.object.extend(exports, proto.clarifai.api);