clarifai-web-grpc 10.2.1 → 10.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -11
- package/VERSION +1 -1
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +8 -2
- package/dist/cjs/proto/clarifai/api/resources_pb.js +2720 -113
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +38 -42
- package/dist/cjs/proto/clarifai/api/service_pb.js +1042 -445
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -0
- package/dist/cjs/resources.d.ts +1 -0
- package/dist/cjs/resources.js +3 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +6 -2
- package/dist/esm/proto/clarifai/api/resources_pb.js +2720 -113
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +38 -42
- package/dist/esm/proto/clarifai/api/service_pb.js +1042 -445
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -0
- package/dist/esm/resources.d.ts +1 -0
- package/dist/esm/resources.js +1 -0
- package/examples/post-app.ts +27 -0
- package/examples/post-input.ts +42 -0
- package/index.ts +7 -2
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +435 -0
- package/proto/clarifai/api/resources_pb.js +3370 -114
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +10 -12
- package/proto/clarifai/api/service_grpc_web_pb.js +56 -61
- package/proto/clarifai/api/service_pb.d.ts +164 -72
- package/proto/clarifai/api/service_pb.js +1534 -767
- package/proto/clarifai/api/status/status_code_pb.d.ts +6 -0
- package/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +2 -0
- package/proto/clarifai/auth/scope/scope_pb.js +2 -0
- package/resources.ts +1 -0
|
@@ -54,21 +54,27 @@ goog.exportSymbol('proto.clarifai.api.AppDuplication', null, global);
|
|
|
54
54
|
goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
|
|
55
55
|
goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
|
|
56
56
|
goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
|
|
57
|
+
goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
|
|
57
58
|
goog.exportSymbol('proto.clarifai.api.Audio', null, global);
|
|
58
59
|
goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
|
|
60
|
+
goog.exportSymbol('proto.clarifai.api.AutoscaleConfig', null, global);
|
|
59
61
|
goog.exportSymbol('proto.clarifai.api.AzureBlobCreds', null, global);
|
|
60
62
|
goog.exportSymbol('proto.clarifai.api.BinaryMetrics', null, global);
|
|
61
63
|
goog.exportSymbol('proto.clarifai.api.BookmarkOrigin', null, global);
|
|
62
64
|
goog.exportSymbol('proto.clarifai.api.BookmarkOrigin.BookmarkType', null, global);
|
|
63
65
|
goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global);
|
|
66
|
+
goog.exportSymbol('proto.clarifai.api.BuildInfo', null, global);
|
|
64
67
|
goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global);
|
|
65
68
|
goog.exportSymbol('proto.clarifai.api.BulkOperation.InputSourceCase', null, global);
|
|
69
|
+
goog.exportSymbol('proto.clarifai.api.CloudRegion', null, global);
|
|
70
|
+
goog.exportSymbol('proto.clarifai.api.CloudRegion.Cloud', null, global);
|
|
66
71
|
goog.exportSymbol('proto.clarifai.api.Cluster', null, global);
|
|
67
72
|
goog.exportSymbol('proto.clarifai.api.Collaboration', null, global);
|
|
68
73
|
goog.exportSymbol('proto.clarifai.api.Collaborator', null, global);
|
|
69
74
|
goog.exportSymbol('proto.clarifai.api.Collector', null, global);
|
|
70
75
|
goog.exportSymbol('proto.clarifai.api.CollectorSource', null, global);
|
|
71
76
|
goog.exportSymbol('proto.clarifai.api.Color', null, global);
|
|
77
|
+
goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
|
|
72
78
|
goog.exportSymbol('proto.clarifai.api.Concept', null, global);
|
|
73
79
|
goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
|
|
74
80
|
goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
|
|
@@ -101,10 +107,14 @@ goog.exportSymbol('proto.clarifai.api.DatasetVersionMetrics', null, global);
|
|
|
101
107
|
goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroup', null, global);
|
|
102
108
|
goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroupType', null, global);
|
|
103
109
|
goog.exportSymbol('proto.clarifai.api.DatasetVersionProcessingInfo', null, global);
|
|
110
|
+
goog.exportSymbol('proto.clarifai.api.DatasetVersionRequestOrigin', null, global);
|
|
104
111
|
goog.exportSymbol('proto.clarifai.api.DeleteConcepts', null, global);
|
|
105
112
|
goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global);
|
|
106
113
|
goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global);
|
|
107
114
|
goog.exportSymbol('proto.clarifai.api.DeleteMetadata', null, global);
|
|
115
|
+
goog.exportSymbol('proto.clarifai.api.Deployment', null, global);
|
|
116
|
+
goog.exportSymbol('proto.clarifai.api.Deployment.ObjectCase', null, global);
|
|
117
|
+
goog.exportSymbol('proto.clarifai.api.Deployment.SchedulingChoice', null, global);
|
|
108
118
|
goog.exportSymbol('proto.clarifai.api.DetailConceptCount', null, global);
|
|
109
119
|
goog.exportSymbol('proto.clarifai.api.DuplicateAnnotationsResults', null, global);
|
|
110
120
|
goog.exportSymbol('proto.clarifai.api.EmailAddress', null, global);
|
|
@@ -178,6 +188,8 @@ goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global);
|
|
|
178
188
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global);
|
|
179
189
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global);
|
|
180
190
|
goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
|
|
191
|
+
goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
|
|
192
|
+
goog.exportSymbol('proto.clarifai.api.Nodepool.CapacityType', null, global);
|
|
181
193
|
goog.exportSymbol('proto.clarifai.api.Operation', null, global);
|
|
182
194
|
goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
|
|
183
195
|
goog.exportSymbol('proto.clarifai.api.Output', null, global);
|
|
@@ -193,6 +205,7 @@ goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
|
|
|
193
205
|
goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
|
|
194
206
|
goog.exportSymbol('proto.clarifai.api.PrecisionRecallCurve', null, global);
|
|
195
207
|
goog.exportSymbol('proto.clarifai.api.PretrainedModelConfig', null, global);
|
|
208
|
+
goog.exportSymbol('proto.clarifai.api.ProcessingInfo', null, global);
|
|
196
209
|
goog.exportSymbol('proto.clarifai.api.Progress', null, global);
|
|
197
210
|
goog.exportSymbol('proto.clarifai.api.Query', null, global);
|
|
198
211
|
goog.exportSymbol('proto.clarifai.api.ROC', null, global);
|
|
@@ -201,6 +214,9 @@ goog.exportSymbol('proto.clarifai.api.Region', null, global);
|
|
|
201
214
|
goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
|
|
202
215
|
goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
|
|
203
216
|
goog.exportSymbol('proto.clarifai.api.Runner', null, global);
|
|
217
|
+
goog.exportSymbol('proto.clarifai.api.Runner.ObjectCase', null, global);
|
|
218
|
+
goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
|
|
219
|
+
goog.exportSymbol('proto.clarifai.api.RunnerSelector', null, global);
|
|
204
220
|
goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
|
|
205
221
|
goog.exportSymbol('proto.clarifai.api.Search', null, global);
|
|
206
222
|
goog.exportSymbol('proto.clarifai.api.Search.Metric', null, global);
|
|
@@ -374,6 +390,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
374
390
|
*/
|
|
375
391
|
proto.clarifai.api.AppQuery.displayName = 'proto.clarifai.api.AppQuery';
|
|
376
392
|
}
|
|
393
|
+
/**
|
|
394
|
+
* Generated by JsPbCodeGenerator.
|
|
395
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
396
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
397
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
398
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
399
|
+
* valid.
|
|
400
|
+
* @extends {jspb.Message}
|
|
401
|
+
* @constructor
|
|
402
|
+
*/
|
|
403
|
+
proto.clarifai.api.AppResourceCounts = function (opt_data) {
|
|
404
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
405
|
+
};
|
|
406
|
+
goog.inherits(proto.clarifai.api.AppResourceCounts, jspb.Message);
|
|
407
|
+
if (goog.DEBUG && !COMPILED) {
|
|
408
|
+
/**
|
|
409
|
+
* @public
|
|
410
|
+
* @override
|
|
411
|
+
*/
|
|
412
|
+
proto.clarifai.api.AppResourceCounts.displayName = 'proto.clarifai.api.AppResourceCounts';
|
|
413
|
+
}
|
|
377
414
|
/**
|
|
378
415
|
* Generated by JsPbCodeGenerator.
|
|
379
416
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1991,6 +2028,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1991
2028
|
*/
|
|
1992
2029
|
proto.clarifai.api.ModelVersion.displayName = 'proto.clarifai.api.ModelVersion';
|
|
1993
2030
|
}
|
|
2031
|
+
/**
|
|
2032
|
+
* Generated by JsPbCodeGenerator.
|
|
2033
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2034
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2035
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2036
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2037
|
+
* valid.
|
|
2038
|
+
* @extends {jspb.Message}
|
|
2039
|
+
* @constructor
|
|
2040
|
+
*/
|
|
2041
|
+
proto.clarifai.api.BuildInfo = function (opt_data) {
|
|
2042
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2043
|
+
};
|
|
2044
|
+
goog.inherits(proto.clarifai.api.BuildInfo, jspb.Message);
|
|
2045
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2046
|
+
/**
|
|
2047
|
+
* @public
|
|
2048
|
+
* @override
|
|
2049
|
+
*/
|
|
2050
|
+
proto.clarifai.api.BuildInfo.displayName = 'proto.clarifai.api.BuildInfo';
|
|
2051
|
+
}
|
|
1994
2052
|
/**
|
|
1995
2053
|
* Generated by JsPbCodeGenerator.
|
|
1996
2054
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4438,7 +4496,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4438
4496
|
* @constructor
|
|
4439
4497
|
*/
|
|
4440
4498
|
proto.clarifai.api.Runner = function (opt_data) {
|
|
4441
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_,
|
|
4499
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, proto.clarifai.api.Runner.oneofGroups_);
|
|
4442
4500
|
};
|
|
4443
4501
|
goog.inherits(proto.clarifai.api.Runner, jspb.Message);
|
|
4444
4502
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -4448,6 +4506,153 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4448
4506
|
*/
|
|
4449
4507
|
proto.clarifai.api.Runner.displayName = 'proto.clarifai.api.Runner';
|
|
4450
4508
|
}
|
|
4509
|
+
/**
|
|
4510
|
+
* Generated by JsPbCodeGenerator.
|
|
4511
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4512
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4513
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4514
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4515
|
+
* valid.
|
|
4516
|
+
* @extends {jspb.Message}
|
|
4517
|
+
* @constructor
|
|
4518
|
+
*/
|
|
4519
|
+
proto.clarifai.api.Nodepool = function (opt_data) {
|
|
4520
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Nodepool.repeatedFields_, null);
|
|
4521
|
+
};
|
|
4522
|
+
goog.inherits(proto.clarifai.api.Nodepool, jspb.Message);
|
|
4523
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4524
|
+
/**
|
|
4525
|
+
* @public
|
|
4526
|
+
* @override
|
|
4527
|
+
*/
|
|
4528
|
+
proto.clarifai.api.Nodepool.displayName = 'proto.clarifai.api.Nodepool';
|
|
4529
|
+
}
|
|
4530
|
+
/**
|
|
4531
|
+
* Generated by JsPbCodeGenerator.
|
|
4532
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4533
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4534
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4535
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4536
|
+
* valid.
|
|
4537
|
+
* @extends {jspb.Message}
|
|
4538
|
+
* @constructor
|
|
4539
|
+
*/
|
|
4540
|
+
proto.clarifai.api.CloudRegion = function (opt_data) {
|
|
4541
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4542
|
+
};
|
|
4543
|
+
goog.inherits(proto.clarifai.api.CloudRegion, jspb.Message);
|
|
4544
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4545
|
+
/**
|
|
4546
|
+
* @public
|
|
4547
|
+
* @override
|
|
4548
|
+
*/
|
|
4549
|
+
proto.clarifai.api.CloudRegion.displayName = 'proto.clarifai.api.CloudRegion';
|
|
4550
|
+
}
|
|
4551
|
+
/**
|
|
4552
|
+
* Generated by JsPbCodeGenerator.
|
|
4553
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4554
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4555
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4556
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4557
|
+
* valid.
|
|
4558
|
+
* @extends {jspb.Message}
|
|
4559
|
+
* @constructor
|
|
4560
|
+
*/
|
|
4561
|
+
proto.clarifai.api.ComputeInfo = function (opt_data) {
|
|
4562
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ComputeInfo.repeatedFields_, null);
|
|
4563
|
+
};
|
|
4564
|
+
goog.inherits(proto.clarifai.api.ComputeInfo, jspb.Message);
|
|
4565
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4566
|
+
/**
|
|
4567
|
+
* @public
|
|
4568
|
+
* @override
|
|
4569
|
+
*/
|
|
4570
|
+
proto.clarifai.api.ComputeInfo.displayName = 'proto.clarifai.api.ComputeInfo';
|
|
4571
|
+
}
|
|
4572
|
+
/**
|
|
4573
|
+
* Generated by JsPbCodeGenerator.
|
|
4574
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4575
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4576
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4577
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4578
|
+
* valid.
|
|
4579
|
+
* @extends {jspb.Message}
|
|
4580
|
+
* @constructor
|
|
4581
|
+
*/
|
|
4582
|
+
proto.clarifai.api.AutoscaleConfig = function (opt_data) {
|
|
4583
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4584
|
+
};
|
|
4585
|
+
goog.inherits(proto.clarifai.api.AutoscaleConfig, jspb.Message);
|
|
4586
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4587
|
+
/**
|
|
4588
|
+
* @public
|
|
4589
|
+
* @override
|
|
4590
|
+
*/
|
|
4591
|
+
proto.clarifai.api.AutoscaleConfig.displayName = 'proto.clarifai.api.AutoscaleConfig';
|
|
4592
|
+
}
|
|
4593
|
+
/**
|
|
4594
|
+
* Generated by JsPbCodeGenerator.
|
|
4595
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4596
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4597
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4598
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4599
|
+
* valid.
|
|
4600
|
+
* @extends {jspb.Message}
|
|
4601
|
+
* @constructor
|
|
4602
|
+
*/
|
|
4603
|
+
proto.clarifai.api.Deployment = function (opt_data) {
|
|
4604
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Deployment.repeatedFields_, proto.clarifai.api.Deployment.oneofGroups_);
|
|
4605
|
+
};
|
|
4606
|
+
goog.inherits(proto.clarifai.api.Deployment, jspb.Message);
|
|
4607
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4608
|
+
/**
|
|
4609
|
+
* @public
|
|
4610
|
+
* @override
|
|
4611
|
+
*/
|
|
4612
|
+
proto.clarifai.api.Deployment.displayName = 'proto.clarifai.api.Deployment';
|
|
4613
|
+
}
|
|
4614
|
+
/**
|
|
4615
|
+
* Generated by JsPbCodeGenerator.
|
|
4616
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4617
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4618
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4619
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4620
|
+
* valid.
|
|
4621
|
+
* @extends {jspb.Message}
|
|
4622
|
+
* @constructor
|
|
4623
|
+
*/
|
|
4624
|
+
proto.clarifai.api.RunnerSelector = function (opt_data) {
|
|
4625
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4626
|
+
};
|
|
4627
|
+
goog.inherits(proto.clarifai.api.RunnerSelector, jspb.Message);
|
|
4628
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4629
|
+
/**
|
|
4630
|
+
* @public
|
|
4631
|
+
* @override
|
|
4632
|
+
*/
|
|
4633
|
+
proto.clarifai.api.RunnerSelector.displayName = 'proto.clarifai.api.RunnerSelector';
|
|
4634
|
+
}
|
|
4635
|
+
/**
|
|
4636
|
+
* Generated by JsPbCodeGenerator.
|
|
4637
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4638
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4639
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4640
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4641
|
+
* valid.
|
|
4642
|
+
* @extends {jspb.Message}
|
|
4643
|
+
* @constructor
|
|
4644
|
+
*/
|
|
4645
|
+
proto.clarifai.api.ProcessingInfo = function (opt_data) {
|
|
4646
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4647
|
+
};
|
|
4648
|
+
goog.inherits(proto.clarifai.api.ProcessingInfo, jspb.Message);
|
|
4649
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4650
|
+
/**
|
|
4651
|
+
* @public
|
|
4652
|
+
* @override
|
|
4653
|
+
*/
|
|
4654
|
+
proto.clarifai.api.ProcessingInfo.displayName = 'proto.clarifai.api.ProcessingInfo';
|
|
4655
|
+
}
|
|
4451
4656
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4452
4657
|
/**
|
|
4453
4658
|
* Creates an object representation of this proto.
|
|
@@ -5880,7 +6085,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5880
6085
|
*/
|
|
5881
6086
|
proto.clarifai.api.AppExtraInfo.toObject = function (includeInstance, msg) {
|
|
5882
6087
|
var f, obj = {
|
|
5883
|
-
searchRevisionMarker: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
6088
|
+
searchRevisionMarker: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6089
|
+
counts: (f = msg.getCounts()) && proto.clarifai.api.AppResourceCounts.toObject(includeInstance, f)
|
|
5884
6090
|
};
|
|
5885
6091
|
if (includeInstance) {
|
|
5886
6092
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5916,6 +6122,11 @@ proto.clarifai.api.AppExtraInfo.deserializeBinaryFromReader = function (msg, rea
|
|
|
5916
6122
|
var value = /** @type {string} */ (reader.readString());
|
|
5917
6123
|
msg.setSearchRevisionMarker(value);
|
|
5918
6124
|
break;
|
|
6125
|
+
case 2:
|
|
6126
|
+
var value = new proto.clarifai.api.AppResourceCounts;
|
|
6127
|
+
reader.readMessage(value, proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader);
|
|
6128
|
+
msg.setCounts(value);
|
|
6129
|
+
break;
|
|
5919
6130
|
default:
|
|
5920
6131
|
reader.skipField();
|
|
5921
6132
|
break;
|
|
@@ -5945,6 +6156,10 @@ proto.clarifai.api.AppExtraInfo.serializeBinaryToWriter = function (message, wri
|
|
|
5945
6156
|
if (f.length > 0) {
|
|
5946
6157
|
writer.writeString(1, f);
|
|
5947
6158
|
}
|
|
6159
|
+
f = message.getCounts();
|
|
6160
|
+
if (f != null) {
|
|
6161
|
+
writer.writeMessage(2, f, proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter);
|
|
6162
|
+
}
|
|
5948
6163
|
};
|
|
5949
6164
|
/**
|
|
5950
6165
|
* optional string search_revision_marker = 1;
|
|
@@ -5960,6 +6175,34 @@ proto.clarifai.api.AppExtraInfo.prototype.getSearchRevisionMarker = function ()
|
|
|
5960
6175
|
proto.clarifai.api.AppExtraInfo.prototype.setSearchRevisionMarker = function (value) {
|
|
5961
6176
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5962
6177
|
};
|
|
6178
|
+
/**
|
|
6179
|
+
* optional AppResourceCounts counts = 2;
|
|
6180
|
+
* @return {?proto.clarifai.api.AppResourceCounts}
|
|
6181
|
+
*/
|
|
6182
|
+
proto.clarifai.api.AppExtraInfo.prototype.getCounts = function () {
|
|
6183
|
+
return /** @type{?proto.clarifai.api.AppResourceCounts} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.AppResourceCounts, 2));
|
|
6184
|
+
};
|
|
6185
|
+
/**
|
|
6186
|
+
* @param {?proto.clarifai.api.AppResourceCounts|undefined} value
|
|
6187
|
+
* @return {!proto.clarifai.api.AppExtraInfo} returns this
|
|
6188
|
+
*/
|
|
6189
|
+
proto.clarifai.api.AppExtraInfo.prototype.setCounts = function (value) {
|
|
6190
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6191
|
+
};
|
|
6192
|
+
/**
|
|
6193
|
+
* Clears the message field making it undefined.
|
|
6194
|
+
* @return {!proto.clarifai.api.AppExtraInfo} returns this
|
|
6195
|
+
*/
|
|
6196
|
+
proto.clarifai.api.AppExtraInfo.prototype.clearCounts = function () {
|
|
6197
|
+
return this.setCounts(undefined);
|
|
6198
|
+
};
|
|
6199
|
+
/**
|
|
6200
|
+
* Returns whether this field is set.
|
|
6201
|
+
* @return {boolean}
|
|
6202
|
+
*/
|
|
6203
|
+
proto.clarifai.api.AppExtraInfo.prototype.hasCounts = function () {
|
|
6204
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6205
|
+
};
|
|
5963
6206
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5964
6207
|
/**
|
|
5965
6208
|
* Creates an object representation of this proto.
|
|
@@ -6067,6 +6310,205 @@ proto.clarifai.api.AppQuery.prototype.getName = function () {
|
|
|
6067
6310
|
proto.clarifai.api.AppQuery.prototype.setName = function (value) {
|
|
6068
6311
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6069
6312
|
};
|
|
6313
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6314
|
+
/**
|
|
6315
|
+
* Creates an object representation of this proto.
|
|
6316
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6317
|
+
* Optional fields that are not set will be set to undefined.
|
|
6318
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6319
|
+
* For the list of reserved names please see:
|
|
6320
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6321
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6322
|
+
* JSPB instance for transitional soy proto support:
|
|
6323
|
+
* http://goto/soy-param-migration
|
|
6324
|
+
* @return {!Object}
|
|
6325
|
+
*/
|
|
6326
|
+
proto.clarifai.api.AppResourceCounts.prototype.toObject = function (opt_includeInstance) {
|
|
6327
|
+
return proto.clarifai.api.AppResourceCounts.toObject(opt_includeInstance, this);
|
|
6328
|
+
};
|
|
6329
|
+
/**
|
|
6330
|
+
* Static version of the {@see toObject} method.
|
|
6331
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6332
|
+
* the JSPB instance for transitional soy proto support:
|
|
6333
|
+
* http://goto/soy-param-migration
|
|
6334
|
+
* @param {!proto.clarifai.api.AppResourceCounts} msg The msg instance to transform.
|
|
6335
|
+
* @return {!Object}
|
|
6336
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6337
|
+
*/
|
|
6338
|
+
proto.clarifai.api.AppResourceCounts.toObject = function (includeInstance, msg) {
|
|
6339
|
+
var f, obj = {
|
|
6340
|
+
datasets: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
6341
|
+
models: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
6342
|
+
workflows: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
6343
|
+
modules: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
6344
|
+
inputs: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
6345
|
+
};
|
|
6346
|
+
if (includeInstance) {
|
|
6347
|
+
obj.$jspbMessageInstance = msg;
|
|
6348
|
+
}
|
|
6349
|
+
return obj;
|
|
6350
|
+
};
|
|
6351
|
+
}
|
|
6352
|
+
/**
|
|
6353
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6354
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6355
|
+
* @return {!proto.clarifai.api.AppResourceCounts}
|
|
6356
|
+
*/
|
|
6357
|
+
proto.clarifai.api.AppResourceCounts.deserializeBinary = function (bytes) {
|
|
6358
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6359
|
+
var msg = new proto.clarifai.api.AppResourceCounts;
|
|
6360
|
+
return proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader(msg, reader);
|
|
6361
|
+
};
|
|
6362
|
+
/**
|
|
6363
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6364
|
+
* given reader into the given message object.
|
|
6365
|
+
* @param {!proto.clarifai.api.AppResourceCounts} msg The message object to deserialize into.
|
|
6366
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6367
|
+
* @return {!proto.clarifai.api.AppResourceCounts}
|
|
6368
|
+
*/
|
|
6369
|
+
proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader = function (msg, reader) {
|
|
6370
|
+
while (reader.nextField()) {
|
|
6371
|
+
if (reader.isEndGroup()) {
|
|
6372
|
+
break;
|
|
6373
|
+
}
|
|
6374
|
+
var field = reader.getFieldNumber();
|
|
6375
|
+
switch (field) {
|
|
6376
|
+
case 1:
|
|
6377
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6378
|
+
msg.setDatasets(value);
|
|
6379
|
+
break;
|
|
6380
|
+
case 2:
|
|
6381
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6382
|
+
msg.setModels(value);
|
|
6383
|
+
break;
|
|
6384
|
+
case 3:
|
|
6385
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6386
|
+
msg.setWorkflows(value);
|
|
6387
|
+
break;
|
|
6388
|
+
case 4:
|
|
6389
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6390
|
+
msg.setModules(value);
|
|
6391
|
+
break;
|
|
6392
|
+
case 5:
|
|
6393
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6394
|
+
msg.setInputs(value);
|
|
6395
|
+
break;
|
|
6396
|
+
default:
|
|
6397
|
+
reader.skipField();
|
|
6398
|
+
break;
|
|
6399
|
+
}
|
|
6400
|
+
}
|
|
6401
|
+
return msg;
|
|
6402
|
+
};
|
|
6403
|
+
/**
|
|
6404
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6405
|
+
* @return {!Uint8Array}
|
|
6406
|
+
*/
|
|
6407
|
+
proto.clarifai.api.AppResourceCounts.prototype.serializeBinary = function () {
|
|
6408
|
+
var writer = new jspb.BinaryWriter();
|
|
6409
|
+
proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter(this, writer);
|
|
6410
|
+
return writer.getResultBuffer();
|
|
6411
|
+
};
|
|
6412
|
+
/**
|
|
6413
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6414
|
+
* format), writing to the given BinaryWriter.
|
|
6415
|
+
* @param {!proto.clarifai.api.AppResourceCounts} message
|
|
6416
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6417
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6418
|
+
*/
|
|
6419
|
+
proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter = function (message, writer) {
|
|
6420
|
+
var f = undefined;
|
|
6421
|
+
f = message.getDatasets();
|
|
6422
|
+
if (f !== 0) {
|
|
6423
|
+
writer.writeInt64(1, f);
|
|
6424
|
+
}
|
|
6425
|
+
f = message.getModels();
|
|
6426
|
+
if (f !== 0) {
|
|
6427
|
+
writer.writeInt64(2, f);
|
|
6428
|
+
}
|
|
6429
|
+
f = message.getWorkflows();
|
|
6430
|
+
if (f !== 0) {
|
|
6431
|
+
writer.writeInt64(3, f);
|
|
6432
|
+
}
|
|
6433
|
+
f = message.getModules();
|
|
6434
|
+
if (f !== 0) {
|
|
6435
|
+
writer.writeInt64(4, f);
|
|
6436
|
+
}
|
|
6437
|
+
f = message.getInputs();
|
|
6438
|
+
if (f !== 0) {
|
|
6439
|
+
writer.writeInt64(5, f);
|
|
6440
|
+
}
|
|
6441
|
+
};
|
|
6442
|
+
/**
|
|
6443
|
+
* optional int64 datasets = 1;
|
|
6444
|
+
* @return {number}
|
|
6445
|
+
*/
|
|
6446
|
+
proto.clarifai.api.AppResourceCounts.prototype.getDatasets = function () {
|
|
6447
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
6448
|
+
};
|
|
6449
|
+
/**
|
|
6450
|
+
* @param {number} value
|
|
6451
|
+
* @return {!proto.clarifai.api.AppResourceCounts} returns this
|
|
6452
|
+
*/
|
|
6453
|
+
proto.clarifai.api.AppResourceCounts.prototype.setDatasets = function (value) {
|
|
6454
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
6455
|
+
};
|
|
6456
|
+
/**
|
|
6457
|
+
* optional int64 models = 2;
|
|
6458
|
+
* @return {number}
|
|
6459
|
+
*/
|
|
6460
|
+
proto.clarifai.api.AppResourceCounts.prototype.getModels = function () {
|
|
6461
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
6462
|
+
};
|
|
6463
|
+
/**
|
|
6464
|
+
* @param {number} value
|
|
6465
|
+
* @return {!proto.clarifai.api.AppResourceCounts} returns this
|
|
6466
|
+
*/
|
|
6467
|
+
proto.clarifai.api.AppResourceCounts.prototype.setModels = function (value) {
|
|
6468
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
6469
|
+
};
|
|
6470
|
+
/**
|
|
6471
|
+
* optional int64 workflows = 3;
|
|
6472
|
+
* @return {number}
|
|
6473
|
+
*/
|
|
6474
|
+
proto.clarifai.api.AppResourceCounts.prototype.getWorkflows = function () {
|
|
6475
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
6476
|
+
};
|
|
6477
|
+
/**
|
|
6478
|
+
* @param {number} value
|
|
6479
|
+
* @return {!proto.clarifai.api.AppResourceCounts} returns this
|
|
6480
|
+
*/
|
|
6481
|
+
proto.clarifai.api.AppResourceCounts.prototype.setWorkflows = function (value) {
|
|
6482
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
6483
|
+
};
|
|
6484
|
+
/**
|
|
6485
|
+
* optional int64 modules = 4;
|
|
6486
|
+
* @return {number}
|
|
6487
|
+
*/
|
|
6488
|
+
proto.clarifai.api.AppResourceCounts.prototype.getModules = function () {
|
|
6489
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
6490
|
+
};
|
|
6491
|
+
/**
|
|
6492
|
+
* @param {number} value
|
|
6493
|
+
* @return {!proto.clarifai.api.AppResourceCounts} returns this
|
|
6494
|
+
*/
|
|
6495
|
+
proto.clarifai.api.AppResourceCounts.prototype.setModules = function (value) {
|
|
6496
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
6497
|
+
};
|
|
6498
|
+
/**
|
|
6499
|
+
* optional int64 inputs = 5;
|
|
6500
|
+
* @return {number}
|
|
6501
|
+
*/
|
|
6502
|
+
proto.clarifai.api.AppResourceCounts.prototype.getInputs = function () {
|
|
6503
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
6504
|
+
};
|
|
6505
|
+
/**
|
|
6506
|
+
* @param {number} value
|
|
6507
|
+
* @return {!proto.clarifai.api.AppResourceCounts} returns this
|
|
6508
|
+
*/
|
|
6509
|
+
proto.clarifai.api.AppResourceCounts.prototype.setInputs = function (value) {
|
|
6510
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
6511
|
+
};
|
|
6070
6512
|
/**
|
|
6071
6513
|
* List of repeated fields within this message type.
|
|
6072
6514
|
* @private {!Array<number>}
|
|
@@ -16209,7 +16651,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
16209
16651
|
exportInfo: (f = msg.getExportInfo()) && proto.clarifai.api.DatasetVersionExportInfo.toObject(includeInstance, f),
|
|
16210
16652
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
16211
16653
|
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
16212
|
-
embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f
|
|
16654
|
+
embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
|
|
16655
|
+
requestOrigin: jspb.Message.getFieldWithDefault(msg, 20, 0)
|
|
16213
16656
|
};
|
|
16214
16657
|
if (includeInstance) {
|
|
16215
16658
|
obj.$jspbMessageInstance = msg;
|
|
@@ -16316,6 +16759,10 @@ proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader = function (msg, r
|
|
|
16316
16759
|
var value = /** @type {string} */ (reader.readString());
|
|
16317
16760
|
msg.addEmbedModelVersionIds(value);
|
|
16318
16761
|
break;
|
|
16762
|
+
case 20:
|
|
16763
|
+
var value = /** @type {!proto.clarifai.api.DatasetVersionRequestOrigin} */ (reader.readEnum());
|
|
16764
|
+
msg.setRequestOrigin(value);
|
|
16765
|
+
break;
|
|
16319
16766
|
default:
|
|
16320
16767
|
reader.skipField();
|
|
16321
16768
|
break;
|
|
@@ -16405,6 +16852,10 @@ proto.clarifai.api.DatasetVersion.serializeBinaryToWriter = function (message, w
|
|
|
16405
16852
|
if (f.length > 0) {
|
|
16406
16853
|
writer.writeRepeatedString(14, f);
|
|
16407
16854
|
}
|
|
16855
|
+
f = message.getRequestOrigin();
|
|
16856
|
+
if (f !== 0.0) {
|
|
16857
|
+
writer.writeEnum(20, f);
|
|
16858
|
+
}
|
|
16408
16859
|
};
|
|
16409
16860
|
/**
|
|
16410
16861
|
* optional string id = 1;
|
|
@@ -16774,6 +17225,20 @@ proto.clarifai.api.DatasetVersion.prototype.addEmbedModelVersionIds = function (
|
|
|
16774
17225
|
proto.clarifai.api.DatasetVersion.prototype.clearEmbedModelVersionIdsList = function () {
|
|
16775
17226
|
return this.setEmbedModelVersionIdsList([]);
|
|
16776
17227
|
};
|
|
17228
|
+
/**
|
|
17229
|
+
* optional DatasetVersionRequestOrigin request_origin = 20;
|
|
17230
|
+
* @return {!proto.clarifai.api.DatasetVersionRequestOrigin}
|
|
17231
|
+
*/
|
|
17232
|
+
proto.clarifai.api.DatasetVersion.prototype.getRequestOrigin = function () {
|
|
17233
|
+
return /** @type {!proto.clarifai.api.DatasetVersionRequestOrigin} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
|
|
17234
|
+
};
|
|
17235
|
+
/**
|
|
17236
|
+
* @param {!proto.clarifai.api.DatasetVersionRequestOrigin} value
|
|
17237
|
+
* @return {!proto.clarifai.api.DatasetVersion} returns this
|
|
17238
|
+
*/
|
|
17239
|
+
proto.clarifai.api.DatasetVersion.prototype.setRequestOrigin = function (value) {
|
|
17240
|
+
return jspb.Message.setProto3EnumField(this, 20, value);
|
|
17241
|
+
};
|
|
16777
17242
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16778
17243
|
/**
|
|
16779
17244
|
* Creates an object representation of this proto.
|
|
@@ -24093,7 +24558,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
24093
24558
|
inputInfo: (f = msg.getInputInfo()) && proto.clarifai.api.InputInfo.toObject(includeInstance, f),
|
|
24094
24559
|
trainInfo: (f = msg.getTrainInfo()) && proto.clarifai.api.TrainInfo.toObject(includeInstance, f),
|
|
24095
24560
|
importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f),
|
|
24096
|
-
trainLog: jspb.Message.getFieldWithDefault(msg, 23, "")
|
|
24561
|
+
trainLog: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
|
24562
|
+
inferenceComputeInfo: (f = msg.getInferenceComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
|
|
24563
|
+
buildInfo: (f = msg.getBuildInfo()) && proto.clarifai.api.BuildInfo.toObject(includeInstance, f)
|
|
24097
24564
|
};
|
|
24098
24565
|
if (includeInstance) {
|
|
24099
24566
|
obj.$jspbMessageInstance = msg;
|
|
@@ -24217,6 +24684,16 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function (msg, rea
|
|
|
24217
24684
|
var value = /** @type {string} */ (reader.readString());
|
|
24218
24685
|
msg.setTrainLog(value);
|
|
24219
24686
|
break;
|
|
24687
|
+
case 24:
|
|
24688
|
+
var value = new proto.clarifai.api.ComputeInfo;
|
|
24689
|
+
reader.readMessage(value, proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
24690
|
+
msg.setInferenceComputeInfo(value);
|
|
24691
|
+
break;
|
|
24692
|
+
case 25:
|
|
24693
|
+
var value = new proto.clarifai.api.BuildInfo;
|
|
24694
|
+
reader.readMessage(value, proto.clarifai.api.BuildInfo.deserializeBinaryFromReader);
|
|
24695
|
+
msg.setBuildInfo(value);
|
|
24696
|
+
break;
|
|
24220
24697
|
default:
|
|
24221
24698
|
reader.skipField();
|
|
24222
24699
|
break;
|
|
@@ -24322,6 +24799,14 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function (message, wri
|
|
|
24322
24799
|
if (f.length > 0) {
|
|
24323
24800
|
writer.writeString(23, f);
|
|
24324
24801
|
}
|
|
24802
|
+
f = message.getInferenceComputeInfo();
|
|
24803
|
+
if (f != null) {
|
|
24804
|
+
writer.writeMessage(24, f, proto.clarifai.api.ComputeInfo.serializeBinaryToWriter);
|
|
24805
|
+
}
|
|
24806
|
+
f = message.getBuildInfo();
|
|
24807
|
+
if (f != null) {
|
|
24808
|
+
writer.writeMessage(25, f, proto.clarifai.api.BuildInfo.serializeBinaryToWriter);
|
|
24809
|
+
}
|
|
24325
24810
|
};
|
|
24326
24811
|
/**
|
|
24327
24812
|
* optional string id = 1;
|
|
@@ -24771,6 +25256,215 @@ proto.clarifai.api.ModelVersion.prototype.getTrainLog = function () {
|
|
|
24771
25256
|
proto.clarifai.api.ModelVersion.prototype.setTrainLog = function (value) {
|
|
24772
25257
|
return jspb.Message.setProto3StringField(this, 23, value);
|
|
24773
25258
|
};
|
|
25259
|
+
/**
|
|
25260
|
+
* optional ComputeInfo inference_compute_info = 24;
|
|
25261
|
+
* @return {?proto.clarifai.api.ComputeInfo}
|
|
25262
|
+
*/
|
|
25263
|
+
proto.clarifai.api.ModelVersion.prototype.getInferenceComputeInfo = function () {
|
|
25264
|
+
return /** @type{?proto.clarifai.api.ComputeInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 24));
|
|
25265
|
+
};
|
|
25266
|
+
/**
|
|
25267
|
+
* @param {?proto.clarifai.api.ComputeInfo|undefined} value
|
|
25268
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
25269
|
+
*/
|
|
25270
|
+
proto.clarifai.api.ModelVersion.prototype.setInferenceComputeInfo = function (value) {
|
|
25271
|
+
return jspb.Message.setWrapperField(this, 24, value);
|
|
25272
|
+
};
|
|
25273
|
+
/**
|
|
25274
|
+
* Clears the message field making it undefined.
|
|
25275
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
25276
|
+
*/
|
|
25277
|
+
proto.clarifai.api.ModelVersion.prototype.clearInferenceComputeInfo = function () {
|
|
25278
|
+
return this.setInferenceComputeInfo(undefined);
|
|
25279
|
+
};
|
|
25280
|
+
/**
|
|
25281
|
+
* Returns whether this field is set.
|
|
25282
|
+
* @return {boolean}
|
|
25283
|
+
*/
|
|
25284
|
+
proto.clarifai.api.ModelVersion.prototype.hasInferenceComputeInfo = function () {
|
|
25285
|
+
return jspb.Message.getField(this, 24) != null;
|
|
25286
|
+
};
|
|
25287
|
+
/**
|
|
25288
|
+
* optional BuildInfo build_info = 25;
|
|
25289
|
+
* @return {?proto.clarifai.api.BuildInfo}
|
|
25290
|
+
*/
|
|
25291
|
+
proto.clarifai.api.ModelVersion.prototype.getBuildInfo = function () {
|
|
25292
|
+
return /** @type{?proto.clarifai.api.BuildInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.BuildInfo, 25));
|
|
25293
|
+
};
|
|
25294
|
+
/**
|
|
25295
|
+
* @param {?proto.clarifai.api.BuildInfo|undefined} value
|
|
25296
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
25297
|
+
*/
|
|
25298
|
+
proto.clarifai.api.ModelVersion.prototype.setBuildInfo = function (value) {
|
|
25299
|
+
return jspb.Message.setWrapperField(this, 25, value);
|
|
25300
|
+
};
|
|
25301
|
+
/**
|
|
25302
|
+
* Clears the message field making it undefined.
|
|
25303
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
25304
|
+
*/
|
|
25305
|
+
proto.clarifai.api.ModelVersion.prototype.clearBuildInfo = function () {
|
|
25306
|
+
return this.setBuildInfo(undefined);
|
|
25307
|
+
};
|
|
25308
|
+
/**
|
|
25309
|
+
* Returns whether this field is set.
|
|
25310
|
+
* @return {boolean}
|
|
25311
|
+
*/
|
|
25312
|
+
proto.clarifai.api.ModelVersion.prototype.hasBuildInfo = function () {
|
|
25313
|
+
return jspb.Message.getField(this, 25) != null;
|
|
25314
|
+
};
|
|
25315
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
25316
|
+
/**
|
|
25317
|
+
* Creates an object representation of this proto.
|
|
25318
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
25319
|
+
* Optional fields that are not set will be set to undefined.
|
|
25320
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
25321
|
+
* For the list of reserved names please see:
|
|
25322
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
25323
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
25324
|
+
* JSPB instance for transitional soy proto support:
|
|
25325
|
+
* http://goto/soy-param-migration
|
|
25326
|
+
* @return {!Object}
|
|
25327
|
+
*/
|
|
25328
|
+
proto.clarifai.api.BuildInfo.prototype.toObject = function (opt_includeInstance) {
|
|
25329
|
+
return proto.clarifai.api.BuildInfo.toObject(opt_includeInstance, this);
|
|
25330
|
+
};
|
|
25331
|
+
/**
|
|
25332
|
+
* Static version of the {@see toObject} method.
|
|
25333
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
25334
|
+
* the JSPB instance for transitional soy proto support:
|
|
25335
|
+
* http://goto/soy-param-migration
|
|
25336
|
+
* @param {!proto.clarifai.api.BuildInfo} msg The msg instance to transform.
|
|
25337
|
+
* @return {!Object}
|
|
25338
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
25339
|
+
*/
|
|
25340
|
+
proto.clarifai.api.BuildInfo.toObject = function (includeInstance, msg) {
|
|
25341
|
+
var f, obj = {
|
|
25342
|
+
dockerImageName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
25343
|
+
dockerImageTag: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
25344
|
+
dockerImageDigest: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
25345
|
+
};
|
|
25346
|
+
if (includeInstance) {
|
|
25347
|
+
obj.$jspbMessageInstance = msg;
|
|
25348
|
+
}
|
|
25349
|
+
return obj;
|
|
25350
|
+
};
|
|
25351
|
+
}
|
|
25352
|
+
/**
|
|
25353
|
+
* Deserializes binary data (in protobuf wire format).
|
|
25354
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
25355
|
+
* @return {!proto.clarifai.api.BuildInfo}
|
|
25356
|
+
*/
|
|
25357
|
+
proto.clarifai.api.BuildInfo.deserializeBinary = function (bytes) {
|
|
25358
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
25359
|
+
var msg = new proto.clarifai.api.BuildInfo;
|
|
25360
|
+
return proto.clarifai.api.BuildInfo.deserializeBinaryFromReader(msg, reader);
|
|
25361
|
+
};
|
|
25362
|
+
/**
|
|
25363
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
25364
|
+
* given reader into the given message object.
|
|
25365
|
+
* @param {!proto.clarifai.api.BuildInfo} msg The message object to deserialize into.
|
|
25366
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
25367
|
+
* @return {!proto.clarifai.api.BuildInfo}
|
|
25368
|
+
*/
|
|
25369
|
+
proto.clarifai.api.BuildInfo.deserializeBinaryFromReader = function (msg, reader) {
|
|
25370
|
+
while (reader.nextField()) {
|
|
25371
|
+
if (reader.isEndGroup()) {
|
|
25372
|
+
break;
|
|
25373
|
+
}
|
|
25374
|
+
var field = reader.getFieldNumber();
|
|
25375
|
+
switch (field) {
|
|
25376
|
+
case 1:
|
|
25377
|
+
var value = /** @type {string} */ (reader.readString());
|
|
25378
|
+
msg.setDockerImageName(value);
|
|
25379
|
+
break;
|
|
25380
|
+
case 2:
|
|
25381
|
+
var value = /** @type {string} */ (reader.readString());
|
|
25382
|
+
msg.setDockerImageTag(value);
|
|
25383
|
+
break;
|
|
25384
|
+
case 3:
|
|
25385
|
+
var value = /** @type {string} */ (reader.readString());
|
|
25386
|
+
msg.setDockerImageDigest(value);
|
|
25387
|
+
break;
|
|
25388
|
+
default:
|
|
25389
|
+
reader.skipField();
|
|
25390
|
+
break;
|
|
25391
|
+
}
|
|
25392
|
+
}
|
|
25393
|
+
return msg;
|
|
25394
|
+
};
|
|
25395
|
+
/**
|
|
25396
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
25397
|
+
* @return {!Uint8Array}
|
|
25398
|
+
*/
|
|
25399
|
+
proto.clarifai.api.BuildInfo.prototype.serializeBinary = function () {
|
|
25400
|
+
var writer = new jspb.BinaryWriter();
|
|
25401
|
+
proto.clarifai.api.BuildInfo.serializeBinaryToWriter(this, writer);
|
|
25402
|
+
return writer.getResultBuffer();
|
|
25403
|
+
};
|
|
25404
|
+
/**
|
|
25405
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
25406
|
+
* format), writing to the given BinaryWriter.
|
|
25407
|
+
* @param {!proto.clarifai.api.BuildInfo} message
|
|
25408
|
+
* @param {!jspb.BinaryWriter} writer
|
|
25409
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
25410
|
+
*/
|
|
25411
|
+
proto.clarifai.api.BuildInfo.serializeBinaryToWriter = function (message, writer) {
|
|
25412
|
+
var f = undefined;
|
|
25413
|
+
f = message.getDockerImageName();
|
|
25414
|
+
if (f.length > 0) {
|
|
25415
|
+
writer.writeString(1, f);
|
|
25416
|
+
}
|
|
25417
|
+
f = message.getDockerImageTag();
|
|
25418
|
+
if (f.length > 0) {
|
|
25419
|
+
writer.writeString(2, f);
|
|
25420
|
+
}
|
|
25421
|
+
f = message.getDockerImageDigest();
|
|
25422
|
+
if (f.length > 0) {
|
|
25423
|
+
writer.writeString(3, f);
|
|
25424
|
+
}
|
|
25425
|
+
};
|
|
25426
|
+
/**
|
|
25427
|
+
* optional string docker_image_name = 1;
|
|
25428
|
+
* @return {string}
|
|
25429
|
+
*/
|
|
25430
|
+
proto.clarifai.api.BuildInfo.prototype.getDockerImageName = function () {
|
|
25431
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
25432
|
+
};
|
|
25433
|
+
/**
|
|
25434
|
+
* @param {string} value
|
|
25435
|
+
* @return {!proto.clarifai.api.BuildInfo} returns this
|
|
25436
|
+
*/
|
|
25437
|
+
proto.clarifai.api.BuildInfo.prototype.setDockerImageName = function (value) {
|
|
25438
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
25439
|
+
};
|
|
25440
|
+
/**
|
|
25441
|
+
* optional string docker_image_tag = 2;
|
|
25442
|
+
* @return {string}
|
|
25443
|
+
*/
|
|
25444
|
+
proto.clarifai.api.BuildInfo.prototype.getDockerImageTag = function () {
|
|
25445
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
25446
|
+
};
|
|
25447
|
+
/**
|
|
25448
|
+
* @param {string} value
|
|
25449
|
+
* @return {!proto.clarifai.api.BuildInfo} returns this
|
|
25450
|
+
*/
|
|
25451
|
+
proto.clarifai.api.BuildInfo.prototype.setDockerImageTag = function (value) {
|
|
25452
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
25453
|
+
};
|
|
25454
|
+
/**
|
|
25455
|
+
* optional string docker_image_digest = 3;
|
|
25456
|
+
* @return {string}
|
|
25457
|
+
*/
|
|
25458
|
+
proto.clarifai.api.BuildInfo.prototype.getDockerImageDigest = function () {
|
|
25459
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
25460
|
+
};
|
|
25461
|
+
/**
|
|
25462
|
+
* @param {string} value
|
|
25463
|
+
* @return {!proto.clarifai.api.BuildInfo} returns this
|
|
25464
|
+
*/
|
|
25465
|
+
proto.clarifai.api.BuildInfo.prototype.setDockerImageDigest = function (value) {
|
|
25466
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
25467
|
+
};
|
|
24774
25468
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24775
25469
|
/**
|
|
24776
25470
|
* Creates an object representation of this proto.
|
|
@@ -27603,7 +28297,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
27603
28297
|
input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
|
|
27604
28298
|
predictedConceptsList: jspb.Message.toObjectList(msg.getPredictedConceptsList(), proto.clarifai.api.Concept.toObject, includeInstance),
|
|
27605
28299
|
groundTruthConceptsList: jspb.Message.toObjectList(msg.getGroundTruthConceptsList(), proto.clarifai.api.Concept.toObject, includeInstance),
|
|
27606
|
-
annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f)
|
|
28300
|
+
annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f),
|
|
28301
|
+
predictedAnnotation: (f = msg.getPredictedAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f),
|
|
28302
|
+
groundTruthAnnotation: (f = msg.getGroundTruthAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f)
|
|
27607
28303
|
};
|
|
27608
28304
|
if (includeInstance) {
|
|
27609
28305
|
obj.$jspbMessageInstance = msg;
|
|
@@ -27655,6 +28351,16 @@ proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader = function (msg,
|
|
|
27655
28351
|
reader.readMessage(value, proto.clarifai.api.Annotation.deserializeBinaryFromReader);
|
|
27656
28352
|
msg.setAnnotation(value);
|
|
27657
28353
|
break;
|
|
28354
|
+
case 7:
|
|
28355
|
+
var value = new proto.clarifai.api.Annotation;
|
|
28356
|
+
reader.readMessage(value, proto.clarifai.api.Annotation.deserializeBinaryFromReader);
|
|
28357
|
+
msg.setPredictedAnnotation(value);
|
|
28358
|
+
break;
|
|
28359
|
+
case 8:
|
|
28360
|
+
var value = new proto.clarifai.api.Annotation;
|
|
28361
|
+
reader.readMessage(value, proto.clarifai.api.Annotation.deserializeBinaryFromReader);
|
|
28362
|
+
msg.setGroundTruthAnnotation(value);
|
|
28363
|
+
break;
|
|
27658
28364
|
default:
|
|
27659
28365
|
reader.skipField();
|
|
27660
28366
|
break;
|
|
@@ -27696,6 +28402,14 @@ proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter = function (message,
|
|
|
27696
28402
|
if (f != null) {
|
|
27697
28403
|
writer.writeMessage(5, f, proto.clarifai.api.Annotation.serializeBinaryToWriter);
|
|
27698
28404
|
}
|
|
28405
|
+
f = message.getPredictedAnnotation();
|
|
28406
|
+
if (f != null) {
|
|
28407
|
+
writer.writeMessage(7, f, proto.clarifai.api.Annotation.serializeBinaryToWriter);
|
|
28408
|
+
}
|
|
28409
|
+
f = message.getGroundTruthAnnotation();
|
|
28410
|
+
if (f != null) {
|
|
28411
|
+
writer.writeMessage(8, f, proto.clarifai.api.Annotation.serializeBinaryToWriter);
|
|
28412
|
+
}
|
|
27699
28413
|
};
|
|
27700
28414
|
/**
|
|
27701
28415
|
* optional Input input = 6;
|
|
@@ -27811,6 +28525,62 @@ proto.clarifai.api.EvalTestSetEntry.prototype.clearAnnotation = function () {
|
|
|
27811
28525
|
proto.clarifai.api.EvalTestSetEntry.prototype.hasAnnotation = function () {
|
|
27812
28526
|
return jspb.Message.getField(this, 5) != null;
|
|
27813
28527
|
};
|
|
28528
|
+
/**
|
|
28529
|
+
* optional Annotation predicted_annotation = 7;
|
|
28530
|
+
* @return {?proto.clarifai.api.Annotation}
|
|
28531
|
+
*/
|
|
28532
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.getPredictedAnnotation = function () {
|
|
28533
|
+
return /** @type{?proto.clarifai.api.Annotation} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 7));
|
|
28534
|
+
};
|
|
28535
|
+
/**
|
|
28536
|
+
* @param {?proto.clarifai.api.Annotation|undefined} value
|
|
28537
|
+
* @return {!proto.clarifai.api.EvalTestSetEntry} returns this
|
|
28538
|
+
*/
|
|
28539
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.setPredictedAnnotation = function (value) {
|
|
28540
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
28541
|
+
};
|
|
28542
|
+
/**
|
|
28543
|
+
* Clears the message field making it undefined.
|
|
28544
|
+
* @return {!proto.clarifai.api.EvalTestSetEntry} returns this
|
|
28545
|
+
*/
|
|
28546
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.clearPredictedAnnotation = function () {
|
|
28547
|
+
return this.setPredictedAnnotation(undefined);
|
|
28548
|
+
};
|
|
28549
|
+
/**
|
|
28550
|
+
* Returns whether this field is set.
|
|
28551
|
+
* @return {boolean}
|
|
28552
|
+
*/
|
|
28553
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.hasPredictedAnnotation = function () {
|
|
28554
|
+
return jspb.Message.getField(this, 7) != null;
|
|
28555
|
+
};
|
|
28556
|
+
/**
|
|
28557
|
+
* optional Annotation ground_truth_annotation = 8;
|
|
28558
|
+
* @return {?proto.clarifai.api.Annotation}
|
|
28559
|
+
*/
|
|
28560
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.getGroundTruthAnnotation = function () {
|
|
28561
|
+
return /** @type{?proto.clarifai.api.Annotation} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 8));
|
|
28562
|
+
};
|
|
28563
|
+
/**
|
|
28564
|
+
* @param {?proto.clarifai.api.Annotation|undefined} value
|
|
28565
|
+
* @return {!proto.clarifai.api.EvalTestSetEntry} returns this
|
|
28566
|
+
*/
|
|
28567
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.setGroundTruthAnnotation = function (value) {
|
|
28568
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
28569
|
+
};
|
|
28570
|
+
/**
|
|
28571
|
+
* Clears the message field making it undefined.
|
|
28572
|
+
* @return {!proto.clarifai.api.EvalTestSetEntry} returns this
|
|
28573
|
+
*/
|
|
28574
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.clearGroundTruthAnnotation = function () {
|
|
28575
|
+
return this.setGroundTruthAnnotation(undefined);
|
|
28576
|
+
};
|
|
28577
|
+
/**
|
|
28578
|
+
* Returns whether this field is set.
|
|
28579
|
+
* @return {boolean}
|
|
28580
|
+
*/
|
|
28581
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.hasGroundTruthAnnotation = function () {
|
|
28582
|
+
return jspb.Message.getField(this, 8) != null;
|
|
28583
|
+
};
|
|
27814
28584
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27815
28585
|
/**
|
|
27816
28586
|
* Creates an object representation of this proto.
|
|
@@ -40442,7 +41212,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
40442
41212
|
awaitingReview: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
40443
41213
|
success: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
40444
41214
|
reviewDenied: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
40445
|
-
awaitingConsensusReview: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
41215
|
+
awaitingConsensusReview: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
41216
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f)
|
|
40446
41217
|
};
|
|
40447
41218
|
if (includeInstance) {
|
|
40448
41219
|
obj.$jspbMessageInstance = msg;
|
|
@@ -40498,6 +41269,11 @@ proto.clarifai.api.TaskStatusCountPerUser.deserializeBinaryFromReader = function
|
|
|
40498
41269
|
var value = /** @type {number} */ (reader.readUint32());
|
|
40499
41270
|
msg.setAwaitingConsensusReview(value);
|
|
40500
41271
|
break;
|
|
41272
|
+
case 7:
|
|
41273
|
+
var value = new proto.clarifai.api.Worker;
|
|
41274
|
+
reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
41275
|
+
msg.setWorker(value);
|
|
41276
|
+
break;
|
|
40501
41277
|
default:
|
|
40502
41278
|
reader.skipField();
|
|
40503
41279
|
break;
|
|
@@ -40547,6 +41323,10 @@ proto.clarifai.api.TaskStatusCountPerUser.serializeBinaryToWriter = function (me
|
|
|
40547
41323
|
if (f !== 0) {
|
|
40548
41324
|
writer.writeUint32(6, f);
|
|
40549
41325
|
}
|
|
41326
|
+
f = message.getWorker();
|
|
41327
|
+
if (f != null) {
|
|
41328
|
+
writer.writeMessage(7, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
|
|
41329
|
+
}
|
|
40550
41330
|
};
|
|
40551
41331
|
/**
|
|
40552
41332
|
* optional string user_id = 1;
|
|
@@ -40632,6 +41412,34 @@ proto.clarifai.api.TaskStatusCountPerUser.prototype.getAwaitingConsensusReview =
|
|
|
40632
41412
|
proto.clarifai.api.TaskStatusCountPerUser.prototype.setAwaitingConsensusReview = function (value) {
|
|
40633
41413
|
return jspb.Message.setProto3IntField(this, 6, value);
|
|
40634
41414
|
};
|
|
41415
|
+
/**
|
|
41416
|
+
* optional Worker worker = 7;
|
|
41417
|
+
* @return {?proto.clarifai.api.Worker}
|
|
41418
|
+
*/
|
|
41419
|
+
proto.clarifai.api.TaskStatusCountPerUser.prototype.getWorker = function () {
|
|
41420
|
+
return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 7));
|
|
41421
|
+
};
|
|
41422
|
+
/**
|
|
41423
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
41424
|
+
* @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this
|
|
41425
|
+
*/
|
|
41426
|
+
proto.clarifai.api.TaskStatusCountPerUser.prototype.setWorker = function (value) {
|
|
41427
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
41428
|
+
};
|
|
41429
|
+
/**
|
|
41430
|
+
* Clears the message field making it undefined.
|
|
41431
|
+
* @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this
|
|
41432
|
+
*/
|
|
41433
|
+
proto.clarifai.api.TaskStatusCountPerUser.prototype.clearWorker = function () {
|
|
41434
|
+
return this.setWorker(undefined);
|
|
41435
|
+
};
|
|
41436
|
+
/**
|
|
41437
|
+
* Returns whether this field is set.
|
|
41438
|
+
* @return {boolean}
|
|
41439
|
+
*/
|
|
41440
|
+
proto.clarifai.api.TaskStatusCountPerUser.prototype.hasWorker = function () {
|
|
41441
|
+
return jspb.Message.getField(this, 7) != null;
|
|
41442
|
+
};
|
|
40635
41443
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40636
41444
|
/**
|
|
40637
41445
|
* Creates an object representation of this proto.
|
|
@@ -51432,6 +52240,29 @@ proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function (value) {
|
|
|
51432
52240
|
* @const
|
|
51433
52241
|
*/
|
|
51434
52242
|
proto.clarifai.api.Runner.repeatedFields_ = [7];
|
|
52243
|
+
/**
|
|
52244
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
52245
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
52246
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
52247
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
52248
|
+
* @private {!Array<!Array<number>>}
|
|
52249
|
+
* @const
|
|
52250
|
+
*/
|
|
52251
|
+
proto.clarifai.api.Runner.oneofGroups_ = [[9, 10]];
|
|
52252
|
+
/**
|
|
52253
|
+
* @enum {number}
|
|
52254
|
+
*/
|
|
52255
|
+
proto.clarifai.api.Runner.ObjectCase = {
|
|
52256
|
+
OBJECT_NOT_SET: 0,
|
|
52257
|
+
MODEL: 9,
|
|
52258
|
+
WORKFLOW: 10
|
|
52259
|
+
};
|
|
52260
|
+
/**
|
|
52261
|
+
* @return {proto.clarifai.api.Runner.ObjectCase}
|
|
52262
|
+
*/
|
|
52263
|
+
proto.clarifai.api.Runner.prototype.getObjectCase = function () {
|
|
52264
|
+
return /** @type {proto.clarifai.api.Runner.ObjectCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.Runner.oneofGroups_[0]));
|
|
52265
|
+
};
|
|
51435
52266
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
51436
52267
|
/**
|
|
51437
52268
|
* Creates an object representation of this proto.
|
|
@@ -51465,7 +52296,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
51465
52296
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
51466
52297
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
51467
52298
|
userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
51468
|
-
labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
|
|
52299
|
+
labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
52300
|
+
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
52301
|
+
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
52302
|
+
nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
|
|
52303
|
+
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
|
|
51469
52304
|
};
|
|
51470
52305
|
if (includeInstance) {
|
|
51471
52306
|
obj.$jspbMessageInstance = msg;
|
|
@@ -51528,6 +52363,26 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
51528
52363
|
var value = /** @type {string} */ (reader.readString());
|
|
51529
52364
|
msg.addLabels(value);
|
|
51530
52365
|
break;
|
|
52366
|
+
case 9:
|
|
52367
|
+
var value = new proto.clarifai.api.Model;
|
|
52368
|
+
reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
52369
|
+
msg.setModel(value);
|
|
52370
|
+
break;
|
|
52371
|
+
case 10:
|
|
52372
|
+
var value = new proto.clarifai.api.Workflow;
|
|
52373
|
+
reader.readMessage(value, proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
52374
|
+
msg.setWorkflow(value);
|
|
52375
|
+
break;
|
|
52376
|
+
case 12:
|
|
52377
|
+
var value = new proto.clarifai.api.Nodepool;
|
|
52378
|
+
reader.readMessage(value, proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
52379
|
+
msg.setNodepool(value);
|
|
52380
|
+
break;
|
|
52381
|
+
case 13:
|
|
52382
|
+
var value = new proto.clarifai.api.ComputeInfo;
|
|
52383
|
+
reader.readMessage(value, proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
52384
|
+
msg.setComputeInfo(value);
|
|
52385
|
+
break;
|
|
51531
52386
|
default:
|
|
51532
52387
|
reader.skipField();
|
|
51533
52388
|
break;
|
|
@@ -51581,6 +52436,22 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function (message, writer) {
|
|
|
51581
52436
|
if (f.length > 0) {
|
|
51582
52437
|
writer.writeRepeatedString(7, f);
|
|
51583
52438
|
}
|
|
52439
|
+
f = message.getModel();
|
|
52440
|
+
if (f != null) {
|
|
52441
|
+
writer.writeMessage(9, f, proto.clarifai.api.Model.serializeBinaryToWriter);
|
|
52442
|
+
}
|
|
52443
|
+
f = message.getWorkflow();
|
|
52444
|
+
if (f != null) {
|
|
52445
|
+
writer.writeMessage(10, f, proto.clarifai.api.Workflow.serializeBinaryToWriter);
|
|
52446
|
+
}
|
|
52447
|
+
f = message.getNodepool();
|
|
52448
|
+
if (f != null) {
|
|
52449
|
+
writer.writeMessage(12, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
|
|
52450
|
+
}
|
|
52451
|
+
f = message.getComputeInfo();
|
|
52452
|
+
if (f != null) {
|
|
52453
|
+
writer.writeMessage(13, f, proto.clarifai.api.ComputeInfo.serializeBinaryToWriter);
|
|
52454
|
+
}
|
|
51584
52455
|
};
|
|
51585
52456
|
/**
|
|
51586
52457
|
* optional string id = 1;
|
|
@@ -51738,159 +52609,1895 @@ proto.clarifai.api.Runner.prototype.clearLabelsList = function () {
|
|
|
51738
52609
|
return this.setLabelsList([]);
|
|
51739
52610
|
};
|
|
51740
52611
|
/**
|
|
51741
|
-
*
|
|
52612
|
+
* optional Model model = 9;
|
|
52613
|
+
* @return {?proto.clarifai.api.Model}
|
|
51742
52614
|
*/
|
|
51743
|
-
proto.clarifai.api.
|
|
51744
|
-
|
|
51745
|
-
CLASSIFICATION: 1,
|
|
51746
|
-
DETECTION: 2
|
|
52615
|
+
proto.clarifai.api.Runner.prototype.getModel = function () {
|
|
52616
|
+
return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 9));
|
|
51747
52617
|
};
|
|
51748
52618
|
/**
|
|
51749
|
-
* @
|
|
52619
|
+
* @param {?proto.clarifai.api.Model|undefined} value
|
|
52620
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
52621
|
+
*/
|
|
52622
|
+
proto.clarifai.api.Runner.prototype.setModel = function (value) {
|
|
52623
|
+
return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.Runner.oneofGroups_[0], value);
|
|
52624
|
+
};
|
|
52625
|
+
/**
|
|
52626
|
+
* Clears the message field making it undefined.
|
|
52627
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
51750
52628
|
*/
|
|
51751
|
-
proto.clarifai.api.
|
|
51752
|
-
|
|
51753
|
-
INPUT_TYPE: 2,
|
|
51754
|
-
CONCEPT_ID: 10,
|
|
51755
|
-
CONCEPTS_COUNT: 11,
|
|
51756
|
-
BOUNDING_BOXES_COUNT: 20,
|
|
51757
|
-
POLYGONS_COUNT: 21,
|
|
51758
|
-
POINTS_COUNT: 22,
|
|
51759
|
-
MASKS_COUNT: 23,
|
|
51760
|
-
PIXELS_COUNT: 30,
|
|
51761
|
-
ASPECT_RATIO: 31
|
|
52629
|
+
proto.clarifai.api.Runner.prototype.clearModel = function () {
|
|
52630
|
+
return this.setModel(undefined);
|
|
51762
52631
|
};
|
|
51763
52632
|
/**
|
|
51764
|
-
*
|
|
52633
|
+
* Returns whether this field is set.
|
|
52634
|
+
* @return {boolean}
|
|
51765
52635
|
*/
|
|
51766
|
-
proto.clarifai.api.
|
|
51767
|
-
|
|
51768
|
-
CLARIFAI_DATA_PROTOBUF: 1,
|
|
51769
|
-
CLARIFAI_DATA_JSON: 3,
|
|
51770
|
-
COCO: 2
|
|
52636
|
+
proto.clarifai.api.Runner.prototype.hasModel = function () {
|
|
52637
|
+
return jspb.Message.getField(this, 9) != null;
|
|
51771
52638
|
};
|
|
51772
52639
|
/**
|
|
51773
|
-
*
|
|
52640
|
+
* optional Workflow workflow = 10;
|
|
52641
|
+
* @return {?proto.clarifai.api.Workflow}
|
|
51774
52642
|
*/
|
|
51775
|
-
proto.clarifai.api.
|
|
51776
|
-
|
|
51777
|
-
DELAY: 1,
|
|
51778
|
-
EXPIRY: 2
|
|
52643
|
+
proto.clarifai.api.Runner.prototype.getWorkflow = function () {
|
|
52644
|
+
return /** @type{?proto.clarifai.api.Workflow} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 10));
|
|
51779
52645
|
};
|
|
51780
52646
|
/**
|
|
51781
|
-
* @
|
|
52647
|
+
* @param {?proto.clarifai.api.Workflow|undefined} value
|
|
52648
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
52649
|
+
*/
|
|
52650
|
+
proto.clarifai.api.Runner.prototype.setWorkflow = function (value) {
|
|
52651
|
+
return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.Runner.oneofGroups_[0], value);
|
|
52652
|
+
};
|
|
52653
|
+
/**
|
|
52654
|
+
* Clears the message field making it undefined.
|
|
52655
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
51782
52656
|
*/
|
|
51783
|
-
proto.clarifai.api.
|
|
51784
|
-
|
|
51785
|
-
PREDICT: 1,
|
|
51786
|
-
TRAIN: 2,
|
|
51787
|
-
SEARCH: 3
|
|
52657
|
+
proto.clarifai.api.Runner.prototype.clearWorkflow = function () {
|
|
52658
|
+
return this.setWorkflow(undefined);
|
|
51788
52659
|
};
|
|
51789
52660
|
/**
|
|
51790
|
-
*
|
|
52661
|
+
* Returns whether this field is set.
|
|
52662
|
+
* @return {boolean}
|
|
51791
52663
|
*/
|
|
51792
|
-
proto.clarifai.api.
|
|
51793
|
-
|
|
51794
|
-
STRING: 1,
|
|
51795
|
-
UINT8: 2,
|
|
51796
|
-
INT32: 3,
|
|
51797
|
-
INT64: 4,
|
|
51798
|
-
FP32: 5
|
|
52664
|
+
proto.clarifai.api.Runner.prototype.hasWorkflow = function () {
|
|
52665
|
+
return jspb.Message.getField(this, 10) != null;
|
|
51799
52666
|
};
|
|
51800
52667
|
/**
|
|
51801
|
-
*
|
|
52668
|
+
* optional Nodepool nodepool = 12;
|
|
52669
|
+
* @return {?proto.clarifai.api.Nodepool}
|
|
51802
52670
|
*/
|
|
51803
|
-
proto.clarifai.api.
|
|
51804
|
-
|
|
51805
|
-
GREATER_THAN: 1,
|
|
51806
|
-
GREATER_THAN_OR_EQUAL: 2,
|
|
51807
|
-
LESS_THAN: 3,
|
|
51808
|
-
LESS_THAN_OR_EQUAL: 4,
|
|
51809
|
-
EQUAL: 5
|
|
52671
|
+
proto.clarifai.api.Runner.prototype.getNodepool = function () {
|
|
52672
|
+
return /** @type{?proto.clarifai.api.Nodepool} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 12));
|
|
51810
52673
|
};
|
|
51811
52674
|
/**
|
|
51812
|
-
* @
|
|
52675
|
+
* @param {?proto.clarifai.api.Nodepool|undefined} value
|
|
52676
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
52677
|
+
*/
|
|
52678
|
+
proto.clarifai.api.Runner.prototype.setNodepool = function (value) {
|
|
52679
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
52680
|
+
};
|
|
52681
|
+
/**
|
|
52682
|
+
* Clears the message field making it undefined.
|
|
52683
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
51813
52684
|
*/
|
|
51814
|
-
proto.clarifai.api.
|
|
51815
|
-
|
|
51816
|
-
CLASSIFICATION: 1,
|
|
51817
|
-
DETECTION: 2,
|
|
51818
|
-
SEGMENTATION: 3,
|
|
51819
|
-
CLUSTERING: 4,
|
|
51820
|
-
TRACKER: 5,
|
|
51821
|
-
GENERATION: 6
|
|
52685
|
+
proto.clarifai.api.Runner.prototype.clearNodepool = function () {
|
|
52686
|
+
return this.setNodepool(undefined);
|
|
51822
52687
|
};
|
|
51823
52688
|
/**
|
|
51824
|
-
*
|
|
52689
|
+
* Returns whether this field is set.
|
|
52690
|
+
* @return {boolean}
|
|
51825
52691
|
*/
|
|
51826
|
-
proto.clarifai.api.
|
|
51827
|
-
|
|
51828
|
-
ON_PREM_PREDICT: 1,
|
|
51829
|
-
ON_PREM_TRAIN: 2,
|
|
51830
|
-
ON_PREM_SEARCH: 3
|
|
52692
|
+
proto.clarifai.api.Runner.prototype.hasNodepool = function () {
|
|
52693
|
+
return jspb.Message.getField(this, 12) != null;
|
|
51831
52694
|
};
|
|
51832
52695
|
/**
|
|
51833
|
-
*
|
|
52696
|
+
* optional ComputeInfo compute_info = 13;
|
|
52697
|
+
* @return {?proto.clarifai.api.ComputeInfo}
|
|
51834
52698
|
*/
|
|
51835
|
-
proto.clarifai.api.
|
|
51836
|
-
|
|
51837
|
-
DAY: 1,
|
|
51838
|
-
MONTH: 2,
|
|
51839
|
-
YEAR: 3
|
|
52699
|
+
proto.clarifai.api.Runner.prototype.getComputeInfo = function () {
|
|
52700
|
+
return /** @type{?proto.clarifai.api.ComputeInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 13));
|
|
51840
52701
|
};
|
|
51841
52702
|
/**
|
|
51842
|
-
* @
|
|
52703
|
+
* @param {?proto.clarifai.api.ComputeInfo|undefined} value
|
|
52704
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
52705
|
+
*/
|
|
52706
|
+
proto.clarifai.api.Runner.prototype.setComputeInfo = function (value) {
|
|
52707
|
+
return jspb.Message.setWrapperField(this, 13, value);
|
|
52708
|
+
};
|
|
52709
|
+
/**
|
|
52710
|
+
* Clears the message field making it undefined.
|
|
52711
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
51843
52712
|
*/
|
|
51844
|
-
proto.clarifai.api.
|
|
51845
|
-
|
|
51846
|
-
TAG: 1,
|
|
51847
|
-
BOUNDING_BOX: 2,
|
|
51848
|
-
POLYGON: 4,
|
|
51849
|
-
POINT: 8,
|
|
51850
|
-
SPAN: 16,
|
|
51851
|
-
MASK: 32
|
|
52713
|
+
proto.clarifai.api.Runner.prototype.clearComputeInfo = function () {
|
|
52714
|
+
return this.setComputeInfo(undefined);
|
|
51852
52715
|
};
|
|
51853
52716
|
/**
|
|
51854
|
-
*
|
|
52717
|
+
* Returns whether this field is set.
|
|
52718
|
+
* @return {boolean}
|
|
51855
52719
|
*/
|
|
51856
|
-
proto.clarifai.api.
|
|
51857
|
-
|
|
51858
|
-
ORG: 1
|
|
52720
|
+
proto.clarifai.api.Runner.prototype.hasComputeInfo = function () {
|
|
52721
|
+
return jspb.Message.getField(this, 13) != null;
|
|
51859
52722
|
};
|
|
51860
52723
|
/**
|
|
51861
|
-
*
|
|
52724
|
+
* List of repeated fields within this message type.
|
|
52725
|
+
* @private {!Array<number>}
|
|
52726
|
+
* @const
|
|
51862
52727
|
*/
|
|
51863
|
-
proto.clarifai.api.
|
|
51864
|
-
|
|
51865
|
-
|
|
52728
|
+
proto.clarifai.api.Nodepool.repeatedFields_ = [4, 8];
|
|
52729
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
52730
|
+
/**
|
|
52731
|
+
* Creates an object representation of this proto.
|
|
52732
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
52733
|
+
* Optional fields that are not set will be set to undefined.
|
|
52734
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
52735
|
+
* For the list of reserved names please see:
|
|
52736
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
52737
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
52738
|
+
* JSPB instance for transitional soy proto support:
|
|
52739
|
+
* http://goto/soy-param-migration
|
|
52740
|
+
* @return {!Object}
|
|
52741
|
+
*/
|
|
52742
|
+
proto.clarifai.api.Nodepool.prototype.toObject = function (opt_includeInstance) {
|
|
52743
|
+
return proto.clarifai.api.Nodepool.toObject(opt_includeInstance, this);
|
|
52744
|
+
};
|
|
52745
|
+
/**
|
|
52746
|
+
* Static version of the {@see toObject} method.
|
|
52747
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
52748
|
+
* the JSPB instance for transitional soy proto support:
|
|
52749
|
+
* http://goto/soy-param-migration
|
|
52750
|
+
* @param {!proto.clarifai.api.Nodepool} msg The msg instance to transform.
|
|
52751
|
+
* @return {!Object}
|
|
52752
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
52753
|
+
*/
|
|
52754
|
+
proto.clarifai.api.Nodepool.toObject = function (includeInstance, msg) {
|
|
52755
|
+
var f, obj = {
|
|
52756
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
52757
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
52758
|
+
cloudRegion: (f = msg.getCloudRegion()) && proto.clarifai.api.CloudRegion.toObject(includeInstance, f),
|
|
52759
|
+
capacityTypesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
52760
|
+
instanceTypesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
|
|
52761
|
+
minInstances: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
52762
|
+
maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
|
52763
|
+
};
|
|
52764
|
+
if (includeInstance) {
|
|
52765
|
+
obj.$jspbMessageInstance = msg;
|
|
52766
|
+
}
|
|
52767
|
+
return obj;
|
|
52768
|
+
};
|
|
52769
|
+
}
|
|
52770
|
+
/**
|
|
52771
|
+
* Deserializes binary data (in protobuf wire format).
|
|
52772
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
52773
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
52774
|
+
*/
|
|
52775
|
+
proto.clarifai.api.Nodepool.deserializeBinary = function (bytes) {
|
|
52776
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
52777
|
+
var msg = new proto.clarifai.api.Nodepool;
|
|
52778
|
+
return proto.clarifai.api.Nodepool.deserializeBinaryFromReader(msg, reader);
|
|
51866
52779
|
};
|
|
51867
52780
|
/**
|
|
51868
|
-
*
|
|
52781
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
52782
|
+
* given reader into the given message object.
|
|
52783
|
+
* @param {!proto.clarifai.api.Nodepool} msg The message object to deserialize into.
|
|
52784
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
52785
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
51869
52786
|
*/
|
|
51870
|
-
proto.clarifai.api.
|
|
51871
|
-
|
|
51872
|
-
|
|
51873
|
-
|
|
51874
|
-
|
|
51875
|
-
|
|
51876
|
-
|
|
51877
|
-
|
|
52787
|
+
proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function (msg, reader) {
|
|
52788
|
+
while (reader.nextField()) {
|
|
52789
|
+
if (reader.isEndGroup()) {
|
|
52790
|
+
break;
|
|
52791
|
+
}
|
|
52792
|
+
var field = reader.getFieldNumber();
|
|
52793
|
+
switch (field) {
|
|
52794
|
+
case 1:
|
|
52795
|
+
var value = /** @type {string} */ (reader.readString());
|
|
52796
|
+
msg.setId(value);
|
|
52797
|
+
break;
|
|
52798
|
+
case 2:
|
|
52799
|
+
var value = /** @type {string} */ (reader.readString());
|
|
52800
|
+
msg.setUserId(value);
|
|
52801
|
+
break;
|
|
52802
|
+
case 3:
|
|
52803
|
+
var value = new proto.clarifai.api.CloudRegion;
|
|
52804
|
+
reader.readMessage(value, proto.clarifai.api.CloudRegion.deserializeBinaryFromReader);
|
|
52805
|
+
msg.setCloudRegion(value);
|
|
52806
|
+
break;
|
|
52807
|
+
case 4:
|
|
52808
|
+
var values = /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
52809
|
+
for (var i = 0; i < values.length; i++) {
|
|
52810
|
+
msg.addCapacityTypes(values[i]);
|
|
52811
|
+
}
|
|
52812
|
+
break;
|
|
52813
|
+
case 8:
|
|
52814
|
+
var value = /** @type {string} */ (reader.readString());
|
|
52815
|
+
msg.addInstanceTypes(value);
|
|
52816
|
+
break;
|
|
52817
|
+
case 9:
|
|
52818
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
52819
|
+
msg.setMinInstances(value);
|
|
52820
|
+
break;
|
|
52821
|
+
case 10:
|
|
52822
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
52823
|
+
msg.setMaxInstances(value);
|
|
52824
|
+
break;
|
|
52825
|
+
default:
|
|
52826
|
+
reader.skipField();
|
|
52827
|
+
break;
|
|
52828
|
+
}
|
|
52829
|
+
}
|
|
52830
|
+
return msg;
|
|
52831
|
+
};
|
|
52832
|
+
/**
|
|
52833
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
52834
|
+
* @return {!Uint8Array}
|
|
52835
|
+
*/
|
|
52836
|
+
proto.clarifai.api.Nodepool.prototype.serializeBinary = function () {
|
|
52837
|
+
var writer = new jspb.BinaryWriter();
|
|
52838
|
+
proto.clarifai.api.Nodepool.serializeBinaryToWriter(this, writer);
|
|
52839
|
+
return writer.getResultBuffer();
|
|
52840
|
+
};
|
|
52841
|
+
/**
|
|
52842
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
52843
|
+
* format), writing to the given BinaryWriter.
|
|
52844
|
+
* @param {!proto.clarifai.api.Nodepool} message
|
|
52845
|
+
* @param {!jspb.BinaryWriter} writer
|
|
52846
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
52847
|
+
*/
|
|
52848
|
+
proto.clarifai.api.Nodepool.serializeBinaryToWriter = function (message, writer) {
|
|
52849
|
+
var f = undefined;
|
|
52850
|
+
f = message.getId();
|
|
52851
|
+
if (f.length > 0) {
|
|
52852
|
+
writer.writeString(1, f);
|
|
52853
|
+
}
|
|
52854
|
+
f = message.getUserId();
|
|
52855
|
+
if (f.length > 0) {
|
|
52856
|
+
writer.writeString(2, f);
|
|
52857
|
+
}
|
|
52858
|
+
f = message.getCloudRegion();
|
|
52859
|
+
if (f != null) {
|
|
52860
|
+
writer.writeMessage(3, f, proto.clarifai.api.CloudRegion.serializeBinaryToWriter);
|
|
52861
|
+
}
|
|
52862
|
+
f = message.getCapacityTypesList();
|
|
52863
|
+
if (f.length > 0) {
|
|
52864
|
+
writer.writePackedEnum(4, f);
|
|
52865
|
+
}
|
|
52866
|
+
f = message.getInstanceTypesList();
|
|
52867
|
+
if (f.length > 0) {
|
|
52868
|
+
writer.writeRepeatedString(8, f);
|
|
52869
|
+
}
|
|
52870
|
+
f = message.getMinInstances();
|
|
52871
|
+
if (f !== 0) {
|
|
52872
|
+
writer.writeUint32(9, f);
|
|
52873
|
+
}
|
|
52874
|
+
f = message.getMaxInstances();
|
|
52875
|
+
if (f !== 0) {
|
|
52876
|
+
writer.writeUint32(10, f);
|
|
52877
|
+
}
|
|
51878
52878
|
};
|
|
51879
52879
|
/**
|
|
51880
52880
|
* @enum {number}
|
|
51881
52881
|
*/
|
|
51882
|
-
proto.clarifai.api.
|
|
51883
|
-
|
|
51884
|
-
|
|
51885
|
-
|
|
51886
|
-
|
|
52882
|
+
proto.clarifai.api.Nodepool.CapacityType = {
|
|
52883
|
+
UKNOWN_CAPACITY_TYPE: 0,
|
|
52884
|
+
ONDEMAND_TYPE: 1,
|
|
52885
|
+
SPOT_TYPE: 2
|
|
52886
|
+
};
|
|
52887
|
+
/**
|
|
52888
|
+
* optional string id = 1;
|
|
52889
|
+
* @return {string}
|
|
52890
|
+
*/
|
|
52891
|
+
proto.clarifai.api.Nodepool.prototype.getId = function () {
|
|
52892
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
52893
|
+
};
|
|
52894
|
+
/**
|
|
52895
|
+
* @param {string} value
|
|
52896
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52897
|
+
*/
|
|
52898
|
+
proto.clarifai.api.Nodepool.prototype.setId = function (value) {
|
|
52899
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
52900
|
+
};
|
|
52901
|
+
/**
|
|
52902
|
+
* optional string user_id = 2;
|
|
52903
|
+
* @return {string}
|
|
52904
|
+
*/
|
|
52905
|
+
proto.clarifai.api.Nodepool.prototype.getUserId = function () {
|
|
52906
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
52907
|
+
};
|
|
52908
|
+
/**
|
|
52909
|
+
* @param {string} value
|
|
52910
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52911
|
+
*/
|
|
52912
|
+
proto.clarifai.api.Nodepool.prototype.setUserId = function (value) {
|
|
52913
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
52914
|
+
};
|
|
52915
|
+
/**
|
|
52916
|
+
* optional CloudRegion cloud_region = 3;
|
|
52917
|
+
* @return {?proto.clarifai.api.CloudRegion}
|
|
52918
|
+
*/
|
|
52919
|
+
proto.clarifai.api.Nodepool.prototype.getCloudRegion = function () {
|
|
52920
|
+
return /** @type{?proto.clarifai.api.CloudRegion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.CloudRegion, 3));
|
|
52921
|
+
};
|
|
52922
|
+
/**
|
|
52923
|
+
* @param {?proto.clarifai.api.CloudRegion|undefined} value
|
|
52924
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52925
|
+
*/
|
|
52926
|
+
proto.clarifai.api.Nodepool.prototype.setCloudRegion = function (value) {
|
|
52927
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
52928
|
+
};
|
|
52929
|
+
/**
|
|
52930
|
+
* Clears the message field making it undefined.
|
|
52931
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52932
|
+
*/
|
|
52933
|
+
proto.clarifai.api.Nodepool.prototype.clearCloudRegion = function () {
|
|
52934
|
+
return this.setCloudRegion(undefined);
|
|
52935
|
+
};
|
|
52936
|
+
/**
|
|
52937
|
+
* Returns whether this field is set.
|
|
52938
|
+
* @return {boolean}
|
|
52939
|
+
*/
|
|
52940
|
+
proto.clarifai.api.Nodepool.prototype.hasCloudRegion = function () {
|
|
52941
|
+
return jspb.Message.getField(this, 3) != null;
|
|
52942
|
+
};
|
|
52943
|
+
/**
|
|
52944
|
+
* repeated CapacityType capacity_types = 4;
|
|
52945
|
+
* @return {!Array<!proto.clarifai.api.Nodepool.CapacityType>}
|
|
52946
|
+
*/
|
|
52947
|
+
proto.clarifai.api.Nodepool.prototype.getCapacityTypesList = function () {
|
|
52948
|
+
return /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
52949
|
+
};
|
|
52950
|
+
/**
|
|
52951
|
+
* @param {!Array<!proto.clarifai.api.Nodepool.CapacityType>} value
|
|
52952
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52953
|
+
*/
|
|
52954
|
+
proto.clarifai.api.Nodepool.prototype.setCapacityTypesList = function (value) {
|
|
52955
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
52956
|
+
};
|
|
52957
|
+
/**
|
|
52958
|
+
* @param {!proto.clarifai.api.Nodepool.CapacityType} value
|
|
52959
|
+
* @param {number=} opt_index
|
|
52960
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52961
|
+
*/
|
|
52962
|
+
proto.clarifai.api.Nodepool.prototype.addCapacityTypes = function (value, opt_index) {
|
|
52963
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
52964
|
+
};
|
|
52965
|
+
/**
|
|
52966
|
+
* Clears the list making it empty but non-null.
|
|
52967
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52968
|
+
*/
|
|
52969
|
+
proto.clarifai.api.Nodepool.prototype.clearCapacityTypesList = function () {
|
|
52970
|
+
return this.setCapacityTypesList([]);
|
|
52971
|
+
};
|
|
52972
|
+
/**
|
|
52973
|
+
* repeated string instance_types = 8;
|
|
52974
|
+
* @return {!Array<string>}
|
|
52975
|
+
*/
|
|
52976
|
+
proto.clarifai.api.Nodepool.prototype.getInstanceTypesList = function () {
|
|
52977
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
|
|
52978
|
+
};
|
|
52979
|
+
/**
|
|
52980
|
+
* @param {!Array<string>} value
|
|
52981
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52982
|
+
*/
|
|
52983
|
+
proto.clarifai.api.Nodepool.prototype.setInstanceTypesList = function (value) {
|
|
52984
|
+
return jspb.Message.setField(this, 8, value || []);
|
|
52985
|
+
};
|
|
52986
|
+
/**
|
|
52987
|
+
* @param {string} value
|
|
52988
|
+
* @param {number=} opt_index
|
|
52989
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52990
|
+
*/
|
|
52991
|
+
proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function (value, opt_index) {
|
|
52992
|
+
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
|
52993
|
+
};
|
|
52994
|
+
/**
|
|
52995
|
+
* Clears the list making it empty but non-null.
|
|
52996
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52997
|
+
*/
|
|
52998
|
+
proto.clarifai.api.Nodepool.prototype.clearInstanceTypesList = function () {
|
|
52999
|
+
return this.setInstanceTypesList([]);
|
|
53000
|
+
};
|
|
53001
|
+
/**
|
|
53002
|
+
* optional uint32 min_instances = 9;
|
|
53003
|
+
* @return {number}
|
|
53004
|
+
*/
|
|
53005
|
+
proto.clarifai.api.Nodepool.prototype.getMinInstances = function () {
|
|
53006
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
53007
|
+
};
|
|
53008
|
+
/**
|
|
53009
|
+
* @param {number} value
|
|
53010
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53011
|
+
*/
|
|
53012
|
+
proto.clarifai.api.Nodepool.prototype.setMinInstances = function (value) {
|
|
53013
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
53014
|
+
};
|
|
53015
|
+
/**
|
|
53016
|
+
* optional uint32 max_instances = 10;
|
|
53017
|
+
* @return {number}
|
|
53018
|
+
*/
|
|
53019
|
+
proto.clarifai.api.Nodepool.prototype.getMaxInstances = function () {
|
|
53020
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
53021
|
+
};
|
|
53022
|
+
/**
|
|
53023
|
+
* @param {number} value
|
|
53024
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53025
|
+
*/
|
|
53026
|
+
proto.clarifai.api.Nodepool.prototype.setMaxInstances = function (value) {
|
|
53027
|
+
return jspb.Message.setProto3IntField(this, 10, value);
|
|
53028
|
+
};
|
|
53029
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53030
|
+
/**
|
|
53031
|
+
* Creates an object representation of this proto.
|
|
53032
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53033
|
+
* Optional fields that are not set will be set to undefined.
|
|
53034
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53035
|
+
* For the list of reserved names please see:
|
|
53036
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
53037
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
53038
|
+
* JSPB instance for transitional soy proto support:
|
|
53039
|
+
* http://goto/soy-param-migration
|
|
53040
|
+
* @return {!Object}
|
|
53041
|
+
*/
|
|
53042
|
+
proto.clarifai.api.CloudRegion.prototype.toObject = function (opt_includeInstance) {
|
|
53043
|
+
return proto.clarifai.api.CloudRegion.toObject(opt_includeInstance, this);
|
|
53044
|
+
};
|
|
53045
|
+
/**
|
|
53046
|
+
* Static version of the {@see toObject} method.
|
|
53047
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53048
|
+
* the JSPB instance for transitional soy proto support:
|
|
53049
|
+
* http://goto/soy-param-migration
|
|
53050
|
+
* @param {!proto.clarifai.api.CloudRegion} msg The msg instance to transform.
|
|
53051
|
+
* @return {!Object}
|
|
53052
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53053
|
+
*/
|
|
53054
|
+
proto.clarifai.api.CloudRegion.toObject = function (includeInstance, msg) {
|
|
53055
|
+
var f, obj = {
|
|
53056
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
53057
|
+
cloud: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
53058
|
+
region: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
53059
|
+
};
|
|
53060
|
+
if (includeInstance) {
|
|
53061
|
+
obj.$jspbMessageInstance = msg;
|
|
53062
|
+
}
|
|
53063
|
+
return obj;
|
|
53064
|
+
};
|
|
53065
|
+
}
|
|
53066
|
+
/**
|
|
53067
|
+
* Deserializes binary data (in protobuf wire format).
|
|
53068
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53069
|
+
* @return {!proto.clarifai.api.CloudRegion}
|
|
53070
|
+
*/
|
|
53071
|
+
proto.clarifai.api.CloudRegion.deserializeBinary = function (bytes) {
|
|
53072
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
53073
|
+
var msg = new proto.clarifai.api.CloudRegion;
|
|
53074
|
+
return proto.clarifai.api.CloudRegion.deserializeBinaryFromReader(msg, reader);
|
|
53075
|
+
};
|
|
53076
|
+
/**
|
|
53077
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53078
|
+
* given reader into the given message object.
|
|
53079
|
+
* @param {!proto.clarifai.api.CloudRegion} msg The message object to deserialize into.
|
|
53080
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53081
|
+
* @return {!proto.clarifai.api.CloudRegion}
|
|
53082
|
+
*/
|
|
53083
|
+
proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function (msg, reader) {
|
|
53084
|
+
while (reader.nextField()) {
|
|
53085
|
+
if (reader.isEndGroup()) {
|
|
53086
|
+
break;
|
|
53087
|
+
}
|
|
53088
|
+
var field = reader.getFieldNumber();
|
|
53089
|
+
switch (field) {
|
|
53090
|
+
case 1:
|
|
53091
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53092
|
+
msg.setId(value);
|
|
53093
|
+
break;
|
|
53094
|
+
case 3:
|
|
53095
|
+
var value = /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (reader.readEnum());
|
|
53096
|
+
msg.setCloud(value);
|
|
53097
|
+
break;
|
|
53098
|
+
case 4:
|
|
53099
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53100
|
+
msg.setRegion(value);
|
|
53101
|
+
break;
|
|
53102
|
+
default:
|
|
53103
|
+
reader.skipField();
|
|
53104
|
+
break;
|
|
53105
|
+
}
|
|
53106
|
+
}
|
|
53107
|
+
return msg;
|
|
53108
|
+
};
|
|
53109
|
+
/**
|
|
53110
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53111
|
+
* @return {!Uint8Array}
|
|
53112
|
+
*/
|
|
53113
|
+
proto.clarifai.api.CloudRegion.prototype.serializeBinary = function () {
|
|
53114
|
+
var writer = new jspb.BinaryWriter();
|
|
53115
|
+
proto.clarifai.api.CloudRegion.serializeBinaryToWriter(this, writer);
|
|
53116
|
+
return writer.getResultBuffer();
|
|
53117
|
+
};
|
|
53118
|
+
/**
|
|
53119
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53120
|
+
* format), writing to the given BinaryWriter.
|
|
53121
|
+
* @param {!proto.clarifai.api.CloudRegion} message
|
|
53122
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53123
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53124
|
+
*/
|
|
53125
|
+
proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function (message, writer) {
|
|
53126
|
+
var f = undefined;
|
|
53127
|
+
f = message.getId();
|
|
53128
|
+
if (f.length > 0) {
|
|
53129
|
+
writer.writeString(1, f);
|
|
53130
|
+
}
|
|
53131
|
+
f = message.getCloud();
|
|
53132
|
+
if (f !== 0.0) {
|
|
53133
|
+
writer.writeEnum(3, f);
|
|
53134
|
+
}
|
|
53135
|
+
f = message.getRegion();
|
|
53136
|
+
if (f.length > 0) {
|
|
53137
|
+
writer.writeString(4, f);
|
|
53138
|
+
}
|
|
51887
53139
|
};
|
|
51888
53140
|
/**
|
|
51889
53141
|
* @enum {number}
|
|
51890
53142
|
*/
|
|
51891
|
-
proto.clarifai.api.
|
|
51892
|
-
|
|
51893
|
-
|
|
51894
|
-
|
|
53143
|
+
proto.clarifai.api.CloudRegion.Cloud = {
|
|
53144
|
+
UNKOWN_CLOUD: 0,
|
|
53145
|
+
SELF_HOSTED: 1,
|
|
53146
|
+
AWS: 2,
|
|
53147
|
+
GCP: 3,
|
|
53148
|
+
AZURE: 4,
|
|
53149
|
+
LAMBDA: 5
|
|
53150
|
+
};
|
|
53151
|
+
/**
|
|
53152
|
+
* optional string id = 1;
|
|
53153
|
+
* @return {string}
|
|
53154
|
+
*/
|
|
53155
|
+
proto.clarifai.api.CloudRegion.prototype.getId = function () {
|
|
53156
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
53157
|
+
};
|
|
53158
|
+
/**
|
|
53159
|
+
* @param {string} value
|
|
53160
|
+
* @return {!proto.clarifai.api.CloudRegion} returns this
|
|
53161
|
+
*/
|
|
53162
|
+
proto.clarifai.api.CloudRegion.prototype.setId = function (value) {
|
|
53163
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
53164
|
+
};
|
|
53165
|
+
/**
|
|
53166
|
+
* optional Cloud cloud = 3;
|
|
53167
|
+
* @return {!proto.clarifai.api.CloudRegion.Cloud}
|
|
53168
|
+
*/
|
|
53169
|
+
proto.clarifai.api.CloudRegion.prototype.getCloud = function () {
|
|
53170
|
+
return /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
53171
|
+
};
|
|
53172
|
+
/**
|
|
53173
|
+
* @param {!proto.clarifai.api.CloudRegion.Cloud} value
|
|
53174
|
+
* @return {!proto.clarifai.api.CloudRegion} returns this
|
|
53175
|
+
*/
|
|
53176
|
+
proto.clarifai.api.CloudRegion.prototype.setCloud = function (value) {
|
|
53177
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
53178
|
+
};
|
|
53179
|
+
/**
|
|
53180
|
+
* optional string region = 4;
|
|
53181
|
+
* @return {string}
|
|
53182
|
+
*/
|
|
53183
|
+
proto.clarifai.api.CloudRegion.prototype.getRegion = function () {
|
|
53184
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
53185
|
+
};
|
|
53186
|
+
/**
|
|
53187
|
+
* @param {string} value
|
|
53188
|
+
* @return {!proto.clarifai.api.CloudRegion} returns this
|
|
53189
|
+
*/
|
|
53190
|
+
proto.clarifai.api.CloudRegion.prototype.setRegion = function (value) {
|
|
53191
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
53192
|
+
};
|
|
53193
|
+
/**
|
|
53194
|
+
* List of repeated fields within this message type.
|
|
53195
|
+
* @private {!Array<number>}
|
|
53196
|
+
* @const
|
|
53197
|
+
*/
|
|
53198
|
+
proto.clarifai.api.ComputeInfo.repeatedFields_ = [5];
|
|
53199
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53200
|
+
/**
|
|
53201
|
+
* Creates an object representation of this proto.
|
|
53202
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53203
|
+
* Optional fields that are not set will be set to undefined.
|
|
53204
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53205
|
+
* For the list of reserved names please see:
|
|
53206
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
53207
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
53208
|
+
* JSPB instance for transitional soy proto support:
|
|
53209
|
+
* http://goto/soy-param-migration
|
|
53210
|
+
* @return {!Object}
|
|
53211
|
+
*/
|
|
53212
|
+
proto.clarifai.api.ComputeInfo.prototype.toObject = function (opt_includeInstance) {
|
|
53213
|
+
return proto.clarifai.api.ComputeInfo.toObject(opt_includeInstance, this);
|
|
53214
|
+
};
|
|
53215
|
+
/**
|
|
53216
|
+
* Static version of the {@see toObject} method.
|
|
53217
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53218
|
+
* the JSPB instance for transitional soy proto support:
|
|
53219
|
+
* http://goto/soy-param-migration
|
|
53220
|
+
* @param {!proto.clarifai.api.ComputeInfo} msg The msg instance to transform.
|
|
53221
|
+
* @return {!Object}
|
|
53222
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53223
|
+
*/
|
|
53224
|
+
proto.clarifai.api.ComputeInfo.toObject = function (includeInstance, msg) {
|
|
53225
|
+
var f, obj = {
|
|
53226
|
+
numCpus: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
53227
|
+
cpuMemory: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
53228
|
+
numAccelerators: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
53229
|
+
acceleratorMemory: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
53230
|
+
acceleratorTypeList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
|
53231
|
+
};
|
|
53232
|
+
if (includeInstance) {
|
|
53233
|
+
obj.$jspbMessageInstance = msg;
|
|
53234
|
+
}
|
|
53235
|
+
return obj;
|
|
53236
|
+
};
|
|
53237
|
+
}
|
|
53238
|
+
/**
|
|
53239
|
+
* Deserializes binary data (in protobuf wire format).
|
|
53240
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53241
|
+
* @return {!proto.clarifai.api.ComputeInfo}
|
|
53242
|
+
*/
|
|
53243
|
+
proto.clarifai.api.ComputeInfo.deserializeBinary = function (bytes) {
|
|
53244
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
53245
|
+
var msg = new proto.clarifai.api.ComputeInfo;
|
|
53246
|
+
return proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader(msg, reader);
|
|
53247
|
+
};
|
|
53248
|
+
/**
|
|
53249
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53250
|
+
* given reader into the given message object.
|
|
53251
|
+
* @param {!proto.clarifai.api.ComputeInfo} msg The message object to deserialize into.
|
|
53252
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53253
|
+
* @return {!proto.clarifai.api.ComputeInfo}
|
|
53254
|
+
*/
|
|
53255
|
+
proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader = function (msg, reader) {
|
|
53256
|
+
while (reader.nextField()) {
|
|
53257
|
+
if (reader.isEndGroup()) {
|
|
53258
|
+
break;
|
|
53259
|
+
}
|
|
53260
|
+
var field = reader.getFieldNumber();
|
|
53261
|
+
switch (field) {
|
|
53262
|
+
case 1:
|
|
53263
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
53264
|
+
msg.setNumCpus(value);
|
|
53265
|
+
break;
|
|
53266
|
+
case 2:
|
|
53267
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53268
|
+
msg.setCpuMemory(value);
|
|
53269
|
+
break;
|
|
53270
|
+
case 3:
|
|
53271
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
53272
|
+
msg.setNumAccelerators(value);
|
|
53273
|
+
break;
|
|
53274
|
+
case 4:
|
|
53275
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53276
|
+
msg.setAcceleratorMemory(value);
|
|
53277
|
+
break;
|
|
53278
|
+
case 5:
|
|
53279
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53280
|
+
msg.addAcceleratorType(value);
|
|
53281
|
+
break;
|
|
53282
|
+
default:
|
|
53283
|
+
reader.skipField();
|
|
53284
|
+
break;
|
|
53285
|
+
}
|
|
53286
|
+
}
|
|
53287
|
+
return msg;
|
|
53288
|
+
};
|
|
53289
|
+
/**
|
|
53290
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53291
|
+
* @return {!Uint8Array}
|
|
53292
|
+
*/
|
|
53293
|
+
proto.clarifai.api.ComputeInfo.prototype.serializeBinary = function () {
|
|
53294
|
+
var writer = new jspb.BinaryWriter();
|
|
53295
|
+
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter(this, writer);
|
|
53296
|
+
return writer.getResultBuffer();
|
|
53297
|
+
};
|
|
53298
|
+
/**
|
|
53299
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53300
|
+
* format), writing to the given BinaryWriter.
|
|
53301
|
+
* @param {!proto.clarifai.api.ComputeInfo} message
|
|
53302
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53303
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53304
|
+
*/
|
|
53305
|
+
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function (message, writer) {
|
|
53306
|
+
var f = undefined;
|
|
53307
|
+
f = message.getNumCpus();
|
|
53308
|
+
if (f !== 0) {
|
|
53309
|
+
writer.writeUint32(1, f);
|
|
53310
|
+
}
|
|
53311
|
+
f = message.getCpuMemory();
|
|
53312
|
+
if (f.length > 0) {
|
|
53313
|
+
writer.writeString(2, f);
|
|
53314
|
+
}
|
|
53315
|
+
f = message.getNumAccelerators();
|
|
53316
|
+
if (f !== 0) {
|
|
53317
|
+
writer.writeUint32(3, f);
|
|
53318
|
+
}
|
|
53319
|
+
f = message.getAcceleratorMemory();
|
|
53320
|
+
if (f.length > 0) {
|
|
53321
|
+
writer.writeString(4, f);
|
|
53322
|
+
}
|
|
53323
|
+
f = message.getAcceleratorTypeList();
|
|
53324
|
+
if (f.length > 0) {
|
|
53325
|
+
writer.writeRepeatedString(5, f);
|
|
53326
|
+
}
|
|
53327
|
+
};
|
|
53328
|
+
/**
|
|
53329
|
+
* optional uint32 num_cpus = 1;
|
|
53330
|
+
* @return {number}
|
|
53331
|
+
*/
|
|
53332
|
+
proto.clarifai.api.ComputeInfo.prototype.getNumCpus = function () {
|
|
53333
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
53334
|
+
};
|
|
53335
|
+
/**
|
|
53336
|
+
* @param {number} value
|
|
53337
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
53338
|
+
*/
|
|
53339
|
+
proto.clarifai.api.ComputeInfo.prototype.setNumCpus = function (value) {
|
|
53340
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
53341
|
+
};
|
|
53342
|
+
/**
|
|
53343
|
+
* optional string cpu_memory = 2;
|
|
53344
|
+
* @return {string}
|
|
53345
|
+
*/
|
|
53346
|
+
proto.clarifai.api.ComputeInfo.prototype.getCpuMemory = function () {
|
|
53347
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
53348
|
+
};
|
|
53349
|
+
/**
|
|
53350
|
+
* @param {string} value
|
|
53351
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
53352
|
+
*/
|
|
53353
|
+
proto.clarifai.api.ComputeInfo.prototype.setCpuMemory = function (value) {
|
|
53354
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
53355
|
+
};
|
|
53356
|
+
/**
|
|
53357
|
+
* optional uint32 num_accelerators = 3;
|
|
53358
|
+
* @return {number}
|
|
53359
|
+
*/
|
|
53360
|
+
proto.clarifai.api.ComputeInfo.prototype.getNumAccelerators = function () {
|
|
53361
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
53362
|
+
};
|
|
53363
|
+
/**
|
|
53364
|
+
* @param {number} value
|
|
53365
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
53366
|
+
*/
|
|
53367
|
+
proto.clarifai.api.ComputeInfo.prototype.setNumAccelerators = function (value) {
|
|
53368
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
53369
|
+
};
|
|
53370
|
+
/**
|
|
53371
|
+
* optional string accelerator_memory = 4;
|
|
53372
|
+
* @return {string}
|
|
53373
|
+
*/
|
|
53374
|
+
proto.clarifai.api.ComputeInfo.prototype.getAcceleratorMemory = function () {
|
|
53375
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
53376
|
+
};
|
|
53377
|
+
/**
|
|
53378
|
+
* @param {string} value
|
|
53379
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
53380
|
+
*/
|
|
53381
|
+
proto.clarifai.api.ComputeInfo.prototype.setAcceleratorMemory = function (value) {
|
|
53382
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
53383
|
+
};
|
|
53384
|
+
/**
|
|
53385
|
+
* repeated string accelerator_type = 5;
|
|
53386
|
+
* @return {!Array<string>}
|
|
53387
|
+
*/
|
|
53388
|
+
proto.clarifai.api.ComputeInfo.prototype.getAcceleratorTypeList = function () {
|
|
53389
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
53390
|
+
};
|
|
53391
|
+
/**
|
|
53392
|
+
* @param {!Array<string>} value
|
|
53393
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
53394
|
+
*/
|
|
53395
|
+
proto.clarifai.api.ComputeInfo.prototype.setAcceleratorTypeList = function (value) {
|
|
53396
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
53397
|
+
};
|
|
53398
|
+
/**
|
|
53399
|
+
* @param {string} value
|
|
53400
|
+
* @param {number=} opt_index
|
|
53401
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
53402
|
+
*/
|
|
53403
|
+
proto.clarifai.api.ComputeInfo.prototype.addAcceleratorType = function (value, opt_index) {
|
|
53404
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
53405
|
+
};
|
|
53406
|
+
/**
|
|
53407
|
+
* Clears the list making it empty but non-null.
|
|
53408
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
53409
|
+
*/
|
|
53410
|
+
proto.clarifai.api.ComputeInfo.prototype.clearAcceleratorTypeList = function () {
|
|
53411
|
+
return this.setAcceleratorTypeList([]);
|
|
53412
|
+
};
|
|
53413
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53414
|
+
/**
|
|
53415
|
+
* Creates an object representation of this proto.
|
|
53416
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53417
|
+
* Optional fields that are not set will be set to undefined.
|
|
53418
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53419
|
+
* For the list of reserved names please see:
|
|
53420
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
53421
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
53422
|
+
* JSPB instance for transitional soy proto support:
|
|
53423
|
+
* http://goto/soy-param-migration
|
|
53424
|
+
* @return {!Object}
|
|
53425
|
+
*/
|
|
53426
|
+
proto.clarifai.api.AutoscaleConfig.prototype.toObject = function (opt_includeInstance) {
|
|
53427
|
+
return proto.clarifai.api.AutoscaleConfig.toObject(opt_includeInstance, this);
|
|
53428
|
+
};
|
|
53429
|
+
/**
|
|
53430
|
+
* Static version of the {@see toObject} method.
|
|
53431
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53432
|
+
* the JSPB instance for transitional soy proto support:
|
|
53433
|
+
* http://goto/soy-param-migration
|
|
53434
|
+
* @param {!proto.clarifai.api.AutoscaleConfig} msg The msg instance to transform.
|
|
53435
|
+
* @return {!Object}
|
|
53436
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53437
|
+
*/
|
|
53438
|
+
proto.clarifai.api.AutoscaleConfig.toObject = function (includeInstance, msg) {
|
|
53439
|
+
var f, obj = {
|
|
53440
|
+
minReplicas: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
53441
|
+
maxReplicas: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
53442
|
+
trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
53443
|
+
scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
53444
|
+
scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
53445
|
+
enablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
|
53446
|
+
};
|
|
53447
|
+
if (includeInstance) {
|
|
53448
|
+
obj.$jspbMessageInstance = msg;
|
|
53449
|
+
}
|
|
53450
|
+
return obj;
|
|
53451
|
+
};
|
|
53452
|
+
}
|
|
53453
|
+
/**
|
|
53454
|
+
* Deserializes binary data (in protobuf wire format).
|
|
53455
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53456
|
+
* @return {!proto.clarifai.api.AutoscaleConfig}
|
|
53457
|
+
*/
|
|
53458
|
+
proto.clarifai.api.AutoscaleConfig.deserializeBinary = function (bytes) {
|
|
53459
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
53460
|
+
var msg = new proto.clarifai.api.AutoscaleConfig;
|
|
53461
|
+
return proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader(msg, reader);
|
|
53462
|
+
};
|
|
53463
|
+
/**
|
|
53464
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53465
|
+
* given reader into the given message object.
|
|
53466
|
+
* @param {!proto.clarifai.api.AutoscaleConfig} msg The message object to deserialize into.
|
|
53467
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53468
|
+
* @return {!proto.clarifai.api.AutoscaleConfig}
|
|
53469
|
+
*/
|
|
53470
|
+
proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function (msg, reader) {
|
|
53471
|
+
while (reader.nextField()) {
|
|
53472
|
+
if (reader.isEndGroup()) {
|
|
53473
|
+
break;
|
|
53474
|
+
}
|
|
53475
|
+
var field = reader.getFieldNumber();
|
|
53476
|
+
switch (field) {
|
|
53477
|
+
case 1:
|
|
53478
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
53479
|
+
msg.setMinReplicas(value);
|
|
53480
|
+
break;
|
|
53481
|
+
case 2:
|
|
53482
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
53483
|
+
msg.setMaxReplicas(value);
|
|
53484
|
+
break;
|
|
53485
|
+
case 3:
|
|
53486
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
53487
|
+
msg.setTrafficHistorySeconds(value);
|
|
53488
|
+
break;
|
|
53489
|
+
case 4:
|
|
53490
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
53491
|
+
msg.setScaleDownDelaySeconds(value);
|
|
53492
|
+
break;
|
|
53493
|
+
case 5:
|
|
53494
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
53495
|
+
msg.setScaleUpDelaySeconds(value);
|
|
53496
|
+
break;
|
|
53497
|
+
case 6:
|
|
53498
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
53499
|
+
msg.setEnablePacking(value);
|
|
53500
|
+
break;
|
|
53501
|
+
default:
|
|
53502
|
+
reader.skipField();
|
|
53503
|
+
break;
|
|
53504
|
+
}
|
|
53505
|
+
}
|
|
53506
|
+
return msg;
|
|
53507
|
+
};
|
|
53508
|
+
/**
|
|
53509
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53510
|
+
* @return {!Uint8Array}
|
|
53511
|
+
*/
|
|
53512
|
+
proto.clarifai.api.AutoscaleConfig.prototype.serializeBinary = function () {
|
|
53513
|
+
var writer = new jspb.BinaryWriter();
|
|
53514
|
+
proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter(this, writer);
|
|
53515
|
+
return writer.getResultBuffer();
|
|
53516
|
+
};
|
|
53517
|
+
/**
|
|
53518
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53519
|
+
* format), writing to the given BinaryWriter.
|
|
53520
|
+
* @param {!proto.clarifai.api.AutoscaleConfig} message
|
|
53521
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53522
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53523
|
+
*/
|
|
53524
|
+
proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function (message, writer) {
|
|
53525
|
+
var f = undefined;
|
|
53526
|
+
f = message.getMinReplicas();
|
|
53527
|
+
if (f !== 0) {
|
|
53528
|
+
writer.writeUint32(1, f);
|
|
53529
|
+
}
|
|
53530
|
+
f = message.getMaxReplicas();
|
|
53531
|
+
if (f !== 0) {
|
|
53532
|
+
writer.writeUint32(2, f);
|
|
53533
|
+
}
|
|
53534
|
+
f = message.getTrafficHistorySeconds();
|
|
53535
|
+
if (f !== 0) {
|
|
53536
|
+
writer.writeUint32(3, f);
|
|
53537
|
+
}
|
|
53538
|
+
f = message.getScaleDownDelaySeconds();
|
|
53539
|
+
if (f !== 0) {
|
|
53540
|
+
writer.writeUint32(4, f);
|
|
53541
|
+
}
|
|
53542
|
+
f = message.getScaleUpDelaySeconds();
|
|
53543
|
+
if (f !== 0) {
|
|
53544
|
+
writer.writeUint32(5, f);
|
|
53545
|
+
}
|
|
53546
|
+
f = message.getEnablePacking();
|
|
53547
|
+
if (f) {
|
|
53548
|
+
writer.writeBool(6, f);
|
|
53549
|
+
}
|
|
53550
|
+
};
|
|
53551
|
+
/**
|
|
53552
|
+
* optional uint32 min_replicas = 1;
|
|
53553
|
+
* @return {number}
|
|
53554
|
+
*/
|
|
53555
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getMinReplicas = function () {
|
|
53556
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
53557
|
+
};
|
|
53558
|
+
/**
|
|
53559
|
+
* @param {number} value
|
|
53560
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
53561
|
+
*/
|
|
53562
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setMinReplicas = function (value) {
|
|
53563
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
53564
|
+
};
|
|
53565
|
+
/**
|
|
53566
|
+
* optional uint32 max_replicas = 2;
|
|
53567
|
+
* @return {number}
|
|
53568
|
+
*/
|
|
53569
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getMaxReplicas = function () {
|
|
53570
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
53571
|
+
};
|
|
53572
|
+
/**
|
|
53573
|
+
* @param {number} value
|
|
53574
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
53575
|
+
*/
|
|
53576
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setMaxReplicas = function (value) {
|
|
53577
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
53578
|
+
};
|
|
53579
|
+
/**
|
|
53580
|
+
* optional uint32 traffic_history_seconds = 3;
|
|
53581
|
+
* @return {number}
|
|
53582
|
+
*/
|
|
53583
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getTrafficHistorySeconds = function () {
|
|
53584
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
53585
|
+
};
|
|
53586
|
+
/**
|
|
53587
|
+
* @param {number} value
|
|
53588
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
53589
|
+
*/
|
|
53590
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setTrafficHistorySeconds = function (value) {
|
|
53591
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
53592
|
+
};
|
|
53593
|
+
/**
|
|
53594
|
+
* optional uint32 scale_down_delay_seconds = 4;
|
|
53595
|
+
* @return {number}
|
|
53596
|
+
*/
|
|
53597
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getScaleDownDelaySeconds = function () {
|
|
53598
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
53599
|
+
};
|
|
53600
|
+
/**
|
|
53601
|
+
* @param {number} value
|
|
53602
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
53603
|
+
*/
|
|
53604
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setScaleDownDelaySeconds = function (value) {
|
|
53605
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
53606
|
+
};
|
|
53607
|
+
/**
|
|
53608
|
+
* optional uint32 scale_up_delay_seconds = 5;
|
|
53609
|
+
* @return {number}
|
|
53610
|
+
*/
|
|
53611
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getScaleUpDelaySeconds = function () {
|
|
53612
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
53613
|
+
};
|
|
53614
|
+
/**
|
|
53615
|
+
* @param {number} value
|
|
53616
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
53617
|
+
*/
|
|
53618
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setScaleUpDelaySeconds = function (value) {
|
|
53619
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
53620
|
+
};
|
|
53621
|
+
/**
|
|
53622
|
+
* optional bool enable_packing = 6;
|
|
53623
|
+
* @return {boolean}
|
|
53624
|
+
*/
|
|
53625
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getEnablePacking = function () {
|
|
53626
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
53627
|
+
};
|
|
53628
|
+
/**
|
|
53629
|
+
* @param {boolean} value
|
|
53630
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
53631
|
+
*/
|
|
53632
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setEnablePacking = function (value) {
|
|
53633
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
53634
|
+
};
|
|
53635
|
+
/**
|
|
53636
|
+
* List of repeated fields within this message type.
|
|
53637
|
+
* @private {!Array<number>}
|
|
53638
|
+
* @const
|
|
53639
|
+
*/
|
|
53640
|
+
proto.clarifai.api.Deployment.repeatedFields_ = [4];
|
|
53641
|
+
/**
|
|
53642
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
53643
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
53644
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
53645
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
53646
|
+
* @private {!Array<!Array<number>>}
|
|
53647
|
+
* @const
|
|
53648
|
+
*/
|
|
53649
|
+
proto.clarifai.api.Deployment.oneofGroups_ = [[5, 6]];
|
|
53650
|
+
/**
|
|
53651
|
+
* @enum {number}
|
|
53652
|
+
*/
|
|
53653
|
+
proto.clarifai.api.Deployment.ObjectCase = {
|
|
53654
|
+
OBJECT_NOT_SET: 0,
|
|
53655
|
+
MODEL: 5,
|
|
53656
|
+
WORKFLOW: 6
|
|
53657
|
+
};
|
|
53658
|
+
/**
|
|
53659
|
+
* @return {proto.clarifai.api.Deployment.ObjectCase}
|
|
53660
|
+
*/
|
|
53661
|
+
proto.clarifai.api.Deployment.prototype.getObjectCase = function () {
|
|
53662
|
+
return /** @type {proto.clarifai.api.Deployment.ObjectCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.Deployment.oneofGroups_[0]));
|
|
53663
|
+
};
|
|
53664
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53665
|
+
/**
|
|
53666
|
+
* Creates an object representation of this proto.
|
|
53667
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53668
|
+
* Optional fields that are not set will be set to undefined.
|
|
53669
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53670
|
+
* For the list of reserved names please see:
|
|
53671
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
53672
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
53673
|
+
* JSPB instance for transitional soy proto support:
|
|
53674
|
+
* http://goto/soy-param-migration
|
|
53675
|
+
* @return {!Object}
|
|
53676
|
+
*/
|
|
53677
|
+
proto.clarifai.api.Deployment.prototype.toObject = function (opt_includeInstance) {
|
|
53678
|
+
return proto.clarifai.api.Deployment.toObject(opt_includeInstance, this);
|
|
53679
|
+
};
|
|
53680
|
+
/**
|
|
53681
|
+
* Static version of the {@see toObject} method.
|
|
53682
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53683
|
+
* the JSPB instance for transitional soy proto support:
|
|
53684
|
+
* http://goto/soy-param-migration
|
|
53685
|
+
* @param {!proto.clarifai.api.Deployment} msg The msg instance to transform.
|
|
53686
|
+
* @return {!Object}
|
|
53687
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53688
|
+
*/
|
|
53689
|
+
proto.clarifai.api.Deployment.toObject = function (includeInstance, msg) {
|
|
53690
|
+
var f, obj = {
|
|
53691
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
53692
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
53693
|
+
autoscaleConfig: (f = msg.getAutoscaleConfig()) && proto.clarifai.api.AutoscaleConfig.toObject(includeInstance, f),
|
|
53694
|
+
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto.clarifai.api.Nodepool.toObject, includeInstance),
|
|
53695
|
+
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
53696
|
+
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
53697
|
+
schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
53698
|
+
};
|
|
53699
|
+
if (includeInstance) {
|
|
53700
|
+
obj.$jspbMessageInstance = msg;
|
|
53701
|
+
}
|
|
53702
|
+
return obj;
|
|
53703
|
+
};
|
|
53704
|
+
}
|
|
53705
|
+
/**
|
|
53706
|
+
* Deserializes binary data (in protobuf wire format).
|
|
53707
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53708
|
+
* @return {!proto.clarifai.api.Deployment}
|
|
53709
|
+
*/
|
|
53710
|
+
proto.clarifai.api.Deployment.deserializeBinary = function (bytes) {
|
|
53711
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
53712
|
+
var msg = new proto.clarifai.api.Deployment;
|
|
53713
|
+
return proto.clarifai.api.Deployment.deserializeBinaryFromReader(msg, reader);
|
|
53714
|
+
};
|
|
53715
|
+
/**
|
|
53716
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53717
|
+
* given reader into the given message object.
|
|
53718
|
+
* @param {!proto.clarifai.api.Deployment} msg The message object to deserialize into.
|
|
53719
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53720
|
+
* @return {!proto.clarifai.api.Deployment}
|
|
53721
|
+
*/
|
|
53722
|
+
proto.clarifai.api.Deployment.deserializeBinaryFromReader = function (msg, reader) {
|
|
53723
|
+
while (reader.nextField()) {
|
|
53724
|
+
if (reader.isEndGroup()) {
|
|
53725
|
+
break;
|
|
53726
|
+
}
|
|
53727
|
+
var field = reader.getFieldNumber();
|
|
53728
|
+
switch (field) {
|
|
53729
|
+
case 1:
|
|
53730
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53731
|
+
msg.setId(value);
|
|
53732
|
+
break;
|
|
53733
|
+
case 2:
|
|
53734
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53735
|
+
msg.setUserId(value);
|
|
53736
|
+
break;
|
|
53737
|
+
case 3:
|
|
53738
|
+
var value = new proto.clarifai.api.AutoscaleConfig;
|
|
53739
|
+
reader.readMessage(value, proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader);
|
|
53740
|
+
msg.setAutoscaleConfig(value);
|
|
53741
|
+
break;
|
|
53742
|
+
case 4:
|
|
53743
|
+
var value = new proto.clarifai.api.Nodepool;
|
|
53744
|
+
reader.readMessage(value, proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
53745
|
+
msg.addNodepools(value);
|
|
53746
|
+
break;
|
|
53747
|
+
case 5:
|
|
53748
|
+
var value = new proto.clarifai.api.Model;
|
|
53749
|
+
reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
53750
|
+
msg.setModel(value);
|
|
53751
|
+
break;
|
|
53752
|
+
case 6:
|
|
53753
|
+
var value = new proto.clarifai.api.Workflow;
|
|
53754
|
+
reader.readMessage(value, proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
53755
|
+
msg.setWorkflow(value);
|
|
53756
|
+
break;
|
|
53757
|
+
case 7:
|
|
53758
|
+
var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
|
|
53759
|
+
msg.setSchedulingChoice(value);
|
|
53760
|
+
break;
|
|
53761
|
+
default:
|
|
53762
|
+
reader.skipField();
|
|
53763
|
+
break;
|
|
53764
|
+
}
|
|
53765
|
+
}
|
|
53766
|
+
return msg;
|
|
53767
|
+
};
|
|
53768
|
+
/**
|
|
53769
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53770
|
+
* @return {!Uint8Array}
|
|
53771
|
+
*/
|
|
53772
|
+
proto.clarifai.api.Deployment.prototype.serializeBinary = function () {
|
|
53773
|
+
var writer = new jspb.BinaryWriter();
|
|
53774
|
+
proto.clarifai.api.Deployment.serializeBinaryToWriter(this, writer);
|
|
53775
|
+
return writer.getResultBuffer();
|
|
53776
|
+
};
|
|
53777
|
+
/**
|
|
53778
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53779
|
+
* format), writing to the given BinaryWriter.
|
|
53780
|
+
* @param {!proto.clarifai.api.Deployment} message
|
|
53781
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53782
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53783
|
+
*/
|
|
53784
|
+
proto.clarifai.api.Deployment.serializeBinaryToWriter = function (message, writer) {
|
|
53785
|
+
var f = undefined;
|
|
53786
|
+
f = message.getId();
|
|
53787
|
+
if (f.length > 0) {
|
|
53788
|
+
writer.writeString(1, f);
|
|
53789
|
+
}
|
|
53790
|
+
f = message.getUserId();
|
|
53791
|
+
if (f.length > 0) {
|
|
53792
|
+
writer.writeString(2, f);
|
|
53793
|
+
}
|
|
53794
|
+
f = message.getAutoscaleConfig();
|
|
53795
|
+
if (f != null) {
|
|
53796
|
+
writer.writeMessage(3, f, proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter);
|
|
53797
|
+
}
|
|
53798
|
+
f = message.getNodepoolsList();
|
|
53799
|
+
if (f.length > 0) {
|
|
53800
|
+
writer.writeRepeatedMessage(4, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
|
|
53801
|
+
}
|
|
53802
|
+
f = message.getModel();
|
|
53803
|
+
if (f != null) {
|
|
53804
|
+
writer.writeMessage(5, f, proto.clarifai.api.Model.serializeBinaryToWriter);
|
|
53805
|
+
}
|
|
53806
|
+
f = message.getWorkflow();
|
|
53807
|
+
if (f != null) {
|
|
53808
|
+
writer.writeMessage(6, f, proto.clarifai.api.Workflow.serializeBinaryToWriter);
|
|
53809
|
+
}
|
|
53810
|
+
f = message.getSchedulingChoice();
|
|
53811
|
+
if (f !== 0.0) {
|
|
53812
|
+
writer.writeEnum(7, f);
|
|
53813
|
+
}
|
|
53814
|
+
};
|
|
53815
|
+
/**
|
|
53816
|
+
* @enum {number}
|
|
53817
|
+
*/
|
|
53818
|
+
proto.clarifai.api.Deployment.SchedulingChoice = {
|
|
53819
|
+
UNKNOWN_SCHEDULING_CHOICE: 0,
|
|
53820
|
+
FAIL: 1,
|
|
53821
|
+
RANDOM: 2,
|
|
53822
|
+
PRICE: 3,
|
|
53823
|
+
PERFORMANCE: 4,
|
|
53824
|
+
NETWORK: 5,
|
|
53825
|
+
UTILIZATION: 6,
|
|
53826
|
+
PREFER_SPOT: 7,
|
|
53827
|
+
PREFER_ONDEMAND: 8
|
|
53828
|
+
};
|
|
53829
|
+
/**
|
|
53830
|
+
* optional string id = 1;
|
|
53831
|
+
* @return {string}
|
|
53832
|
+
*/
|
|
53833
|
+
proto.clarifai.api.Deployment.prototype.getId = function () {
|
|
53834
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
53835
|
+
};
|
|
53836
|
+
/**
|
|
53837
|
+
* @param {string} value
|
|
53838
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53839
|
+
*/
|
|
53840
|
+
proto.clarifai.api.Deployment.prototype.setId = function (value) {
|
|
53841
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
53842
|
+
};
|
|
53843
|
+
/**
|
|
53844
|
+
* optional string user_id = 2;
|
|
53845
|
+
* @return {string}
|
|
53846
|
+
*/
|
|
53847
|
+
proto.clarifai.api.Deployment.prototype.getUserId = function () {
|
|
53848
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
53849
|
+
};
|
|
53850
|
+
/**
|
|
53851
|
+
* @param {string} value
|
|
53852
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53853
|
+
*/
|
|
53854
|
+
proto.clarifai.api.Deployment.prototype.setUserId = function (value) {
|
|
53855
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
53856
|
+
};
|
|
53857
|
+
/**
|
|
53858
|
+
* optional AutoscaleConfig autoscale_config = 3;
|
|
53859
|
+
* @return {?proto.clarifai.api.AutoscaleConfig}
|
|
53860
|
+
*/
|
|
53861
|
+
proto.clarifai.api.Deployment.prototype.getAutoscaleConfig = function () {
|
|
53862
|
+
return /** @type{?proto.clarifai.api.AutoscaleConfig} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.AutoscaleConfig, 3));
|
|
53863
|
+
};
|
|
53864
|
+
/**
|
|
53865
|
+
* @param {?proto.clarifai.api.AutoscaleConfig|undefined} value
|
|
53866
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53867
|
+
*/
|
|
53868
|
+
proto.clarifai.api.Deployment.prototype.setAutoscaleConfig = function (value) {
|
|
53869
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
53870
|
+
};
|
|
53871
|
+
/**
|
|
53872
|
+
* Clears the message field making it undefined.
|
|
53873
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53874
|
+
*/
|
|
53875
|
+
proto.clarifai.api.Deployment.prototype.clearAutoscaleConfig = function () {
|
|
53876
|
+
return this.setAutoscaleConfig(undefined);
|
|
53877
|
+
};
|
|
53878
|
+
/**
|
|
53879
|
+
* Returns whether this field is set.
|
|
53880
|
+
* @return {boolean}
|
|
53881
|
+
*/
|
|
53882
|
+
proto.clarifai.api.Deployment.prototype.hasAutoscaleConfig = function () {
|
|
53883
|
+
return jspb.Message.getField(this, 3) != null;
|
|
53884
|
+
};
|
|
53885
|
+
/**
|
|
53886
|
+
* repeated Nodepool nodepools = 4;
|
|
53887
|
+
* @return {!Array<!proto.clarifai.api.Nodepool>}
|
|
53888
|
+
*/
|
|
53889
|
+
proto.clarifai.api.Deployment.prototype.getNodepoolsList = function () {
|
|
53890
|
+
return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Nodepool, 4));
|
|
53891
|
+
};
|
|
53892
|
+
/**
|
|
53893
|
+
* @param {!Array<!proto.clarifai.api.Nodepool>} value
|
|
53894
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53895
|
+
*/
|
|
53896
|
+
proto.clarifai.api.Deployment.prototype.setNodepoolsList = function (value) {
|
|
53897
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
53898
|
+
};
|
|
53899
|
+
/**
|
|
53900
|
+
* @param {!proto.clarifai.api.Nodepool=} opt_value
|
|
53901
|
+
* @param {number=} opt_index
|
|
53902
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
53903
|
+
*/
|
|
53904
|
+
proto.clarifai.api.Deployment.prototype.addNodepools = function (opt_value, opt_index) {
|
|
53905
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Nodepool, opt_index);
|
|
53906
|
+
};
|
|
53907
|
+
/**
|
|
53908
|
+
* Clears the list making it empty but non-null.
|
|
53909
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53910
|
+
*/
|
|
53911
|
+
proto.clarifai.api.Deployment.prototype.clearNodepoolsList = function () {
|
|
53912
|
+
return this.setNodepoolsList([]);
|
|
53913
|
+
};
|
|
53914
|
+
/**
|
|
53915
|
+
* optional Model model = 5;
|
|
53916
|
+
* @return {?proto.clarifai.api.Model}
|
|
53917
|
+
*/
|
|
53918
|
+
proto.clarifai.api.Deployment.prototype.getModel = function () {
|
|
53919
|
+
return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 5));
|
|
53920
|
+
};
|
|
53921
|
+
/**
|
|
53922
|
+
* @param {?proto.clarifai.api.Model|undefined} value
|
|
53923
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53924
|
+
*/
|
|
53925
|
+
proto.clarifai.api.Deployment.prototype.setModel = function (value) {
|
|
53926
|
+
return jspb.Message.setOneofWrapperField(this, 5, proto.clarifai.api.Deployment.oneofGroups_[0], value);
|
|
53927
|
+
};
|
|
53928
|
+
/**
|
|
53929
|
+
* Clears the message field making it undefined.
|
|
53930
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53931
|
+
*/
|
|
53932
|
+
proto.clarifai.api.Deployment.prototype.clearModel = function () {
|
|
53933
|
+
return this.setModel(undefined);
|
|
53934
|
+
};
|
|
53935
|
+
/**
|
|
53936
|
+
* Returns whether this field is set.
|
|
53937
|
+
* @return {boolean}
|
|
53938
|
+
*/
|
|
53939
|
+
proto.clarifai.api.Deployment.prototype.hasModel = function () {
|
|
53940
|
+
return jspb.Message.getField(this, 5) != null;
|
|
53941
|
+
};
|
|
53942
|
+
/**
|
|
53943
|
+
* optional Workflow workflow = 6;
|
|
53944
|
+
* @return {?proto.clarifai.api.Workflow}
|
|
53945
|
+
*/
|
|
53946
|
+
proto.clarifai.api.Deployment.prototype.getWorkflow = function () {
|
|
53947
|
+
return /** @type{?proto.clarifai.api.Workflow} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 6));
|
|
53948
|
+
};
|
|
53949
|
+
/**
|
|
53950
|
+
* @param {?proto.clarifai.api.Workflow|undefined} value
|
|
53951
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53952
|
+
*/
|
|
53953
|
+
proto.clarifai.api.Deployment.prototype.setWorkflow = function (value) {
|
|
53954
|
+
return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.Deployment.oneofGroups_[0], value);
|
|
53955
|
+
};
|
|
53956
|
+
/**
|
|
53957
|
+
* Clears the message field making it undefined.
|
|
53958
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53959
|
+
*/
|
|
53960
|
+
proto.clarifai.api.Deployment.prototype.clearWorkflow = function () {
|
|
53961
|
+
return this.setWorkflow(undefined);
|
|
53962
|
+
};
|
|
53963
|
+
/**
|
|
53964
|
+
* Returns whether this field is set.
|
|
53965
|
+
* @return {boolean}
|
|
53966
|
+
*/
|
|
53967
|
+
proto.clarifai.api.Deployment.prototype.hasWorkflow = function () {
|
|
53968
|
+
return jspb.Message.getField(this, 6) != null;
|
|
53969
|
+
};
|
|
53970
|
+
/**
|
|
53971
|
+
* optional SchedulingChoice scheduling_choice = 7;
|
|
53972
|
+
* @return {!proto.clarifai.api.Deployment.SchedulingChoice}
|
|
53973
|
+
*/
|
|
53974
|
+
proto.clarifai.api.Deployment.prototype.getSchedulingChoice = function () {
|
|
53975
|
+
return /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
53976
|
+
};
|
|
53977
|
+
/**
|
|
53978
|
+
* @param {!proto.clarifai.api.Deployment.SchedulingChoice} value
|
|
53979
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
53980
|
+
*/
|
|
53981
|
+
proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function (value) {
|
|
53982
|
+
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
53983
|
+
};
|
|
53984
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53985
|
+
/**
|
|
53986
|
+
* Creates an object representation of this proto.
|
|
53987
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53988
|
+
* Optional fields that are not set will be set to undefined.
|
|
53989
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53990
|
+
* For the list of reserved names please see:
|
|
53991
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
53992
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
53993
|
+
* JSPB instance for transitional soy proto support:
|
|
53994
|
+
* http://goto/soy-param-migration
|
|
53995
|
+
* @return {!Object}
|
|
53996
|
+
*/
|
|
53997
|
+
proto.clarifai.api.RunnerSelector.prototype.toObject = function (opt_includeInstance) {
|
|
53998
|
+
return proto.clarifai.api.RunnerSelector.toObject(opt_includeInstance, this);
|
|
53999
|
+
};
|
|
54000
|
+
/**
|
|
54001
|
+
* Static version of the {@see toObject} method.
|
|
54002
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
54003
|
+
* the JSPB instance for transitional soy proto support:
|
|
54004
|
+
* http://goto/soy-param-migration
|
|
54005
|
+
* @param {!proto.clarifai.api.RunnerSelector} msg The msg instance to transform.
|
|
54006
|
+
* @return {!Object}
|
|
54007
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54008
|
+
*/
|
|
54009
|
+
proto.clarifai.api.RunnerSelector.toObject = function (includeInstance, msg) {
|
|
54010
|
+
var f, obj = {
|
|
54011
|
+
nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
|
|
54012
|
+
runner: (f = msg.getRunner()) && proto.clarifai.api.Runner.toObject(includeInstance, f),
|
|
54013
|
+
deployment: (f = msg.getDeployment()) && proto.clarifai.api.Deployment.toObject(includeInstance, f)
|
|
54014
|
+
};
|
|
54015
|
+
if (includeInstance) {
|
|
54016
|
+
obj.$jspbMessageInstance = msg;
|
|
54017
|
+
}
|
|
54018
|
+
return obj;
|
|
54019
|
+
};
|
|
54020
|
+
}
|
|
54021
|
+
/**
|
|
54022
|
+
* Deserializes binary data (in protobuf wire format).
|
|
54023
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
54024
|
+
* @return {!proto.clarifai.api.RunnerSelector}
|
|
54025
|
+
*/
|
|
54026
|
+
proto.clarifai.api.RunnerSelector.deserializeBinary = function (bytes) {
|
|
54027
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
54028
|
+
var msg = new proto.clarifai.api.RunnerSelector;
|
|
54029
|
+
return proto.clarifai.api.RunnerSelector.deserializeBinaryFromReader(msg, reader);
|
|
54030
|
+
};
|
|
54031
|
+
/**
|
|
54032
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
54033
|
+
* given reader into the given message object.
|
|
54034
|
+
* @param {!proto.clarifai.api.RunnerSelector} msg The message object to deserialize into.
|
|
54035
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
54036
|
+
* @return {!proto.clarifai.api.RunnerSelector}
|
|
54037
|
+
*/
|
|
54038
|
+
proto.clarifai.api.RunnerSelector.deserializeBinaryFromReader = function (msg, reader) {
|
|
54039
|
+
while (reader.nextField()) {
|
|
54040
|
+
if (reader.isEndGroup()) {
|
|
54041
|
+
break;
|
|
54042
|
+
}
|
|
54043
|
+
var field = reader.getFieldNumber();
|
|
54044
|
+
switch (field) {
|
|
54045
|
+
case 1:
|
|
54046
|
+
var value = new proto.clarifai.api.Nodepool;
|
|
54047
|
+
reader.readMessage(value, proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
54048
|
+
msg.setNodepool(value);
|
|
54049
|
+
break;
|
|
54050
|
+
case 2:
|
|
54051
|
+
var value = new proto.clarifai.api.Runner;
|
|
54052
|
+
reader.readMessage(value, proto.clarifai.api.Runner.deserializeBinaryFromReader);
|
|
54053
|
+
msg.setRunner(value);
|
|
54054
|
+
break;
|
|
54055
|
+
case 3:
|
|
54056
|
+
var value = new proto.clarifai.api.Deployment;
|
|
54057
|
+
reader.readMessage(value, proto.clarifai.api.Deployment.deserializeBinaryFromReader);
|
|
54058
|
+
msg.setDeployment(value);
|
|
54059
|
+
break;
|
|
54060
|
+
default:
|
|
54061
|
+
reader.skipField();
|
|
54062
|
+
break;
|
|
54063
|
+
}
|
|
54064
|
+
}
|
|
54065
|
+
return msg;
|
|
54066
|
+
};
|
|
54067
|
+
/**
|
|
54068
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
54069
|
+
* @return {!Uint8Array}
|
|
54070
|
+
*/
|
|
54071
|
+
proto.clarifai.api.RunnerSelector.prototype.serializeBinary = function () {
|
|
54072
|
+
var writer = new jspb.BinaryWriter();
|
|
54073
|
+
proto.clarifai.api.RunnerSelector.serializeBinaryToWriter(this, writer);
|
|
54074
|
+
return writer.getResultBuffer();
|
|
54075
|
+
};
|
|
54076
|
+
/**
|
|
54077
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
54078
|
+
* format), writing to the given BinaryWriter.
|
|
54079
|
+
* @param {!proto.clarifai.api.RunnerSelector} message
|
|
54080
|
+
* @param {!jspb.BinaryWriter} writer
|
|
54081
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54082
|
+
*/
|
|
54083
|
+
proto.clarifai.api.RunnerSelector.serializeBinaryToWriter = function (message, writer) {
|
|
54084
|
+
var f = undefined;
|
|
54085
|
+
f = message.getNodepool();
|
|
54086
|
+
if (f != null) {
|
|
54087
|
+
writer.writeMessage(1, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
|
|
54088
|
+
}
|
|
54089
|
+
f = message.getRunner();
|
|
54090
|
+
if (f != null) {
|
|
54091
|
+
writer.writeMessage(2, f, proto.clarifai.api.Runner.serializeBinaryToWriter);
|
|
54092
|
+
}
|
|
54093
|
+
f = message.getDeployment();
|
|
54094
|
+
if (f != null) {
|
|
54095
|
+
writer.writeMessage(3, f, proto.clarifai.api.Deployment.serializeBinaryToWriter);
|
|
54096
|
+
}
|
|
54097
|
+
};
|
|
54098
|
+
/**
|
|
54099
|
+
* optional Nodepool nodepool = 1;
|
|
54100
|
+
* @return {?proto.clarifai.api.Nodepool}
|
|
54101
|
+
*/
|
|
54102
|
+
proto.clarifai.api.RunnerSelector.prototype.getNodepool = function () {
|
|
54103
|
+
return /** @type{?proto.clarifai.api.Nodepool} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 1));
|
|
54104
|
+
};
|
|
54105
|
+
/**
|
|
54106
|
+
* @param {?proto.clarifai.api.Nodepool|undefined} value
|
|
54107
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
54108
|
+
*/
|
|
54109
|
+
proto.clarifai.api.RunnerSelector.prototype.setNodepool = function (value) {
|
|
54110
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
54111
|
+
};
|
|
54112
|
+
/**
|
|
54113
|
+
* Clears the message field making it undefined.
|
|
54114
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
54115
|
+
*/
|
|
54116
|
+
proto.clarifai.api.RunnerSelector.prototype.clearNodepool = function () {
|
|
54117
|
+
return this.setNodepool(undefined);
|
|
54118
|
+
};
|
|
54119
|
+
/**
|
|
54120
|
+
* Returns whether this field is set.
|
|
54121
|
+
* @return {boolean}
|
|
54122
|
+
*/
|
|
54123
|
+
proto.clarifai.api.RunnerSelector.prototype.hasNodepool = function () {
|
|
54124
|
+
return jspb.Message.getField(this, 1) != null;
|
|
54125
|
+
};
|
|
54126
|
+
/**
|
|
54127
|
+
* optional Runner runner = 2;
|
|
54128
|
+
* @return {?proto.clarifai.api.Runner}
|
|
54129
|
+
*/
|
|
54130
|
+
proto.clarifai.api.RunnerSelector.prototype.getRunner = function () {
|
|
54131
|
+
return /** @type{?proto.clarifai.api.Runner} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Runner, 2));
|
|
54132
|
+
};
|
|
54133
|
+
/**
|
|
54134
|
+
* @param {?proto.clarifai.api.Runner|undefined} value
|
|
54135
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
54136
|
+
*/
|
|
54137
|
+
proto.clarifai.api.RunnerSelector.prototype.setRunner = function (value) {
|
|
54138
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
54139
|
+
};
|
|
54140
|
+
/**
|
|
54141
|
+
* Clears the message field making it undefined.
|
|
54142
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
54143
|
+
*/
|
|
54144
|
+
proto.clarifai.api.RunnerSelector.prototype.clearRunner = function () {
|
|
54145
|
+
return this.setRunner(undefined);
|
|
54146
|
+
};
|
|
54147
|
+
/**
|
|
54148
|
+
* Returns whether this field is set.
|
|
54149
|
+
* @return {boolean}
|
|
54150
|
+
*/
|
|
54151
|
+
proto.clarifai.api.RunnerSelector.prototype.hasRunner = function () {
|
|
54152
|
+
return jspb.Message.getField(this, 2) != null;
|
|
54153
|
+
};
|
|
54154
|
+
/**
|
|
54155
|
+
* optional Deployment deployment = 3;
|
|
54156
|
+
* @return {?proto.clarifai.api.Deployment}
|
|
54157
|
+
*/
|
|
54158
|
+
proto.clarifai.api.RunnerSelector.prototype.getDeployment = function () {
|
|
54159
|
+
return /** @type{?proto.clarifai.api.Deployment} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Deployment, 3));
|
|
54160
|
+
};
|
|
54161
|
+
/**
|
|
54162
|
+
* @param {?proto.clarifai.api.Deployment|undefined} value
|
|
54163
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
54164
|
+
*/
|
|
54165
|
+
proto.clarifai.api.RunnerSelector.prototype.setDeployment = function (value) {
|
|
54166
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
54167
|
+
};
|
|
54168
|
+
/**
|
|
54169
|
+
* Clears the message field making it undefined.
|
|
54170
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
54171
|
+
*/
|
|
54172
|
+
proto.clarifai.api.RunnerSelector.prototype.clearDeployment = function () {
|
|
54173
|
+
return this.setDeployment(undefined);
|
|
54174
|
+
};
|
|
54175
|
+
/**
|
|
54176
|
+
* Returns whether this field is set.
|
|
54177
|
+
* @return {boolean}
|
|
54178
|
+
*/
|
|
54179
|
+
proto.clarifai.api.RunnerSelector.prototype.hasDeployment = function () {
|
|
54180
|
+
return jspb.Message.getField(this, 3) != null;
|
|
54181
|
+
};
|
|
54182
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54183
|
+
/**
|
|
54184
|
+
* Creates an object representation of this proto.
|
|
54185
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
54186
|
+
* Optional fields that are not set will be set to undefined.
|
|
54187
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
54188
|
+
* For the list of reserved names please see:
|
|
54189
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
54190
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
54191
|
+
* JSPB instance for transitional soy proto support:
|
|
54192
|
+
* http://goto/soy-param-migration
|
|
54193
|
+
* @return {!Object}
|
|
54194
|
+
*/
|
|
54195
|
+
proto.clarifai.api.ProcessingInfo.prototype.toObject = function (opt_includeInstance) {
|
|
54196
|
+
return proto.clarifai.api.ProcessingInfo.toObject(opt_includeInstance, this);
|
|
54197
|
+
};
|
|
54198
|
+
/**
|
|
54199
|
+
* Static version of the {@see toObject} method.
|
|
54200
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
54201
|
+
* the JSPB instance for transitional soy proto support:
|
|
54202
|
+
* http://goto/soy-param-migration
|
|
54203
|
+
* @param {!proto.clarifai.api.ProcessingInfo} msg The msg instance to transform.
|
|
54204
|
+
* @return {!Object}
|
|
54205
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54206
|
+
*/
|
|
54207
|
+
proto.clarifai.api.ProcessingInfo.toObject = function (includeInstance, msg) {
|
|
54208
|
+
var f, obj = {
|
|
54209
|
+
runnerMethodType: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
54210
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
54211
|
+
};
|
|
54212
|
+
if (includeInstance) {
|
|
54213
|
+
obj.$jspbMessageInstance = msg;
|
|
54214
|
+
}
|
|
54215
|
+
return obj;
|
|
54216
|
+
};
|
|
54217
|
+
}
|
|
54218
|
+
/**
|
|
54219
|
+
* Deserializes binary data (in protobuf wire format).
|
|
54220
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
54221
|
+
* @return {!proto.clarifai.api.ProcessingInfo}
|
|
54222
|
+
*/
|
|
54223
|
+
proto.clarifai.api.ProcessingInfo.deserializeBinary = function (bytes) {
|
|
54224
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
54225
|
+
var msg = new proto.clarifai.api.ProcessingInfo;
|
|
54226
|
+
return proto.clarifai.api.ProcessingInfo.deserializeBinaryFromReader(msg, reader);
|
|
54227
|
+
};
|
|
54228
|
+
/**
|
|
54229
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
54230
|
+
* given reader into the given message object.
|
|
54231
|
+
* @param {!proto.clarifai.api.ProcessingInfo} msg The message object to deserialize into.
|
|
54232
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
54233
|
+
* @return {!proto.clarifai.api.ProcessingInfo}
|
|
54234
|
+
*/
|
|
54235
|
+
proto.clarifai.api.ProcessingInfo.deserializeBinaryFromReader = function (msg, reader) {
|
|
54236
|
+
while (reader.nextField()) {
|
|
54237
|
+
if (reader.isEndGroup()) {
|
|
54238
|
+
break;
|
|
54239
|
+
}
|
|
54240
|
+
var field = reader.getFieldNumber();
|
|
54241
|
+
switch (field) {
|
|
54242
|
+
case 1:
|
|
54243
|
+
var value = /** @type {!proto.clarifai.api.RunnerMethodType} */ (reader.readEnum());
|
|
54244
|
+
msg.setRunnerMethodType(value);
|
|
54245
|
+
break;
|
|
54246
|
+
case 2:
|
|
54247
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
54248
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
54249
|
+
msg.setStatus(value);
|
|
54250
|
+
break;
|
|
54251
|
+
default:
|
|
54252
|
+
reader.skipField();
|
|
54253
|
+
break;
|
|
54254
|
+
}
|
|
54255
|
+
}
|
|
54256
|
+
return msg;
|
|
54257
|
+
};
|
|
54258
|
+
/**
|
|
54259
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
54260
|
+
* @return {!Uint8Array}
|
|
54261
|
+
*/
|
|
54262
|
+
proto.clarifai.api.ProcessingInfo.prototype.serializeBinary = function () {
|
|
54263
|
+
var writer = new jspb.BinaryWriter();
|
|
54264
|
+
proto.clarifai.api.ProcessingInfo.serializeBinaryToWriter(this, writer);
|
|
54265
|
+
return writer.getResultBuffer();
|
|
54266
|
+
};
|
|
54267
|
+
/**
|
|
54268
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
54269
|
+
* format), writing to the given BinaryWriter.
|
|
54270
|
+
* @param {!proto.clarifai.api.ProcessingInfo} message
|
|
54271
|
+
* @param {!jspb.BinaryWriter} writer
|
|
54272
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54273
|
+
*/
|
|
54274
|
+
proto.clarifai.api.ProcessingInfo.serializeBinaryToWriter = function (message, writer) {
|
|
54275
|
+
var f = undefined;
|
|
54276
|
+
f = message.getRunnerMethodType();
|
|
54277
|
+
if (f !== 0.0) {
|
|
54278
|
+
writer.writeEnum(1, f);
|
|
54279
|
+
}
|
|
54280
|
+
f = message.getStatus();
|
|
54281
|
+
if (f != null) {
|
|
54282
|
+
writer.writeMessage(2, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
54283
|
+
}
|
|
54284
|
+
};
|
|
54285
|
+
/**
|
|
54286
|
+
* optional RunnerMethodType runner_method_type = 1;
|
|
54287
|
+
* @return {!proto.clarifai.api.RunnerMethodType}
|
|
54288
|
+
*/
|
|
54289
|
+
proto.clarifai.api.ProcessingInfo.prototype.getRunnerMethodType = function () {
|
|
54290
|
+
return /** @type {!proto.clarifai.api.RunnerMethodType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
54291
|
+
};
|
|
54292
|
+
/**
|
|
54293
|
+
* @param {!proto.clarifai.api.RunnerMethodType} value
|
|
54294
|
+
* @return {!proto.clarifai.api.ProcessingInfo} returns this
|
|
54295
|
+
*/
|
|
54296
|
+
proto.clarifai.api.ProcessingInfo.prototype.setRunnerMethodType = function (value) {
|
|
54297
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
54298
|
+
};
|
|
54299
|
+
/**
|
|
54300
|
+
* optional status.Status status = 2;
|
|
54301
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
54302
|
+
*/
|
|
54303
|
+
proto.clarifai.api.ProcessingInfo.prototype.getStatus = function () {
|
|
54304
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
|
|
54305
|
+
};
|
|
54306
|
+
/**
|
|
54307
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
54308
|
+
* @return {!proto.clarifai.api.ProcessingInfo} returns this
|
|
54309
|
+
*/
|
|
54310
|
+
proto.clarifai.api.ProcessingInfo.prototype.setStatus = function (value) {
|
|
54311
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
54312
|
+
};
|
|
54313
|
+
/**
|
|
54314
|
+
* Clears the message field making it undefined.
|
|
54315
|
+
* @return {!proto.clarifai.api.ProcessingInfo} returns this
|
|
54316
|
+
*/
|
|
54317
|
+
proto.clarifai.api.ProcessingInfo.prototype.clearStatus = function () {
|
|
54318
|
+
return this.setStatus(undefined);
|
|
54319
|
+
};
|
|
54320
|
+
/**
|
|
54321
|
+
* Returns whether this field is set.
|
|
54322
|
+
* @return {boolean}
|
|
54323
|
+
*/
|
|
54324
|
+
proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function () {
|
|
54325
|
+
return jspb.Message.getField(this, 2) != null;
|
|
54326
|
+
};
|
|
54327
|
+
/**
|
|
54328
|
+
* @enum {number}
|
|
54329
|
+
*/
|
|
54330
|
+
proto.clarifai.api.WorkflowModelUseCase = {
|
|
54331
|
+
WORKFLOW_MODEL_USE_CASE_NOT_SET: 0,
|
|
54332
|
+
CLASSIFICATION: 1,
|
|
54333
|
+
DETECTION: 2
|
|
54334
|
+
};
|
|
54335
|
+
/**
|
|
54336
|
+
* @enum {number}
|
|
54337
|
+
*/
|
|
54338
|
+
proto.clarifai.api.DatasetVersionRequestOrigin = {
|
|
54339
|
+
DATASET_VERSION_REQUEST_ORIGIN_NOT_SET: 0,
|
|
54340
|
+
MANUAL: 1,
|
|
54341
|
+
TRAINING: 2,
|
|
54342
|
+
EVAL_GROUND_TRUTH: 3,
|
|
54343
|
+
EVAL_PREDICTIONS: 4
|
|
54344
|
+
};
|
|
54345
|
+
/**
|
|
54346
|
+
* @enum {number}
|
|
54347
|
+
*/
|
|
54348
|
+
proto.clarifai.api.DatasetVersionMetricsGroupType = {
|
|
54349
|
+
DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET: 0,
|
|
54350
|
+
INPUT_TYPE: 2,
|
|
54351
|
+
CONCEPT_ID: 10,
|
|
54352
|
+
CONCEPTS_COUNT: 11,
|
|
54353
|
+
BOUNDING_BOXES_COUNT: 20,
|
|
54354
|
+
POLYGONS_COUNT: 21,
|
|
54355
|
+
POINTS_COUNT: 22,
|
|
54356
|
+
MASKS_COUNT: 23,
|
|
54357
|
+
PIXELS_COUNT: 30,
|
|
54358
|
+
ASPECT_RATIO: 31
|
|
54359
|
+
};
|
|
54360
|
+
/**
|
|
54361
|
+
* @enum {number}
|
|
54362
|
+
*/
|
|
54363
|
+
proto.clarifai.api.DatasetVersionExportFormat = {
|
|
54364
|
+
DATASET_VERSION_EXPORT_FORMAT_NOT_SET: 0,
|
|
54365
|
+
CLARIFAI_DATA_PROTOBUF: 1,
|
|
54366
|
+
CLARIFAI_DATA_JSON: 3,
|
|
54367
|
+
COCO: 2
|
|
54368
|
+
};
|
|
54369
|
+
/**
|
|
54370
|
+
* @enum {number}
|
|
54371
|
+
*/
|
|
54372
|
+
proto.clarifai.api.ExpirationAction = {
|
|
54373
|
+
EXPIRATION_ACTION_NOT_SET: 0,
|
|
54374
|
+
DELAY: 1,
|
|
54375
|
+
EXPIRY: 2
|
|
54376
|
+
};
|
|
54377
|
+
/**
|
|
54378
|
+
* @enum {number}
|
|
54379
|
+
*/
|
|
54380
|
+
proto.clarifai.api.LicenseScope = {
|
|
54381
|
+
LICENSE_SCOPE_NOT_SET: 0,
|
|
54382
|
+
PREDICT: 1,
|
|
54383
|
+
TRAIN: 2,
|
|
54384
|
+
SEARCH: 3
|
|
54385
|
+
};
|
|
54386
|
+
/**
|
|
54387
|
+
* @enum {number}
|
|
54388
|
+
*/
|
|
54389
|
+
proto.clarifai.api.DataType = {
|
|
54390
|
+
UNDEFINED: 0,
|
|
54391
|
+
STRING: 1,
|
|
54392
|
+
UINT8: 2,
|
|
54393
|
+
INT32: 3,
|
|
54394
|
+
INT64: 4,
|
|
54395
|
+
FP32: 5
|
|
54396
|
+
};
|
|
54397
|
+
/**
|
|
54398
|
+
* @enum {number}
|
|
54399
|
+
*/
|
|
54400
|
+
proto.clarifai.api.ValueComparator = {
|
|
54401
|
+
CONCEPT_THRESHOLD_NOT_SET: 0,
|
|
54402
|
+
GREATER_THAN: 1,
|
|
54403
|
+
GREATER_THAN_OR_EQUAL: 2,
|
|
54404
|
+
LESS_THAN: 3,
|
|
54405
|
+
LESS_THAN_OR_EQUAL: 4,
|
|
54406
|
+
EQUAL: 5
|
|
54407
|
+
};
|
|
54408
|
+
/**
|
|
54409
|
+
* @enum {number}
|
|
54410
|
+
*/
|
|
54411
|
+
proto.clarifai.api.EvaluationType = {
|
|
54412
|
+
UNDEFINED: 0,
|
|
54413
|
+
CLASSIFICATION: 1,
|
|
54414
|
+
DETECTION: 2,
|
|
54415
|
+
SEGMENTATION: 3,
|
|
54416
|
+
CLUSTERING: 4,
|
|
54417
|
+
TRACKER: 5,
|
|
54418
|
+
GENERATION: 6
|
|
54419
|
+
};
|
|
54420
|
+
/**
|
|
54421
|
+
* @enum {number}
|
|
54422
|
+
*/
|
|
54423
|
+
proto.clarifai.api.APIEventType = {
|
|
54424
|
+
API_EVENT_TYPE_NOT_SET: 0,
|
|
54425
|
+
ON_PREM_PREDICT: 1,
|
|
54426
|
+
ON_PREM_TRAIN: 2,
|
|
54427
|
+
ON_PREM_SEARCH: 3
|
|
54428
|
+
};
|
|
54429
|
+
/**
|
|
54430
|
+
* @enum {number}
|
|
54431
|
+
*/
|
|
54432
|
+
proto.clarifai.api.UsageIntervalType = {
|
|
54433
|
+
UNDEF: 0,
|
|
54434
|
+
DAY: 1,
|
|
54435
|
+
MONTH: 2,
|
|
54436
|
+
YEAR: 3
|
|
54437
|
+
};
|
|
54438
|
+
/**
|
|
54439
|
+
* @enum {number}
|
|
54440
|
+
*/
|
|
54441
|
+
proto.clarifai.api.AnnotationDataType = {
|
|
54442
|
+
ANNOTATION_DATA_TYPE_NOT_SET: 0,
|
|
54443
|
+
TAG: 1,
|
|
54444
|
+
BOUNDING_BOX: 2,
|
|
54445
|
+
POLYGON: 4,
|
|
54446
|
+
POINT: 8,
|
|
54447
|
+
SPAN: 16,
|
|
54448
|
+
MASK: 32
|
|
54449
|
+
};
|
|
54450
|
+
/**
|
|
54451
|
+
* @enum {number}
|
|
54452
|
+
*/
|
|
54453
|
+
proto.clarifai.api.RoleType = {
|
|
54454
|
+
TEAM: 0,
|
|
54455
|
+
ORG: 1
|
|
54456
|
+
};
|
|
54457
|
+
/**
|
|
54458
|
+
* @enum {number}
|
|
54459
|
+
*/
|
|
54460
|
+
proto.clarifai.api.StatValueAggType = {
|
|
54461
|
+
SUM: 0,
|
|
54462
|
+
AVG: 1
|
|
54463
|
+
};
|
|
54464
|
+
/**
|
|
54465
|
+
* @enum {number}
|
|
54466
|
+
*/
|
|
54467
|
+
proto.clarifai.api.StatTimeAggType = {
|
|
54468
|
+
NO_TIME_AGG: 0,
|
|
54469
|
+
YEAR: 1,
|
|
54470
|
+
MONTH: 2,
|
|
54471
|
+
WEEK: 3,
|
|
54472
|
+
DAY: 4,
|
|
54473
|
+
HOUR: 5,
|
|
54474
|
+
MINUTE: 6
|
|
54475
|
+
};
|
|
54476
|
+
/**
|
|
54477
|
+
* @enum {number}
|
|
54478
|
+
*/
|
|
54479
|
+
proto.clarifai.api.ValidationErrorType = {
|
|
54480
|
+
VALIDATION_ERROR_TYPE_NOT_SET: 0,
|
|
54481
|
+
RESTRICTED: 1,
|
|
54482
|
+
DATABASE: 2,
|
|
54483
|
+
FORMAT: 3
|
|
54484
|
+
};
|
|
54485
|
+
/**
|
|
54486
|
+
* @enum {number}
|
|
54487
|
+
*/
|
|
54488
|
+
proto.clarifai.api.InputIDConflictResolution = {
|
|
54489
|
+
INPUT_ID_CONFLICT_RESOLUTION_NOT_SET: 0,
|
|
54490
|
+
SKIP: 1,
|
|
54491
|
+
SUFFIX: 2
|
|
54492
|
+
};
|
|
54493
|
+
/**
|
|
54494
|
+
* @enum {number}
|
|
54495
|
+
*/
|
|
54496
|
+
proto.clarifai.api.RunnerMethodType = {
|
|
54497
|
+
UNKNOWN: 0,
|
|
54498
|
+
UNARY_UNARY: 1,
|
|
54499
|
+
UNARY_STREAMING: 2,
|
|
54500
|
+
STREAMING_UNARY: 3,
|
|
54501
|
+
STREAMING_STREAMING: 4
|
|
51895
54502
|
};
|
|
51896
54503
|
goog.object.extend(exports, proto.clarifai.api);
|