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 +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +411 -3
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +84 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +766 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +411 -3
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +84 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +766 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +59 -0
- package/proto/clarifai/api/resources_pb.js +502 -3
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +24 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +122 -0
- package/proto/clarifai/api/service_pb.d.ts +108 -0
- package/proto/clarifai/api/service_pb.js +942 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
- package/proto/clarifai/auth/scope/scope_pb.js +2 -1
|
@@ -330,7 +330,8 @@ proto.clarifai.auth.scope.S = {
|
|
|
330
330
|
PIPELINESTEPS_PULL: 159,
|
|
331
331
|
SECRETS_GET: 160,
|
|
332
332
|
SECRETS_ADD: 161,
|
|
333
|
-
SECRETS_DELETE: 162
|
|
333
|
+
SECRETS_DELETE: 162,
|
|
334
|
+
USERMETRICS_GET: 163
|
|
334
335
|
};
|
|
335
336
|
/**
|
|
336
337
|
* A tuple of {field number, class constructor} for the extension
|
package/package.json
CHANGED
|
@@ -8691,6 +8691,9 @@ export class InstanceType extends jspb.Message {
|
|
|
8691
8691
|
hasAllowedCapacityTypes(): boolean;
|
|
8692
8692
|
clearAllowedCapacityTypes(): InstanceType;
|
|
8693
8693
|
|
|
8694
|
+
getFeatureFlagGroup(): string;
|
|
8695
|
+
setFeatureFlagGroup(value: string): InstanceType;
|
|
8696
|
+
|
|
8694
8697
|
serializeBinary(): Uint8Array;
|
|
8695
8698
|
toObject(includeInstance?: boolean): InstanceType.AsObject;
|
|
8696
8699
|
static toObject(includeInstance: boolean, msg: InstanceType): InstanceType.AsObject;
|
|
@@ -8708,6 +8711,7 @@ export namespace InstanceType {
|
|
|
8708
8711
|
cloudProvider?: CloudProvider.AsObject,
|
|
8709
8712
|
region: string,
|
|
8710
8713
|
allowedCapacityTypes?: NodeCapacityType.AsObject,
|
|
8714
|
+
featureFlagGroup: string,
|
|
8711
8715
|
}
|
|
8712
8716
|
}
|
|
8713
8717
|
|
|
@@ -8825,6 +8829,11 @@ export class ComputeInfo extends jspb.Message {
|
|
|
8825
8829
|
clearAcceleratorTypeList(): ComputeInfo;
|
|
8826
8830
|
addAcceleratorType(value: string, index?: number): ComputeInfo;
|
|
8827
8831
|
|
|
8832
|
+
getAcceleratorTopologyList(): Array<string>;
|
|
8833
|
+
setAcceleratorTopologyList(value: Array<string>): ComputeInfo;
|
|
8834
|
+
clearAcceleratorTopologyList(): ComputeInfo;
|
|
8835
|
+
addAcceleratorTopology(value: string, index?: number): ComputeInfo;
|
|
8836
|
+
|
|
8828
8837
|
serializeBinary(): Uint8Array;
|
|
8829
8838
|
toObject(includeInstance?: boolean): ComputeInfo.AsObject;
|
|
8830
8839
|
static toObject(includeInstance: boolean, msg: ComputeInfo): ComputeInfo.AsObject;
|
|
@@ -8842,6 +8851,7 @@ export namespace ComputeInfo {
|
|
|
8842
8851
|
numAccelerators: number,
|
|
8843
8852
|
acceleratorMemory: string,
|
|
8844
8853
|
acceleratorTypeList: Array<string>,
|
|
8854
|
+
acceleratorTopologyList: Array<string>,
|
|
8845
8855
|
}
|
|
8846
8856
|
}
|
|
8847
8857
|
|
|
@@ -10677,6 +10687,55 @@ export namespace MetricSearchQuery {
|
|
|
10677
10687
|
}
|
|
10678
10688
|
}
|
|
10679
10689
|
|
|
10690
|
+
export class MetricTypeLabels extends jspb.Message {
|
|
10691
|
+
getMetricType(): MetricType;
|
|
10692
|
+
setMetricType(value: MetricType): MetricTypeLabels;
|
|
10693
|
+
|
|
10694
|
+
getLabelsList(): Array<MetricTypeLabels.LabelWithValues>;
|
|
10695
|
+
setLabelsList(value: Array<MetricTypeLabels.LabelWithValues>): MetricTypeLabels;
|
|
10696
|
+
clearLabelsList(): MetricTypeLabels;
|
|
10697
|
+
addLabels(value?: MetricTypeLabels.LabelWithValues, index?: number): MetricTypeLabels.LabelWithValues;
|
|
10698
|
+
|
|
10699
|
+
serializeBinary(): Uint8Array;
|
|
10700
|
+
toObject(includeInstance?: boolean): MetricTypeLabels.AsObject;
|
|
10701
|
+
static toObject(includeInstance: boolean, msg: MetricTypeLabels): MetricTypeLabels.AsObject;
|
|
10702
|
+
static serializeBinaryToWriter(message: MetricTypeLabels, writer: jspb.BinaryWriter): void;
|
|
10703
|
+
static deserializeBinary(bytes: Uint8Array): MetricTypeLabels;
|
|
10704
|
+
static deserializeBinaryFromReader(message: MetricTypeLabels, reader: jspb.BinaryReader): MetricTypeLabels;
|
|
10705
|
+
}
|
|
10706
|
+
|
|
10707
|
+
export namespace MetricTypeLabels {
|
|
10708
|
+
export type AsObject = {
|
|
10709
|
+
metricType: MetricType,
|
|
10710
|
+
labelsList: Array<MetricTypeLabels.LabelWithValues.AsObject>,
|
|
10711
|
+
}
|
|
10712
|
+
|
|
10713
|
+
export class LabelWithValues extends jspb.Message {
|
|
10714
|
+
getLabel(): MetricLabel;
|
|
10715
|
+
setLabel(value: MetricLabel): LabelWithValues;
|
|
10716
|
+
|
|
10717
|
+
getValuesList(): Array<string>;
|
|
10718
|
+
setValuesList(value: Array<string>): LabelWithValues;
|
|
10719
|
+
clearValuesList(): LabelWithValues;
|
|
10720
|
+
addValues(value: string, index?: number): LabelWithValues;
|
|
10721
|
+
|
|
10722
|
+
serializeBinary(): Uint8Array;
|
|
10723
|
+
toObject(includeInstance?: boolean): LabelWithValues.AsObject;
|
|
10724
|
+
static toObject(includeInstance: boolean, msg: LabelWithValues): LabelWithValues.AsObject;
|
|
10725
|
+
static serializeBinaryToWriter(message: LabelWithValues, writer: jspb.BinaryWriter): void;
|
|
10726
|
+
static deserializeBinary(bytes: Uint8Array): LabelWithValues;
|
|
10727
|
+
static deserializeBinaryFromReader(message: LabelWithValues, reader: jspb.BinaryReader): LabelWithValues;
|
|
10728
|
+
}
|
|
10729
|
+
|
|
10730
|
+
export namespace LabelWithValues {
|
|
10731
|
+
export type AsObject = {
|
|
10732
|
+
label: MetricLabel,
|
|
10733
|
+
valuesList: Array<string>,
|
|
10734
|
+
}
|
|
10735
|
+
}
|
|
10736
|
+
|
|
10737
|
+
}
|
|
10738
|
+
|
|
10680
10739
|
export enum WorkflowModelUseCase {
|
|
10681
10740
|
WORKFLOW_MODEL_USE_CASE_NOT_SET = 0,
|
|
10682
10741
|
CLASSIFICATION = 1,
|
|
@@ -206,6 +206,8 @@ goog.exportSymbol('proto.clarifai.api.MetricFilter.ValueCase', null, global);
|
|
|
206
206
|
goog.exportSymbol('proto.clarifai.api.MetricLabel', null, global);
|
|
207
207
|
goog.exportSymbol('proto.clarifai.api.MetricSearchQuery', null, global);
|
|
208
208
|
goog.exportSymbol('proto.clarifai.api.MetricType', null, global);
|
|
209
|
+
goog.exportSymbol('proto.clarifai.api.MetricTypeLabels', null, global);
|
|
210
|
+
goog.exportSymbol('proto.clarifai.api.MetricTypeLabels.LabelWithValues', null, global);
|
|
209
211
|
goog.exportSymbol('proto.clarifai.api.MetricValue', null, global);
|
|
210
212
|
goog.exportSymbol('proto.clarifai.api.MetricValue.MetricValueCase', null, global);
|
|
211
213
|
goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
|
|
@@ -5778,6 +5780,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5778
5780
|
*/
|
|
5779
5781
|
proto.clarifai.api.MetricSearchQuery.displayName = 'proto.clarifai.api.MetricSearchQuery';
|
|
5780
5782
|
}
|
|
5783
|
+
/**
|
|
5784
|
+
* Generated by JsPbCodeGenerator.
|
|
5785
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5786
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5787
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5788
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5789
|
+
* valid.
|
|
5790
|
+
* @extends {jspb.Message}
|
|
5791
|
+
* @constructor
|
|
5792
|
+
*/
|
|
5793
|
+
proto.clarifai.api.MetricTypeLabels = function(opt_data) {
|
|
5794
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricTypeLabels.repeatedFields_, null);
|
|
5795
|
+
};
|
|
5796
|
+
goog.inherits(proto.clarifai.api.MetricTypeLabels, jspb.Message);
|
|
5797
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5798
|
+
/**
|
|
5799
|
+
* @public
|
|
5800
|
+
* @override
|
|
5801
|
+
*/
|
|
5802
|
+
proto.clarifai.api.MetricTypeLabels.displayName = 'proto.clarifai.api.MetricTypeLabels';
|
|
5803
|
+
}
|
|
5804
|
+
/**
|
|
5805
|
+
* Generated by JsPbCodeGenerator.
|
|
5806
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5807
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5808
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5809
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5810
|
+
* valid.
|
|
5811
|
+
* @extends {jspb.Message}
|
|
5812
|
+
* @constructor
|
|
5813
|
+
*/
|
|
5814
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues = function(opt_data) {
|
|
5815
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricTypeLabels.LabelWithValues.repeatedFields_, null);
|
|
5816
|
+
};
|
|
5817
|
+
goog.inherits(proto.clarifai.api.MetricTypeLabels.LabelWithValues, jspb.Message);
|
|
5818
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5819
|
+
/**
|
|
5820
|
+
* @public
|
|
5821
|
+
* @override
|
|
5822
|
+
*/
|
|
5823
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.displayName = 'proto.clarifai.api.MetricTypeLabels.LabelWithValues';
|
|
5824
|
+
}
|
|
5781
5825
|
|
|
5782
5826
|
|
|
5783
5827
|
|
|
@@ -71957,7 +72001,8 @@ proto.clarifai.api.InstanceType.toObject = function(includeInstance, msg) {
|
|
|
71957
72001
|
price: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
71958
72002
|
cloudProvider: (f = msg.getCloudProvider()) && proto.clarifai.api.CloudProvider.toObject(includeInstance, f),
|
|
71959
72003
|
region: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
71960
|
-
allowedCapacityTypes: (f = msg.getAllowedCapacityTypes()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f)
|
|
72004
|
+
allowedCapacityTypes: (f = msg.getAllowedCapacityTypes()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
|
|
72005
|
+
featureFlagGroup: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
71961
72006
|
};
|
|
71962
72007
|
|
|
71963
72008
|
if (includeInstance) {
|
|
@@ -72025,6 +72070,10 @@ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function(msg, read
|
|
|
72025
72070
|
reader.readMessage(value,proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader);
|
|
72026
72071
|
msg.setAllowedCapacityTypes(value);
|
|
72027
72072
|
break;
|
|
72073
|
+
case 8:
|
|
72074
|
+
var value = /** @type {string} */ (reader.readString());
|
|
72075
|
+
msg.setFeatureFlagGroup(value);
|
|
72076
|
+
break;
|
|
72028
72077
|
default:
|
|
72029
72078
|
reader.skipField();
|
|
72030
72079
|
break;
|
|
@@ -72106,6 +72155,13 @@ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function(message, writ
|
|
|
72106
72155
|
proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter
|
|
72107
72156
|
);
|
|
72108
72157
|
}
|
|
72158
|
+
f = message.getFeatureFlagGroup();
|
|
72159
|
+
if (f.length > 0) {
|
|
72160
|
+
writer.writeString(
|
|
72161
|
+
8,
|
|
72162
|
+
f
|
|
72163
|
+
);
|
|
72164
|
+
}
|
|
72109
72165
|
};
|
|
72110
72166
|
|
|
72111
72167
|
|
|
@@ -72292,6 +72348,24 @@ proto.clarifai.api.InstanceType.prototype.hasAllowedCapacityTypes = function() {
|
|
|
72292
72348
|
};
|
|
72293
72349
|
|
|
72294
72350
|
|
|
72351
|
+
/**
|
|
72352
|
+
* optional string feature_flag_group = 8;
|
|
72353
|
+
* @return {string}
|
|
72354
|
+
*/
|
|
72355
|
+
proto.clarifai.api.InstanceType.prototype.getFeatureFlagGroup = function() {
|
|
72356
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
72357
|
+
};
|
|
72358
|
+
|
|
72359
|
+
|
|
72360
|
+
/**
|
|
72361
|
+
* @param {string} value
|
|
72362
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
72363
|
+
*/
|
|
72364
|
+
proto.clarifai.api.InstanceType.prototype.setFeatureFlagGroup = function(value) {
|
|
72365
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
72366
|
+
};
|
|
72367
|
+
|
|
72368
|
+
|
|
72295
72369
|
|
|
72296
72370
|
|
|
72297
72371
|
|
|
@@ -72993,7 +73067,7 @@ proto.clarifai.api.ComputeCluster.prototype.hasKey = function() {
|
|
|
72993
73067
|
* @private {!Array<number>}
|
|
72994
73068
|
* @const
|
|
72995
73069
|
*/
|
|
72996
|
-
proto.clarifai.api.ComputeInfo.repeatedFields_ = [5];
|
|
73070
|
+
proto.clarifai.api.ComputeInfo.repeatedFields_ = [5,10];
|
|
72997
73071
|
|
|
72998
73072
|
|
|
72999
73073
|
|
|
@@ -73032,7 +73106,8 @@ proto.clarifai.api.ComputeInfo.toObject = function(includeInstance, msg) {
|
|
|
73032
73106
|
cpuMemoryRequests: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
73033
73107
|
numAccelerators: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
73034
73108
|
acceleratorMemory: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
73035
|
-
acceleratorTypeList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
|
73109
|
+
acceleratorTypeList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
73110
|
+
acceleratorTopologyList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f
|
|
73036
73111
|
};
|
|
73037
73112
|
|
|
73038
73113
|
if (includeInstance) {
|
|
@@ -73097,6 +73172,10 @@ proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader = function(msg, reade
|
|
|
73097
73172
|
var value = /** @type {string} */ (reader.readString());
|
|
73098
73173
|
msg.addAcceleratorType(value);
|
|
73099
73174
|
break;
|
|
73175
|
+
case 10:
|
|
73176
|
+
var value = /** @type {string} */ (reader.readString());
|
|
73177
|
+
msg.addAcceleratorTopology(value);
|
|
73178
|
+
break;
|
|
73100
73179
|
default:
|
|
73101
73180
|
reader.skipField();
|
|
73102
73181
|
break;
|
|
@@ -73175,6 +73254,13 @@ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function(message, write
|
|
|
73175
73254
|
f
|
|
73176
73255
|
);
|
|
73177
73256
|
}
|
|
73257
|
+
f = message.getAcceleratorTopologyList();
|
|
73258
|
+
if (f.length > 0) {
|
|
73259
|
+
writer.writeRepeatedString(
|
|
73260
|
+
10,
|
|
73261
|
+
f
|
|
73262
|
+
);
|
|
73263
|
+
}
|
|
73178
73264
|
};
|
|
73179
73265
|
|
|
73180
73266
|
|
|
@@ -73323,6 +73409,43 @@ proto.clarifai.api.ComputeInfo.prototype.clearAcceleratorTypeList = function() {
|
|
|
73323
73409
|
};
|
|
73324
73410
|
|
|
73325
73411
|
|
|
73412
|
+
/**
|
|
73413
|
+
* repeated string accelerator_topology = 10;
|
|
73414
|
+
* @return {!Array<string>}
|
|
73415
|
+
*/
|
|
73416
|
+
proto.clarifai.api.ComputeInfo.prototype.getAcceleratorTopologyList = function() {
|
|
73417
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
|
|
73418
|
+
};
|
|
73419
|
+
|
|
73420
|
+
|
|
73421
|
+
/**
|
|
73422
|
+
* @param {!Array<string>} value
|
|
73423
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
73424
|
+
*/
|
|
73425
|
+
proto.clarifai.api.ComputeInfo.prototype.setAcceleratorTopologyList = function(value) {
|
|
73426
|
+
return jspb.Message.setField(this, 10, value || []);
|
|
73427
|
+
};
|
|
73428
|
+
|
|
73429
|
+
|
|
73430
|
+
/**
|
|
73431
|
+
* @param {string} value
|
|
73432
|
+
* @param {number=} opt_index
|
|
73433
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
73434
|
+
*/
|
|
73435
|
+
proto.clarifai.api.ComputeInfo.prototype.addAcceleratorTopology = function(value, opt_index) {
|
|
73436
|
+
return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
|
|
73437
|
+
};
|
|
73438
|
+
|
|
73439
|
+
|
|
73440
|
+
/**
|
|
73441
|
+
* Clears the list making it empty but non-null.
|
|
73442
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
73443
|
+
*/
|
|
73444
|
+
proto.clarifai.api.ComputeInfo.prototype.clearAcceleratorTopologyList = function() {
|
|
73445
|
+
return this.setAcceleratorTopologyList([]);
|
|
73446
|
+
};
|
|
73447
|
+
|
|
73448
|
+
|
|
73326
73449
|
|
|
73327
73450
|
|
|
73328
73451
|
|
|
@@ -87132,6 +87255,382 @@ proto.clarifai.api.MetricSearchQuery.prototype.hasAggregate = function() {
|
|
|
87132
87255
|
};
|
|
87133
87256
|
|
|
87134
87257
|
|
|
87258
|
+
|
|
87259
|
+
/**
|
|
87260
|
+
* List of repeated fields within this message type.
|
|
87261
|
+
* @private {!Array<number>}
|
|
87262
|
+
* @const
|
|
87263
|
+
*/
|
|
87264
|
+
proto.clarifai.api.MetricTypeLabels.repeatedFields_ = [2];
|
|
87265
|
+
|
|
87266
|
+
|
|
87267
|
+
|
|
87268
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
87269
|
+
/**
|
|
87270
|
+
* Creates an object representation of this proto.
|
|
87271
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
87272
|
+
* Optional fields that are not set will be set to undefined.
|
|
87273
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
87274
|
+
* For the list of reserved names please see:
|
|
87275
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
87276
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
87277
|
+
* JSPB instance for transitional soy proto support:
|
|
87278
|
+
* http://goto/soy-param-migration
|
|
87279
|
+
* @return {!Object}
|
|
87280
|
+
*/
|
|
87281
|
+
proto.clarifai.api.MetricTypeLabels.prototype.toObject = function(opt_includeInstance) {
|
|
87282
|
+
return proto.clarifai.api.MetricTypeLabels.toObject(opt_includeInstance, this);
|
|
87283
|
+
};
|
|
87284
|
+
|
|
87285
|
+
|
|
87286
|
+
/**
|
|
87287
|
+
* Static version of the {@see toObject} method.
|
|
87288
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
87289
|
+
* the JSPB instance for transitional soy proto support:
|
|
87290
|
+
* http://goto/soy-param-migration
|
|
87291
|
+
* @param {!proto.clarifai.api.MetricTypeLabels} msg The msg instance to transform.
|
|
87292
|
+
* @return {!Object}
|
|
87293
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87294
|
+
*/
|
|
87295
|
+
proto.clarifai.api.MetricTypeLabels.toObject = function(includeInstance, msg) {
|
|
87296
|
+
var f, obj = {
|
|
87297
|
+
metricType: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
87298
|
+
labelsList: jspb.Message.toObjectList(msg.getLabelsList(),
|
|
87299
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.toObject, includeInstance)
|
|
87300
|
+
};
|
|
87301
|
+
|
|
87302
|
+
if (includeInstance) {
|
|
87303
|
+
obj.$jspbMessageInstance = msg;
|
|
87304
|
+
}
|
|
87305
|
+
return obj;
|
|
87306
|
+
};
|
|
87307
|
+
}
|
|
87308
|
+
|
|
87309
|
+
|
|
87310
|
+
/**
|
|
87311
|
+
* Deserializes binary data (in protobuf wire format).
|
|
87312
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
87313
|
+
* @return {!proto.clarifai.api.MetricTypeLabels}
|
|
87314
|
+
*/
|
|
87315
|
+
proto.clarifai.api.MetricTypeLabels.deserializeBinary = function(bytes) {
|
|
87316
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
87317
|
+
var msg = new proto.clarifai.api.MetricTypeLabels;
|
|
87318
|
+
return proto.clarifai.api.MetricTypeLabels.deserializeBinaryFromReader(msg, reader);
|
|
87319
|
+
};
|
|
87320
|
+
|
|
87321
|
+
|
|
87322
|
+
/**
|
|
87323
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
87324
|
+
* given reader into the given message object.
|
|
87325
|
+
* @param {!proto.clarifai.api.MetricTypeLabels} msg The message object to deserialize into.
|
|
87326
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
87327
|
+
* @return {!proto.clarifai.api.MetricTypeLabels}
|
|
87328
|
+
*/
|
|
87329
|
+
proto.clarifai.api.MetricTypeLabels.deserializeBinaryFromReader = function(msg, reader) {
|
|
87330
|
+
while (reader.nextField()) {
|
|
87331
|
+
if (reader.isEndGroup()) {
|
|
87332
|
+
break;
|
|
87333
|
+
}
|
|
87334
|
+
var field = reader.getFieldNumber();
|
|
87335
|
+
switch (field) {
|
|
87336
|
+
case 1:
|
|
87337
|
+
var value = /** @type {!proto.clarifai.api.MetricType} */ (reader.readEnum());
|
|
87338
|
+
msg.setMetricType(value);
|
|
87339
|
+
break;
|
|
87340
|
+
case 2:
|
|
87341
|
+
var value = new proto.clarifai.api.MetricTypeLabels.LabelWithValues;
|
|
87342
|
+
reader.readMessage(value,proto.clarifai.api.MetricTypeLabels.LabelWithValues.deserializeBinaryFromReader);
|
|
87343
|
+
msg.addLabels(value);
|
|
87344
|
+
break;
|
|
87345
|
+
default:
|
|
87346
|
+
reader.skipField();
|
|
87347
|
+
break;
|
|
87348
|
+
}
|
|
87349
|
+
}
|
|
87350
|
+
return msg;
|
|
87351
|
+
};
|
|
87352
|
+
|
|
87353
|
+
|
|
87354
|
+
/**
|
|
87355
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
87356
|
+
* @return {!Uint8Array}
|
|
87357
|
+
*/
|
|
87358
|
+
proto.clarifai.api.MetricTypeLabels.prototype.serializeBinary = function() {
|
|
87359
|
+
var writer = new jspb.BinaryWriter();
|
|
87360
|
+
proto.clarifai.api.MetricTypeLabels.serializeBinaryToWriter(this, writer);
|
|
87361
|
+
return writer.getResultBuffer();
|
|
87362
|
+
};
|
|
87363
|
+
|
|
87364
|
+
|
|
87365
|
+
/**
|
|
87366
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
87367
|
+
* format), writing to the given BinaryWriter.
|
|
87368
|
+
* @param {!proto.clarifai.api.MetricTypeLabels} message
|
|
87369
|
+
* @param {!jspb.BinaryWriter} writer
|
|
87370
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87371
|
+
*/
|
|
87372
|
+
proto.clarifai.api.MetricTypeLabels.serializeBinaryToWriter = function(message, writer) {
|
|
87373
|
+
var f = undefined;
|
|
87374
|
+
f = message.getMetricType();
|
|
87375
|
+
if (f !== 0.0) {
|
|
87376
|
+
writer.writeEnum(
|
|
87377
|
+
1,
|
|
87378
|
+
f
|
|
87379
|
+
);
|
|
87380
|
+
}
|
|
87381
|
+
f = message.getLabelsList();
|
|
87382
|
+
if (f.length > 0) {
|
|
87383
|
+
writer.writeRepeatedMessage(
|
|
87384
|
+
2,
|
|
87385
|
+
f,
|
|
87386
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.serializeBinaryToWriter
|
|
87387
|
+
);
|
|
87388
|
+
}
|
|
87389
|
+
};
|
|
87390
|
+
|
|
87391
|
+
|
|
87392
|
+
|
|
87393
|
+
/**
|
|
87394
|
+
* List of repeated fields within this message type.
|
|
87395
|
+
* @private {!Array<number>}
|
|
87396
|
+
* @const
|
|
87397
|
+
*/
|
|
87398
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.repeatedFields_ = [2];
|
|
87399
|
+
|
|
87400
|
+
|
|
87401
|
+
|
|
87402
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
87403
|
+
/**
|
|
87404
|
+
* Creates an object representation of this proto.
|
|
87405
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
87406
|
+
* Optional fields that are not set will be set to undefined.
|
|
87407
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
87408
|
+
* For the list of reserved names please see:
|
|
87409
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
87410
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
87411
|
+
* JSPB instance for transitional soy proto support:
|
|
87412
|
+
* http://goto/soy-param-migration
|
|
87413
|
+
* @return {!Object}
|
|
87414
|
+
*/
|
|
87415
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.toObject = function(opt_includeInstance) {
|
|
87416
|
+
return proto.clarifai.api.MetricTypeLabels.LabelWithValues.toObject(opt_includeInstance, this);
|
|
87417
|
+
};
|
|
87418
|
+
|
|
87419
|
+
|
|
87420
|
+
/**
|
|
87421
|
+
* Static version of the {@see toObject} method.
|
|
87422
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
87423
|
+
* the JSPB instance for transitional soy proto support:
|
|
87424
|
+
* http://goto/soy-param-migration
|
|
87425
|
+
* @param {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} msg The msg instance to transform.
|
|
87426
|
+
* @return {!Object}
|
|
87427
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87428
|
+
*/
|
|
87429
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.toObject = function(includeInstance, msg) {
|
|
87430
|
+
var f, obj = {
|
|
87431
|
+
label: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
87432
|
+
valuesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
87433
|
+
};
|
|
87434
|
+
|
|
87435
|
+
if (includeInstance) {
|
|
87436
|
+
obj.$jspbMessageInstance = msg;
|
|
87437
|
+
}
|
|
87438
|
+
return obj;
|
|
87439
|
+
};
|
|
87440
|
+
}
|
|
87441
|
+
|
|
87442
|
+
|
|
87443
|
+
/**
|
|
87444
|
+
* Deserializes binary data (in protobuf wire format).
|
|
87445
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
87446
|
+
* @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues}
|
|
87447
|
+
*/
|
|
87448
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.deserializeBinary = function(bytes) {
|
|
87449
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
87450
|
+
var msg = new proto.clarifai.api.MetricTypeLabels.LabelWithValues;
|
|
87451
|
+
return proto.clarifai.api.MetricTypeLabels.LabelWithValues.deserializeBinaryFromReader(msg, reader);
|
|
87452
|
+
};
|
|
87453
|
+
|
|
87454
|
+
|
|
87455
|
+
/**
|
|
87456
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
87457
|
+
* given reader into the given message object.
|
|
87458
|
+
* @param {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} msg The message object to deserialize into.
|
|
87459
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
87460
|
+
* @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues}
|
|
87461
|
+
*/
|
|
87462
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.deserializeBinaryFromReader = function(msg, reader) {
|
|
87463
|
+
while (reader.nextField()) {
|
|
87464
|
+
if (reader.isEndGroup()) {
|
|
87465
|
+
break;
|
|
87466
|
+
}
|
|
87467
|
+
var field = reader.getFieldNumber();
|
|
87468
|
+
switch (field) {
|
|
87469
|
+
case 1:
|
|
87470
|
+
var value = /** @type {!proto.clarifai.api.MetricLabel} */ (reader.readEnum());
|
|
87471
|
+
msg.setLabel(value);
|
|
87472
|
+
break;
|
|
87473
|
+
case 2:
|
|
87474
|
+
var value = /** @type {string} */ (reader.readString());
|
|
87475
|
+
msg.addValues(value);
|
|
87476
|
+
break;
|
|
87477
|
+
default:
|
|
87478
|
+
reader.skipField();
|
|
87479
|
+
break;
|
|
87480
|
+
}
|
|
87481
|
+
}
|
|
87482
|
+
return msg;
|
|
87483
|
+
};
|
|
87484
|
+
|
|
87485
|
+
|
|
87486
|
+
/**
|
|
87487
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
87488
|
+
* @return {!Uint8Array}
|
|
87489
|
+
*/
|
|
87490
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.serializeBinary = function() {
|
|
87491
|
+
var writer = new jspb.BinaryWriter();
|
|
87492
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.serializeBinaryToWriter(this, writer);
|
|
87493
|
+
return writer.getResultBuffer();
|
|
87494
|
+
};
|
|
87495
|
+
|
|
87496
|
+
|
|
87497
|
+
/**
|
|
87498
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
87499
|
+
* format), writing to the given BinaryWriter.
|
|
87500
|
+
* @param {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} message
|
|
87501
|
+
* @param {!jspb.BinaryWriter} writer
|
|
87502
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87503
|
+
*/
|
|
87504
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.serializeBinaryToWriter = function(message, writer) {
|
|
87505
|
+
var f = undefined;
|
|
87506
|
+
f = message.getLabel();
|
|
87507
|
+
if (f !== 0.0) {
|
|
87508
|
+
writer.writeEnum(
|
|
87509
|
+
1,
|
|
87510
|
+
f
|
|
87511
|
+
);
|
|
87512
|
+
}
|
|
87513
|
+
f = message.getValuesList();
|
|
87514
|
+
if (f.length > 0) {
|
|
87515
|
+
writer.writeRepeatedString(
|
|
87516
|
+
2,
|
|
87517
|
+
f
|
|
87518
|
+
);
|
|
87519
|
+
}
|
|
87520
|
+
};
|
|
87521
|
+
|
|
87522
|
+
|
|
87523
|
+
/**
|
|
87524
|
+
* optional MetricLabel label = 1;
|
|
87525
|
+
* @return {!proto.clarifai.api.MetricLabel}
|
|
87526
|
+
*/
|
|
87527
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.getLabel = function() {
|
|
87528
|
+
return /** @type {!proto.clarifai.api.MetricLabel} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
87529
|
+
};
|
|
87530
|
+
|
|
87531
|
+
|
|
87532
|
+
/**
|
|
87533
|
+
* @param {!proto.clarifai.api.MetricLabel} value
|
|
87534
|
+
* @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} returns this
|
|
87535
|
+
*/
|
|
87536
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.setLabel = function(value) {
|
|
87537
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
87538
|
+
};
|
|
87539
|
+
|
|
87540
|
+
|
|
87541
|
+
/**
|
|
87542
|
+
* repeated string values = 2;
|
|
87543
|
+
* @return {!Array<string>}
|
|
87544
|
+
*/
|
|
87545
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.getValuesList = function() {
|
|
87546
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
87547
|
+
};
|
|
87548
|
+
|
|
87549
|
+
|
|
87550
|
+
/**
|
|
87551
|
+
* @param {!Array<string>} value
|
|
87552
|
+
* @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} returns this
|
|
87553
|
+
*/
|
|
87554
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.setValuesList = function(value) {
|
|
87555
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
87556
|
+
};
|
|
87557
|
+
|
|
87558
|
+
|
|
87559
|
+
/**
|
|
87560
|
+
* @param {string} value
|
|
87561
|
+
* @param {number=} opt_index
|
|
87562
|
+
* @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} returns this
|
|
87563
|
+
*/
|
|
87564
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.addValues = function(value, opt_index) {
|
|
87565
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
87566
|
+
};
|
|
87567
|
+
|
|
87568
|
+
|
|
87569
|
+
/**
|
|
87570
|
+
* Clears the list making it empty but non-null.
|
|
87571
|
+
* @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues} returns this
|
|
87572
|
+
*/
|
|
87573
|
+
proto.clarifai.api.MetricTypeLabels.LabelWithValues.prototype.clearValuesList = function() {
|
|
87574
|
+
return this.setValuesList([]);
|
|
87575
|
+
};
|
|
87576
|
+
|
|
87577
|
+
|
|
87578
|
+
/**
|
|
87579
|
+
* optional MetricType metric_type = 1;
|
|
87580
|
+
* @return {!proto.clarifai.api.MetricType}
|
|
87581
|
+
*/
|
|
87582
|
+
proto.clarifai.api.MetricTypeLabels.prototype.getMetricType = function() {
|
|
87583
|
+
return /** @type {!proto.clarifai.api.MetricType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
87584
|
+
};
|
|
87585
|
+
|
|
87586
|
+
|
|
87587
|
+
/**
|
|
87588
|
+
* @param {!proto.clarifai.api.MetricType} value
|
|
87589
|
+
* @return {!proto.clarifai.api.MetricTypeLabels} returns this
|
|
87590
|
+
*/
|
|
87591
|
+
proto.clarifai.api.MetricTypeLabels.prototype.setMetricType = function(value) {
|
|
87592
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
87593
|
+
};
|
|
87594
|
+
|
|
87595
|
+
|
|
87596
|
+
/**
|
|
87597
|
+
* repeated LabelWithValues labels = 2;
|
|
87598
|
+
* @return {!Array<!proto.clarifai.api.MetricTypeLabels.LabelWithValues>}
|
|
87599
|
+
*/
|
|
87600
|
+
proto.clarifai.api.MetricTypeLabels.prototype.getLabelsList = function() {
|
|
87601
|
+
return /** @type{!Array<!proto.clarifai.api.MetricTypeLabels.LabelWithValues>} */ (
|
|
87602
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MetricTypeLabels.LabelWithValues, 2));
|
|
87603
|
+
};
|
|
87604
|
+
|
|
87605
|
+
|
|
87606
|
+
/**
|
|
87607
|
+
* @param {!Array<!proto.clarifai.api.MetricTypeLabels.LabelWithValues>} value
|
|
87608
|
+
* @return {!proto.clarifai.api.MetricTypeLabels} returns this
|
|
87609
|
+
*/
|
|
87610
|
+
proto.clarifai.api.MetricTypeLabels.prototype.setLabelsList = function(value) {
|
|
87611
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
87612
|
+
};
|
|
87613
|
+
|
|
87614
|
+
|
|
87615
|
+
/**
|
|
87616
|
+
* @param {!proto.clarifai.api.MetricTypeLabels.LabelWithValues=} opt_value
|
|
87617
|
+
* @param {number=} opt_index
|
|
87618
|
+
* @return {!proto.clarifai.api.MetricTypeLabels.LabelWithValues}
|
|
87619
|
+
*/
|
|
87620
|
+
proto.clarifai.api.MetricTypeLabels.prototype.addLabels = function(opt_value, opt_index) {
|
|
87621
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.MetricTypeLabels.LabelWithValues, opt_index);
|
|
87622
|
+
};
|
|
87623
|
+
|
|
87624
|
+
|
|
87625
|
+
/**
|
|
87626
|
+
* Clears the list making it empty but non-null.
|
|
87627
|
+
* @return {!proto.clarifai.api.MetricTypeLabels} returns this
|
|
87628
|
+
*/
|
|
87629
|
+
proto.clarifai.api.MetricTypeLabels.prototype.clearLabelsList = function() {
|
|
87630
|
+
return this.setLabelsList([]);
|
|
87631
|
+
};
|
|
87632
|
+
|
|
87633
|
+
|
|
87135
87634
|
/**
|
|
87136
87635
|
* @enum {number}
|
|
87137
87636
|
*/
|