clarifai-web-grpc 11.6.5 → 11.7.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 +2364 -255
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +168 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +1615 -274
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +8 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +2364 -255
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +168 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +1615 -274
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +8 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +349 -13
- package/proto/clarifai/api/resources_pb.js +2981 -394
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +48 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +244 -0
- package/proto/clarifai/api/service_pb.d.ts +204 -8
- package/proto/clarifai/api/service_pb.js +1895 -211
- package/proto/clarifai/api/status/status_code_pb.d.ts +8 -0
- package/proto/clarifai/api/status/status_code_pb.js +8 -0
|
@@ -48,6 +48,7 @@ goog.exportSymbol('proto.clarifai.api.AnnotationDataType', null, global);
|
|
|
48
48
|
goog.exportSymbol('proto.clarifai.api.AnnotationFilter', null, global);
|
|
49
49
|
goog.exportSymbol('proto.clarifai.api.AnnotationFilterConfig', null, global);
|
|
50
50
|
goog.exportSymbol('proto.clarifai.api.AnnotationSearchMetrics', null, global);
|
|
51
|
+
goog.exportSymbol('proto.clarifai.api.AnnotationTrack', null, global);
|
|
51
52
|
goog.exportSymbol('proto.clarifai.api.App', null, global);
|
|
52
53
|
goog.exportSymbol('proto.clarifai.api.App.EmbeddingsStorage', null, global);
|
|
53
54
|
goog.exportSymbol('proto.clarifai.api.AppCopyProgress', null, global);
|
|
@@ -189,6 +190,20 @@ goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
|
|
|
189
190
|
goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
|
|
190
191
|
goog.exportSymbol('proto.clarifai.api.Mask', null, global);
|
|
191
192
|
goog.exportSymbol('proto.clarifai.api.MethodSignature', null, global);
|
|
193
|
+
goog.exportSymbol('proto.clarifai.api.MetricAggregate', null, global);
|
|
194
|
+
goog.exportSymbol('proto.clarifai.api.MetricAggregate.Operator', null, global);
|
|
195
|
+
goog.exportSymbol('proto.clarifai.api.MetricData', null, global);
|
|
196
|
+
goog.exportSymbol('proto.clarifai.api.MetricData.DataCase', null, global);
|
|
197
|
+
goog.exportSymbol('proto.clarifai.api.MetricData.Label', null, global);
|
|
198
|
+
goog.exportSymbol('proto.clarifai.api.MetricData.MatrixData', null, global);
|
|
199
|
+
goog.exportSymbol('proto.clarifai.api.MetricData.MatrixData.TimeSeries', null, global);
|
|
200
|
+
goog.exportSymbol('proto.clarifai.api.MetricData.MetricSample', null, global);
|
|
201
|
+
goog.exportSymbol('proto.clarifai.api.MetricFilter', null, global);
|
|
202
|
+
goog.exportSymbol('proto.clarifai.api.MetricFilter.MultiValues', null, global);
|
|
203
|
+
goog.exportSymbol('proto.clarifai.api.MetricFilter.ValueCase', null, global);
|
|
204
|
+
goog.exportSymbol('proto.clarifai.api.MetricLabel', null, global);
|
|
205
|
+
goog.exportSymbol('proto.clarifai.api.MetricSearchQuery', null, global);
|
|
206
|
+
goog.exportSymbol('proto.clarifai.api.MetricType', null, global);
|
|
192
207
|
goog.exportSymbol('proto.clarifai.api.MetricValue', null, global);
|
|
193
208
|
goog.exportSymbol('proto.clarifai.api.MetricValue.MetricValueCase', null, global);
|
|
194
209
|
goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
|
|
@@ -363,6 +378,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
363
378
|
*/
|
|
364
379
|
proto.clarifai.api.Annotation.displayName = 'proto.clarifai.api.Annotation';
|
|
365
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* Generated by JsPbCodeGenerator.
|
|
383
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
384
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
385
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
386
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
387
|
+
* valid.
|
|
388
|
+
* @extends {jspb.Message}
|
|
389
|
+
* @constructor
|
|
390
|
+
*/
|
|
391
|
+
proto.clarifai.api.AnnotationTrack = function (opt_data) {
|
|
392
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
393
|
+
};
|
|
394
|
+
goog.inherits(proto.clarifai.api.AnnotationTrack, jspb.Message);
|
|
395
|
+
if (goog.DEBUG && !COMPILED) {
|
|
396
|
+
/**
|
|
397
|
+
* @public
|
|
398
|
+
* @override
|
|
399
|
+
*/
|
|
400
|
+
proto.clarifai.api.AnnotationTrack.displayName = 'proto.clarifai.api.AnnotationTrack';
|
|
401
|
+
}
|
|
366
402
|
/**
|
|
367
403
|
* Generated by JsPbCodeGenerator.
|
|
368
404
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5529,6 +5565,195 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5529
5565
|
*/
|
|
5530
5566
|
proto.clarifai.api.Secret.displayName = 'proto.clarifai.api.Secret';
|
|
5531
5567
|
}
|
|
5568
|
+
/**
|
|
5569
|
+
* Generated by JsPbCodeGenerator.
|
|
5570
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5571
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5572
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5573
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5574
|
+
* valid.
|
|
5575
|
+
* @extends {jspb.Message}
|
|
5576
|
+
* @constructor
|
|
5577
|
+
*/
|
|
5578
|
+
proto.clarifai.api.MetricData = function (opt_data) {
|
|
5579
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.MetricData.oneofGroups_);
|
|
5580
|
+
};
|
|
5581
|
+
goog.inherits(proto.clarifai.api.MetricData, jspb.Message);
|
|
5582
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5583
|
+
/**
|
|
5584
|
+
* @public
|
|
5585
|
+
* @override
|
|
5586
|
+
*/
|
|
5587
|
+
proto.clarifai.api.MetricData.displayName = 'proto.clarifai.api.MetricData';
|
|
5588
|
+
}
|
|
5589
|
+
/**
|
|
5590
|
+
* Generated by JsPbCodeGenerator.
|
|
5591
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5592
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5593
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5594
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5595
|
+
* valid.
|
|
5596
|
+
* @extends {jspb.Message}
|
|
5597
|
+
* @constructor
|
|
5598
|
+
*/
|
|
5599
|
+
proto.clarifai.api.MetricData.Label = function (opt_data) {
|
|
5600
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5601
|
+
};
|
|
5602
|
+
goog.inherits(proto.clarifai.api.MetricData.Label, jspb.Message);
|
|
5603
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5604
|
+
/**
|
|
5605
|
+
* @public
|
|
5606
|
+
* @override
|
|
5607
|
+
*/
|
|
5608
|
+
proto.clarifai.api.MetricData.Label.displayName = 'proto.clarifai.api.MetricData.Label';
|
|
5609
|
+
}
|
|
5610
|
+
/**
|
|
5611
|
+
* Generated by JsPbCodeGenerator.
|
|
5612
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5613
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5614
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5615
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5616
|
+
* valid.
|
|
5617
|
+
* @extends {jspb.Message}
|
|
5618
|
+
* @constructor
|
|
5619
|
+
*/
|
|
5620
|
+
proto.clarifai.api.MetricData.MetricSample = function (opt_data) {
|
|
5621
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5622
|
+
};
|
|
5623
|
+
goog.inherits(proto.clarifai.api.MetricData.MetricSample, jspb.Message);
|
|
5624
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5625
|
+
/**
|
|
5626
|
+
* @public
|
|
5627
|
+
* @override
|
|
5628
|
+
*/
|
|
5629
|
+
proto.clarifai.api.MetricData.MetricSample.displayName = 'proto.clarifai.api.MetricData.MetricSample';
|
|
5630
|
+
}
|
|
5631
|
+
/**
|
|
5632
|
+
* Generated by JsPbCodeGenerator.
|
|
5633
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5634
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5635
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5636
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5637
|
+
* valid.
|
|
5638
|
+
* @extends {jspb.Message}
|
|
5639
|
+
* @constructor
|
|
5640
|
+
*/
|
|
5641
|
+
proto.clarifai.api.MetricData.MatrixData = function (opt_data) {
|
|
5642
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricData.MatrixData.repeatedFields_, null);
|
|
5643
|
+
};
|
|
5644
|
+
goog.inherits(proto.clarifai.api.MetricData.MatrixData, jspb.Message);
|
|
5645
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5646
|
+
/**
|
|
5647
|
+
* @public
|
|
5648
|
+
* @override
|
|
5649
|
+
*/
|
|
5650
|
+
proto.clarifai.api.MetricData.MatrixData.displayName = 'proto.clarifai.api.MetricData.MatrixData';
|
|
5651
|
+
}
|
|
5652
|
+
/**
|
|
5653
|
+
* Generated by JsPbCodeGenerator.
|
|
5654
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5655
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5656
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5657
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5658
|
+
* valid.
|
|
5659
|
+
* @extends {jspb.Message}
|
|
5660
|
+
* @constructor
|
|
5661
|
+
*/
|
|
5662
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries = function (opt_data) {
|
|
5663
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricData.MatrixData.TimeSeries.repeatedFields_, null);
|
|
5664
|
+
};
|
|
5665
|
+
goog.inherits(proto.clarifai.api.MetricData.MatrixData.TimeSeries, jspb.Message);
|
|
5666
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5667
|
+
/**
|
|
5668
|
+
* @public
|
|
5669
|
+
* @override
|
|
5670
|
+
*/
|
|
5671
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.displayName = 'proto.clarifai.api.MetricData.MatrixData.TimeSeries';
|
|
5672
|
+
}
|
|
5673
|
+
/**
|
|
5674
|
+
* Generated by JsPbCodeGenerator.
|
|
5675
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5676
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5677
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5678
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5679
|
+
* valid.
|
|
5680
|
+
* @extends {jspb.Message}
|
|
5681
|
+
* @constructor
|
|
5682
|
+
*/
|
|
5683
|
+
proto.clarifai.api.MetricAggregate = function (opt_data) {
|
|
5684
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricAggregate.repeatedFields_, null);
|
|
5685
|
+
};
|
|
5686
|
+
goog.inherits(proto.clarifai.api.MetricAggregate, jspb.Message);
|
|
5687
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5688
|
+
/**
|
|
5689
|
+
* @public
|
|
5690
|
+
* @override
|
|
5691
|
+
*/
|
|
5692
|
+
proto.clarifai.api.MetricAggregate.displayName = 'proto.clarifai.api.MetricAggregate';
|
|
5693
|
+
}
|
|
5694
|
+
/**
|
|
5695
|
+
* Generated by JsPbCodeGenerator.
|
|
5696
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5697
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5698
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5699
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5700
|
+
* valid.
|
|
5701
|
+
* @extends {jspb.Message}
|
|
5702
|
+
* @constructor
|
|
5703
|
+
*/
|
|
5704
|
+
proto.clarifai.api.MetricFilter = function (opt_data) {
|
|
5705
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.MetricFilter.oneofGroups_);
|
|
5706
|
+
};
|
|
5707
|
+
goog.inherits(proto.clarifai.api.MetricFilter, jspb.Message);
|
|
5708
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5709
|
+
/**
|
|
5710
|
+
* @public
|
|
5711
|
+
* @override
|
|
5712
|
+
*/
|
|
5713
|
+
proto.clarifai.api.MetricFilter.displayName = 'proto.clarifai.api.MetricFilter';
|
|
5714
|
+
}
|
|
5715
|
+
/**
|
|
5716
|
+
* Generated by JsPbCodeGenerator.
|
|
5717
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5718
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5719
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5720
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5721
|
+
* valid.
|
|
5722
|
+
* @extends {jspb.Message}
|
|
5723
|
+
* @constructor
|
|
5724
|
+
*/
|
|
5725
|
+
proto.clarifai.api.MetricFilter.MultiValues = function (opt_data) {
|
|
5726
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricFilter.MultiValues.repeatedFields_, null);
|
|
5727
|
+
};
|
|
5728
|
+
goog.inherits(proto.clarifai.api.MetricFilter.MultiValues, jspb.Message);
|
|
5729
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5730
|
+
/**
|
|
5731
|
+
* @public
|
|
5732
|
+
* @override
|
|
5733
|
+
*/
|
|
5734
|
+
proto.clarifai.api.MetricFilter.MultiValues.displayName = 'proto.clarifai.api.MetricFilter.MultiValues';
|
|
5735
|
+
}
|
|
5736
|
+
/**
|
|
5737
|
+
* Generated by JsPbCodeGenerator.
|
|
5738
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5739
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5740
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5741
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5742
|
+
* valid.
|
|
5743
|
+
* @extends {jspb.Message}
|
|
5744
|
+
* @constructor
|
|
5745
|
+
*/
|
|
5746
|
+
proto.clarifai.api.MetricSearchQuery = function (opt_data) {
|
|
5747
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricSearchQuery.repeatedFields_, null);
|
|
5748
|
+
};
|
|
5749
|
+
goog.inherits(proto.clarifai.api.MetricSearchQuery, jspb.Message);
|
|
5750
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5751
|
+
/**
|
|
5752
|
+
* @public
|
|
5753
|
+
* @override
|
|
5754
|
+
*/
|
|
5755
|
+
proto.clarifai.api.MetricSearchQuery.displayName = 'proto.clarifai.api.MetricSearchQuery';
|
|
5756
|
+
}
|
|
5532
5757
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5533
5758
|
/**
|
|
5534
5759
|
* Creates an object representation of this proto.
|
|
@@ -6063,6 +6288,403 @@ proto.clarifai.api.Annotation.prototype.clearWorker = function () {
|
|
|
6063
6288
|
proto.clarifai.api.Annotation.prototype.hasWorker = function () {
|
|
6064
6289
|
return jspb.Message.getField(this, 21) != null;
|
|
6065
6290
|
};
|
|
6291
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6292
|
+
/**
|
|
6293
|
+
* Creates an object representation of this proto.
|
|
6294
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6295
|
+
* Optional fields that are not set will be set to undefined.
|
|
6296
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6297
|
+
* For the list of reserved names please see:
|
|
6298
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6299
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6300
|
+
* JSPB instance for transitional soy proto support:
|
|
6301
|
+
* http://goto/soy-param-migration
|
|
6302
|
+
* @return {!Object}
|
|
6303
|
+
*/
|
|
6304
|
+
proto.clarifai.api.AnnotationTrack.prototype.toObject = function (opt_includeInstance) {
|
|
6305
|
+
return proto.clarifai.api.AnnotationTrack.toObject(opt_includeInstance, this);
|
|
6306
|
+
};
|
|
6307
|
+
/**
|
|
6308
|
+
* Static version of the {@see toObject} method.
|
|
6309
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6310
|
+
* the JSPB instance for transitional soy proto support:
|
|
6311
|
+
* http://goto/soy-param-migration
|
|
6312
|
+
* @param {!proto.clarifai.api.AnnotationTrack} msg The msg instance to transform.
|
|
6313
|
+
* @return {!Object}
|
|
6314
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6315
|
+
*/
|
|
6316
|
+
proto.clarifai.api.AnnotationTrack.toObject = function (includeInstance, msg) {
|
|
6317
|
+
var f, obj = {
|
|
6318
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6319
|
+
appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6320
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6321
|
+
concept: (f = msg.getConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f),
|
|
6322
|
+
userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
6323
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
6324
|
+
startFrame: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
6325
|
+
endFrame: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
6326
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
6327
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
6328
|
+
frameRate: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
|
6329
|
+
};
|
|
6330
|
+
if (includeInstance) {
|
|
6331
|
+
obj.$jspbMessageInstance = msg;
|
|
6332
|
+
}
|
|
6333
|
+
return obj;
|
|
6334
|
+
};
|
|
6335
|
+
}
|
|
6336
|
+
/**
|
|
6337
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6338
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6339
|
+
* @return {!proto.clarifai.api.AnnotationTrack}
|
|
6340
|
+
*/
|
|
6341
|
+
proto.clarifai.api.AnnotationTrack.deserializeBinary = function (bytes) {
|
|
6342
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6343
|
+
var msg = new proto.clarifai.api.AnnotationTrack;
|
|
6344
|
+
return proto.clarifai.api.AnnotationTrack.deserializeBinaryFromReader(msg, reader);
|
|
6345
|
+
};
|
|
6346
|
+
/**
|
|
6347
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6348
|
+
* given reader into the given message object.
|
|
6349
|
+
* @param {!proto.clarifai.api.AnnotationTrack} msg The message object to deserialize into.
|
|
6350
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6351
|
+
* @return {!proto.clarifai.api.AnnotationTrack}
|
|
6352
|
+
*/
|
|
6353
|
+
proto.clarifai.api.AnnotationTrack.deserializeBinaryFromReader = function (msg, reader) {
|
|
6354
|
+
while (reader.nextField()) {
|
|
6355
|
+
if (reader.isEndGroup()) {
|
|
6356
|
+
break;
|
|
6357
|
+
}
|
|
6358
|
+
var field = reader.getFieldNumber();
|
|
6359
|
+
switch (field) {
|
|
6360
|
+
case 1:
|
|
6361
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6362
|
+
msg.setId(value);
|
|
6363
|
+
break;
|
|
6364
|
+
case 2:
|
|
6365
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6366
|
+
msg.setAppId(value);
|
|
6367
|
+
break;
|
|
6368
|
+
case 3:
|
|
6369
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6370
|
+
msg.setInputId(value);
|
|
6371
|
+
break;
|
|
6372
|
+
case 4:
|
|
6373
|
+
var value = new proto.clarifai.api.Concept;
|
|
6374
|
+
reader.readMessage(value, proto.clarifai.api.Concept.deserializeBinaryFromReader);
|
|
6375
|
+
msg.setConcept(value);
|
|
6376
|
+
break;
|
|
6377
|
+
case 5:
|
|
6378
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6379
|
+
msg.setUserId(value);
|
|
6380
|
+
break;
|
|
6381
|
+
case 6:
|
|
6382
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
6383
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
6384
|
+
msg.setStatus(value);
|
|
6385
|
+
break;
|
|
6386
|
+
case 7:
|
|
6387
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
6388
|
+
msg.setStartFrame(value);
|
|
6389
|
+
break;
|
|
6390
|
+
case 8:
|
|
6391
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
6392
|
+
msg.setEndFrame(value);
|
|
6393
|
+
break;
|
|
6394
|
+
case 9:
|
|
6395
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
6396
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
6397
|
+
msg.setCreatedAt(value);
|
|
6398
|
+
break;
|
|
6399
|
+
case 10:
|
|
6400
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
6401
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
6402
|
+
msg.setModifiedAt(value);
|
|
6403
|
+
break;
|
|
6404
|
+
case 11:
|
|
6405
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
6406
|
+
msg.setFrameRate(value);
|
|
6407
|
+
break;
|
|
6408
|
+
default:
|
|
6409
|
+
reader.skipField();
|
|
6410
|
+
break;
|
|
6411
|
+
}
|
|
6412
|
+
}
|
|
6413
|
+
return msg;
|
|
6414
|
+
};
|
|
6415
|
+
/**
|
|
6416
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6417
|
+
* @return {!Uint8Array}
|
|
6418
|
+
*/
|
|
6419
|
+
proto.clarifai.api.AnnotationTrack.prototype.serializeBinary = function () {
|
|
6420
|
+
var writer = new jspb.BinaryWriter();
|
|
6421
|
+
proto.clarifai.api.AnnotationTrack.serializeBinaryToWriter(this, writer);
|
|
6422
|
+
return writer.getResultBuffer();
|
|
6423
|
+
};
|
|
6424
|
+
/**
|
|
6425
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6426
|
+
* format), writing to the given BinaryWriter.
|
|
6427
|
+
* @param {!proto.clarifai.api.AnnotationTrack} message
|
|
6428
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6429
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6430
|
+
*/
|
|
6431
|
+
proto.clarifai.api.AnnotationTrack.serializeBinaryToWriter = function (message, writer) {
|
|
6432
|
+
var f = undefined;
|
|
6433
|
+
f = message.getId();
|
|
6434
|
+
if (f.length > 0) {
|
|
6435
|
+
writer.writeString(1, f);
|
|
6436
|
+
}
|
|
6437
|
+
f = message.getAppId();
|
|
6438
|
+
if (f.length > 0) {
|
|
6439
|
+
writer.writeString(2, f);
|
|
6440
|
+
}
|
|
6441
|
+
f = message.getInputId();
|
|
6442
|
+
if (f.length > 0) {
|
|
6443
|
+
writer.writeString(3, f);
|
|
6444
|
+
}
|
|
6445
|
+
f = message.getConcept();
|
|
6446
|
+
if (f != null) {
|
|
6447
|
+
writer.writeMessage(4, f, proto.clarifai.api.Concept.serializeBinaryToWriter);
|
|
6448
|
+
}
|
|
6449
|
+
f = message.getUserId();
|
|
6450
|
+
if (f.length > 0) {
|
|
6451
|
+
writer.writeString(5, f);
|
|
6452
|
+
}
|
|
6453
|
+
f = message.getStatus();
|
|
6454
|
+
if (f != null) {
|
|
6455
|
+
writer.writeMessage(6, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
6456
|
+
}
|
|
6457
|
+
f = message.getStartFrame();
|
|
6458
|
+
if (f !== 0) {
|
|
6459
|
+
writer.writeUint32(7, f);
|
|
6460
|
+
}
|
|
6461
|
+
f = message.getEndFrame();
|
|
6462
|
+
if (f !== 0) {
|
|
6463
|
+
writer.writeUint32(8, f);
|
|
6464
|
+
}
|
|
6465
|
+
f = message.getCreatedAt();
|
|
6466
|
+
if (f != null) {
|
|
6467
|
+
writer.writeMessage(9, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
6468
|
+
}
|
|
6469
|
+
f = message.getModifiedAt();
|
|
6470
|
+
if (f != null) {
|
|
6471
|
+
writer.writeMessage(10, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
6472
|
+
}
|
|
6473
|
+
f = message.getFrameRate();
|
|
6474
|
+
if (f !== 0) {
|
|
6475
|
+
writer.writeUint32(11, f);
|
|
6476
|
+
}
|
|
6477
|
+
};
|
|
6478
|
+
/**
|
|
6479
|
+
* optional string id = 1;
|
|
6480
|
+
* @return {string}
|
|
6481
|
+
*/
|
|
6482
|
+
proto.clarifai.api.AnnotationTrack.prototype.getId = function () {
|
|
6483
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6484
|
+
};
|
|
6485
|
+
/**
|
|
6486
|
+
* @param {string} value
|
|
6487
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6488
|
+
*/
|
|
6489
|
+
proto.clarifai.api.AnnotationTrack.prototype.setId = function (value) {
|
|
6490
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6491
|
+
};
|
|
6492
|
+
/**
|
|
6493
|
+
* optional string app_id = 2;
|
|
6494
|
+
* @return {string}
|
|
6495
|
+
*/
|
|
6496
|
+
proto.clarifai.api.AnnotationTrack.prototype.getAppId = function () {
|
|
6497
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6498
|
+
};
|
|
6499
|
+
/**
|
|
6500
|
+
* @param {string} value
|
|
6501
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6502
|
+
*/
|
|
6503
|
+
proto.clarifai.api.AnnotationTrack.prototype.setAppId = function (value) {
|
|
6504
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6505
|
+
};
|
|
6506
|
+
/**
|
|
6507
|
+
* optional string input_id = 3;
|
|
6508
|
+
* @return {string}
|
|
6509
|
+
*/
|
|
6510
|
+
proto.clarifai.api.AnnotationTrack.prototype.getInputId = function () {
|
|
6511
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6512
|
+
};
|
|
6513
|
+
/**
|
|
6514
|
+
* @param {string} value
|
|
6515
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6516
|
+
*/
|
|
6517
|
+
proto.clarifai.api.AnnotationTrack.prototype.setInputId = function (value) {
|
|
6518
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
6519
|
+
};
|
|
6520
|
+
/**
|
|
6521
|
+
* optional Concept concept = 4;
|
|
6522
|
+
* @return {?proto.clarifai.api.Concept}
|
|
6523
|
+
*/
|
|
6524
|
+
proto.clarifai.api.AnnotationTrack.prototype.getConcept = function () {
|
|
6525
|
+
return /** @type{?proto.clarifai.api.Concept} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 4));
|
|
6526
|
+
};
|
|
6527
|
+
/**
|
|
6528
|
+
* @param {?proto.clarifai.api.Concept|undefined} value
|
|
6529
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6530
|
+
*/
|
|
6531
|
+
proto.clarifai.api.AnnotationTrack.prototype.setConcept = function (value) {
|
|
6532
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
6533
|
+
};
|
|
6534
|
+
/**
|
|
6535
|
+
* Clears the message field making it undefined.
|
|
6536
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6537
|
+
*/
|
|
6538
|
+
proto.clarifai.api.AnnotationTrack.prototype.clearConcept = function () {
|
|
6539
|
+
return this.setConcept(undefined);
|
|
6540
|
+
};
|
|
6541
|
+
/**
|
|
6542
|
+
* Returns whether this field is set.
|
|
6543
|
+
* @return {boolean}
|
|
6544
|
+
*/
|
|
6545
|
+
proto.clarifai.api.AnnotationTrack.prototype.hasConcept = function () {
|
|
6546
|
+
return jspb.Message.getField(this, 4) != null;
|
|
6547
|
+
};
|
|
6548
|
+
/**
|
|
6549
|
+
* optional string user_id = 5;
|
|
6550
|
+
* @return {string}
|
|
6551
|
+
*/
|
|
6552
|
+
proto.clarifai.api.AnnotationTrack.prototype.getUserId = function () {
|
|
6553
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
6554
|
+
};
|
|
6555
|
+
/**
|
|
6556
|
+
* @param {string} value
|
|
6557
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6558
|
+
*/
|
|
6559
|
+
proto.clarifai.api.AnnotationTrack.prototype.setUserId = function (value) {
|
|
6560
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
6561
|
+
};
|
|
6562
|
+
/**
|
|
6563
|
+
* optional status.Status status = 6;
|
|
6564
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
6565
|
+
*/
|
|
6566
|
+
proto.clarifai.api.AnnotationTrack.prototype.getStatus = function () {
|
|
6567
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 6));
|
|
6568
|
+
};
|
|
6569
|
+
/**
|
|
6570
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
6571
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6572
|
+
*/
|
|
6573
|
+
proto.clarifai.api.AnnotationTrack.prototype.setStatus = function (value) {
|
|
6574
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
6575
|
+
};
|
|
6576
|
+
/**
|
|
6577
|
+
* Clears the message field making it undefined.
|
|
6578
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6579
|
+
*/
|
|
6580
|
+
proto.clarifai.api.AnnotationTrack.prototype.clearStatus = function () {
|
|
6581
|
+
return this.setStatus(undefined);
|
|
6582
|
+
};
|
|
6583
|
+
/**
|
|
6584
|
+
* Returns whether this field is set.
|
|
6585
|
+
* @return {boolean}
|
|
6586
|
+
*/
|
|
6587
|
+
proto.clarifai.api.AnnotationTrack.prototype.hasStatus = function () {
|
|
6588
|
+
return jspb.Message.getField(this, 6) != null;
|
|
6589
|
+
};
|
|
6590
|
+
/**
|
|
6591
|
+
* optional uint32 start_frame = 7;
|
|
6592
|
+
* @return {number}
|
|
6593
|
+
*/
|
|
6594
|
+
proto.clarifai.api.AnnotationTrack.prototype.getStartFrame = function () {
|
|
6595
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
6596
|
+
};
|
|
6597
|
+
/**
|
|
6598
|
+
* @param {number} value
|
|
6599
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6600
|
+
*/
|
|
6601
|
+
proto.clarifai.api.AnnotationTrack.prototype.setStartFrame = function (value) {
|
|
6602
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
6603
|
+
};
|
|
6604
|
+
/**
|
|
6605
|
+
* optional uint32 end_frame = 8;
|
|
6606
|
+
* @return {number}
|
|
6607
|
+
*/
|
|
6608
|
+
proto.clarifai.api.AnnotationTrack.prototype.getEndFrame = function () {
|
|
6609
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
6610
|
+
};
|
|
6611
|
+
/**
|
|
6612
|
+
* @param {number} value
|
|
6613
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6614
|
+
*/
|
|
6615
|
+
proto.clarifai.api.AnnotationTrack.prototype.setEndFrame = function (value) {
|
|
6616
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
6617
|
+
};
|
|
6618
|
+
/**
|
|
6619
|
+
* optional google.protobuf.Timestamp created_at = 9;
|
|
6620
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
6621
|
+
*/
|
|
6622
|
+
proto.clarifai.api.AnnotationTrack.prototype.getCreatedAt = function () {
|
|
6623
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
|
|
6624
|
+
};
|
|
6625
|
+
/**
|
|
6626
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
6627
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6628
|
+
*/
|
|
6629
|
+
proto.clarifai.api.AnnotationTrack.prototype.setCreatedAt = function (value) {
|
|
6630
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
6631
|
+
};
|
|
6632
|
+
/**
|
|
6633
|
+
* Clears the message field making it undefined.
|
|
6634
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6635
|
+
*/
|
|
6636
|
+
proto.clarifai.api.AnnotationTrack.prototype.clearCreatedAt = function () {
|
|
6637
|
+
return this.setCreatedAt(undefined);
|
|
6638
|
+
};
|
|
6639
|
+
/**
|
|
6640
|
+
* Returns whether this field is set.
|
|
6641
|
+
* @return {boolean}
|
|
6642
|
+
*/
|
|
6643
|
+
proto.clarifai.api.AnnotationTrack.prototype.hasCreatedAt = function () {
|
|
6644
|
+
return jspb.Message.getField(this, 9) != null;
|
|
6645
|
+
};
|
|
6646
|
+
/**
|
|
6647
|
+
* optional google.protobuf.Timestamp modified_at = 10;
|
|
6648
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
6649
|
+
*/
|
|
6650
|
+
proto.clarifai.api.AnnotationTrack.prototype.getModifiedAt = function () {
|
|
6651
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
|
|
6652
|
+
};
|
|
6653
|
+
/**
|
|
6654
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
6655
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6656
|
+
*/
|
|
6657
|
+
proto.clarifai.api.AnnotationTrack.prototype.setModifiedAt = function (value) {
|
|
6658
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
6659
|
+
};
|
|
6660
|
+
/**
|
|
6661
|
+
* Clears the message field making it undefined.
|
|
6662
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6663
|
+
*/
|
|
6664
|
+
proto.clarifai.api.AnnotationTrack.prototype.clearModifiedAt = function () {
|
|
6665
|
+
return this.setModifiedAt(undefined);
|
|
6666
|
+
};
|
|
6667
|
+
/**
|
|
6668
|
+
* Returns whether this field is set.
|
|
6669
|
+
* @return {boolean}
|
|
6670
|
+
*/
|
|
6671
|
+
proto.clarifai.api.AnnotationTrack.prototype.hasModifiedAt = function () {
|
|
6672
|
+
return jspb.Message.getField(this, 10) != null;
|
|
6673
|
+
};
|
|
6674
|
+
/**
|
|
6675
|
+
* optional uint32 frame_rate = 11;
|
|
6676
|
+
* @return {number}
|
|
6677
|
+
*/
|
|
6678
|
+
proto.clarifai.api.AnnotationTrack.prototype.getFrameRate = function () {
|
|
6679
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
6680
|
+
};
|
|
6681
|
+
/**
|
|
6682
|
+
* @param {number} value
|
|
6683
|
+
* @return {!proto.clarifai.api.AnnotationTrack} returns this
|
|
6684
|
+
*/
|
|
6685
|
+
proto.clarifai.api.AnnotationTrack.prototype.setFrameRate = function (value) {
|
|
6686
|
+
return jspb.Message.setProto3IntField(this, 11, value);
|
|
6687
|
+
};
|
|
6066
6688
|
/**
|
|
6067
6689
|
* Oneof group definitions for this message. Each group defines the field
|
|
6068
6690
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
@@ -25420,7 +26042,8 @@ proto.clarifai.api.ModelTypeField.ModelTypeFieldType = {
|
|
|
25420
26042
|
DATASET: 19,
|
|
25421
26043
|
DATASET_VERSION: 20,
|
|
25422
26044
|
ENCRYPTED_STRING: 21,
|
|
25423
|
-
CHECKPOINT_MODEL: 22
|
|
26045
|
+
CHECKPOINT_MODEL: 22,
|
|
26046
|
+
ARRAY_OF_SECRETS: 23
|
|
25424
26047
|
};
|
|
25425
26048
|
/**
|
|
25426
26049
|
* @enum {number}
|
|
@@ -61816,6 +62439,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
61816
62439
|
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
61817
62440
|
modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
61818
62441
|
workflowId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
62442
|
+
computeClusterUserId: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
61819
62443
|
computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
61820
62444
|
nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
61821
62445
|
runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
@@ -61872,6 +62496,10 @@ proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader = function
|
|
|
61872
62496
|
var value = /** @type {string} */ (reader.readString());
|
|
61873
62497
|
msg.setWorkflowId(value);
|
|
61874
62498
|
break;
|
|
62499
|
+
case 14:
|
|
62500
|
+
var value = /** @type {string} */ (reader.readString());
|
|
62501
|
+
msg.setComputeClusterUserId(value);
|
|
62502
|
+
break;
|
|
61875
62503
|
case 6:
|
|
61876
62504
|
var value = /** @type {string} */ (reader.readString());
|
|
61877
62505
|
msg.setComputeClusterId(value);
|
|
@@ -61945,6 +62573,10 @@ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter = function (mes
|
|
|
61945
62573
|
if (f.length > 0) {
|
|
61946
62574
|
writer.writeString(4, f);
|
|
61947
62575
|
}
|
|
62576
|
+
f = message.getComputeClusterUserId();
|
|
62577
|
+
if (f.length > 0) {
|
|
62578
|
+
writer.writeString(14, f);
|
|
62579
|
+
}
|
|
61948
62580
|
f = message.getComputeClusterId();
|
|
61949
62581
|
if (f.length > 0) {
|
|
61950
62582
|
writer.writeString(6, f);
|
|
@@ -62048,6 +62680,20 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.getWorkflowId = function () {
|
|
|
62048
62680
|
proto.clarifai.api.ComputeSourceMetadata.prototype.setWorkflowId = function (value) {
|
|
62049
62681
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
62050
62682
|
};
|
|
62683
|
+
/**
|
|
62684
|
+
* optional string compute_cluster_user_id = 14;
|
|
62685
|
+
* @return {string}
|
|
62686
|
+
*/
|
|
62687
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.getComputeClusterUserId = function () {
|
|
62688
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
62689
|
+
};
|
|
62690
|
+
/**
|
|
62691
|
+
* @param {string} value
|
|
62692
|
+
* @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
|
|
62693
|
+
*/
|
|
62694
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.setComputeClusterUserId = function (value) {
|
|
62695
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
62696
|
+
};
|
|
62051
62697
|
/**
|
|
62052
62698
|
* optional string compute_cluster_id = 6;
|
|
62053
62699
|
* @return {string}
|
|
@@ -66918,14 +67564,12 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
66918
67564
|
proto.clarifai.api.Secret.toObject = function (includeInstance, msg) {
|
|
66919
67565
|
var f, obj = {
|
|
66920
67566
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
66921
|
-
|
|
66922
|
-
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
67567
|
+
userId: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
66923
67568
|
value: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
66924
67569
|
version: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
66925
67570
|
description: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
66926
67571
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
66927
67572
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
66928
|
-
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
66929
67573
|
expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
66930
67574
|
};
|
|
66931
67575
|
if (includeInstance) {
|
|
@@ -66962,13 +67606,9 @@ proto.clarifai.api.Secret.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
66962
67606
|
var value = /** @type {string} */ (reader.readString());
|
|
66963
67607
|
msg.setId(value);
|
|
66964
67608
|
break;
|
|
66965
|
-
case
|
|
66966
|
-
var value = /** @type {string} */ (reader.readString());
|
|
66967
|
-
msg.setAppId(value);
|
|
66968
|
-
break;
|
|
66969
|
-
case 3:
|
|
67609
|
+
case 11:
|
|
66970
67610
|
var value = /** @type {string} */ (reader.readString());
|
|
66971
|
-
msg.
|
|
67611
|
+
msg.setUserId(value);
|
|
66972
67612
|
break;
|
|
66973
67613
|
case 4:
|
|
66974
67614
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -66992,11 +67632,6 @@ proto.clarifai.api.Secret.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
66992
67632
|
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
66993
67633
|
msg.setModifiedAt(value);
|
|
66994
67634
|
break;
|
|
66995
|
-
case 9:
|
|
66996
|
-
var value = new proto.clarifai.api.Visibility;
|
|
66997
|
-
reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
|
|
66998
|
-
msg.setVisibility(value);
|
|
66999
|
-
break;
|
|
67000
67635
|
case 10:
|
|
67001
67636
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
67002
67637
|
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
@@ -67031,13 +67666,9 @@ proto.clarifai.api.Secret.serializeBinaryToWriter = function (message, writer) {
|
|
|
67031
67666
|
if (f.length > 0) {
|
|
67032
67667
|
writer.writeString(1, f);
|
|
67033
67668
|
}
|
|
67034
|
-
f = message.
|
|
67035
|
-
if (f.length > 0) {
|
|
67036
|
-
writer.writeString(2, f);
|
|
67037
|
-
}
|
|
67038
|
-
f = message.getName();
|
|
67669
|
+
f = message.getUserId();
|
|
67039
67670
|
if (f.length > 0) {
|
|
67040
|
-
writer.writeString(
|
|
67671
|
+
writer.writeString(11, f);
|
|
67041
67672
|
}
|
|
67042
67673
|
f = message.getValue();
|
|
67043
67674
|
if (f.length > 0) {
|
|
@@ -67059,10 +67690,6 @@ proto.clarifai.api.Secret.serializeBinaryToWriter = function (message, writer) {
|
|
|
67059
67690
|
if (f != null) {
|
|
67060
67691
|
writer.writeMessage(8, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
67061
67692
|
}
|
|
67062
|
-
f = message.getVisibility();
|
|
67063
|
-
if (f != null) {
|
|
67064
|
-
writer.writeMessage(9, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
|
|
67065
|
-
}
|
|
67066
67693
|
f = message.getExpiresAt();
|
|
67067
67694
|
if (f != null) {
|
|
67068
67695
|
writer.writeMessage(10, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
@@ -67083,32 +67710,18 @@ proto.clarifai.api.Secret.prototype.setId = function (value) {
|
|
|
67083
67710
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
67084
67711
|
};
|
|
67085
67712
|
/**
|
|
67086
|
-
* optional string
|
|
67087
|
-
* @return {string}
|
|
67088
|
-
*/
|
|
67089
|
-
proto.clarifai.api.Secret.prototype.getAppId = function () {
|
|
67090
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
67091
|
-
};
|
|
67092
|
-
/**
|
|
67093
|
-
* @param {string} value
|
|
67094
|
-
* @return {!proto.clarifai.api.Secret} returns this
|
|
67095
|
-
*/
|
|
67096
|
-
proto.clarifai.api.Secret.prototype.setAppId = function (value) {
|
|
67097
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
67098
|
-
};
|
|
67099
|
-
/**
|
|
67100
|
-
* optional string name = 3;
|
|
67713
|
+
* optional string user_id = 11;
|
|
67101
67714
|
* @return {string}
|
|
67102
67715
|
*/
|
|
67103
|
-
proto.clarifai.api.Secret.prototype.
|
|
67104
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
67716
|
+
proto.clarifai.api.Secret.prototype.getUserId = function () {
|
|
67717
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
67105
67718
|
};
|
|
67106
67719
|
/**
|
|
67107
67720
|
* @param {string} value
|
|
67108
67721
|
* @return {!proto.clarifai.api.Secret} returns this
|
|
67109
67722
|
*/
|
|
67110
|
-
proto.clarifai.api.Secret.prototype.
|
|
67111
|
-
return jspb.Message.setProto3StringField(this,
|
|
67723
|
+
proto.clarifai.api.Secret.prototype.setUserId = function (value) {
|
|
67724
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
67112
67725
|
};
|
|
67113
67726
|
/**
|
|
67114
67727
|
* optional string value = 4;
|
|
@@ -67208,34 +67821,6 @@ proto.clarifai.api.Secret.prototype.clearModifiedAt = function () {
|
|
|
67208
67821
|
proto.clarifai.api.Secret.prototype.hasModifiedAt = function () {
|
|
67209
67822
|
return jspb.Message.getField(this, 8) != null;
|
|
67210
67823
|
};
|
|
67211
|
-
/**
|
|
67212
|
-
* optional Visibility visibility = 9;
|
|
67213
|
-
* @return {?proto.clarifai.api.Visibility}
|
|
67214
|
-
*/
|
|
67215
|
-
proto.clarifai.api.Secret.prototype.getVisibility = function () {
|
|
67216
|
-
return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 9));
|
|
67217
|
-
};
|
|
67218
|
-
/**
|
|
67219
|
-
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
67220
|
-
* @return {!proto.clarifai.api.Secret} returns this
|
|
67221
|
-
*/
|
|
67222
|
-
proto.clarifai.api.Secret.prototype.setVisibility = function (value) {
|
|
67223
|
-
return jspb.Message.setWrapperField(this, 9, value);
|
|
67224
|
-
};
|
|
67225
|
-
/**
|
|
67226
|
-
* Clears the message field making it undefined.
|
|
67227
|
-
* @return {!proto.clarifai.api.Secret} returns this
|
|
67228
|
-
*/
|
|
67229
|
-
proto.clarifai.api.Secret.prototype.clearVisibility = function () {
|
|
67230
|
-
return this.setVisibility(undefined);
|
|
67231
|
-
};
|
|
67232
|
-
/**
|
|
67233
|
-
* Returns whether this field is set.
|
|
67234
|
-
* @return {boolean}
|
|
67235
|
-
*/
|
|
67236
|
-
proto.clarifai.api.Secret.prototype.hasVisibility = function () {
|
|
67237
|
-
return jspb.Message.getField(this, 9) != null;
|
|
67238
|
-
};
|
|
67239
67824
|
/**
|
|
67240
67825
|
* optional google.protobuf.Timestamp expires_at = 10;
|
|
67241
67826
|
* @return {?proto.google.protobuf.Timestamp}
|
|
@@ -67264,251 +67849,1775 @@ proto.clarifai.api.Secret.prototype.clearExpiresAt = function () {
|
|
|
67264
67849
|
proto.clarifai.api.Secret.prototype.hasExpiresAt = function () {
|
|
67265
67850
|
return jspb.Message.getField(this, 10) != null;
|
|
67266
67851
|
};
|
|
67852
|
+
/**
|
|
67853
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
67854
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
67855
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
67856
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
67857
|
+
* @private {!Array<!Array<number>>}
|
|
67858
|
+
* @const
|
|
67859
|
+
*/
|
|
67860
|
+
proto.clarifai.api.MetricData.oneofGroups_ = [[1]];
|
|
67267
67861
|
/**
|
|
67268
67862
|
* @enum {number}
|
|
67269
67863
|
*/
|
|
67270
|
-
proto.clarifai.api.
|
|
67271
|
-
|
|
67272
|
-
|
|
67273
|
-
DETECTION: 2
|
|
67864
|
+
proto.clarifai.api.MetricData.DataCase = {
|
|
67865
|
+
DATA_NOT_SET: 0,
|
|
67866
|
+
MATRIX_DATA: 1
|
|
67274
67867
|
};
|
|
67275
67868
|
/**
|
|
67276
|
-
* @
|
|
67869
|
+
* @return {proto.clarifai.api.MetricData.DataCase}
|
|
67277
67870
|
*/
|
|
67278
|
-
proto.clarifai.api.
|
|
67279
|
-
|
|
67280
|
-
MANUAL: 1,
|
|
67281
|
-
TRAINING: 2,
|
|
67282
|
-
EVAL_GROUND_TRUTH: 3,
|
|
67283
|
-
EVAL_PREDICTIONS: 4
|
|
67871
|
+
proto.clarifai.api.MetricData.prototype.getDataCase = function () {
|
|
67872
|
+
return /** @type {proto.clarifai.api.MetricData.DataCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.MetricData.oneofGroups_[0]));
|
|
67284
67873
|
};
|
|
67874
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
67875
|
+
/**
|
|
67876
|
+
* Creates an object representation of this proto.
|
|
67877
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
67878
|
+
* Optional fields that are not set will be set to undefined.
|
|
67879
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
67880
|
+
* For the list of reserved names please see:
|
|
67881
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
67882
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
67883
|
+
* JSPB instance for transitional soy proto support:
|
|
67884
|
+
* http://goto/soy-param-migration
|
|
67885
|
+
* @return {!Object}
|
|
67886
|
+
*/
|
|
67887
|
+
proto.clarifai.api.MetricData.prototype.toObject = function (opt_includeInstance) {
|
|
67888
|
+
return proto.clarifai.api.MetricData.toObject(opt_includeInstance, this);
|
|
67889
|
+
};
|
|
67890
|
+
/**
|
|
67891
|
+
* Static version of the {@see toObject} method.
|
|
67892
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
67893
|
+
* the JSPB instance for transitional soy proto support:
|
|
67894
|
+
* http://goto/soy-param-migration
|
|
67895
|
+
* @param {!proto.clarifai.api.MetricData} msg The msg instance to transform.
|
|
67896
|
+
* @return {!Object}
|
|
67897
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
67898
|
+
*/
|
|
67899
|
+
proto.clarifai.api.MetricData.toObject = function (includeInstance, msg) {
|
|
67900
|
+
var f, obj = {
|
|
67901
|
+
matrixData: (f = msg.getMatrixData()) && proto.clarifai.api.MetricData.MatrixData.toObject(includeInstance, f)
|
|
67902
|
+
};
|
|
67903
|
+
if (includeInstance) {
|
|
67904
|
+
obj.$jspbMessageInstance = msg;
|
|
67905
|
+
}
|
|
67906
|
+
return obj;
|
|
67907
|
+
};
|
|
67908
|
+
}
|
|
67285
67909
|
/**
|
|
67286
|
-
*
|
|
67910
|
+
* Deserializes binary data (in protobuf wire format).
|
|
67911
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
67912
|
+
* @return {!proto.clarifai.api.MetricData}
|
|
67287
67913
|
*/
|
|
67288
|
-
proto.clarifai.api.
|
|
67289
|
-
|
|
67290
|
-
|
|
67291
|
-
|
|
67292
|
-
CONCEPTS_COUNT: 11,
|
|
67293
|
-
BOUNDING_BOXES_COUNT: 20,
|
|
67294
|
-
POLYGONS_COUNT: 21,
|
|
67295
|
-
POINTS_COUNT: 22,
|
|
67296
|
-
MASKS_COUNT: 23,
|
|
67297
|
-
PIXELS_COUNT: 30,
|
|
67298
|
-
ASPECT_RATIO: 31
|
|
67914
|
+
proto.clarifai.api.MetricData.deserializeBinary = function (bytes) {
|
|
67915
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
67916
|
+
var msg = new proto.clarifai.api.MetricData;
|
|
67917
|
+
return proto.clarifai.api.MetricData.deserializeBinaryFromReader(msg, reader);
|
|
67299
67918
|
};
|
|
67300
67919
|
/**
|
|
67301
|
-
*
|
|
67920
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
67921
|
+
* given reader into the given message object.
|
|
67922
|
+
* @param {!proto.clarifai.api.MetricData} msg The message object to deserialize into.
|
|
67923
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
67924
|
+
* @return {!proto.clarifai.api.MetricData}
|
|
67302
67925
|
*/
|
|
67303
|
-
proto.clarifai.api.
|
|
67304
|
-
|
|
67305
|
-
|
|
67306
|
-
|
|
67307
|
-
|
|
67926
|
+
proto.clarifai.api.MetricData.deserializeBinaryFromReader = function (msg, reader) {
|
|
67927
|
+
while (reader.nextField()) {
|
|
67928
|
+
if (reader.isEndGroup()) {
|
|
67929
|
+
break;
|
|
67930
|
+
}
|
|
67931
|
+
var field = reader.getFieldNumber();
|
|
67932
|
+
switch (field) {
|
|
67933
|
+
case 1:
|
|
67934
|
+
var value = new proto.clarifai.api.MetricData.MatrixData;
|
|
67935
|
+
reader.readMessage(value, proto.clarifai.api.MetricData.MatrixData.deserializeBinaryFromReader);
|
|
67936
|
+
msg.setMatrixData(value);
|
|
67937
|
+
break;
|
|
67938
|
+
default:
|
|
67939
|
+
reader.skipField();
|
|
67940
|
+
break;
|
|
67941
|
+
}
|
|
67942
|
+
}
|
|
67943
|
+
return msg;
|
|
67308
67944
|
};
|
|
67309
67945
|
/**
|
|
67310
|
-
*
|
|
67946
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
67947
|
+
* @return {!Uint8Array}
|
|
67311
67948
|
*/
|
|
67312
|
-
proto.clarifai.api.
|
|
67313
|
-
|
|
67314
|
-
|
|
67315
|
-
|
|
67949
|
+
proto.clarifai.api.MetricData.prototype.serializeBinary = function () {
|
|
67950
|
+
var writer = new jspb.BinaryWriter();
|
|
67951
|
+
proto.clarifai.api.MetricData.serializeBinaryToWriter(this, writer);
|
|
67952
|
+
return writer.getResultBuffer();
|
|
67316
67953
|
};
|
|
67317
67954
|
/**
|
|
67318
|
-
*
|
|
67955
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
67956
|
+
* format), writing to the given BinaryWriter.
|
|
67957
|
+
* @param {!proto.clarifai.api.MetricData} message
|
|
67958
|
+
* @param {!jspb.BinaryWriter} writer
|
|
67959
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
67319
67960
|
*/
|
|
67320
|
-
proto.clarifai.api.
|
|
67321
|
-
|
|
67322
|
-
|
|
67323
|
-
|
|
67324
|
-
|
|
67961
|
+
proto.clarifai.api.MetricData.serializeBinaryToWriter = function (message, writer) {
|
|
67962
|
+
var f = undefined;
|
|
67963
|
+
f = message.getMatrixData();
|
|
67964
|
+
if (f != null) {
|
|
67965
|
+
writer.writeMessage(1, f, proto.clarifai.api.MetricData.MatrixData.serializeBinaryToWriter);
|
|
67966
|
+
}
|
|
67325
67967
|
};
|
|
67968
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
67969
|
+
/**
|
|
67970
|
+
* Creates an object representation of this proto.
|
|
67971
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
67972
|
+
* Optional fields that are not set will be set to undefined.
|
|
67973
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
67974
|
+
* For the list of reserved names please see:
|
|
67975
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
67976
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
67977
|
+
* JSPB instance for transitional soy proto support:
|
|
67978
|
+
* http://goto/soy-param-migration
|
|
67979
|
+
* @return {!Object}
|
|
67980
|
+
*/
|
|
67981
|
+
proto.clarifai.api.MetricData.Label.prototype.toObject = function (opt_includeInstance) {
|
|
67982
|
+
return proto.clarifai.api.MetricData.Label.toObject(opt_includeInstance, this);
|
|
67983
|
+
};
|
|
67984
|
+
/**
|
|
67985
|
+
* Static version of the {@see toObject} method.
|
|
67986
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
67987
|
+
* the JSPB instance for transitional soy proto support:
|
|
67988
|
+
* http://goto/soy-param-migration
|
|
67989
|
+
* @param {!proto.clarifai.api.MetricData.Label} msg The msg instance to transform.
|
|
67990
|
+
* @return {!Object}
|
|
67991
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
67992
|
+
*/
|
|
67993
|
+
proto.clarifai.api.MetricData.Label.toObject = function (includeInstance, msg) {
|
|
67994
|
+
var f, obj = {
|
|
67995
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
67996
|
+
value: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
67997
|
+
};
|
|
67998
|
+
if (includeInstance) {
|
|
67999
|
+
obj.$jspbMessageInstance = msg;
|
|
68000
|
+
}
|
|
68001
|
+
return obj;
|
|
68002
|
+
};
|
|
68003
|
+
}
|
|
67326
68004
|
/**
|
|
67327
|
-
*
|
|
68005
|
+
* Deserializes binary data (in protobuf wire format).
|
|
68006
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
68007
|
+
* @return {!proto.clarifai.api.MetricData.Label}
|
|
67328
68008
|
*/
|
|
67329
|
-
proto.clarifai.api.
|
|
67330
|
-
|
|
67331
|
-
|
|
67332
|
-
|
|
67333
|
-
CLOSED_SOURCE: 3
|
|
68009
|
+
proto.clarifai.api.MetricData.Label.deserializeBinary = function (bytes) {
|
|
68010
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
68011
|
+
var msg = new proto.clarifai.api.MetricData.Label;
|
|
68012
|
+
return proto.clarifai.api.MetricData.Label.deserializeBinaryFromReader(msg, reader);
|
|
67334
68013
|
};
|
|
67335
68014
|
/**
|
|
67336
|
-
*
|
|
68015
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
68016
|
+
* given reader into the given message object.
|
|
68017
|
+
* @param {!proto.clarifai.api.MetricData.Label} msg The message object to deserialize into.
|
|
68018
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
68019
|
+
* @return {!proto.clarifai.api.MetricData.Label}
|
|
67337
68020
|
*/
|
|
67338
|
-
proto.clarifai.api.
|
|
67339
|
-
|
|
67340
|
-
|
|
67341
|
-
|
|
67342
|
-
|
|
68021
|
+
proto.clarifai.api.MetricData.Label.deserializeBinaryFromReader = function (msg, reader) {
|
|
68022
|
+
while (reader.nextField()) {
|
|
68023
|
+
if (reader.isEndGroup()) {
|
|
68024
|
+
break;
|
|
68025
|
+
}
|
|
68026
|
+
var field = reader.getFieldNumber();
|
|
68027
|
+
switch (field) {
|
|
68028
|
+
case 1:
|
|
68029
|
+
var value = /** @type {!proto.clarifai.api.MetricLabel} */ (reader.readEnum());
|
|
68030
|
+
msg.setName(value);
|
|
68031
|
+
break;
|
|
68032
|
+
case 2:
|
|
68033
|
+
var value = /** @type {string} */ (reader.readString());
|
|
68034
|
+
msg.setValue(value);
|
|
68035
|
+
break;
|
|
68036
|
+
default:
|
|
68037
|
+
reader.skipField();
|
|
68038
|
+
break;
|
|
68039
|
+
}
|
|
68040
|
+
}
|
|
68041
|
+
return msg;
|
|
67343
68042
|
};
|
|
67344
68043
|
/**
|
|
67345
|
-
*
|
|
68044
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
68045
|
+
* @return {!Uint8Array}
|
|
67346
68046
|
*/
|
|
67347
|
-
proto.clarifai.api.
|
|
67348
|
-
|
|
67349
|
-
|
|
67350
|
-
|
|
67351
|
-
INT32: 3,
|
|
67352
|
-
INT64: 4,
|
|
67353
|
-
FP32: 5
|
|
68047
|
+
proto.clarifai.api.MetricData.Label.prototype.serializeBinary = function () {
|
|
68048
|
+
var writer = new jspb.BinaryWriter();
|
|
68049
|
+
proto.clarifai.api.MetricData.Label.serializeBinaryToWriter(this, writer);
|
|
68050
|
+
return writer.getResultBuffer();
|
|
67354
68051
|
};
|
|
67355
68052
|
/**
|
|
67356
|
-
*
|
|
68053
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
68054
|
+
* format), writing to the given BinaryWriter.
|
|
68055
|
+
* @param {!proto.clarifai.api.MetricData.Label} message
|
|
68056
|
+
* @param {!jspb.BinaryWriter} writer
|
|
68057
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
67357
68058
|
*/
|
|
67358
|
-
proto.clarifai.api.
|
|
67359
|
-
|
|
67360
|
-
|
|
67361
|
-
|
|
67362
|
-
|
|
67363
|
-
|
|
67364
|
-
|
|
68059
|
+
proto.clarifai.api.MetricData.Label.serializeBinaryToWriter = function (message, writer) {
|
|
68060
|
+
var f = undefined;
|
|
68061
|
+
f = message.getName();
|
|
68062
|
+
if (f !== 0.0) {
|
|
68063
|
+
writer.writeEnum(1, f);
|
|
68064
|
+
}
|
|
68065
|
+
f = message.getValue();
|
|
68066
|
+
if (f.length > 0) {
|
|
68067
|
+
writer.writeString(2, f);
|
|
68068
|
+
}
|
|
67365
68069
|
};
|
|
67366
68070
|
/**
|
|
67367
|
-
*
|
|
68071
|
+
* optional MetricLabel name = 1;
|
|
68072
|
+
* @return {!proto.clarifai.api.MetricLabel}
|
|
67368
68073
|
*/
|
|
67369
|
-
proto.clarifai.api.
|
|
67370
|
-
|
|
67371
|
-
CLASSIFICATION: 1,
|
|
67372
|
-
DETECTION: 2,
|
|
67373
|
-
SEGMENTATION: 3,
|
|
67374
|
-
CLUSTERING: 4,
|
|
67375
|
-
TRACKER: 5,
|
|
67376
|
-
GENERATION: 6
|
|
68074
|
+
proto.clarifai.api.MetricData.Label.prototype.getName = function () {
|
|
68075
|
+
return /** @type {!proto.clarifai.api.MetricLabel} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
67377
68076
|
};
|
|
67378
68077
|
/**
|
|
67379
|
-
* @
|
|
68078
|
+
* @param {!proto.clarifai.api.MetricLabel} value
|
|
68079
|
+
* @return {!proto.clarifai.api.MetricData.Label} returns this
|
|
67380
68080
|
*/
|
|
67381
|
-
proto.clarifai.api.
|
|
67382
|
-
|
|
67383
|
-
ON_PREM_PREDICT: 1,
|
|
67384
|
-
ON_PREM_TRAIN: 2,
|
|
67385
|
-
ON_PREM_SEARCH: 3
|
|
68081
|
+
proto.clarifai.api.MetricData.Label.prototype.setName = function (value) {
|
|
68082
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
67386
68083
|
};
|
|
67387
68084
|
/**
|
|
67388
|
-
*
|
|
68085
|
+
* optional string value = 2;
|
|
68086
|
+
* @return {string}
|
|
67389
68087
|
*/
|
|
67390
|
-
proto.clarifai.api.
|
|
67391
|
-
|
|
67392
|
-
DAY: 1,
|
|
67393
|
-
MONTH: 2,
|
|
67394
|
-
YEAR: 3
|
|
68088
|
+
proto.clarifai.api.MetricData.Label.prototype.getValue = function () {
|
|
68089
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
67395
68090
|
};
|
|
67396
68091
|
/**
|
|
67397
|
-
* @
|
|
68092
|
+
* @param {string} value
|
|
68093
|
+
* @return {!proto.clarifai.api.MetricData.Label} returns this
|
|
67398
68094
|
*/
|
|
67399
|
-
proto.clarifai.api.
|
|
67400
|
-
|
|
67401
|
-
TAG: 1,
|
|
67402
|
-
BOUNDING_BOX: 2,
|
|
67403
|
-
POLYGON: 4,
|
|
67404
|
-
POINT: 8,
|
|
67405
|
-
SPAN: 16,
|
|
67406
|
-
MASK: 32
|
|
68095
|
+
proto.clarifai.api.MetricData.Label.prototype.setValue = function (value) {
|
|
68096
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
67407
68097
|
};
|
|
68098
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
68099
|
+
/**
|
|
68100
|
+
* Creates an object representation of this proto.
|
|
68101
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
68102
|
+
* Optional fields that are not set will be set to undefined.
|
|
68103
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
68104
|
+
* For the list of reserved names please see:
|
|
68105
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
68106
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
68107
|
+
* JSPB instance for transitional soy proto support:
|
|
68108
|
+
* http://goto/soy-param-migration
|
|
68109
|
+
* @return {!Object}
|
|
68110
|
+
*/
|
|
68111
|
+
proto.clarifai.api.MetricData.MetricSample.prototype.toObject = function (opt_includeInstance) {
|
|
68112
|
+
return proto.clarifai.api.MetricData.MetricSample.toObject(opt_includeInstance, this);
|
|
68113
|
+
};
|
|
68114
|
+
/**
|
|
68115
|
+
* Static version of the {@see toObject} method.
|
|
68116
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
68117
|
+
* the JSPB instance for transitional soy proto support:
|
|
68118
|
+
* http://goto/soy-param-migration
|
|
68119
|
+
* @param {!proto.clarifai.api.MetricData.MetricSample} msg The msg instance to transform.
|
|
68120
|
+
* @return {!Object}
|
|
68121
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68122
|
+
*/
|
|
68123
|
+
proto.clarifai.api.MetricData.MetricSample.toObject = function (includeInstance, msg) {
|
|
68124
|
+
var f, obj = {
|
|
68125
|
+
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
68126
|
+
value: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
68127
|
+
};
|
|
68128
|
+
if (includeInstance) {
|
|
68129
|
+
obj.$jspbMessageInstance = msg;
|
|
68130
|
+
}
|
|
68131
|
+
return obj;
|
|
68132
|
+
};
|
|
68133
|
+
}
|
|
67408
68134
|
/**
|
|
67409
|
-
*
|
|
68135
|
+
* Deserializes binary data (in protobuf wire format).
|
|
68136
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
68137
|
+
* @return {!proto.clarifai.api.MetricData.MetricSample}
|
|
67410
68138
|
*/
|
|
67411
|
-
proto.clarifai.api.
|
|
67412
|
-
|
|
67413
|
-
|
|
68139
|
+
proto.clarifai.api.MetricData.MetricSample.deserializeBinary = function (bytes) {
|
|
68140
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
68141
|
+
var msg = new proto.clarifai.api.MetricData.MetricSample;
|
|
68142
|
+
return proto.clarifai.api.MetricData.MetricSample.deserializeBinaryFromReader(msg, reader);
|
|
67414
68143
|
};
|
|
67415
68144
|
/**
|
|
67416
|
-
*
|
|
68145
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
68146
|
+
* given reader into the given message object.
|
|
68147
|
+
* @param {!proto.clarifai.api.MetricData.MetricSample} msg The message object to deserialize into.
|
|
68148
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
68149
|
+
* @return {!proto.clarifai.api.MetricData.MetricSample}
|
|
67417
68150
|
*/
|
|
67418
|
-
proto.clarifai.api.
|
|
67419
|
-
|
|
67420
|
-
|
|
68151
|
+
proto.clarifai.api.MetricData.MetricSample.deserializeBinaryFromReader = function (msg, reader) {
|
|
68152
|
+
while (reader.nextField()) {
|
|
68153
|
+
if (reader.isEndGroup()) {
|
|
68154
|
+
break;
|
|
68155
|
+
}
|
|
68156
|
+
var field = reader.getFieldNumber();
|
|
68157
|
+
switch (field) {
|
|
68158
|
+
case 1:
|
|
68159
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
68160
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
68161
|
+
msg.setTimestamp(value);
|
|
68162
|
+
break;
|
|
68163
|
+
case 2:
|
|
68164
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
68165
|
+
msg.setValue(value);
|
|
68166
|
+
break;
|
|
68167
|
+
default:
|
|
68168
|
+
reader.skipField();
|
|
68169
|
+
break;
|
|
68170
|
+
}
|
|
68171
|
+
}
|
|
68172
|
+
return msg;
|
|
67421
68173
|
};
|
|
67422
68174
|
/**
|
|
67423
|
-
*
|
|
68175
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
68176
|
+
* @return {!Uint8Array}
|
|
67424
68177
|
*/
|
|
67425
|
-
proto.clarifai.api.
|
|
67426
|
-
|
|
67427
|
-
|
|
67428
|
-
|
|
67429
|
-
WEEK: 3,
|
|
67430
|
-
DAY: 4,
|
|
67431
|
-
HOUR: 5,
|
|
67432
|
-
MINUTE: 6
|
|
68178
|
+
proto.clarifai.api.MetricData.MetricSample.prototype.serializeBinary = function () {
|
|
68179
|
+
var writer = new jspb.BinaryWriter();
|
|
68180
|
+
proto.clarifai.api.MetricData.MetricSample.serializeBinaryToWriter(this, writer);
|
|
68181
|
+
return writer.getResultBuffer();
|
|
67433
68182
|
};
|
|
67434
68183
|
/**
|
|
67435
|
-
*
|
|
68184
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
68185
|
+
* format), writing to the given BinaryWriter.
|
|
68186
|
+
* @param {!proto.clarifai.api.MetricData.MetricSample} message
|
|
68187
|
+
* @param {!jspb.BinaryWriter} writer
|
|
68188
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
67436
68189
|
*/
|
|
67437
|
-
proto.clarifai.api.
|
|
67438
|
-
|
|
67439
|
-
|
|
67440
|
-
|
|
67441
|
-
|
|
68190
|
+
proto.clarifai.api.MetricData.MetricSample.serializeBinaryToWriter = function (message, writer) {
|
|
68191
|
+
var f = undefined;
|
|
68192
|
+
f = message.getTimestamp();
|
|
68193
|
+
if (f != null) {
|
|
68194
|
+
writer.writeMessage(1, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
68195
|
+
}
|
|
68196
|
+
f = message.getValue();
|
|
68197
|
+
if (f !== 0.0) {
|
|
68198
|
+
writer.writeDouble(2, f);
|
|
68199
|
+
}
|
|
67442
68200
|
};
|
|
67443
68201
|
/**
|
|
67444
|
-
*
|
|
68202
|
+
* optional google.protobuf.Timestamp timestamp = 1;
|
|
68203
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
67445
68204
|
*/
|
|
67446
|
-
proto.clarifai.api.
|
|
67447
|
-
|
|
67448
|
-
SKIP: 1,
|
|
67449
|
-
SUFFIX: 2
|
|
68205
|
+
proto.clarifai.api.MetricData.MetricSample.prototype.getTimestamp = function () {
|
|
68206
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
|
67450
68207
|
};
|
|
67451
68208
|
/**
|
|
67452
|
-
* @
|
|
68209
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
68210
|
+
* @return {!proto.clarifai.api.MetricData.MetricSample} returns this
|
|
68211
|
+
*/
|
|
68212
|
+
proto.clarifai.api.MetricData.MetricSample.prototype.setTimestamp = function (value) {
|
|
68213
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
68214
|
+
};
|
|
68215
|
+
/**
|
|
68216
|
+
* Clears the message field making it undefined.
|
|
68217
|
+
* @return {!proto.clarifai.api.MetricData.MetricSample} returns this
|
|
67453
68218
|
*/
|
|
67454
|
-
proto.clarifai.api.
|
|
67455
|
-
|
|
67456
|
-
UNARY_UNARY: 1,
|
|
67457
|
-
UNARY_STREAMING: 2,
|
|
67458
|
-
STREAMING_UNARY: 3,
|
|
67459
|
-
STREAMING_STREAMING: 4
|
|
68219
|
+
proto.clarifai.api.MetricData.MetricSample.prototype.clearTimestamp = function () {
|
|
68220
|
+
return this.setTimestamp(undefined);
|
|
67460
68221
|
};
|
|
67461
68222
|
/**
|
|
67462
|
-
*
|
|
68223
|
+
* Returns whether this field is set.
|
|
68224
|
+
* @return {boolean}
|
|
67463
68225
|
*/
|
|
67464
|
-
proto.clarifai.api.
|
|
67465
|
-
|
|
67466
|
-
|
|
67467
|
-
|
|
67468
|
-
|
|
67469
|
-
|
|
67470
|
-
|
|
67471
|
-
|
|
67472
|
-
|
|
67473
|
-
|
|
67474
|
-
|
|
67475
|
-
|
|
67476
|
-
|
|
67477
|
-
|
|
67478
|
-
|
|
67479
|
-
|
|
67480
|
-
|
|
67481
|
-
|
|
67482
|
-
|
|
67483
|
-
|
|
67484
|
-
|
|
67485
|
-
|
|
67486
|
-
|
|
67487
|
-
|
|
67488
|
-
|
|
67489
|
-
|
|
67490
|
-
|
|
67491
|
-
|
|
67492
|
-
|
|
67493
|
-
|
|
67494
|
-
|
|
67495
|
-
|
|
67496
|
-
|
|
67497
|
-
|
|
67498
|
-
|
|
67499
|
-
|
|
67500
|
-
|
|
67501
|
-
|
|
67502
|
-
|
|
67503
|
-
|
|
67504
|
-
|
|
67505
|
-
|
|
67506
|
-
|
|
67507
|
-
|
|
67508
|
-
|
|
67509
|
-
|
|
67510
|
-
|
|
67511
|
-
|
|
67512
|
-
|
|
68226
|
+
proto.clarifai.api.MetricData.MetricSample.prototype.hasTimestamp = function () {
|
|
68227
|
+
return jspb.Message.getField(this, 1) != null;
|
|
68228
|
+
};
|
|
68229
|
+
/**
|
|
68230
|
+
* optional double value = 2;
|
|
68231
|
+
* @return {number}
|
|
68232
|
+
*/
|
|
68233
|
+
proto.clarifai.api.MetricData.MetricSample.prototype.getValue = function () {
|
|
68234
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
68235
|
+
};
|
|
68236
|
+
/**
|
|
68237
|
+
* @param {number} value
|
|
68238
|
+
* @return {!proto.clarifai.api.MetricData.MetricSample} returns this
|
|
68239
|
+
*/
|
|
68240
|
+
proto.clarifai.api.MetricData.MetricSample.prototype.setValue = function (value) {
|
|
68241
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
68242
|
+
};
|
|
68243
|
+
/**
|
|
68244
|
+
* List of repeated fields within this message type.
|
|
68245
|
+
* @private {!Array<number>}
|
|
68246
|
+
* @const
|
|
68247
|
+
*/
|
|
68248
|
+
proto.clarifai.api.MetricData.MatrixData.repeatedFields_ = [1];
|
|
68249
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
68250
|
+
/**
|
|
68251
|
+
* Creates an object representation of this proto.
|
|
68252
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
68253
|
+
* Optional fields that are not set will be set to undefined.
|
|
68254
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
68255
|
+
* For the list of reserved names please see:
|
|
68256
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
68257
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
68258
|
+
* JSPB instance for transitional soy proto support:
|
|
68259
|
+
* http://goto/soy-param-migration
|
|
68260
|
+
* @return {!Object}
|
|
68261
|
+
*/
|
|
68262
|
+
proto.clarifai.api.MetricData.MatrixData.prototype.toObject = function (opt_includeInstance) {
|
|
68263
|
+
return proto.clarifai.api.MetricData.MatrixData.toObject(opt_includeInstance, this);
|
|
68264
|
+
};
|
|
68265
|
+
/**
|
|
68266
|
+
* Static version of the {@see toObject} method.
|
|
68267
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
68268
|
+
* the JSPB instance for transitional soy proto support:
|
|
68269
|
+
* http://goto/soy-param-migration
|
|
68270
|
+
* @param {!proto.clarifai.api.MetricData.MatrixData} msg The msg instance to transform.
|
|
68271
|
+
* @return {!Object}
|
|
68272
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68273
|
+
*/
|
|
68274
|
+
proto.clarifai.api.MetricData.MatrixData.toObject = function (includeInstance, msg) {
|
|
68275
|
+
var f, obj = {
|
|
68276
|
+
seriesList: jspb.Message.toObjectList(msg.getSeriesList(), proto.clarifai.api.MetricData.MatrixData.TimeSeries.toObject, includeInstance)
|
|
68277
|
+
};
|
|
68278
|
+
if (includeInstance) {
|
|
68279
|
+
obj.$jspbMessageInstance = msg;
|
|
68280
|
+
}
|
|
68281
|
+
return obj;
|
|
68282
|
+
};
|
|
68283
|
+
}
|
|
68284
|
+
/**
|
|
68285
|
+
* Deserializes binary data (in protobuf wire format).
|
|
68286
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
68287
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData}
|
|
68288
|
+
*/
|
|
68289
|
+
proto.clarifai.api.MetricData.MatrixData.deserializeBinary = function (bytes) {
|
|
68290
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
68291
|
+
var msg = new proto.clarifai.api.MetricData.MatrixData;
|
|
68292
|
+
return proto.clarifai.api.MetricData.MatrixData.deserializeBinaryFromReader(msg, reader);
|
|
68293
|
+
};
|
|
68294
|
+
/**
|
|
68295
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
68296
|
+
* given reader into the given message object.
|
|
68297
|
+
* @param {!proto.clarifai.api.MetricData.MatrixData} msg The message object to deserialize into.
|
|
68298
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
68299
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData}
|
|
68300
|
+
*/
|
|
68301
|
+
proto.clarifai.api.MetricData.MatrixData.deserializeBinaryFromReader = function (msg, reader) {
|
|
68302
|
+
while (reader.nextField()) {
|
|
68303
|
+
if (reader.isEndGroup()) {
|
|
68304
|
+
break;
|
|
68305
|
+
}
|
|
68306
|
+
var field = reader.getFieldNumber();
|
|
68307
|
+
switch (field) {
|
|
68308
|
+
case 1:
|
|
68309
|
+
var value = new proto.clarifai.api.MetricData.MatrixData.TimeSeries;
|
|
68310
|
+
reader.readMessage(value, proto.clarifai.api.MetricData.MatrixData.TimeSeries.deserializeBinaryFromReader);
|
|
68311
|
+
msg.addSeries(value);
|
|
68312
|
+
break;
|
|
68313
|
+
default:
|
|
68314
|
+
reader.skipField();
|
|
68315
|
+
break;
|
|
68316
|
+
}
|
|
68317
|
+
}
|
|
68318
|
+
return msg;
|
|
68319
|
+
};
|
|
68320
|
+
/**
|
|
68321
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
68322
|
+
* @return {!Uint8Array}
|
|
68323
|
+
*/
|
|
68324
|
+
proto.clarifai.api.MetricData.MatrixData.prototype.serializeBinary = function () {
|
|
68325
|
+
var writer = new jspb.BinaryWriter();
|
|
68326
|
+
proto.clarifai.api.MetricData.MatrixData.serializeBinaryToWriter(this, writer);
|
|
68327
|
+
return writer.getResultBuffer();
|
|
68328
|
+
};
|
|
68329
|
+
/**
|
|
68330
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
68331
|
+
* format), writing to the given BinaryWriter.
|
|
68332
|
+
* @param {!proto.clarifai.api.MetricData.MatrixData} message
|
|
68333
|
+
* @param {!jspb.BinaryWriter} writer
|
|
68334
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68335
|
+
*/
|
|
68336
|
+
proto.clarifai.api.MetricData.MatrixData.serializeBinaryToWriter = function (message, writer) {
|
|
68337
|
+
var f = undefined;
|
|
68338
|
+
f = message.getSeriesList();
|
|
68339
|
+
if (f.length > 0) {
|
|
68340
|
+
writer.writeRepeatedMessage(1, f, proto.clarifai.api.MetricData.MatrixData.TimeSeries.serializeBinaryToWriter);
|
|
68341
|
+
}
|
|
68342
|
+
};
|
|
68343
|
+
/**
|
|
68344
|
+
* List of repeated fields within this message type.
|
|
68345
|
+
* @private {!Array<number>}
|
|
68346
|
+
* @const
|
|
68347
|
+
*/
|
|
68348
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.repeatedFields_ = [1, 2];
|
|
68349
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
68350
|
+
/**
|
|
68351
|
+
* Creates an object representation of this proto.
|
|
68352
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
68353
|
+
* Optional fields that are not set will be set to undefined.
|
|
68354
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
68355
|
+
* For the list of reserved names please see:
|
|
68356
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
68357
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
68358
|
+
* JSPB instance for transitional soy proto support:
|
|
68359
|
+
* http://goto/soy-param-migration
|
|
68360
|
+
* @return {!Object}
|
|
68361
|
+
*/
|
|
68362
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.toObject = function (opt_includeInstance) {
|
|
68363
|
+
return proto.clarifai.api.MetricData.MatrixData.TimeSeries.toObject(opt_includeInstance, this);
|
|
68364
|
+
};
|
|
68365
|
+
/**
|
|
68366
|
+
* Static version of the {@see toObject} method.
|
|
68367
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
68368
|
+
* the JSPB instance for transitional soy proto support:
|
|
68369
|
+
* http://goto/soy-param-migration
|
|
68370
|
+
* @param {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} msg The msg instance to transform.
|
|
68371
|
+
* @return {!Object}
|
|
68372
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68373
|
+
*/
|
|
68374
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.toObject = function (includeInstance, msg) {
|
|
68375
|
+
var f, obj = {
|
|
68376
|
+
labelsList: jspb.Message.toObjectList(msg.getLabelsList(), proto.clarifai.api.MetricData.Label.toObject, includeInstance),
|
|
68377
|
+
valueList: jspb.Message.toObjectList(msg.getValueList(), proto.clarifai.api.MetricData.MetricSample.toObject, includeInstance)
|
|
68378
|
+
};
|
|
68379
|
+
if (includeInstance) {
|
|
68380
|
+
obj.$jspbMessageInstance = msg;
|
|
68381
|
+
}
|
|
68382
|
+
return obj;
|
|
68383
|
+
};
|
|
68384
|
+
}
|
|
68385
|
+
/**
|
|
68386
|
+
* Deserializes binary data (in protobuf wire format).
|
|
68387
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
68388
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries}
|
|
68389
|
+
*/
|
|
68390
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.deserializeBinary = function (bytes) {
|
|
68391
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
68392
|
+
var msg = new proto.clarifai.api.MetricData.MatrixData.TimeSeries;
|
|
68393
|
+
return proto.clarifai.api.MetricData.MatrixData.TimeSeries.deserializeBinaryFromReader(msg, reader);
|
|
68394
|
+
};
|
|
68395
|
+
/**
|
|
68396
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
68397
|
+
* given reader into the given message object.
|
|
68398
|
+
* @param {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} msg The message object to deserialize into.
|
|
68399
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
68400
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries}
|
|
68401
|
+
*/
|
|
68402
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.deserializeBinaryFromReader = function (msg, reader) {
|
|
68403
|
+
while (reader.nextField()) {
|
|
68404
|
+
if (reader.isEndGroup()) {
|
|
68405
|
+
break;
|
|
68406
|
+
}
|
|
68407
|
+
var field = reader.getFieldNumber();
|
|
68408
|
+
switch (field) {
|
|
68409
|
+
case 1:
|
|
68410
|
+
var value = new proto.clarifai.api.MetricData.Label;
|
|
68411
|
+
reader.readMessage(value, proto.clarifai.api.MetricData.Label.deserializeBinaryFromReader);
|
|
68412
|
+
msg.addLabels(value);
|
|
68413
|
+
break;
|
|
68414
|
+
case 2:
|
|
68415
|
+
var value = new proto.clarifai.api.MetricData.MetricSample;
|
|
68416
|
+
reader.readMessage(value, proto.clarifai.api.MetricData.MetricSample.deserializeBinaryFromReader);
|
|
68417
|
+
msg.addValue(value);
|
|
68418
|
+
break;
|
|
68419
|
+
default:
|
|
68420
|
+
reader.skipField();
|
|
68421
|
+
break;
|
|
68422
|
+
}
|
|
68423
|
+
}
|
|
68424
|
+
return msg;
|
|
68425
|
+
};
|
|
68426
|
+
/**
|
|
68427
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
68428
|
+
* @return {!Uint8Array}
|
|
68429
|
+
*/
|
|
68430
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.serializeBinary = function () {
|
|
68431
|
+
var writer = new jspb.BinaryWriter();
|
|
68432
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.serializeBinaryToWriter(this, writer);
|
|
68433
|
+
return writer.getResultBuffer();
|
|
68434
|
+
};
|
|
68435
|
+
/**
|
|
68436
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
68437
|
+
* format), writing to the given BinaryWriter.
|
|
68438
|
+
* @param {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} message
|
|
68439
|
+
* @param {!jspb.BinaryWriter} writer
|
|
68440
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68441
|
+
*/
|
|
68442
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.serializeBinaryToWriter = function (message, writer) {
|
|
68443
|
+
var f = undefined;
|
|
68444
|
+
f = message.getLabelsList();
|
|
68445
|
+
if (f.length > 0) {
|
|
68446
|
+
writer.writeRepeatedMessage(1, f, proto.clarifai.api.MetricData.Label.serializeBinaryToWriter);
|
|
68447
|
+
}
|
|
68448
|
+
f = message.getValueList();
|
|
68449
|
+
if (f.length > 0) {
|
|
68450
|
+
writer.writeRepeatedMessage(2, f, proto.clarifai.api.MetricData.MetricSample.serializeBinaryToWriter);
|
|
68451
|
+
}
|
|
68452
|
+
};
|
|
68453
|
+
/**
|
|
68454
|
+
* repeated Label labels = 1;
|
|
68455
|
+
* @return {!Array<!proto.clarifai.api.MetricData.Label>}
|
|
68456
|
+
*/
|
|
68457
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.getLabelsList = function () {
|
|
68458
|
+
return /** @type{!Array<!proto.clarifai.api.MetricData.Label>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MetricData.Label, 1));
|
|
68459
|
+
};
|
|
68460
|
+
/**
|
|
68461
|
+
* @param {!Array<!proto.clarifai.api.MetricData.Label>} value
|
|
68462
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} returns this
|
|
68463
|
+
*/
|
|
68464
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.setLabelsList = function (value) {
|
|
68465
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
68466
|
+
};
|
|
68467
|
+
/**
|
|
68468
|
+
* @param {!proto.clarifai.api.MetricData.Label=} opt_value
|
|
68469
|
+
* @param {number=} opt_index
|
|
68470
|
+
* @return {!proto.clarifai.api.MetricData.Label}
|
|
68471
|
+
*/
|
|
68472
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.addLabels = function (opt_value, opt_index) {
|
|
68473
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.MetricData.Label, opt_index);
|
|
68474
|
+
};
|
|
68475
|
+
/**
|
|
68476
|
+
* Clears the list making it empty but non-null.
|
|
68477
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} returns this
|
|
68478
|
+
*/
|
|
68479
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.clearLabelsList = function () {
|
|
68480
|
+
return this.setLabelsList([]);
|
|
68481
|
+
};
|
|
68482
|
+
/**
|
|
68483
|
+
* repeated MetricSample value = 2;
|
|
68484
|
+
* @return {!Array<!proto.clarifai.api.MetricData.MetricSample>}
|
|
68485
|
+
*/
|
|
68486
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.getValueList = function () {
|
|
68487
|
+
return /** @type{!Array<!proto.clarifai.api.MetricData.MetricSample>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MetricData.MetricSample, 2));
|
|
68488
|
+
};
|
|
68489
|
+
/**
|
|
68490
|
+
* @param {!Array<!proto.clarifai.api.MetricData.MetricSample>} value
|
|
68491
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} returns this
|
|
68492
|
+
*/
|
|
68493
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.setValueList = function (value) {
|
|
68494
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
68495
|
+
};
|
|
68496
|
+
/**
|
|
68497
|
+
* @param {!proto.clarifai.api.MetricData.MetricSample=} opt_value
|
|
68498
|
+
* @param {number=} opt_index
|
|
68499
|
+
* @return {!proto.clarifai.api.MetricData.MetricSample}
|
|
68500
|
+
*/
|
|
68501
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.addValue = function (opt_value, opt_index) {
|
|
68502
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.MetricData.MetricSample, opt_index);
|
|
68503
|
+
};
|
|
68504
|
+
/**
|
|
68505
|
+
* Clears the list making it empty but non-null.
|
|
68506
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} returns this
|
|
68507
|
+
*/
|
|
68508
|
+
proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.clearValueList = function () {
|
|
68509
|
+
return this.setValueList([]);
|
|
68510
|
+
};
|
|
68511
|
+
/**
|
|
68512
|
+
* repeated TimeSeries series = 1;
|
|
68513
|
+
* @return {!Array<!proto.clarifai.api.MetricData.MatrixData.TimeSeries>}
|
|
68514
|
+
*/
|
|
68515
|
+
proto.clarifai.api.MetricData.MatrixData.prototype.getSeriesList = function () {
|
|
68516
|
+
return /** @type{!Array<!proto.clarifai.api.MetricData.MatrixData.TimeSeries>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MetricData.MatrixData.TimeSeries, 1));
|
|
68517
|
+
};
|
|
68518
|
+
/**
|
|
68519
|
+
* @param {!Array<!proto.clarifai.api.MetricData.MatrixData.TimeSeries>} value
|
|
68520
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData} returns this
|
|
68521
|
+
*/
|
|
68522
|
+
proto.clarifai.api.MetricData.MatrixData.prototype.setSeriesList = function (value) {
|
|
68523
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
68524
|
+
};
|
|
68525
|
+
/**
|
|
68526
|
+
* @param {!proto.clarifai.api.MetricData.MatrixData.TimeSeries=} opt_value
|
|
68527
|
+
* @param {number=} opt_index
|
|
68528
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries}
|
|
68529
|
+
*/
|
|
68530
|
+
proto.clarifai.api.MetricData.MatrixData.prototype.addSeries = function (opt_value, opt_index) {
|
|
68531
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.MetricData.MatrixData.TimeSeries, opt_index);
|
|
68532
|
+
};
|
|
68533
|
+
/**
|
|
68534
|
+
* Clears the list making it empty but non-null.
|
|
68535
|
+
* @return {!proto.clarifai.api.MetricData.MatrixData} returns this
|
|
68536
|
+
*/
|
|
68537
|
+
proto.clarifai.api.MetricData.MatrixData.prototype.clearSeriesList = function () {
|
|
68538
|
+
return this.setSeriesList([]);
|
|
68539
|
+
};
|
|
68540
|
+
/**
|
|
68541
|
+
* optional MatrixData matrix_data = 1;
|
|
68542
|
+
* @return {?proto.clarifai.api.MetricData.MatrixData}
|
|
68543
|
+
*/
|
|
68544
|
+
proto.clarifai.api.MetricData.prototype.getMatrixData = function () {
|
|
68545
|
+
return /** @type{?proto.clarifai.api.MetricData.MatrixData} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.MetricData.MatrixData, 1));
|
|
68546
|
+
};
|
|
68547
|
+
/**
|
|
68548
|
+
* @param {?proto.clarifai.api.MetricData.MatrixData|undefined} value
|
|
68549
|
+
* @return {!proto.clarifai.api.MetricData} returns this
|
|
68550
|
+
*/
|
|
68551
|
+
proto.clarifai.api.MetricData.prototype.setMatrixData = function (value) {
|
|
68552
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.MetricData.oneofGroups_[0], value);
|
|
68553
|
+
};
|
|
68554
|
+
/**
|
|
68555
|
+
* Clears the message field making it undefined.
|
|
68556
|
+
* @return {!proto.clarifai.api.MetricData} returns this
|
|
68557
|
+
*/
|
|
68558
|
+
proto.clarifai.api.MetricData.prototype.clearMatrixData = function () {
|
|
68559
|
+
return this.setMatrixData(undefined);
|
|
68560
|
+
};
|
|
68561
|
+
/**
|
|
68562
|
+
* Returns whether this field is set.
|
|
68563
|
+
* @return {boolean}
|
|
68564
|
+
*/
|
|
68565
|
+
proto.clarifai.api.MetricData.prototype.hasMatrixData = function () {
|
|
68566
|
+
return jspb.Message.getField(this, 1) != null;
|
|
68567
|
+
};
|
|
68568
|
+
/**
|
|
68569
|
+
* List of repeated fields within this message type.
|
|
68570
|
+
* @private {!Array<number>}
|
|
68571
|
+
* @const
|
|
68572
|
+
*/
|
|
68573
|
+
proto.clarifai.api.MetricAggregate.repeatedFields_ = [2];
|
|
68574
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
68575
|
+
/**
|
|
68576
|
+
* Creates an object representation of this proto.
|
|
68577
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
68578
|
+
* Optional fields that are not set will be set to undefined.
|
|
68579
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
68580
|
+
* For the list of reserved names please see:
|
|
68581
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
68582
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
68583
|
+
* JSPB instance for transitional soy proto support:
|
|
68584
|
+
* http://goto/soy-param-migration
|
|
68585
|
+
* @return {!Object}
|
|
68586
|
+
*/
|
|
68587
|
+
proto.clarifai.api.MetricAggregate.prototype.toObject = function (opt_includeInstance) {
|
|
68588
|
+
return proto.clarifai.api.MetricAggregate.toObject(opt_includeInstance, this);
|
|
68589
|
+
};
|
|
68590
|
+
/**
|
|
68591
|
+
* Static version of the {@see toObject} method.
|
|
68592
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
68593
|
+
* the JSPB instance for transitional soy proto support:
|
|
68594
|
+
* http://goto/soy-param-migration
|
|
68595
|
+
* @param {!proto.clarifai.api.MetricAggregate} msg The msg instance to transform.
|
|
68596
|
+
* @return {!Object}
|
|
68597
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68598
|
+
*/
|
|
68599
|
+
proto.clarifai.api.MetricAggregate.toObject = function (includeInstance, msg) {
|
|
68600
|
+
var f, obj = {
|
|
68601
|
+
operator: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
68602
|
+
labelsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
68603
|
+
};
|
|
68604
|
+
if (includeInstance) {
|
|
68605
|
+
obj.$jspbMessageInstance = msg;
|
|
68606
|
+
}
|
|
68607
|
+
return obj;
|
|
68608
|
+
};
|
|
68609
|
+
}
|
|
68610
|
+
/**
|
|
68611
|
+
* Deserializes binary data (in protobuf wire format).
|
|
68612
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
68613
|
+
* @return {!proto.clarifai.api.MetricAggregate}
|
|
68614
|
+
*/
|
|
68615
|
+
proto.clarifai.api.MetricAggregate.deserializeBinary = function (bytes) {
|
|
68616
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
68617
|
+
var msg = new proto.clarifai.api.MetricAggregate;
|
|
68618
|
+
return proto.clarifai.api.MetricAggregate.deserializeBinaryFromReader(msg, reader);
|
|
68619
|
+
};
|
|
68620
|
+
/**
|
|
68621
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
68622
|
+
* given reader into the given message object.
|
|
68623
|
+
* @param {!proto.clarifai.api.MetricAggregate} msg The message object to deserialize into.
|
|
68624
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
68625
|
+
* @return {!proto.clarifai.api.MetricAggregate}
|
|
68626
|
+
*/
|
|
68627
|
+
proto.clarifai.api.MetricAggregate.deserializeBinaryFromReader = function (msg, reader) {
|
|
68628
|
+
while (reader.nextField()) {
|
|
68629
|
+
if (reader.isEndGroup()) {
|
|
68630
|
+
break;
|
|
68631
|
+
}
|
|
68632
|
+
var field = reader.getFieldNumber();
|
|
68633
|
+
switch (field) {
|
|
68634
|
+
case 1:
|
|
68635
|
+
var value = /** @type {!proto.clarifai.api.MetricAggregate.Operator} */ (reader.readEnum());
|
|
68636
|
+
msg.setOperator(value);
|
|
68637
|
+
break;
|
|
68638
|
+
case 2:
|
|
68639
|
+
var values = /** @type {!Array<!proto.clarifai.api.MetricLabel>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
68640
|
+
for (var i = 0; i < values.length; i++) {
|
|
68641
|
+
msg.addLabels(values[i]);
|
|
68642
|
+
}
|
|
68643
|
+
break;
|
|
68644
|
+
default:
|
|
68645
|
+
reader.skipField();
|
|
68646
|
+
break;
|
|
68647
|
+
}
|
|
68648
|
+
}
|
|
68649
|
+
return msg;
|
|
68650
|
+
};
|
|
68651
|
+
/**
|
|
68652
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
68653
|
+
* @return {!Uint8Array}
|
|
68654
|
+
*/
|
|
68655
|
+
proto.clarifai.api.MetricAggregate.prototype.serializeBinary = function () {
|
|
68656
|
+
var writer = new jspb.BinaryWriter();
|
|
68657
|
+
proto.clarifai.api.MetricAggregate.serializeBinaryToWriter(this, writer);
|
|
68658
|
+
return writer.getResultBuffer();
|
|
68659
|
+
};
|
|
68660
|
+
/**
|
|
68661
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
68662
|
+
* format), writing to the given BinaryWriter.
|
|
68663
|
+
* @param {!proto.clarifai.api.MetricAggregate} message
|
|
68664
|
+
* @param {!jspb.BinaryWriter} writer
|
|
68665
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68666
|
+
*/
|
|
68667
|
+
proto.clarifai.api.MetricAggregate.serializeBinaryToWriter = function (message, writer) {
|
|
68668
|
+
var f = undefined;
|
|
68669
|
+
f = message.getOperator();
|
|
68670
|
+
if (f !== 0.0) {
|
|
68671
|
+
writer.writeEnum(1, f);
|
|
68672
|
+
}
|
|
68673
|
+
f = message.getLabelsList();
|
|
68674
|
+
if (f.length > 0) {
|
|
68675
|
+
writer.writePackedEnum(2, f);
|
|
68676
|
+
}
|
|
68677
|
+
};
|
|
68678
|
+
/**
|
|
68679
|
+
* @enum {number}
|
|
68680
|
+
*/
|
|
68681
|
+
proto.clarifai.api.MetricAggregate.Operator = {
|
|
68682
|
+
OPERATOR_NOT_SET: 0,
|
|
68683
|
+
AVG: 1,
|
|
68684
|
+
SUM: 2,
|
|
68685
|
+
MAX: 3,
|
|
68686
|
+
MIN: 4,
|
|
68687
|
+
P95: 5,
|
|
68688
|
+
P99: 6,
|
|
68689
|
+
P50: 7,
|
|
68690
|
+
COUNT: 8
|
|
68691
|
+
};
|
|
68692
|
+
/**
|
|
68693
|
+
* optional Operator operator = 1;
|
|
68694
|
+
* @return {!proto.clarifai.api.MetricAggregate.Operator}
|
|
68695
|
+
*/
|
|
68696
|
+
proto.clarifai.api.MetricAggregate.prototype.getOperator = function () {
|
|
68697
|
+
return /** @type {!proto.clarifai.api.MetricAggregate.Operator} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
68698
|
+
};
|
|
68699
|
+
/**
|
|
68700
|
+
* @param {!proto.clarifai.api.MetricAggregate.Operator} value
|
|
68701
|
+
* @return {!proto.clarifai.api.MetricAggregate} returns this
|
|
68702
|
+
*/
|
|
68703
|
+
proto.clarifai.api.MetricAggregate.prototype.setOperator = function (value) {
|
|
68704
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
68705
|
+
};
|
|
68706
|
+
/**
|
|
68707
|
+
* repeated MetricLabel labels = 2;
|
|
68708
|
+
* @return {!Array<!proto.clarifai.api.MetricLabel>}
|
|
68709
|
+
*/
|
|
68710
|
+
proto.clarifai.api.MetricAggregate.prototype.getLabelsList = function () {
|
|
68711
|
+
return /** @type {!Array<!proto.clarifai.api.MetricLabel>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
68712
|
+
};
|
|
68713
|
+
/**
|
|
68714
|
+
* @param {!Array<!proto.clarifai.api.MetricLabel>} value
|
|
68715
|
+
* @return {!proto.clarifai.api.MetricAggregate} returns this
|
|
68716
|
+
*/
|
|
68717
|
+
proto.clarifai.api.MetricAggregate.prototype.setLabelsList = function (value) {
|
|
68718
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
68719
|
+
};
|
|
68720
|
+
/**
|
|
68721
|
+
* @param {!proto.clarifai.api.MetricLabel} value
|
|
68722
|
+
* @param {number=} opt_index
|
|
68723
|
+
* @return {!proto.clarifai.api.MetricAggregate} returns this
|
|
68724
|
+
*/
|
|
68725
|
+
proto.clarifai.api.MetricAggregate.prototype.addLabels = function (value, opt_index) {
|
|
68726
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
68727
|
+
};
|
|
68728
|
+
/**
|
|
68729
|
+
* Clears the list making it empty but non-null.
|
|
68730
|
+
* @return {!proto.clarifai.api.MetricAggregate} returns this
|
|
68731
|
+
*/
|
|
68732
|
+
proto.clarifai.api.MetricAggregate.prototype.clearLabelsList = function () {
|
|
68733
|
+
return this.setLabelsList([]);
|
|
68734
|
+
};
|
|
68735
|
+
/**
|
|
68736
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
68737
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
68738
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
68739
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
68740
|
+
* @private {!Array<!Array<number>>}
|
|
68741
|
+
* @const
|
|
68742
|
+
*/
|
|
68743
|
+
proto.clarifai.api.MetricFilter.oneofGroups_ = [[2, 3]];
|
|
68744
|
+
/**
|
|
68745
|
+
* @enum {number}
|
|
68746
|
+
*/
|
|
68747
|
+
proto.clarifai.api.MetricFilter.ValueCase = {
|
|
68748
|
+
VALUE_NOT_SET: 0,
|
|
68749
|
+
EQUALS: 2,
|
|
68750
|
+
IN: 3
|
|
68751
|
+
};
|
|
68752
|
+
/**
|
|
68753
|
+
* @return {proto.clarifai.api.MetricFilter.ValueCase}
|
|
68754
|
+
*/
|
|
68755
|
+
proto.clarifai.api.MetricFilter.prototype.getValueCase = function () {
|
|
68756
|
+
return /** @type {proto.clarifai.api.MetricFilter.ValueCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.MetricFilter.oneofGroups_[0]));
|
|
68757
|
+
};
|
|
68758
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
68759
|
+
/**
|
|
68760
|
+
* Creates an object representation of this proto.
|
|
68761
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
68762
|
+
* Optional fields that are not set will be set to undefined.
|
|
68763
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
68764
|
+
* For the list of reserved names please see:
|
|
68765
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
68766
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
68767
|
+
* JSPB instance for transitional soy proto support:
|
|
68768
|
+
* http://goto/soy-param-migration
|
|
68769
|
+
* @return {!Object}
|
|
68770
|
+
*/
|
|
68771
|
+
proto.clarifai.api.MetricFilter.prototype.toObject = function (opt_includeInstance) {
|
|
68772
|
+
return proto.clarifai.api.MetricFilter.toObject(opt_includeInstance, this);
|
|
68773
|
+
};
|
|
68774
|
+
/**
|
|
68775
|
+
* Static version of the {@see toObject} method.
|
|
68776
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
68777
|
+
* the JSPB instance for transitional soy proto support:
|
|
68778
|
+
* http://goto/soy-param-migration
|
|
68779
|
+
* @param {!proto.clarifai.api.MetricFilter} msg The msg instance to transform.
|
|
68780
|
+
* @return {!Object}
|
|
68781
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68782
|
+
*/
|
|
68783
|
+
proto.clarifai.api.MetricFilter.toObject = function (includeInstance, msg) {
|
|
68784
|
+
var f, obj = {
|
|
68785
|
+
label: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
68786
|
+
equals: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
68787
|
+
pb_in: (f = msg.getIn()) && proto.clarifai.api.MetricFilter.MultiValues.toObject(includeInstance, f)
|
|
68788
|
+
};
|
|
68789
|
+
if (includeInstance) {
|
|
68790
|
+
obj.$jspbMessageInstance = msg;
|
|
68791
|
+
}
|
|
68792
|
+
return obj;
|
|
68793
|
+
};
|
|
68794
|
+
}
|
|
68795
|
+
/**
|
|
68796
|
+
* Deserializes binary data (in protobuf wire format).
|
|
68797
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
68798
|
+
* @return {!proto.clarifai.api.MetricFilter}
|
|
68799
|
+
*/
|
|
68800
|
+
proto.clarifai.api.MetricFilter.deserializeBinary = function (bytes) {
|
|
68801
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
68802
|
+
var msg = new proto.clarifai.api.MetricFilter;
|
|
68803
|
+
return proto.clarifai.api.MetricFilter.deserializeBinaryFromReader(msg, reader);
|
|
68804
|
+
};
|
|
68805
|
+
/**
|
|
68806
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
68807
|
+
* given reader into the given message object.
|
|
68808
|
+
* @param {!proto.clarifai.api.MetricFilter} msg The message object to deserialize into.
|
|
68809
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
68810
|
+
* @return {!proto.clarifai.api.MetricFilter}
|
|
68811
|
+
*/
|
|
68812
|
+
proto.clarifai.api.MetricFilter.deserializeBinaryFromReader = function (msg, reader) {
|
|
68813
|
+
while (reader.nextField()) {
|
|
68814
|
+
if (reader.isEndGroup()) {
|
|
68815
|
+
break;
|
|
68816
|
+
}
|
|
68817
|
+
var field = reader.getFieldNumber();
|
|
68818
|
+
switch (field) {
|
|
68819
|
+
case 1:
|
|
68820
|
+
var value = /** @type {!proto.clarifai.api.MetricLabel} */ (reader.readEnum());
|
|
68821
|
+
msg.setLabel(value);
|
|
68822
|
+
break;
|
|
68823
|
+
case 2:
|
|
68824
|
+
var value = /** @type {string} */ (reader.readString());
|
|
68825
|
+
msg.setEquals(value);
|
|
68826
|
+
break;
|
|
68827
|
+
case 3:
|
|
68828
|
+
var value = new proto.clarifai.api.MetricFilter.MultiValues;
|
|
68829
|
+
reader.readMessage(value, proto.clarifai.api.MetricFilter.MultiValues.deserializeBinaryFromReader);
|
|
68830
|
+
msg.setIn(value);
|
|
68831
|
+
break;
|
|
68832
|
+
default:
|
|
68833
|
+
reader.skipField();
|
|
68834
|
+
break;
|
|
68835
|
+
}
|
|
68836
|
+
}
|
|
68837
|
+
return msg;
|
|
68838
|
+
};
|
|
68839
|
+
/**
|
|
68840
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
68841
|
+
* @return {!Uint8Array}
|
|
68842
|
+
*/
|
|
68843
|
+
proto.clarifai.api.MetricFilter.prototype.serializeBinary = function () {
|
|
68844
|
+
var writer = new jspb.BinaryWriter();
|
|
68845
|
+
proto.clarifai.api.MetricFilter.serializeBinaryToWriter(this, writer);
|
|
68846
|
+
return writer.getResultBuffer();
|
|
68847
|
+
};
|
|
68848
|
+
/**
|
|
68849
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
68850
|
+
* format), writing to the given BinaryWriter.
|
|
68851
|
+
* @param {!proto.clarifai.api.MetricFilter} message
|
|
68852
|
+
* @param {!jspb.BinaryWriter} writer
|
|
68853
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68854
|
+
*/
|
|
68855
|
+
proto.clarifai.api.MetricFilter.serializeBinaryToWriter = function (message, writer) {
|
|
68856
|
+
var f = undefined;
|
|
68857
|
+
f = message.getLabel();
|
|
68858
|
+
if (f !== 0.0) {
|
|
68859
|
+
writer.writeEnum(1, f);
|
|
68860
|
+
}
|
|
68861
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
68862
|
+
if (f != null) {
|
|
68863
|
+
writer.writeString(2, f);
|
|
68864
|
+
}
|
|
68865
|
+
f = message.getIn();
|
|
68866
|
+
if (f != null) {
|
|
68867
|
+
writer.writeMessage(3, f, proto.clarifai.api.MetricFilter.MultiValues.serializeBinaryToWriter);
|
|
68868
|
+
}
|
|
68869
|
+
};
|
|
68870
|
+
/**
|
|
68871
|
+
* List of repeated fields within this message type.
|
|
68872
|
+
* @private {!Array<number>}
|
|
68873
|
+
* @const
|
|
68874
|
+
*/
|
|
68875
|
+
proto.clarifai.api.MetricFilter.MultiValues.repeatedFields_ = [1];
|
|
68876
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
68877
|
+
/**
|
|
68878
|
+
* Creates an object representation of this proto.
|
|
68879
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
68880
|
+
* Optional fields that are not set will be set to undefined.
|
|
68881
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
68882
|
+
* For the list of reserved names please see:
|
|
68883
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
68884
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
68885
|
+
* JSPB instance for transitional soy proto support:
|
|
68886
|
+
* http://goto/soy-param-migration
|
|
68887
|
+
* @return {!Object}
|
|
68888
|
+
*/
|
|
68889
|
+
proto.clarifai.api.MetricFilter.MultiValues.prototype.toObject = function (opt_includeInstance) {
|
|
68890
|
+
return proto.clarifai.api.MetricFilter.MultiValues.toObject(opt_includeInstance, this);
|
|
68891
|
+
};
|
|
68892
|
+
/**
|
|
68893
|
+
* Static version of the {@see toObject} method.
|
|
68894
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
68895
|
+
* the JSPB instance for transitional soy proto support:
|
|
68896
|
+
* http://goto/soy-param-migration
|
|
68897
|
+
* @param {!proto.clarifai.api.MetricFilter.MultiValues} msg The msg instance to transform.
|
|
68898
|
+
* @return {!Object}
|
|
68899
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68900
|
+
*/
|
|
68901
|
+
proto.clarifai.api.MetricFilter.MultiValues.toObject = function (includeInstance, msg) {
|
|
68902
|
+
var f, obj = {
|
|
68903
|
+
inList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
68904
|
+
};
|
|
68905
|
+
if (includeInstance) {
|
|
68906
|
+
obj.$jspbMessageInstance = msg;
|
|
68907
|
+
}
|
|
68908
|
+
return obj;
|
|
68909
|
+
};
|
|
68910
|
+
}
|
|
68911
|
+
/**
|
|
68912
|
+
* Deserializes binary data (in protobuf wire format).
|
|
68913
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
68914
|
+
* @return {!proto.clarifai.api.MetricFilter.MultiValues}
|
|
68915
|
+
*/
|
|
68916
|
+
proto.clarifai.api.MetricFilter.MultiValues.deserializeBinary = function (bytes) {
|
|
68917
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
68918
|
+
var msg = new proto.clarifai.api.MetricFilter.MultiValues;
|
|
68919
|
+
return proto.clarifai.api.MetricFilter.MultiValues.deserializeBinaryFromReader(msg, reader);
|
|
68920
|
+
};
|
|
68921
|
+
/**
|
|
68922
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
68923
|
+
* given reader into the given message object.
|
|
68924
|
+
* @param {!proto.clarifai.api.MetricFilter.MultiValues} msg The message object to deserialize into.
|
|
68925
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
68926
|
+
* @return {!proto.clarifai.api.MetricFilter.MultiValues}
|
|
68927
|
+
*/
|
|
68928
|
+
proto.clarifai.api.MetricFilter.MultiValues.deserializeBinaryFromReader = function (msg, reader) {
|
|
68929
|
+
while (reader.nextField()) {
|
|
68930
|
+
if (reader.isEndGroup()) {
|
|
68931
|
+
break;
|
|
68932
|
+
}
|
|
68933
|
+
var field = reader.getFieldNumber();
|
|
68934
|
+
switch (field) {
|
|
68935
|
+
case 1:
|
|
68936
|
+
var value = /** @type {string} */ (reader.readString());
|
|
68937
|
+
msg.addIn(value);
|
|
68938
|
+
break;
|
|
68939
|
+
default:
|
|
68940
|
+
reader.skipField();
|
|
68941
|
+
break;
|
|
68942
|
+
}
|
|
68943
|
+
}
|
|
68944
|
+
return msg;
|
|
68945
|
+
};
|
|
68946
|
+
/**
|
|
68947
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
68948
|
+
* @return {!Uint8Array}
|
|
68949
|
+
*/
|
|
68950
|
+
proto.clarifai.api.MetricFilter.MultiValues.prototype.serializeBinary = function () {
|
|
68951
|
+
var writer = new jspb.BinaryWriter();
|
|
68952
|
+
proto.clarifai.api.MetricFilter.MultiValues.serializeBinaryToWriter(this, writer);
|
|
68953
|
+
return writer.getResultBuffer();
|
|
68954
|
+
};
|
|
68955
|
+
/**
|
|
68956
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
68957
|
+
* format), writing to the given BinaryWriter.
|
|
68958
|
+
* @param {!proto.clarifai.api.MetricFilter.MultiValues} message
|
|
68959
|
+
* @param {!jspb.BinaryWriter} writer
|
|
68960
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68961
|
+
*/
|
|
68962
|
+
proto.clarifai.api.MetricFilter.MultiValues.serializeBinaryToWriter = function (message, writer) {
|
|
68963
|
+
var f = undefined;
|
|
68964
|
+
f = message.getInList();
|
|
68965
|
+
if (f.length > 0) {
|
|
68966
|
+
writer.writeRepeatedString(1, f);
|
|
68967
|
+
}
|
|
68968
|
+
};
|
|
68969
|
+
/**
|
|
68970
|
+
* repeated string in = 1;
|
|
68971
|
+
* @return {!Array<string>}
|
|
68972
|
+
*/
|
|
68973
|
+
proto.clarifai.api.MetricFilter.MultiValues.prototype.getInList = function () {
|
|
68974
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
68975
|
+
};
|
|
68976
|
+
/**
|
|
68977
|
+
* @param {!Array<string>} value
|
|
68978
|
+
* @return {!proto.clarifai.api.MetricFilter.MultiValues} returns this
|
|
68979
|
+
*/
|
|
68980
|
+
proto.clarifai.api.MetricFilter.MultiValues.prototype.setInList = function (value) {
|
|
68981
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
68982
|
+
};
|
|
68983
|
+
/**
|
|
68984
|
+
* @param {string} value
|
|
68985
|
+
* @param {number=} opt_index
|
|
68986
|
+
* @return {!proto.clarifai.api.MetricFilter.MultiValues} returns this
|
|
68987
|
+
*/
|
|
68988
|
+
proto.clarifai.api.MetricFilter.MultiValues.prototype.addIn = function (value, opt_index) {
|
|
68989
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
68990
|
+
};
|
|
68991
|
+
/**
|
|
68992
|
+
* Clears the list making it empty but non-null.
|
|
68993
|
+
* @return {!proto.clarifai.api.MetricFilter.MultiValues} returns this
|
|
68994
|
+
*/
|
|
68995
|
+
proto.clarifai.api.MetricFilter.MultiValues.prototype.clearInList = function () {
|
|
68996
|
+
return this.setInList([]);
|
|
68997
|
+
};
|
|
68998
|
+
/**
|
|
68999
|
+
* optional MetricLabel label = 1;
|
|
69000
|
+
* @return {!proto.clarifai.api.MetricLabel}
|
|
69001
|
+
*/
|
|
69002
|
+
proto.clarifai.api.MetricFilter.prototype.getLabel = function () {
|
|
69003
|
+
return /** @type {!proto.clarifai.api.MetricLabel} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
69004
|
+
};
|
|
69005
|
+
/**
|
|
69006
|
+
* @param {!proto.clarifai.api.MetricLabel} value
|
|
69007
|
+
* @return {!proto.clarifai.api.MetricFilter} returns this
|
|
69008
|
+
*/
|
|
69009
|
+
proto.clarifai.api.MetricFilter.prototype.setLabel = function (value) {
|
|
69010
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
69011
|
+
};
|
|
69012
|
+
/**
|
|
69013
|
+
* optional string equals = 2;
|
|
69014
|
+
* @return {string}
|
|
69015
|
+
*/
|
|
69016
|
+
proto.clarifai.api.MetricFilter.prototype.getEquals = function () {
|
|
69017
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
69018
|
+
};
|
|
69019
|
+
/**
|
|
69020
|
+
* @param {string} value
|
|
69021
|
+
* @return {!proto.clarifai.api.MetricFilter} returns this
|
|
69022
|
+
*/
|
|
69023
|
+
proto.clarifai.api.MetricFilter.prototype.setEquals = function (value) {
|
|
69024
|
+
return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricFilter.oneofGroups_[0], value);
|
|
69025
|
+
};
|
|
69026
|
+
/**
|
|
69027
|
+
* Clears the field making it undefined.
|
|
69028
|
+
* @return {!proto.clarifai.api.MetricFilter} returns this
|
|
69029
|
+
*/
|
|
69030
|
+
proto.clarifai.api.MetricFilter.prototype.clearEquals = function () {
|
|
69031
|
+
return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricFilter.oneofGroups_[0], undefined);
|
|
69032
|
+
};
|
|
69033
|
+
/**
|
|
69034
|
+
* Returns whether this field is set.
|
|
69035
|
+
* @return {boolean}
|
|
69036
|
+
*/
|
|
69037
|
+
proto.clarifai.api.MetricFilter.prototype.hasEquals = function () {
|
|
69038
|
+
return jspb.Message.getField(this, 2) != null;
|
|
69039
|
+
};
|
|
69040
|
+
/**
|
|
69041
|
+
* optional MultiValues in = 3;
|
|
69042
|
+
* @return {?proto.clarifai.api.MetricFilter.MultiValues}
|
|
69043
|
+
*/
|
|
69044
|
+
proto.clarifai.api.MetricFilter.prototype.getIn = function () {
|
|
69045
|
+
return /** @type{?proto.clarifai.api.MetricFilter.MultiValues} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.MetricFilter.MultiValues, 3));
|
|
69046
|
+
};
|
|
69047
|
+
/**
|
|
69048
|
+
* @param {?proto.clarifai.api.MetricFilter.MultiValues|undefined} value
|
|
69049
|
+
* @return {!proto.clarifai.api.MetricFilter} returns this
|
|
69050
|
+
*/
|
|
69051
|
+
proto.clarifai.api.MetricFilter.prototype.setIn = function (value) {
|
|
69052
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.MetricFilter.oneofGroups_[0], value);
|
|
69053
|
+
};
|
|
69054
|
+
/**
|
|
69055
|
+
* Clears the message field making it undefined.
|
|
69056
|
+
* @return {!proto.clarifai.api.MetricFilter} returns this
|
|
69057
|
+
*/
|
|
69058
|
+
proto.clarifai.api.MetricFilter.prototype.clearIn = function () {
|
|
69059
|
+
return this.setIn(undefined);
|
|
69060
|
+
};
|
|
69061
|
+
/**
|
|
69062
|
+
* Returns whether this field is set.
|
|
69063
|
+
* @return {boolean}
|
|
69064
|
+
*/
|
|
69065
|
+
proto.clarifai.api.MetricFilter.prototype.hasIn = function () {
|
|
69066
|
+
return jspb.Message.getField(this, 3) != null;
|
|
69067
|
+
};
|
|
69068
|
+
/**
|
|
69069
|
+
* List of repeated fields within this message type.
|
|
69070
|
+
* @private {!Array<number>}
|
|
69071
|
+
* @const
|
|
69072
|
+
*/
|
|
69073
|
+
proto.clarifai.api.MetricSearchQuery.repeatedFields_ = [5];
|
|
69074
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
69075
|
+
/**
|
|
69076
|
+
* Creates an object representation of this proto.
|
|
69077
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
69078
|
+
* Optional fields that are not set will be set to undefined.
|
|
69079
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
69080
|
+
* For the list of reserved names please see:
|
|
69081
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
69082
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
69083
|
+
* JSPB instance for transitional soy proto support:
|
|
69084
|
+
* http://goto/soy-param-migration
|
|
69085
|
+
* @return {!Object}
|
|
69086
|
+
*/
|
|
69087
|
+
proto.clarifai.api.MetricSearchQuery.prototype.toObject = function (opt_includeInstance) {
|
|
69088
|
+
return proto.clarifai.api.MetricSearchQuery.toObject(opt_includeInstance, this);
|
|
69089
|
+
};
|
|
69090
|
+
/**
|
|
69091
|
+
* Static version of the {@see toObject} method.
|
|
69092
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
69093
|
+
* the JSPB instance for transitional soy proto support:
|
|
69094
|
+
* http://goto/soy-param-migration
|
|
69095
|
+
* @param {!proto.clarifai.api.MetricSearchQuery} msg The msg instance to transform.
|
|
69096
|
+
* @return {!Object}
|
|
69097
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
69098
|
+
*/
|
|
69099
|
+
proto.clarifai.api.MetricSearchQuery.toObject = function (includeInstance, msg) {
|
|
69100
|
+
var f, obj = {
|
|
69101
|
+
metricType: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
69102
|
+
startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
69103
|
+
endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
69104
|
+
resolution: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
69105
|
+
filtersList: jspb.Message.toObjectList(msg.getFiltersList(), proto.clarifai.api.MetricFilter.toObject, includeInstance),
|
|
69106
|
+
aggregate: (f = msg.getAggregate()) && proto.clarifai.api.MetricAggregate.toObject(includeInstance, f)
|
|
69107
|
+
};
|
|
69108
|
+
if (includeInstance) {
|
|
69109
|
+
obj.$jspbMessageInstance = msg;
|
|
69110
|
+
}
|
|
69111
|
+
return obj;
|
|
69112
|
+
};
|
|
69113
|
+
}
|
|
69114
|
+
/**
|
|
69115
|
+
* Deserializes binary data (in protobuf wire format).
|
|
69116
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
69117
|
+
* @return {!proto.clarifai.api.MetricSearchQuery}
|
|
69118
|
+
*/
|
|
69119
|
+
proto.clarifai.api.MetricSearchQuery.deserializeBinary = function (bytes) {
|
|
69120
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
69121
|
+
var msg = new proto.clarifai.api.MetricSearchQuery;
|
|
69122
|
+
return proto.clarifai.api.MetricSearchQuery.deserializeBinaryFromReader(msg, reader);
|
|
69123
|
+
};
|
|
69124
|
+
/**
|
|
69125
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
69126
|
+
* given reader into the given message object.
|
|
69127
|
+
* @param {!proto.clarifai.api.MetricSearchQuery} msg The message object to deserialize into.
|
|
69128
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
69129
|
+
* @return {!proto.clarifai.api.MetricSearchQuery}
|
|
69130
|
+
*/
|
|
69131
|
+
proto.clarifai.api.MetricSearchQuery.deserializeBinaryFromReader = function (msg, reader) {
|
|
69132
|
+
while (reader.nextField()) {
|
|
69133
|
+
if (reader.isEndGroup()) {
|
|
69134
|
+
break;
|
|
69135
|
+
}
|
|
69136
|
+
var field = reader.getFieldNumber();
|
|
69137
|
+
switch (field) {
|
|
69138
|
+
case 1:
|
|
69139
|
+
var value = /** @type {!proto.clarifai.api.MetricType} */ (reader.readEnum());
|
|
69140
|
+
msg.setMetricType(value);
|
|
69141
|
+
break;
|
|
69142
|
+
case 2:
|
|
69143
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
69144
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
69145
|
+
msg.setStartTime(value);
|
|
69146
|
+
break;
|
|
69147
|
+
case 3:
|
|
69148
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
69149
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
69150
|
+
msg.setEndTime(value);
|
|
69151
|
+
break;
|
|
69152
|
+
case 4:
|
|
69153
|
+
var value = /** @type {string} */ (reader.readString());
|
|
69154
|
+
msg.setResolution(value);
|
|
69155
|
+
break;
|
|
69156
|
+
case 5:
|
|
69157
|
+
var value = new proto.clarifai.api.MetricFilter;
|
|
69158
|
+
reader.readMessage(value, proto.clarifai.api.MetricFilter.deserializeBinaryFromReader);
|
|
69159
|
+
msg.addFilters(value);
|
|
69160
|
+
break;
|
|
69161
|
+
case 6:
|
|
69162
|
+
var value = new proto.clarifai.api.MetricAggregate;
|
|
69163
|
+
reader.readMessage(value, proto.clarifai.api.MetricAggregate.deserializeBinaryFromReader);
|
|
69164
|
+
msg.setAggregate(value);
|
|
69165
|
+
break;
|
|
69166
|
+
default:
|
|
69167
|
+
reader.skipField();
|
|
69168
|
+
break;
|
|
69169
|
+
}
|
|
69170
|
+
}
|
|
69171
|
+
return msg;
|
|
69172
|
+
};
|
|
69173
|
+
/**
|
|
69174
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
69175
|
+
* @return {!Uint8Array}
|
|
69176
|
+
*/
|
|
69177
|
+
proto.clarifai.api.MetricSearchQuery.prototype.serializeBinary = function () {
|
|
69178
|
+
var writer = new jspb.BinaryWriter();
|
|
69179
|
+
proto.clarifai.api.MetricSearchQuery.serializeBinaryToWriter(this, writer);
|
|
69180
|
+
return writer.getResultBuffer();
|
|
69181
|
+
};
|
|
69182
|
+
/**
|
|
69183
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
69184
|
+
* format), writing to the given BinaryWriter.
|
|
69185
|
+
* @param {!proto.clarifai.api.MetricSearchQuery} message
|
|
69186
|
+
* @param {!jspb.BinaryWriter} writer
|
|
69187
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
69188
|
+
*/
|
|
69189
|
+
proto.clarifai.api.MetricSearchQuery.serializeBinaryToWriter = function (message, writer) {
|
|
69190
|
+
var f = undefined;
|
|
69191
|
+
f = message.getMetricType();
|
|
69192
|
+
if (f !== 0.0) {
|
|
69193
|
+
writer.writeEnum(1, f);
|
|
69194
|
+
}
|
|
69195
|
+
f = message.getStartTime();
|
|
69196
|
+
if (f != null) {
|
|
69197
|
+
writer.writeMessage(2, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
69198
|
+
}
|
|
69199
|
+
f = message.getEndTime();
|
|
69200
|
+
if (f != null) {
|
|
69201
|
+
writer.writeMessage(3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
69202
|
+
}
|
|
69203
|
+
f = message.getResolution();
|
|
69204
|
+
if (f.length > 0) {
|
|
69205
|
+
writer.writeString(4, f);
|
|
69206
|
+
}
|
|
69207
|
+
f = message.getFiltersList();
|
|
69208
|
+
if (f.length > 0) {
|
|
69209
|
+
writer.writeRepeatedMessage(5, f, proto.clarifai.api.MetricFilter.serializeBinaryToWriter);
|
|
69210
|
+
}
|
|
69211
|
+
f = message.getAggregate();
|
|
69212
|
+
if (f != null) {
|
|
69213
|
+
writer.writeMessage(6, f, proto.clarifai.api.MetricAggregate.serializeBinaryToWriter);
|
|
69214
|
+
}
|
|
69215
|
+
};
|
|
69216
|
+
/**
|
|
69217
|
+
* optional MetricType metric_type = 1;
|
|
69218
|
+
* @return {!proto.clarifai.api.MetricType}
|
|
69219
|
+
*/
|
|
69220
|
+
proto.clarifai.api.MetricSearchQuery.prototype.getMetricType = function () {
|
|
69221
|
+
return /** @type {!proto.clarifai.api.MetricType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
69222
|
+
};
|
|
69223
|
+
/**
|
|
69224
|
+
* @param {!proto.clarifai.api.MetricType} value
|
|
69225
|
+
* @return {!proto.clarifai.api.MetricSearchQuery} returns this
|
|
69226
|
+
*/
|
|
69227
|
+
proto.clarifai.api.MetricSearchQuery.prototype.setMetricType = function (value) {
|
|
69228
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
69229
|
+
};
|
|
69230
|
+
/**
|
|
69231
|
+
* optional google.protobuf.Timestamp start_time = 2;
|
|
69232
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
69233
|
+
*/
|
|
69234
|
+
proto.clarifai.api.MetricSearchQuery.prototype.getStartTime = function () {
|
|
69235
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
69236
|
+
};
|
|
69237
|
+
/**
|
|
69238
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
69239
|
+
* @return {!proto.clarifai.api.MetricSearchQuery} returns this
|
|
69240
|
+
*/
|
|
69241
|
+
proto.clarifai.api.MetricSearchQuery.prototype.setStartTime = function (value) {
|
|
69242
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
69243
|
+
};
|
|
69244
|
+
/**
|
|
69245
|
+
* Clears the message field making it undefined.
|
|
69246
|
+
* @return {!proto.clarifai.api.MetricSearchQuery} returns this
|
|
69247
|
+
*/
|
|
69248
|
+
proto.clarifai.api.MetricSearchQuery.prototype.clearStartTime = function () {
|
|
69249
|
+
return this.setStartTime(undefined);
|
|
69250
|
+
};
|
|
69251
|
+
/**
|
|
69252
|
+
* Returns whether this field is set.
|
|
69253
|
+
* @return {boolean}
|
|
69254
|
+
*/
|
|
69255
|
+
proto.clarifai.api.MetricSearchQuery.prototype.hasStartTime = function () {
|
|
69256
|
+
return jspb.Message.getField(this, 2) != null;
|
|
69257
|
+
};
|
|
69258
|
+
/**
|
|
69259
|
+
* optional google.protobuf.Timestamp end_time = 3;
|
|
69260
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
69261
|
+
*/
|
|
69262
|
+
proto.clarifai.api.MetricSearchQuery.prototype.getEndTime = function () {
|
|
69263
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
69264
|
+
};
|
|
69265
|
+
/**
|
|
69266
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
69267
|
+
* @return {!proto.clarifai.api.MetricSearchQuery} returns this
|
|
69268
|
+
*/
|
|
69269
|
+
proto.clarifai.api.MetricSearchQuery.prototype.setEndTime = function (value) {
|
|
69270
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
69271
|
+
};
|
|
69272
|
+
/**
|
|
69273
|
+
* Clears the message field making it undefined.
|
|
69274
|
+
* @return {!proto.clarifai.api.MetricSearchQuery} returns this
|
|
69275
|
+
*/
|
|
69276
|
+
proto.clarifai.api.MetricSearchQuery.prototype.clearEndTime = function () {
|
|
69277
|
+
return this.setEndTime(undefined);
|
|
69278
|
+
};
|
|
69279
|
+
/**
|
|
69280
|
+
* Returns whether this field is set.
|
|
69281
|
+
* @return {boolean}
|
|
69282
|
+
*/
|
|
69283
|
+
proto.clarifai.api.MetricSearchQuery.prototype.hasEndTime = function () {
|
|
69284
|
+
return jspb.Message.getField(this, 3) != null;
|
|
69285
|
+
};
|
|
69286
|
+
/**
|
|
69287
|
+
* optional string resolution = 4;
|
|
69288
|
+
* @return {string}
|
|
69289
|
+
*/
|
|
69290
|
+
proto.clarifai.api.MetricSearchQuery.prototype.getResolution = function () {
|
|
69291
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
69292
|
+
};
|
|
69293
|
+
/**
|
|
69294
|
+
* @param {string} value
|
|
69295
|
+
* @return {!proto.clarifai.api.MetricSearchQuery} returns this
|
|
69296
|
+
*/
|
|
69297
|
+
proto.clarifai.api.MetricSearchQuery.prototype.setResolution = function (value) {
|
|
69298
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
69299
|
+
};
|
|
69300
|
+
/**
|
|
69301
|
+
* repeated MetricFilter filters = 5;
|
|
69302
|
+
* @return {!Array<!proto.clarifai.api.MetricFilter>}
|
|
69303
|
+
*/
|
|
69304
|
+
proto.clarifai.api.MetricSearchQuery.prototype.getFiltersList = function () {
|
|
69305
|
+
return /** @type{!Array<!proto.clarifai.api.MetricFilter>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MetricFilter, 5));
|
|
69306
|
+
};
|
|
69307
|
+
/**
|
|
69308
|
+
* @param {!Array<!proto.clarifai.api.MetricFilter>} value
|
|
69309
|
+
* @return {!proto.clarifai.api.MetricSearchQuery} returns this
|
|
69310
|
+
*/
|
|
69311
|
+
proto.clarifai.api.MetricSearchQuery.prototype.setFiltersList = function (value) {
|
|
69312
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
69313
|
+
};
|
|
69314
|
+
/**
|
|
69315
|
+
* @param {!proto.clarifai.api.MetricFilter=} opt_value
|
|
69316
|
+
* @param {number=} opt_index
|
|
69317
|
+
* @return {!proto.clarifai.api.MetricFilter}
|
|
69318
|
+
*/
|
|
69319
|
+
proto.clarifai.api.MetricSearchQuery.prototype.addFilters = function (opt_value, opt_index) {
|
|
69320
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.MetricFilter, opt_index);
|
|
69321
|
+
};
|
|
69322
|
+
/**
|
|
69323
|
+
* Clears the list making it empty but non-null.
|
|
69324
|
+
* @return {!proto.clarifai.api.MetricSearchQuery} returns this
|
|
69325
|
+
*/
|
|
69326
|
+
proto.clarifai.api.MetricSearchQuery.prototype.clearFiltersList = function () {
|
|
69327
|
+
return this.setFiltersList([]);
|
|
69328
|
+
};
|
|
69329
|
+
/**
|
|
69330
|
+
* optional MetricAggregate aggregate = 6;
|
|
69331
|
+
* @return {?proto.clarifai.api.MetricAggregate}
|
|
69332
|
+
*/
|
|
69333
|
+
proto.clarifai.api.MetricSearchQuery.prototype.getAggregate = function () {
|
|
69334
|
+
return /** @type{?proto.clarifai.api.MetricAggregate} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.MetricAggregate, 6));
|
|
69335
|
+
};
|
|
69336
|
+
/**
|
|
69337
|
+
* @param {?proto.clarifai.api.MetricAggregate|undefined} value
|
|
69338
|
+
* @return {!proto.clarifai.api.MetricSearchQuery} returns this
|
|
69339
|
+
*/
|
|
69340
|
+
proto.clarifai.api.MetricSearchQuery.prototype.setAggregate = function (value) {
|
|
69341
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
69342
|
+
};
|
|
69343
|
+
/**
|
|
69344
|
+
* Clears the message field making it undefined.
|
|
69345
|
+
* @return {!proto.clarifai.api.MetricSearchQuery} returns this
|
|
69346
|
+
*/
|
|
69347
|
+
proto.clarifai.api.MetricSearchQuery.prototype.clearAggregate = function () {
|
|
69348
|
+
return this.setAggregate(undefined);
|
|
69349
|
+
};
|
|
69350
|
+
/**
|
|
69351
|
+
* Returns whether this field is set.
|
|
69352
|
+
* @return {boolean}
|
|
69353
|
+
*/
|
|
69354
|
+
proto.clarifai.api.MetricSearchQuery.prototype.hasAggregate = function () {
|
|
69355
|
+
return jspb.Message.getField(this, 6) != null;
|
|
69356
|
+
};
|
|
69357
|
+
/**
|
|
69358
|
+
* @enum {number}
|
|
69359
|
+
*/
|
|
69360
|
+
proto.clarifai.api.WorkflowModelUseCase = {
|
|
69361
|
+
WORKFLOW_MODEL_USE_CASE_NOT_SET: 0,
|
|
69362
|
+
CLASSIFICATION: 1,
|
|
69363
|
+
DETECTION: 2
|
|
69364
|
+
};
|
|
69365
|
+
/**
|
|
69366
|
+
* @enum {number}
|
|
69367
|
+
*/
|
|
69368
|
+
proto.clarifai.api.DatasetVersionRequestOrigin = {
|
|
69369
|
+
DATASET_VERSION_REQUEST_ORIGIN_NOT_SET: 0,
|
|
69370
|
+
MANUAL: 1,
|
|
69371
|
+
TRAINING: 2,
|
|
69372
|
+
EVAL_GROUND_TRUTH: 3,
|
|
69373
|
+
EVAL_PREDICTIONS: 4
|
|
69374
|
+
};
|
|
69375
|
+
/**
|
|
69376
|
+
* @enum {number}
|
|
69377
|
+
*/
|
|
69378
|
+
proto.clarifai.api.DatasetVersionMetricsGroupType = {
|
|
69379
|
+
DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET: 0,
|
|
69380
|
+
INPUT_TYPE: 2,
|
|
69381
|
+
CONCEPT_ID: 10,
|
|
69382
|
+
CONCEPTS_COUNT: 11,
|
|
69383
|
+
BOUNDING_BOXES_COUNT: 20,
|
|
69384
|
+
POLYGONS_COUNT: 21,
|
|
69385
|
+
POINTS_COUNT: 22,
|
|
69386
|
+
MASKS_COUNT: 23,
|
|
69387
|
+
PIXELS_COUNT: 30,
|
|
69388
|
+
ASPECT_RATIO: 31
|
|
69389
|
+
};
|
|
69390
|
+
/**
|
|
69391
|
+
* @enum {number}
|
|
69392
|
+
*/
|
|
69393
|
+
proto.clarifai.api.DatasetVersionExportFormat = {
|
|
69394
|
+
DATASET_VERSION_EXPORT_FORMAT_NOT_SET: 0,
|
|
69395
|
+
CLARIFAI_DATA_PROTOBUF: 1,
|
|
69396
|
+
CLARIFAI_DATA_JSON: 3,
|
|
69397
|
+
COCO: 2
|
|
69398
|
+
};
|
|
69399
|
+
/**
|
|
69400
|
+
* @enum {number}
|
|
69401
|
+
*/
|
|
69402
|
+
proto.clarifai.api.ExpirationAction = {
|
|
69403
|
+
EXPIRATION_ACTION_NOT_SET: 0,
|
|
69404
|
+
DELAY: 1,
|
|
69405
|
+
EXPIRY: 2
|
|
69406
|
+
};
|
|
69407
|
+
/**
|
|
69408
|
+
* @enum {number}
|
|
69409
|
+
*/
|
|
69410
|
+
proto.clarifai.api.LicenseScope = {
|
|
69411
|
+
LICENSE_SCOPE_NOT_SET: 0,
|
|
69412
|
+
PREDICT: 1,
|
|
69413
|
+
TRAIN: 2,
|
|
69414
|
+
SEARCH: 3
|
|
69415
|
+
};
|
|
69416
|
+
/**
|
|
69417
|
+
* @enum {number}
|
|
69418
|
+
*/
|
|
69419
|
+
proto.clarifai.api.LicenseType = {
|
|
69420
|
+
UNKNOWN_LICENSE_TYPE: 0,
|
|
69421
|
+
FIRST_PARTY: 1,
|
|
69422
|
+
OPEN_SOURCE: 2,
|
|
69423
|
+
CLOSED_SOURCE: 3
|
|
69424
|
+
};
|
|
69425
|
+
/**
|
|
69426
|
+
* @enum {number}
|
|
69427
|
+
*/
|
|
69428
|
+
proto.clarifai.api.DeployRestriction = {
|
|
69429
|
+
USAGE_RESTRICTION_NOT_SET: 0,
|
|
69430
|
+
NO_LIMITS: 1,
|
|
69431
|
+
SHARED_COMPUTE_ONLY: 2,
|
|
69432
|
+
DEDICATED_COMPUTE_ONLY: 3
|
|
69433
|
+
};
|
|
69434
|
+
/**
|
|
69435
|
+
* @enum {number}
|
|
69436
|
+
*/
|
|
69437
|
+
proto.clarifai.api.DataType = {
|
|
69438
|
+
UNDEFINED: 0,
|
|
69439
|
+
STRING: 1,
|
|
69440
|
+
UINT8: 2,
|
|
69441
|
+
INT32: 3,
|
|
69442
|
+
INT64: 4,
|
|
69443
|
+
FP32: 5
|
|
69444
|
+
};
|
|
69445
|
+
/**
|
|
69446
|
+
* @enum {number}
|
|
69447
|
+
*/
|
|
69448
|
+
proto.clarifai.api.ValueComparator = {
|
|
69449
|
+
CONCEPT_THRESHOLD_NOT_SET: 0,
|
|
69450
|
+
GREATER_THAN: 1,
|
|
69451
|
+
GREATER_THAN_OR_EQUAL: 2,
|
|
69452
|
+
LESS_THAN: 3,
|
|
69453
|
+
LESS_THAN_OR_EQUAL: 4,
|
|
69454
|
+
EQUAL: 5
|
|
69455
|
+
};
|
|
69456
|
+
/**
|
|
69457
|
+
* @enum {number}
|
|
69458
|
+
*/
|
|
69459
|
+
proto.clarifai.api.EvaluationType = {
|
|
69460
|
+
UNDEFINED: 0,
|
|
69461
|
+
CLASSIFICATION: 1,
|
|
69462
|
+
DETECTION: 2,
|
|
69463
|
+
SEGMENTATION: 3,
|
|
69464
|
+
CLUSTERING: 4,
|
|
69465
|
+
TRACKER: 5,
|
|
69466
|
+
GENERATION: 6
|
|
69467
|
+
};
|
|
69468
|
+
/**
|
|
69469
|
+
* @enum {number}
|
|
69470
|
+
*/
|
|
69471
|
+
proto.clarifai.api.APIEventType = {
|
|
69472
|
+
API_EVENT_TYPE_NOT_SET: 0,
|
|
69473
|
+
ON_PREM_PREDICT: 1,
|
|
69474
|
+
ON_PREM_TRAIN: 2,
|
|
69475
|
+
ON_PREM_SEARCH: 3
|
|
69476
|
+
};
|
|
69477
|
+
/**
|
|
69478
|
+
* @enum {number}
|
|
69479
|
+
*/
|
|
69480
|
+
proto.clarifai.api.UsageIntervalType = {
|
|
69481
|
+
UNDEF: 0,
|
|
69482
|
+
DAY: 1,
|
|
69483
|
+
MONTH: 2,
|
|
69484
|
+
YEAR: 3
|
|
69485
|
+
};
|
|
69486
|
+
/**
|
|
69487
|
+
* @enum {number}
|
|
69488
|
+
*/
|
|
69489
|
+
proto.clarifai.api.AnnotationDataType = {
|
|
69490
|
+
ANNOTATION_DATA_TYPE_NOT_SET: 0,
|
|
69491
|
+
TAG: 1,
|
|
69492
|
+
BOUNDING_BOX: 2,
|
|
69493
|
+
POLYGON: 4,
|
|
69494
|
+
POINT: 8,
|
|
69495
|
+
SPAN: 16,
|
|
69496
|
+
MASK: 32
|
|
69497
|
+
};
|
|
69498
|
+
/**
|
|
69499
|
+
* @enum {number}
|
|
69500
|
+
*/
|
|
69501
|
+
proto.clarifai.api.RoleType = {
|
|
69502
|
+
TEAM: 0,
|
|
69503
|
+
ORG: 1
|
|
69504
|
+
};
|
|
69505
|
+
/**
|
|
69506
|
+
* @enum {number}
|
|
69507
|
+
*/
|
|
69508
|
+
proto.clarifai.api.StatValueAggType = {
|
|
69509
|
+
SUM: 0,
|
|
69510
|
+
AVG: 1
|
|
69511
|
+
};
|
|
69512
|
+
/**
|
|
69513
|
+
* @enum {number}
|
|
69514
|
+
*/
|
|
69515
|
+
proto.clarifai.api.StatTimeAggType = {
|
|
69516
|
+
NO_TIME_AGG: 0,
|
|
69517
|
+
YEAR: 1,
|
|
69518
|
+
MONTH: 2,
|
|
69519
|
+
WEEK: 3,
|
|
69520
|
+
DAY: 4,
|
|
69521
|
+
HOUR: 5,
|
|
69522
|
+
MINUTE: 6
|
|
69523
|
+
};
|
|
69524
|
+
/**
|
|
69525
|
+
* @enum {number}
|
|
69526
|
+
*/
|
|
69527
|
+
proto.clarifai.api.ValidationErrorType = {
|
|
69528
|
+
VALIDATION_ERROR_TYPE_NOT_SET: 0,
|
|
69529
|
+
RESTRICTED: 1,
|
|
69530
|
+
DATABASE: 2,
|
|
69531
|
+
FORMAT: 3
|
|
69532
|
+
};
|
|
69533
|
+
/**
|
|
69534
|
+
* @enum {number}
|
|
69535
|
+
*/
|
|
69536
|
+
proto.clarifai.api.InputIDConflictResolution = {
|
|
69537
|
+
INPUT_ID_CONFLICT_RESOLUTION_NOT_SET: 0,
|
|
69538
|
+
SKIP: 1,
|
|
69539
|
+
SUFFIX: 2
|
|
69540
|
+
};
|
|
69541
|
+
/**
|
|
69542
|
+
* @enum {number}
|
|
69543
|
+
*/
|
|
69544
|
+
proto.clarifai.api.RunnerMethodType = {
|
|
69545
|
+
UNKNOWN: 0,
|
|
69546
|
+
UNARY_UNARY: 1,
|
|
69547
|
+
UNARY_STREAMING: 2,
|
|
69548
|
+
STREAMING_UNARY: 3,
|
|
69549
|
+
STREAMING_STREAMING: 4
|
|
69550
|
+
};
|
|
69551
|
+
/**
|
|
69552
|
+
* @enum {number}
|
|
69553
|
+
*/
|
|
69554
|
+
proto.clarifai.api.EventType = {
|
|
69555
|
+
EVENT_TYPE_NOT_SET: 0,
|
|
69556
|
+
ORGANIZATION_MEMBER_ADD: 100,
|
|
69557
|
+
ORGANIZATION_MEMBER_CHANGE: 101,
|
|
69558
|
+
ORGANIZATION_MEMBER_REMOVE: 102,
|
|
69559
|
+
ORGANIZATION_MEMBER_INVITATION_CREATE: 103,
|
|
69560
|
+
ORGANIZATION_MEMBER_INVITATION_CANCEL: 104,
|
|
69561
|
+
ORGANIZATION_MEMBER_INVITATION_ACCEPT: 105,
|
|
69562
|
+
ORGANIZATION_MEMBER_INVITATION_DECLINE: 106,
|
|
69563
|
+
ORGANIZATION_TEAM_CREATE: 107,
|
|
69564
|
+
ORGANIZATION_TEAM_UPDATE: 108,
|
|
69565
|
+
ORGANIZATION_TEAM_DELETE: 109,
|
|
69566
|
+
ORGANIZATION_TEAM_MEMBER_ADD: 110,
|
|
69567
|
+
ORGANIZATION_TEAM_MEMBER_REMOVE: 111,
|
|
69568
|
+
ORGANIZATION_TEAM_APP_ADD: 112,
|
|
69569
|
+
ORGANIZATION_TEAM_APP_REMOVE: 113,
|
|
69570
|
+
MODULE_CREATE: 200,
|
|
69571
|
+
MODULE_UPDATE: 201,
|
|
69572
|
+
MODULE_DELETE: 202,
|
|
69573
|
+
MODULE_VERSION_CREATE: 203,
|
|
69574
|
+
MODULE_VERSION_UPDATE: 204,
|
|
69575
|
+
MODULE_VERSION_DELETE: 205,
|
|
69576
|
+
MODEL_CREATE: 300,
|
|
69577
|
+
MODEL_UPDATE: 301,
|
|
69578
|
+
MODEL_DELETE: 302,
|
|
69579
|
+
MODEL_VERSION_CREATE: 303,
|
|
69580
|
+
MODEL_VERSION_UPDATE: 304,
|
|
69581
|
+
MODEL_VERSION_DELETE: 305,
|
|
69582
|
+
WORKFLOW_CREATE: 400,
|
|
69583
|
+
WORKFLOW_UPDATE: 401,
|
|
69584
|
+
WORKFLOW_DELETE: 402,
|
|
69585
|
+
WORKFLOW_VERSION_CREATE: 403,
|
|
69586
|
+
WORKFLOW_VERSION_UPDATE: 404,
|
|
69587
|
+
WORKFLOW_VERSION_DELETE: 405,
|
|
69588
|
+
APPLICATION_CREATE: 600,
|
|
69589
|
+
APPLICATION_UPDATE: 601,
|
|
69590
|
+
APPLICATION_DELETE: 602,
|
|
69591
|
+
COLLABORATOR_ADD: 700,
|
|
69592
|
+
COLLABORATOR_UPDATE: 701,
|
|
69593
|
+
COLLABORATOR_REMOVE: 702,
|
|
69594
|
+
USER_UPDATE: 800,
|
|
69595
|
+
COMPUTE_CLUSTER_CREATE: 900,
|
|
69596
|
+
COMPUTE_CLUSTER_DELETE: 901,
|
|
69597
|
+
NODEPOOL_CREATE: 1000,
|
|
69598
|
+
NODEPOOL_UPDATE: 1001,
|
|
69599
|
+
NODEPOOL_DELETE: 1002,
|
|
69600
|
+
DEPLOYMENT_CREATE: 1100,
|
|
69601
|
+
DEPLOYMENT_UPDATE: 1101,
|
|
69602
|
+
DEPLOYMENT_DELETE: 1102
|
|
69603
|
+
};
|
|
69604
|
+
/**
|
|
69605
|
+
* @enum {number}
|
|
69606
|
+
*/
|
|
69607
|
+
proto.clarifai.api.MetricType = {
|
|
69608
|
+
METRIC_TYPE_NOT_SET: 0,
|
|
69609
|
+
MODEL_REQUEST_COUNT: 1,
|
|
69610
|
+
MODEL_LATENCY: 2
|
|
69611
|
+
};
|
|
69612
|
+
/**
|
|
69613
|
+
* @enum {number}
|
|
69614
|
+
*/
|
|
69615
|
+
proto.clarifai.api.MetricLabel = {
|
|
69616
|
+
METRIC_LABEL_NOT_SET: 0,
|
|
69617
|
+
APP_ID: 1,
|
|
69618
|
+
MODEL_ID: 2,
|
|
69619
|
+
MODEL_VERSION_ID: 3,
|
|
69620
|
+
CALLER_USER_ID: 4,
|
|
69621
|
+
WORKFLOW_ID: 5
|
|
67513
69622
|
};
|
|
67514
69623
|
goog.object.extend(exports, proto.clarifai.api);
|