clarifai-web-grpc 10.2.1 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +2102 -4
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +0 -42
- package/dist/cjs/proto/clarifai/api/service_pb.js +731 -416
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +2 -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 +2102 -4
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +0 -42
- package/dist/esm/proto/clarifai/api/service_pb.js +731 -416
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +2 -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 +347 -0
- package/proto/clarifai/api/resources_pb.js +2629 -4
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +0 -12
- package/proto/clarifai/api/service_grpc_web_pb.js +0 -61
- package/proto/clarifai/api/service_pb.d.ts +106 -64
- package/proto/clarifai/api/service_pb.js +918 -510
- package/proto/clarifai/api/status/status_code_pb.d.ts +2 -0
- package/proto/clarifai/api/status/status_code_pb.js +2 -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
|
@@ -58,19 +58,24 @@ goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
|
|
|
58
58
|
goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
|
|
59
59
|
goog.exportSymbol('proto.clarifai.api.Audio', null, global);
|
|
60
60
|
goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
|
|
61
|
+
goog.exportSymbol('proto.clarifai.api.AutoscaleConfig', null, global);
|
|
61
62
|
goog.exportSymbol('proto.clarifai.api.AzureBlobCreds', null, global);
|
|
62
63
|
goog.exportSymbol('proto.clarifai.api.BinaryMetrics', null, global);
|
|
63
64
|
goog.exportSymbol('proto.clarifai.api.BookmarkOrigin', null, global);
|
|
64
65
|
goog.exportSymbol('proto.clarifai.api.BookmarkOrigin.BookmarkType', null, global);
|
|
65
66
|
goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global);
|
|
67
|
+
goog.exportSymbol('proto.clarifai.api.BuildInfo', null, global);
|
|
66
68
|
goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global);
|
|
67
69
|
goog.exportSymbol('proto.clarifai.api.BulkOperation.InputSourceCase', null, global);
|
|
70
|
+
goog.exportSymbol('proto.clarifai.api.CloudRegion', null, global);
|
|
71
|
+
goog.exportSymbol('proto.clarifai.api.CloudRegion.Cloud', null, global);
|
|
68
72
|
goog.exportSymbol('proto.clarifai.api.Cluster', null, global);
|
|
69
73
|
goog.exportSymbol('proto.clarifai.api.Collaboration', null, global);
|
|
70
74
|
goog.exportSymbol('proto.clarifai.api.Collaborator', null, global);
|
|
71
75
|
goog.exportSymbol('proto.clarifai.api.Collector', null, global);
|
|
72
76
|
goog.exportSymbol('proto.clarifai.api.CollectorSource', null, global);
|
|
73
77
|
goog.exportSymbol('proto.clarifai.api.Color', null, global);
|
|
78
|
+
goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
|
|
74
79
|
goog.exportSymbol('proto.clarifai.api.Concept', null, global);
|
|
75
80
|
goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
|
|
76
81
|
goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
|
|
@@ -107,6 +112,9 @@ goog.exportSymbol('proto.clarifai.api.DeleteConcepts', null, global);
|
|
|
107
112
|
goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global);
|
|
108
113
|
goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global);
|
|
109
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);
|
|
110
118
|
goog.exportSymbol('proto.clarifai.api.DetailConceptCount', null, global);
|
|
111
119
|
goog.exportSymbol('proto.clarifai.api.DuplicateAnnotationsResults', null, global);
|
|
112
120
|
goog.exportSymbol('proto.clarifai.api.EmailAddress', null, global);
|
|
@@ -180,6 +188,8 @@ goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global);
|
|
|
180
188
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global);
|
|
181
189
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global);
|
|
182
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);
|
|
183
193
|
goog.exportSymbol('proto.clarifai.api.Operation', null, global);
|
|
184
194
|
goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
|
|
185
195
|
goog.exportSymbol('proto.clarifai.api.Output', null, global);
|
|
@@ -203,6 +213,8 @@ goog.exportSymbol('proto.clarifai.api.Region', null, global);
|
|
|
203
213
|
goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
|
|
204
214
|
goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
|
|
205
215
|
goog.exportSymbol('proto.clarifai.api.Runner', null, global);
|
|
216
|
+
goog.exportSymbol('proto.clarifai.api.Runner.ObjectCase', null, global);
|
|
217
|
+
goog.exportSymbol('proto.clarifai.api.RunnerSelector', null, global);
|
|
206
218
|
goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
|
|
207
219
|
goog.exportSymbol('proto.clarifai.api.Search', null, global);
|
|
208
220
|
goog.exportSymbol('proto.clarifai.api.Search.Metric', null, global);
|
|
@@ -1993,6 +2005,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1993
2005
|
*/
|
|
1994
2006
|
proto.clarifai.api.ModelVersion.displayName = 'proto.clarifai.api.ModelVersion';
|
|
1995
2007
|
}
|
|
2008
|
+
/**
|
|
2009
|
+
* Generated by JsPbCodeGenerator.
|
|
2010
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2011
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2012
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2013
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2014
|
+
* valid.
|
|
2015
|
+
* @extends {jspb.Message}
|
|
2016
|
+
* @constructor
|
|
2017
|
+
*/
|
|
2018
|
+
proto.clarifai.api.BuildInfo = function(opt_data) {
|
|
2019
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2020
|
+
};
|
|
2021
|
+
goog.inherits(proto.clarifai.api.BuildInfo, jspb.Message);
|
|
2022
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2023
|
+
/**
|
|
2024
|
+
* @public
|
|
2025
|
+
* @override
|
|
2026
|
+
*/
|
|
2027
|
+
proto.clarifai.api.BuildInfo.displayName = 'proto.clarifai.api.BuildInfo';
|
|
2028
|
+
}
|
|
1996
2029
|
/**
|
|
1997
2030
|
* Generated by JsPbCodeGenerator.
|
|
1998
2031
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4440,7 +4473,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4440
4473
|
* @constructor
|
|
4441
4474
|
*/
|
|
4442
4475
|
proto.clarifai.api.Runner = function(opt_data) {
|
|
4443
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_,
|
|
4476
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, proto.clarifai.api.Runner.oneofGroups_);
|
|
4444
4477
|
};
|
|
4445
4478
|
goog.inherits(proto.clarifai.api.Runner, jspb.Message);
|
|
4446
4479
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -4450,6 +4483,132 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4450
4483
|
*/
|
|
4451
4484
|
proto.clarifai.api.Runner.displayName = 'proto.clarifai.api.Runner';
|
|
4452
4485
|
}
|
|
4486
|
+
/**
|
|
4487
|
+
* Generated by JsPbCodeGenerator.
|
|
4488
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4489
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4490
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4491
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4492
|
+
* valid.
|
|
4493
|
+
* @extends {jspb.Message}
|
|
4494
|
+
* @constructor
|
|
4495
|
+
*/
|
|
4496
|
+
proto.clarifai.api.Nodepool = function(opt_data) {
|
|
4497
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Nodepool.repeatedFields_, null);
|
|
4498
|
+
};
|
|
4499
|
+
goog.inherits(proto.clarifai.api.Nodepool, jspb.Message);
|
|
4500
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4501
|
+
/**
|
|
4502
|
+
* @public
|
|
4503
|
+
* @override
|
|
4504
|
+
*/
|
|
4505
|
+
proto.clarifai.api.Nodepool.displayName = 'proto.clarifai.api.Nodepool';
|
|
4506
|
+
}
|
|
4507
|
+
/**
|
|
4508
|
+
* Generated by JsPbCodeGenerator.
|
|
4509
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4510
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4511
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4512
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4513
|
+
* valid.
|
|
4514
|
+
* @extends {jspb.Message}
|
|
4515
|
+
* @constructor
|
|
4516
|
+
*/
|
|
4517
|
+
proto.clarifai.api.CloudRegion = function(opt_data) {
|
|
4518
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4519
|
+
};
|
|
4520
|
+
goog.inherits(proto.clarifai.api.CloudRegion, jspb.Message);
|
|
4521
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4522
|
+
/**
|
|
4523
|
+
* @public
|
|
4524
|
+
* @override
|
|
4525
|
+
*/
|
|
4526
|
+
proto.clarifai.api.CloudRegion.displayName = 'proto.clarifai.api.CloudRegion';
|
|
4527
|
+
}
|
|
4528
|
+
/**
|
|
4529
|
+
* Generated by JsPbCodeGenerator.
|
|
4530
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4531
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4532
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4533
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4534
|
+
* valid.
|
|
4535
|
+
* @extends {jspb.Message}
|
|
4536
|
+
* @constructor
|
|
4537
|
+
*/
|
|
4538
|
+
proto.clarifai.api.ComputeInfo = function(opt_data) {
|
|
4539
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ComputeInfo.repeatedFields_, null);
|
|
4540
|
+
};
|
|
4541
|
+
goog.inherits(proto.clarifai.api.ComputeInfo, jspb.Message);
|
|
4542
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4543
|
+
/**
|
|
4544
|
+
* @public
|
|
4545
|
+
* @override
|
|
4546
|
+
*/
|
|
4547
|
+
proto.clarifai.api.ComputeInfo.displayName = 'proto.clarifai.api.ComputeInfo';
|
|
4548
|
+
}
|
|
4549
|
+
/**
|
|
4550
|
+
* Generated by JsPbCodeGenerator.
|
|
4551
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4552
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4553
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4554
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4555
|
+
* valid.
|
|
4556
|
+
* @extends {jspb.Message}
|
|
4557
|
+
* @constructor
|
|
4558
|
+
*/
|
|
4559
|
+
proto.clarifai.api.AutoscaleConfig = function(opt_data) {
|
|
4560
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4561
|
+
};
|
|
4562
|
+
goog.inherits(proto.clarifai.api.AutoscaleConfig, jspb.Message);
|
|
4563
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4564
|
+
/**
|
|
4565
|
+
* @public
|
|
4566
|
+
* @override
|
|
4567
|
+
*/
|
|
4568
|
+
proto.clarifai.api.AutoscaleConfig.displayName = 'proto.clarifai.api.AutoscaleConfig';
|
|
4569
|
+
}
|
|
4570
|
+
/**
|
|
4571
|
+
* Generated by JsPbCodeGenerator.
|
|
4572
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4573
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4574
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4575
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4576
|
+
* valid.
|
|
4577
|
+
* @extends {jspb.Message}
|
|
4578
|
+
* @constructor
|
|
4579
|
+
*/
|
|
4580
|
+
proto.clarifai.api.Deployment = function(opt_data) {
|
|
4581
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Deployment.repeatedFields_, proto.clarifai.api.Deployment.oneofGroups_);
|
|
4582
|
+
};
|
|
4583
|
+
goog.inherits(proto.clarifai.api.Deployment, jspb.Message);
|
|
4584
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4585
|
+
/**
|
|
4586
|
+
* @public
|
|
4587
|
+
* @override
|
|
4588
|
+
*/
|
|
4589
|
+
proto.clarifai.api.Deployment.displayName = 'proto.clarifai.api.Deployment';
|
|
4590
|
+
}
|
|
4591
|
+
/**
|
|
4592
|
+
* Generated by JsPbCodeGenerator.
|
|
4593
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4594
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4595
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4596
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4597
|
+
* valid.
|
|
4598
|
+
* @extends {jspb.Message}
|
|
4599
|
+
* @constructor
|
|
4600
|
+
*/
|
|
4601
|
+
proto.clarifai.api.RunnerSelector = function(opt_data) {
|
|
4602
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4603
|
+
};
|
|
4604
|
+
goog.inherits(proto.clarifai.api.RunnerSelector, jspb.Message);
|
|
4605
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4606
|
+
/**
|
|
4607
|
+
* @public
|
|
4608
|
+
* @override
|
|
4609
|
+
*/
|
|
4610
|
+
proto.clarifai.api.RunnerSelector.displayName = 'proto.clarifai.api.RunnerSelector';
|
|
4611
|
+
}
|
|
4453
4612
|
|
|
4454
4613
|
|
|
4455
4614
|
|
|
@@ -29511,7 +29670,9 @@ proto.clarifai.api.ModelVersion.toObject = function(includeInstance, msg) {
|
|
|
29511
29670
|
inputInfo: (f = msg.getInputInfo()) && proto.clarifai.api.InputInfo.toObject(includeInstance, f),
|
|
29512
29671
|
trainInfo: (f = msg.getTrainInfo()) && proto.clarifai.api.TrainInfo.toObject(includeInstance, f),
|
|
29513
29672
|
importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f),
|
|
29514
|
-
trainLog: jspb.Message.getFieldWithDefault(msg, 23, "")
|
|
29673
|
+
trainLog: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
|
29674
|
+
inferenceComputeInfo: (f = msg.getInferenceComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
|
|
29675
|
+
buildInfo: (f = msg.getBuildInfo()) && proto.clarifai.api.BuildInfo.toObject(includeInstance, f)
|
|
29515
29676
|
};
|
|
29516
29677
|
|
|
29517
29678
|
if (includeInstance) {
|
|
@@ -29640,6 +29801,16 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function(msg, read
|
|
|
29640
29801
|
var value = /** @type {string} */ (reader.readString());
|
|
29641
29802
|
msg.setTrainLog(value);
|
|
29642
29803
|
break;
|
|
29804
|
+
case 24:
|
|
29805
|
+
var value = new proto.clarifai.api.ComputeInfo;
|
|
29806
|
+
reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
29807
|
+
msg.setInferenceComputeInfo(value);
|
|
29808
|
+
break;
|
|
29809
|
+
case 25:
|
|
29810
|
+
var value = new proto.clarifai.api.BuildInfo;
|
|
29811
|
+
reader.readMessage(value,proto.clarifai.api.BuildInfo.deserializeBinaryFromReader);
|
|
29812
|
+
msg.setBuildInfo(value);
|
|
29813
|
+
break;
|
|
29643
29814
|
default:
|
|
29644
29815
|
reader.skipField();
|
|
29645
29816
|
break;
|
|
@@ -29821,6 +29992,22 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function(message, writ
|
|
|
29821
29992
|
f
|
|
29822
29993
|
);
|
|
29823
29994
|
}
|
|
29995
|
+
f = message.getInferenceComputeInfo();
|
|
29996
|
+
if (f != null) {
|
|
29997
|
+
writer.writeMessage(
|
|
29998
|
+
24,
|
|
29999
|
+
f,
|
|
30000
|
+
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
|
|
30001
|
+
);
|
|
30002
|
+
}
|
|
30003
|
+
f = message.getBuildInfo();
|
|
30004
|
+
if (f != null) {
|
|
30005
|
+
writer.writeMessage(
|
|
30006
|
+
25,
|
|
30007
|
+
f,
|
|
30008
|
+
proto.clarifai.api.BuildInfo.serializeBinaryToWriter
|
|
30009
|
+
);
|
|
30010
|
+
}
|
|
29824
30011
|
};
|
|
29825
30012
|
|
|
29826
30013
|
|
|
@@ -30412,6 +30599,270 @@ proto.clarifai.api.ModelVersion.prototype.setTrainLog = function(value) {
|
|
|
30412
30599
|
};
|
|
30413
30600
|
|
|
30414
30601
|
|
|
30602
|
+
/**
|
|
30603
|
+
* optional ComputeInfo inference_compute_info = 24;
|
|
30604
|
+
* @return {?proto.clarifai.api.ComputeInfo}
|
|
30605
|
+
*/
|
|
30606
|
+
proto.clarifai.api.ModelVersion.prototype.getInferenceComputeInfo = function() {
|
|
30607
|
+
return /** @type{?proto.clarifai.api.ComputeInfo} */ (
|
|
30608
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 24));
|
|
30609
|
+
};
|
|
30610
|
+
|
|
30611
|
+
|
|
30612
|
+
/**
|
|
30613
|
+
* @param {?proto.clarifai.api.ComputeInfo|undefined} value
|
|
30614
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
30615
|
+
*/
|
|
30616
|
+
proto.clarifai.api.ModelVersion.prototype.setInferenceComputeInfo = function(value) {
|
|
30617
|
+
return jspb.Message.setWrapperField(this, 24, value);
|
|
30618
|
+
};
|
|
30619
|
+
|
|
30620
|
+
|
|
30621
|
+
/**
|
|
30622
|
+
* Clears the message field making it undefined.
|
|
30623
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
30624
|
+
*/
|
|
30625
|
+
proto.clarifai.api.ModelVersion.prototype.clearInferenceComputeInfo = function() {
|
|
30626
|
+
return this.setInferenceComputeInfo(undefined);
|
|
30627
|
+
};
|
|
30628
|
+
|
|
30629
|
+
|
|
30630
|
+
/**
|
|
30631
|
+
* Returns whether this field is set.
|
|
30632
|
+
* @return {boolean}
|
|
30633
|
+
*/
|
|
30634
|
+
proto.clarifai.api.ModelVersion.prototype.hasInferenceComputeInfo = function() {
|
|
30635
|
+
return jspb.Message.getField(this, 24) != null;
|
|
30636
|
+
};
|
|
30637
|
+
|
|
30638
|
+
|
|
30639
|
+
/**
|
|
30640
|
+
* optional BuildInfo build_info = 25;
|
|
30641
|
+
* @return {?proto.clarifai.api.BuildInfo}
|
|
30642
|
+
*/
|
|
30643
|
+
proto.clarifai.api.ModelVersion.prototype.getBuildInfo = function() {
|
|
30644
|
+
return /** @type{?proto.clarifai.api.BuildInfo} */ (
|
|
30645
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.BuildInfo, 25));
|
|
30646
|
+
};
|
|
30647
|
+
|
|
30648
|
+
|
|
30649
|
+
/**
|
|
30650
|
+
* @param {?proto.clarifai.api.BuildInfo|undefined} value
|
|
30651
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
30652
|
+
*/
|
|
30653
|
+
proto.clarifai.api.ModelVersion.prototype.setBuildInfo = function(value) {
|
|
30654
|
+
return jspb.Message.setWrapperField(this, 25, value);
|
|
30655
|
+
};
|
|
30656
|
+
|
|
30657
|
+
|
|
30658
|
+
/**
|
|
30659
|
+
* Clears the message field making it undefined.
|
|
30660
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
30661
|
+
*/
|
|
30662
|
+
proto.clarifai.api.ModelVersion.prototype.clearBuildInfo = function() {
|
|
30663
|
+
return this.setBuildInfo(undefined);
|
|
30664
|
+
};
|
|
30665
|
+
|
|
30666
|
+
|
|
30667
|
+
/**
|
|
30668
|
+
* Returns whether this field is set.
|
|
30669
|
+
* @return {boolean}
|
|
30670
|
+
*/
|
|
30671
|
+
proto.clarifai.api.ModelVersion.prototype.hasBuildInfo = function() {
|
|
30672
|
+
return jspb.Message.getField(this, 25) != null;
|
|
30673
|
+
};
|
|
30674
|
+
|
|
30675
|
+
|
|
30676
|
+
|
|
30677
|
+
|
|
30678
|
+
|
|
30679
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
30680
|
+
/**
|
|
30681
|
+
* Creates an object representation of this proto.
|
|
30682
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
30683
|
+
* Optional fields that are not set will be set to undefined.
|
|
30684
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
30685
|
+
* For the list of reserved names please see:
|
|
30686
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
30687
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
30688
|
+
* JSPB instance for transitional soy proto support:
|
|
30689
|
+
* http://goto/soy-param-migration
|
|
30690
|
+
* @return {!Object}
|
|
30691
|
+
*/
|
|
30692
|
+
proto.clarifai.api.BuildInfo.prototype.toObject = function(opt_includeInstance) {
|
|
30693
|
+
return proto.clarifai.api.BuildInfo.toObject(opt_includeInstance, this);
|
|
30694
|
+
};
|
|
30695
|
+
|
|
30696
|
+
|
|
30697
|
+
/**
|
|
30698
|
+
* Static version of the {@see toObject} method.
|
|
30699
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
30700
|
+
* the JSPB instance for transitional soy proto support:
|
|
30701
|
+
* http://goto/soy-param-migration
|
|
30702
|
+
* @param {!proto.clarifai.api.BuildInfo} msg The msg instance to transform.
|
|
30703
|
+
* @return {!Object}
|
|
30704
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30705
|
+
*/
|
|
30706
|
+
proto.clarifai.api.BuildInfo.toObject = function(includeInstance, msg) {
|
|
30707
|
+
var f, obj = {
|
|
30708
|
+
dockerImageName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
30709
|
+
dockerImageTag: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
30710
|
+
dockerImageDigest: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
30711
|
+
};
|
|
30712
|
+
|
|
30713
|
+
if (includeInstance) {
|
|
30714
|
+
obj.$jspbMessageInstance = msg;
|
|
30715
|
+
}
|
|
30716
|
+
return obj;
|
|
30717
|
+
};
|
|
30718
|
+
}
|
|
30719
|
+
|
|
30720
|
+
|
|
30721
|
+
/**
|
|
30722
|
+
* Deserializes binary data (in protobuf wire format).
|
|
30723
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
30724
|
+
* @return {!proto.clarifai.api.BuildInfo}
|
|
30725
|
+
*/
|
|
30726
|
+
proto.clarifai.api.BuildInfo.deserializeBinary = function(bytes) {
|
|
30727
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
30728
|
+
var msg = new proto.clarifai.api.BuildInfo;
|
|
30729
|
+
return proto.clarifai.api.BuildInfo.deserializeBinaryFromReader(msg, reader);
|
|
30730
|
+
};
|
|
30731
|
+
|
|
30732
|
+
|
|
30733
|
+
/**
|
|
30734
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
30735
|
+
* given reader into the given message object.
|
|
30736
|
+
* @param {!proto.clarifai.api.BuildInfo} msg The message object to deserialize into.
|
|
30737
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
30738
|
+
* @return {!proto.clarifai.api.BuildInfo}
|
|
30739
|
+
*/
|
|
30740
|
+
proto.clarifai.api.BuildInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
30741
|
+
while (reader.nextField()) {
|
|
30742
|
+
if (reader.isEndGroup()) {
|
|
30743
|
+
break;
|
|
30744
|
+
}
|
|
30745
|
+
var field = reader.getFieldNumber();
|
|
30746
|
+
switch (field) {
|
|
30747
|
+
case 1:
|
|
30748
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30749
|
+
msg.setDockerImageName(value);
|
|
30750
|
+
break;
|
|
30751
|
+
case 2:
|
|
30752
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30753
|
+
msg.setDockerImageTag(value);
|
|
30754
|
+
break;
|
|
30755
|
+
case 3:
|
|
30756
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30757
|
+
msg.setDockerImageDigest(value);
|
|
30758
|
+
break;
|
|
30759
|
+
default:
|
|
30760
|
+
reader.skipField();
|
|
30761
|
+
break;
|
|
30762
|
+
}
|
|
30763
|
+
}
|
|
30764
|
+
return msg;
|
|
30765
|
+
};
|
|
30766
|
+
|
|
30767
|
+
|
|
30768
|
+
/**
|
|
30769
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
30770
|
+
* @return {!Uint8Array}
|
|
30771
|
+
*/
|
|
30772
|
+
proto.clarifai.api.BuildInfo.prototype.serializeBinary = function() {
|
|
30773
|
+
var writer = new jspb.BinaryWriter();
|
|
30774
|
+
proto.clarifai.api.BuildInfo.serializeBinaryToWriter(this, writer);
|
|
30775
|
+
return writer.getResultBuffer();
|
|
30776
|
+
};
|
|
30777
|
+
|
|
30778
|
+
|
|
30779
|
+
/**
|
|
30780
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
30781
|
+
* format), writing to the given BinaryWriter.
|
|
30782
|
+
* @param {!proto.clarifai.api.BuildInfo} message
|
|
30783
|
+
* @param {!jspb.BinaryWriter} writer
|
|
30784
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30785
|
+
*/
|
|
30786
|
+
proto.clarifai.api.BuildInfo.serializeBinaryToWriter = function(message, writer) {
|
|
30787
|
+
var f = undefined;
|
|
30788
|
+
f = message.getDockerImageName();
|
|
30789
|
+
if (f.length > 0) {
|
|
30790
|
+
writer.writeString(
|
|
30791
|
+
1,
|
|
30792
|
+
f
|
|
30793
|
+
);
|
|
30794
|
+
}
|
|
30795
|
+
f = message.getDockerImageTag();
|
|
30796
|
+
if (f.length > 0) {
|
|
30797
|
+
writer.writeString(
|
|
30798
|
+
2,
|
|
30799
|
+
f
|
|
30800
|
+
);
|
|
30801
|
+
}
|
|
30802
|
+
f = message.getDockerImageDigest();
|
|
30803
|
+
if (f.length > 0) {
|
|
30804
|
+
writer.writeString(
|
|
30805
|
+
3,
|
|
30806
|
+
f
|
|
30807
|
+
);
|
|
30808
|
+
}
|
|
30809
|
+
};
|
|
30810
|
+
|
|
30811
|
+
|
|
30812
|
+
/**
|
|
30813
|
+
* optional string docker_image_name = 1;
|
|
30814
|
+
* @return {string}
|
|
30815
|
+
*/
|
|
30816
|
+
proto.clarifai.api.BuildInfo.prototype.getDockerImageName = function() {
|
|
30817
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
30818
|
+
};
|
|
30819
|
+
|
|
30820
|
+
|
|
30821
|
+
/**
|
|
30822
|
+
* @param {string} value
|
|
30823
|
+
* @return {!proto.clarifai.api.BuildInfo} returns this
|
|
30824
|
+
*/
|
|
30825
|
+
proto.clarifai.api.BuildInfo.prototype.setDockerImageName = function(value) {
|
|
30826
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
30827
|
+
};
|
|
30828
|
+
|
|
30829
|
+
|
|
30830
|
+
/**
|
|
30831
|
+
* optional string docker_image_tag = 2;
|
|
30832
|
+
* @return {string}
|
|
30833
|
+
*/
|
|
30834
|
+
proto.clarifai.api.BuildInfo.prototype.getDockerImageTag = function() {
|
|
30835
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
30836
|
+
};
|
|
30837
|
+
|
|
30838
|
+
|
|
30839
|
+
/**
|
|
30840
|
+
* @param {string} value
|
|
30841
|
+
* @return {!proto.clarifai.api.BuildInfo} returns this
|
|
30842
|
+
*/
|
|
30843
|
+
proto.clarifai.api.BuildInfo.prototype.setDockerImageTag = function(value) {
|
|
30844
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
30845
|
+
};
|
|
30846
|
+
|
|
30847
|
+
|
|
30848
|
+
/**
|
|
30849
|
+
* optional string docker_image_digest = 3;
|
|
30850
|
+
* @return {string}
|
|
30851
|
+
*/
|
|
30852
|
+
proto.clarifai.api.BuildInfo.prototype.getDockerImageDigest = function() {
|
|
30853
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
30854
|
+
};
|
|
30855
|
+
|
|
30856
|
+
|
|
30857
|
+
/**
|
|
30858
|
+
* @param {string} value
|
|
30859
|
+
* @return {!proto.clarifai.api.BuildInfo} returns this
|
|
30860
|
+
*/
|
|
30861
|
+
proto.clarifai.api.BuildInfo.prototype.setDockerImageDigest = function(value) {
|
|
30862
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
30863
|
+
};
|
|
30864
|
+
|
|
30865
|
+
|
|
30415
30866
|
|
|
30416
30867
|
|
|
30417
30868
|
|
|
@@ -33975,7 +34426,9 @@ proto.clarifai.api.EvalTestSetEntry.toObject = function(includeInstance, msg) {
|
|
|
33975
34426
|
proto.clarifai.api.Concept.toObject, includeInstance),
|
|
33976
34427
|
groundTruthConceptsList: jspb.Message.toObjectList(msg.getGroundTruthConceptsList(),
|
|
33977
34428
|
proto.clarifai.api.Concept.toObject, includeInstance),
|
|
33978
|
-
annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f)
|
|
34429
|
+
annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f),
|
|
34430
|
+
predictedAnnotation: (f = msg.getPredictedAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f),
|
|
34431
|
+
groundTruthAnnotation: (f = msg.getGroundTruthAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f)
|
|
33979
34432
|
};
|
|
33980
34433
|
|
|
33981
34434
|
if (includeInstance) {
|
|
@@ -34032,6 +34485,16 @@ proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader = function(msg,
|
|
|
34032
34485
|
reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader);
|
|
34033
34486
|
msg.setAnnotation(value);
|
|
34034
34487
|
break;
|
|
34488
|
+
case 7:
|
|
34489
|
+
var value = new proto.clarifai.api.Annotation;
|
|
34490
|
+
reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader);
|
|
34491
|
+
msg.setPredictedAnnotation(value);
|
|
34492
|
+
break;
|
|
34493
|
+
case 8:
|
|
34494
|
+
var value = new proto.clarifai.api.Annotation;
|
|
34495
|
+
reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader);
|
|
34496
|
+
msg.setGroundTruthAnnotation(value);
|
|
34497
|
+
break;
|
|
34035
34498
|
default:
|
|
34036
34499
|
reader.skipField();
|
|
34037
34500
|
break;
|
|
@@ -34093,6 +34556,22 @@ proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter = function(message,
|
|
|
34093
34556
|
proto.clarifai.api.Annotation.serializeBinaryToWriter
|
|
34094
34557
|
);
|
|
34095
34558
|
}
|
|
34559
|
+
f = message.getPredictedAnnotation();
|
|
34560
|
+
if (f != null) {
|
|
34561
|
+
writer.writeMessage(
|
|
34562
|
+
7,
|
|
34563
|
+
f,
|
|
34564
|
+
proto.clarifai.api.Annotation.serializeBinaryToWriter
|
|
34565
|
+
);
|
|
34566
|
+
}
|
|
34567
|
+
f = message.getGroundTruthAnnotation();
|
|
34568
|
+
if (f != null) {
|
|
34569
|
+
writer.writeMessage(
|
|
34570
|
+
8,
|
|
34571
|
+
f,
|
|
34572
|
+
proto.clarifai.api.Annotation.serializeBinaryToWriter
|
|
34573
|
+
);
|
|
34574
|
+
}
|
|
34096
34575
|
};
|
|
34097
34576
|
|
|
34098
34577
|
|
|
@@ -34246,6 +34725,80 @@ proto.clarifai.api.EvalTestSetEntry.prototype.hasAnnotation = function() {
|
|
|
34246
34725
|
};
|
|
34247
34726
|
|
|
34248
34727
|
|
|
34728
|
+
/**
|
|
34729
|
+
* optional Annotation predicted_annotation = 7;
|
|
34730
|
+
* @return {?proto.clarifai.api.Annotation}
|
|
34731
|
+
*/
|
|
34732
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.getPredictedAnnotation = function() {
|
|
34733
|
+
return /** @type{?proto.clarifai.api.Annotation} */ (
|
|
34734
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 7));
|
|
34735
|
+
};
|
|
34736
|
+
|
|
34737
|
+
|
|
34738
|
+
/**
|
|
34739
|
+
* @param {?proto.clarifai.api.Annotation|undefined} value
|
|
34740
|
+
* @return {!proto.clarifai.api.EvalTestSetEntry} returns this
|
|
34741
|
+
*/
|
|
34742
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.setPredictedAnnotation = function(value) {
|
|
34743
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
34744
|
+
};
|
|
34745
|
+
|
|
34746
|
+
|
|
34747
|
+
/**
|
|
34748
|
+
* Clears the message field making it undefined.
|
|
34749
|
+
* @return {!proto.clarifai.api.EvalTestSetEntry} returns this
|
|
34750
|
+
*/
|
|
34751
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.clearPredictedAnnotation = function() {
|
|
34752
|
+
return this.setPredictedAnnotation(undefined);
|
|
34753
|
+
};
|
|
34754
|
+
|
|
34755
|
+
|
|
34756
|
+
/**
|
|
34757
|
+
* Returns whether this field is set.
|
|
34758
|
+
* @return {boolean}
|
|
34759
|
+
*/
|
|
34760
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.hasPredictedAnnotation = function() {
|
|
34761
|
+
return jspb.Message.getField(this, 7) != null;
|
|
34762
|
+
};
|
|
34763
|
+
|
|
34764
|
+
|
|
34765
|
+
/**
|
|
34766
|
+
* optional Annotation ground_truth_annotation = 8;
|
|
34767
|
+
* @return {?proto.clarifai.api.Annotation}
|
|
34768
|
+
*/
|
|
34769
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.getGroundTruthAnnotation = function() {
|
|
34770
|
+
return /** @type{?proto.clarifai.api.Annotation} */ (
|
|
34771
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 8));
|
|
34772
|
+
};
|
|
34773
|
+
|
|
34774
|
+
|
|
34775
|
+
/**
|
|
34776
|
+
* @param {?proto.clarifai.api.Annotation|undefined} value
|
|
34777
|
+
* @return {!proto.clarifai.api.EvalTestSetEntry} returns this
|
|
34778
|
+
*/
|
|
34779
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.setGroundTruthAnnotation = function(value) {
|
|
34780
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
34781
|
+
};
|
|
34782
|
+
|
|
34783
|
+
|
|
34784
|
+
/**
|
|
34785
|
+
* Clears the message field making it undefined.
|
|
34786
|
+
* @return {!proto.clarifai.api.EvalTestSetEntry} returns this
|
|
34787
|
+
*/
|
|
34788
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.clearGroundTruthAnnotation = function() {
|
|
34789
|
+
return this.setGroundTruthAnnotation(undefined);
|
|
34790
|
+
};
|
|
34791
|
+
|
|
34792
|
+
|
|
34793
|
+
/**
|
|
34794
|
+
* Returns whether this field is set.
|
|
34795
|
+
* @return {boolean}
|
|
34796
|
+
*/
|
|
34797
|
+
proto.clarifai.api.EvalTestSetEntry.prototype.hasGroundTruthAnnotation = function() {
|
|
34798
|
+
return jspb.Message.getField(this, 8) != null;
|
|
34799
|
+
};
|
|
34800
|
+
|
|
34801
|
+
|
|
34249
34802
|
|
|
34250
34803
|
|
|
34251
34804
|
|
|
@@ -64332,6 +64885,32 @@ proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function(value) {
|
|
|
64332
64885
|
*/
|
|
64333
64886
|
proto.clarifai.api.Runner.repeatedFields_ = [7];
|
|
64334
64887
|
|
|
64888
|
+
/**
|
|
64889
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
64890
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
64891
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
64892
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
64893
|
+
* @private {!Array<!Array<number>>}
|
|
64894
|
+
* @const
|
|
64895
|
+
*/
|
|
64896
|
+
proto.clarifai.api.Runner.oneofGroups_ = [[9,10]];
|
|
64897
|
+
|
|
64898
|
+
/**
|
|
64899
|
+
* @enum {number}
|
|
64900
|
+
*/
|
|
64901
|
+
proto.clarifai.api.Runner.ObjectCase = {
|
|
64902
|
+
OBJECT_NOT_SET: 0,
|
|
64903
|
+
MODEL: 9,
|
|
64904
|
+
WORKFLOW: 10
|
|
64905
|
+
};
|
|
64906
|
+
|
|
64907
|
+
/**
|
|
64908
|
+
* @return {proto.clarifai.api.Runner.ObjectCase}
|
|
64909
|
+
*/
|
|
64910
|
+
proto.clarifai.api.Runner.prototype.getObjectCase = function() {
|
|
64911
|
+
return /** @type {proto.clarifai.api.Runner.ObjectCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Runner.oneofGroups_[0]));
|
|
64912
|
+
};
|
|
64913
|
+
|
|
64335
64914
|
|
|
64336
64915
|
|
|
64337
64916
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -64369,7 +64948,11 @@ proto.clarifai.api.Runner.toObject = function(includeInstance, msg) {
|
|
|
64369
64948
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
64370
64949
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
64371
64950
|
userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
64372
|
-
labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
|
|
64951
|
+
labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
64952
|
+
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
64953
|
+
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
64954
|
+
nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
|
|
64955
|
+
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
|
|
64373
64956
|
};
|
|
64374
64957
|
|
|
64375
64958
|
if (includeInstance) {
|
|
@@ -64437,6 +65020,26 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
64437
65020
|
var value = /** @type {string} */ (reader.readString());
|
|
64438
65021
|
msg.addLabels(value);
|
|
64439
65022
|
break;
|
|
65023
|
+
case 9:
|
|
65024
|
+
var value = new proto.clarifai.api.Model;
|
|
65025
|
+
reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
65026
|
+
msg.setModel(value);
|
|
65027
|
+
break;
|
|
65028
|
+
case 10:
|
|
65029
|
+
var value = new proto.clarifai.api.Workflow;
|
|
65030
|
+
reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
65031
|
+
msg.setWorkflow(value);
|
|
65032
|
+
break;
|
|
65033
|
+
case 12:
|
|
65034
|
+
var value = new proto.clarifai.api.Nodepool;
|
|
65035
|
+
reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
65036
|
+
msg.setNodepool(value);
|
|
65037
|
+
break;
|
|
65038
|
+
case 13:
|
|
65039
|
+
var value = new proto.clarifai.api.ComputeInfo;
|
|
65040
|
+
reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
65041
|
+
msg.setComputeInfo(value);
|
|
65042
|
+
break;
|
|
64440
65043
|
default:
|
|
64441
65044
|
reader.skipField();
|
|
64442
65045
|
break;
|
|
@@ -64518,6 +65121,38 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) {
|
|
|
64518
65121
|
f
|
|
64519
65122
|
);
|
|
64520
65123
|
}
|
|
65124
|
+
f = message.getModel();
|
|
65125
|
+
if (f != null) {
|
|
65126
|
+
writer.writeMessage(
|
|
65127
|
+
9,
|
|
65128
|
+
f,
|
|
65129
|
+
proto.clarifai.api.Model.serializeBinaryToWriter
|
|
65130
|
+
);
|
|
65131
|
+
}
|
|
65132
|
+
f = message.getWorkflow();
|
|
65133
|
+
if (f != null) {
|
|
65134
|
+
writer.writeMessage(
|
|
65135
|
+
10,
|
|
65136
|
+
f,
|
|
65137
|
+
proto.clarifai.api.Workflow.serializeBinaryToWriter
|
|
65138
|
+
);
|
|
65139
|
+
}
|
|
65140
|
+
f = message.getNodepool();
|
|
65141
|
+
if (f != null) {
|
|
65142
|
+
writer.writeMessage(
|
|
65143
|
+
12,
|
|
65144
|
+
f,
|
|
65145
|
+
proto.clarifai.api.Nodepool.serializeBinaryToWriter
|
|
65146
|
+
);
|
|
65147
|
+
}
|
|
65148
|
+
f = message.getComputeInfo();
|
|
65149
|
+
if (f != null) {
|
|
65150
|
+
writer.writeMessage(
|
|
65151
|
+
13,
|
|
65152
|
+
f,
|
|
65153
|
+
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
|
|
65154
|
+
);
|
|
65155
|
+
}
|
|
64521
65156
|
};
|
|
64522
65157
|
|
|
64523
65158
|
|
|
@@ -64723,6 +65358,1996 @@ proto.clarifai.api.Runner.prototype.clearLabelsList = function() {
|
|
|
64723
65358
|
};
|
|
64724
65359
|
|
|
64725
65360
|
|
|
65361
|
+
/**
|
|
65362
|
+
* optional Model model = 9;
|
|
65363
|
+
* @return {?proto.clarifai.api.Model}
|
|
65364
|
+
*/
|
|
65365
|
+
proto.clarifai.api.Runner.prototype.getModel = function() {
|
|
65366
|
+
return /** @type{?proto.clarifai.api.Model} */ (
|
|
65367
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 9));
|
|
65368
|
+
};
|
|
65369
|
+
|
|
65370
|
+
|
|
65371
|
+
/**
|
|
65372
|
+
* @param {?proto.clarifai.api.Model|undefined} value
|
|
65373
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
65374
|
+
*/
|
|
65375
|
+
proto.clarifai.api.Runner.prototype.setModel = function(value) {
|
|
65376
|
+
return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.Runner.oneofGroups_[0], value);
|
|
65377
|
+
};
|
|
65378
|
+
|
|
65379
|
+
|
|
65380
|
+
/**
|
|
65381
|
+
* Clears the message field making it undefined.
|
|
65382
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
65383
|
+
*/
|
|
65384
|
+
proto.clarifai.api.Runner.prototype.clearModel = function() {
|
|
65385
|
+
return this.setModel(undefined);
|
|
65386
|
+
};
|
|
65387
|
+
|
|
65388
|
+
|
|
65389
|
+
/**
|
|
65390
|
+
* Returns whether this field is set.
|
|
65391
|
+
* @return {boolean}
|
|
65392
|
+
*/
|
|
65393
|
+
proto.clarifai.api.Runner.prototype.hasModel = function() {
|
|
65394
|
+
return jspb.Message.getField(this, 9) != null;
|
|
65395
|
+
};
|
|
65396
|
+
|
|
65397
|
+
|
|
65398
|
+
/**
|
|
65399
|
+
* optional Workflow workflow = 10;
|
|
65400
|
+
* @return {?proto.clarifai.api.Workflow}
|
|
65401
|
+
*/
|
|
65402
|
+
proto.clarifai.api.Runner.prototype.getWorkflow = function() {
|
|
65403
|
+
return /** @type{?proto.clarifai.api.Workflow} */ (
|
|
65404
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 10));
|
|
65405
|
+
};
|
|
65406
|
+
|
|
65407
|
+
|
|
65408
|
+
/**
|
|
65409
|
+
* @param {?proto.clarifai.api.Workflow|undefined} value
|
|
65410
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
65411
|
+
*/
|
|
65412
|
+
proto.clarifai.api.Runner.prototype.setWorkflow = function(value) {
|
|
65413
|
+
return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.Runner.oneofGroups_[0], value);
|
|
65414
|
+
};
|
|
65415
|
+
|
|
65416
|
+
|
|
65417
|
+
/**
|
|
65418
|
+
* Clears the message field making it undefined.
|
|
65419
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
65420
|
+
*/
|
|
65421
|
+
proto.clarifai.api.Runner.prototype.clearWorkflow = function() {
|
|
65422
|
+
return this.setWorkflow(undefined);
|
|
65423
|
+
};
|
|
65424
|
+
|
|
65425
|
+
|
|
65426
|
+
/**
|
|
65427
|
+
* Returns whether this field is set.
|
|
65428
|
+
* @return {boolean}
|
|
65429
|
+
*/
|
|
65430
|
+
proto.clarifai.api.Runner.prototype.hasWorkflow = function() {
|
|
65431
|
+
return jspb.Message.getField(this, 10) != null;
|
|
65432
|
+
};
|
|
65433
|
+
|
|
65434
|
+
|
|
65435
|
+
/**
|
|
65436
|
+
* optional Nodepool nodepool = 12;
|
|
65437
|
+
* @return {?proto.clarifai.api.Nodepool}
|
|
65438
|
+
*/
|
|
65439
|
+
proto.clarifai.api.Runner.prototype.getNodepool = function() {
|
|
65440
|
+
return /** @type{?proto.clarifai.api.Nodepool} */ (
|
|
65441
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 12));
|
|
65442
|
+
};
|
|
65443
|
+
|
|
65444
|
+
|
|
65445
|
+
/**
|
|
65446
|
+
* @param {?proto.clarifai.api.Nodepool|undefined} value
|
|
65447
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
65448
|
+
*/
|
|
65449
|
+
proto.clarifai.api.Runner.prototype.setNodepool = function(value) {
|
|
65450
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
65451
|
+
};
|
|
65452
|
+
|
|
65453
|
+
|
|
65454
|
+
/**
|
|
65455
|
+
* Clears the message field making it undefined.
|
|
65456
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
65457
|
+
*/
|
|
65458
|
+
proto.clarifai.api.Runner.prototype.clearNodepool = function() {
|
|
65459
|
+
return this.setNodepool(undefined);
|
|
65460
|
+
};
|
|
65461
|
+
|
|
65462
|
+
|
|
65463
|
+
/**
|
|
65464
|
+
* Returns whether this field is set.
|
|
65465
|
+
* @return {boolean}
|
|
65466
|
+
*/
|
|
65467
|
+
proto.clarifai.api.Runner.prototype.hasNodepool = function() {
|
|
65468
|
+
return jspb.Message.getField(this, 12) != null;
|
|
65469
|
+
};
|
|
65470
|
+
|
|
65471
|
+
|
|
65472
|
+
/**
|
|
65473
|
+
* optional ComputeInfo compute_info = 13;
|
|
65474
|
+
* @return {?proto.clarifai.api.ComputeInfo}
|
|
65475
|
+
*/
|
|
65476
|
+
proto.clarifai.api.Runner.prototype.getComputeInfo = function() {
|
|
65477
|
+
return /** @type{?proto.clarifai.api.ComputeInfo} */ (
|
|
65478
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 13));
|
|
65479
|
+
};
|
|
65480
|
+
|
|
65481
|
+
|
|
65482
|
+
/**
|
|
65483
|
+
* @param {?proto.clarifai.api.ComputeInfo|undefined} value
|
|
65484
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
65485
|
+
*/
|
|
65486
|
+
proto.clarifai.api.Runner.prototype.setComputeInfo = function(value) {
|
|
65487
|
+
return jspb.Message.setWrapperField(this, 13, value);
|
|
65488
|
+
};
|
|
65489
|
+
|
|
65490
|
+
|
|
65491
|
+
/**
|
|
65492
|
+
* Clears the message field making it undefined.
|
|
65493
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
65494
|
+
*/
|
|
65495
|
+
proto.clarifai.api.Runner.prototype.clearComputeInfo = function() {
|
|
65496
|
+
return this.setComputeInfo(undefined);
|
|
65497
|
+
};
|
|
65498
|
+
|
|
65499
|
+
|
|
65500
|
+
/**
|
|
65501
|
+
* Returns whether this field is set.
|
|
65502
|
+
* @return {boolean}
|
|
65503
|
+
*/
|
|
65504
|
+
proto.clarifai.api.Runner.prototype.hasComputeInfo = function() {
|
|
65505
|
+
return jspb.Message.getField(this, 13) != null;
|
|
65506
|
+
};
|
|
65507
|
+
|
|
65508
|
+
|
|
65509
|
+
|
|
65510
|
+
/**
|
|
65511
|
+
* List of repeated fields within this message type.
|
|
65512
|
+
* @private {!Array<number>}
|
|
65513
|
+
* @const
|
|
65514
|
+
*/
|
|
65515
|
+
proto.clarifai.api.Nodepool.repeatedFields_ = [4,8];
|
|
65516
|
+
|
|
65517
|
+
|
|
65518
|
+
|
|
65519
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
65520
|
+
/**
|
|
65521
|
+
* Creates an object representation of this proto.
|
|
65522
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
65523
|
+
* Optional fields that are not set will be set to undefined.
|
|
65524
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
65525
|
+
* For the list of reserved names please see:
|
|
65526
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
65527
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
65528
|
+
* JSPB instance for transitional soy proto support:
|
|
65529
|
+
* http://goto/soy-param-migration
|
|
65530
|
+
* @return {!Object}
|
|
65531
|
+
*/
|
|
65532
|
+
proto.clarifai.api.Nodepool.prototype.toObject = function(opt_includeInstance) {
|
|
65533
|
+
return proto.clarifai.api.Nodepool.toObject(opt_includeInstance, this);
|
|
65534
|
+
};
|
|
65535
|
+
|
|
65536
|
+
|
|
65537
|
+
/**
|
|
65538
|
+
* Static version of the {@see toObject} method.
|
|
65539
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
65540
|
+
* the JSPB instance for transitional soy proto support:
|
|
65541
|
+
* http://goto/soy-param-migration
|
|
65542
|
+
* @param {!proto.clarifai.api.Nodepool} msg The msg instance to transform.
|
|
65543
|
+
* @return {!Object}
|
|
65544
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
65545
|
+
*/
|
|
65546
|
+
proto.clarifai.api.Nodepool.toObject = function(includeInstance, msg) {
|
|
65547
|
+
var f, obj = {
|
|
65548
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
65549
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
65550
|
+
cloudRegion: (f = msg.getCloudRegion()) && proto.clarifai.api.CloudRegion.toObject(includeInstance, f),
|
|
65551
|
+
capacityTypesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
65552
|
+
instanceTypesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
|
|
65553
|
+
minInstances: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
65554
|
+
maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
|
65555
|
+
};
|
|
65556
|
+
|
|
65557
|
+
if (includeInstance) {
|
|
65558
|
+
obj.$jspbMessageInstance = msg;
|
|
65559
|
+
}
|
|
65560
|
+
return obj;
|
|
65561
|
+
};
|
|
65562
|
+
}
|
|
65563
|
+
|
|
65564
|
+
|
|
65565
|
+
/**
|
|
65566
|
+
* Deserializes binary data (in protobuf wire format).
|
|
65567
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
65568
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
65569
|
+
*/
|
|
65570
|
+
proto.clarifai.api.Nodepool.deserializeBinary = function(bytes) {
|
|
65571
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
65572
|
+
var msg = new proto.clarifai.api.Nodepool;
|
|
65573
|
+
return proto.clarifai.api.Nodepool.deserializeBinaryFromReader(msg, reader);
|
|
65574
|
+
};
|
|
65575
|
+
|
|
65576
|
+
|
|
65577
|
+
/**
|
|
65578
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
65579
|
+
* given reader into the given message object.
|
|
65580
|
+
* @param {!proto.clarifai.api.Nodepool} msg The message object to deserialize into.
|
|
65581
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
65582
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
65583
|
+
*/
|
|
65584
|
+
proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function(msg, reader) {
|
|
65585
|
+
while (reader.nextField()) {
|
|
65586
|
+
if (reader.isEndGroup()) {
|
|
65587
|
+
break;
|
|
65588
|
+
}
|
|
65589
|
+
var field = reader.getFieldNumber();
|
|
65590
|
+
switch (field) {
|
|
65591
|
+
case 1:
|
|
65592
|
+
var value = /** @type {string} */ (reader.readString());
|
|
65593
|
+
msg.setId(value);
|
|
65594
|
+
break;
|
|
65595
|
+
case 2:
|
|
65596
|
+
var value = /** @type {string} */ (reader.readString());
|
|
65597
|
+
msg.setUserId(value);
|
|
65598
|
+
break;
|
|
65599
|
+
case 3:
|
|
65600
|
+
var value = new proto.clarifai.api.CloudRegion;
|
|
65601
|
+
reader.readMessage(value,proto.clarifai.api.CloudRegion.deserializeBinaryFromReader);
|
|
65602
|
+
msg.setCloudRegion(value);
|
|
65603
|
+
break;
|
|
65604
|
+
case 4:
|
|
65605
|
+
var values = /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
65606
|
+
for (var i = 0; i < values.length; i++) {
|
|
65607
|
+
msg.addCapacityTypes(values[i]);
|
|
65608
|
+
}
|
|
65609
|
+
break;
|
|
65610
|
+
case 8:
|
|
65611
|
+
var value = /** @type {string} */ (reader.readString());
|
|
65612
|
+
msg.addInstanceTypes(value);
|
|
65613
|
+
break;
|
|
65614
|
+
case 9:
|
|
65615
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
65616
|
+
msg.setMinInstances(value);
|
|
65617
|
+
break;
|
|
65618
|
+
case 10:
|
|
65619
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
65620
|
+
msg.setMaxInstances(value);
|
|
65621
|
+
break;
|
|
65622
|
+
default:
|
|
65623
|
+
reader.skipField();
|
|
65624
|
+
break;
|
|
65625
|
+
}
|
|
65626
|
+
}
|
|
65627
|
+
return msg;
|
|
65628
|
+
};
|
|
65629
|
+
|
|
65630
|
+
|
|
65631
|
+
/**
|
|
65632
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
65633
|
+
* @return {!Uint8Array}
|
|
65634
|
+
*/
|
|
65635
|
+
proto.clarifai.api.Nodepool.prototype.serializeBinary = function() {
|
|
65636
|
+
var writer = new jspb.BinaryWriter();
|
|
65637
|
+
proto.clarifai.api.Nodepool.serializeBinaryToWriter(this, writer);
|
|
65638
|
+
return writer.getResultBuffer();
|
|
65639
|
+
};
|
|
65640
|
+
|
|
65641
|
+
|
|
65642
|
+
/**
|
|
65643
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
65644
|
+
* format), writing to the given BinaryWriter.
|
|
65645
|
+
* @param {!proto.clarifai.api.Nodepool} message
|
|
65646
|
+
* @param {!jspb.BinaryWriter} writer
|
|
65647
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
65648
|
+
*/
|
|
65649
|
+
proto.clarifai.api.Nodepool.serializeBinaryToWriter = function(message, writer) {
|
|
65650
|
+
var f = undefined;
|
|
65651
|
+
f = message.getId();
|
|
65652
|
+
if (f.length > 0) {
|
|
65653
|
+
writer.writeString(
|
|
65654
|
+
1,
|
|
65655
|
+
f
|
|
65656
|
+
);
|
|
65657
|
+
}
|
|
65658
|
+
f = message.getUserId();
|
|
65659
|
+
if (f.length > 0) {
|
|
65660
|
+
writer.writeString(
|
|
65661
|
+
2,
|
|
65662
|
+
f
|
|
65663
|
+
);
|
|
65664
|
+
}
|
|
65665
|
+
f = message.getCloudRegion();
|
|
65666
|
+
if (f != null) {
|
|
65667
|
+
writer.writeMessage(
|
|
65668
|
+
3,
|
|
65669
|
+
f,
|
|
65670
|
+
proto.clarifai.api.CloudRegion.serializeBinaryToWriter
|
|
65671
|
+
);
|
|
65672
|
+
}
|
|
65673
|
+
f = message.getCapacityTypesList();
|
|
65674
|
+
if (f.length > 0) {
|
|
65675
|
+
writer.writePackedEnum(
|
|
65676
|
+
4,
|
|
65677
|
+
f
|
|
65678
|
+
);
|
|
65679
|
+
}
|
|
65680
|
+
f = message.getInstanceTypesList();
|
|
65681
|
+
if (f.length > 0) {
|
|
65682
|
+
writer.writeRepeatedString(
|
|
65683
|
+
8,
|
|
65684
|
+
f
|
|
65685
|
+
);
|
|
65686
|
+
}
|
|
65687
|
+
f = message.getMinInstances();
|
|
65688
|
+
if (f !== 0) {
|
|
65689
|
+
writer.writeUint32(
|
|
65690
|
+
9,
|
|
65691
|
+
f
|
|
65692
|
+
);
|
|
65693
|
+
}
|
|
65694
|
+
f = message.getMaxInstances();
|
|
65695
|
+
if (f !== 0) {
|
|
65696
|
+
writer.writeUint32(
|
|
65697
|
+
10,
|
|
65698
|
+
f
|
|
65699
|
+
);
|
|
65700
|
+
}
|
|
65701
|
+
};
|
|
65702
|
+
|
|
65703
|
+
|
|
65704
|
+
/**
|
|
65705
|
+
* @enum {number}
|
|
65706
|
+
*/
|
|
65707
|
+
proto.clarifai.api.Nodepool.CapacityType = {
|
|
65708
|
+
UKNOWN_CAPACITY_TYPE: 0,
|
|
65709
|
+
ONDEMAND_TYPE: 1,
|
|
65710
|
+
SPOT_TYPE: 2
|
|
65711
|
+
};
|
|
65712
|
+
|
|
65713
|
+
/**
|
|
65714
|
+
* optional string id = 1;
|
|
65715
|
+
* @return {string}
|
|
65716
|
+
*/
|
|
65717
|
+
proto.clarifai.api.Nodepool.prototype.getId = function() {
|
|
65718
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
65719
|
+
};
|
|
65720
|
+
|
|
65721
|
+
|
|
65722
|
+
/**
|
|
65723
|
+
* @param {string} value
|
|
65724
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65725
|
+
*/
|
|
65726
|
+
proto.clarifai.api.Nodepool.prototype.setId = function(value) {
|
|
65727
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
65728
|
+
};
|
|
65729
|
+
|
|
65730
|
+
|
|
65731
|
+
/**
|
|
65732
|
+
* optional string user_id = 2;
|
|
65733
|
+
* @return {string}
|
|
65734
|
+
*/
|
|
65735
|
+
proto.clarifai.api.Nodepool.prototype.getUserId = function() {
|
|
65736
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
65737
|
+
};
|
|
65738
|
+
|
|
65739
|
+
|
|
65740
|
+
/**
|
|
65741
|
+
* @param {string} value
|
|
65742
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65743
|
+
*/
|
|
65744
|
+
proto.clarifai.api.Nodepool.prototype.setUserId = function(value) {
|
|
65745
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
65746
|
+
};
|
|
65747
|
+
|
|
65748
|
+
|
|
65749
|
+
/**
|
|
65750
|
+
* optional CloudRegion cloud_region = 3;
|
|
65751
|
+
* @return {?proto.clarifai.api.CloudRegion}
|
|
65752
|
+
*/
|
|
65753
|
+
proto.clarifai.api.Nodepool.prototype.getCloudRegion = function() {
|
|
65754
|
+
return /** @type{?proto.clarifai.api.CloudRegion} */ (
|
|
65755
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.CloudRegion, 3));
|
|
65756
|
+
};
|
|
65757
|
+
|
|
65758
|
+
|
|
65759
|
+
/**
|
|
65760
|
+
* @param {?proto.clarifai.api.CloudRegion|undefined} value
|
|
65761
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65762
|
+
*/
|
|
65763
|
+
proto.clarifai.api.Nodepool.prototype.setCloudRegion = function(value) {
|
|
65764
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
65765
|
+
};
|
|
65766
|
+
|
|
65767
|
+
|
|
65768
|
+
/**
|
|
65769
|
+
* Clears the message field making it undefined.
|
|
65770
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65771
|
+
*/
|
|
65772
|
+
proto.clarifai.api.Nodepool.prototype.clearCloudRegion = function() {
|
|
65773
|
+
return this.setCloudRegion(undefined);
|
|
65774
|
+
};
|
|
65775
|
+
|
|
65776
|
+
|
|
65777
|
+
/**
|
|
65778
|
+
* Returns whether this field is set.
|
|
65779
|
+
* @return {boolean}
|
|
65780
|
+
*/
|
|
65781
|
+
proto.clarifai.api.Nodepool.prototype.hasCloudRegion = function() {
|
|
65782
|
+
return jspb.Message.getField(this, 3) != null;
|
|
65783
|
+
};
|
|
65784
|
+
|
|
65785
|
+
|
|
65786
|
+
/**
|
|
65787
|
+
* repeated CapacityType capacity_types = 4;
|
|
65788
|
+
* @return {!Array<!proto.clarifai.api.Nodepool.CapacityType>}
|
|
65789
|
+
*/
|
|
65790
|
+
proto.clarifai.api.Nodepool.prototype.getCapacityTypesList = function() {
|
|
65791
|
+
return /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
65792
|
+
};
|
|
65793
|
+
|
|
65794
|
+
|
|
65795
|
+
/**
|
|
65796
|
+
* @param {!Array<!proto.clarifai.api.Nodepool.CapacityType>} value
|
|
65797
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65798
|
+
*/
|
|
65799
|
+
proto.clarifai.api.Nodepool.prototype.setCapacityTypesList = function(value) {
|
|
65800
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
65801
|
+
};
|
|
65802
|
+
|
|
65803
|
+
|
|
65804
|
+
/**
|
|
65805
|
+
* @param {!proto.clarifai.api.Nodepool.CapacityType} value
|
|
65806
|
+
* @param {number=} opt_index
|
|
65807
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65808
|
+
*/
|
|
65809
|
+
proto.clarifai.api.Nodepool.prototype.addCapacityTypes = function(value, opt_index) {
|
|
65810
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
65811
|
+
};
|
|
65812
|
+
|
|
65813
|
+
|
|
65814
|
+
/**
|
|
65815
|
+
* Clears the list making it empty but non-null.
|
|
65816
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65817
|
+
*/
|
|
65818
|
+
proto.clarifai.api.Nodepool.prototype.clearCapacityTypesList = function() {
|
|
65819
|
+
return this.setCapacityTypesList([]);
|
|
65820
|
+
};
|
|
65821
|
+
|
|
65822
|
+
|
|
65823
|
+
/**
|
|
65824
|
+
* repeated string instance_types = 8;
|
|
65825
|
+
* @return {!Array<string>}
|
|
65826
|
+
*/
|
|
65827
|
+
proto.clarifai.api.Nodepool.prototype.getInstanceTypesList = function() {
|
|
65828
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
|
|
65829
|
+
};
|
|
65830
|
+
|
|
65831
|
+
|
|
65832
|
+
/**
|
|
65833
|
+
* @param {!Array<string>} value
|
|
65834
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65835
|
+
*/
|
|
65836
|
+
proto.clarifai.api.Nodepool.prototype.setInstanceTypesList = function(value) {
|
|
65837
|
+
return jspb.Message.setField(this, 8, value || []);
|
|
65838
|
+
};
|
|
65839
|
+
|
|
65840
|
+
|
|
65841
|
+
/**
|
|
65842
|
+
* @param {string} value
|
|
65843
|
+
* @param {number=} opt_index
|
|
65844
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65845
|
+
*/
|
|
65846
|
+
proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function(value, opt_index) {
|
|
65847
|
+
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
|
65848
|
+
};
|
|
65849
|
+
|
|
65850
|
+
|
|
65851
|
+
/**
|
|
65852
|
+
* Clears the list making it empty but non-null.
|
|
65853
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65854
|
+
*/
|
|
65855
|
+
proto.clarifai.api.Nodepool.prototype.clearInstanceTypesList = function() {
|
|
65856
|
+
return this.setInstanceTypesList([]);
|
|
65857
|
+
};
|
|
65858
|
+
|
|
65859
|
+
|
|
65860
|
+
/**
|
|
65861
|
+
* optional uint32 min_instances = 9;
|
|
65862
|
+
* @return {number}
|
|
65863
|
+
*/
|
|
65864
|
+
proto.clarifai.api.Nodepool.prototype.getMinInstances = function() {
|
|
65865
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
65866
|
+
};
|
|
65867
|
+
|
|
65868
|
+
|
|
65869
|
+
/**
|
|
65870
|
+
* @param {number} value
|
|
65871
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65872
|
+
*/
|
|
65873
|
+
proto.clarifai.api.Nodepool.prototype.setMinInstances = function(value) {
|
|
65874
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
65875
|
+
};
|
|
65876
|
+
|
|
65877
|
+
|
|
65878
|
+
/**
|
|
65879
|
+
* optional uint32 max_instances = 10;
|
|
65880
|
+
* @return {number}
|
|
65881
|
+
*/
|
|
65882
|
+
proto.clarifai.api.Nodepool.prototype.getMaxInstances = function() {
|
|
65883
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
65884
|
+
};
|
|
65885
|
+
|
|
65886
|
+
|
|
65887
|
+
/**
|
|
65888
|
+
* @param {number} value
|
|
65889
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
65890
|
+
*/
|
|
65891
|
+
proto.clarifai.api.Nodepool.prototype.setMaxInstances = function(value) {
|
|
65892
|
+
return jspb.Message.setProto3IntField(this, 10, value);
|
|
65893
|
+
};
|
|
65894
|
+
|
|
65895
|
+
|
|
65896
|
+
|
|
65897
|
+
|
|
65898
|
+
|
|
65899
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
65900
|
+
/**
|
|
65901
|
+
* Creates an object representation of this proto.
|
|
65902
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
65903
|
+
* Optional fields that are not set will be set to undefined.
|
|
65904
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
65905
|
+
* For the list of reserved names please see:
|
|
65906
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
65907
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
65908
|
+
* JSPB instance for transitional soy proto support:
|
|
65909
|
+
* http://goto/soy-param-migration
|
|
65910
|
+
* @return {!Object}
|
|
65911
|
+
*/
|
|
65912
|
+
proto.clarifai.api.CloudRegion.prototype.toObject = function(opt_includeInstance) {
|
|
65913
|
+
return proto.clarifai.api.CloudRegion.toObject(opt_includeInstance, this);
|
|
65914
|
+
};
|
|
65915
|
+
|
|
65916
|
+
|
|
65917
|
+
/**
|
|
65918
|
+
* Static version of the {@see toObject} method.
|
|
65919
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
65920
|
+
* the JSPB instance for transitional soy proto support:
|
|
65921
|
+
* http://goto/soy-param-migration
|
|
65922
|
+
* @param {!proto.clarifai.api.CloudRegion} msg The msg instance to transform.
|
|
65923
|
+
* @return {!Object}
|
|
65924
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
65925
|
+
*/
|
|
65926
|
+
proto.clarifai.api.CloudRegion.toObject = function(includeInstance, msg) {
|
|
65927
|
+
var f, obj = {
|
|
65928
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
65929
|
+
cloud: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
65930
|
+
region: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
65931
|
+
};
|
|
65932
|
+
|
|
65933
|
+
if (includeInstance) {
|
|
65934
|
+
obj.$jspbMessageInstance = msg;
|
|
65935
|
+
}
|
|
65936
|
+
return obj;
|
|
65937
|
+
};
|
|
65938
|
+
}
|
|
65939
|
+
|
|
65940
|
+
|
|
65941
|
+
/**
|
|
65942
|
+
* Deserializes binary data (in protobuf wire format).
|
|
65943
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
65944
|
+
* @return {!proto.clarifai.api.CloudRegion}
|
|
65945
|
+
*/
|
|
65946
|
+
proto.clarifai.api.CloudRegion.deserializeBinary = function(bytes) {
|
|
65947
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
65948
|
+
var msg = new proto.clarifai.api.CloudRegion;
|
|
65949
|
+
return proto.clarifai.api.CloudRegion.deserializeBinaryFromReader(msg, reader);
|
|
65950
|
+
};
|
|
65951
|
+
|
|
65952
|
+
|
|
65953
|
+
/**
|
|
65954
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
65955
|
+
* given reader into the given message object.
|
|
65956
|
+
* @param {!proto.clarifai.api.CloudRegion} msg The message object to deserialize into.
|
|
65957
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
65958
|
+
* @return {!proto.clarifai.api.CloudRegion}
|
|
65959
|
+
*/
|
|
65960
|
+
proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reader) {
|
|
65961
|
+
while (reader.nextField()) {
|
|
65962
|
+
if (reader.isEndGroup()) {
|
|
65963
|
+
break;
|
|
65964
|
+
}
|
|
65965
|
+
var field = reader.getFieldNumber();
|
|
65966
|
+
switch (field) {
|
|
65967
|
+
case 1:
|
|
65968
|
+
var value = /** @type {string} */ (reader.readString());
|
|
65969
|
+
msg.setId(value);
|
|
65970
|
+
break;
|
|
65971
|
+
case 3:
|
|
65972
|
+
var value = /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (reader.readEnum());
|
|
65973
|
+
msg.setCloud(value);
|
|
65974
|
+
break;
|
|
65975
|
+
case 4:
|
|
65976
|
+
var value = /** @type {string} */ (reader.readString());
|
|
65977
|
+
msg.setRegion(value);
|
|
65978
|
+
break;
|
|
65979
|
+
default:
|
|
65980
|
+
reader.skipField();
|
|
65981
|
+
break;
|
|
65982
|
+
}
|
|
65983
|
+
}
|
|
65984
|
+
return msg;
|
|
65985
|
+
};
|
|
65986
|
+
|
|
65987
|
+
|
|
65988
|
+
/**
|
|
65989
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
65990
|
+
* @return {!Uint8Array}
|
|
65991
|
+
*/
|
|
65992
|
+
proto.clarifai.api.CloudRegion.prototype.serializeBinary = function() {
|
|
65993
|
+
var writer = new jspb.BinaryWriter();
|
|
65994
|
+
proto.clarifai.api.CloudRegion.serializeBinaryToWriter(this, writer);
|
|
65995
|
+
return writer.getResultBuffer();
|
|
65996
|
+
};
|
|
65997
|
+
|
|
65998
|
+
|
|
65999
|
+
/**
|
|
66000
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
66001
|
+
* format), writing to the given BinaryWriter.
|
|
66002
|
+
* @param {!proto.clarifai.api.CloudRegion} message
|
|
66003
|
+
* @param {!jspb.BinaryWriter} writer
|
|
66004
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
66005
|
+
*/
|
|
66006
|
+
proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, writer) {
|
|
66007
|
+
var f = undefined;
|
|
66008
|
+
f = message.getId();
|
|
66009
|
+
if (f.length > 0) {
|
|
66010
|
+
writer.writeString(
|
|
66011
|
+
1,
|
|
66012
|
+
f
|
|
66013
|
+
);
|
|
66014
|
+
}
|
|
66015
|
+
f = message.getCloud();
|
|
66016
|
+
if (f !== 0.0) {
|
|
66017
|
+
writer.writeEnum(
|
|
66018
|
+
3,
|
|
66019
|
+
f
|
|
66020
|
+
);
|
|
66021
|
+
}
|
|
66022
|
+
f = message.getRegion();
|
|
66023
|
+
if (f.length > 0) {
|
|
66024
|
+
writer.writeString(
|
|
66025
|
+
4,
|
|
66026
|
+
f
|
|
66027
|
+
);
|
|
66028
|
+
}
|
|
66029
|
+
};
|
|
66030
|
+
|
|
66031
|
+
|
|
66032
|
+
/**
|
|
66033
|
+
* @enum {number}
|
|
66034
|
+
*/
|
|
66035
|
+
proto.clarifai.api.CloudRegion.Cloud = {
|
|
66036
|
+
UNKOWN_CLOUD: 0,
|
|
66037
|
+
SELF_HOSTED: 1,
|
|
66038
|
+
AWS: 2,
|
|
66039
|
+
GCP: 3,
|
|
66040
|
+
AZURE: 4,
|
|
66041
|
+
LAMBDA: 5
|
|
66042
|
+
};
|
|
66043
|
+
|
|
66044
|
+
/**
|
|
66045
|
+
* optional string id = 1;
|
|
66046
|
+
* @return {string}
|
|
66047
|
+
*/
|
|
66048
|
+
proto.clarifai.api.CloudRegion.prototype.getId = function() {
|
|
66049
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
66050
|
+
};
|
|
66051
|
+
|
|
66052
|
+
|
|
66053
|
+
/**
|
|
66054
|
+
* @param {string} value
|
|
66055
|
+
* @return {!proto.clarifai.api.CloudRegion} returns this
|
|
66056
|
+
*/
|
|
66057
|
+
proto.clarifai.api.CloudRegion.prototype.setId = function(value) {
|
|
66058
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
66059
|
+
};
|
|
66060
|
+
|
|
66061
|
+
|
|
66062
|
+
/**
|
|
66063
|
+
* optional Cloud cloud = 3;
|
|
66064
|
+
* @return {!proto.clarifai.api.CloudRegion.Cloud}
|
|
66065
|
+
*/
|
|
66066
|
+
proto.clarifai.api.CloudRegion.prototype.getCloud = function() {
|
|
66067
|
+
return /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
66068
|
+
};
|
|
66069
|
+
|
|
66070
|
+
|
|
66071
|
+
/**
|
|
66072
|
+
* @param {!proto.clarifai.api.CloudRegion.Cloud} value
|
|
66073
|
+
* @return {!proto.clarifai.api.CloudRegion} returns this
|
|
66074
|
+
*/
|
|
66075
|
+
proto.clarifai.api.CloudRegion.prototype.setCloud = function(value) {
|
|
66076
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
66077
|
+
};
|
|
66078
|
+
|
|
66079
|
+
|
|
66080
|
+
/**
|
|
66081
|
+
* optional string region = 4;
|
|
66082
|
+
* @return {string}
|
|
66083
|
+
*/
|
|
66084
|
+
proto.clarifai.api.CloudRegion.prototype.getRegion = function() {
|
|
66085
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
66086
|
+
};
|
|
66087
|
+
|
|
66088
|
+
|
|
66089
|
+
/**
|
|
66090
|
+
* @param {string} value
|
|
66091
|
+
* @return {!proto.clarifai.api.CloudRegion} returns this
|
|
66092
|
+
*/
|
|
66093
|
+
proto.clarifai.api.CloudRegion.prototype.setRegion = function(value) {
|
|
66094
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
66095
|
+
};
|
|
66096
|
+
|
|
66097
|
+
|
|
66098
|
+
|
|
66099
|
+
/**
|
|
66100
|
+
* List of repeated fields within this message type.
|
|
66101
|
+
* @private {!Array<number>}
|
|
66102
|
+
* @const
|
|
66103
|
+
*/
|
|
66104
|
+
proto.clarifai.api.ComputeInfo.repeatedFields_ = [5];
|
|
66105
|
+
|
|
66106
|
+
|
|
66107
|
+
|
|
66108
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
66109
|
+
/**
|
|
66110
|
+
* Creates an object representation of this proto.
|
|
66111
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
66112
|
+
* Optional fields that are not set will be set to undefined.
|
|
66113
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
66114
|
+
* For the list of reserved names please see:
|
|
66115
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
66116
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
66117
|
+
* JSPB instance for transitional soy proto support:
|
|
66118
|
+
* http://goto/soy-param-migration
|
|
66119
|
+
* @return {!Object}
|
|
66120
|
+
*/
|
|
66121
|
+
proto.clarifai.api.ComputeInfo.prototype.toObject = function(opt_includeInstance) {
|
|
66122
|
+
return proto.clarifai.api.ComputeInfo.toObject(opt_includeInstance, this);
|
|
66123
|
+
};
|
|
66124
|
+
|
|
66125
|
+
|
|
66126
|
+
/**
|
|
66127
|
+
* Static version of the {@see toObject} method.
|
|
66128
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
66129
|
+
* the JSPB instance for transitional soy proto support:
|
|
66130
|
+
* http://goto/soy-param-migration
|
|
66131
|
+
* @param {!proto.clarifai.api.ComputeInfo} msg The msg instance to transform.
|
|
66132
|
+
* @return {!Object}
|
|
66133
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
66134
|
+
*/
|
|
66135
|
+
proto.clarifai.api.ComputeInfo.toObject = function(includeInstance, msg) {
|
|
66136
|
+
var f, obj = {
|
|
66137
|
+
numCpus: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
66138
|
+
cpuMemory: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
66139
|
+
numAccelerators: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
66140
|
+
acceleratorMemory: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
66141
|
+
acceleratorTypeList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
|
66142
|
+
};
|
|
66143
|
+
|
|
66144
|
+
if (includeInstance) {
|
|
66145
|
+
obj.$jspbMessageInstance = msg;
|
|
66146
|
+
}
|
|
66147
|
+
return obj;
|
|
66148
|
+
};
|
|
66149
|
+
}
|
|
66150
|
+
|
|
66151
|
+
|
|
66152
|
+
/**
|
|
66153
|
+
* Deserializes binary data (in protobuf wire format).
|
|
66154
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
66155
|
+
* @return {!proto.clarifai.api.ComputeInfo}
|
|
66156
|
+
*/
|
|
66157
|
+
proto.clarifai.api.ComputeInfo.deserializeBinary = function(bytes) {
|
|
66158
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
66159
|
+
var msg = new proto.clarifai.api.ComputeInfo;
|
|
66160
|
+
return proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader(msg, reader);
|
|
66161
|
+
};
|
|
66162
|
+
|
|
66163
|
+
|
|
66164
|
+
/**
|
|
66165
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
66166
|
+
* given reader into the given message object.
|
|
66167
|
+
* @param {!proto.clarifai.api.ComputeInfo} msg The message object to deserialize into.
|
|
66168
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
66169
|
+
* @return {!proto.clarifai.api.ComputeInfo}
|
|
66170
|
+
*/
|
|
66171
|
+
proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
66172
|
+
while (reader.nextField()) {
|
|
66173
|
+
if (reader.isEndGroup()) {
|
|
66174
|
+
break;
|
|
66175
|
+
}
|
|
66176
|
+
var field = reader.getFieldNumber();
|
|
66177
|
+
switch (field) {
|
|
66178
|
+
case 1:
|
|
66179
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
66180
|
+
msg.setNumCpus(value);
|
|
66181
|
+
break;
|
|
66182
|
+
case 2:
|
|
66183
|
+
var value = /** @type {string} */ (reader.readString());
|
|
66184
|
+
msg.setCpuMemory(value);
|
|
66185
|
+
break;
|
|
66186
|
+
case 3:
|
|
66187
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
66188
|
+
msg.setNumAccelerators(value);
|
|
66189
|
+
break;
|
|
66190
|
+
case 4:
|
|
66191
|
+
var value = /** @type {string} */ (reader.readString());
|
|
66192
|
+
msg.setAcceleratorMemory(value);
|
|
66193
|
+
break;
|
|
66194
|
+
case 5:
|
|
66195
|
+
var value = /** @type {string} */ (reader.readString());
|
|
66196
|
+
msg.addAcceleratorType(value);
|
|
66197
|
+
break;
|
|
66198
|
+
default:
|
|
66199
|
+
reader.skipField();
|
|
66200
|
+
break;
|
|
66201
|
+
}
|
|
66202
|
+
}
|
|
66203
|
+
return msg;
|
|
66204
|
+
};
|
|
66205
|
+
|
|
66206
|
+
|
|
66207
|
+
/**
|
|
66208
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
66209
|
+
* @return {!Uint8Array}
|
|
66210
|
+
*/
|
|
66211
|
+
proto.clarifai.api.ComputeInfo.prototype.serializeBinary = function() {
|
|
66212
|
+
var writer = new jspb.BinaryWriter();
|
|
66213
|
+
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter(this, writer);
|
|
66214
|
+
return writer.getResultBuffer();
|
|
66215
|
+
};
|
|
66216
|
+
|
|
66217
|
+
|
|
66218
|
+
/**
|
|
66219
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
66220
|
+
* format), writing to the given BinaryWriter.
|
|
66221
|
+
* @param {!proto.clarifai.api.ComputeInfo} message
|
|
66222
|
+
* @param {!jspb.BinaryWriter} writer
|
|
66223
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
66224
|
+
*/
|
|
66225
|
+
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function(message, writer) {
|
|
66226
|
+
var f = undefined;
|
|
66227
|
+
f = message.getNumCpus();
|
|
66228
|
+
if (f !== 0) {
|
|
66229
|
+
writer.writeUint32(
|
|
66230
|
+
1,
|
|
66231
|
+
f
|
|
66232
|
+
);
|
|
66233
|
+
}
|
|
66234
|
+
f = message.getCpuMemory();
|
|
66235
|
+
if (f.length > 0) {
|
|
66236
|
+
writer.writeString(
|
|
66237
|
+
2,
|
|
66238
|
+
f
|
|
66239
|
+
);
|
|
66240
|
+
}
|
|
66241
|
+
f = message.getNumAccelerators();
|
|
66242
|
+
if (f !== 0) {
|
|
66243
|
+
writer.writeUint32(
|
|
66244
|
+
3,
|
|
66245
|
+
f
|
|
66246
|
+
);
|
|
66247
|
+
}
|
|
66248
|
+
f = message.getAcceleratorMemory();
|
|
66249
|
+
if (f.length > 0) {
|
|
66250
|
+
writer.writeString(
|
|
66251
|
+
4,
|
|
66252
|
+
f
|
|
66253
|
+
);
|
|
66254
|
+
}
|
|
66255
|
+
f = message.getAcceleratorTypeList();
|
|
66256
|
+
if (f.length > 0) {
|
|
66257
|
+
writer.writeRepeatedString(
|
|
66258
|
+
5,
|
|
66259
|
+
f
|
|
66260
|
+
);
|
|
66261
|
+
}
|
|
66262
|
+
};
|
|
66263
|
+
|
|
66264
|
+
|
|
66265
|
+
/**
|
|
66266
|
+
* optional uint32 num_cpus = 1;
|
|
66267
|
+
* @return {number}
|
|
66268
|
+
*/
|
|
66269
|
+
proto.clarifai.api.ComputeInfo.prototype.getNumCpus = function() {
|
|
66270
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
66271
|
+
};
|
|
66272
|
+
|
|
66273
|
+
|
|
66274
|
+
/**
|
|
66275
|
+
* @param {number} value
|
|
66276
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
66277
|
+
*/
|
|
66278
|
+
proto.clarifai.api.ComputeInfo.prototype.setNumCpus = function(value) {
|
|
66279
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
66280
|
+
};
|
|
66281
|
+
|
|
66282
|
+
|
|
66283
|
+
/**
|
|
66284
|
+
* optional string cpu_memory = 2;
|
|
66285
|
+
* @return {string}
|
|
66286
|
+
*/
|
|
66287
|
+
proto.clarifai.api.ComputeInfo.prototype.getCpuMemory = function() {
|
|
66288
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
66289
|
+
};
|
|
66290
|
+
|
|
66291
|
+
|
|
66292
|
+
/**
|
|
66293
|
+
* @param {string} value
|
|
66294
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
66295
|
+
*/
|
|
66296
|
+
proto.clarifai.api.ComputeInfo.prototype.setCpuMemory = function(value) {
|
|
66297
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
66298
|
+
};
|
|
66299
|
+
|
|
66300
|
+
|
|
66301
|
+
/**
|
|
66302
|
+
* optional uint32 num_accelerators = 3;
|
|
66303
|
+
* @return {number}
|
|
66304
|
+
*/
|
|
66305
|
+
proto.clarifai.api.ComputeInfo.prototype.getNumAccelerators = function() {
|
|
66306
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
66307
|
+
};
|
|
66308
|
+
|
|
66309
|
+
|
|
66310
|
+
/**
|
|
66311
|
+
* @param {number} value
|
|
66312
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
66313
|
+
*/
|
|
66314
|
+
proto.clarifai.api.ComputeInfo.prototype.setNumAccelerators = function(value) {
|
|
66315
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
66316
|
+
};
|
|
66317
|
+
|
|
66318
|
+
|
|
66319
|
+
/**
|
|
66320
|
+
* optional string accelerator_memory = 4;
|
|
66321
|
+
* @return {string}
|
|
66322
|
+
*/
|
|
66323
|
+
proto.clarifai.api.ComputeInfo.prototype.getAcceleratorMemory = function() {
|
|
66324
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
66325
|
+
};
|
|
66326
|
+
|
|
66327
|
+
|
|
66328
|
+
/**
|
|
66329
|
+
* @param {string} value
|
|
66330
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
66331
|
+
*/
|
|
66332
|
+
proto.clarifai.api.ComputeInfo.prototype.setAcceleratorMemory = function(value) {
|
|
66333
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
66334
|
+
};
|
|
66335
|
+
|
|
66336
|
+
|
|
66337
|
+
/**
|
|
66338
|
+
* repeated string accelerator_type = 5;
|
|
66339
|
+
* @return {!Array<string>}
|
|
66340
|
+
*/
|
|
66341
|
+
proto.clarifai.api.ComputeInfo.prototype.getAcceleratorTypeList = function() {
|
|
66342
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
66343
|
+
};
|
|
66344
|
+
|
|
66345
|
+
|
|
66346
|
+
/**
|
|
66347
|
+
* @param {!Array<string>} value
|
|
66348
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
66349
|
+
*/
|
|
66350
|
+
proto.clarifai.api.ComputeInfo.prototype.setAcceleratorTypeList = function(value) {
|
|
66351
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
66352
|
+
};
|
|
66353
|
+
|
|
66354
|
+
|
|
66355
|
+
/**
|
|
66356
|
+
* @param {string} value
|
|
66357
|
+
* @param {number=} opt_index
|
|
66358
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
66359
|
+
*/
|
|
66360
|
+
proto.clarifai.api.ComputeInfo.prototype.addAcceleratorType = function(value, opt_index) {
|
|
66361
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
66362
|
+
};
|
|
66363
|
+
|
|
66364
|
+
|
|
66365
|
+
/**
|
|
66366
|
+
* Clears the list making it empty but non-null.
|
|
66367
|
+
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
66368
|
+
*/
|
|
66369
|
+
proto.clarifai.api.ComputeInfo.prototype.clearAcceleratorTypeList = function() {
|
|
66370
|
+
return this.setAcceleratorTypeList([]);
|
|
66371
|
+
};
|
|
66372
|
+
|
|
66373
|
+
|
|
66374
|
+
|
|
66375
|
+
|
|
66376
|
+
|
|
66377
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
66378
|
+
/**
|
|
66379
|
+
* Creates an object representation of this proto.
|
|
66380
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
66381
|
+
* Optional fields that are not set will be set to undefined.
|
|
66382
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
66383
|
+
* For the list of reserved names please see:
|
|
66384
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
66385
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
66386
|
+
* JSPB instance for transitional soy proto support:
|
|
66387
|
+
* http://goto/soy-param-migration
|
|
66388
|
+
* @return {!Object}
|
|
66389
|
+
*/
|
|
66390
|
+
proto.clarifai.api.AutoscaleConfig.prototype.toObject = function(opt_includeInstance) {
|
|
66391
|
+
return proto.clarifai.api.AutoscaleConfig.toObject(opt_includeInstance, this);
|
|
66392
|
+
};
|
|
66393
|
+
|
|
66394
|
+
|
|
66395
|
+
/**
|
|
66396
|
+
* Static version of the {@see toObject} method.
|
|
66397
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
66398
|
+
* the JSPB instance for transitional soy proto support:
|
|
66399
|
+
* http://goto/soy-param-migration
|
|
66400
|
+
* @param {!proto.clarifai.api.AutoscaleConfig} msg The msg instance to transform.
|
|
66401
|
+
* @return {!Object}
|
|
66402
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
66403
|
+
*/
|
|
66404
|
+
proto.clarifai.api.AutoscaleConfig.toObject = function(includeInstance, msg) {
|
|
66405
|
+
var f, obj = {
|
|
66406
|
+
minReplicas: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
66407
|
+
maxReplicas: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
66408
|
+
trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
66409
|
+
scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
66410
|
+
scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
66411
|
+
enablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
|
66412
|
+
};
|
|
66413
|
+
|
|
66414
|
+
if (includeInstance) {
|
|
66415
|
+
obj.$jspbMessageInstance = msg;
|
|
66416
|
+
}
|
|
66417
|
+
return obj;
|
|
66418
|
+
};
|
|
66419
|
+
}
|
|
66420
|
+
|
|
66421
|
+
|
|
66422
|
+
/**
|
|
66423
|
+
* Deserializes binary data (in protobuf wire format).
|
|
66424
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
66425
|
+
* @return {!proto.clarifai.api.AutoscaleConfig}
|
|
66426
|
+
*/
|
|
66427
|
+
proto.clarifai.api.AutoscaleConfig.deserializeBinary = function(bytes) {
|
|
66428
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
66429
|
+
var msg = new proto.clarifai.api.AutoscaleConfig;
|
|
66430
|
+
return proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader(msg, reader);
|
|
66431
|
+
};
|
|
66432
|
+
|
|
66433
|
+
|
|
66434
|
+
/**
|
|
66435
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
66436
|
+
* given reader into the given message object.
|
|
66437
|
+
* @param {!proto.clarifai.api.AutoscaleConfig} msg The message object to deserialize into.
|
|
66438
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
66439
|
+
* @return {!proto.clarifai.api.AutoscaleConfig}
|
|
66440
|
+
*/
|
|
66441
|
+
proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
66442
|
+
while (reader.nextField()) {
|
|
66443
|
+
if (reader.isEndGroup()) {
|
|
66444
|
+
break;
|
|
66445
|
+
}
|
|
66446
|
+
var field = reader.getFieldNumber();
|
|
66447
|
+
switch (field) {
|
|
66448
|
+
case 1:
|
|
66449
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
66450
|
+
msg.setMinReplicas(value);
|
|
66451
|
+
break;
|
|
66452
|
+
case 2:
|
|
66453
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
66454
|
+
msg.setMaxReplicas(value);
|
|
66455
|
+
break;
|
|
66456
|
+
case 3:
|
|
66457
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
66458
|
+
msg.setTrafficHistorySeconds(value);
|
|
66459
|
+
break;
|
|
66460
|
+
case 4:
|
|
66461
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
66462
|
+
msg.setScaleDownDelaySeconds(value);
|
|
66463
|
+
break;
|
|
66464
|
+
case 5:
|
|
66465
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
66466
|
+
msg.setScaleUpDelaySeconds(value);
|
|
66467
|
+
break;
|
|
66468
|
+
case 6:
|
|
66469
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
66470
|
+
msg.setEnablePacking(value);
|
|
66471
|
+
break;
|
|
66472
|
+
default:
|
|
66473
|
+
reader.skipField();
|
|
66474
|
+
break;
|
|
66475
|
+
}
|
|
66476
|
+
}
|
|
66477
|
+
return msg;
|
|
66478
|
+
};
|
|
66479
|
+
|
|
66480
|
+
|
|
66481
|
+
/**
|
|
66482
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
66483
|
+
* @return {!Uint8Array}
|
|
66484
|
+
*/
|
|
66485
|
+
proto.clarifai.api.AutoscaleConfig.prototype.serializeBinary = function() {
|
|
66486
|
+
var writer = new jspb.BinaryWriter();
|
|
66487
|
+
proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter(this, writer);
|
|
66488
|
+
return writer.getResultBuffer();
|
|
66489
|
+
};
|
|
66490
|
+
|
|
66491
|
+
|
|
66492
|
+
/**
|
|
66493
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
66494
|
+
* format), writing to the given BinaryWriter.
|
|
66495
|
+
* @param {!proto.clarifai.api.AutoscaleConfig} message
|
|
66496
|
+
* @param {!jspb.BinaryWriter} writer
|
|
66497
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
66498
|
+
*/
|
|
66499
|
+
proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function(message, writer) {
|
|
66500
|
+
var f = undefined;
|
|
66501
|
+
f = message.getMinReplicas();
|
|
66502
|
+
if (f !== 0) {
|
|
66503
|
+
writer.writeUint32(
|
|
66504
|
+
1,
|
|
66505
|
+
f
|
|
66506
|
+
);
|
|
66507
|
+
}
|
|
66508
|
+
f = message.getMaxReplicas();
|
|
66509
|
+
if (f !== 0) {
|
|
66510
|
+
writer.writeUint32(
|
|
66511
|
+
2,
|
|
66512
|
+
f
|
|
66513
|
+
);
|
|
66514
|
+
}
|
|
66515
|
+
f = message.getTrafficHistorySeconds();
|
|
66516
|
+
if (f !== 0) {
|
|
66517
|
+
writer.writeUint32(
|
|
66518
|
+
3,
|
|
66519
|
+
f
|
|
66520
|
+
);
|
|
66521
|
+
}
|
|
66522
|
+
f = message.getScaleDownDelaySeconds();
|
|
66523
|
+
if (f !== 0) {
|
|
66524
|
+
writer.writeUint32(
|
|
66525
|
+
4,
|
|
66526
|
+
f
|
|
66527
|
+
);
|
|
66528
|
+
}
|
|
66529
|
+
f = message.getScaleUpDelaySeconds();
|
|
66530
|
+
if (f !== 0) {
|
|
66531
|
+
writer.writeUint32(
|
|
66532
|
+
5,
|
|
66533
|
+
f
|
|
66534
|
+
);
|
|
66535
|
+
}
|
|
66536
|
+
f = message.getEnablePacking();
|
|
66537
|
+
if (f) {
|
|
66538
|
+
writer.writeBool(
|
|
66539
|
+
6,
|
|
66540
|
+
f
|
|
66541
|
+
);
|
|
66542
|
+
}
|
|
66543
|
+
};
|
|
66544
|
+
|
|
66545
|
+
|
|
66546
|
+
/**
|
|
66547
|
+
* optional uint32 min_replicas = 1;
|
|
66548
|
+
* @return {number}
|
|
66549
|
+
*/
|
|
66550
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getMinReplicas = function() {
|
|
66551
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
66552
|
+
};
|
|
66553
|
+
|
|
66554
|
+
|
|
66555
|
+
/**
|
|
66556
|
+
* @param {number} value
|
|
66557
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
66558
|
+
*/
|
|
66559
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setMinReplicas = function(value) {
|
|
66560
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
66561
|
+
};
|
|
66562
|
+
|
|
66563
|
+
|
|
66564
|
+
/**
|
|
66565
|
+
* optional uint32 max_replicas = 2;
|
|
66566
|
+
* @return {number}
|
|
66567
|
+
*/
|
|
66568
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getMaxReplicas = function() {
|
|
66569
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
66570
|
+
};
|
|
66571
|
+
|
|
66572
|
+
|
|
66573
|
+
/**
|
|
66574
|
+
* @param {number} value
|
|
66575
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
66576
|
+
*/
|
|
66577
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setMaxReplicas = function(value) {
|
|
66578
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
66579
|
+
};
|
|
66580
|
+
|
|
66581
|
+
|
|
66582
|
+
/**
|
|
66583
|
+
* optional uint32 traffic_history_seconds = 3;
|
|
66584
|
+
* @return {number}
|
|
66585
|
+
*/
|
|
66586
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getTrafficHistorySeconds = function() {
|
|
66587
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
66588
|
+
};
|
|
66589
|
+
|
|
66590
|
+
|
|
66591
|
+
/**
|
|
66592
|
+
* @param {number} value
|
|
66593
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
66594
|
+
*/
|
|
66595
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setTrafficHistorySeconds = function(value) {
|
|
66596
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
66597
|
+
};
|
|
66598
|
+
|
|
66599
|
+
|
|
66600
|
+
/**
|
|
66601
|
+
* optional uint32 scale_down_delay_seconds = 4;
|
|
66602
|
+
* @return {number}
|
|
66603
|
+
*/
|
|
66604
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getScaleDownDelaySeconds = function() {
|
|
66605
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
66606
|
+
};
|
|
66607
|
+
|
|
66608
|
+
|
|
66609
|
+
/**
|
|
66610
|
+
* @param {number} value
|
|
66611
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
66612
|
+
*/
|
|
66613
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setScaleDownDelaySeconds = function(value) {
|
|
66614
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
66615
|
+
};
|
|
66616
|
+
|
|
66617
|
+
|
|
66618
|
+
/**
|
|
66619
|
+
* optional uint32 scale_up_delay_seconds = 5;
|
|
66620
|
+
* @return {number}
|
|
66621
|
+
*/
|
|
66622
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getScaleUpDelaySeconds = function() {
|
|
66623
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
66624
|
+
};
|
|
66625
|
+
|
|
66626
|
+
|
|
66627
|
+
/**
|
|
66628
|
+
* @param {number} value
|
|
66629
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
66630
|
+
*/
|
|
66631
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setScaleUpDelaySeconds = function(value) {
|
|
66632
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
66633
|
+
};
|
|
66634
|
+
|
|
66635
|
+
|
|
66636
|
+
/**
|
|
66637
|
+
* optional bool enable_packing = 6;
|
|
66638
|
+
* @return {boolean}
|
|
66639
|
+
*/
|
|
66640
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getEnablePacking = function() {
|
|
66641
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
66642
|
+
};
|
|
66643
|
+
|
|
66644
|
+
|
|
66645
|
+
/**
|
|
66646
|
+
* @param {boolean} value
|
|
66647
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
66648
|
+
*/
|
|
66649
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setEnablePacking = function(value) {
|
|
66650
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
66651
|
+
};
|
|
66652
|
+
|
|
66653
|
+
|
|
66654
|
+
|
|
66655
|
+
/**
|
|
66656
|
+
* List of repeated fields within this message type.
|
|
66657
|
+
* @private {!Array<number>}
|
|
66658
|
+
* @const
|
|
66659
|
+
*/
|
|
66660
|
+
proto.clarifai.api.Deployment.repeatedFields_ = [4];
|
|
66661
|
+
|
|
66662
|
+
/**
|
|
66663
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
66664
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
66665
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
66666
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
66667
|
+
* @private {!Array<!Array<number>>}
|
|
66668
|
+
* @const
|
|
66669
|
+
*/
|
|
66670
|
+
proto.clarifai.api.Deployment.oneofGroups_ = [[5,6]];
|
|
66671
|
+
|
|
66672
|
+
/**
|
|
66673
|
+
* @enum {number}
|
|
66674
|
+
*/
|
|
66675
|
+
proto.clarifai.api.Deployment.ObjectCase = {
|
|
66676
|
+
OBJECT_NOT_SET: 0,
|
|
66677
|
+
MODEL: 5,
|
|
66678
|
+
WORKFLOW: 6
|
|
66679
|
+
};
|
|
66680
|
+
|
|
66681
|
+
/**
|
|
66682
|
+
* @return {proto.clarifai.api.Deployment.ObjectCase}
|
|
66683
|
+
*/
|
|
66684
|
+
proto.clarifai.api.Deployment.prototype.getObjectCase = function() {
|
|
66685
|
+
return /** @type {proto.clarifai.api.Deployment.ObjectCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Deployment.oneofGroups_[0]));
|
|
66686
|
+
};
|
|
66687
|
+
|
|
66688
|
+
|
|
66689
|
+
|
|
66690
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
66691
|
+
/**
|
|
66692
|
+
* Creates an object representation of this proto.
|
|
66693
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
66694
|
+
* Optional fields that are not set will be set to undefined.
|
|
66695
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
66696
|
+
* For the list of reserved names please see:
|
|
66697
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
66698
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
66699
|
+
* JSPB instance for transitional soy proto support:
|
|
66700
|
+
* http://goto/soy-param-migration
|
|
66701
|
+
* @return {!Object}
|
|
66702
|
+
*/
|
|
66703
|
+
proto.clarifai.api.Deployment.prototype.toObject = function(opt_includeInstance) {
|
|
66704
|
+
return proto.clarifai.api.Deployment.toObject(opt_includeInstance, this);
|
|
66705
|
+
};
|
|
66706
|
+
|
|
66707
|
+
|
|
66708
|
+
/**
|
|
66709
|
+
* Static version of the {@see toObject} method.
|
|
66710
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
66711
|
+
* the JSPB instance for transitional soy proto support:
|
|
66712
|
+
* http://goto/soy-param-migration
|
|
66713
|
+
* @param {!proto.clarifai.api.Deployment} msg The msg instance to transform.
|
|
66714
|
+
* @return {!Object}
|
|
66715
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
66716
|
+
*/
|
|
66717
|
+
proto.clarifai.api.Deployment.toObject = function(includeInstance, msg) {
|
|
66718
|
+
var f, obj = {
|
|
66719
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
66720
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
66721
|
+
autoscaleConfig: (f = msg.getAutoscaleConfig()) && proto.clarifai.api.AutoscaleConfig.toObject(includeInstance, f),
|
|
66722
|
+
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(),
|
|
66723
|
+
proto.clarifai.api.Nodepool.toObject, includeInstance),
|
|
66724
|
+
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
66725
|
+
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
66726
|
+
schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
66727
|
+
};
|
|
66728
|
+
|
|
66729
|
+
if (includeInstance) {
|
|
66730
|
+
obj.$jspbMessageInstance = msg;
|
|
66731
|
+
}
|
|
66732
|
+
return obj;
|
|
66733
|
+
};
|
|
66734
|
+
}
|
|
66735
|
+
|
|
66736
|
+
|
|
66737
|
+
/**
|
|
66738
|
+
* Deserializes binary data (in protobuf wire format).
|
|
66739
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
66740
|
+
* @return {!proto.clarifai.api.Deployment}
|
|
66741
|
+
*/
|
|
66742
|
+
proto.clarifai.api.Deployment.deserializeBinary = function(bytes) {
|
|
66743
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
66744
|
+
var msg = new proto.clarifai.api.Deployment;
|
|
66745
|
+
return proto.clarifai.api.Deployment.deserializeBinaryFromReader(msg, reader);
|
|
66746
|
+
};
|
|
66747
|
+
|
|
66748
|
+
|
|
66749
|
+
/**
|
|
66750
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
66751
|
+
* given reader into the given message object.
|
|
66752
|
+
* @param {!proto.clarifai.api.Deployment} msg The message object to deserialize into.
|
|
66753
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
66754
|
+
* @return {!proto.clarifai.api.Deployment}
|
|
66755
|
+
*/
|
|
66756
|
+
proto.clarifai.api.Deployment.deserializeBinaryFromReader = function(msg, reader) {
|
|
66757
|
+
while (reader.nextField()) {
|
|
66758
|
+
if (reader.isEndGroup()) {
|
|
66759
|
+
break;
|
|
66760
|
+
}
|
|
66761
|
+
var field = reader.getFieldNumber();
|
|
66762
|
+
switch (field) {
|
|
66763
|
+
case 1:
|
|
66764
|
+
var value = /** @type {string} */ (reader.readString());
|
|
66765
|
+
msg.setId(value);
|
|
66766
|
+
break;
|
|
66767
|
+
case 2:
|
|
66768
|
+
var value = /** @type {string} */ (reader.readString());
|
|
66769
|
+
msg.setUserId(value);
|
|
66770
|
+
break;
|
|
66771
|
+
case 3:
|
|
66772
|
+
var value = new proto.clarifai.api.AutoscaleConfig;
|
|
66773
|
+
reader.readMessage(value,proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader);
|
|
66774
|
+
msg.setAutoscaleConfig(value);
|
|
66775
|
+
break;
|
|
66776
|
+
case 4:
|
|
66777
|
+
var value = new proto.clarifai.api.Nodepool;
|
|
66778
|
+
reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
66779
|
+
msg.addNodepools(value);
|
|
66780
|
+
break;
|
|
66781
|
+
case 5:
|
|
66782
|
+
var value = new proto.clarifai.api.Model;
|
|
66783
|
+
reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
66784
|
+
msg.setModel(value);
|
|
66785
|
+
break;
|
|
66786
|
+
case 6:
|
|
66787
|
+
var value = new proto.clarifai.api.Workflow;
|
|
66788
|
+
reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
66789
|
+
msg.setWorkflow(value);
|
|
66790
|
+
break;
|
|
66791
|
+
case 7:
|
|
66792
|
+
var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
|
|
66793
|
+
msg.setSchedulingChoice(value);
|
|
66794
|
+
break;
|
|
66795
|
+
default:
|
|
66796
|
+
reader.skipField();
|
|
66797
|
+
break;
|
|
66798
|
+
}
|
|
66799
|
+
}
|
|
66800
|
+
return msg;
|
|
66801
|
+
};
|
|
66802
|
+
|
|
66803
|
+
|
|
66804
|
+
/**
|
|
66805
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
66806
|
+
* @return {!Uint8Array}
|
|
66807
|
+
*/
|
|
66808
|
+
proto.clarifai.api.Deployment.prototype.serializeBinary = function() {
|
|
66809
|
+
var writer = new jspb.BinaryWriter();
|
|
66810
|
+
proto.clarifai.api.Deployment.serializeBinaryToWriter(this, writer);
|
|
66811
|
+
return writer.getResultBuffer();
|
|
66812
|
+
};
|
|
66813
|
+
|
|
66814
|
+
|
|
66815
|
+
/**
|
|
66816
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
66817
|
+
* format), writing to the given BinaryWriter.
|
|
66818
|
+
* @param {!proto.clarifai.api.Deployment} message
|
|
66819
|
+
* @param {!jspb.BinaryWriter} writer
|
|
66820
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
66821
|
+
*/
|
|
66822
|
+
proto.clarifai.api.Deployment.serializeBinaryToWriter = function(message, writer) {
|
|
66823
|
+
var f = undefined;
|
|
66824
|
+
f = message.getId();
|
|
66825
|
+
if (f.length > 0) {
|
|
66826
|
+
writer.writeString(
|
|
66827
|
+
1,
|
|
66828
|
+
f
|
|
66829
|
+
);
|
|
66830
|
+
}
|
|
66831
|
+
f = message.getUserId();
|
|
66832
|
+
if (f.length > 0) {
|
|
66833
|
+
writer.writeString(
|
|
66834
|
+
2,
|
|
66835
|
+
f
|
|
66836
|
+
);
|
|
66837
|
+
}
|
|
66838
|
+
f = message.getAutoscaleConfig();
|
|
66839
|
+
if (f != null) {
|
|
66840
|
+
writer.writeMessage(
|
|
66841
|
+
3,
|
|
66842
|
+
f,
|
|
66843
|
+
proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter
|
|
66844
|
+
);
|
|
66845
|
+
}
|
|
66846
|
+
f = message.getNodepoolsList();
|
|
66847
|
+
if (f.length > 0) {
|
|
66848
|
+
writer.writeRepeatedMessage(
|
|
66849
|
+
4,
|
|
66850
|
+
f,
|
|
66851
|
+
proto.clarifai.api.Nodepool.serializeBinaryToWriter
|
|
66852
|
+
);
|
|
66853
|
+
}
|
|
66854
|
+
f = message.getModel();
|
|
66855
|
+
if (f != null) {
|
|
66856
|
+
writer.writeMessage(
|
|
66857
|
+
5,
|
|
66858
|
+
f,
|
|
66859
|
+
proto.clarifai.api.Model.serializeBinaryToWriter
|
|
66860
|
+
);
|
|
66861
|
+
}
|
|
66862
|
+
f = message.getWorkflow();
|
|
66863
|
+
if (f != null) {
|
|
66864
|
+
writer.writeMessage(
|
|
66865
|
+
6,
|
|
66866
|
+
f,
|
|
66867
|
+
proto.clarifai.api.Workflow.serializeBinaryToWriter
|
|
66868
|
+
);
|
|
66869
|
+
}
|
|
66870
|
+
f = message.getSchedulingChoice();
|
|
66871
|
+
if (f !== 0.0) {
|
|
66872
|
+
writer.writeEnum(
|
|
66873
|
+
7,
|
|
66874
|
+
f
|
|
66875
|
+
);
|
|
66876
|
+
}
|
|
66877
|
+
};
|
|
66878
|
+
|
|
66879
|
+
|
|
66880
|
+
/**
|
|
66881
|
+
* @enum {number}
|
|
66882
|
+
*/
|
|
66883
|
+
proto.clarifai.api.Deployment.SchedulingChoice = {
|
|
66884
|
+
UNKNOWN_SCHEDULING_CHOICE: 0,
|
|
66885
|
+
FAIL: 1,
|
|
66886
|
+
RANDOM: 2,
|
|
66887
|
+
PRICE: 3,
|
|
66888
|
+
PERFORMANCE: 4,
|
|
66889
|
+
NETWORK: 5,
|
|
66890
|
+
UTILIZATION: 6,
|
|
66891
|
+
PREFER_SPOT: 7,
|
|
66892
|
+
PREFER_ONDEMAND: 8
|
|
66893
|
+
};
|
|
66894
|
+
|
|
66895
|
+
/**
|
|
66896
|
+
* optional string id = 1;
|
|
66897
|
+
* @return {string}
|
|
66898
|
+
*/
|
|
66899
|
+
proto.clarifai.api.Deployment.prototype.getId = function() {
|
|
66900
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
66901
|
+
};
|
|
66902
|
+
|
|
66903
|
+
|
|
66904
|
+
/**
|
|
66905
|
+
* @param {string} value
|
|
66906
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
66907
|
+
*/
|
|
66908
|
+
proto.clarifai.api.Deployment.prototype.setId = function(value) {
|
|
66909
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
66910
|
+
};
|
|
66911
|
+
|
|
66912
|
+
|
|
66913
|
+
/**
|
|
66914
|
+
* optional string user_id = 2;
|
|
66915
|
+
* @return {string}
|
|
66916
|
+
*/
|
|
66917
|
+
proto.clarifai.api.Deployment.prototype.getUserId = function() {
|
|
66918
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
66919
|
+
};
|
|
66920
|
+
|
|
66921
|
+
|
|
66922
|
+
/**
|
|
66923
|
+
* @param {string} value
|
|
66924
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
66925
|
+
*/
|
|
66926
|
+
proto.clarifai.api.Deployment.prototype.setUserId = function(value) {
|
|
66927
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
66928
|
+
};
|
|
66929
|
+
|
|
66930
|
+
|
|
66931
|
+
/**
|
|
66932
|
+
* optional AutoscaleConfig autoscale_config = 3;
|
|
66933
|
+
* @return {?proto.clarifai.api.AutoscaleConfig}
|
|
66934
|
+
*/
|
|
66935
|
+
proto.clarifai.api.Deployment.prototype.getAutoscaleConfig = function() {
|
|
66936
|
+
return /** @type{?proto.clarifai.api.AutoscaleConfig} */ (
|
|
66937
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.AutoscaleConfig, 3));
|
|
66938
|
+
};
|
|
66939
|
+
|
|
66940
|
+
|
|
66941
|
+
/**
|
|
66942
|
+
* @param {?proto.clarifai.api.AutoscaleConfig|undefined} value
|
|
66943
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
66944
|
+
*/
|
|
66945
|
+
proto.clarifai.api.Deployment.prototype.setAutoscaleConfig = function(value) {
|
|
66946
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
66947
|
+
};
|
|
66948
|
+
|
|
66949
|
+
|
|
66950
|
+
/**
|
|
66951
|
+
* Clears the message field making it undefined.
|
|
66952
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
66953
|
+
*/
|
|
66954
|
+
proto.clarifai.api.Deployment.prototype.clearAutoscaleConfig = function() {
|
|
66955
|
+
return this.setAutoscaleConfig(undefined);
|
|
66956
|
+
};
|
|
66957
|
+
|
|
66958
|
+
|
|
66959
|
+
/**
|
|
66960
|
+
* Returns whether this field is set.
|
|
66961
|
+
* @return {boolean}
|
|
66962
|
+
*/
|
|
66963
|
+
proto.clarifai.api.Deployment.prototype.hasAutoscaleConfig = function() {
|
|
66964
|
+
return jspb.Message.getField(this, 3) != null;
|
|
66965
|
+
};
|
|
66966
|
+
|
|
66967
|
+
|
|
66968
|
+
/**
|
|
66969
|
+
* repeated Nodepool nodepools = 4;
|
|
66970
|
+
* @return {!Array<!proto.clarifai.api.Nodepool>}
|
|
66971
|
+
*/
|
|
66972
|
+
proto.clarifai.api.Deployment.prototype.getNodepoolsList = function() {
|
|
66973
|
+
return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (
|
|
66974
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Nodepool, 4));
|
|
66975
|
+
};
|
|
66976
|
+
|
|
66977
|
+
|
|
66978
|
+
/**
|
|
66979
|
+
* @param {!Array<!proto.clarifai.api.Nodepool>} value
|
|
66980
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
66981
|
+
*/
|
|
66982
|
+
proto.clarifai.api.Deployment.prototype.setNodepoolsList = function(value) {
|
|
66983
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
66984
|
+
};
|
|
66985
|
+
|
|
66986
|
+
|
|
66987
|
+
/**
|
|
66988
|
+
* @param {!proto.clarifai.api.Nodepool=} opt_value
|
|
66989
|
+
* @param {number=} opt_index
|
|
66990
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
66991
|
+
*/
|
|
66992
|
+
proto.clarifai.api.Deployment.prototype.addNodepools = function(opt_value, opt_index) {
|
|
66993
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Nodepool, opt_index);
|
|
66994
|
+
};
|
|
66995
|
+
|
|
66996
|
+
|
|
66997
|
+
/**
|
|
66998
|
+
* Clears the list making it empty but non-null.
|
|
66999
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
67000
|
+
*/
|
|
67001
|
+
proto.clarifai.api.Deployment.prototype.clearNodepoolsList = function() {
|
|
67002
|
+
return this.setNodepoolsList([]);
|
|
67003
|
+
};
|
|
67004
|
+
|
|
67005
|
+
|
|
67006
|
+
/**
|
|
67007
|
+
* optional Model model = 5;
|
|
67008
|
+
* @return {?proto.clarifai.api.Model}
|
|
67009
|
+
*/
|
|
67010
|
+
proto.clarifai.api.Deployment.prototype.getModel = function() {
|
|
67011
|
+
return /** @type{?proto.clarifai.api.Model} */ (
|
|
67012
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 5));
|
|
67013
|
+
};
|
|
67014
|
+
|
|
67015
|
+
|
|
67016
|
+
/**
|
|
67017
|
+
* @param {?proto.clarifai.api.Model|undefined} value
|
|
67018
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
67019
|
+
*/
|
|
67020
|
+
proto.clarifai.api.Deployment.prototype.setModel = function(value) {
|
|
67021
|
+
return jspb.Message.setOneofWrapperField(this, 5, proto.clarifai.api.Deployment.oneofGroups_[0], value);
|
|
67022
|
+
};
|
|
67023
|
+
|
|
67024
|
+
|
|
67025
|
+
/**
|
|
67026
|
+
* Clears the message field making it undefined.
|
|
67027
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
67028
|
+
*/
|
|
67029
|
+
proto.clarifai.api.Deployment.prototype.clearModel = function() {
|
|
67030
|
+
return this.setModel(undefined);
|
|
67031
|
+
};
|
|
67032
|
+
|
|
67033
|
+
|
|
67034
|
+
/**
|
|
67035
|
+
* Returns whether this field is set.
|
|
67036
|
+
* @return {boolean}
|
|
67037
|
+
*/
|
|
67038
|
+
proto.clarifai.api.Deployment.prototype.hasModel = function() {
|
|
67039
|
+
return jspb.Message.getField(this, 5) != null;
|
|
67040
|
+
};
|
|
67041
|
+
|
|
67042
|
+
|
|
67043
|
+
/**
|
|
67044
|
+
* optional Workflow workflow = 6;
|
|
67045
|
+
* @return {?proto.clarifai.api.Workflow}
|
|
67046
|
+
*/
|
|
67047
|
+
proto.clarifai.api.Deployment.prototype.getWorkflow = function() {
|
|
67048
|
+
return /** @type{?proto.clarifai.api.Workflow} */ (
|
|
67049
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 6));
|
|
67050
|
+
};
|
|
67051
|
+
|
|
67052
|
+
|
|
67053
|
+
/**
|
|
67054
|
+
* @param {?proto.clarifai.api.Workflow|undefined} value
|
|
67055
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
67056
|
+
*/
|
|
67057
|
+
proto.clarifai.api.Deployment.prototype.setWorkflow = function(value) {
|
|
67058
|
+
return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.Deployment.oneofGroups_[0], value);
|
|
67059
|
+
};
|
|
67060
|
+
|
|
67061
|
+
|
|
67062
|
+
/**
|
|
67063
|
+
* Clears the message field making it undefined.
|
|
67064
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
67065
|
+
*/
|
|
67066
|
+
proto.clarifai.api.Deployment.prototype.clearWorkflow = function() {
|
|
67067
|
+
return this.setWorkflow(undefined);
|
|
67068
|
+
};
|
|
67069
|
+
|
|
67070
|
+
|
|
67071
|
+
/**
|
|
67072
|
+
* Returns whether this field is set.
|
|
67073
|
+
* @return {boolean}
|
|
67074
|
+
*/
|
|
67075
|
+
proto.clarifai.api.Deployment.prototype.hasWorkflow = function() {
|
|
67076
|
+
return jspb.Message.getField(this, 6) != null;
|
|
67077
|
+
};
|
|
67078
|
+
|
|
67079
|
+
|
|
67080
|
+
/**
|
|
67081
|
+
* optional SchedulingChoice scheduling_choice = 7;
|
|
67082
|
+
* @return {!proto.clarifai.api.Deployment.SchedulingChoice}
|
|
67083
|
+
*/
|
|
67084
|
+
proto.clarifai.api.Deployment.prototype.getSchedulingChoice = function() {
|
|
67085
|
+
return /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
67086
|
+
};
|
|
67087
|
+
|
|
67088
|
+
|
|
67089
|
+
/**
|
|
67090
|
+
* @param {!proto.clarifai.api.Deployment.SchedulingChoice} value
|
|
67091
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
67092
|
+
*/
|
|
67093
|
+
proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function(value) {
|
|
67094
|
+
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
67095
|
+
};
|
|
67096
|
+
|
|
67097
|
+
|
|
67098
|
+
|
|
67099
|
+
|
|
67100
|
+
|
|
67101
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
67102
|
+
/**
|
|
67103
|
+
* Creates an object representation of this proto.
|
|
67104
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
67105
|
+
* Optional fields that are not set will be set to undefined.
|
|
67106
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
67107
|
+
* For the list of reserved names please see:
|
|
67108
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
67109
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
67110
|
+
* JSPB instance for transitional soy proto support:
|
|
67111
|
+
* http://goto/soy-param-migration
|
|
67112
|
+
* @return {!Object}
|
|
67113
|
+
*/
|
|
67114
|
+
proto.clarifai.api.RunnerSelector.prototype.toObject = function(opt_includeInstance) {
|
|
67115
|
+
return proto.clarifai.api.RunnerSelector.toObject(opt_includeInstance, this);
|
|
67116
|
+
};
|
|
67117
|
+
|
|
67118
|
+
|
|
67119
|
+
/**
|
|
67120
|
+
* Static version of the {@see toObject} method.
|
|
67121
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
67122
|
+
* the JSPB instance for transitional soy proto support:
|
|
67123
|
+
* http://goto/soy-param-migration
|
|
67124
|
+
* @param {!proto.clarifai.api.RunnerSelector} msg The msg instance to transform.
|
|
67125
|
+
* @return {!Object}
|
|
67126
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
67127
|
+
*/
|
|
67128
|
+
proto.clarifai.api.RunnerSelector.toObject = function(includeInstance, msg) {
|
|
67129
|
+
var f, obj = {
|
|
67130
|
+
nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
|
|
67131
|
+
runner: (f = msg.getRunner()) && proto.clarifai.api.Runner.toObject(includeInstance, f),
|
|
67132
|
+
deployment: (f = msg.getDeployment()) && proto.clarifai.api.Deployment.toObject(includeInstance, f)
|
|
67133
|
+
};
|
|
67134
|
+
|
|
67135
|
+
if (includeInstance) {
|
|
67136
|
+
obj.$jspbMessageInstance = msg;
|
|
67137
|
+
}
|
|
67138
|
+
return obj;
|
|
67139
|
+
};
|
|
67140
|
+
}
|
|
67141
|
+
|
|
67142
|
+
|
|
67143
|
+
/**
|
|
67144
|
+
* Deserializes binary data (in protobuf wire format).
|
|
67145
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
67146
|
+
* @return {!proto.clarifai.api.RunnerSelector}
|
|
67147
|
+
*/
|
|
67148
|
+
proto.clarifai.api.RunnerSelector.deserializeBinary = function(bytes) {
|
|
67149
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
67150
|
+
var msg = new proto.clarifai.api.RunnerSelector;
|
|
67151
|
+
return proto.clarifai.api.RunnerSelector.deserializeBinaryFromReader(msg, reader);
|
|
67152
|
+
};
|
|
67153
|
+
|
|
67154
|
+
|
|
67155
|
+
/**
|
|
67156
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
67157
|
+
* given reader into the given message object.
|
|
67158
|
+
* @param {!proto.clarifai.api.RunnerSelector} msg The message object to deserialize into.
|
|
67159
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
67160
|
+
* @return {!proto.clarifai.api.RunnerSelector}
|
|
67161
|
+
*/
|
|
67162
|
+
proto.clarifai.api.RunnerSelector.deserializeBinaryFromReader = function(msg, reader) {
|
|
67163
|
+
while (reader.nextField()) {
|
|
67164
|
+
if (reader.isEndGroup()) {
|
|
67165
|
+
break;
|
|
67166
|
+
}
|
|
67167
|
+
var field = reader.getFieldNumber();
|
|
67168
|
+
switch (field) {
|
|
67169
|
+
case 1:
|
|
67170
|
+
var value = new proto.clarifai.api.Nodepool;
|
|
67171
|
+
reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
67172
|
+
msg.setNodepool(value);
|
|
67173
|
+
break;
|
|
67174
|
+
case 2:
|
|
67175
|
+
var value = new proto.clarifai.api.Runner;
|
|
67176
|
+
reader.readMessage(value,proto.clarifai.api.Runner.deserializeBinaryFromReader);
|
|
67177
|
+
msg.setRunner(value);
|
|
67178
|
+
break;
|
|
67179
|
+
case 3:
|
|
67180
|
+
var value = new proto.clarifai.api.Deployment;
|
|
67181
|
+
reader.readMessage(value,proto.clarifai.api.Deployment.deserializeBinaryFromReader);
|
|
67182
|
+
msg.setDeployment(value);
|
|
67183
|
+
break;
|
|
67184
|
+
default:
|
|
67185
|
+
reader.skipField();
|
|
67186
|
+
break;
|
|
67187
|
+
}
|
|
67188
|
+
}
|
|
67189
|
+
return msg;
|
|
67190
|
+
};
|
|
67191
|
+
|
|
67192
|
+
|
|
67193
|
+
/**
|
|
67194
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
67195
|
+
* @return {!Uint8Array}
|
|
67196
|
+
*/
|
|
67197
|
+
proto.clarifai.api.RunnerSelector.prototype.serializeBinary = function() {
|
|
67198
|
+
var writer = new jspb.BinaryWriter();
|
|
67199
|
+
proto.clarifai.api.RunnerSelector.serializeBinaryToWriter(this, writer);
|
|
67200
|
+
return writer.getResultBuffer();
|
|
67201
|
+
};
|
|
67202
|
+
|
|
67203
|
+
|
|
67204
|
+
/**
|
|
67205
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
67206
|
+
* format), writing to the given BinaryWriter.
|
|
67207
|
+
* @param {!proto.clarifai.api.RunnerSelector} message
|
|
67208
|
+
* @param {!jspb.BinaryWriter} writer
|
|
67209
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
67210
|
+
*/
|
|
67211
|
+
proto.clarifai.api.RunnerSelector.serializeBinaryToWriter = function(message, writer) {
|
|
67212
|
+
var f = undefined;
|
|
67213
|
+
f = message.getNodepool();
|
|
67214
|
+
if (f != null) {
|
|
67215
|
+
writer.writeMessage(
|
|
67216
|
+
1,
|
|
67217
|
+
f,
|
|
67218
|
+
proto.clarifai.api.Nodepool.serializeBinaryToWriter
|
|
67219
|
+
);
|
|
67220
|
+
}
|
|
67221
|
+
f = message.getRunner();
|
|
67222
|
+
if (f != null) {
|
|
67223
|
+
writer.writeMessage(
|
|
67224
|
+
2,
|
|
67225
|
+
f,
|
|
67226
|
+
proto.clarifai.api.Runner.serializeBinaryToWriter
|
|
67227
|
+
);
|
|
67228
|
+
}
|
|
67229
|
+
f = message.getDeployment();
|
|
67230
|
+
if (f != null) {
|
|
67231
|
+
writer.writeMessage(
|
|
67232
|
+
3,
|
|
67233
|
+
f,
|
|
67234
|
+
proto.clarifai.api.Deployment.serializeBinaryToWriter
|
|
67235
|
+
);
|
|
67236
|
+
}
|
|
67237
|
+
};
|
|
67238
|
+
|
|
67239
|
+
|
|
67240
|
+
/**
|
|
67241
|
+
* optional Nodepool nodepool = 1;
|
|
67242
|
+
* @return {?proto.clarifai.api.Nodepool}
|
|
67243
|
+
*/
|
|
67244
|
+
proto.clarifai.api.RunnerSelector.prototype.getNodepool = function() {
|
|
67245
|
+
return /** @type{?proto.clarifai.api.Nodepool} */ (
|
|
67246
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 1));
|
|
67247
|
+
};
|
|
67248
|
+
|
|
67249
|
+
|
|
67250
|
+
/**
|
|
67251
|
+
* @param {?proto.clarifai.api.Nodepool|undefined} value
|
|
67252
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
67253
|
+
*/
|
|
67254
|
+
proto.clarifai.api.RunnerSelector.prototype.setNodepool = function(value) {
|
|
67255
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
67256
|
+
};
|
|
67257
|
+
|
|
67258
|
+
|
|
67259
|
+
/**
|
|
67260
|
+
* Clears the message field making it undefined.
|
|
67261
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
67262
|
+
*/
|
|
67263
|
+
proto.clarifai.api.RunnerSelector.prototype.clearNodepool = function() {
|
|
67264
|
+
return this.setNodepool(undefined);
|
|
67265
|
+
};
|
|
67266
|
+
|
|
67267
|
+
|
|
67268
|
+
/**
|
|
67269
|
+
* Returns whether this field is set.
|
|
67270
|
+
* @return {boolean}
|
|
67271
|
+
*/
|
|
67272
|
+
proto.clarifai.api.RunnerSelector.prototype.hasNodepool = function() {
|
|
67273
|
+
return jspb.Message.getField(this, 1) != null;
|
|
67274
|
+
};
|
|
67275
|
+
|
|
67276
|
+
|
|
67277
|
+
/**
|
|
67278
|
+
* optional Runner runner = 2;
|
|
67279
|
+
* @return {?proto.clarifai.api.Runner}
|
|
67280
|
+
*/
|
|
67281
|
+
proto.clarifai.api.RunnerSelector.prototype.getRunner = function() {
|
|
67282
|
+
return /** @type{?proto.clarifai.api.Runner} */ (
|
|
67283
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Runner, 2));
|
|
67284
|
+
};
|
|
67285
|
+
|
|
67286
|
+
|
|
67287
|
+
/**
|
|
67288
|
+
* @param {?proto.clarifai.api.Runner|undefined} value
|
|
67289
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
67290
|
+
*/
|
|
67291
|
+
proto.clarifai.api.RunnerSelector.prototype.setRunner = function(value) {
|
|
67292
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
67293
|
+
};
|
|
67294
|
+
|
|
67295
|
+
|
|
67296
|
+
/**
|
|
67297
|
+
* Clears the message field making it undefined.
|
|
67298
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
67299
|
+
*/
|
|
67300
|
+
proto.clarifai.api.RunnerSelector.prototype.clearRunner = function() {
|
|
67301
|
+
return this.setRunner(undefined);
|
|
67302
|
+
};
|
|
67303
|
+
|
|
67304
|
+
|
|
67305
|
+
/**
|
|
67306
|
+
* Returns whether this field is set.
|
|
67307
|
+
* @return {boolean}
|
|
67308
|
+
*/
|
|
67309
|
+
proto.clarifai.api.RunnerSelector.prototype.hasRunner = function() {
|
|
67310
|
+
return jspb.Message.getField(this, 2) != null;
|
|
67311
|
+
};
|
|
67312
|
+
|
|
67313
|
+
|
|
67314
|
+
/**
|
|
67315
|
+
* optional Deployment deployment = 3;
|
|
67316
|
+
* @return {?proto.clarifai.api.Deployment}
|
|
67317
|
+
*/
|
|
67318
|
+
proto.clarifai.api.RunnerSelector.prototype.getDeployment = function() {
|
|
67319
|
+
return /** @type{?proto.clarifai.api.Deployment} */ (
|
|
67320
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Deployment, 3));
|
|
67321
|
+
};
|
|
67322
|
+
|
|
67323
|
+
|
|
67324
|
+
/**
|
|
67325
|
+
* @param {?proto.clarifai.api.Deployment|undefined} value
|
|
67326
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
67327
|
+
*/
|
|
67328
|
+
proto.clarifai.api.RunnerSelector.prototype.setDeployment = function(value) {
|
|
67329
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
67330
|
+
};
|
|
67331
|
+
|
|
67332
|
+
|
|
67333
|
+
/**
|
|
67334
|
+
* Clears the message field making it undefined.
|
|
67335
|
+
* @return {!proto.clarifai.api.RunnerSelector} returns this
|
|
67336
|
+
*/
|
|
67337
|
+
proto.clarifai.api.RunnerSelector.prototype.clearDeployment = function() {
|
|
67338
|
+
return this.setDeployment(undefined);
|
|
67339
|
+
};
|
|
67340
|
+
|
|
67341
|
+
|
|
67342
|
+
/**
|
|
67343
|
+
* Returns whether this field is set.
|
|
67344
|
+
* @return {boolean}
|
|
67345
|
+
*/
|
|
67346
|
+
proto.clarifai.api.RunnerSelector.prototype.hasDeployment = function() {
|
|
67347
|
+
return jspb.Message.getField(this, 3) != null;
|
|
67348
|
+
};
|
|
67349
|
+
|
|
67350
|
+
|
|
64726
67351
|
/**
|
|
64727
67352
|
* @enum {number}
|
|
64728
67353
|
*/
|