clarifai-web-grpc 10.3.2 → 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 +1210 -135
- 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 +1210 -135
- 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 +196 -39
- package/proto/clarifai/api/resources_pb.js +1498 -142
- 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) {
|
|
4587
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4588
|
+
};
|
|
4589
|
+
goog.inherits(proto.clarifai.api.InstanceType, jspb.Message);
|
|
4590
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4591
|
+
/**
|
|
4592
|
+
* @public
|
|
4593
|
+
* @override
|
|
4594
|
+
*/
|
|
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) {
|
|
4541
4629
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4542
4630
|
};
|
|
4543
|
-
goog.inherits(proto.clarifai.api.
|
|
4631
|
+
goog.inherits(proto.clarifai.api.ComputeCluster, jspb.Message);
|
|
4544
4632
|
if (goog.DEBUG && !COMPILED) {
|
|
4545
4633
|
/**
|
|
4546
4634
|
* @public
|
|
4547
4635
|
* @override
|
|
4548
4636
|
*/
|
|
4549
|
-
proto.clarifai.api.
|
|
4637
|
+
proto.clarifai.api.ComputeCluster.displayName = 'proto.clarifai.api.ComputeCluster';
|
|
4550
4638
|
}
|
|
4551
4639
|
/**
|
|
4552
4640
|
* Generated by JsPbCodeGenerator.
|
|
@@ -4694,7 +4782,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4694
4782
|
inputLevel: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
4695
4783
|
consensusInfo: (f = msg.getConsensusInfo()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
4696
4784
|
taskId: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
4697
|
-
|
|
4785
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f)
|
|
4698
4786
|
};
|
|
4699
4787
|
if (includeInstance) {
|
|
4700
4788
|
obj.$jspbMessageInstance = msg;
|
|
@@ -4788,9 +4876,10 @@ proto.clarifai.api.Annotation.deserializeBinaryFromReader = function (msg, reade
|
|
|
4788
4876
|
var value = /** @type {string} */ (reader.readString());
|
|
4789
4877
|
msg.setTaskId(value);
|
|
4790
4878
|
break;
|
|
4791
|
-
case
|
|
4792
|
-
var value =
|
|
4793
|
-
|
|
4879
|
+
case 21:
|
|
4880
|
+
var value = new proto.clarifai.api.Worker;
|
|
4881
|
+
reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
4882
|
+
msg.setWorker(value);
|
|
4794
4883
|
break;
|
|
4795
4884
|
default:
|
|
4796
4885
|
reader.skipField();
|
|
@@ -4873,9 +4962,9 @@ proto.clarifai.api.Annotation.serializeBinaryToWriter = function (message, write
|
|
|
4873
4962
|
if (f.length > 0) {
|
|
4874
4963
|
writer.writeString(19, f);
|
|
4875
4964
|
}
|
|
4876
|
-
f = message.
|
|
4877
|
-
if (f
|
|
4878
|
-
writer.
|
|
4965
|
+
f = message.getWorker();
|
|
4966
|
+
if (f != null) {
|
|
4967
|
+
writer.writeMessage(21, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
|
|
4879
4968
|
}
|
|
4880
4969
|
};
|
|
4881
4970
|
/**
|
|
@@ -5159,18 +5248,32 @@ proto.clarifai.api.Annotation.prototype.setTaskId = function (value) {
|
|
|
5159
5248
|
return jspb.Message.setProto3StringField(this, 19, value);
|
|
5160
5249
|
};
|
|
5161
5250
|
/**
|
|
5162
|
-
* optional
|
|
5163
|
-
* @return {
|
|
5251
|
+
* optional Worker worker = 21;
|
|
5252
|
+
* @return {?proto.clarifai.api.Worker}
|
|
5164
5253
|
*/
|
|
5165
|
-
proto.clarifai.api.Annotation.prototype.
|
|
5166
|
-
return /** @type
|
|
5254
|
+
proto.clarifai.api.Annotation.prototype.getWorker = function () {
|
|
5255
|
+
return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 21));
|
|
5167
5256
|
};
|
|
5168
5257
|
/**
|
|
5169
|
-
* @param {
|
|
5258
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
5259
|
+
* @return {!proto.clarifai.api.Annotation} returns this
|
|
5260
|
+
*/
|
|
5261
|
+
proto.clarifai.api.Annotation.prototype.setWorker = function (value) {
|
|
5262
|
+
return jspb.Message.setWrapperField(this, 21, value);
|
|
5263
|
+
};
|
|
5264
|
+
/**
|
|
5265
|
+
* Clears the message field making it undefined.
|
|
5170
5266
|
* @return {!proto.clarifai.api.Annotation} returns this
|
|
5171
5267
|
*/
|
|
5172
|
-
proto.clarifai.api.Annotation.prototype.
|
|
5173
|
-
return
|
|
5268
|
+
proto.clarifai.api.Annotation.prototype.clearWorker = function () {
|
|
5269
|
+
return this.setWorker(undefined);
|
|
5270
|
+
};
|
|
5271
|
+
/**
|
|
5272
|
+
* Returns whether this field is set.
|
|
5273
|
+
* @return {boolean}
|
|
5274
|
+
*/
|
|
5275
|
+
proto.clarifai.api.Annotation.prototype.hasWorker = function () {
|
|
5276
|
+
return jspb.Message.getField(this, 21) != null;
|
|
5174
5277
|
};
|
|
5175
5278
|
/**
|
|
5176
5279
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -10018,6 +10121,29 @@ proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function () {
|
|
|
10018
10121
|
* @const
|
|
10019
10122
|
*/
|
|
10020
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
|
+
};
|
|
10021
10147
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10022
10148
|
/**
|
|
10023
10149
|
* Creates an object representation of this proto.
|
|
@@ -10048,7 +10174,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
10048
10174
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
10049
10175
|
language: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
10050
10176
|
workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
10051
|
-
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)
|
|
10052
10180
|
};
|
|
10053
10181
|
if (includeInstance) {
|
|
10054
10182
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10098,6 +10226,16 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function (msg, rea
|
|
|
10098
10226
|
msg.addUseCases(values[i]);
|
|
10099
10227
|
}
|
|
10100
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;
|
|
10101
10239
|
default:
|
|
10102
10240
|
reader.skipField();
|
|
10103
10241
|
break;
|
|
@@ -10139,6 +10277,14 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function (message, wri
|
|
|
10139
10277
|
if (f.length > 0) {
|
|
10140
10278
|
writer.writePackedEnum(4, f);
|
|
10141
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
|
+
}
|
|
10142
10288
|
};
|
|
10143
10289
|
/**
|
|
10144
10290
|
* optional string name = 1;
|
|
@@ -10211,6 +10357,62 @@ proto.clarifai.api.ConceptQuery.prototype.addUseCases = function (value, opt_ind
|
|
|
10211
10357
|
proto.clarifai.api.ConceptQuery.prototype.clearUseCasesList = function () {
|
|
10212
10358
|
return this.setUseCasesList([]);
|
|
10213
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
|
+
};
|
|
10214
10416
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10215
10417
|
/**
|
|
10216
10418
|
* Creates an object representation of this proto.
|
|
@@ -41971,7 +42173,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
41971
42173
|
*/
|
|
41972
42174
|
proto.clarifai.api.TaskMetrics.toObject = function (includeInstance, msg) {
|
|
41973
42175
|
var f, obj = {
|
|
41974
|
-
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)
|
|
41975
42178
|
};
|
|
41976
42179
|
if (includeInstance) {
|
|
41977
42180
|
obj.$jspbMessageInstance = msg;
|
|
@@ -42008,6 +42211,11 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function (msg, read
|
|
|
42008
42211
|
reader.readMessage(value, proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader);
|
|
42009
42212
|
msg.setWork(value);
|
|
42010
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;
|
|
42011
42219
|
default:
|
|
42012
42220
|
reader.skipField();
|
|
42013
42221
|
break;
|
|
@@ -42037,6 +42245,10 @@ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function (message, writ
|
|
|
42037
42245
|
if (f != null) {
|
|
42038
42246
|
writer.writeMessage(2, f, proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter);
|
|
42039
42247
|
}
|
|
42248
|
+
f = message.getReview();
|
|
42249
|
+
if (f != null) {
|
|
42250
|
+
writer.writeMessage(3, f, proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter);
|
|
42251
|
+
}
|
|
42040
42252
|
};
|
|
42041
42253
|
/**
|
|
42042
42254
|
* optional TaskWorkMetrics work = 2;
|
|
@@ -42066,6 +42278,34 @@ proto.clarifai.api.TaskMetrics.prototype.clearWork = function () {
|
|
|
42066
42278
|
proto.clarifai.api.TaskMetrics.prototype.hasWork = function () {
|
|
42067
42279
|
return jspb.Message.getField(this, 2) != null;
|
|
42068
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
|
+
};
|
|
42069
42309
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42070
42310
|
/**
|
|
42071
42311
|
* Creates an object representation of this proto.
|
|
@@ -42196,6 +42436,136 @@ proto.clarifai.api.TaskWorkMetrics.prototype.getInputsPercentEstimated = functio
|
|
|
42196
42436
|
proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = function (value) {
|
|
42197
42437
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
42198
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
|
+
};
|
|
42199
42569
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42200
42570
|
/**
|
|
42201
42571
|
* Creates an object representation of this proto.
|
|
@@ -52725,7 +53095,7 @@ proto.clarifai.api.Runner.prototype.hasComputeInfo = function () {
|
|
|
52725
53095
|
* @private {!Array<number>}
|
|
52726
53096
|
* @const
|
|
52727
53097
|
*/
|
|
52728
|
-
proto.clarifai.api.Nodepool.repeatedFields_ = [
|
|
53098
|
+
proto.clarifai.api.Nodepool.repeatedFields_ = [8];
|
|
52729
53099
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
52730
53100
|
/**
|
|
52731
53101
|
* Creates an object representation of this proto.
|
|
@@ -52754,12 +53124,17 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
52754
53124
|
proto.clarifai.api.Nodepool.toObject = function (includeInstance, msg) {
|
|
52755
53125
|
var f, obj = {
|
|
52756
53126
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
52757
|
-
|
|
52758
|
-
|
|
52759
|
-
|
|
52760
|
-
|
|
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),
|
|
52761
53134
|
minInstances: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
52762
|
-
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)
|
|
52763
53138
|
};
|
|
52764
53139
|
if (includeInstance) {
|
|
52765
53140
|
obj.$jspbMessageInstance = msg;
|
|
@@ -52797,21 +53172,35 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function (msg, reader)
|
|
|
52797
53172
|
break;
|
|
52798
53173
|
case 2:
|
|
52799
53174
|
var value = /** @type {string} */ (reader.readString());
|
|
52800
|
-
msg.
|
|
53175
|
+
msg.setDescription(value);
|
|
52801
53176
|
break;
|
|
52802
53177
|
case 3:
|
|
52803
|
-
var value = new
|
|
52804
|
-
reader.readMessage(value,
|
|
52805
|
-
msg.
|
|
53178
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
53179
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
53180
|
+
msg.setCreatedAt(value);
|
|
52806
53181
|
break;
|
|
52807
53182
|
case 4:
|
|
52808
|
-
var
|
|
52809
|
-
|
|
52810
|
-
|
|
52811
|
-
}
|
|
53183
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
53184
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
53185
|
+
msg.setModifiedAt(value);
|
|
52812
53186
|
break;
|
|
52813
|
-
case
|
|
53187
|
+
case 5:
|
|
52814
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);
|
|
52815
53204
|
msg.addInstanceTypes(value);
|
|
52816
53205
|
break;
|
|
52817
53206
|
case 9:
|
|
@@ -52822,6 +53211,16 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function (msg, reader)
|
|
|
52822
53211
|
var value = /** @type {number} */ (reader.readUint32());
|
|
52823
53212
|
msg.setMaxInstances(value);
|
|
52824
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;
|
|
52825
53224
|
default:
|
|
52826
53225
|
reader.skipField();
|
|
52827
53226
|
break;
|
|
@@ -52851,21 +53250,33 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function (message, writer)
|
|
|
52851
53250
|
if (f.length > 0) {
|
|
52852
53251
|
writer.writeString(1, f);
|
|
52853
53252
|
}
|
|
52854
|
-
f = message.
|
|
53253
|
+
f = message.getDescription();
|
|
52855
53254
|
if (f.length > 0) {
|
|
52856
53255
|
writer.writeString(2, f);
|
|
52857
53256
|
}
|
|
52858
|
-
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();
|
|
52859
53262
|
if (f != null) {
|
|
52860
|
-
writer.writeMessage(
|
|
53263
|
+
writer.writeMessage(4, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
52861
53264
|
}
|
|
52862
|
-
f = message.
|
|
53265
|
+
f = message.getUserId();
|
|
52863
53266
|
if (f.length > 0) {
|
|
52864
|
-
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);
|
|
52865
53276
|
}
|
|
52866
53277
|
f = message.getInstanceTypesList();
|
|
52867
53278
|
if (f.length > 0) {
|
|
52868
|
-
writer.
|
|
53279
|
+
writer.writeRepeatedMessage(8, f, proto.clarifai.api.InstanceType.serializeBinaryToWriter);
|
|
52869
53280
|
}
|
|
52870
53281
|
f = message.getMinInstances();
|
|
52871
53282
|
if (f !== 0) {
|
|
@@ -52875,14 +53286,14 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function (message, writer)
|
|
|
52875
53286
|
if (f !== 0) {
|
|
52876
53287
|
writer.writeUint32(10, f);
|
|
52877
53288
|
}
|
|
52878
|
-
|
|
52879
|
-
|
|
52880
|
-
|
|
52881
|
-
|
|
52882
|
-
|
|
52883
|
-
|
|
52884
|
-
|
|
52885
|
-
|
|
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
|
+
}
|
|
52886
53297
|
};
|
|
52887
53298
|
/**
|
|
52888
53299
|
* optional string id = 1;
|
|
@@ -52899,97 +53310,166 @@ proto.clarifai.api.Nodepool.prototype.setId = function (value) {
|
|
|
52899
53310
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
52900
53311
|
};
|
|
52901
53312
|
/**
|
|
52902
|
-
* optional string
|
|
53313
|
+
* optional string description = 2;
|
|
52903
53314
|
* @return {string}
|
|
52904
53315
|
*/
|
|
52905
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
53316
|
+
proto.clarifai.api.Nodepool.prototype.getDescription = function () {
|
|
52906
53317
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
52907
53318
|
};
|
|
52908
53319
|
/**
|
|
52909
53320
|
* @param {string} value
|
|
52910
53321
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52911
53322
|
*/
|
|
52912
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
53323
|
+
proto.clarifai.api.Nodepool.prototype.setDescription = function (value) {
|
|
52913
53324
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
52914
53325
|
};
|
|
52915
53326
|
/**
|
|
52916
|
-
* optional
|
|
52917
|
-
* @return {?proto.
|
|
53327
|
+
* optional google.protobuf.Timestamp created_at = 3;
|
|
53328
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
52918
53329
|
*/
|
|
52919
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52920
|
-
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));
|
|
52921
53332
|
};
|
|
52922
53333
|
/**
|
|
52923
|
-
* @param {?proto.
|
|
53334
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
52924
53335
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52925
53336
|
*/
|
|
52926
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
53337
|
+
proto.clarifai.api.Nodepool.prototype.setCreatedAt = function (value) {
|
|
52927
53338
|
return jspb.Message.setWrapperField(this, 3, value);
|
|
52928
53339
|
};
|
|
52929
53340
|
/**
|
|
52930
53341
|
* Clears the message field making it undefined.
|
|
52931
53342
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52932
53343
|
*/
|
|
52933
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52934
|
-
return this.
|
|
53344
|
+
proto.clarifai.api.Nodepool.prototype.clearCreatedAt = function () {
|
|
53345
|
+
return this.setCreatedAt(undefined);
|
|
52935
53346
|
};
|
|
52936
53347
|
/**
|
|
52937
53348
|
* Returns whether this field is set.
|
|
52938
53349
|
* @return {boolean}
|
|
52939
53350
|
*/
|
|
52940
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
53351
|
+
proto.clarifai.api.Nodepool.prototype.hasCreatedAt = function () {
|
|
52941
53352
|
return jspb.Message.getField(this, 3) != null;
|
|
52942
53353
|
};
|
|
52943
53354
|
/**
|
|
52944
|
-
*
|
|
52945
|
-
* @return {
|
|
53355
|
+
* optional google.protobuf.Timestamp modified_at = 4;
|
|
53356
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
52946
53357
|
*/
|
|
52947
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52948
|
-
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));
|
|
52949
53360
|
};
|
|
52950
53361
|
/**
|
|
52951
|
-
* @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.
|
|
52952
53370
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52953
53371
|
*/
|
|
52954
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52955
|
-
return
|
|
53372
|
+
proto.clarifai.api.Nodepool.prototype.clearModifiedAt = function () {
|
|
53373
|
+
return this.setModifiedAt(undefined);
|
|
52956
53374
|
};
|
|
52957
53375
|
/**
|
|
52958
|
-
*
|
|
52959
|
-
* @
|
|
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
|
|
52960
53391
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52961
53392
|
*/
|
|
52962
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52963
|
-
return jspb.Message.
|
|
53393
|
+
proto.clarifai.api.Nodepool.prototype.setUserId = function (value) {
|
|
53394
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
52964
53395
|
};
|
|
52965
53396
|
/**
|
|
52966
|
-
*
|
|
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.
|
|
52967
53412
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52968
53413
|
*/
|
|
52969
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52970
|
-
return this.
|
|
53414
|
+
proto.clarifai.api.Nodepool.prototype.clearComputeCluster = function () {
|
|
53415
|
+
return this.setComputeCluster(undefined);
|
|
52971
53416
|
};
|
|
52972
53417
|
/**
|
|
52973
|
-
*
|
|
52974
|
-
* @return {
|
|
53418
|
+
* Returns whether this field is set.
|
|
53419
|
+
* @return {boolean}
|
|
52975
53420
|
*/
|
|
52976
|
-
proto.clarifai.api.Nodepool.prototype.
|
|
52977
|
-
return
|
|
53421
|
+
proto.clarifai.api.Nodepool.prototype.hasComputeCluster = function () {
|
|
53422
|
+
return jspb.Message.getField(this, 6) != null;
|
|
52978
53423
|
};
|
|
52979
53424
|
/**
|
|
52980
|
-
*
|
|
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.
|
|
52981
53440
|
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
52982
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
|
+
*/
|
|
52983
53463
|
proto.clarifai.api.Nodepool.prototype.setInstanceTypesList = function (value) {
|
|
52984
|
-
return jspb.Message.
|
|
53464
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
52985
53465
|
};
|
|
52986
53466
|
/**
|
|
52987
|
-
* @param {
|
|
53467
|
+
* @param {!proto.clarifai.api.InstanceType=} opt_value
|
|
52988
53468
|
* @param {number=} opt_index
|
|
52989
|
-
* @return {!proto.clarifai.api.
|
|
53469
|
+
* @return {!proto.clarifai.api.InstanceType}
|
|
52990
53470
|
*/
|
|
52991
|
-
proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function (
|
|
52992
|
-
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);
|
|
52993
53473
|
};
|
|
52994
53474
|
/**
|
|
52995
53475
|
* Clears the list making it empty but non-null.
|
|
@@ -53026,6 +53506,368 @@ proto.clarifai.api.Nodepool.prototype.getMaxInstances = function () {
|
|
|
53026
53506
|
proto.clarifai.api.Nodepool.prototype.setMaxInstances = function (value) {
|
|
53027
53507
|
return jspb.Message.setProto3IntField(this, 10, value);
|
|
53028
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
|
+
};
|
|
53029
53871
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53030
53872
|
/**
|
|
53031
53873
|
* Creates an object representation of this proto.
|
|
@@ -53039,22 +53881,153 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
53039
53881
|
* http://goto/soy-param-migration
|
|
53040
53882
|
* @return {!Object}
|
|
53041
53883
|
*/
|
|
53042
|
-
proto.clarifai.api.
|
|
53043
|
-
return proto.clarifai.api.
|
|
53884
|
+
proto.clarifai.api.CloudProvider.prototype.toObject = function (opt_includeInstance) {
|
|
53885
|
+
return proto.clarifai.api.CloudProvider.toObject(opt_includeInstance, this);
|
|
53044
53886
|
};
|
|
53045
53887
|
/**
|
|
53046
53888
|
* Static version of the {@see toObject} method.
|
|
53047
53889
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53048
53890
|
* the JSPB instance for transitional soy proto support:
|
|
53049
53891
|
* http://goto/soy-param-migration
|
|
53050
|
-
* @param {!proto.clarifai.api.
|
|
53892
|
+
* @param {!proto.clarifai.api.CloudProvider} msg The msg instance to transform.
|
|
53051
53893
|
* @return {!Object}
|
|
53052
53894
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53053
53895
|
*/
|
|
53054
|
-
proto.clarifai.api.
|
|
53896
|
+
proto.clarifai.api.CloudProvider.toObject = function (includeInstance, msg) {
|
|
53055
53897
|
var f, obj = {
|
|
53056
53898
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
53057
|
-
|
|
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),
|
|
53058
54031
|
region: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
53059
54032
|
};
|
|
53060
54033
|
if (includeInstance) {
|
|
@@ -53066,21 +54039,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
53066
54039
|
/**
|
|
53067
54040
|
* Deserializes binary data (in protobuf wire format).
|
|
53068
54041
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53069
|
-
* @return {!proto.clarifai.api.
|
|
54042
|
+
* @return {!proto.clarifai.api.ComputeCluster}
|
|
53070
54043
|
*/
|
|
53071
|
-
proto.clarifai.api.
|
|
54044
|
+
proto.clarifai.api.ComputeCluster.deserializeBinary = function (bytes) {
|
|
53072
54045
|
var reader = new jspb.BinaryReader(bytes);
|
|
53073
|
-
var msg = new proto.clarifai.api.
|
|
53074
|
-
return proto.clarifai.api.
|
|
54046
|
+
var msg = new proto.clarifai.api.ComputeCluster;
|
|
54047
|
+
return proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader(msg, reader);
|
|
53075
54048
|
};
|
|
53076
54049
|
/**
|
|
53077
54050
|
* Deserializes binary data (in protobuf wire format) from the
|
|
53078
54051
|
* given reader into the given message object.
|
|
53079
|
-
* @param {!proto.clarifai.api.
|
|
54052
|
+
* @param {!proto.clarifai.api.ComputeCluster} msg The message object to deserialize into.
|
|
53080
54053
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53081
|
-
* @return {!proto.clarifai.api.
|
|
54054
|
+
* @return {!proto.clarifai.api.ComputeCluster}
|
|
53082
54055
|
*/
|
|
53083
|
-
proto.clarifai.api.
|
|
54056
|
+
proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader = function (msg, reader) {
|
|
53084
54057
|
while (reader.nextField()) {
|
|
53085
54058
|
if (reader.isEndGroup()) {
|
|
53086
54059
|
break;
|
|
@@ -53091,9 +54064,14 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function (msg, read
|
|
|
53091
54064
|
var value = /** @type {string} */ (reader.readString());
|
|
53092
54065
|
msg.setId(value);
|
|
53093
54066
|
break;
|
|
54067
|
+
case 2:
|
|
54068
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54069
|
+
msg.setDescription(value);
|
|
54070
|
+
break;
|
|
53094
54071
|
case 3:
|
|
53095
|
-
var value =
|
|
53096
|
-
|
|
54072
|
+
var value = new proto.clarifai.api.CloudProvider;
|
|
54073
|
+
reader.readMessage(value, proto.clarifai.api.CloudProvider.deserializeBinaryFromReader);
|
|
54074
|
+
msg.setCloudProvider(value);
|
|
53097
54075
|
break;
|
|
53098
54076
|
case 4:
|
|
53099
54077
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -53110,84 +54088,105 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function (msg, read
|
|
|
53110
54088
|
* Serializes the message to binary data (in protobuf wire format).
|
|
53111
54089
|
* @return {!Uint8Array}
|
|
53112
54090
|
*/
|
|
53113
|
-
proto.clarifai.api.
|
|
54091
|
+
proto.clarifai.api.ComputeCluster.prototype.serializeBinary = function () {
|
|
53114
54092
|
var writer = new jspb.BinaryWriter();
|
|
53115
|
-
proto.clarifai.api.
|
|
54093
|
+
proto.clarifai.api.ComputeCluster.serializeBinaryToWriter(this, writer);
|
|
53116
54094
|
return writer.getResultBuffer();
|
|
53117
54095
|
};
|
|
53118
54096
|
/**
|
|
53119
54097
|
* Serializes the given message to binary data (in protobuf wire
|
|
53120
54098
|
* format), writing to the given BinaryWriter.
|
|
53121
|
-
* @param {!proto.clarifai.api.
|
|
54099
|
+
* @param {!proto.clarifai.api.ComputeCluster} message
|
|
53122
54100
|
* @param {!jspb.BinaryWriter} writer
|
|
53123
54101
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53124
54102
|
*/
|
|
53125
|
-
proto.clarifai.api.
|
|
54103
|
+
proto.clarifai.api.ComputeCluster.serializeBinaryToWriter = function (message, writer) {
|
|
53126
54104
|
var f = undefined;
|
|
53127
54105
|
f = message.getId();
|
|
53128
54106
|
if (f.length > 0) {
|
|
53129
54107
|
writer.writeString(1, f);
|
|
53130
54108
|
}
|
|
53131
|
-
f = message.
|
|
53132
|
-
if (f
|
|
53133
|
-
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);
|
|
53134
54116
|
}
|
|
53135
54117
|
f = message.getRegion();
|
|
53136
54118
|
if (f.length > 0) {
|
|
53137
54119
|
writer.writeString(4, f);
|
|
53138
54120
|
}
|
|
53139
54121
|
};
|
|
53140
|
-
/**
|
|
53141
|
-
* @enum {number}
|
|
53142
|
-
*/
|
|
53143
|
-
proto.clarifai.api.CloudRegion.Cloud = {
|
|
53144
|
-
UNKOWN_CLOUD: 0,
|
|
53145
|
-
SELF_HOSTED: 1,
|
|
53146
|
-
AWS: 2,
|
|
53147
|
-
GCP: 3,
|
|
53148
|
-
AZURE: 4,
|
|
53149
|
-
LAMBDA: 5
|
|
53150
|
-
};
|
|
53151
54122
|
/**
|
|
53152
54123
|
* optional string id = 1;
|
|
53153
54124
|
* @return {string}
|
|
53154
54125
|
*/
|
|
53155
|
-
proto.clarifai.api.
|
|
54126
|
+
proto.clarifai.api.ComputeCluster.prototype.getId = function () {
|
|
53156
54127
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
53157
54128
|
};
|
|
53158
54129
|
/**
|
|
53159
54130
|
* @param {string} value
|
|
53160
|
-
* @return {!proto.clarifai.api.
|
|
54131
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
53161
54132
|
*/
|
|
53162
|
-
proto.clarifai.api.
|
|
54133
|
+
proto.clarifai.api.ComputeCluster.prototype.setId = function (value) {
|
|
53163
54134
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
53164
54135
|
};
|
|
53165
54136
|
/**
|
|
53166
|
-
* optional
|
|
53167
|
-
* @return {
|
|
54137
|
+
* optional string description = 2;
|
|
54138
|
+
* @return {string}
|
|
53168
54139
|
*/
|
|
53169
|
-
proto.clarifai.api.
|
|
53170
|
-
return /** @type {
|
|
54140
|
+
proto.clarifai.api.ComputeCluster.prototype.getDescription = function () {
|
|
54141
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
53171
54142
|
};
|
|
53172
54143
|
/**
|
|
53173
|
-
* @param {
|
|
53174
|
-
* @return {!proto.clarifai.api.
|
|
54144
|
+
* @param {string} value
|
|
54145
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
53175
54146
|
*/
|
|
53176
|
-
proto.clarifai.api.
|
|
53177
|
-
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;
|
|
53178
54177
|
};
|
|
53179
54178
|
/**
|
|
53180
54179
|
* optional string region = 4;
|
|
53181
54180
|
* @return {string}
|
|
53182
54181
|
*/
|
|
53183
|
-
proto.clarifai.api.
|
|
54182
|
+
proto.clarifai.api.ComputeCluster.prototype.getRegion = function () {
|
|
53184
54183
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
53185
54184
|
};
|
|
53186
54185
|
/**
|
|
53187
54186
|
* @param {string} value
|
|
53188
|
-
* @return {!proto.clarifai.api.
|
|
54187
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
53189
54188
|
*/
|
|
53190
|
-
proto.clarifai.api.
|
|
54189
|
+
proto.clarifai.api.ComputeCluster.prototype.setRegion = function (value) {
|
|
53191
54190
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
53192
54191
|
};
|
|
53193
54192
|
/**
|
|
@@ -53694,7 +54693,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
53694
54693
|
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto.clarifai.api.Nodepool.toObject, includeInstance),
|
|
53695
54694
|
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
53696
54695
|
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
53697
|
-
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)
|
|
53698
54699
|
};
|
|
53699
54700
|
if (includeInstance) {
|
|
53700
54701
|
obj.$jspbMessageInstance = msg;
|
|
@@ -53758,6 +54759,16 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function (msg, reade
|
|
|
53758
54759
|
var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
|
|
53759
54760
|
msg.setSchedulingChoice(value);
|
|
53760
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;
|
|
53761
54772
|
default:
|
|
53762
54773
|
reader.skipField();
|
|
53763
54774
|
break;
|
|
@@ -53811,6 +54822,14 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function (message, write
|
|
|
53811
54822
|
if (f !== 0.0) {
|
|
53812
54823
|
writer.writeEnum(7, f);
|
|
53813
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
|
+
}
|
|
53814
54833
|
};
|
|
53815
54834
|
/**
|
|
53816
54835
|
* @enum {number}
|
|
@@ -53981,6 +55000,62 @@ proto.clarifai.api.Deployment.prototype.getSchedulingChoice = function () {
|
|
|
53981
55000
|
proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function (value) {
|
|
53982
55001
|
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
53983
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
|
+
};
|
|
53984
55059
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53985
55060
|
/**
|
|
53986
55061
|
* Creates an object representation of this proto.
|