clarifai-web-grpc 10.1.6 → 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 +2827 -92
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +90 -6
- package/dist/cjs/proto/clarifai/api/service_pb.js +10404 -8056
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +10 -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 +2827 -92
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +90 -6
- package/dist/esm/proto/clarifai/api/service_pb.js +10404 -8056
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +10 -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 +456 -15
- package/proto/clarifai/api/resources_pb.js +3689 -274
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +27 -3
- package/proto/clarifai/api/service_grpc_web_pb.js +128 -6
- package/proto/clarifai/api/service_pb.d.ts +355 -0
- package/proto/clarifai/api/service_pb.js +15757 -12851
- package/proto/clarifai/api/status/status_code_pb.d.ts +10 -0
- package/proto/clarifai/api/status/status_code_pb.js +10 -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);
|
|
@@ -172,6 +180,7 @@ goog.exportSymbol('proto.clarifai.api.ModelTypeField', null, global);
|
|
|
172
180
|
goog.exportSymbol('proto.clarifai.api.ModelTypeField.ModelTypeFieldType', null, global);
|
|
173
181
|
goog.exportSymbol('proto.clarifai.api.ModelTypeRangeInfo', null, global);
|
|
174
182
|
goog.exportSymbol('proto.clarifai.api.ModelVersion', null, global);
|
|
183
|
+
goog.exportSymbol('proto.clarifai.api.ModelVersionExport', null, global);
|
|
175
184
|
goog.exportSymbol('proto.clarifai.api.ModelVersionInputExample', null, global);
|
|
176
185
|
goog.exportSymbol('proto.clarifai.api.Module', null, global);
|
|
177
186
|
goog.exportSymbol('proto.clarifai.api.ModuleStar', null, global);
|
|
@@ -179,6 +188,8 @@ goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global);
|
|
|
179
188
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global);
|
|
180
189
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global);
|
|
181
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);
|
|
182
193
|
goog.exportSymbol('proto.clarifai.api.Operation', null, global);
|
|
183
194
|
goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
|
|
184
195
|
goog.exportSymbol('proto.clarifai.api.Output', null, global);
|
|
@@ -202,6 +213,8 @@ goog.exportSymbol('proto.clarifai.api.Region', null, global);
|
|
|
202
213
|
goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
|
|
203
214
|
goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
|
|
204
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);
|
|
205
218
|
goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
|
|
206
219
|
goog.exportSymbol('proto.clarifai.api.Search', null, global);
|
|
207
220
|
goog.exportSymbol('proto.clarifai.api.Search.Metric', null, global);
|
|
@@ -217,6 +230,7 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
|
|
|
217
230
|
goog.exportSymbol('proto.clarifai.api.Task', null, global);
|
|
218
231
|
goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
|
|
219
232
|
goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
|
|
233
|
+
goog.exportSymbol('proto.clarifai.api.TaskAssignment', null, global);
|
|
220
234
|
goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
|
|
221
235
|
goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
|
|
222
236
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
|
|
@@ -228,6 +242,7 @@ goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, glob
|
|
|
228
242
|
goog.exportSymbol('proto.clarifai.api.TaskReviewConsensusStrategyInfo', null, global);
|
|
229
243
|
goog.exportSymbol('proto.clarifai.api.TaskReviewManualStrategyInfo', null, global);
|
|
230
244
|
goog.exportSymbol('proto.clarifai.api.TaskStatusCountPerUser', null, global);
|
|
245
|
+
goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
|
|
231
246
|
goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
|
|
232
247
|
goog.exportSymbol('proto.clarifai.api.TaskWorker.StrategyInfoCase', null, global);
|
|
233
248
|
goog.exportSymbol('proto.clarifai.api.TaskWorker.TaskWorkerStrategy', null, global);
|
|
@@ -1990,6 +2005,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1990
2005
|
*/
|
|
1991
2006
|
proto.clarifai.api.ModelVersion.displayName = 'proto.clarifai.api.ModelVersion';
|
|
1992
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
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Generated by JsPbCodeGenerator.
|
|
2031
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2032
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2033
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2034
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2035
|
+
* valid.
|
|
2036
|
+
* @extends {jspb.Message}
|
|
2037
|
+
* @constructor
|
|
2038
|
+
*/
|
|
2039
|
+
proto.clarifai.api.ModelVersionExport = function(opt_data) {
|
|
2040
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2041
|
+
};
|
|
2042
|
+
goog.inherits(proto.clarifai.api.ModelVersionExport, jspb.Message);
|
|
2043
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2044
|
+
/**
|
|
2045
|
+
* @public
|
|
2046
|
+
* @override
|
|
2047
|
+
*/
|
|
2048
|
+
proto.clarifai.api.ModelVersionExport.displayName = 'proto.clarifai.api.ModelVersionExport';
|
|
2049
|
+
}
|
|
1993
2050
|
/**
|
|
1994
2051
|
* Generated by JsPbCodeGenerator.
|
|
1995
2052
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3229,6 +3286,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3229
3286
|
*/
|
|
3230
3287
|
proto.clarifai.api.TaskAIAssistant.displayName = 'proto.clarifai.api.TaskAIAssistant';
|
|
3231
3288
|
}
|
|
3289
|
+
/**
|
|
3290
|
+
* Generated by JsPbCodeGenerator.
|
|
3291
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3292
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3293
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3294
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3295
|
+
* valid.
|
|
3296
|
+
* @extends {jspb.Message}
|
|
3297
|
+
* @constructor
|
|
3298
|
+
*/
|
|
3299
|
+
proto.clarifai.api.TaskAssignment = function(opt_data) {
|
|
3300
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3301
|
+
};
|
|
3302
|
+
goog.inherits(proto.clarifai.api.TaskAssignment, jspb.Message);
|
|
3303
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3304
|
+
/**
|
|
3305
|
+
* @public
|
|
3306
|
+
* @override
|
|
3307
|
+
*/
|
|
3308
|
+
proto.clarifai.api.TaskAssignment.displayName = 'proto.clarifai.api.TaskAssignment';
|
|
3309
|
+
}
|
|
3232
3310
|
/**
|
|
3233
3311
|
* Generated by JsPbCodeGenerator.
|
|
3234
3312
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3334,6 +3412,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3334
3412
|
*/
|
|
3335
3413
|
proto.clarifai.api.TaskMetrics.displayName = 'proto.clarifai.api.TaskMetrics';
|
|
3336
3414
|
}
|
|
3415
|
+
/**
|
|
3416
|
+
* Generated by JsPbCodeGenerator.
|
|
3417
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3418
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3419
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3420
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3421
|
+
* valid.
|
|
3422
|
+
* @extends {jspb.Message}
|
|
3423
|
+
* @constructor
|
|
3424
|
+
*/
|
|
3425
|
+
proto.clarifai.api.TaskWorkMetrics = function(opt_data) {
|
|
3426
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3427
|
+
};
|
|
3428
|
+
goog.inherits(proto.clarifai.api.TaskWorkMetrics, jspb.Message);
|
|
3429
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3430
|
+
/**
|
|
3431
|
+
* @public
|
|
3432
|
+
* @override
|
|
3433
|
+
*/
|
|
3434
|
+
proto.clarifai.api.TaskWorkMetrics.displayName = 'proto.clarifai.api.TaskWorkMetrics';
|
|
3435
|
+
}
|
|
3337
3436
|
/**
|
|
3338
3437
|
* Generated by JsPbCodeGenerator.
|
|
3339
3438
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4374,7 +4473,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4374
4473
|
* @constructor
|
|
4375
4474
|
*/
|
|
4376
4475
|
proto.clarifai.api.Runner = function(opt_data) {
|
|
4377
|
-
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_);
|
|
4378
4477
|
};
|
|
4379
4478
|
goog.inherits(proto.clarifai.api.Runner, jspb.Message);
|
|
4380
4479
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -4384,6 +4483,132 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4384
4483
|
*/
|
|
4385
4484
|
proto.clarifai.api.Runner.displayName = 'proto.clarifai.api.Runner';
|
|
4386
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
|
+
}
|
|
4387
4612
|
|
|
4388
4613
|
|
|
4389
4614
|
|
|
@@ -29445,7 +29670,9 @@ proto.clarifai.api.ModelVersion.toObject = function(includeInstance, msg) {
|
|
|
29445
29670
|
inputInfo: (f = msg.getInputInfo()) && proto.clarifai.api.InputInfo.toObject(includeInstance, f),
|
|
29446
29671
|
trainInfo: (f = msg.getTrainInfo()) && proto.clarifai.api.TrainInfo.toObject(includeInstance, f),
|
|
29447
29672
|
importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f),
|
|
29448
|
-
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)
|
|
29449
29676
|
};
|
|
29450
29677
|
|
|
29451
29678
|
if (includeInstance) {
|
|
@@ -29574,6 +29801,16 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function(msg, read
|
|
|
29574
29801
|
var value = /** @type {string} */ (reader.readString());
|
|
29575
29802
|
msg.setTrainLog(value);
|
|
29576
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;
|
|
29577
29814
|
default:
|
|
29578
29815
|
reader.skipField();
|
|
29579
29816
|
break;
|
|
@@ -29755,6 +29992,22 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function(message, writ
|
|
|
29755
29992
|
f
|
|
29756
29993
|
);
|
|
29757
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
|
+
}
|
|
29758
30011
|
};
|
|
29759
30012
|
|
|
29760
30013
|
|
|
@@ -30346,6 +30599,80 @@ proto.clarifai.api.ModelVersion.prototype.setTrainLog = function(value) {
|
|
|
30346
30599
|
};
|
|
30347
30600
|
|
|
30348
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
|
+
|
|
30349
30676
|
|
|
30350
30677
|
|
|
30351
30678
|
|
|
@@ -30362,8 +30689,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
30362
30689
|
* http://goto/soy-param-migration
|
|
30363
30690
|
* @return {!Object}
|
|
30364
30691
|
*/
|
|
30365
|
-
proto.clarifai.api.
|
|
30366
|
-
return proto.clarifai.api.
|
|
30692
|
+
proto.clarifai.api.BuildInfo.prototype.toObject = function(opt_includeInstance) {
|
|
30693
|
+
return proto.clarifai.api.BuildInfo.toObject(opt_includeInstance, this);
|
|
30367
30694
|
};
|
|
30368
30695
|
|
|
30369
30696
|
|
|
@@ -30372,15 +30699,15 @@ proto.clarifai.api.PretrainedModelConfig.prototype.toObject = function(opt_inclu
|
|
|
30372
30699
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
30373
30700
|
* the JSPB instance for transitional soy proto support:
|
|
30374
30701
|
* http://goto/soy-param-migration
|
|
30375
|
-
* @param {!proto.clarifai.api.
|
|
30702
|
+
* @param {!proto.clarifai.api.BuildInfo} msg The msg instance to transform.
|
|
30376
30703
|
* @return {!Object}
|
|
30377
30704
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30378
30705
|
*/
|
|
30379
|
-
proto.clarifai.api.
|
|
30706
|
+
proto.clarifai.api.BuildInfo.toObject = function(includeInstance, msg) {
|
|
30380
30707
|
var f, obj = {
|
|
30381
|
-
|
|
30382
|
-
|
|
30383
|
-
|
|
30708
|
+
dockerImageName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
30709
|
+
dockerImageTag: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
30710
|
+
dockerImageDigest: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
30384
30711
|
};
|
|
30385
30712
|
|
|
30386
30713
|
if (includeInstance) {
|
|
@@ -30394,42 +30721,40 @@ proto.clarifai.api.PretrainedModelConfig.toObject = function(includeInstance, ms
|
|
|
30394
30721
|
/**
|
|
30395
30722
|
* Deserializes binary data (in protobuf wire format).
|
|
30396
30723
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
30397
|
-
* @return {!proto.clarifai.api.
|
|
30724
|
+
* @return {!proto.clarifai.api.BuildInfo}
|
|
30398
30725
|
*/
|
|
30399
|
-
proto.clarifai.api.
|
|
30726
|
+
proto.clarifai.api.BuildInfo.deserializeBinary = function(bytes) {
|
|
30400
30727
|
var reader = new jspb.BinaryReader(bytes);
|
|
30401
|
-
var msg = new proto.clarifai.api.
|
|
30402
|
-
return proto.clarifai.api.
|
|
30728
|
+
var msg = new proto.clarifai.api.BuildInfo;
|
|
30729
|
+
return proto.clarifai.api.BuildInfo.deserializeBinaryFromReader(msg, reader);
|
|
30403
30730
|
};
|
|
30404
30731
|
|
|
30405
30732
|
|
|
30406
30733
|
/**
|
|
30407
30734
|
* Deserializes binary data (in protobuf wire format) from the
|
|
30408
30735
|
* given reader into the given message object.
|
|
30409
|
-
* @param {!proto.clarifai.api.
|
|
30736
|
+
* @param {!proto.clarifai.api.BuildInfo} msg The message object to deserialize into.
|
|
30410
30737
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
30411
|
-
* @return {!proto.clarifai.api.
|
|
30738
|
+
* @return {!proto.clarifai.api.BuildInfo}
|
|
30412
30739
|
*/
|
|
30413
|
-
proto.clarifai.api.
|
|
30740
|
+
proto.clarifai.api.BuildInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
30414
30741
|
while (reader.nextField()) {
|
|
30415
30742
|
if (reader.isEndGroup()) {
|
|
30416
30743
|
break;
|
|
30417
30744
|
}
|
|
30418
30745
|
var field = reader.getFieldNumber();
|
|
30419
30746
|
switch (field) {
|
|
30420
|
-
case
|
|
30421
|
-
var value =
|
|
30422
|
-
|
|
30423
|
-
msg.setInputFieldsMap(value);
|
|
30747
|
+
case 1:
|
|
30748
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30749
|
+
msg.setDockerImageName(value);
|
|
30424
30750
|
break;
|
|
30425
|
-
case
|
|
30426
|
-
var value =
|
|
30427
|
-
|
|
30428
|
-
msg.setOutputFieldsMap(value);
|
|
30751
|
+
case 2:
|
|
30752
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30753
|
+
msg.setDockerImageTag(value);
|
|
30429
30754
|
break;
|
|
30430
|
-
case
|
|
30755
|
+
case 3:
|
|
30431
30756
|
var value = /** @type {string} */ (reader.readString());
|
|
30432
|
-
msg.
|
|
30757
|
+
msg.setDockerImageDigest(value);
|
|
30433
30758
|
break;
|
|
30434
30759
|
default:
|
|
30435
30760
|
reader.skipField();
|
|
@@ -30444,9 +30769,9 @@ proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader = function(
|
|
|
30444
30769
|
* Serializes the message to binary data (in protobuf wire format).
|
|
30445
30770
|
* @return {!Uint8Array}
|
|
30446
30771
|
*/
|
|
30447
|
-
proto.clarifai.api.
|
|
30772
|
+
proto.clarifai.api.BuildInfo.prototype.serializeBinary = function() {
|
|
30448
30773
|
var writer = new jspb.BinaryWriter();
|
|
30449
|
-
proto.clarifai.api.
|
|
30774
|
+
proto.clarifai.api.BuildInfo.serializeBinaryToWriter(this, writer);
|
|
30450
30775
|
return writer.getResultBuffer();
|
|
30451
30776
|
};
|
|
30452
30777
|
|
|
@@ -30454,32 +30779,30 @@ proto.clarifai.api.PretrainedModelConfig.prototype.serializeBinary = function()
|
|
|
30454
30779
|
/**
|
|
30455
30780
|
* Serializes the given message to binary data (in protobuf wire
|
|
30456
30781
|
* format), writing to the given BinaryWriter.
|
|
30457
|
-
* @param {!proto.clarifai.api.
|
|
30782
|
+
* @param {!proto.clarifai.api.BuildInfo} message
|
|
30458
30783
|
* @param {!jspb.BinaryWriter} writer
|
|
30459
30784
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30460
30785
|
*/
|
|
30461
|
-
proto.clarifai.api.
|
|
30786
|
+
proto.clarifai.api.BuildInfo.serializeBinaryToWriter = function(message, writer) {
|
|
30462
30787
|
var f = undefined;
|
|
30463
|
-
f = message.
|
|
30464
|
-
if (f
|
|
30465
|
-
writer.
|
|
30466
|
-
|
|
30467
|
-
f
|
|
30468
|
-
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
30788
|
+
f = message.getDockerImageName();
|
|
30789
|
+
if (f.length > 0) {
|
|
30790
|
+
writer.writeString(
|
|
30791
|
+
1,
|
|
30792
|
+
f
|
|
30469
30793
|
);
|
|
30470
30794
|
}
|
|
30471
|
-
f = message.
|
|
30472
|
-
if (f
|
|
30473
|
-
writer.
|
|
30474
|
-
|
|
30475
|
-
f
|
|
30476
|
-
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
30795
|
+
f = message.getDockerImageTag();
|
|
30796
|
+
if (f.length > 0) {
|
|
30797
|
+
writer.writeString(
|
|
30798
|
+
2,
|
|
30799
|
+
f
|
|
30477
30800
|
);
|
|
30478
30801
|
}
|
|
30479
|
-
f = message.
|
|
30802
|
+
f = message.getDockerImageDigest();
|
|
30480
30803
|
if (f.length > 0) {
|
|
30481
30804
|
writer.writeString(
|
|
30482
|
-
|
|
30805
|
+
3,
|
|
30483
30806
|
f
|
|
30484
30807
|
);
|
|
30485
30808
|
}
|
|
@@ -30487,105 +30810,60 @@ proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter = function(mess
|
|
|
30487
30810
|
|
|
30488
30811
|
|
|
30489
30812
|
/**
|
|
30490
|
-
* optional
|
|
30491
|
-
* @return {
|
|
30492
|
-
*/
|
|
30493
|
-
proto.clarifai.api.PretrainedModelConfig.prototype.getInputFieldsMap = function() {
|
|
30494
|
-
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
30495
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
|
|
30496
|
-
};
|
|
30497
|
-
|
|
30498
|
-
|
|
30499
|
-
/**
|
|
30500
|
-
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
30501
|
-
* @return {!proto.clarifai.api.PretrainedModelConfig} returns this
|
|
30502
|
-
*/
|
|
30503
|
-
proto.clarifai.api.PretrainedModelConfig.prototype.setInputFieldsMap = function(value) {
|
|
30504
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
30505
|
-
};
|
|
30506
|
-
|
|
30507
|
-
|
|
30508
|
-
/**
|
|
30509
|
-
* Clears the message field making it undefined.
|
|
30510
|
-
* @return {!proto.clarifai.api.PretrainedModelConfig} returns this
|
|
30511
|
-
*/
|
|
30512
|
-
proto.clarifai.api.PretrainedModelConfig.prototype.clearInputFieldsMap = function() {
|
|
30513
|
-
return this.setInputFieldsMap(undefined);
|
|
30514
|
-
};
|
|
30515
|
-
|
|
30516
|
-
|
|
30517
|
-
/**
|
|
30518
|
-
* Returns whether this field is set.
|
|
30519
|
-
* @return {boolean}
|
|
30813
|
+
* optional string docker_image_name = 1;
|
|
30814
|
+
* @return {string}
|
|
30520
30815
|
*/
|
|
30521
|
-
proto.clarifai.api.
|
|
30522
|
-
return jspb.Message.
|
|
30816
|
+
proto.clarifai.api.BuildInfo.prototype.getDockerImageName = function() {
|
|
30817
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
30523
30818
|
};
|
|
30524
30819
|
|
|
30525
30820
|
|
|
30526
30821
|
/**
|
|
30527
|
-
*
|
|
30528
|
-
* @return {
|
|
30822
|
+
* @param {string} value
|
|
30823
|
+
* @return {!proto.clarifai.api.BuildInfo} returns this
|
|
30529
30824
|
*/
|
|
30530
|
-
proto.clarifai.api.
|
|
30531
|
-
return
|
|
30532
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4));
|
|
30533
|
-
};
|
|
30534
|
-
|
|
30535
|
-
|
|
30536
|
-
/**
|
|
30537
|
-
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
30538
|
-
* @return {!proto.clarifai.api.PretrainedModelConfig} returns this
|
|
30539
|
-
*/
|
|
30540
|
-
proto.clarifai.api.PretrainedModelConfig.prototype.setOutputFieldsMap = function(value) {
|
|
30541
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
30825
|
+
proto.clarifai.api.BuildInfo.prototype.setDockerImageName = function(value) {
|
|
30826
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
30542
30827
|
};
|
|
30543
30828
|
|
|
30544
30829
|
|
|
30545
30830
|
/**
|
|
30546
|
-
*
|
|
30547
|
-
* @return {
|
|
30831
|
+
* optional string docker_image_tag = 2;
|
|
30832
|
+
* @return {string}
|
|
30548
30833
|
*/
|
|
30549
|
-
proto.clarifai.api.
|
|
30550
|
-
return
|
|
30834
|
+
proto.clarifai.api.BuildInfo.prototype.getDockerImageTag = function() {
|
|
30835
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
30551
30836
|
};
|
|
30552
30837
|
|
|
30553
30838
|
|
|
30554
30839
|
/**
|
|
30555
|
-
*
|
|
30556
|
-
* @return {
|
|
30840
|
+
* @param {string} value
|
|
30841
|
+
* @return {!proto.clarifai.api.BuildInfo} returns this
|
|
30557
30842
|
*/
|
|
30558
|
-
proto.clarifai.api.
|
|
30559
|
-
return jspb.Message.
|
|
30843
|
+
proto.clarifai.api.BuildInfo.prototype.setDockerImageTag = function(value) {
|
|
30844
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
30560
30845
|
};
|
|
30561
30846
|
|
|
30562
30847
|
|
|
30563
30848
|
/**
|
|
30564
|
-
* optional string
|
|
30849
|
+
* optional string docker_image_digest = 3;
|
|
30565
30850
|
* @return {string}
|
|
30566
30851
|
*/
|
|
30567
|
-
proto.clarifai.api.
|
|
30568
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
30852
|
+
proto.clarifai.api.BuildInfo.prototype.getDockerImageDigest = function() {
|
|
30853
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
30569
30854
|
};
|
|
30570
30855
|
|
|
30571
30856
|
|
|
30572
30857
|
/**
|
|
30573
30858
|
* @param {string} value
|
|
30574
|
-
* @return {!proto.clarifai.api.
|
|
30859
|
+
* @return {!proto.clarifai.api.BuildInfo} returns this
|
|
30575
30860
|
*/
|
|
30576
|
-
proto.clarifai.api.
|
|
30577
|
-
return jspb.Message.setProto3StringField(this,
|
|
30861
|
+
proto.clarifai.api.BuildInfo.prototype.setDockerImageDigest = function(value) {
|
|
30862
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
30578
30863
|
};
|
|
30579
30864
|
|
|
30580
30865
|
|
|
30581
30866
|
|
|
30582
|
-
/**
|
|
30583
|
-
* List of repeated fields within this message type.
|
|
30584
|
-
* @private {!Array<number>}
|
|
30585
|
-
* @const
|
|
30586
|
-
*/
|
|
30587
|
-
proto.clarifai.api.TrainStats.repeatedFields_ = [1];
|
|
30588
|
-
|
|
30589
30867
|
|
|
30590
30868
|
|
|
30591
30869
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -30601,8 +30879,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
30601
30879
|
* http://goto/soy-param-migration
|
|
30602
30880
|
* @return {!Object}
|
|
30603
30881
|
*/
|
|
30604
|
-
proto.clarifai.api.
|
|
30605
|
-
return proto.clarifai.api.
|
|
30882
|
+
proto.clarifai.api.ModelVersionExport.prototype.toObject = function(opt_includeInstance) {
|
|
30883
|
+
return proto.clarifai.api.ModelVersionExport.toObject(opt_includeInstance, this);
|
|
30606
30884
|
};
|
|
30607
30885
|
|
|
30608
30886
|
|
|
@@ -30611,14 +30889,15 @@ proto.clarifai.api.TrainStats.prototype.toObject = function(opt_includeInstance)
|
|
|
30611
30889
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
30612
30890
|
* the JSPB instance for transitional soy proto support:
|
|
30613
30891
|
* http://goto/soy-param-migration
|
|
30614
|
-
* @param {!proto.clarifai.api.
|
|
30892
|
+
* @param {!proto.clarifai.api.ModelVersionExport} msg The msg instance to transform.
|
|
30615
30893
|
* @return {!Object}
|
|
30616
30894
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30617
30895
|
*/
|
|
30618
|
-
proto.clarifai.api.
|
|
30896
|
+
proto.clarifai.api.ModelVersionExport.toObject = function(includeInstance, msg) {
|
|
30619
30897
|
var f, obj = {
|
|
30620
|
-
|
|
30621
|
-
|
|
30898
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
30899
|
+
url: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
30900
|
+
size: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
30622
30901
|
};
|
|
30623
30902
|
|
|
30624
30903
|
if (includeInstance) {
|
|
@@ -30632,23 +30911,23 @@ proto.clarifai.api.TrainStats.toObject = function(includeInstance, msg) {
|
|
|
30632
30911
|
/**
|
|
30633
30912
|
* Deserializes binary data (in protobuf wire format).
|
|
30634
30913
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
30635
|
-
* @return {!proto.clarifai.api.
|
|
30914
|
+
* @return {!proto.clarifai.api.ModelVersionExport}
|
|
30636
30915
|
*/
|
|
30637
|
-
proto.clarifai.api.
|
|
30916
|
+
proto.clarifai.api.ModelVersionExport.deserializeBinary = function(bytes) {
|
|
30638
30917
|
var reader = new jspb.BinaryReader(bytes);
|
|
30639
|
-
var msg = new proto.clarifai.api.
|
|
30640
|
-
return proto.clarifai.api.
|
|
30918
|
+
var msg = new proto.clarifai.api.ModelVersionExport;
|
|
30919
|
+
return proto.clarifai.api.ModelVersionExport.deserializeBinaryFromReader(msg, reader);
|
|
30641
30920
|
};
|
|
30642
30921
|
|
|
30643
30922
|
|
|
30644
30923
|
/**
|
|
30645
30924
|
* Deserializes binary data (in protobuf wire format) from the
|
|
30646
30925
|
* given reader into the given message object.
|
|
30647
|
-
* @param {!proto.clarifai.api.
|
|
30926
|
+
* @param {!proto.clarifai.api.ModelVersionExport} msg The message object to deserialize into.
|
|
30648
30927
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
30649
|
-
* @return {!proto.clarifai.api.
|
|
30928
|
+
* @return {!proto.clarifai.api.ModelVersionExport}
|
|
30650
30929
|
*/
|
|
30651
|
-
proto.clarifai.api.
|
|
30930
|
+
proto.clarifai.api.ModelVersionExport.deserializeBinaryFromReader = function(msg, reader) {
|
|
30652
30931
|
while (reader.nextField()) {
|
|
30653
30932
|
if (reader.isEndGroup()) {
|
|
30654
30933
|
break;
|
|
@@ -30656,9 +30935,17 @@ proto.clarifai.api.TrainStats.deserializeBinaryFromReader = function(msg, reader
|
|
|
30656
30935
|
var field = reader.getFieldNumber();
|
|
30657
30936
|
switch (field) {
|
|
30658
30937
|
case 1:
|
|
30659
|
-
var value = new
|
|
30660
|
-
reader.readMessage(value,
|
|
30661
|
-
msg.
|
|
30938
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
30939
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
30940
|
+
msg.setStatus(value);
|
|
30941
|
+
break;
|
|
30942
|
+
case 2:
|
|
30943
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30944
|
+
msg.setUrl(value);
|
|
30945
|
+
break;
|
|
30946
|
+
case 3:
|
|
30947
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
30948
|
+
msg.setSize(value);
|
|
30662
30949
|
break;
|
|
30663
30950
|
default:
|
|
30664
30951
|
reader.skipField();
|
|
@@ -30673,9 +30960,9 @@ proto.clarifai.api.TrainStats.deserializeBinaryFromReader = function(msg, reader
|
|
|
30673
30960
|
* Serializes the message to binary data (in protobuf wire format).
|
|
30674
30961
|
* @return {!Uint8Array}
|
|
30675
30962
|
*/
|
|
30676
|
-
proto.clarifai.api.
|
|
30963
|
+
proto.clarifai.api.ModelVersionExport.prototype.serializeBinary = function() {
|
|
30677
30964
|
var writer = new jspb.BinaryWriter();
|
|
30678
|
-
proto.clarifai.api.
|
|
30965
|
+
proto.clarifai.api.ModelVersionExport.serializeBinaryToWriter(this, writer);
|
|
30679
30966
|
return writer.getResultBuffer();
|
|
30680
30967
|
};
|
|
30681
30968
|
|
|
@@ -30683,58 +30970,107 @@ proto.clarifai.api.TrainStats.prototype.serializeBinary = function() {
|
|
|
30683
30970
|
/**
|
|
30684
30971
|
* Serializes the given message to binary data (in protobuf wire
|
|
30685
30972
|
* format), writing to the given BinaryWriter.
|
|
30686
|
-
* @param {!proto.clarifai.api.
|
|
30973
|
+
* @param {!proto.clarifai.api.ModelVersionExport} message
|
|
30687
30974
|
* @param {!jspb.BinaryWriter} writer
|
|
30688
30975
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30689
30976
|
*/
|
|
30690
|
-
proto.clarifai.api.
|
|
30977
|
+
proto.clarifai.api.ModelVersionExport.serializeBinaryToWriter = function(message, writer) {
|
|
30691
30978
|
var f = undefined;
|
|
30692
|
-
f = message.
|
|
30693
|
-
if (f
|
|
30694
|
-
writer.
|
|
30979
|
+
f = message.getStatus();
|
|
30980
|
+
if (f != null) {
|
|
30981
|
+
writer.writeMessage(
|
|
30695
30982
|
1,
|
|
30696
30983
|
f,
|
|
30697
|
-
|
|
30984
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
30985
|
+
);
|
|
30986
|
+
}
|
|
30987
|
+
f = message.getUrl();
|
|
30988
|
+
if (f.length > 0) {
|
|
30989
|
+
writer.writeString(
|
|
30990
|
+
2,
|
|
30991
|
+
f
|
|
30992
|
+
);
|
|
30993
|
+
}
|
|
30994
|
+
f = message.getSize();
|
|
30995
|
+
if (f !== 0) {
|
|
30996
|
+
writer.writeInt64(
|
|
30997
|
+
3,
|
|
30998
|
+
f
|
|
30698
30999
|
);
|
|
30699
31000
|
}
|
|
30700
31001
|
};
|
|
30701
31002
|
|
|
30702
31003
|
|
|
30703
31004
|
/**
|
|
30704
|
-
*
|
|
30705
|
-
* @return {
|
|
31005
|
+
* optional status.Status status = 1;
|
|
31006
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
30706
31007
|
*/
|
|
30707
|
-
proto.clarifai.api.
|
|
30708
|
-
return /** @type{
|
|
30709
|
-
jspb.Message.
|
|
31008
|
+
proto.clarifai.api.ModelVersionExport.prototype.getStatus = function() {
|
|
31009
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
31010
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
30710
31011
|
};
|
|
30711
31012
|
|
|
30712
31013
|
|
|
30713
31014
|
/**
|
|
30714
|
-
* @param {
|
|
30715
|
-
* @return {!proto.clarifai.api.
|
|
31015
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
31016
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
30716
31017
|
*/
|
|
30717
|
-
proto.clarifai.api.
|
|
30718
|
-
return jspb.Message.
|
|
31018
|
+
proto.clarifai.api.ModelVersionExport.prototype.setStatus = function(value) {
|
|
31019
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
30719
31020
|
};
|
|
30720
31021
|
|
|
30721
31022
|
|
|
30722
31023
|
/**
|
|
30723
|
-
*
|
|
30724
|
-
* @
|
|
30725
|
-
* @return {!proto.clarifai.api.LossCurveEntry}
|
|
31024
|
+
* Clears the message field making it undefined.
|
|
31025
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
30726
31026
|
*/
|
|
30727
|
-
proto.clarifai.api.
|
|
30728
|
-
return
|
|
31027
|
+
proto.clarifai.api.ModelVersionExport.prototype.clearStatus = function() {
|
|
31028
|
+
return this.setStatus(undefined);
|
|
30729
31029
|
};
|
|
30730
31030
|
|
|
30731
31031
|
|
|
30732
31032
|
/**
|
|
30733
|
-
*
|
|
30734
|
-
* @return {
|
|
31033
|
+
* Returns whether this field is set.
|
|
31034
|
+
* @return {boolean}
|
|
30735
31035
|
*/
|
|
30736
|
-
proto.clarifai.api.
|
|
30737
|
-
return
|
|
31036
|
+
proto.clarifai.api.ModelVersionExport.prototype.hasStatus = function() {
|
|
31037
|
+
return jspb.Message.getField(this, 1) != null;
|
|
31038
|
+
};
|
|
31039
|
+
|
|
31040
|
+
|
|
31041
|
+
/**
|
|
31042
|
+
* optional string url = 2;
|
|
31043
|
+
* @return {string}
|
|
31044
|
+
*/
|
|
31045
|
+
proto.clarifai.api.ModelVersionExport.prototype.getUrl = function() {
|
|
31046
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
31047
|
+
};
|
|
31048
|
+
|
|
31049
|
+
|
|
31050
|
+
/**
|
|
31051
|
+
* @param {string} value
|
|
31052
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
31053
|
+
*/
|
|
31054
|
+
proto.clarifai.api.ModelVersionExport.prototype.setUrl = function(value) {
|
|
31055
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
31056
|
+
};
|
|
31057
|
+
|
|
31058
|
+
|
|
31059
|
+
/**
|
|
31060
|
+
* optional int64 size = 3;
|
|
31061
|
+
* @return {number}
|
|
31062
|
+
*/
|
|
31063
|
+
proto.clarifai.api.ModelVersionExport.prototype.getSize = function() {
|
|
31064
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
31065
|
+
};
|
|
31066
|
+
|
|
31067
|
+
|
|
31068
|
+
/**
|
|
31069
|
+
* @param {number} value
|
|
31070
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
31071
|
+
*/
|
|
31072
|
+
proto.clarifai.api.ModelVersionExport.prototype.setSize = function(value) {
|
|
31073
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
30738
31074
|
};
|
|
30739
31075
|
|
|
30740
31076
|
|
|
@@ -30754,8 +31090,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
30754
31090
|
* http://goto/soy-param-migration
|
|
30755
31091
|
* @return {!Object}
|
|
30756
31092
|
*/
|
|
30757
|
-
proto.clarifai.api.
|
|
30758
|
-
return proto.clarifai.api.
|
|
31093
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.toObject = function(opt_includeInstance) {
|
|
31094
|
+
return proto.clarifai.api.PretrainedModelConfig.toObject(opt_includeInstance, this);
|
|
30759
31095
|
};
|
|
30760
31096
|
|
|
30761
31097
|
|
|
@@ -30764,15 +31100,15 @@ proto.clarifai.api.LossCurveEntry.prototype.toObject = function(opt_includeInsta
|
|
|
30764
31100
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
30765
31101
|
* the JSPB instance for transitional soy proto support:
|
|
30766
31102
|
* http://goto/soy-param-migration
|
|
30767
|
-
* @param {!proto.clarifai.api.
|
|
31103
|
+
* @param {!proto.clarifai.api.PretrainedModelConfig} msg The msg instance to transform.
|
|
30768
31104
|
* @return {!Object}
|
|
30769
31105
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30770
31106
|
*/
|
|
30771
|
-
proto.clarifai.api.
|
|
31107
|
+
proto.clarifai.api.PretrainedModelConfig.toObject = function(includeInstance, msg) {
|
|
30772
31108
|
var f, obj = {
|
|
30773
|
-
|
|
30774
|
-
|
|
30775
|
-
|
|
31109
|
+
inputFieldsMap: (f = msg.getInputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
31110
|
+
outputFieldsMap: (f = msg.getOutputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
31111
|
+
modelZipUrl: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
30776
31112
|
};
|
|
30777
31113
|
|
|
30778
31114
|
if (includeInstance) {
|
|
@@ -30786,11 +31122,403 @@ proto.clarifai.api.LossCurveEntry.toObject = function(includeInstance, msg) {
|
|
|
30786
31122
|
/**
|
|
30787
31123
|
* Deserializes binary data (in protobuf wire format).
|
|
30788
31124
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
30789
|
-
* @return {!proto.clarifai.api.
|
|
31125
|
+
* @return {!proto.clarifai.api.PretrainedModelConfig}
|
|
30790
31126
|
*/
|
|
30791
|
-
proto.clarifai.api.
|
|
31127
|
+
proto.clarifai.api.PretrainedModelConfig.deserializeBinary = function(bytes) {
|
|
30792
31128
|
var reader = new jspb.BinaryReader(bytes);
|
|
30793
|
-
var msg = new proto.clarifai.api.
|
|
31129
|
+
var msg = new proto.clarifai.api.PretrainedModelConfig;
|
|
31130
|
+
return proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader(msg, reader);
|
|
31131
|
+
};
|
|
31132
|
+
|
|
31133
|
+
|
|
31134
|
+
/**
|
|
31135
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
31136
|
+
* given reader into the given message object.
|
|
31137
|
+
* @param {!proto.clarifai.api.PretrainedModelConfig} msg The message object to deserialize into.
|
|
31138
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
31139
|
+
* @return {!proto.clarifai.api.PretrainedModelConfig}
|
|
31140
|
+
*/
|
|
31141
|
+
proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
31142
|
+
while (reader.nextField()) {
|
|
31143
|
+
if (reader.isEndGroup()) {
|
|
31144
|
+
break;
|
|
31145
|
+
}
|
|
31146
|
+
var field = reader.getFieldNumber();
|
|
31147
|
+
switch (field) {
|
|
31148
|
+
case 3:
|
|
31149
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
31150
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
31151
|
+
msg.setInputFieldsMap(value);
|
|
31152
|
+
break;
|
|
31153
|
+
case 4:
|
|
31154
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
31155
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
31156
|
+
msg.setOutputFieldsMap(value);
|
|
31157
|
+
break;
|
|
31158
|
+
case 6:
|
|
31159
|
+
var value = /** @type {string} */ (reader.readString());
|
|
31160
|
+
msg.setModelZipUrl(value);
|
|
31161
|
+
break;
|
|
31162
|
+
default:
|
|
31163
|
+
reader.skipField();
|
|
31164
|
+
break;
|
|
31165
|
+
}
|
|
31166
|
+
}
|
|
31167
|
+
return msg;
|
|
31168
|
+
};
|
|
31169
|
+
|
|
31170
|
+
|
|
31171
|
+
/**
|
|
31172
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
31173
|
+
* @return {!Uint8Array}
|
|
31174
|
+
*/
|
|
31175
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.serializeBinary = function() {
|
|
31176
|
+
var writer = new jspb.BinaryWriter();
|
|
31177
|
+
proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter(this, writer);
|
|
31178
|
+
return writer.getResultBuffer();
|
|
31179
|
+
};
|
|
31180
|
+
|
|
31181
|
+
|
|
31182
|
+
/**
|
|
31183
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
31184
|
+
* format), writing to the given BinaryWriter.
|
|
31185
|
+
* @param {!proto.clarifai.api.PretrainedModelConfig} message
|
|
31186
|
+
* @param {!jspb.BinaryWriter} writer
|
|
31187
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
31188
|
+
*/
|
|
31189
|
+
proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter = function(message, writer) {
|
|
31190
|
+
var f = undefined;
|
|
31191
|
+
f = message.getInputFieldsMap();
|
|
31192
|
+
if (f != null) {
|
|
31193
|
+
writer.writeMessage(
|
|
31194
|
+
3,
|
|
31195
|
+
f,
|
|
31196
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
31197
|
+
);
|
|
31198
|
+
}
|
|
31199
|
+
f = message.getOutputFieldsMap();
|
|
31200
|
+
if (f != null) {
|
|
31201
|
+
writer.writeMessage(
|
|
31202
|
+
4,
|
|
31203
|
+
f,
|
|
31204
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
31205
|
+
);
|
|
31206
|
+
}
|
|
31207
|
+
f = message.getModelZipUrl();
|
|
31208
|
+
if (f.length > 0) {
|
|
31209
|
+
writer.writeString(
|
|
31210
|
+
6,
|
|
31211
|
+
f
|
|
31212
|
+
);
|
|
31213
|
+
}
|
|
31214
|
+
};
|
|
31215
|
+
|
|
31216
|
+
|
|
31217
|
+
/**
|
|
31218
|
+
* optional google.protobuf.Struct input_fields_map = 3;
|
|
31219
|
+
* @return {?proto.google.protobuf.Struct}
|
|
31220
|
+
*/
|
|
31221
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.getInputFieldsMap = function() {
|
|
31222
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
31223
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
|
|
31224
|
+
};
|
|
31225
|
+
|
|
31226
|
+
|
|
31227
|
+
/**
|
|
31228
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
31229
|
+
* @return {!proto.clarifai.api.PretrainedModelConfig} returns this
|
|
31230
|
+
*/
|
|
31231
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.setInputFieldsMap = function(value) {
|
|
31232
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
31233
|
+
};
|
|
31234
|
+
|
|
31235
|
+
|
|
31236
|
+
/**
|
|
31237
|
+
* Clears the message field making it undefined.
|
|
31238
|
+
* @return {!proto.clarifai.api.PretrainedModelConfig} returns this
|
|
31239
|
+
*/
|
|
31240
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.clearInputFieldsMap = function() {
|
|
31241
|
+
return this.setInputFieldsMap(undefined);
|
|
31242
|
+
};
|
|
31243
|
+
|
|
31244
|
+
|
|
31245
|
+
/**
|
|
31246
|
+
* Returns whether this field is set.
|
|
31247
|
+
* @return {boolean}
|
|
31248
|
+
*/
|
|
31249
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.hasInputFieldsMap = function() {
|
|
31250
|
+
return jspb.Message.getField(this, 3) != null;
|
|
31251
|
+
};
|
|
31252
|
+
|
|
31253
|
+
|
|
31254
|
+
/**
|
|
31255
|
+
* optional google.protobuf.Struct output_fields_map = 4;
|
|
31256
|
+
* @return {?proto.google.protobuf.Struct}
|
|
31257
|
+
*/
|
|
31258
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.getOutputFieldsMap = function() {
|
|
31259
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
31260
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4));
|
|
31261
|
+
};
|
|
31262
|
+
|
|
31263
|
+
|
|
31264
|
+
/**
|
|
31265
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
31266
|
+
* @return {!proto.clarifai.api.PretrainedModelConfig} returns this
|
|
31267
|
+
*/
|
|
31268
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.setOutputFieldsMap = function(value) {
|
|
31269
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
31270
|
+
};
|
|
31271
|
+
|
|
31272
|
+
|
|
31273
|
+
/**
|
|
31274
|
+
* Clears the message field making it undefined.
|
|
31275
|
+
* @return {!proto.clarifai.api.PretrainedModelConfig} returns this
|
|
31276
|
+
*/
|
|
31277
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.clearOutputFieldsMap = function() {
|
|
31278
|
+
return this.setOutputFieldsMap(undefined);
|
|
31279
|
+
};
|
|
31280
|
+
|
|
31281
|
+
|
|
31282
|
+
/**
|
|
31283
|
+
* Returns whether this field is set.
|
|
31284
|
+
* @return {boolean}
|
|
31285
|
+
*/
|
|
31286
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.hasOutputFieldsMap = function() {
|
|
31287
|
+
return jspb.Message.getField(this, 4) != null;
|
|
31288
|
+
};
|
|
31289
|
+
|
|
31290
|
+
|
|
31291
|
+
/**
|
|
31292
|
+
* optional string model_zip_url = 6;
|
|
31293
|
+
* @return {string}
|
|
31294
|
+
*/
|
|
31295
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.getModelZipUrl = function() {
|
|
31296
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
31297
|
+
};
|
|
31298
|
+
|
|
31299
|
+
|
|
31300
|
+
/**
|
|
31301
|
+
* @param {string} value
|
|
31302
|
+
* @return {!proto.clarifai.api.PretrainedModelConfig} returns this
|
|
31303
|
+
*/
|
|
31304
|
+
proto.clarifai.api.PretrainedModelConfig.prototype.setModelZipUrl = function(value) {
|
|
31305
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
31306
|
+
};
|
|
31307
|
+
|
|
31308
|
+
|
|
31309
|
+
|
|
31310
|
+
/**
|
|
31311
|
+
* List of repeated fields within this message type.
|
|
31312
|
+
* @private {!Array<number>}
|
|
31313
|
+
* @const
|
|
31314
|
+
*/
|
|
31315
|
+
proto.clarifai.api.TrainStats.repeatedFields_ = [1];
|
|
31316
|
+
|
|
31317
|
+
|
|
31318
|
+
|
|
31319
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
31320
|
+
/**
|
|
31321
|
+
* Creates an object representation of this proto.
|
|
31322
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
31323
|
+
* Optional fields that are not set will be set to undefined.
|
|
31324
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
31325
|
+
* For the list of reserved names please see:
|
|
31326
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
31327
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
31328
|
+
* JSPB instance for transitional soy proto support:
|
|
31329
|
+
* http://goto/soy-param-migration
|
|
31330
|
+
* @return {!Object}
|
|
31331
|
+
*/
|
|
31332
|
+
proto.clarifai.api.TrainStats.prototype.toObject = function(opt_includeInstance) {
|
|
31333
|
+
return proto.clarifai.api.TrainStats.toObject(opt_includeInstance, this);
|
|
31334
|
+
};
|
|
31335
|
+
|
|
31336
|
+
|
|
31337
|
+
/**
|
|
31338
|
+
* Static version of the {@see toObject} method.
|
|
31339
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
31340
|
+
* the JSPB instance for transitional soy proto support:
|
|
31341
|
+
* http://goto/soy-param-migration
|
|
31342
|
+
* @param {!proto.clarifai.api.TrainStats} msg The msg instance to transform.
|
|
31343
|
+
* @return {!Object}
|
|
31344
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
31345
|
+
*/
|
|
31346
|
+
proto.clarifai.api.TrainStats.toObject = function(includeInstance, msg) {
|
|
31347
|
+
var f, obj = {
|
|
31348
|
+
lossCurveList: jspb.Message.toObjectList(msg.getLossCurveList(),
|
|
31349
|
+
proto.clarifai.api.LossCurveEntry.toObject, includeInstance)
|
|
31350
|
+
};
|
|
31351
|
+
|
|
31352
|
+
if (includeInstance) {
|
|
31353
|
+
obj.$jspbMessageInstance = msg;
|
|
31354
|
+
}
|
|
31355
|
+
return obj;
|
|
31356
|
+
};
|
|
31357
|
+
}
|
|
31358
|
+
|
|
31359
|
+
|
|
31360
|
+
/**
|
|
31361
|
+
* Deserializes binary data (in protobuf wire format).
|
|
31362
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
31363
|
+
* @return {!proto.clarifai.api.TrainStats}
|
|
31364
|
+
*/
|
|
31365
|
+
proto.clarifai.api.TrainStats.deserializeBinary = function(bytes) {
|
|
31366
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
31367
|
+
var msg = new proto.clarifai.api.TrainStats;
|
|
31368
|
+
return proto.clarifai.api.TrainStats.deserializeBinaryFromReader(msg, reader);
|
|
31369
|
+
};
|
|
31370
|
+
|
|
31371
|
+
|
|
31372
|
+
/**
|
|
31373
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
31374
|
+
* given reader into the given message object.
|
|
31375
|
+
* @param {!proto.clarifai.api.TrainStats} msg The message object to deserialize into.
|
|
31376
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
31377
|
+
* @return {!proto.clarifai.api.TrainStats}
|
|
31378
|
+
*/
|
|
31379
|
+
proto.clarifai.api.TrainStats.deserializeBinaryFromReader = function(msg, reader) {
|
|
31380
|
+
while (reader.nextField()) {
|
|
31381
|
+
if (reader.isEndGroup()) {
|
|
31382
|
+
break;
|
|
31383
|
+
}
|
|
31384
|
+
var field = reader.getFieldNumber();
|
|
31385
|
+
switch (field) {
|
|
31386
|
+
case 1:
|
|
31387
|
+
var value = new proto.clarifai.api.LossCurveEntry;
|
|
31388
|
+
reader.readMessage(value,proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader);
|
|
31389
|
+
msg.addLossCurve(value);
|
|
31390
|
+
break;
|
|
31391
|
+
default:
|
|
31392
|
+
reader.skipField();
|
|
31393
|
+
break;
|
|
31394
|
+
}
|
|
31395
|
+
}
|
|
31396
|
+
return msg;
|
|
31397
|
+
};
|
|
31398
|
+
|
|
31399
|
+
|
|
31400
|
+
/**
|
|
31401
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
31402
|
+
* @return {!Uint8Array}
|
|
31403
|
+
*/
|
|
31404
|
+
proto.clarifai.api.TrainStats.prototype.serializeBinary = function() {
|
|
31405
|
+
var writer = new jspb.BinaryWriter();
|
|
31406
|
+
proto.clarifai.api.TrainStats.serializeBinaryToWriter(this, writer);
|
|
31407
|
+
return writer.getResultBuffer();
|
|
31408
|
+
};
|
|
31409
|
+
|
|
31410
|
+
|
|
31411
|
+
/**
|
|
31412
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
31413
|
+
* format), writing to the given BinaryWriter.
|
|
31414
|
+
* @param {!proto.clarifai.api.TrainStats} message
|
|
31415
|
+
* @param {!jspb.BinaryWriter} writer
|
|
31416
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
31417
|
+
*/
|
|
31418
|
+
proto.clarifai.api.TrainStats.serializeBinaryToWriter = function(message, writer) {
|
|
31419
|
+
var f = undefined;
|
|
31420
|
+
f = message.getLossCurveList();
|
|
31421
|
+
if (f.length > 0) {
|
|
31422
|
+
writer.writeRepeatedMessage(
|
|
31423
|
+
1,
|
|
31424
|
+
f,
|
|
31425
|
+
proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter
|
|
31426
|
+
);
|
|
31427
|
+
}
|
|
31428
|
+
};
|
|
31429
|
+
|
|
31430
|
+
|
|
31431
|
+
/**
|
|
31432
|
+
* repeated LossCurveEntry loss_curve = 1;
|
|
31433
|
+
* @return {!Array<!proto.clarifai.api.LossCurveEntry>}
|
|
31434
|
+
*/
|
|
31435
|
+
proto.clarifai.api.TrainStats.prototype.getLossCurveList = function() {
|
|
31436
|
+
return /** @type{!Array<!proto.clarifai.api.LossCurveEntry>} */ (
|
|
31437
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.LossCurveEntry, 1));
|
|
31438
|
+
};
|
|
31439
|
+
|
|
31440
|
+
|
|
31441
|
+
/**
|
|
31442
|
+
* @param {!Array<!proto.clarifai.api.LossCurveEntry>} value
|
|
31443
|
+
* @return {!proto.clarifai.api.TrainStats} returns this
|
|
31444
|
+
*/
|
|
31445
|
+
proto.clarifai.api.TrainStats.prototype.setLossCurveList = function(value) {
|
|
31446
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
31447
|
+
};
|
|
31448
|
+
|
|
31449
|
+
|
|
31450
|
+
/**
|
|
31451
|
+
* @param {!proto.clarifai.api.LossCurveEntry=} opt_value
|
|
31452
|
+
* @param {number=} opt_index
|
|
31453
|
+
* @return {!proto.clarifai.api.LossCurveEntry}
|
|
31454
|
+
*/
|
|
31455
|
+
proto.clarifai.api.TrainStats.prototype.addLossCurve = function(opt_value, opt_index) {
|
|
31456
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.LossCurveEntry, opt_index);
|
|
31457
|
+
};
|
|
31458
|
+
|
|
31459
|
+
|
|
31460
|
+
/**
|
|
31461
|
+
* Clears the list making it empty but non-null.
|
|
31462
|
+
* @return {!proto.clarifai.api.TrainStats} returns this
|
|
31463
|
+
*/
|
|
31464
|
+
proto.clarifai.api.TrainStats.prototype.clearLossCurveList = function() {
|
|
31465
|
+
return this.setLossCurveList([]);
|
|
31466
|
+
};
|
|
31467
|
+
|
|
31468
|
+
|
|
31469
|
+
|
|
31470
|
+
|
|
31471
|
+
|
|
31472
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
31473
|
+
/**
|
|
31474
|
+
* Creates an object representation of this proto.
|
|
31475
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
31476
|
+
* Optional fields that are not set will be set to undefined.
|
|
31477
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
31478
|
+
* For the list of reserved names please see:
|
|
31479
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
31480
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
31481
|
+
* JSPB instance for transitional soy proto support:
|
|
31482
|
+
* http://goto/soy-param-migration
|
|
31483
|
+
* @return {!Object}
|
|
31484
|
+
*/
|
|
31485
|
+
proto.clarifai.api.LossCurveEntry.prototype.toObject = function(opt_includeInstance) {
|
|
31486
|
+
return proto.clarifai.api.LossCurveEntry.toObject(opt_includeInstance, this);
|
|
31487
|
+
};
|
|
31488
|
+
|
|
31489
|
+
|
|
31490
|
+
/**
|
|
31491
|
+
* Static version of the {@see toObject} method.
|
|
31492
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
31493
|
+
* the JSPB instance for transitional soy proto support:
|
|
31494
|
+
* http://goto/soy-param-migration
|
|
31495
|
+
* @param {!proto.clarifai.api.LossCurveEntry} msg The msg instance to transform.
|
|
31496
|
+
* @return {!Object}
|
|
31497
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
31498
|
+
*/
|
|
31499
|
+
proto.clarifai.api.LossCurveEntry.toObject = function(includeInstance, msg) {
|
|
31500
|
+
var f, obj = {
|
|
31501
|
+
epoch: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
31502
|
+
globalStep: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
31503
|
+
cost: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
|
31504
|
+
};
|
|
31505
|
+
|
|
31506
|
+
if (includeInstance) {
|
|
31507
|
+
obj.$jspbMessageInstance = msg;
|
|
31508
|
+
}
|
|
31509
|
+
return obj;
|
|
31510
|
+
};
|
|
31511
|
+
}
|
|
31512
|
+
|
|
31513
|
+
|
|
31514
|
+
/**
|
|
31515
|
+
* Deserializes binary data (in protobuf wire format).
|
|
31516
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
31517
|
+
* @return {!proto.clarifai.api.LossCurveEntry}
|
|
31518
|
+
*/
|
|
31519
|
+
proto.clarifai.api.LossCurveEntry.deserializeBinary = function(bytes) {
|
|
31520
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
31521
|
+
var msg = new proto.clarifai.api.LossCurveEntry;
|
|
30794
31522
|
return proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader(msg, reader);
|
|
30795
31523
|
};
|
|
30796
31524
|
|
|
@@ -33698,7 +34426,9 @@ proto.clarifai.api.EvalTestSetEntry.toObject = function(includeInstance, msg) {
|
|
|
33698
34426
|
proto.clarifai.api.Concept.toObject, includeInstance),
|
|
33699
34427
|
groundTruthConceptsList: jspb.Message.toObjectList(msg.getGroundTruthConceptsList(),
|
|
33700
34428
|
proto.clarifai.api.Concept.toObject, includeInstance),
|
|
33701
|
-
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)
|
|
33702
34432
|
};
|
|
33703
34433
|
|
|
33704
34434
|
if (includeInstance) {
|
|
@@ -33755,6 +34485,16 @@ proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader = function(msg,
|
|
|
33755
34485
|
reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader);
|
|
33756
34486
|
msg.setAnnotation(value);
|
|
33757
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;
|
|
33758
34498
|
default:
|
|
33759
34499
|
reader.skipField();
|
|
33760
34500
|
break;
|
|
@@ -33816,6 +34556,22 @@ proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter = function(message,
|
|
|
33816
34556
|
proto.clarifai.api.Annotation.serializeBinaryToWriter
|
|
33817
34557
|
);
|
|
33818
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
|
+
}
|
|
33819
34575
|
};
|
|
33820
34576
|
|
|
33821
34577
|
|
|
@@ -33969,6 +34725,80 @@ proto.clarifai.api.EvalTestSetEntry.prototype.hasAnnotation = function() {
|
|
|
33969
34725
|
};
|
|
33970
34726
|
|
|
33971
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
|
+
|
|
33972
34802
|
|
|
33973
34803
|
|
|
33974
34804
|
|
|
@@ -48204,7 +49034,7 @@ proto.clarifai.api.AiAssistParameters.prototype.clearConceptRelationIdsList = fu
|
|
|
48204
49034
|
* @private {!Array<number>}
|
|
48205
49035
|
* @const
|
|
48206
49036
|
*/
|
|
48207
|
-
proto.clarifai.api.TaskWorker.repeatedFields_ = [2,4,
|
|
49037
|
+
proto.clarifai.api.TaskWorker.repeatedFields_ = [2,4,7];
|
|
48208
49038
|
|
|
48209
49039
|
/**
|
|
48210
49040
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -48266,11 +49096,9 @@ proto.clarifai.api.TaskWorker.toObject = function(includeInstance, msg) {
|
|
|
48266
49096
|
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
48267
49097
|
usersList: jspb.Message.toObjectList(msg.getUsersList(),
|
|
48268
49098
|
proto.clarifai.api.User.toObject, includeInstance),
|
|
48269
|
-
|
|
48270
|
-
|
|
48271
|
-
|
|
48272
|
-
proto.clarifai.api.Workflow.toObject, includeInstance),
|
|
48273
|
-
partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f)
|
|
49099
|
+
partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f),
|
|
49100
|
+
workersList: jspb.Message.toObjectList(msg.getWorkersList(),
|
|
49101
|
+
proto.clarifai.api.Worker.toObject, includeInstance)
|
|
48274
49102
|
};
|
|
48275
49103
|
|
|
48276
49104
|
if (includeInstance) {
|
|
@@ -48320,21 +49148,16 @@ proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function(msg, reader
|
|
|
48320
49148
|
reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader);
|
|
48321
49149
|
msg.addUsers(value);
|
|
48322
49150
|
break;
|
|
48323
|
-
case 5:
|
|
48324
|
-
var value = new proto.clarifai.api.Model;
|
|
48325
|
-
reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
48326
|
-
msg.addModels(value);
|
|
48327
|
-
break;
|
|
48328
|
-
case 6:
|
|
48329
|
-
var value = new proto.clarifai.api.Workflow;
|
|
48330
|
-
reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
48331
|
-
msg.addWorkflows(value);
|
|
48332
|
-
break;
|
|
48333
49151
|
case 3:
|
|
48334
49152
|
var value = new proto.clarifai.api.TaskWorkerPartitionedStrategyInfo;
|
|
48335
49153
|
reader.readMessage(value,proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinaryFromReader);
|
|
48336
49154
|
msg.setPartitionedStrategyInfo(value);
|
|
48337
49155
|
break;
|
|
49156
|
+
case 7:
|
|
49157
|
+
var value = new proto.clarifai.api.Worker;
|
|
49158
|
+
reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
49159
|
+
msg.addWorkers(value);
|
|
49160
|
+
break;
|
|
48338
49161
|
default:
|
|
48339
49162
|
reader.skipField();
|
|
48340
49163
|
break;
|
|
@@ -48386,22 +49209,6 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer
|
|
|
48386
49209
|
proto.clarifai.api.User.serializeBinaryToWriter
|
|
48387
49210
|
);
|
|
48388
49211
|
}
|
|
48389
|
-
f = message.getModelsList();
|
|
48390
|
-
if (f.length > 0) {
|
|
48391
|
-
writer.writeRepeatedMessage(
|
|
48392
|
-
5,
|
|
48393
|
-
f,
|
|
48394
|
-
proto.clarifai.api.Model.serializeBinaryToWriter
|
|
48395
|
-
);
|
|
48396
|
-
}
|
|
48397
|
-
f = message.getWorkflowsList();
|
|
48398
|
-
if (f.length > 0) {
|
|
48399
|
-
writer.writeRepeatedMessage(
|
|
48400
|
-
6,
|
|
48401
|
-
f,
|
|
48402
|
-
proto.clarifai.api.Workflow.serializeBinaryToWriter
|
|
48403
|
-
);
|
|
48404
|
-
}
|
|
48405
49212
|
f = message.getPartitionedStrategyInfo();
|
|
48406
49213
|
if (f != null) {
|
|
48407
49214
|
writer.writeMessage(
|
|
@@ -48410,6 +49217,14 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer
|
|
|
48410
49217
|
proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.serializeBinaryToWriter
|
|
48411
49218
|
);
|
|
48412
49219
|
}
|
|
49220
|
+
f = message.getWorkersList();
|
|
49221
|
+
if (f.length > 0) {
|
|
49222
|
+
writer.writeRepeatedMessage(
|
|
49223
|
+
7,
|
|
49224
|
+
f,
|
|
49225
|
+
proto.clarifai.api.Worker.serializeBinaryToWriter
|
|
49226
|
+
);
|
|
49227
|
+
}
|
|
48413
49228
|
};
|
|
48414
49229
|
|
|
48415
49230
|
|
|
@@ -48516,69 +49331,68 @@ proto.clarifai.api.TaskWorker.prototype.clearUsersList = function() {
|
|
|
48516
49331
|
|
|
48517
49332
|
|
|
48518
49333
|
/**
|
|
48519
|
-
*
|
|
48520
|
-
* @return {
|
|
49334
|
+
* optional TaskWorkerPartitionedStrategyInfo partitioned_strategy_info = 3;
|
|
49335
|
+
* @return {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo}
|
|
48521
49336
|
*/
|
|
48522
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48523
|
-
return /** @type{
|
|
48524
|
-
jspb.Message.
|
|
49337
|
+
proto.clarifai.api.TaskWorker.prototype.getPartitionedStrategyInfo = function() {
|
|
49338
|
+
return /** @type{?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ (
|
|
49339
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkerPartitionedStrategyInfo, 3));
|
|
48525
49340
|
};
|
|
48526
49341
|
|
|
48527
49342
|
|
|
48528
49343
|
/**
|
|
48529
|
-
* @param {
|
|
49344
|
+
* @param {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo|undefined} value
|
|
48530
49345
|
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48531
49346
|
*/
|
|
48532
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48533
|
-
return jspb.Message.
|
|
49347
|
+
proto.clarifai.api.TaskWorker.prototype.setPartitionedStrategyInfo = function(value) {
|
|
49348
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.TaskWorker.oneofGroups_[0], value);
|
|
48534
49349
|
};
|
|
48535
49350
|
|
|
48536
49351
|
|
|
48537
49352
|
/**
|
|
48538
|
-
*
|
|
48539
|
-
* @
|
|
48540
|
-
* @return {!proto.clarifai.api.Model}
|
|
49353
|
+
* Clears the message field making it undefined.
|
|
49354
|
+
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48541
49355
|
*/
|
|
48542
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48543
|
-
return
|
|
49356
|
+
proto.clarifai.api.TaskWorker.prototype.clearPartitionedStrategyInfo = function() {
|
|
49357
|
+
return this.setPartitionedStrategyInfo(undefined);
|
|
48544
49358
|
};
|
|
48545
49359
|
|
|
48546
49360
|
|
|
48547
49361
|
/**
|
|
48548
|
-
*
|
|
48549
|
-
* @return {
|
|
49362
|
+
* Returns whether this field is set.
|
|
49363
|
+
* @return {boolean}
|
|
48550
49364
|
*/
|
|
48551
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48552
|
-
return
|
|
49365
|
+
proto.clarifai.api.TaskWorker.prototype.hasPartitionedStrategyInfo = function() {
|
|
49366
|
+
return jspb.Message.getField(this, 3) != null;
|
|
48553
49367
|
};
|
|
48554
49368
|
|
|
48555
49369
|
|
|
48556
49370
|
/**
|
|
48557
|
-
* repeated
|
|
48558
|
-
* @return {!Array<!proto.clarifai.api.
|
|
49371
|
+
* repeated Worker workers = 7;
|
|
49372
|
+
* @return {!Array<!proto.clarifai.api.Worker>}
|
|
48559
49373
|
*/
|
|
48560
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48561
|
-
return /** @type{!Array<!proto.clarifai.api.
|
|
48562
|
-
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.
|
|
49374
|
+
proto.clarifai.api.TaskWorker.prototype.getWorkersList = function() {
|
|
49375
|
+
return /** @type{!Array<!proto.clarifai.api.Worker>} */ (
|
|
49376
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Worker, 7));
|
|
48563
49377
|
};
|
|
48564
49378
|
|
|
48565
49379
|
|
|
48566
49380
|
/**
|
|
48567
|
-
* @param {!Array<!proto.clarifai.api.
|
|
49381
|
+
* @param {!Array<!proto.clarifai.api.Worker>} value
|
|
48568
49382
|
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48569
49383
|
*/
|
|
48570
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48571
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
|
49384
|
+
proto.clarifai.api.TaskWorker.prototype.setWorkersList = function(value) {
|
|
49385
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
48572
49386
|
};
|
|
48573
49387
|
|
|
48574
49388
|
|
|
48575
49389
|
/**
|
|
48576
|
-
* @param {!proto.clarifai.api.
|
|
49390
|
+
* @param {!proto.clarifai.api.Worker=} opt_value
|
|
48577
49391
|
* @param {number=} opt_index
|
|
48578
|
-
* @return {!proto.clarifai.api.
|
|
49392
|
+
* @return {!proto.clarifai.api.Worker}
|
|
48579
49393
|
*/
|
|
48580
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48581
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
|
49394
|
+
proto.clarifai.api.TaskWorker.prototype.addWorkers = function(opt_value, opt_index) {
|
|
49395
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.clarifai.api.Worker, opt_index);
|
|
48582
49396
|
};
|
|
48583
49397
|
|
|
48584
49398
|
|
|
@@ -48586,45 +49400,8 @@ proto.clarifai.api.TaskWorker.prototype.addWorkflows = function(opt_value, opt_i
|
|
|
48586
49400
|
* Clears the list making it empty but non-null.
|
|
48587
49401
|
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48588
49402
|
*/
|
|
48589
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48590
|
-
return this.
|
|
48591
|
-
};
|
|
48592
|
-
|
|
48593
|
-
|
|
48594
|
-
/**
|
|
48595
|
-
* optional TaskWorkerPartitionedStrategyInfo partitioned_strategy_info = 3;
|
|
48596
|
-
* @return {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo}
|
|
48597
|
-
*/
|
|
48598
|
-
proto.clarifai.api.TaskWorker.prototype.getPartitionedStrategyInfo = function() {
|
|
48599
|
-
return /** @type{?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ (
|
|
48600
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkerPartitionedStrategyInfo, 3));
|
|
48601
|
-
};
|
|
48602
|
-
|
|
48603
|
-
|
|
48604
|
-
/**
|
|
48605
|
-
* @param {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo|undefined} value
|
|
48606
|
-
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48607
|
-
*/
|
|
48608
|
-
proto.clarifai.api.TaskWorker.prototype.setPartitionedStrategyInfo = function(value) {
|
|
48609
|
-
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.TaskWorker.oneofGroups_[0], value);
|
|
48610
|
-
};
|
|
48611
|
-
|
|
48612
|
-
|
|
48613
|
-
/**
|
|
48614
|
-
* Clears the message field making it undefined.
|
|
48615
|
-
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48616
|
-
*/
|
|
48617
|
-
proto.clarifai.api.TaskWorker.prototype.clearPartitionedStrategyInfo = function() {
|
|
48618
|
-
return this.setPartitionedStrategyInfo(undefined);
|
|
48619
|
-
};
|
|
48620
|
-
|
|
48621
|
-
|
|
48622
|
-
/**
|
|
48623
|
-
* Returns whether this field is set.
|
|
48624
|
-
* @return {boolean}
|
|
48625
|
-
*/
|
|
48626
|
-
proto.clarifai.api.TaskWorker.prototype.hasPartitionedStrategyInfo = function() {
|
|
48627
|
-
return jspb.Message.getField(this, 3) != null;
|
|
49403
|
+
proto.clarifai.api.TaskWorker.prototype.clearWorkersList = function() {
|
|
49404
|
+
return this.setWorkersList([]);
|
|
48628
49405
|
};
|
|
48629
49406
|
|
|
48630
49407
|
|
|
@@ -49788,6 +50565,391 @@ proto.clarifai.api.TaskAIAssistant.prototype.setWorkflowId = function(value) {
|
|
|
49788
50565
|
|
|
49789
50566
|
|
|
49790
50567
|
|
|
50568
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
50569
|
+
/**
|
|
50570
|
+
* Creates an object representation of this proto.
|
|
50571
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
50572
|
+
* Optional fields that are not set will be set to undefined.
|
|
50573
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
50574
|
+
* For the list of reserved names please see:
|
|
50575
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
50576
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
50577
|
+
* JSPB instance for transitional soy proto support:
|
|
50578
|
+
* http://goto/soy-param-migration
|
|
50579
|
+
* @return {!Object}
|
|
50580
|
+
*/
|
|
50581
|
+
proto.clarifai.api.TaskAssignment.prototype.toObject = function(opt_includeInstance) {
|
|
50582
|
+
return proto.clarifai.api.TaskAssignment.toObject(opt_includeInstance, this);
|
|
50583
|
+
};
|
|
50584
|
+
|
|
50585
|
+
|
|
50586
|
+
/**
|
|
50587
|
+
* Static version of the {@see toObject} method.
|
|
50588
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
50589
|
+
* the JSPB instance for transitional soy proto support:
|
|
50590
|
+
* http://goto/soy-param-migration
|
|
50591
|
+
* @param {!proto.clarifai.api.TaskAssignment} msg The msg instance to transform.
|
|
50592
|
+
* @return {!Object}
|
|
50593
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
50594
|
+
*/
|
|
50595
|
+
proto.clarifai.api.TaskAssignment.toObject = function(includeInstance, msg) {
|
|
50596
|
+
var f, obj = {
|
|
50597
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
50598
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
50599
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
50600
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
50601
|
+
input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
|
|
50602
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
50603
|
+
};
|
|
50604
|
+
|
|
50605
|
+
if (includeInstance) {
|
|
50606
|
+
obj.$jspbMessageInstance = msg;
|
|
50607
|
+
}
|
|
50608
|
+
return obj;
|
|
50609
|
+
};
|
|
50610
|
+
}
|
|
50611
|
+
|
|
50612
|
+
|
|
50613
|
+
/**
|
|
50614
|
+
* Deserializes binary data (in protobuf wire format).
|
|
50615
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
50616
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
50617
|
+
*/
|
|
50618
|
+
proto.clarifai.api.TaskAssignment.deserializeBinary = function(bytes) {
|
|
50619
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
50620
|
+
var msg = new proto.clarifai.api.TaskAssignment;
|
|
50621
|
+
return proto.clarifai.api.TaskAssignment.deserializeBinaryFromReader(msg, reader);
|
|
50622
|
+
};
|
|
50623
|
+
|
|
50624
|
+
|
|
50625
|
+
/**
|
|
50626
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
50627
|
+
* given reader into the given message object.
|
|
50628
|
+
* @param {!proto.clarifai.api.TaskAssignment} msg The message object to deserialize into.
|
|
50629
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
50630
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
50631
|
+
*/
|
|
50632
|
+
proto.clarifai.api.TaskAssignment.deserializeBinaryFromReader = function(msg, reader) {
|
|
50633
|
+
while (reader.nextField()) {
|
|
50634
|
+
if (reader.isEndGroup()) {
|
|
50635
|
+
break;
|
|
50636
|
+
}
|
|
50637
|
+
var field = reader.getFieldNumber();
|
|
50638
|
+
switch (field) {
|
|
50639
|
+
case 1:
|
|
50640
|
+
var value = /** @type {string} */ (reader.readString());
|
|
50641
|
+
msg.setId(value);
|
|
50642
|
+
break;
|
|
50643
|
+
case 2:
|
|
50644
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
50645
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
50646
|
+
msg.setCreatedAt(value);
|
|
50647
|
+
break;
|
|
50648
|
+
case 3:
|
|
50649
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
50650
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
50651
|
+
msg.setModifiedAt(value);
|
|
50652
|
+
break;
|
|
50653
|
+
case 4:
|
|
50654
|
+
var value = new proto.clarifai.api.Worker;
|
|
50655
|
+
reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
50656
|
+
msg.setWorker(value);
|
|
50657
|
+
break;
|
|
50658
|
+
case 5:
|
|
50659
|
+
var value = new proto.clarifai.api.Input;
|
|
50660
|
+
reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
|
|
50661
|
+
msg.setInput(value);
|
|
50662
|
+
break;
|
|
50663
|
+
case 6:
|
|
50664
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
50665
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
50666
|
+
msg.setStatus(value);
|
|
50667
|
+
break;
|
|
50668
|
+
default:
|
|
50669
|
+
reader.skipField();
|
|
50670
|
+
break;
|
|
50671
|
+
}
|
|
50672
|
+
}
|
|
50673
|
+
return msg;
|
|
50674
|
+
};
|
|
50675
|
+
|
|
50676
|
+
|
|
50677
|
+
/**
|
|
50678
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
50679
|
+
* @return {!Uint8Array}
|
|
50680
|
+
*/
|
|
50681
|
+
proto.clarifai.api.TaskAssignment.prototype.serializeBinary = function() {
|
|
50682
|
+
var writer = new jspb.BinaryWriter();
|
|
50683
|
+
proto.clarifai.api.TaskAssignment.serializeBinaryToWriter(this, writer);
|
|
50684
|
+
return writer.getResultBuffer();
|
|
50685
|
+
};
|
|
50686
|
+
|
|
50687
|
+
|
|
50688
|
+
/**
|
|
50689
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
50690
|
+
* format), writing to the given BinaryWriter.
|
|
50691
|
+
* @param {!proto.clarifai.api.TaskAssignment} message
|
|
50692
|
+
* @param {!jspb.BinaryWriter} writer
|
|
50693
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
50694
|
+
*/
|
|
50695
|
+
proto.clarifai.api.TaskAssignment.serializeBinaryToWriter = function(message, writer) {
|
|
50696
|
+
var f = undefined;
|
|
50697
|
+
f = message.getId();
|
|
50698
|
+
if (f.length > 0) {
|
|
50699
|
+
writer.writeString(
|
|
50700
|
+
1,
|
|
50701
|
+
f
|
|
50702
|
+
);
|
|
50703
|
+
}
|
|
50704
|
+
f = message.getCreatedAt();
|
|
50705
|
+
if (f != null) {
|
|
50706
|
+
writer.writeMessage(
|
|
50707
|
+
2,
|
|
50708
|
+
f,
|
|
50709
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
50710
|
+
);
|
|
50711
|
+
}
|
|
50712
|
+
f = message.getModifiedAt();
|
|
50713
|
+
if (f != null) {
|
|
50714
|
+
writer.writeMessage(
|
|
50715
|
+
3,
|
|
50716
|
+
f,
|
|
50717
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
50718
|
+
);
|
|
50719
|
+
}
|
|
50720
|
+
f = message.getWorker();
|
|
50721
|
+
if (f != null) {
|
|
50722
|
+
writer.writeMessage(
|
|
50723
|
+
4,
|
|
50724
|
+
f,
|
|
50725
|
+
proto.clarifai.api.Worker.serializeBinaryToWriter
|
|
50726
|
+
);
|
|
50727
|
+
}
|
|
50728
|
+
f = message.getInput();
|
|
50729
|
+
if (f != null) {
|
|
50730
|
+
writer.writeMessage(
|
|
50731
|
+
5,
|
|
50732
|
+
f,
|
|
50733
|
+
proto.clarifai.api.Input.serializeBinaryToWriter
|
|
50734
|
+
);
|
|
50735
|
+
}
|
|
50736
|
+
f = message.getStatus();
|
|
50737
|
+
if (f != null) {
|
|
50738
|
+
writer.writeMessage(
|
|
50739
|
+
6,
|
|
50740
|
+
f,
|
|
50741
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
50742
|
+
);
|
|
50743
|
+
}
|
|
50744
|
+
};
|
|
50745
|
+
|
|
50746
|
+
|
|
50747
|
+
/**
|
|
50748
|
+
* optional string id = 1;
|
|
50749
|
+
* @return {string}
|
|
50750
|
+
*/
|
|
50751
|
+
proto.clarifai.api.TaskAssignment.prototype.getId = function() {
|
|
50752
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
50753
|
+
};
|
|
50754
|
+
|
|
50755
|
+
|
|
50756
|
+
/**
|
|
50757
|
+
* @param {string} value
|
|
50758
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50759
|
+
*/
|
|
50760
|
+
proto.clarifai.api.TaskAssignment.prototype.setId = function(value) {
|
|
50761
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
50762
|
+
};
|
|
50763
|
+
|
|
50764
|
+
|
|
50765
|
+
/**
|
|
50766
|
+
* optional google.protobuf.Timestamp created_at = 2;
|
|
50767
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
50768
|
+
*/
|
|
50769
|
+
proto.clarifai.api.TaskAssignment.prototype.getCreatedAt = function() {
|
|
50770
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
50771
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
50772
|
+
};
|
|
50773
|
+
|
|
50774
|
+
|
|
50775
|
+
/**
|
|
50776
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
50777
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50778
|
+
*/
|
|
50779
|
+
proto.clarifai.api.TaskAssignment.prototype.setCreatedAt = function(value) {
|
|
50780
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
50781
|
+
};
|
|
50782
|
+
|
|
50783
|
+
|
|
50784
|
+
/**
|
|
50785
|
+
* Clears the message field making it undefined.
|
|
50786
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50787
|
+
*/
|
|
50788
|
+
proto.clarifai.api.TaskAssignment.prototype.clearCreatedAt = function() {
|
|
50789
|
+
return this.setCreatedAt(undefined);
|
|
50790
|
+
};
|
|
50791
|
+
|
|
50792
|
+
|
|
50793
|
+
/**
|
|
50794
|
+
* Returns whether this field is set.
|
|
50795
|
+
* @return {boolean}
|
|
50796
|
+
*/
|
|
50797
|
+
proto.clarifai.api.TaskAssignment.prototype.hasCreatedAt = function() {
|
|
50798
|
+
return jspb.Message.getField(this, 2) != null;
|
|
50799
|
+
};
|
|
50800
|
+
|
|
50801
|
+
|
|
50802
|
+
/**
|
|
50803
|
+
* optional google.protobuf.Timestamp modified_at = 3;
|
|
50804
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
50805
|
+
*/
|
|
50806
|
+
proto.clarifai.api.TaskAssignment.prototype.getModifiedAt = function() {
|
|
50807
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
50808
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
50809
|
+
};
|
|
50810
|
+
|
|
50811
|
+
|
|
50812
|
+
/**
|
|
50813
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
50814
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50815
|
+
*/
|
|
50816
|
+
proto.clarifai.api.TaskAssignment.prototype.setModifiedAt = function(value) {
|
|
50817
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
50818
|
+
};
|
|
50819
|
+
|
|
50820
|
+
|
|
50821
|
+
/**
|
|
50822
|
+
* Clears the message field making it undefined.
|
|
50823
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50824
|
+
*/
|
|
50825
|
+
proto.clarifai.api.TaskAssignment.prototype.clearModifiedAt = function() {
|
|
50826
|
+
return this.setModifiedAt(undefined);
|
|
50827
|
+
};
|
|
50828
|
+
|
|
50829
|
+
|
|
50830
|
+
/**
|
|
50831
|
+
* Returns whether this field is set.
|
|
50832
|
+
* @return {boolean}
|
|
50833
|
+
*/
|
|
50834
|
+
proto.clarifai.api.TaskAssignment.prototype.hasModifiedAt = function() {
|
|
50835
|
+
return jspb.Message.getField(this, 3) != null;
|
|
50836
|
+
};
|
|
50837
|
+
|
|
50838
|
+
|
|
50839
|
+
/**
|
|
50840
|
+
* optional Worker worker = 4;
|
|
50841
|
+
* @return {?proto.clarifai.api.Worker}
|
|
50842
|
+
*/
|
|
50843
|
+
proto.clarifai.api.TaskAssignment.prototype.getWorker = function() {
|
|
50844
|
+
return /** @type{?proto.clarifai.api.Worker} */ (
|
|
50845
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 4));
|
|
50846
|
+
};
|
|
50847
|
+
|
|
50848
|
+
|
|
50849
|
+
/**
|
|
50850
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
50851
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50852
|
+
*/
|
|
50853
|
+
proto.clarifai.api.TaskAssignment.prototype.setWorker = function(value) {
|
|
50854
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
50855
|
+
};
|
|
50856
|
+
|
|
50857
|
+
|
|
50858
|
+
/**
|
|
50859
|
+
* Clears the message field making it undefined.
|
|
50860
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50861
|
+
*/
|
|
50862
|
+
proto.clarifai.api.TaskAssignment.prototype.clearWorker = function() {
|
|
50863
|
+
return this.setWorker(undefined);
|
|
50864
|
+
};
|
|
50865
|
+
|
|
50866
|
+
|
|
50867
|
+
/**
|
|
50868
|
+
* Returns whether this field is set.
|
|
50869
|
+
* @return {boolean}
|
|
50870
|
+
*/
|
|
50871
|
+
proto.clarifai.api.TaskAssignment.prototype.hasWorker = function() {
|
|
50872
|
+
return jspb.Message.getField(this, 4) != null;
|
|
50873
|
+
};
|
|
50874
|
+
|
|
50875
|
+
|
|
50876
|
+
/**
|
|
50877
|
+
* optional Input input = 5;
|
|
50878
|
+
* @return {?proto.clarifai.api.Input}
|
|
50879
|
+
*/
|
|
50880
|
+
proto.clarifai.api.TaskAssignment.prototype.getInput = function() {
|
|
50881
|
+
return /** @type{?proto.clarifai.api.Input} */ (
|
|
50882
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5));
|
|
50883
|
+
};
|
|
50884
|
+
|
|
50885
|
+
|
|
50886
|
+
/**
|
|
50887
|
+
* @param {?proto.clarifai.api.Input|undefined} value
|
|
50888
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50889
|
+
*/
|
|
50890
|
+
proto.clarifai.api.TaskAssignment.prototype.setInput = function(value) {
|
|
50891
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
50892
|
+
};
|
|
50893
|
+
|
|
50894
|
+
|
|
50895
|
+
/**
|
|
50896
|
+
* Clears the message field making it undefined.
|
|
50897
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50898
|
+
*/
|
|
50899
|
+
proto.clarifai.api.TaskAssignment.prototype.clearInput = function() {
|
|
50900
|
+
return this.setInput(undefined);
|
|
50901
|
+
};
|
|
50902
|
+
|
|
50903
|
+
|
|
50904
|
+
/**
|
|
50905
|
+
* Returns whether this field is set.
|
|
50906
|
+
* @return {boolean}
|
|
50907
|
+
*/
|
|
50908
|
+
proto.clarifai.api.TaskAssignment.prototype.hasInput = function() {
|
|
50909
|
+
return jspb.Message.getField(this, 5) != null;
|
|
50910
|
+
};
|
|
50911
|
+
|
|
50912
|
+
|
|
50913
|
+
/**
|
|
50914
|
+
* optional status.Status status = 6;
|
|
50915
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
50916
|
+
*/
|
|
50917
|
+
proto.clarifai.api.TaskAssignment.prototype.getStatus = function() {
|
|
50918
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
50919
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 6));
|
|
50920
|
+
};
|
|
50921
|
+
|
|
50922
|
+
|
|
50923
|
+
/**
|
|
50924
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
50925
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50926
|
+
*/
|
|
50927
|
+
proto.clarifai.api.TaskAssignment.prototype.setStatus = function(value) {
|
|
50928
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
50929
|
+
};
|
|
50930
|
+
|
|
50931
|
+
|
|
50932
|
+
/**
|
|
50933
|
+
* Clears the message field making it undefined.
|
|
50934
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50935
|
+
*/
|
|
50936
|
+
proto.clarifai.api.TaskAssignment.prototype.clearStatus = function() {
|
|
50937
|
+
return this.setStatus(undefined);
|
|
50938
|
+
};
|
|
50939
|
+
|
|
50940
|
+
|
|
50941
|
+
/**
|
|
50942
|
+
* Returns whether this field is set.
|
|
50943
|
+
* @return {boolean}
|
|
50944
|
+
*/
|
|
50945
|
+
proto.clarifai.api.TaskAssignment.prototype.hasStatus = function() {
|
|
50946
|
+
return jspb.Message.getField(this, 6) != null;
|
|
50947
|
+
};
|
|
50948
|
+
|
|
50949
|
+
|
|
50950
|
+
|
|
50951
|
+
|
|
50952
|
+
|
|
49791
50953
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
49792
50954
|
/**
|
|
49793
50955
|
* Creates an object representation of this proto.
|
|
@@ -50730,7 +51892,7 @@ proto.clarifai.api.TaskMetrics.prototype.toObject = function(opt_includeInstance
|
|
|
50730
51892
|
*/
|
|
50731
51893
|
proto.clarifai.api.TaskMetrics.toObject = function(includeInstance, msg) {
|
|
50732
51894
|
var f, obj = {
|
|
50733
|
-
|
|
51895
|
+
work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f)
|
|
50734
51896
|
};
|
|
50735
51897
|
|
|
50736
51898
|
if (includeInstance) {
|
|
@@ -50767,9 +51929,10 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function(msg, reade
|
|
|
50767
51929
|
}
|
|
50768
51930
|
var field = reader.getFieldNumber();
|
|
50769
51931
|
switch (field) {
|
|
50770
|
-
case
|
|
50771
|
-
var value =
|
|
50772
|
-
|
|
51932
|
+
case 2:
|
|
51933
|
+
var value = new proto.clarifai.api.TaskWorkMetrics;
|
|
51934
|
+
reader.readMessage(value,proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader);
|
|
51935
|
+
msg.setWork(value);
|
|
50773
51936
|
break;
|
|
50774
51937
|
default:
|
|
50775
51938
|
reader.skipField();
|
|
@@ -50800,34 +51963,214 @@ proto.clarifai.api.TaskMetrics.prototype.serializeBinary = function() {
|
|
|
50800
51963
|
*/
|
|
50801
51964
|
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function(message, writer) {
|
|
50802
51965
|
var f = undefined;
|
|
50803
|
-
f = message.
|
|
51966
|
+
f = message.getWork();
|
|
51967
|
+
if (f != null) {
|
|
51968
|
+
writer.writeMessage(
|
|
51969
|
+
2,
|
|
51970
|
+
f,
|
|
51971
|
+
proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter
|
|
51972
|
+
);
|
|
51973
|
+
}
|
|
51974
|
+
};
|
|
51975
|
+
|
|
51976
|
+
|
|
51977
|
+
/**
|
|
51978
|
+
* optional TaskWorkMetrics work = 2;
|
|
51979
|
+
* @return {?proto.clarifai.api.TaskWorkMetrics}
|
|
51980
|
+
*/
|
|
51981
|
+
proto.clarifai.api.TaskMetrics.prototype.getWork = function() {
|
|
51982
|
+
return /** @type{?proto.clarifai.api.TaskWorkMetrics} */ (
|
|
51983
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkMetrics, 2));
|
|
51984
|
+
};
|
|
51985
|
+
|
|
51986
|
+
|
|
51987
|
+
/**
|
|
51988
|
+
* @param {?proto.clarifai.api.TaskWorkMetrics|undefined} value
|
|
51989
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
51990
|
+
*/
|
|
51991
|
+
proto.clarifai.api.TaskMetrics.prototype.setWork = function(value) {
|
|
51992
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
51993
|
+
};
|
|
51994
|
+
|
|
51995
|
+
|
|
51996
|
+
/**
|
|
51997
|
+
* Clears the message field making it undefined.
|
|
51998
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
51999
|
+
*/
|
|
52000
|
+
proto.clarifai.api.TaskMetrics.prototype.clearWork = function() {
|
|
52001
|
+
return this.setWork(undefined);
|
|
52002
|
+
};
|
|
52003
|
+
|
|
52004
|
+
|
|
52005
|
+
/**
|
|
52006
|
+
* Returns whether this field is set.
|
|
52007
|
+
* @return {boolean}
|
|
52008
|
+
*/
|
|
52009
|
+
proto.clarifai.api.TaskMetrics.prototype.hasWork = function() {
|
|
52010
|
+
return jspb.Message.getField(this, 2) != null;
|
|
52011
|
+
};
|
|
52012
|
+
|
|
52013
|
+
|
|
52014
|
+
|
|
52015
|
+
|
|
52016
|
+
|
|
52017
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
52018
|
+
/**
|
|
52019
|
+
* Creates an object representation of this proto.
|
|
52020
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
52021
|
+
* Optional fields that are not set will be set to undefined.
|
|
52022
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
52023
|
+
* For the list of reserved names please see:
|
|
52024
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
52025
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
52026
|
+
* JSPB instance for transitional soy proto support:
|
|
52027
|
+
* http://goto/soy-param-migration
|
|
52028
|
+
* @return {!Object}
|
|
52029
|
+
*/
|
|
52030
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.toObject = function(opt_includeInstance) {
|
|
52031
|
+
return proto.clarifai.api.TaskWorkMetrics.toObject(opt_includeInstance, this);
|
|
52032
|
+
};
|
|
52033
|
+
|
|
52034
|
+
|
|
52035
|
+
/**
|
|
52036
|
+
* Static version of the {@see toObject} method.
|
|
52037
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
52038
|
+
* the JSPB instance for transitional soy proto support:
|
|
52039
|
+
* http://goto/soy-param-migration
|
|
52040
|
+
* @param {!proto.clarifai.api.TaskWorkMetrics} msg The msg instance to transform.
|
|
52041
|
+
* @return {!Object}
|
|
52042
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
52043
|
+
*/
|
|
52044
|
+
proto.clarifai.api.TaskWorkMetrics.toObject = function(includeInstance, msg) {
|
|
52045
|
+
var f, obj = {
|
|
52046
|
+
inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
52047
|
+
inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
52048
|
+
};
|
|
52049
|
+
|
|
52050
|
+
if (includeInstance) {
|
|
52051
|
+
obj.$jspbMessageInstance = msg;
|
|
52052
|
+
}
|
|
52053
|
+
return obj;
|
|
52054
|
+
};
|
|
52055
|
+
}
|
|
52056
|
+
|
|
52057
|
+
|
|
52058
|
+
/**
|
|
52059
|
+
* Deserializes binary data (in protobuf wire format).
|
|
52060
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
52061
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics}
|
|
52062
|
+
*/
|
|
52063
|
+
proto.clarifai.api.TaskWorkMetrics.deserializeBinary = function(bytes) {
|
|
52064
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
52065
|
+
var msg = new proto.clarifai.api.TaskWorkMetrics;
|
|
52066
|
+
return proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader(msg, reader);
|
|
52067
|
+
};
|
|
52068
|
+
|
|
52069
|
+
|
|
52070
|
+
/**
|
|
52071
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
52072
|
+
* given reader into the given message object.
|
|
52073
|
+
* @param {!proto.clarifai.api.TaskWorkMetrics} msg The message object to deserialize into.
|
|
52074
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
52075
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics}
|
|
52076
|
+
*/
|
|
52077
|
+
proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader = function(msg, reader) {
|
|
52078
|
+
while (reader.nextField()) {
|
|
52079
|
+
if (reader.isEndGroup()) {
|
|
52080
|
+
break;
|
|
52081
|
+
}
|
|
52082
|
+
var field = reader.getFieldNumber();
|
|
52083
|
+
switch (field) {
|
|
52084
|
+
case 1:
|
|
52085
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
52086
|
+
msg.setInputsCountEstimated(value);
|
|
52087
|
+
break;
|
|
52088
|
+
case 2:
|
|
52089
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
52090
|
+
msg.setInputsPercentEstimated(value);
|
|
52091
|
+
break;
|
|
52092
|
+
default:
|
|
52093
|
+
reader.skipField();
|
|
52094
|
+
break;
|
|
52095
|
+
}
|
|
52096
|
+
}
|
|
52097
|
+
return msg;
|
|
52098
|
+
};
|
|
52099
|
+
|
|
52100
|
+
|
|
52101
|
+
/**
|
|
52102
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
52103
|
+
* @return {!Uint8Array}
|
|
52104
|
+
*/
|
|
52105
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.serializeBinary = function() {
|
|
52106
|
+
var writer = new jspb.BinaryWriter();
|
|
52107
|
+
proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter(this, writer);
|
|
52108
|
+
return writer.getResultBuffer();
|
|
52109
|
+
};
|
|
52110
|
+
|
|
52111
|
+
|
|
52112
|
+
/**
|
|
52113
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
52114
|
+
* format), writing to the given BinaryWriter.
|
|
52115
|
+
* @param {!proto.clarifai.api.TaskWorkMetrics} message
|
|
52116
|
+
* @param {!jspb.BinaryWriter} writer
|
|
52117
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
52118
|
+
*/
|
|
52119
|
+
proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter = function(message, writer) {
|
|
52120
|
+
var f = undefined;
|
|
52121
|
+
f = message.getInputsCountEstimated();
|
|
50804
52122
|
if (f !== 0) {
|
|
50805
52123
|
writer.writeUint64(
|
|
50806
52124
|
1,
|
|
50807
52125
|
f
|
|
50808
52126
|
);
|
|
50809
52127
|
}
|
|
52128
|
+
f = message.getInputsPercentEstimated();
|
|
52129
|
+
if (f !== 0) {
|
|
52130
|
+
writer.writeUint32(
|
|
52131
|
+
2,
|
|
52132
|
+
f
|
|
52133
|
+
);
|
|
52134
|
+
}
|
|
50810
52135
|
};
|
|
50811
52136
|
|
|
50812
52137
|
|
|
50813
52138
|
/**
|
|
50814
|
-
* optional uint64
|
|
52139
|
+
* optional uint64 inputs_count_estimated = 1;
|
|
50815
52140
|
* @return {number}
|
|
50816
52141
|
*/
|
|
50817
|
-
proto.clarifai.api.
|
|
52142
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.getInputsCountEstimated = function() {
|
|
50818
52143
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
50819
52144
|
};
|
|
50820
52145
|
|
|
50821
52146
|
|
|
50822
52147
|
/**
|
|
50823
52148
|
* @param {number} value
|
|
50824
|
-
* @return {!proto.clarifai.api.
|
|
52149
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics} returns this
|
|
50825
52150
|
*/
|
|
50826
|
-
proto.clarifai.api.
|
|
52151
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.setInputsCountEstimated = function(value) {
|
|
50827
52152
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
50828
52153
|
};
|
|
50829
52154
|
|
|
50830
52155
|
|
|
52156
|
+
/**
|
|
52157
|
+
* optional uint32 inputs_percent_estimated = 2;
|
|
52158
|
+
* @return {number}
|
|
52159
|
+
*/
|
|
52160
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.getInputsPercentEstimated = function() {
|
|
52161
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
52162
|
+
};
|
|
52163
|
+
|
|
52164
|
+
|
|
52165
|
+
/**
|
|
52166
|
+
* @param {number} value
|
|
52167
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics} returns this
|
|
52168
|
+
*/
|
|
52169
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = function(value) {
|
|
52170
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
52171
|
+
};
|
|
52172
|
+
|
|
52173
|
+
|
|
50831
52174
|
|
|
50832
52175
|
|
|
50833
52176
|
|
|
@@ -63542,6 +64885,32 @@ proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function(value) {
|
|
|
63542
64885
|
*/
|
|
63543
64886
|
proto.clarifai.api.Runner.repeatedFields_ = [7];
|
|
63544
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
|
+
|
|
63545
64914
|
|
|
63546
64915
|
|
|
63547
64916
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -63579,7 +64948,11 @@ proto.clarifai.api.Runner.toObject = function(includeInstance, msg) {
|
|
|
63579
64948
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
63580
64949
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
63581
64950
|
userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
63582
|
-
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)
|
|
63583
64956
|
};
|
|
63584
64957
|
|
|
63585
64958
|
if (includeInstance) {
|
|
@@ -63647,6 +65020,26 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
63647
65020
|
var value = /** @type {string} */ (reader.readString());
|
|
63648
65021
|
msg.addLabels(value);
|
|
63649
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;
|
|
63650
65043
|
default:
|
|
63651
65044
|
reader.skipField();
|
|
63652
65045
|
break;
|
|
@@ -63728,6 +65121,38 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) {
|
|
|
63728
65121
|
f
|
|
63729
65122
|
);
|
|
63730
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
|
+
}
|
|
63731
65156
|
};
|
|
63732
65157
|
|
|
63733
65158
|
|
|
@@ -63933,6 +65358,1996 @@ proto.clarifai.api.Runner.prototype.clearLabelsList = function() {
|
|
|
63933
65358
|
};
|
|
63934
65359
|
|
|
63935
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
|
+
|
|
63936
67351
|
/**
|
|
63937
67352
|
* @enum {number}
|
|
63938
67353
|
*/
|