clarifai-web-grpc 10.3.3 → 10.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +1181 -121
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +210 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +1341 -1
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +4 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +1181 -121
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +210 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +1341 -1
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +4 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +191 -36
- package/proto/clarifai/api/resources_pb.js +1461 -126
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +60 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +305 -0
- package/proto/clarifai/api/service_pb.d.ts +190 -0
- package/proto/clarifai/api/service_pb.js +1649 -1
- package/proto/clarifai/api/status/status_code_pb.d.ts +6 -0
- package/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +3 -0
- package/proto/clarifai/auth/scope/scope_pb.js +4 -1
|
@@ -66,14 +66,14 @@ goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global);
|
|
|
66
66
|
goog.exportSymbol('proto.clarifai.api.BuildInfo', null, global);
|
|
67
67
|
goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global);
|
|
68
68
|
goog.exportSymbol('proto.clarifai.api.BulkOperation.InputSourceCase', null, global);
|
|
69
|
-
goog.exportSymbol('proto.clarifai.api.
|
|
70
|
-
goog.exportSymbol('proto.clarifai.api.CloudRegion.Cloud', null, global);
|
|
69
|
+
goog.exportSymbol('proto.clarifai.api.CloudProvider', null, global);
|
|
71
70
|
goog.exportSymbol('proto.clarifai.api.Cluster', null, global);
|
|
72
71
|
goog.exportSymbol('proto.clarifai.api.Collaboration', null, global);
|
|
73
72
|
goog.exportSymbol('proto.clarifai.api.Collaborator', null, global);
|
|
74
73
|
goog.exportSymbol('proto.clarifai.api.Collector', null, global);
|
|
75
74
|
goog.exportSymbol('proto.clarifai.api.CollectorSource', null, global);
|
|
76
75
|
goog.exportSymbol('proto.clarifai.api.Color', null, global);
|
|
76
|
+
goog.exportSymbol('proto.clarifai.api.ComputeCluster', null, global);
|
|
77
77
|
goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
|
|
78
78
|
goog.exportSymbol('proto.clarifai.api.Concept', null, global);
|
|
79
79
|
goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
|
|
@@ -81,6 +81,7 @@ goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
|
|
|
81
81
|
goog.exportSymbol('proto.clarifai.api.ConceptLanguage', null, global);
|
|
82
82
|
goog.exportSymbol('proto.clarifai.api.ConceptMappingJob', null, global);
|
|
83
83
|
goog.exportSymbol('proto.clarifai.api.ConceptQuery', null, global);
|
|
84
|
+
goog.exportSymbol('proto.clarifai.api.ConceptQuery.SourceCase', null, global);
|
|
84
85
|
goog.exportSymbol('proto.clarifai.api.ConceptRelation', null, global);
|
|
85
86
|
goog.exportSymbol('proto.clarifai.api.ConceptTypeCount', null, global);
|
|
86
87
|
goog.exportSymbol('proto.clarifai.api.ConfusionMatrix', null, global);
|
|
@@ -155,6 +156,7 @@ goog.exportSymbol('proto.clarifai.api.InputsExtractionJob', null, global);
|
|
|
155
156
|
goog.exportSymbol('proto.clarifai.api.InputsExtractionJobProgress', null, global);
|
|
156
157
|
goog.exportSymbol('proto.clarifai.api.InputsUpload', null, global);
|
|
157
158
|
goog.exportSymbol('proto.clarifai.api.InstalledModuleVersion', null, global);
|
|
159
|
+
goog.exportSymbol('proto.clarifai.api.InstanceType', null, global);
|
|
158
160
|
goog.exportSymbol('proto.clarifai.api.Key', null, global);
|
|
159
161
|
goog.exportSymbol('proto.clarifai.api.KeypointEdge', null, global);
|
|
160
162
|
goog.exportSymbol('proto.clarifai.api.KeypointInfo', null, global);
|
|
@@ -187,9 +189,10 @@ goog.exportSymbol('proto.clarifai.api.ModuleStar', null, global);
|
|
|
187
189
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global);
|
|
188
190
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global);
|
|
189
191
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global);
|
|
192
|
+
goog.exportSymbol('proto.clarifai.api.NodeCapacityType', null, global);
|
|
193
|
+
goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, global);
|
|
190
194
|
goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
|
|
191
195
|
goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
|
|
192
|
-
goog.exportSymbol('proto.clarifai.api.Nodepool.CapacityType', null, global);
|
|
193
196
|
goog.exportSymbol('proto.clarifai.api.Operation', null, global);
|
|
194
197
|
goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
|
|
195
198
|
goog.exportSymbol('proto.clarifai.api.Output', null, global);
|
|
@@ -243,6 +246,7 @@ goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global
|
|
|
243
246
|
goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, global);
|
|
244
247
|
goog.exportSymbol('proto.clarifai.api.TaskReviewConsensusStrategyInfo', null, global);
|
|
245
248
|
goog.exportSymbol('proto.clarifai.api.TaskReviewManualStrategyInfo', null, global);
|
|
249
|
+
goog.exportSymbol('proto.clarifai.api.TaskReviewMetrics', null, global);
|
|
246
250
|
goog.exportSymbol('proto.clarifai.api.TaskStatusCountPerUser', null, global);
|
|
247
251
|
goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
|
|
248
252
|
goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
|
|
@@ -779,7 +783,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
779
783
|
* @constructor
|
|
780
784
|
*/
|
|
781
785
|
proto.clarifai.api.ConceptQuery = function (opt_data) {
|
|
782
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_,
|
|
786
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_, proto.clarifai.api.ConceptQuery.oneofGroups_);
|
|
783
787
|
};
|
|
784
788
|
goog.inherits(proto.clarifai.api.ConceptQuery, jspb.Message);
|
|
785
789
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -3456,6 +3460,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3456
3460
|
*/
|
|
3457
3461
|
proto.clarifai.api.TaskWorkMetrics.displayName = 'proto.clarifai.api.TaskWorkMetrics';
|
|
3458
3462
|
}
|
|
3463
|
+
/**
|
|
3464
|
+
* Generated by JsPbCodeGenerator.
|
|
3465
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3466
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3467
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3468
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3469
|
+
* valid.
|
|
3470
|
+
* @extends {jspb.Message}
|
|
3471
|
+
* @constructor
|
|
3472
|
+
*/
|
|
3473
|
+
proto.clarifai.api.TaskReviewMetrics = function (opt_data) {
|
|
3474
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3475
|
+
};
|
|
3476
|
+
goog.inherits(proto.clarifai.api.TaskReviewMetrics, jspb.Message);
|
|
3477
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3478
|
+
/**
|
|
3479
|
+
* @public
|
|
3480
|
+
* @override
|
|
3481
|
+
*/
|
|
3482
|
+
proto.clarifai.api.TaskReviewMetrics.displayName = 'proto.clarifai.api.TaskReviewMetrics';
|
|
3483
|
+
}
|
|
3459
3484
|
/**
|
|
3460
3485
|
* Generated by JsPbCodeGenerator.
|
|
3461
3486
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4537,16 +4562,79 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4537
4562
|
* @extends {jspb.Message}
|
|
4538
4563
|
* @constructor
|
|
4539
4564
|
*/
|
|
4540
|
-
proto.clarifai.api.
|
|
4565
|
+
proto.clarifai.api.NodeCapacityType = function (opt_data) {
|
|
4566
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.NodeCapacityType.repeatedFields_, null);
|
|
4567
|
+
};
|
|
4568
|
+
goog.inherits(proto.clarifai.api.NodeCapacityType, jspb.Message);
|
|
4569
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4570
|
+
/**
|
|
4571
|
+
* @public
|
|
4572
|
+
* @override
|
|
4573
|
+
*/
|
|
4574
|
+
proto.clarifai.api.NodeCapacityType.displayName = 'proto.clarifai.api.NodeCapacityType';
|
|
4575
|
+
}
|
|
4576
|
+
/**
|
|
4577
|
+
* Generated by JsPbCodeGenerator.
|
|
4578
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4579
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4580
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4581
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4582
|
+
* valid.
|
|
4583
|
+
* @extends {jspb.Message}
|
|
4584
|
+
* @constructor
|
|
4585
|
+
*/
|
|
4586
|
+
proto.clarifai.api.InstanceType = function (opt_data) {
|
|
4541
4587
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4542
4588
|
};
|
|
4543
|
-
goog.inherits(proto.clarifai.api.
|
|
4589
|
+
goog.inherits(proto.clarifai.api.InstanceType, jspb.Message);
|
|
4544
4590
|
if (goog.DEBUG && !COMPILED) {
|
|
4545
4591
|
/**
|
|
4546
4592
|
* @public
|
|
4547
4593
|
* @override
|
|
4548
4594
|
*/
|
|
4549
|
-
proto.clarifai.api.
|
|
4595
|
+
proto.clarifai.api.InstanceType.displayName = 'proto.clarifai.api.InstanceType';
|
|
4596
|
+
}
|
|
4597
|
+
/**
|
|
4598
|
+
* Generated by JsPbCodeGenerator.
|
|
4599
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4600
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4601
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4602
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4603
|
+
* valid.
|
|
4604
|
+
* @extends {jspb.Message}
|
|
4605
|
+
* @constructor
|
|
4606
|
+
*/
|
|
4607
|
+
proto.clarifai.api.CloudProvider = function (opt_data) {
|
|
4608
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4609
|
+
};
|
|
4610
|
+
goog.inherits(proto.clarifai.api.CloudProvider, jspb.Message);
|
|
4611
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4612
|
+
/**
|
|
4613
|
+
* @public
|
|
4614
|
+
* @override
|
|
4615
|
+
*/
|
|
4616
|
+
proto.clarifai.api.CloudProvider.displayName = 'proto.clarifai.api.CloudProvider';
|
|
4617
|
+
}
|
|
4618
|
+
/**
|
|
4619
|
+
* Generated by JsPbCodeGenerator.
|
|
4620
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4621
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4622
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4623
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4624
|
+
* valid.
|
|
4625
|
+
* @extends {jspb.Message}
|
|
4626
|
+
* @constructor
|
|
4627
|
+
*/
|
|
4628
|
+
proto.clarifai.api.ComputeCluster = function (opt_data) {
|
|
4629
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4630
|
+
};
|
|
4631
|
+
goog.inherits(proto.clarifai.api.ComputeCluster, jspb.Message);
|
|
4632
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4633
|
+
/**
|
|
4634
|
+
* @public
|
|
4635
|
+
* @override
|
|
4636
|
+
*/
|
|
4637
|
+
proto.clarifai.api.ComputeCluster.displayName = 'proto.clarifai.api.ComputeCluster';
|
|
4550
4638
|
}
|
|
4551
4639
|
/**
|
|
4552
4640
|
* Generated by JsPbCodeGenerator.
|
|
@@ -10033,6 +10121,29 @@ proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function () {
|
|
|
10033
10121
|
* @const
|
|
10034
10122
|
*/
|
|
10035
10123
|
proto.clarifai.api.ConceptQuery.repeatedFields_ = [4];
|
|
10124
|
+
/**
|
|
10125
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
10126
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
10127
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
10128
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
10129
|
+
* @private {!Array<!Array<number>>}
|
|
10130
|
+
* @const
|
|
10131
|
+
*/
|
|
10132
|
+
proto.clarifai.api.ConceptQuery.oneofGroups_ = [[5, 6]];
|
|
10133
|
+
/**
|
|
10134
|
+
* @enum {number}
|
|
10135
|
+
*/
|
|
10136
|
+
proto.clarifai.api.ConceptQuery.SourceCase = {
|
|
10137
|
+
SOURCE_NOT_SET: 0,
|
|
10138
|
+
MODEL: 5,
|
|
10139
|
+
WORKFLOW: 6
|
|
10140
|
+
};
|
|
10141
|
+
/**
|
|
10142
|
+
* @return {proto.clarifai.api.ConceptQuery.SourceCase}
|
|
10143
|
+
*/
|
|
10144
|
+
proto.clarifai.api.ConceptQuery.prototype.getSourceCase = function () {
|
|
10145
|
+
return /** @type {proto.clarifai.api.ConceptQuery.SourceCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.ConceptQuery.oneofGroups_[0]));
|
|
10146
|
+
};
|
|
10036
10147
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10037
10148
|
/**
|
|
10038
10149
|
* Creates an object representation of this proto.
|
|
@@ -10063,7 +10174,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
10063
10174
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
10064
10175
|
language: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
10065
10176
|
workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
10066
|
-
useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
10177
|
+
useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
10178
|
+
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
10179
|
+
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f)
|
|
10067
10180
|
};
|
|
10068
10181
|
if (includeInstance) {
|
|
10069
10182
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10113,6 +10226,16 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function (msg, rea
|
|
|
10113
10226
|
msg.addUseCases(values[i]);
|
|
10114
10227
|
}
|
|
10115
10228
|
break;
|
|
10229
|
+
case 5:
|
|
10230
|
+
var value = new proto.clarifai.api.Model;
|
|
10231
|
+
reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
10232
|
+
msg.setModel(value);
|
|
10233
|
+
break;
|
|
10234
|
+
case 6:
|
|
10235
|
+
var value = new proto.clarifai.api.Workflow;
|
|
10236
|
+
reader.readMessage(value, proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
10237
|
+
msg.setWorkflow(value);
|
|
10238
|
+
break;
|
|
10116
10239
|
default:
|
|
10117
10240
|
reader.skipField();
|
|
10118
10241
|
break;
|
|
@@ -10154,6 +10277,14 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function (message, wri
|
|
|
10154
10277
|
if (f.length > 0) {
|
|
10155
10278
|
writer.writePackedEnum(4, f);
|
|
10156
10279
|
}
|
|
10280
|
+
f = message.getModel();
|
|
10281
|
+
if (f != null) {
|
|
10282
|
+
writer.writeMessage(5, f, proto.clarifai.api.Model.serializeBinaryToWriter);
|
|
10283
|
+
}
|
|
10284
|
+
f = message.getWorkflow();
|
|
10285
|
+
if (f != null) {
|
|
10286
|
+
writer.writeMessage(6, f, proto.clarifai.api.Workflow.serializeBinaryToWriter);
|
|
10287
|
+
}
|
|
10157
10288
|
};
|
|
10158
10289
|
/**
|
|
10159
10290
|
* optional string name = 1;
|
|
@@ -10226,6 +10357,62 @@ proto.clarifai.api.ConceptQuery.prototype.addUseCases = function (value, opt_ind
|
|
|
10226
10357
|
proto.clarifai.api.ConceptQuery.prototype.clearUseCasesList = function () {
|
|
10227
10358
|
return this.setUseCasesList([]);
|
|
10228
10359
|
};
|
|
10360
|
+
/**
|
|
10361
|
+
* optional Model model = 5;
|
|
10362
|
+
* @return {?proto.clarifai.api.Model}
|
|
10363
|
+
*/
|
|
10364
|
+
proto.clarifai.api.ConceptQuery.prototype.getModel = function () {
|
|
10365
|
+
return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 5));
|
|
10366
|
+
};
|
|
10367
|
+
/**
|
|
10368
|
+
* @param {?proto.clarifai.api.Model|undefined} value
|
|
10369
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
10370
|
+
*/
|
|
10371
|
+
proto.clarifai.api.ConceptQuery.prototype.setModel = function (value) {
|
|
10372
|
+
return jspb.Message.setOneofWrapperField(this, 5, proto.clarifai.api.ConceptQuery.oneofGroups_[0], value);
|
|
10373
|
+
};
|
|
10374
|
+
/**
|
|
10375
|
+
* Clears the message field making it undefined.
|
|
10376
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
10377
|
+
*/
|
|
10378
|
+
proto.clarifai.api.ConceptQuery.prototype.clearModel = function () {
|
|
10379
|
+
return this.setModel(undefined);
|
|
10380
|
+
};
|
|
10381
|
+
/**
|
|
10382
|
+
* Returns whether this field is set.
|
|
10383
|
+
* @return {boolean}
|
|
10384
|
+
*/
|
|
10385
|
+
proto.clarifai.api.ConceptQuery.prototype.hasModel = function () {
|
|
10386
|
+
return jspb.Message.getField(this, 5) != null;
|
|
10387
|
+
};
|
|
10388
|
+
/**
|
|
10389
|
+
* optional Workflow workflow = 6;
|
|
10390
|
+
* @return {?proto.clarifai.api.Workflow}
|
|
10391
|
+
*/
|
|
10392
|
+
proto.clarifai.api.ConceptQuery.prototype.getWorkflow = function () {
|
|
10393
|
+
return /** @type{?proto.clarifai.api.Workflow} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 6));
|
|
10394
|
+
};
|
|
10395
|
+
/**
|
|
10396
|
+
* @param {?proto.clarifai.api.Workflow|undefined} value
|
|
10397
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
10398
|
+
*/
|
|
10399
|
+
proto.clarifai.api.ConceptQuery.prototype.setWorkflow = function (value) {
|
|
10400
|
+
return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.ConceptQuery.oneofGroups_[0], value);
|
|
10401
|
+
};
|
|
10402
|
+
/**
|
|
10403
|
+
* Clears the message field making it undefined.
|
|
10404
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
10405
|
+
*/
|
|
10406
|
+
proto.clarifai.api.ConceptQuery.prototype.clearWorkflow = function () {
|
|
10407
|
+
return this.setWorkflow(undefined);
|
|
10408
|
+
};
|
|
10409
|
+
/**
|
|
10410
|
+
* Returns whether this field is set.
|
|
10411
|
+
* @return {boolean}
|
|
10412
|
+
*/
|
|
10413
|
+
proto.clarifai.api.ConceptQuery.prototype.hasWorkflow = function () {
|
|
10414
|
+
return jspb.Message.getField(this, 6) != null;
|
|
10415
|
+
};
|
|
10229
10416
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10230
10417
|
/**
|
|
10231
10418
|
* Creates an object representation of this proto.
|
|
@@ -41986,7 +42173,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
41986
42173
|
*/
|
|
41987
42174
|
proto.clarifai.api.TaskMetrics.toObject = function (includeInstance, msg) {
|
|
41988
42175
|
var f, obj = {
|
|
41989
|
-
work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f)
|
|
42176
|
+
work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f),
|
|
42177
|
+
review: (f = msg.getReview()) && proto.clarifai.api.TaskReviewMetrics.toObject(includeInstance, f)
|
|
41990
42178
|
};
|
|
41991
42179
|
if (includeInstance) {
|
|
41992
42180
|
obj.$jspbMessageInstance = msg;
|
|
@@ -42023,6 +42211,11 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function (msg, read
|
|
|
42023
42211
|
reader.readMessage(value, proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader);
|
|
42024
42212
|
msg.setWork(value);
|
|
42025
42213
|
break;
|
|
42214
|
+
case 3:
|
|
42215
|
+
var value = new proto.clarifai.api.TaskReviewMetrics;
|
|
42216
|
+
reader.readMessage(value, proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader);
|
|
42217
|
+
msg.setReview(value);
|
|
42218
|
+
break;
|
|
42026
42219
|
default:
|
|
42027
42220
|
reader.skipField();
|
|
42028
42221
|
break;
|
|
@@ -42052,6 +42245,10 @@ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function (message, writ
|
|
|
42052
42245
|
if (f != null) {
|
|
42053
42246
|
writer.writeMessage(2, f, proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter);
|
|
42054
42247
|
}
|
|
42248
|
+
f = message.getReview();
|
|
42249
|
+
if (f != null) {
|
|
42250
|
+
writer.writeMessage(3, f, proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter);
|
|
42251
|
+
}
|
|
42055
42252
|
};
|
|
42056
42253
|
/**
|
|
42057
42254
|
* optional TaskWorkMetrics work = 2;
|
|
@@ -42081,6 +42278,34 @@ proto.clarifai.api.TaskMetrics.prototype.clearWork = function () {
|
|
|
42081
42278
|
proto.clarifai.api.TaskMetrics.prototype.hasWork = function () {
|
|
42082
42279
|
return jspb.Message.getField(this, 2) != null;
|
|
42083
42280
|
};
|
|
42281
|
+
/**
|
|
42282
|
+
* optional TaskReviewMetrics review = 3;
|
|
42283
|
+
* @return {?proto.clarifai.api.TaskReviewMetrics}
|
|
42284
|
+
*/
|
|
42285
|
+
proto.clarifai.api.TaskMetrics.prototype.getReview = function () {
|
|
42286
|
+
return /** @type{?proto.clarifai.api.TaskReviewMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TaskReviewMetrics, 3));
|
|
42287
|
+
};
|
|
42288
|
+
/**
|
|
42289
|
+
* @param {?proto.clarifai.api.TaskReviewMetrics|undefined} value
|
|
42290
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
42291
|
+
*/
|
|
42292
|
+
proto.clarifai.api.TaskMetrics.prototype.setReview = function (value) {
|
|
42293
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
42294
|
+
};
|
|
42295
|
+
/**
|
|
42296
|
+
* Clears the message field making it undefined.
|
|
42297
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
42298
|
+
*/
|
|
42299
|
+
proto.clarifai.api.TaskMetrics.prototype.clearReview = function () {
|
|
42300
|
+
return this.setReview(undefined);
|
|
42301
|
+
};
|
|
42302
|
+
/**
|
|
42303
|
+
* Returns whether this field is set.
|
|
42304
|
+
* @return {boolean}
|
|
42305
|
+
*/
|
|
42306
|
+
proto.clarifai.api.TaskMetrics.prototype.hasReview = function () {
|
|
42307
|
+
return jspb.Message.getField(this, 3) != null;
|
|
42308
|
+
};
|
|
42084
42309
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42085
42310
|
/**
|
|
42086
42311
|
* Creates an object representation of this proto.
|
|
@@ -42211,6 +42436,136 @@ proto.clarifai.api.TaskWorkMetrics.prototype.getInputsPercentEstimated = functio
|
|
|
42211
42436
|
proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = function (value) {
|
|
42212
42437
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
42213
42438
|
};
|
|
42439
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42440
|
+
/**
|
|
42441
|
+
* Creates an object representation of this proto.
|
|
42442
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
42443
|
+
* Optional fields that are not set will be set to undefined.
|
|
42444
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
42445
|
+
* For the list of reserved names please see:
|
|
42446
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
42447
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
42448
|
+
* JSPB instance for transitional soy proto support:
|
|
42449
|
+
* http://goto/soy-param-migration
|
|
42450
|
+
* @return {!Object}
|
|
42451
|
+
*/
|
|
42452
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.toObject = function (opt_includeInstance) {
|
|
42453
|
+
return proto.clarifai.api.TaskReviewMetrics.toObject(opt_includeInstance, this);
|
|
42454
|
+
};
|
|
42455
|
+
/**
|
|
42456
|
+
* Static version of the {@see toObject} method.
|
|
42457
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
42458
|
+
* the JSPB instance for transitional soy proto support:
|
|
42459
|
+
* http://goto/soy-param-migration
|
|
42460
|
+
* @param {!proto.clarifai.api.TaskReviewMetrics} msg The msg instance to transform.
|
|
42461
|
+
* @return {!Object}
|
|
42462
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42463
|
+
*/
|
|
42464
|
+
proto.clarifai.api.TaskReviewMetrics.toObject = function (includeInstance, msg) {
|
|
42465
|
+
var f, obj = {
|
|
42466
|
+
inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
42467
|
+
inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
42468
|
+
};
|
|
42469
|
+
if (includeInstance) {
|
|
42470
|
+
obj.$jspbMessageInstance = msg;
|
|
42471
|
+
}
|
|
42472
|
+
return obj;
|
|
42473
|
+
};
|
|
42474
|
+
}
|
|
42475
|
+
/**
|
|
42476
|
+
* Deserializes binary data (in protobuf wire format).
|
|
42477
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
42478
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics}
|
|
42479
|
+
*/
|
|
42480
|
+
proto.clarifai.api.TaskReviewMetrics.deserializeBinary = function (bytes) {
|
|
42481
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
42482
|
+
var msg = new proto.clarifai.api.TaskReviewMetrics;
|
|
42483
|
+
return proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader(msg, reader);
|
|
42484
|
+
};
|
|
42485
|
+
/**
|
|
42486
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
42487
|
+
* given reader into the given message object.
|
|
42488
|
+
* @param {!proto.clarifai.api.TaskReviewMetrics} msg The message object to deserialize into.
|
|
42489
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
42490
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics}
|
|
42491
|
+
*/
|
|
42492
|
+
proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function (msg, reader) {
|
|
42493
|
+
while (reader.nextField()) {
|
|
42494
|
+
if (reader.isEndGroup()) {
|
|
42495
|
+
break;
|
|
42496
|
+
}
|
|
42497
|
+
var field = reader.getFieldNumber();
|
|
42498
|
+
switch (field) {
|
|
42499
|
+
case 1:
|
|
42500
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
42501
|
+
msg.setInputsCountEstimated(value);
|
|
42502
|
+
break;
|
|
42503
|
+
case 2:
|
|
42504
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
42505
|
+
msg.setInputsPercentEstimated(value);
|
|
42506
|
+
break;
|
|
42507
|
+
default:
|
|
42508
|
+
reader.skipField();
|
|
42509
|
+
break;
|
|
42510
|
+
}
|
|
42511
|
+
}
|
|
42512
|
+
return msg;
|
|
42513
|
+
};
|
|
42514
|
+
/**
|
|
42515
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
42516
|
+
* @return {!Uint8Array}
|
|
42517
|
+
*/
|
|
42518
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.serializeBinary = function () {
|
|
42519
|
+
var writer = new jspb.BinaryWriter();
|
|
42520
|
+
proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter(this, writer);
|
|
42521
|
+
return writer.getResultBuffer();
|
|
42522
|
+
};
|
|
42523
|
+
/**
|
|
42524
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
42525
|
+
* format), writing to the given BinaryWriter.
|
|
42526
|
+
* @param {!proto.clarifai.api.TaskReviewMetrics} message
|
|
42527
|
+
* @param {!jspb.BinaryWriter} writer
|
|
42528
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42529
|
+
*/
|
|
42530
|
+
proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function (message, writer) {
|
|
42531
|
+
var f = undefined;
|
|
42532
|
+
f = message.getInputsCountEstimated();
|
|
42533
|
+
if (f !== 0) {
|
|
42534
|
+
writer.writeUint64(1, f);
|
|
42535
|
+
}
|
|
42536
|
+
f = message.getInputsPercentEstimated();
|
|
42537
|
+
if (f !== 0) {
|
|
42538
|
+
writer.writeUint32(2, f);
|
|
42539
|
+
}
|
|
42540
|
+
};
|
|
42541
|
+
/**
|
|
42542
|
+
* optional uint64 inputs_count_estimated = 1;
|
|
42543
|
+
* @return {number}
|
|
42544
|
+
*/
|
|
42545
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimated = function () {
|
|
42546
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
42547
|
+
};
|
|
42548
|
+
/**
|
|
42549
|
+
* @param {number} value
|
|
42550
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
42551
|
+
*/
|
|
42552
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = function (value) {
|
|
42553
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
42554
|
+
};
|
|
42555
|
+
/**
|
|
42556
|
+
* optional uint32 inputs_percent_estimated = 2;
|
|
42557
|
+
* @return {number}
|
|
42558
|
+
*/
|
|
42559
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = function () {
|
|
42560
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
42561
|
+
};
|
|
42562
|
+
/**
|
|
42563
|
+
* @param {number} value
|
|
42564
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
42565
|
+
*/
|
|
42566
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function (value) {
|
|
42567
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
42568
|
+
};
|
|
42214
42569
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42215
42570
|
/**
|
|
42216
42571
|
* Creates an object representation of this proto.
|
|
@@ -52740,7 +53095,7 @@ proto.clarifai.api.Runner.prototype.hasComputeInfo = function () {
|
|
|
52740
53095
|
* @private {!Array<number>}
|
|
52741
53096
|
* @const
|
|
52742
53097
|
*/
|
|
52743
|
-
proto.clarifai.api.Nodepool.repeatedFields_ = [
|
|
53098
|
+
proto.clarifai.api.Nodepool.repeatedFields_ = [8];
|
|
52744
53099
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
52745
53100
|
/**
|
|
52746
53101
|
* Creates an object representation of this proto.
|
|
@@ -52769,12 +53124,17 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
52769
53124
|
proto.clarifai.api.Nodepool.toObject = function (includeInstance, msg) {
|
|
52770
53125
|
var f, obj = {
|
|
52771
53126
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
52772
|
-
|
|
52773
|
-
|
|
52774
|
-
|
|
52775
|
-
|
|
53127
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
53128
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
53129
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
53130
|
+
userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
53131
|
+
computeCluster: (f = msg.getComputeCluster()) && proto.clarifai.api.ComputeCluster.toObject(includeInstance, f),
|
|
53132
|
+
nodeCapacityType: (f = msg.getNodeCapacityType()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
|
|
53133
|
+
instanceTypesList: jspb.Message.toObjectList(msg.getInstanceTypesList(), proto.clarifai.api.InstanceType.toObject, includeInstance),
|
|
52776
53134
|
minInstances: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
52777
|
-
maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
|
53135
|
+
maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
53136
|
+
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
53137
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
52778
53138
|
};
|
|
52779
53139
|
if (includeInstance) {
|
|
52780
53140
|
obj.$jspbMessageInstance = msg;
|
|
@@ -52812,21 +53172,35 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function (msg, reader)
|
|
|
52812
53172
|
break;
|
|
52813
53173
|
case 2:
|
|
52814
53174
|
var value = /** @type {string} */ (reader.readString());
|
|
52815
|
-
msg.
|
|
53175
|
+
msg.setDescription(value);
|
|
52816
53176
|
break;
|
|
52817
53177
|
case 3:
|
|
52818
|
-
var value = new
|
|
52819
|
-
reader.readMessage(value,
|
|
52820
|
-
msg.
|
|
53178
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
53179
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
53180
|
+
msg.setCreatedAt(value);
|
|
52821
53181
|
break;
|
|
52822
53182
|
case 4:
|
|
52823
|
-
var
|
|
52824
|
-
|
|
52825
|
-
|
|
52826
|
-
}
|
|
53183
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
53184
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
53185
|
+
msg.setModifiedAt(value);
|
|
52827
53186
|
break;
|
|
52828
|
-
case
|
|
53187
|
+
case 5:
|
|
52829
53188
|
var value = /** @type {string} */ (reader.readString());
|
|
53189
|
+
msg.setUserId(value);
|
|
53190
|
+
break;
|
|
53191
|
+
case 6:
|
|
53192
|
+
var value = new proto.clarifai.api.ComputeCluster;
|
|
53193
|
+
reader.readMessage(value, proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader);
|
|
53194
|
+
msg.setComputeCluster(value);
|
|
53195
|
+
break;
|
|
53196
|
+
case 7:
|
|
53197
|
+
var value = new proto.clarifai.api.NodeCapacityType;
|
|
53198
|
+
reader.readMessage(value, proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader);
|
|
53199
|
+
msg.setNodeCapacityType(value);
|
|
53200
|
+
break;
|
|
53201
|
+
case 8:
|
|
53202
|
+
var value = new proto.clarifai.api.InstanceType;
|
|
53203
|
+
reader.readMessage(value, proto.clarifai.api.InstanceType.deserializeBinaryFromReader);
|
|
52830
53204
|
msg.addInstanceTypes(value);
|
|
52831
53205
|
break;
|
|
52832
53206
|
case 9:
|
|
@@ -52837,6 +53211,16 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function (msg, reader)
|
|
|
52837
53211
|
var value = /** @type {number} */ (reader.readUint32());
|
|
52838
53212
|
msg.setMaxInstances(value);
|
|
52839
53213
|
break;
|
|
53214
|
+
case 11:
|
|
53215
|
+
var value = new proto.clarifai.api.Visibility;
|
|
53216
|
+
reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
|
|
53217
|
+
msg.setVisibility(value);
|
|
53218
|
+
break;
|
|
53219
|
+
case 12:
|
|
53220
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
53221
|
+
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
53222
|
+
msg.setMetadata(value);
|
|
53223
|
+
break;
|
|
52840
53224
|
default:
|
|
52841
53225
|
reader.skipField();
|
|
52842
53226
|
break;
|
|
@@ -52866,21 +53250,33 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function (message, writer)
|
|
|
52866
53250
|
if (f.length > 0) {
|
|
52867
53251
|
writer.writeString(1, f);
|
|
52868
53252
|
}
|
|
52869
|
-
f = message.
|
|
53253
|
+
f = message.getDescription();
|
|
52870
53254
|
if (f.length > 0) {
|
|
52871
53255
|
writer.writeString(2, f);
|
|
52872
53256
|
}
|
|
52873
|
-
f = message.
|
|
53257
|
+
f = message.getCreatedAt();
|
|
53258
|
+
if (f != null) {
|
|
53259
|
+
writer.writeMessage(3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
53260
|
+
}
|
|
53261
|
+
f = message.getModifiedAt();
|
|
52874
53262
|
if (f != null) {
|
|
52875
|
-
writer.writeMessage(
|
|
53263
|
+
writer.writeMessage(4, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
52876
53264
|
}
|
|
52877
|
-
f = message.
|
|
53265
|
+
f = message.getUserId();
|
|
52878
53266
|
if (f.length > 0) {
|
|
52879
|
-
writer.
|
|
53267
|
+
writer.writeString(5, f);
|
|
53268
|
+
}
|
|
53269
|
+
f = message.getComputeCluster();
|
|
53270
|
+
if (f != null) {
|
|
53271
|
+
writer.writeMessage(6, f, proto.clarifai.api.ComputeCluster.serializeBinaryToWriter);
|
|
53272
|
+
}
|
|
53273
|
+
f = message.getNodeCapacityType();
|
|
53274
|
+
if (f != null) {
|
|
53275
|
+
writer.writeMessage(7, f, proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter);
|
|
52880
53276
|
}
|
|
52881
53277
|
f = message.getInstanceTypesList();
|
|
52882
53278
|
if (f.length > 0) {
|
|
52883
|
-
writer.
|
|
53279
|
+
writer.writeRepeatedMessage(8, f, proto.clarifai.api.InstanceType.serializeBinaryToWriter);
|
|
52884
53280
|
}
|
|
52885
53281
|
f = message.getMinInstances();
|
|
52886
53282
|
if (f !== 0) {
|
|
@@ -52890,14 +53286,14 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function (message, writer)
|
|
|
52890
53286
|
if (f !== 0) {
|
|
52891
53287
|
writer.writeUint32(10, f);
|
|
52892
53288
|
}
|
|
52893
|
-
|
|
52894
|
-
|
|
52895
|
-
|
|
52896
|
-
|
|
52897
|
-
|
|
52898
|
-
|
|
52899
|
-
|
|
52900
|
-
|
|
53289
|
+
f = message.getVisibility();
|
|
53290
|
+
if (f != null) {
|
|
53291
|
+
writer.writeMessage(11, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
|
|
53292
|
+
}
|
|
53293
|
+
f = message.getMetadata();
|
|
53294
|
+
if (f != null) {
|
|
53295
|
+
writer.writeMessage(12, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
53296
|
+
}
|
|
52901
53297
|
};
|
|
52902
53298
|
/**
|
|
52903
53299
|
* optional string id = 1;
|
|
@@ -52914,97 +53310,166 @@ proto.clarifai.api.Nodepool.prototype.setId = function (value) {
|
|
|
52914
53310
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
52915
53311
|
};
|
|
52916
53312
|
/**
|
|
52917
|
-
* optional string
|
|
53313
|
+
* optional string description = 2;
|
|
52918
53314
|
* @return {string}
|
|
52919
53315
|
*/
|
|
52920
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
53316
|
+
proto.clarifai.api.Nodepool.prototype.getDescription = function () {
|
|
52921
53317
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
52922
53318
|
};
|
|
52923
53319
|
/**
|
|
52924
53320
|
* @param {string} value
|
|
52925
53321
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52926
53322
|
*/
|
|
52927
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
53323
|
+
proto.clarifai.api.Nodepool.prototype.setDescription = function (value) {
|
|
52928
53324
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
52929
53325
|
};
|
|
52930
53326
|
/**
|
|
52931
|
-
* optional
|
|
52932
|
-
* @return {?proto.
|
|
53327
|
+
* optional google.protobuf.Timestamp created_at = 3;
|
|
53328
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
52933
53329
|
*/
|
|
52934
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52935
|
-
return /** @type{?proto.
|
|
53330
|
+
proto.clarifai.api.Nodepool.prototype.getCreatedAt = function () {
|
|
53331
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
52936
53332
|
};
|
|
52937
53333
|
/**
|
|
52938
|
-
* @param {?proto.
|
|
53334
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
52939
53335
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52940
53336
|
*/
|
|
52941
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
53337
|
+
proto.clarifai.api.Nodepool.prototype.setCreatedAt = function (value) {
|
|
52942
53338
|
return jspb.Message.setWrapperField(this, 3, value);
|
|
52943
53339
|
};
|
|
52944
53340
|
/**
|
|
52945
53341
|
* Clears the message field making it undefined.
|
|
52946
53342
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52947
53343
|
*/
|
|
52948
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52949
|
-
return this.
|
|
53344
|
+
proto.clarifai.api.Nodepool.prototype.clearCreatedAt = function () {
|
|
53345
|
+
return this.setCreatedAt(undefined);
|
|
52950
53346
|
};
|
|
52951
53347
|
/**
|
|
52952
53348
|
* Returns whether this field is set.
|
|
52953
53349
|
* @return {boolean}
|
|
52954
53350
|
*/
|
|
52955
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
53351
|
+
proto.clarifai.api.Nodepool.prototype.hasCreatedAt = function () {
|
|
52956
53352
|
return jspb.Message.getField(this, 3) != null;
|
|
52957
53353
|
};
|
|
52958
53354
|
/**
|
|
52959
|
-
*
|
|
52960
|
-
* @return {
|
|
53355
|
+
* optional google.protobuf.Timestamp modified_at = 4;
|
|
53356
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
52961
53357
|
*/
|
|
52962
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52963
|
-
return /** @type
|
|
53358
|
+
proto.clarifai.api.Nodepool.prototype.getModifiedAt = function () {
|
|
53359
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
52964
53360
|
};
|
|
52965
53361
|
/**
|
|
52966
|
-
* @param {
|
|
53362
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
53363
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53364
|
+
*/
|
|
53365
|
+
proto.clarifai.api.Nodepool.prototype.setModifiedAt = function (value) {
|
|
53366
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
53367
|
+
};
|
|
53368
|
+
/**
|
|
53369
|
+
* Clears the message field making it undefined.
|
|
52967
53370
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52968
53371
|
*/
|
|
52969
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52970
|
-
return
|
|
53372
|
+
proto.clarifai.api.Nodepool.prototype.clearModifiedAt = function () {
|
|
53373
|
+
return this.setModifiedAt(undefined);
|
|
52971
53374
|
};
|
|
52972
53375
|
/**
|
|
52973
|
-
*
|
|
52974
|
-
* @
|
|
53376
|
+
* Returns whether this field is set.
|
|
53377
|
+
* @return {boolean}
|
|
53378
|
+
*/
|
|
53379
|
+
proto.clarifai.api.Nodepool.prototype.hasModifiedAt = function () {
|
|
53380
|
+
return jspb.Message.getField(this, 4) != null;
|
|
53381
|
+
};
|
|
53382
|
+
/**
|
|
53383
|
+
* optional string user_id = 5;
|
|
53384
|
+
* @return {string}
|
|
53385
|
+
*/
|
|
53386
|
+
proto.clarifai.api.Nodepool.prototype.getUserId = function () {
|
|
53387
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
53388
|
+
};
|
|
53389
|
+
/**
|
|
53390
|
+
* @param {string} value
|
|
52975
53391
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52976
53392
|
*/
|
|
52977
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52978
|
-
return jspb.Message.
|
|
53393
|
+
proto.clarifai.api.Nodepool.prototype.setUserId = function (value) {
|
|
53394
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
52979
53395
|
};
|
|
52980
53396
|
/**
|
|
52981
|
-
*
|
|
53397
|
+
* optional ComputeCluster compute_cluster = 6;
|
|
53398
|
+
* @return {?proto.clarifai.api.ComputeCluster}
|
|
53399
|
+
*/
|
|
53400
|
+
proto.clarifai.api.Nodepool.prototype.getComputeCluster = function () {
|
|
53401
|
+
return /** @type{?proto.clarifai.api.ComputeCluster} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeCluster, 6));
|
|
53402
|
+
};
|
|
53403
|
+
/**
|
|
53404
|
+
* @param {?proto.clarifai.api.ComputeCluster|undefined} value
|
|
53405
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53406
|
+
*/
|
|
53407
|
+
proto.clarifai.api.Nodepool.prototype.setComputeCluster = function (value) {
|
|
53408
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
53409
|
+
};
|
|
53410
|
+
/**
|
|
53411
|
+
* Clears the message field making it undefined.
|
|
52982
53412
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52983
53413
|
*/
|
|
52984
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52985
|
-
return this.
|
|
53414
|
+
proto.clarifai.api.Nodepool.prototype.clearComputeCluster = function () {
|
|
53415
|
+
return this.setComputeCluster(undefined);
|
|
52986
53416
|
};
|
|
52987
53417
|
/**
|
|
52988
|
-
*
|
|
52989
|
-
* @return {
|
|
53418
|
+
* Returns whether this field is set.
|
|
53419
|
+
* @return {boolean}
|
|
52990
53420
|
*/
|
|
52991
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52992
|
-
return
|
|
53421
|
+
proto.clarifai.api.Nodepool.prototype.hasComputeCluster = function () {
|
|
53422
|
+
return jspb.Message.getField(this, 6) != null;
|
|
52993
53423
|
};
|
|
52994
53424
|
/**
|
|
52995
|
-
*
|
|
53425
|
+
* optional NodeCapacityType node_capacity_type = 7;
|
|
53426
|
+
* @return {?proto.clarifai.api.NodeCapacityType}
|
|
53427
|
+
*/
|
|
53428
|
+
proto.clarifai.api.Nodepool.prototype.getNodeCapacityType = function () {
|
|
53429
|
+
return /** @type{?proto.clarifai.api.NodeCapacityType} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.NodeCapacityType, 7));
|
|
53430
|
+
};
|
|
53431
|
+
/**
|
|
53432
|
+
* @param {?proto.clarifai.api.NodeCapacityType|undefined} value
|
|
53433
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53434
|
+
*/
|
|
53435
|
+
proto.clarifai.api.Nodepool.prototype.setNodeCapacityType = function (value) {
|
|
53436
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
53437
|
+
};
|
|
53438
|
+
/**
|
|
53439
|
+
* Clears the message field making it undefined.
|
|
52996
53440
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52997
53441
|
*/
|
|
53442
|
+
proto.clarifai.api.Nodepool.prototype.clearNodeCapacityType = function () {
|
|
53443
|
+
return this.setNodeCapacityType(undefined);
|
|
53444
|
+
};
|
|
53445
|
+
/**
|
|
53446
|
+
* Returns whether this field is set.
|
|
53447
|
+
* @return {boolean}
|
|
53448
|
+
*/
|
|
53449
|
+
proto.clarifai.api.Nodepool.prototype.hasNodeCapacityType = function () {
|
|
53450
|
+
return jspb.Message.getField(this, 7) != null;
|
|
53451
|
+
};
|
|
53452
|
+
/**
|
|
53453
|
+
* repeated InstanceType instance_types = 8;
|
|
53454
|
+
* @return {!Array<!proto.clarifai.api.InstanceType>}
|
|
53455
|
+
*/
|
|
53456
|
+
proto.clarifai.api.Nodepool.prototype.getInstanceTypesList = function () {
|
|
53457
|
+
return /** @type{!Array<!proto.clarifai.api.InstanceType>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.InstanceType, 8));
|
|
53458
|
+
};
|
|
53459
|
+
/**
|
|
53460
|
+
* @param {!Array<!proto.clarifai.api.InstanceType>} value
|
|
53461
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53462
|
+
*/
|
|
52998
53463
|
proto.clarifai.api.Nodepool.prototype.setInstanceTypesList = function (value) {
|
|
52999
|
-
return jspb.Message.
|
|
53464
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
53000
53465
|
};
|
|
53001
53466
|
/**
|
|
53002
|
-
* @param {
|
|
53467
|
+
* @param {!proto.clarifai.api.InstanceType=} opt_value
|
|
53003
53468
|
* @param {number=} opt_index
|
|
53004
|
-
* @return {!proto.clarifai.api.
|
|
53469
|
+
* @return {!proto.clarifai.api.InstanceType}
|
|
53005
53470
|
*/
|
|
53006
|
-
proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function (
|
|
53007
|
-
return jspb.Message.
|
|
53471
|
+
proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function (opt_value, opt_index) {
|
|
53472
|
+
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.InstanceType, opt_index);
|
|
53008
53473
|
};
|
|
53009
53474
|
/**
|
|
53010
53475
|
* Clears the list making it empty but non-null.
|
|
@@ -53041,6 +53506,368 @@ proto.clarifai.api.Nodepool.prototype.getMaxInstances = function () {
|
|
|
53041
53506
|
proto.clarifai.api.Nodepool.prototype.setMaxInstances = function (value) {
|
|
53042
53507
|
return jspb.Message.setProto3IntField(this, 10, value);
|
|
53043
53508
|
};
|
|
53509
|
+
/**
|
|
53510
|
+
* optional Visibility visibility = 11;
|
|
53511
|
+
* @return {?proto.clarifai.api.Visibility}
|
|
53512
|
+
*/
|
|
53513
|
+
proto.clarifai.api.Nodepool.prototype.getVisibility = function () {
|
|
53514
|
+
return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 11));
|
|
53515
|
+
};
|
|
53516
|
+
/**
|
|
53517
|
+
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
53518
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53519
|
+
*/
|
|
53520
|
+
proto.clarifai.api.Nodepool.prototype.setVisibility = function (value) {
|
|
53521
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
53522
|
+
};
|
|
53523
|
+
/**
|
|
53524
|
+
* Clears the message field making it undefined.
|
|
53525
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53526
|
+
*/
|
|
53527
|
+
proto.clarifai.api.Nodepool.prototype.clearVisibility = function () {
|
|
53528
|
+
return this.setVisibility(undefined);
|
|
53529
|
+
};
|
|
53530
|
+
/**
|
|
53531
|
+
* Returns whether this field is set.
|
|
53532
|
+
* @return {boolean}
|
|
53533
|
+
*/
|
|
53534
|
+
proto.clarifai.api.Nodepool.prototype.hasVisibility = function () {
|
|
53535
|
+
return jspb.Message.getField(this, 11) != null;
|
|
53536
|
+
};
|
|
53537
|
+
/**
|
|
53538
|
+
* optional google.protobuf.Struct metadata = 12;
|
|
53539
|
+
* @return {?proto.google.protobuf.Struct}
|
|
53540
|
+
*/
|
|
53541
|
+
proto.clarifai.api.Nodepool.prototype.getMetadata = function () {
|
|
53542
|
+
return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 12));
|
|
53543
|
+
};
|
|
53544
|
+
/**
|
|
53545
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
53546
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53547
|
+
*/
|
|
53548
|
+
proto.clarifai.api.Nodepool.prototype.setMetadata = function (value) {
|
|
53549
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
53550
|
+
};
|
|
53551
|
+
/**
|
|
53552
|
+
* Clears the message field making it undefined.
|
|
53553
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53554
|
+
*/
|
|
53555
|
+
proto.clarifai.api.Nodepool.prototype.clearMetadata = function () {
|
|
53556
|
+
return this.setMetadata(undefined);
|
|
53557
|
+
};
|
|
53558
|
+
/**
|
|
53559
|
+
* Returns whether this field is set.
|
|
53560
|
+
* @return {boolean}
|
|
53561
|
+
*/
|
|
53562
|
+
proto.clarifai.api.Nodepool.prototype.hasMetadata = function () {
|
|
53563
|
+
return jspb.Message.getField(this, 12) != null;
|
|
53564
|
+
};
|
|
53565
|
+
/**
|
|
53566
|
+
* List of repeated fields within this message type.
|
|
53567
|
+
* @private {!Array<number>}
|
|
53568
|
+
* @const
|
|
53569
|
+
*/
|
|
53570
|
+
proto.clarifai.api.NodeCapacityType.repeatedFields_ = [1];
|
|
53571
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53572
|
+
/**
|
|
53573
|
+
* Creates an object representation of this proto.
|
|
53574
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53575
|
+
* Optional fields that are not set will be set to undefined.
|
|
53576
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53577
|
+
* For the list of reserved names please see:
|
|
53578
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
53579
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
53580
|
+
* JSPB instance for transitional soy proto support:
|
|
53581
|
+
* http://goto/soy-param-migration
|
|
53582
|
+
* @return {!Object}
|
|
53583
|
+
*/
|
|
53584
|
+
proto.clarifai.api.NodeCapacityType.prototype.toObject = function (opt_includeInstance) {
|
|
53585
|
+
return proto.clarifai.api.NodeCapacityType.toObject(opt_includeInstance, this);
|
|
53586
|
+
};
|
|
53587
|
+
/**
|
|
53588
|
+
* Static version of the {@see toObject} method.
|
|
53589
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53590
|
+
* the JSPB instance for transitional soy proto support:
|
|
53591
|
+
* http://goto/soy-param-migration
|
|
53592
|
+
* @param {!proto.clarifai.api.NodeCapacityType} msg The msg instance to transform.
|
|
53593
|
+
* @return {!Object}
|
|
53594
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53595
|
+
*/
|
|
53596
|
+
proto.clarifai.api.NodeCapacityType.toObject = function (includeInstance, msg) {
|
|
53597
|
+
var f, obj = {
|
|
53598
|
+
capacityTypesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
53599
|
+
};
|
|
53600
|
+
if (includeInstance) {
|
|
53601
|
+
obj.$jspbMessageInstance = msg;
|
|
53602
|
+
}
|
|
53603
|
+
return obj;
|
|
53604
|
+
};
|
|
53605
|
+
}
|
|
53606
|
+
/**
|
|
53607
|
+
* Deserializes binary data (in protobuf wire format).
|
|
53608
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53609
|
+
* @return {!proto.clarifai.api.NodeCapacityType}
|
|
53610
|
+
*/
|
|
53611
|
+
proto.clarifai.api.NodeCapacityType.deserializeBinary = function (bytes) {
|
|
53612
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
53613
|
+
var msg = new proto.clarifai.api.NodeCapacityType;
|
|
53614
|
+
return proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader(msg, reader);
|
|
53615
|
+
};
|
|
53616
|
+
/**
|
|
53617
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53618
|
+
* given reader into the given message object.
|
|
53619
|
+
* @param {!proto.clarifai.api.NodeCapacityType} msg The message object to deserialize into.
|
|
53620
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53621
|
+
* @return {!proto.clarifai.api.NodeCapacityType}
|
|
53622
|
+
*/
|
|
53623
|
+
proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader = function (msg, reader) {
|
|
53624
|
+
while (reader.nextField()) {
|
|
53625
|
+
if (reader.isEndGroup()) {
|
|
53626
|
+
break;
|
|
53627
|
+
}
|
|
53628
|
+
var field = reader.getFieldNumber();
|
|
53629
|
+
switch (field) {
|
|
53630
|
+
case 1:
|
|
53631
|
+
var values = /** @type {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
53632
|
+
for (var i = 0; i < values.length; i++) {
|
|
53633
|
+
msg.addCapacityTypes(values[i]);
|
|
53634
|
+
}
|
|
53635
|
+
break;
|
|
53636
|
+
default:
|
|
53637
|
+
reader.skipField();
|
|
53638
|
+
break;
|
|
53639
|
+
}
|
|
53640
|
+
}
|
|
53641
|
+
return msg;
|
|
53642
|
+
};
|
|
53643
|
+
/**
|
|
53644
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53645
|
+
* @return {!Uint8Array}
|
|
53646
|
+
*/
|
|
53647
|
+
proto.clarifai.api.NodeCapacityType.prototype.serializeBinary = function () {
|
|
53648
|
+
var writer = new jspb.BinaryWriter();
|
|
53649
|
+
proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter(this, writer);
|
|
53650
|
+
return writer.getResultBuffer();
|
|
53651
|
+
};
|
|
53652
|
+
/**
|
|
53653
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53654
|
+
* format), writing to the given BinaryWriter.
|
|
53655
|
+
* @param {!proto.clarifai.api.NodeCapacityType} message
|
|
53656
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53657
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53658
|
+
*/
|
|
53659
|
+
proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter = function (message, writer) {
|
|
53660
|
+
var f = undefined;
|
|
53661
|
+
f = message.getCapacityTypesList();
|
|
53662
|
+
if (f.length > 0) {
|
|
53663
|
+
writer.writePackedEnum(1, f);
|
|
53664
|
+
}
|
|
53665
|
+
};
|
|
53666
|
+
/**
|
|
53667
|
+
* @enum {number}
|
|
53668
|
+
*/
|
|
53669
|
+
proto.clarifai.api.NodeCapacityType.CapacityType = {
|
|
53670
|
+
UKNOWN_CAPACITY_TYPE: 0,
|
|
53671
|
+
ON_DEMAND_TYPE: 1,
|
|
53672
|
+
SPOT_TYPE: 2
|
|
53673
|
+
};
|
|
53674
|
+
/**
|
|
53675
|
+
* repeated CapacityType capacity_types = 1;
|
|
53676
|
+
* @return {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>}
|
|
53677
|
+
*/
|
|
53678
|
+
proto.clarifai.api.NodeCapacityType.prototype.getCapacityTypesList = function () {
|
|
53679
|
+
return /** @type {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
53680
|
+
};
|
|
53681
|
+
/**
|
|
53682
|
+
* @param {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} value
|
|
53683
|
+
* @return {!proto.clarifai.api.NodeCapacityType} returns this
|
|
53684
|
+
*/
|
|
53685
|
+
proto.clarifai.api.NodeCapacityType.prototype.setCapacityTypesList = function (value) {
|
|
53686
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
53687
|
+
};
|
|
53688
|
+
/**
|
|
53689
|
+
* @param {!proto.clarifai.api.NodeCapacityType.CapacityType} value
|
|
53690
|
+
* @param {number=} opt_index
|
|
53691
|
+
* @return {!proto.clarifai.api.NodeCapacityType} returns this
|
|
53692
|
+
*/
|
|
53693
|
+
proto.clarifai.api.NodeCapacityType.prototype.addCapacityTypes = function (value, opt_index) {
|
|
53694
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
53695
|
+
};
|
|
53696
|
+
/**
|
|
53697
|
+
* Clears the list making it empty but non-null.
|
|
53698
|
+
* @return {!proto.clarifai.api.NodeCapacityType} returns this
|
|
53699
|
+
*/
|
|
53700
|
+
proto.clarifai.api.NodeCapacityType.prototype.clearCapacityTypesList = function () {
|
|
53701
|
+
return this.setCapacityTypesList([]);
|
|
53702
|
+
};
|
|
53703
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53704
|
+
/**
|
|
53705
|
+
* Creates an object representation of this proto.
|
|
53706
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53707
|
+
* Optional fields that are not set will be set to undefined.
|
|
53708
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53709
|
+
* For the list of reserved names please see:
|
|
53710
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
53711
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
53712
|
+
* JSPB instance for transitional soy proto support:
|
|
53713
|
+
* http://goto/soy-param-migration
|
|
53714
|
+
* @return {!Object}
|
|
53715
|
+
*/
|
|
53716
|
+
proto.clarifai.api.InstanceType.prototype.toObject = function (opt_includeInstance) {
|
|
53717
|
+
return proto.clarifai.api.InstanceType.toObject(opt_includeInstance, this);
|
|
53718
|
+
};
|
|
53719
|
+
/**
|
|
53720
|
+
* Static version of the {@see toObject} method.
|
|
53721
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53722
|
+
* the JSPB instance for transitional soy proto support:
|
|
53723
|
+
* http://goto/soy-param-migration
|
|
53724
|
+
* @param {!proto.clarifai.api.InstanceType} msg The msg instance to transform.
|
|
53725
|
+
* @return {!Object}
|
|
53726
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53727
|
+
*/
|
|
53728
|
+
proto.clarifai.api.InstanceType.toObject = function (includeInstance, msg) {
|
|
53729
|
+
var f, obj = {
|
|
53730
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
53731
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
53732
|
+
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
|
|
53733
|
+
};
|
|
53734
|
+
if (includeInstance) {
|
|
53735
|
+
obj.$jspbMessageInstance = msg;
|
|
53736
|
+
}
|
|
53737
|
+
return obj;
|
|
53738
|
+
};
|
|
53739
|
+
}
|
|
53740
|
+
/**
|
|
53741
|
+
* Deserializes binary data (in protobuf wire format).
|
|
53742
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53743
|
+
* @return {!proto.clarifai.api.InstanceType}
|
|
53744
|
+
*/
|
|
53745
|
+
proto.clarifai.api.InstanceType.deserializeBinary = function (bytes) {
|
|
53746
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
53747
|
+
var msg = new proto.clarifai.api.InstanceType;
|
|
53748
|
+
return proto.clarifai.api.InstanceType.deserializeBinaryFromReader(msg, reader);
|
|
53749
|
+
};
|
|
53750
|
+
/**
|
|
53751
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53752
|
+
* given reader into the given message object.
|
|
53753
|
+
* @param {!proto.clarifai.api.InstanceType} msg The message object to deserialize into.
|
|
53754
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53755
|
+
* @return {!proto.clarifai.api.InstanceType}
|
|
53756
|
+
*/
|
|
53757
|
+
proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function (msg, reader) {
|
|
53758
|
+
while (reader.nextField()) {
|
|
53759
|
+
if (reader.isEndGroup()) {
|
|
53760
|
+
break;
|
|
53761
|
+
}
|
|
53762
|
+
var field = reader.getFieldNumber();
|
|
53763
|
+
switch (field) {
|
|
53764
|
+
case 1:
|
|
53765
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53766
|
+
msg.setId(value);
|
|
53767
|
+
break;
|
|
53768
|
+
case 2:
|
|
53769
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53770
|
+
msg.setDescription(value);
|
|
53771
|
+
break;
|
|
53772
|
+
case 3:
|
|
53773
|
+
var value = new proto.clarifai.api.ComputeInfo;
|
|
53774
|
+
reader.readMessage(value, proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
53775
|
+
msg.setComputeInfo(value);
|
|
53776
|
+
break;
|
|
53777
|
+
default:
|
|
53778
|
+
reader.skipField();
|
|
53779
|
+
break;
|
|
53780
|
+
}
|
|
53781
|
+
}
|
|
53782
|
+
return msg;
|
|
53783
|
+
};
|
|
53784
|
+
/**
|
|
53785
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53786
|
+
* @return {!Uint8Array}
|
|
53787
|
+
*/
|
|
53788
|
+
proto.clarifai.api.InstanceType.prototype.serializeBinary = function () {
|
|
53789
|
+
var writer = new jspb.BinaryWriter();
|
|
53790
|
+
proto.clarifai.api.InstanceType.serializeBinaryToWriter(this, writer);
|
|
53791
|
+
return writer.getResultBuffer();
|
|
53792
|
+
};
|
|
53793
|
+
/**
|
|
53794
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53795
|
+
* format), writing to the given BinaryWriter.
|
|
53796
|
+
* @param {!proto.clarifai.api.InstanceType} message
|
|
53797
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53798
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53799
|
+
*/
|
|
53800
|
+
proto.clarifai.api.InstanceType.serializeBinaryToWriter = function (message, writer) {
|
|
53801
|
+
var f = undefined;
|
|
53802
|
+
f = message.getId();
|
|
53803
|
+
if (f.length > 0) {
|
|
53804
|
+
writer.writeString(1, f);
|
|
53805
|
+
}
|
|
53806
|
+
f = message.getDescription();
|
|
53807
|
+
if (f.length > 0) {
|
|
53808
|
+
writer.writeString(2, f);
|
|
53809
|
+
}
|
|
53810
|
+
f = message.getComputeInfo();
|
|
53811
|
+
if (f != null) {
|
|
53812
|
+
writer.writeMessage(3, f, proto.clarifai.api.ComputeInfo.serializeBinaryToWriter);
|
|
53813
|
+
}
|
|
53814
|
+
};
|
|
53815
|
+
/**
|
|
53816
|
+
* optional string id = 1;
|
|
53817
|
+
* @return {string}
|
|
53818
|
+
*/
|
|
53819
|
+
proto.clarifai.api.InstanceType.prototype.getId = function () {
|
|
53820
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
53821
|
+
};
|
|
53822
|
+
/**
|
|
53823
|
+
* @param {string} value
|
|
53824
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
53825
|
+
*/
|
|
53826
|
+
proto.clarifai.api.InstanceType.prototype.setId = function (value) {
|
|
53827
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
53828
|
+
};
|
|
53829
|
+
/**
|
|
53830
|
+
* optional string description = 2;
|
|
53831
|
+
* @return {string}
|
|
53832
|
+
*/
|
|
53833
|
+
proto.clarifai.api.InstanceType.prototype.getDescription = function () {
|
|
53834
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
53835
|
+
};
|
|
53836
|
+
/**
|
|
53837
|
+
* @param {string} value
|
|
53838
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
53839
|
+
*/
|
|
53840
|
+
proto.clarifai.api.InstanceType.prototype.setDescription = function (value) {
|
|
53841
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
53842
|
+
};
|
|
53843
|
+
/**
|
|
53844
|
+
* optional ComputeInfo compute_info = 3;
|
|
53845
|
+
* @return {?proto.clarifai.api.ComputeInfo}
|
|
53846
|
+
*/
|
|
53847
|
+
proto.clarifai.api.InstanceType.prototype.getComputeInfo = function () {
|
|
53848
|
+
return /** @type{?proto.clarifai.api.ComputeInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 3));
|
|
53849
|
+
};
|
|
53850
|
+
/**
|
|
53851
|
+
* @param {?proto.clarifai.api.ComputeInfo|undefined} value
|
|
53852
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
53853
|
+
*/
|
|
53854
|
+
proto.clarifai.api.InstanceType.prototype.setComputeInfo = function (value) {
|
|
53855
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
53856
|
+
};
|
|
53857
|
+
/**
|
|
53858
|
+
* Clears the message field making it undefined.
|
|
53859
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
53860
|
+
*/
|
|
53861
|
+
proto.clarifai.api.InstanceType.prototype.clearComputeInfo = function () {
|
|
53862
|
+
return this.setComputeInfo(undefined);
|
|
53863
|
+
};
|
|
53864
|
+
/**
|
|
53865
|
+
* Returns whether this field is set.
|
|
53866
|
+
* @return {boolean}
|
|
53867
|
+
*/
|
|
53868
|
+
proto.clarifai.api.InstanceType.prototype.hasComputeInfo = function () {
|
|
53869
|
+
return jspb.Message.getField(this, 3) != null;
|
|
53870
|
+
};
|
|
53044
53871
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53045
53872
|
/**
|
|
53046
53873
|
* Creates an object representation of this proto.
|
|
@@ -53054,22 +53881,153 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
53054
53881
|
* http://goto/soy-param-migration
|
|
53055
53882
|
* @return {!Object}
|
|
53056
53883
|
*/
|
|
53057
|
-
proto.clarifai.api.
|
|
53058
|
-
return proto.clarifai.api.
|
|
53884
|
+
proto.clarifai.api.CloudProvider.prototype.toObject = function (opt_includeInstance) {
|
|
53885
|
+
return proto.clarifai.api.CloudProvider.toObject(opt_includeInstance, this);
|
|
53059
53886
|
};
|
|
53060
53887
|
/**
|
|
53061
53888
|
* Static version of the {@see toObject} method.
|
|
53062
53889
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53063
53890
|
* the JSPB instance for transitional soy proto support:
|
|
53064
53891
|
* http://goto/soy-param-migration
|
|
53065
|
-
* @param {!proto.clarifai.api.
|
|
53892
|
+
* @param {!proto.clarifai.api.CloudProvider} msg The msg instance to transform.
|
|
53066
53893
|
* @return {!Object}
|
|
53067
53894
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53068
53895
|
*/
|
|
53069
|
-
proto.clarifai.api.
|
|
53896
|
+
proto.clarifai.api.CloudProvider.toObject = function (includeInstance, msg) {
|
|
53070
53897
|
var f, obj = {
|
|
53071
53898
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
53072
|
-
|
|
53899
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
53900
|
+
};
|
|
53901
|
+
if (includeInstance) {
|
|
53902
|
+
obj.$jspbMessageInstance = msg;
|
|
53903
|
+
}
|
|
53904
|
+
return obj;
|
|
53905
|
+
};
|
|
53906
|
+
}
|
|
53907
|
+
/**
|
|
53908
|
+
* Deserializes binary data (in protobuf wire format).
|
|
53909
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53910
|
+
* @return {!proto.clarifai.api.CloudProvider}
|
|
53911
|
+
*/
|
|
53912
|
+
proto.clarifai.api.CloudProvider.deserializeBinary = function (bytes) {
|
|
53913
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
53914
|
+
var msg = new proto.clarifai.api.CloudProvider;
|
|
53915
|
+
return proto.clarifai.api.CloudProvider.deserializeBinaryFromReader(msg, reader);
|
|
53916
|
+
};
|
|
53917
|
+
/**
|
|
53918
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53919
|
+
* given reader into the given message object.
|
|
53920
|
+
* @param {!proto.clarifai.api.CloudProvider} msg The message object to deserialize into.
|
|
53921
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53922
|
+
* @return {!proto.clarifai.api.CloudProvider}
|
|
53923
|
+
*/
|
|
53924
|
+
proto.clarifai.api.CloudProvider.deserializeBinaryFromReader = function (msg, reader) {
|
|
53925
|
+
while (reader.nextField()) {
|
|
53926
|
+
if (reader.isEndGroup()) {
|
|
53927
|
+
break;
|
|
53928
|
+
}
|
|
53929
|
+
var field = reader.getFieldNumber();
|
|
53930
|
+
switch (field) {
|
|
53931
|
+
case 1:
|
|
53932
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53933
|
+
msg.setId(value);
|
|
53934
|
+
break;
|
|
53935
|
+
case 2:
|
|
53936
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53937
|
+
msg.setName(value);
|
|
53938
|
+
break;
|
|
53939
|
+
default:
|
|
53940
|
+
reader.skipField();
|
|
53941
|
+
break;
|
|
53942
|
+
}
|
|
53943
|
+
}
|
|
53944
|
+
return msg;
|
|
53945
|
+
};
|
|
53946
|
+
/**
|
|
53947
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53948
|
+
* @return {!Uint8Array}
|
|
53949
|
+
*/
|
|
53950
|
+
proto.clarifai.api.CloudProvider.prototype.serializeBinary = function () {
|
|
53951
|
+
var writer = new jspb.BinaryWriter();
|
|
53952
|
+
proto.clarifai.api.CloudProvider.serializeBinaryToWriter(this, writer);
|
|
53953
|
+
return writer.getResultBuffer();
|
|
53954
|
+
};
|
|
53955
|
+
/**
|
|
53956
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53957
|
+
* format), writing to the given BinaryWriter.
|
|
53958
|
+
* @param {!proto.clarifai.api.CloudProvider} message
|
|
53959
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53960
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53961
|
+
*/
|
|
53962
|
+
proto.clarifai.api.CloudProvider.serializeBinaryToWriter = function (message, writer) {
|
|
53963
|
+
var f = undefined;
|
|
53964
|
+
f = message.getId();
|
|
53965
|
+
if (f.length > 0) {
|
|
53966
|
+
writer.writeString(1, f);
|
|
53967
|
+
}
|
|
53968
|
+
f = message.getName();
|
|
53969
|
+
if (f.length > 0) {
|
|
53970
|
+
writer.writeString(2, f);
|
|
53971
|
+
}
|
|
53972
|
+
};
|
|
53973
|
+
/**
|
|
53974
|
+
* optional string id = 1;
|
|
53975
|
+
* @return {string}
|
|
53976
|
+
*/
|
|
53977
|
+
proto.clarifai.api.CloudProvider.prototype.getId = function () {
|
|
53978
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
53979
|
+
};
|
|
53980
|
+
/**
|
|
53981
|
+
* @param {string} value
|
|
53982
|
+
* @return {!proto.clarifai.api.CloudProvider} returns this
|
|
53983
|
+
*/
|
|
53984
|
+
proto.clarifai.api.CloudProvider.prototype.setId = function (value) {
|
|
53985
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
53986
|
+
};
|
|
53987
|
+
/**
|
|
53988
|
+
* optional string name = 2;
|
|
53989
|
+
* @return {string}
|
|
53990
|
+
*/
|
|
53991
|
+
proto.clarifai.api.CloudProvider.prototype.getName = function () {
|
|
53992
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
53993
|
+
};
|
|
53994
|
+
/**
|
|
53995
|
+
* @param {string} value
|
|
53996
|
+
* @return {!proto.clarifai.api.CloudProvider} returns this
|
|
53997
|
+
*/
|
|
53998
|
+
proto.clarifai.api.CloudProvider.prototype.setName = function (value) {
|
|
53999
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
54000
|
+
};
|
|
54001
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54002
|
+
/**
|
|
54003
|
+
* Creates an object representation of this proto.
|
|
54004
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
54005
|
+
* Optional fields that are not set will be set to undefined.
|
|
54006
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
54007
|
+
* For the list of reserved names please see:
|
|
54008
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
54009
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
54010
|
+
* JSPB instance for transitional soy proto support:
|
|
54011
|
+
* http://goto/soy-param-migration
|
|
54012
|
+
* @return {!Object}
|
|
54013
|
+
*/
|
|
54014
|
+
proto.clarifai.api.ComputeCluster.prototype.toObject = function (opt_includeInstance) {
|
|
54015
|
+
return proto.clarifai.api.ComputeCluster.toObject(opt_includeInstance, this);
|
|
54016
|
+
};
|
|
54017
|
+
/**
|
|
54018
|
+
* Static version of the {@see toObject} method.
|
|
54019
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
54020
|
+
* the JSPB instance for transitional soy proto support:
|
|
54021
|
+
* http://goto/soy-param-migration
|
|
54022
|
+
* @param {!proto.clarifai.api.ComputeCluster} msg The msg instance to transform.
|
|
54023
|
+
* @return {!Object}
|
|
54024
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54025
|
+
*/
|
|
54026
|
+
proto.clarifai.api.ComputeCluster.toObject = function (includeInstance, msg) {
|
|
54027
|
+
var f, obj = {
|
|
54028
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
54029
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
54030
|
+
cloudProvider: (f = msg.getCloudProvider()) && proto.clarifai.api.CloudProvider.toObject(includeInstance, f),
|
|
53073
54031
|
region: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
53074
54032
|
};
|
|
53075
54033
|
if (includeInstance) {
|
|
@@ -53081,21 +54039,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
53081
54039
|
/**
|
|
53082
54040
|
* Deserializes binary data (in protobuf wire format).
|
|
53083
54041
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53084
|
-
* @return {!proto.clarifai.api.
|
|
54042
|
+
* @return {!proto.clarifai.api.ComputeCluster}
|
|
53085
54043
|
*/
|
|
53086
|
-
proto.clarifai.api.
|
|
54044
|
+
proto.clarifai.api.ComputeCluster.deserializeBinary = function (bytes) {
|
|
53087
54045
|
var reader = new jspb.BinaryReader(bytes);
|
|
53088
|
-
var msg = new proto.clarifai.api.
|
|
53089
|
-
return proto.clarifai.api.
|
|
54046
|
+
var msg = new proto.clarifai.api.ComputeCluster;
|
|
54047
|
+
return proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader(msg, reader);
|
|
53090
54048
|
};
|
|
53091
54049
|
/**
|
|
53092
54050
|
* Deserializes binary data (in protobuf wire format) from the
|
|
53093
54051
|
* given reader into the given message object.
|
|
53094
|
-
* @param {!proto.clarifai.api.
|
|
54052
|
+
* @param {!proto.clarifai.api.ComputeCluster} msg The message object to deserialize into.
|
|
53095
54053
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53096
|
-
* @return {!proto.clarifai.api.
|
|
54054
|
+
* @return {!proto.clarifai.api.ComputeCluster}
|
|
53097
54055
|
*/
|
|
53098
|
-
proto.clarifai.api.
|
|
54056
|
+
proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader = function (msg, reader) {
|
|
53099
54057
|
while (reader.nextField()) {
|
|
53100
54058
|
if (reader.isEndGroup()) {
|
|
53101
54059
|
break;
|
|
@@ -53106,9 +54064,14 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function (msg, read
|
|
|
53106
54064
|
var value = /** @type {string} */ (reader.readString());
|
|
53107
54065
|
msg.setId(value);
|
|
53108
54066
|
break;
|
|
54067
|
+
case 2:
|
|
54068
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54069
|
+
msg.setDescription(value);
|
|
54070
|
+
break;
|
|
53109
54071
|
case 3:
|
|
53110
|
-
var value =
|
|
53111
|
-
|
|
54072
|
+
var value = new proto.clarifai.api.CloudProvider;
|
|
54073
|
+
reader.readMessage(value, proto.clarifai.api.CloudProvider.deserializeBinaryFromReader);
|
|
54074
|
+
msg.setCloudProvider(value);
|
|
53112
54075
|
break;
|
|
53113
54076
|
case 4:
|
|
53114
54077
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -53125,84 +54088,105 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function (msg, read
|
|
|
53125
54088
|
* Serializes the message to binary data (in protobuf wire format).
|
|
53126
54089
|
* @return {!Uint8Array}
|
|
53127
54090
|
*/
|
|
53128
|
-
proto.clarifai.api.
|
|
54091
|
+
proto.clarifai.api.ComputeCluster.prototype.serializeBinary = function () {
|
|
53129
54092
|
var writer = new jspb.BinaryWriter();
|
|
53130
|
-
proto.clarifai.api.
|
|
54093
|
+
proto.clarifai.api.ComputeCluster.serializeBinaryToWriter(this, writer);
|
|
53131
54094
|
return writer.getResultBuffer();
|
|
53132
54095
|
};
|
|
53133
54096
|
/**
|
|
53134
54097
|
* Serializes the given message to binary data (in protobuf wire
|
|
53135
54098
|
* format), writing to the given BinaryWriter.
|
|
53136
|
-
* @param {!proto.clarifai.api.
|
|
54099
|
+
* @param {!proto.clarifai.api.ComputeCluster} message
|
|
53137
54100
|
* @param {!jspb.BinaryWriter} writer
|
|
53138
54101
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53139
54102
|
*/
|
|
53140
|
-
proto.clarifai.api.
|
|
54103
|
+
proto.clarifai.api.ComputeCluster.serializeBinaryToWriter = function (message, writer) {
|
|
53141
54104
|
var f = undefined;
|
|
53142
54105
|
f = message.getId();
|
|
53143
54106
|
if (f.length > 0) {
|
|
53144
54107
|
writer.writeString(1, f);
|
|
53145
54108
|
}
|
|
53146
|
-
f = message.
|
|
53147
|
-
if (f
|
|
53148
|
-
writer.
|
|
54109
|
+
f = message.getDescription();
|
|
54110
|
+
if (f.length > 0) {
|
|
54111
|
+
writer.writeString(2, f);
|
|
54112
|
+
}
|
|
54113
|
+
f = message.getCloudProvider();
|
|
54114
|
+
if (f != null) {
|
|
54115
|
+
writer.writeMessage(3, f, proto.clarifai.api.CloudProvider.serializeBinaryToWriter);
|
|
53149
54116
|
}
|
|
53150
54117
|
f = message.getRegion();
|
|
53151
54118
|
if (f.length > 0) {
|
|
53152
54119
|
writer.writeString(4, f);
|
|
53153
54120
|
}
|
|
53154
54121
|
};
|
|
53155
|
-
/**
|
|
53156
|
-
* @enum {number}
|
|
53157
|
-
*/
|
|
53158
|
-
proto.clarifai.api.CloudRegion.Cloud = {
|
|
53159
|
-
UNKOWN_CLOUD: 0,
|
|
53160
|
-
SELF_HOSTED: 1,
|
|
53161
|
-
AWS: 2,
|
|
53162
|
-
GCP: 3,
|
|
53163
|
-
AZURE: 4,
|
|
53164
|
-
LAMBDA: 5
|
|
53165
|
-
};
|
|
53166
54122
|
/**
|
|
53167
54123
|
* optional string id = 1;
|
|
53168
54124
|
* @return {string}
|
|
53169
54125
|
*/
|
|
53170
|
-
proto.clarifai.api.
|
|
54126
|
+
proto.clarifai.api.ComputeCluster.prototype.getId = function () {
|
|
53171
54127
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
53172
54128
|
};
|
|
53173
54129
|
/**
|
|
53174
54130
|
* @param {string} value
|
|
53175
|
-
* @return {!proto.clarifai.api.
|
|
54131
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
53176
54132
|
*/
|
|
53177
|
-
proto.clarifai.api.
|
|
54133
|
+
proto.clarifai.api.ComputeCluster.prototype.setId = function (value) {
|
|
53178
54134
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
53179
54135
|
};
|
|
53180
54136
|
/**
|
|
53181
|
-
* optional
|
|
53182
|
-
* @return {
|
|
54137
|
+
* optional string description = 2;
|
|
54138
|
+
* @return {string}
|
|
53183
54139
|
*/
|
|
53184
|
-
proto.clarifai.api.
|
|
53185
|
-
return /** @type {
|
|
54140
|
+
proto.clarifai.api.ComputeCluster.prototype.getDescription = function () {
|
|
54141
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
53186
54142
|
};
|
|
53187
54143
|
/**
|
|
53188
|
-
* @param {
|
|
53189
|
-
* @return {!proto.clarifai.api.
|
|
54144
|
+
* @param {string} value
|
|
54145
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
53190
54146
|
*/
|
|
53191
|
-
proto.clarifai.api.
|
|
53192
|
-
return jspb.Message.
|
|
54147
|
+
proto.clarifai.api.ComputeCluster.prototype.setDescription = function (value) {
|
|
54148
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
54149
|
+
};
|
|
54150
|
+
/**
|
|
54151
|
+
* optional CloudProvider cloud_provider = 3;
|
|
54152
|
+
* @return {?proto.clarifai.api.CloudProvider}
|
|
54153
|
+
*/
|
|
54154
|
+
proto.clarifai.api.ComputeCluster.prototype.getCloudProvider = function () {
|
|
54155
|
+
return /** @type{?proto.clarifai.api.CloudProvider} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.CloudProvider, 3));
|
|
54156
|
+
};
|
|
54157
|
+
/**
|
|
54158
|
+
* @param {?proto.clarifai.api.CloudProvider|undefined} value
|
|
54159
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
54160
|
+
*/
|
|
54161
|
+
proto.clarifai.api.ComputeCluster.prototype.setCloudProvider = function (value) {
|
|
54162
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
54163
|
+
};
|
|
54164
|
+
/**
|
|
54165
|
+
* Clears the message field making it undefined.
|
|
54166
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
54167
|
+
*/
|
|
54168
|
+
proto.clarifai.api.ComputeCluster.prototype.clearCloudProvider = function () {
|
|
54169
|
+
return this.setCloudProvider(undefined);
|
|
54170
|
+
};
|
|
54171
|
+
/**
|
|
54172
|
+
* Returns whether this field is set.
|
|
54173
|
+
* @return {boolean}
|
|
54174
|
+
*/
|
|
54175
|
+
proto.clarifai.api.ComputeCluster.prototype.hasCloudProvider = function () {
|
|
54176
|
+
return jspb.Message.getField(this, 3) != null;
|
|
53193
54177
|
};
|
|
53194
54178
|
/**
|
|
53195
54179
|
* optional string region = 4;
|
|
53196
54180
|
* @return {string}
|
|
53197
54181
|
*/
|
|
53198
|
-
proto.clarifai.api.
|
|
54182
|
+
proto.clarifai.api.ComputeCluster.prototype.getRegion = function () {
|
|
53199
54183
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
53200
54184
|
};
|
|
53201
54185
|
/**
|
|
53202
54186
|
* @param {string} value
|
|
53203
|
-
* @return {!proto.clarifai.api.
|
|
54187
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
53204
54188
|
*/
|
|
53205
|
-
proto.clarifai.api.
|
|
54189
|
+
proto.clarifai.api.ComputeCluster.prototype.setRegion = function (value) {
|
|
53206
54190
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
53207
54191
|
};
|
|
53208
54192
|
/**
|
|
@@ -53709,7 +54693,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
53709
54693
|
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto.clarifai.api.Nodepool.toObject, includeInstance),
|
|
53710
54694
|
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
53711
54695
|
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
53712
|
-
schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
54696
|
+
schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
54697
|
+
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
54698
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
53713
54699
|
};
|
|
53714
54700
|
if (includeInstance) {
|
|
53715
54701
|
obj.$jspbMessageInstance = msg;
|
|
@@ -53773,6 +54759,16 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function (msg, reade
|
|
|
53773
54759
|
var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
|
|
53774
54760
|
msg.setSchedulingChoice(value);
|
|
53775
54761
|
break;
|
|
54762
|
+
case 8:
|
|
54763
|
+
var value = new proto.clarifai.api.Visibility;
|
|
54764
|
+
reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
|
|
54765
|
+
msg.setVisibility(value);
|
|
54766
|
+
break;
|
|
54767
|
+
case 9:
|
|
54768
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
54769
|
+
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
54770
|
+
msg.setMetadata(value);
|
|
54771
|
+
break;
|
|
53776
54772
|
default:
|
|
53777
54773
|
reader.skipField();
|
|
53778
54774
|
break;
|
|
@@ -53826,6 +54822,14 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function (message, write
|
|
|
53826
54822
|
if (f !== 0.0) {
|
|
53827
54823
|
writer.writeEnum(7, f);
|
|
53828
54824
|
}
|
|
54825
|
+
f = message.getVisibility();
|
|
54826
|
+
if (f != null) {
|
|
54827
|
+
writer.writeMessage(8, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
|
|
54828
|
+
}
|
|
54829
|
+
f = message.getMetadata();
|
|
54830
|
+
if (f != null) {
|
|
54831
|
+
writer.writeMessage(9, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
54832
|
+
}
|
|
53829
54833
|
};
|
|
53830
54834
|
/**
|
|
53831
54835
|
* @enum {number}
|
|
@@ -53996,6 +55000,62 @@ proto.clarifai.api.Deployment.prototype.getSchedulingChoice = function () {
|
|
|
53996
55000
|
proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function (value) {
|
|
53997
55001
|
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
53998
55002
|
};
|
|
55003
|
+
/**
|
|
55004
|
+
* optional Visibility visibility = 8;
|
|
55005
|
+
* @return {?proto.clarifai.api.Visibility}
|
|
55006
|
+
*/
|
|
55007
|
+
proto.clarifai.api.Deployment.prototype.getVisibility = function () {
|
|
55008
|
+
return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 8));
|
|
55009
|
+
};
|
|
55010
|
+
/**
|
|
55011
|
+
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
55012
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55013
|
+
*/
|
|
55014
|
+
proto.clarifai.api.Deployment.prototype.setVisibility = function (value) {
|
|
55015
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
55016
|
+
};
|
|
55017
|
+
/**
|
|
55018
|
+
* Clears the message field making it undefined.
|
|
55019
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55020
|
+
*/
|
|
55021
|
+
proto.clarifai.api.Deployment.prototype.clearVisibility = function () {
|
|
55022
|
+
return this.setVisibility(undefined);
|
|
55023
|
+
};
|
|
55024
|
+
/**
|
|
55025
|
+
* Returns whether this field is set.
|
|
55026
|
+
* @return {boolean}
|
|
55027
|
+
*/
|
|
55028
|
+
proto.clarifai.api.Deployment.prototype.hasVisibility = function () {
|
|
55029
|
+
return jspb.Message.getField(this, 8) != null;
|
|
55030
|
+
};
|
|
55031
|
+
/**
|
|
55032
|
+
* optional google.protobuf.Struct metadata = 9;
|
|
55033
|
+
* @return {?proto.google.protobuf.Struct}
|
|
55034
|
+
*/
|
|
55035
|
+
proto.clarifai.api.Deployment.prototype.getMetadata = function () {
|
|
55036
|
+
return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 9));
|
|
55037
|
+
};
|
|
55038
|
+
/**
|
|
55039
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
55040
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55041
|
+
*/
|
|
55042
|
+
proto.clarifai.api.Deployment.prototype.setMetadata = function (value) {
|
|
55043
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
55044
|
+
};
|
|
55045
|
+
/**
|
|
55046
|
+
* Clears the message field making it undefined.
|
|
55047
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55048
|
+
*/
|
|
55049
|
+
proto.clarifai.api.Deployment.prototype.clearMetadata = function () {
|
|
55050
|
+
return this.setMetadata(undefined);
|
|
55051
|
+
};
|
|
55052
|
+
/**
|
|
55053
|
+
* Returns whether this field is set.
|
|
55054
|
+
* @return {boolean}
|
|
55055
|
+
*/
|
|
55056
|
+
proto.clarifai.api.Deployment.prototype.hasMetadata = function () {
|
|
55057
|
+
return jspb.Message.getField(this, 9) != null;
|
|
55058
|
+
};
|
|
53999
55059
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54000
55060
|
/**
|
|
54001
55061
|
* Creates an object representation of this proto.
|