clarifai-web-grpc 11.7.6 → 11.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.7.6
1
+ 11.8.0
@@ -204,6 +204,8 @@ goog.exportSymbol('proto.clarifai.api.MetricFilter.ValueCase', null, global);
204
204
  goog.exportSymbol('proto.clarifai.api.MetricLabel', null, global);
205
205
  goog.exportSymbol('proto.clarifai.api.MetricSearchQuery', null, global);
206
206
  goog.exportSymbol('proto.clarifai.api.MetricType', null, global);
207
+ goog.exportSymbol('proto.clarifai.api.MetricTypeLabels', null, global);
208
+ goog.exportSymbol('proto.clarifai.api.MetricTypeLabels.LabelWithValues', null, global);
207
209
  goog.exportSymbol('proto.clarifai.api.MetricValue', null, global);
208
210
  goog.exportSymbol('proto.clarifai.api.MetricValue.MetricValueCase', null, global);
209
211
  goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
@@ -5776,6 +5778,48 @@ if (goog.DEBUG && !COMPILED) {
5776
5778
  */
5777
5779
  proto.clarifai.api.MetricSearchQuery.displayName = 'proto.clarifai.api.MetricSearchQuery';
5778
5780
  }
5781
+ /**
5782
+ * Generated by JsPbCodeGenerator.
5783
+ * @param {Array=} opt_data Optional initial data array, typically from a
5784
+ * server response, or constructed directly in Javascript. The array is used
5785
+ * in place and becomes part of the constructed object. It is not cloned.
5786
+ * If no data is provided, the constructed object will be empty, but still
5787
+ * valid.
5788
+ * @extends {jspb.Message}
5789
+ * @constructor
5790
+ */
5791
+ proto.clarifai.api.MetricTypeLabels = function (opt_data) {
5792
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricTypeLabels.repeatedFields_, null);
5793
+ };
5794
+ goog.inherits(proto.clarifai.api.MetricTypeLabels, jspb.Message);
5795
+ if (goog.DEBUG && !COMPILED) {
5796
+ /**
5797
+ * @public
5798
+ * @override
5799
+ */
5800
+ proto.clarifai.api.MetricTypeLabels.displayName = 'proto.clarifai.api.MetricTypeLabels';
5801
+ }
5802
+ /**
5803
+ * Generated by JsPbCodeGenerator.
5804
+ * @param {Array=} opt_data Optional initial data array, typically from a
5805
+ * server response, or constructed directly in Javascript. The array is used
5806
+ * in place and becomes part of the constructed object. It is not cloned.
5807
+ * If no data is provided, the constructed object will be empty, but still
5808
+ * valid.
5809
+ * @extends {jspb.Message}
5810
+ * @constructor
5811
+ */
5812
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues = function (opt_data) {
5813
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricTypeLabels.LabelWithValues.repeatedFields_, null);
5814
+ };
5815
+ goog.inherits(proto.clarifai.api.MetricTypeLabels.LabelWithValues, jspb.Message);
5816
+ if (goog.DEBUG && !COMPILED) {
5817
+ /**
5818
+ * @public
5819
+ * @override
5820
+ */
5821
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.displayName = 'proto.clarifai.api.MetricTypeLabels.LabelWithValues';
5822
+ }
5779
5823
  if (jspb.Message.GENERATE_TO_OBJECT) {
5780
5824
  /**
5781
5825
  * Creates an object representation of this proto.
@@ -57653,7 +57697,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
57653
57697
  price: jspb.Message.getFieldWithDefault(msg, 4, ""),
57654
57698
  cloudProvider: (f = msg.getCloudProvider()) && proto.clarifai.api.CloudProvider.toObject(includeInstance, f),
57655
57699
  region: jspb.Message.getFieldWithDefault(msg, 6, ""),
57656
- allowedCapacityTypes: (f = msg.getAllowedCapacityTypes()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f)
57700
+ allowedCapacityTypes: (f = msg.getAllowedCapacityTypes()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
57701
+ featureFlagGroup: jspb.Message.getFieldWithDefault(msg, 8, "")
57657
57702
  };
57658
57703
  if (includeInstance) {
57659
57704
  obj.$jspbMessageInstance = msg;
@@ -57716,6 +57761,10 @@ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function (msg, rea
57716
57761
  reader.readMessage(value, proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader);
57717
57762
  msg.setAllowedCapacityTypes(value);
57718
57763
  break;
57764
+ case 8:
57765
+ var value = /** @type {string} */ (reader.readString());
57766
+ msg.setFeatureFlagGroup(value);
57767
+ break;
57719
57768
  default:
57720
57769
  reader.skipField();
57721
57770
  break;
@@ -57769,6 +57818,10 @@ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function (message, wri
57769
57818
  if (f != null) {
57770
57819
  writer.writeMessage(7, f, proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter);
57771
57820
  }
57821
+ f = message.getFeatureFlagGroup();
57822
+ if (f.length > 0) {
57823
+ writer.writeString(8, f);
57824
+ }
57772
57825
  };
57773
57826
  /**
57774
57827
  * optional string id = 1;
@@ -57910,6 +57963,20 @@ proto.clarifai.api.InstanceType.prototype.clearAllowedCapacityTypes = function (
57910
57963
  proto.clarifai.api.InstanceType.prototype.hasAllowedCapacityTypes = function () {
57911
57964
  return jspb.Message.getField(this, 7) != null;
57912
57965
  };
57966
+ /**
57967
+ * optional string feature_flag_group = 8;
57968
+ * @return {string}
57969
+ */
57970
+ proto.clarifai.api.InstanceType.prototype.getFeatureFlagGroup = function () {
57971
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
57972
+ };
57973
+ /**
57974
+ * @param {string} value
57975
+ * @return {!proto.clarifai.api.InstanceType} returns this
57976
+ */
57977
+ proto.clarifai.api.InstanceType.prototype.setFeatureFlagGroup = function (value) {
57978
+ return jspb.Message.setProto3StringField(this, 8, value);
57979
+ };
57913
57980
  if (jspb.Message.GENERATE_TO_OBJECT) {
57914
57981
  /**
57915
57982
  * Creates an object representation of this proto.
@@ -58457,7 +58524,7 @@ proto.clarifai.api.ComputeCluster.prototype.hasKey = function () {
58457
58524
  * @private {!Array<number>}
58458
58525
  * @const
58459
58526
  */
58460
- proto.clarifai.api.ComputeInfo.repeatedFields_ = [5];
58527
+ proto.clarifai.api.ComputeInfo.repeatedFields_ = [5, 10];
58461
58528
  if (jspb.Message.GENERATE_TO_OBJECT) {
58462
58529
  /**
58463
58530
  * Creates an object representation of this proto.
@@ -58491,7 +58558,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
58491
58558
  cpuMemoryRequests: jspb.Message.getFieldWithDefault(msg, 8, ""),
58492
58559
  numAccelerators: jspb.Message.getFieldWithDefault(msg, 3, 0),
58493
58560
  acceleratorMemory: jspb.Message.getFieldWithDefault(msg, 4, ""),
58494
- acceleratorTypeList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
58561
+ acceleratorTypeList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
58562
+ acceleratorTopologyList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f
58495
58563
  };
58496
58564
  if (includeInstance) {
58497
58565
  obj.$jspbMessageInstance = msg;
@@ -58551,6 +58619,10 @@ proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader = function (msg, read
58551
58619
  var value = /** @type {string} */ (reader.readString());
58552
58620
  msg.addAcceleratorType(value);
58553
58621
  break;
58622
+ case 10:
58623
+ var value = /** @type {string} */ (reader.readString());
58624
+ msg.addAcceleratorTopology(value);
58625
+ break;
58554
58626
  default:
58555
58627
  reader.skipField();
58556
58628
  break;
@@ -58604,6 +58676,10 @@ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function (message, writ
58604
58676
  if (f.length > 0) {
58605
58677
  writer.writeRepeatedString(5, f);
58606
58678
  }
58679
+ f = message.getAcceleratorTopologyList();
58680
+ if (f.length > 0) {
58681
+ writer.writeRepeatedString(10, f);
58682
+ }
58607
58683
  };
58608
58684
  /**
58609
58685
  * optional string cpu_limit = 6;
@@ -58718,6 +58794,35 @@ proto.clarifai.api.ComputeInfo.prototype.addAcceleratorType = function (value, o
58718
58794
  proto.clarifai.api.ComputeInfo.prototype.clearAcceleratorTypeList = function () {
58719
58795
  return this.setAcceleratorTypeList([]);
58720
58796
  };
58797
+ /**
58798
+ * repeated string accelerator_topology = 10;
58799
+ * @return {!Array<string>}
58800
+ */
58801
+ proto.clarifai.api.ComputeInfo.prototype.getAcceleratorTopologyList = function () {
58802
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
58803
+ };
58804
+ /**
58805
+ * @param {!Array<string>} value
58806
+ * @return {!proto.clarifai.api.ComputeInfo} returns this
58807
+ */
58808
+ proto.clarifai.api.ComputeInfo.prototype.setAcceleratorTopologyList = function (value) {
58809
+ return jspb.Message.setField(this, 10, value || []);
58810
+ };
58811
+ /**
58812
+ * @param {string} value
58813
+ * @param {number=} opt_index
58814
+ * @return {!proto.clarifai.api.ComputeInfo} returns this
58815
+ */
58816
+ proto.clarifai.api.ComputeInfo.prototype.addAcceleratorTopology = function (value, opt_index) {
58817
+ return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
58818
+ };
58819
+ /**
58820
+ * Clears the list making it empty but non-null.
58821
+ * @return {!proto.clarifai.api.ComputeInfo} returns this
58822
+ */
58823
+ proto.clarifai.api.ComputeInfo.prototype.clearAcceleratorTopologyList = function () {
58824
+ return this.setAcceleratorTopologyList([]);
58825
+ };
58721
58826
  if (jspb.Message.GENERATE_TO_OBJECT) {
58722
58827
  /**
58723
58828
  * Creates an object representation of this proto.
@@ -69559,6 +69664,309 @@ proto.clarifai.api.MetricSearchQuery.prototype.clearAggregate = function () {
69559
69664
  proto.clarifai.api.MetricSearchQuery.prototype.hasAggregate = function () {
69560
69665
  return jspb.Message.getField(this, 6) != null;
69561
69666
  };
69667
+ /**
69668
+ * List of repeated fields within this message type.
69669
+ * @private {!Array<number>}
69670
+ * @const
69671
+ */
69672
+ proto.clarifai.api.MetricTypeLabels.repeatedFields_ = [2];
69673
+ if (jspb.Message.GENERATE_TO_OBJECT) {
69674
+ /**
69675
+ * Creates an object representation of this proto.
69676
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
69677
+ * Optional fields that are not set will be set to undefined.
69678
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
69679
+ * For the list of reserved names please see:
69680
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
69681
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
69682
+ * JSPB instance for transitional soy proto support:
69683
+ * http://goto/soy-param-migration
69684
+ * @return {!Object}
69685
+ */
69686
+ proto.clarifai.api.MetricTypeLabels.prototype.toObject = function (opt_includeInstance) {
69687
+ return proto.clarifai.api.MetricTypeLabels.toObject(opt_includeInstance, this);
69688
+ };
69689
+ /**
69690
+ * Static version of the {@see toObject} method.
69691
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
69692
+ * the JSPB instance for transitional soy proto support:
69693
+ * http://goto/soy-param-migration
69694
+ * @param {!proto.clarifai.api.MetricTypeLabels} msg The msg instance to transform.
69695
+ * @return {!Object}
69696
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69697
+ */
69698
+ proto.clarifai.api.MetricTypeLabels.toObject = function (includeInstance, msg) {
69699
+ var f, obj = {
69700
+ metricType: jspb.Message.getFieldWithDefault(msg, 1, 0),
69701
+ labelsList: jspb.Message.toObjectList(msg.getLabelsList(), proto.clarifai.api.MetricTypeLabels.LabelWithValues.toObject, includeInstance)
69702
+ };
69703
+ if (includeInstance) {
69704
+ obj.$jspbMessageInstance = msg;
69705
+ }
69706
+ return obj;
69707
+ };
69708
+ }
69709
+ /**
69710
+ * Deserializes binary data (in protobuf wire format).
69711
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
69712
+ * @return {!proto.clarifai.api.MetricTypeLabels}
69713
+ */
69714
+ proto.clarifai.api.MetricTypeLabels.deserializeBinary = function (bytes) {
69715
+ var reader = new jspb.BinaryReader(bytes);
69716
+ var msg = new proto.clarifai.api.MetricTypeLabels;
69717
+ return proto.clarifai.api.MetricTypeLabels.deserializeBinaryFromReader(msg, reader);
69718
+ };
69719
+ /**
69720
+ * Deserializes binary data (in protobuf wire format) from the
69721
+ * given reader into the given message object.
69722
+ * @param {!proto.clarifai.api.MetricTypeLabels} msg The message object to deserialize into.
69723
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
69724
+ * @return {!proto.clarifai.api.MetricTypeLabels}
69725
+ */
69726
+ proto.clarifai.api.MetricTypeLabels.deserializeBinaryFromReader = function (msg, reader) {
69727
+ while (reader.nextField()) {
69728
+ if (reader.isEndGroup()) {
69729
+ break;
69730
+ }
69731
+ var field = reader.getFieldNumber();
69732
+ switch (field) {
69733
+ case 1:
69734
+ var value = /** @type {!proto.clarifai.api.MetricType} */ (reader.readEnum());
69735
+ msg.setMetricType(value);
69736
+ break;
69737
+ case 2:
69738
+ var value = new proto.clarifai.api.MetricTypeLabels.LabelWithValues;
69739
+ reader.readMessage(value, proto.clarifai.api.MetricTypeLabels.LabelWithValues.deserializeBinaryFromReader);
69740
+ msg.addLabels(value);
69741
+ break;
69742
+ default:
69743
+ reader.skipField();
69744
+ break;
69745
+ }
69746
+ }
69747
+ return msg;
69748
+ };
69749
+ /**
69750
+ * Serializes the message to binary data (in protobuf wire format).
69751
+ * @return {!Uint8Array}
69752
+ */
69753
+ proto.clarifai.api.MetricTypeLabels.prototype.serializeBinary = function () {
69754
+ var writer = new jspb.BinaryWriter();
69755
+ proto.clarifai.api.MetricTypeLabels.serializeBinaryToWriter(this, writer);
69756
+ return writer.getResultBuffer();
69757
+ };
69758
+ /**
69759
+ * Serializes the given message to binary data (in protobuf wire
69760
+ * format), writing to the given BinaryWriter.
69761
+ * @param {!proto.clarifai.api.MetricTypeLabels} message
69762
+ * @param {!jspb.BinaryWriter} writer
69763
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69764
+ */
69765
+ proto.clarifai.api.MetricTypeLabels.serializeBinaryToWriter = function (message, writer) {
69766
+ var f = undefined;
69767
+ f = message.getMetricType();
69768
+ if (f !== 0.0) {
69769
+ writer.writeEnum(1, f);
69770
+ }
69771
+ f = message.getLabelsList();
69772
+ if (f.length > 0) {
69773
+ writer.writeRepeatedMessage(2, f, proto.clarifai.api.MetricTypeLabels.LabelWithValues.serializeBinaryToWriter);
69774
+ }
69775
+ };
69776
+ /**
69777
+ * List of repeated fields within this message type.
69778
+ * @private {!Array<number>}
69779
+ * @const
69780
+ */
69781
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.repeatedFields_ = [2];
69782
+ if (jspb.Message.GENERATE_TO_OBJECT) {
69783
+ /**
69784
+ * Creates an object representation of this proto.
69785
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
69786
+ * Optional fields that are not set will be set to undefined.
69787
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
69788
+ * For the list of reserved names please see:
69789
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
69790
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
69791
+ * JSPB instance for transitional soy proto support:
69792
+ * http://goto/soy-param-migration
69793
+ * @return {!Object}
69794
+ */
69795
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.toObject = function (opt_includeInstance) {
69796
+ return proto.clarifai.api.MetricTypeLabels.LabelWithValues.toObject(opt_includeInstance, this);
69797
+ };
69798
+ /**
69799
+ * Static version of the {@see toObject} method.
69800
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
69801
+ * the JSPB instance for transitional soy proto support:
69802
+ * http://goto/soy-param-migration
69803
+ * @param {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} msg The msg instance to transform.
69804
+ * @return {!Object}
69805
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69806
+ */
69807
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.toObject = function (includeInstance, msg) {
69808
+ var f, obj = {
69809
+ label: jspb.Message.getFieldWithDefault(msg, 1, 0),
69810
+ valuesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
69811
+ };
69812
+ if (includeInstance) {
69813
+ obj.$jspbMessageInstance = msg;
69814
+ }
69815
+ return obj;
69816
+ };
69817
+ }
69818
+ /**
69819
+ * Deserializes binary data (in protobuf wire format).
69820
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
69821
+ * @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues}
69822
+ */
69823
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.deserializeBinary = function (bytes) {
69824
+ var reader = new jspb.BinaryReader(bytes);
69825
+ var msg = new proto.clarifai.api.MetricTypeLabels.LabelWithValues;
69826
+ return proto.clarifai.api.MetricTypeLabels.LabelWithValues.deserializeBinaryFromReader(msg, reader);
69827
+ };
69828
+ /**
69829
+ * Deserializes binary data (in protobuf wire format) from the
69830
+ * given reader into the given message object.
69831
+ * @param {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} msg The message object to deserialize into.
69832
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
69833
+ * @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues}
69834
+ */
69835
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.deserializeBinaryFromReader = function (msg, reader) {
69836
+ while (reader.nextField()) {
69837
+ if (reader.isEndGroup()) {
69838
+ break;
69839
+ }
69840
+ var field = reader.getFieldNumber();
69841
+ switch (field) {
69842
+ case 1:
69843
+ var value = /** @type {!proto.clarifai.api.MetricLabel} */ (reader.readEnum());
69844
+ msg.setLabel(value);
69845
+ break;
69846
+ case 2:
69847
+ var value = /** @type {string} */ (reader.readString());
69848
+ msg.addValues(value);
69849
+ break;
69850
+ default:
69851
+ reader.skipField();
69852
+ break;
69853
+ }
69854
+ }
69855
+ return msg;
69856
+ };
69857
+ /**
69858
+ * Serializes the message to binary data (in protobuf wire format).
69859
+ * @return {!Uint8Array}
69860
+ */
69861
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.serializeBinary = function () {
69862
+ var writer = new jspb.BinaryWriter();
69863
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.serializeBinaryToWriter(this, writer);
69864
+ return writer.getResultBuffer();
69865
+ };
69866
+ /**
69867
+ * Serializes the given message to binary data (in protobuf wire
69868
+ * format), writing to the given BinaryWriter.
69869
+ * @param {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} message
69870
+ * @param {!jspb.BinaryWriter} writer
69871
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69872
+ */
69873
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.serializeBinaryToWriter = function (message, writer) {
69874
+ var f = undefined;
69875
+ f = message.getLabel();
69876
+ if (f !== 0.0) {
69877
+ writer.writeEnum(1, f);
69878
+ }
69879
+ f = message.getValuesList();
69880
+ if (f.length > 0) {
69881
+ writer.writeRepeatedString(2, f);
69882
+ }
69883
+ };
69884
+ /**
69885
+ * optional MetricLabel label = 1;
69886
+ * @return {!proto.clarifai.api.MetricLabel}
69887
+ */
69888
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.getLabel = function () {
69889
+ return /** @type {!proto.clarifai.api.MetricLabel} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
69890
+ };
69891
+ /**
69892
+ * @param {!proto.clarifai.api.MetricLabel} value
69893
+ * @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} returns this
69894
+ */
69895
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.setLabel = function (value) {
69896
+ return jspb.Message.setProto3EnumField(this, 1, value);
69897
+ };
69898
+ /**
69899
+ * repeated string values = 2;
69900
+ * @return {!Array<string>}
69901
+ */
69902
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.getValuesList = function () {
69903
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
69904
+ };
69905
+ /**
69906
+ * @param {!Array<string>} value
69907
+ * @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} returns this
69908
+ */
69909
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.setValuesList = function (value) {
69910
+ return jspb.Message.setField(this, 2, value || []);
69911
+ };
69912
+ /**
69913
+ * @param {string} value
69914
+ * @param {number=} opt_index
69915
+ * @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} returns this
69916
+ */
69917
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.addValues = function (value, opt_index) {
69918
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
69919
+ };
69920
+ /**
69921
+ * Clears the list making it empty but non-null.
69922
+ * @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} returns this
69923
+ */
69924
+ proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.clearValuesList = function () {
69925
+ return this.setValuesList([]);
69926
+ };
69927
+ /**
69928
+ * optional MetricType metric_type = 1;
69929
+ * @return {!proto.clarifai.api.MetricType}
69930
+ */
69931
+ proto.clarifai.api.MetricTypeLabels.prototype.getMetricType = function () {
69932
+ return /** @type {!proto.clarifai.api.MetricType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
69933
+ };
69934
+ /**
69935
+ * @param {!proto.clarifai.api.MetricType} value
69936
+ * @return {!proto.clarifai.api.MetricTypeLabels} returns this
69937
+ */
69938
+ proto.clarifai.api.MetricTypeLabels.prototype.setMetricType = function (value) {
69939
+ return jspb.Message.setProto3EnumField(this, 1, value);
69940
+ };
69941
+ /**
69942
+ * repeated LabelWithValues labels = 2;
69943
+ * @return {!Array<!proto.clarifai.api.MetricTypeLabels.LabelWithValues>}
69944
+ */
69945
+ proto.clarifai.api.MetricTypeLabels.prototype.getLabelsList = function () {
69946
+ return /** @type{!Array<!proto.clarifai.api.MetricTypeLabels.LabelWithValues>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MetricTypeLabels.LabelWithValues, 2));
69947
+ };
69948
+ /**
69949
+ * @param {!Array<!proto.clarifai.api.MetricTypeLabels.LabelWithValues>} value
69950
+ * @return {!proto.clarifai.api.MetricTypeLabels} returns this
69951
+ */
69952
+ proto.clarifai.api.MetricTypeLabels.prototype.setLabelsList = function (value) {
69953
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
69954
+ };
69955
+ /**
69956
+ * @param {!proto.clarifai.api.MetricTypeLabels.LabelWithValues=} opt_value
69957
+ * @param {number=} opt_index
69958
+ * @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues}
69959
+ */
69960
+ proto.clarifai.api.MetricTypeLabels.prototype.addLabels = function (opt_value, opt_index) {
69961
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.MetricTypeLabels.LabelWithValues, opt_index);
69962
+ };
69963
+ /**
69964
+ * Clears the list making it empty but non-null.
69965
+ * @return {!proto.clarifai.api.MetricTypeLabels} returns this
69966
+ */
69967
+ proto.clarifai.api.MetricTypeLabels.prototype.clearLabelsList = function () {
69968
+ return this.setLabelsList([]);
69969
+ };
69562
69970
  /**
69563
69971
  * @enum {number}
69564
69972
  */
@@ -11570,4 +11570,88 @@ proto.clarifai.api.V2PromiseClient.prototype.deleteSecrets =
11570
11570
  return this.client_.unaryCall(this.hostname_ +
11571
11571
  '/clarifai.api.V2/DeleteSecrets', request, metadata || {}, methodDescriptor_V2_DeleteSecrets);
11572
11572
  };
11573
+ /**
11574
+ * @const
11575
+ * @type {!grpc.web.MethodDescriptor<
11576
+ * !proto.clarifai.api.PostMetricsQueryRequest,
11577
+ * !proto.clarifai.api.MetricsQueryResponse>}
11578
+ */
11579
+ const methodDescriptor_V2_PostMetricsQuery = new grpc.web.MethodDescriptor('/clarifai.api.V2/PostMetricsQuery', grpc.web.MethodType.UNARY, proto.clarifai.api.PostMetricsQueryRequest, proto.clarifai.api.MetricsQueryResponse,
11580
+ /**
11581
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} request
11582
+ * @return {!Uint8Array}
11583
+ */
11584
+ function (request) {
11585
+ return request.serializeBinary();
11586
+ }, proto.clarifai.api.MetricsQueryResponse.deserializeBinary);
11587
+ /**
11588
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} request The
11589
+ * request proto
11590
+ * @param {?Object<string, string>} metadata User defined
11591
+ * call metadata
11592
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MetricsQueryResponse)}
11593
+ * callback The callback function(error, response)
11594
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MetricsQueryResponse>|undefined}
11595
+ * The XHR Node Readable Stream
11596
+ */
11597
+ proto.clarifai.api.V2Client.prototype.postMetricsQuery =
11598
+ function (request, metadata, callback) {
11599
+ return this.client_.rpcCall(this.hostname_ +
11600
+ '/clarifai.api.V2/PostMetricsQuery', request, metadata || {}, methodDescriptor_V2_PostMetricsQuery, callback);
11601
+ };
11602
+ /**
11603
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} request The
11604
+ * request proto
11605
+ * @param {?Object<string, string>=} metadata User defined
11606
+ * call metadata
11607
+ * @return {!Promise<!proto.clarifai.api.MetricsQueryResponse>}
11608
+ * Promise that resolves to the response
11609
+ */
11610
+ proto.clarifai.api.V2PromiseClient.prototype.postMetricsQuery =
11611
+ function (request, metadata) {
11612
+ return this.client_.unaryCall(this.hostname_ +
11613
+ '/clarifai.api.V2/PostMetricsQuery', request, metadata || {}, methodDescriptor_V2_PostMetricsQuery);
11614
+ };
11615
+ /**
11616
+ * @const
11617
+ * @type {!grpc.web.MethodDescriptor<
11618
+ * !proto.clarifai.api.ListMetricLabelsRequest,
11619
+ * !proto.clarifai.api.MultiMetricLabelsResponse>}
11620
+ */
11621
+ const methodDescriptor_V2_ListMetricLabels = new grpc.web.MethodDescriptor('/clarifai.api.V2/ListMetricLabels', grpc.web.MethodType.UNARY, proto.clarifai.api.ListMetricLabelsRequest, proto.clarifai.api.MultiMetricLabelsResponse,
11622
+ /**
11623
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} request
11624
+ * @return {!Uint8Array}
11625
+ */
11626
+ function (request) {
11627
+ return request.serializeBinary();
11628
+ }, proto.clarifai.api.MultiMetricLabelsResponse.deserializeBinary);
11629
+ /**
11630
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} request The
11631
+ * request proto
11632
+ * @param {?Object<string, string>} metadata User defined
11633
+ * call metadata
11634
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiMetricLabelsResponse)}
11635
+ * callback The callback function(error, response)
11636
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiMetricLabelsResponse>|undefined}
11637
+ * The XHR Node Readable Stream
11638
+ */
11639
+ proto.clarifai.api.V2Client.prototype.listMetricLabels =
11640
+ function (request, metadata, callback) {
11641
+ return this.client_.rpcCall(this.hostname_ +
11642
+ '/clarifai.api.V2/ListMetricLabels', request, metadata || {}, methodDescriptor_V2_ListMetricLabels, callback);
11643
+ };
11644
+ /**
11645
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} request The
11646
+ * request proto
11647
+ * @param {?Object<string, string>=} metadata User defined
11648
+ * call metadata
11649
+ * @return {!Promise<!proto.clarifai.api.MultiMetricLabelsResponse>}
11650
+ * Promise that resolves to the response
11651
+ */
11652
+ proto.clarifai.api.V2PromiseClient.prototype.listMetricLabels =
11653
+ function (request, metadata) {
11654
+ return this.client_.unaryCall(this.hostname_ +
11655
+ '/clarifai.api.V2/ListMetricLabels', request, metadata || {}, methodDescriptor_V2_ListMetricLabels);
11656
+ };
11573
11657
  module.exports = proto.clarifai.api;