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
|
@@ -67,6 +67,7 @@ goog.exportSymbol('proto.clarifai.api.DeleteModelVersionRequest', null, global);
|
|
|
67
67
|
goog.exportSymbol('proto.clarifai.api.DeleteModelsRequest', null, global);
|
|
68
68
|
goog.exportSymbol('proto.clarifai.api.DeleteModuleVersionsRequest', null, global);
|
|
69
69
|
goog.exportSymbol('proto.clarifai.api.DeleteModulesRequest', null, global);
|
|
70
|
+
goog.exportSymbol('proto.clarifai.api.DeleteNodepoolsRequest', null, global);
|
|
70
71
|
goog.exportSymbol('proto.clarifai.api.DeleteRunnersRequest', null, global);
|
|
71
72
|
goog.exportSymbol('proto.clarifai.api.DeleteSearchRequest', null, global);
|
|
72
73
|
goog.exportSymbol('proto.clarifai.api.DeleteTasksRequest', null, global);
|
|
@@ -106,6 +107,7 @@ goog.exportSymbol('proto.clarifai.api.GetModelVersionRequest', null, global);
|
|
|
106
107
|
goog.exportSymbol('proto.clarifai.api.GetModuleRequest', null, global);
|
|
107
108
|
goog.exportSymbol('proto.clarifai.api.GetModuleVersionRequest', null, global);
|
|
108
109
|
goog.exportSymbol('proto.clarifai.api.GetModuleVersionUsageCountRequest', null, global);
|
|
110
|
+
goog.exportSymbol('proto.clarifai.api.GetNodepoolRequest', null, global);
|
|
109
111
|
goog.exportSymbol('proto.clarifai.api.GetResourceCountsRequest', null, global);
|
|
110
112
|
goog.exportSymbol('proto.clarifai.api.GetResourceCountsResponse', null, global);
|
|
111
113
|
goog.exportSymbol('proto.clarifai.api.GetRunnerRequest', null, global);
|
|
@@ -164,6 +166,7 @@ goog.exportSymbol('proto.clarifai.api.ListModuleVersionsRequest', null, global);
|
|
|
164
166
|
goog.exportSymbol('proto.clarifai.api.ListModulesRequest', null, global);
|
|
165
167
|
goog.exportSymbol('proto.clarifai.api.ListModulesRequest.SortByCase', null, global);
|
|
166
168
|
goog.exportSymbol('proto.clarifai.api.ListNextTaskAssignmentsRequest', null, global);
|
|
169
|
+
goog.exportSymbol('proto.clarifai.api.ListNodepoolsRequest', null, global);
|
|
167
170
|
goog.exportSymbol('proto.clarifai.api.ListOpenSourceLicensesRequest', null, global);
|
|
168
171
|
goog.exportSymbol('proto.clarifai.api.ListOpenSourceLicensesResponse', null, global);
|
|
169
172
|
goog.exportSymbol('proto.clarifai.api.ListRunnerItemsRequest', null, global);
|
|
@@ -218,6 +221,7 @@ goog.exportSymbol('proto.clarifai.api.MultiModelVersionInputExampleResponse', nu
|
|
|
218
221
|
goog.exportSymbol('proto.clarifai.api.MultiModelVersionResponse', null, global);
|
|
219
222
|
goog.exportSymbol('proto.clarifai.api.MultiModuleResponse', null, global);
|
|
220
223
|
goog.exportSymbol('proto.clarifai.api.MultiModuleVersionResponse', null, global);
|
|
224
|
+
goog.exportSymbol('proto.clarifai.api.MultiNodepoolResponse', null, global);
|
|
221
225
|
goog.exportSymbol('proto.clarifai.api.MultiOutputResponse', null, global);
|
|
222
226
|
goog.exportSymbol('proto.clarifai.api.MultiRunnerItemOutputResponse', null, global);
|
|
223
227
|
goog.exportSymbol('proto.clarifai.api.MultiRunnerItemResponse', null, global);
|
|
@@ -270,6 +274,7 @@ goog.exportSymbol('proto.clarifai.api.PatchModelVersionsRequest', null, global);
|
|
|
270
274
|
goog.exportSymbol('proto.clarifai.api.PatchModelsRequest', null, global);
|
|
271
275
|
goog.exportSymbol('proto.clarifai.api.PatchModuleVersionsRequest', null, global);
|
|
272
276
|
goog.exportSymbol('proto.clarifai.api.PatchModulesRequest', null, global);
|
|
277
|
+
goog.exportSymbol('proto.clarifai.api.PatchNodepoolsRequest', null, global);
|
|
273
278
|
goog.exportSymbol('proto.clarifai.api.PatchSearchesRequest', null, global);
|
|
274
279
|
goog.exportSymbol('proto.clarifai.api.PatchTasksRequest', null, global);
|
|
275
280
|
goog.exportSymbol('proto.clarifai.api.PatchWorkflowIdsRequest', null, global);
|
|
@@ -318,6 +323,7 @@ goog.exportSymbol('proto.clarifai.api.PostModelsRequest', null, global);
|
|
|
318
323
|
goog.exportSymbol('proto.clarifai.api.PostModelsSearchesRequest', null, global);
|
|
319
324
|
goog.exportSymbol('proto.clarifai.api.PostModuleVersionsRequest', null, global);
|
|
320
325
|
goog.exportSymbol('proto.clarifai.api.PostModulesRequest', null, global);
|
|
326
|
+
goog.exportSymbol('proto.clarifai.api.PostNodepoolsRequest', null, global);
|
|
321
327
|
goog.exportSymbol('proto.clarifai.api.PostRunnerItemOutputsRequest', null, global);
|
|
322
328
|
goog.exportSymbol('proto.clarifai.api.PostRunnersRequest', null, global);
|
|
323
329
|
goog.exportSymbol('proto.clarifai.api.PostSearchesByIDRequest', null, global);
|
|
@@ -375,6 +381,7 @@ goog.exportSymbol('proto.clarifai.api.SingleModelVersionResponse', null, global)
|
|
|
375
381
|
goog.exportSymbol('proto.clarifai.api.SingleModuleResponse', null, global);
|
|
376
382
|
goog.exportSymbol('proto.clarifai.api.SingleModuleVersionResponse', null, global);
|
|
377
383
|
goog.exportSymbol('proto.clarifai.api.SingleModuleVersionUsageCountResponse', null, global);
|
|
384
|
+
goog.exportSymbol('proto.clarifai.api.SingleNodepoolResponse', null, global);
|
|
378
385
|
goog.exportSymbol('proto.clarifai.api.SinglePasswordValidationResponse', null, global);
|
|
379
386
|
goog.exportSymbol('proto.clarifai.api.SingleRunnerResponse', null, global);
|
|
380
387
|
goog.exportSymbol('proto.clarifai.api.SingleSearchResponse', null, global);
|
|
@@ -7402,6 +7409,153 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
7402
7409
|
*/
|
|
7403
7410
|
proto.clarifai.api.MultiTrainingTimeEstimateResponse.displayName = 'proto.clarifai.api.MultiTrainingTimeEstimateResponse';
|
|
7404
7411
|
}
|
|
7412
|
+
/**
|
|
7413
|
+
* Generated by JsPbCodeGenerator.
|
|
7414
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7415
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7416
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7417
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7418
|
+
* valid.
|
|
7419
|
+
* @extends {jspb.Message}
|
|
7420
|
+
* @constructor
|
|
7421
|
+
*/
|
|
7422
|
+
proto.clarifai.api.GetNodepoolRequest = function(opt_data) {
|
|
7423
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
7424
|
+
};
|
|
7425
|
+
goog.inherits(proto.clarifai.api.GetNodepoolRequest, jspb.Message);
|
|
7426
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7427
|
+
/**
|
|
7428
|
+
* @public
|
|
7429
|
+
* @override
|
|
7430
|
+
*/
|
|
7431
|
+
proto.clarifai.api.GetNodepoolRequest.displayName = 'proto.clarifai.api.GetNodepoolRequest';
|
|
7432
|
+
}
|
|
7433
|
+
/**
|
|
7434
|
+
* Generated by JsPbCodeGenerator.
|
|
7435
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7436
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7437
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7438
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7439
|
+
* valid.
|
|
7440
|
+
* @extends {jspb.Message}
|
|
7441
|
+
* @constructor
|
|
7442
|
+
*/
|
|
7443
|
+
proto.clarifai.api.ListNodepoolsRequest = function(opt_data) {
|
|
7444
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
7445
|
+
};
|
|
7446
|
+
goog.inherits(proto.clarifai.api.ListNodepoolsRequest, jspb.Message);
|
|
7447
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7448
|
+
/**
|
|
7449
|
+
* @public
|
|
7450
|
+
* @override
|
|
7451
|
+
*/
|
|
7452
|
+
proto.clarifai.api.ListNodepoolsRequest.displayName = 'proto.clarifai.api.ListNodepoolsRequest';
|
|
7453
|
+
}
|
|
7454
|
+
/**
|
|
7455
|
+
* Generated by JsPbCodeGenerator.
|
|
7456
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7457
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7458
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7459
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7460
|
+
* valid.
|
|
7461
|
+
* @extends {jspb.Message}
|
|
7462
|
+
* @constructor
|
|
7463
|
+
*/
|
|
7464
|
+
proto.clarifai.api.PostNodepoolsRequest = function(opt_data) {
|
|
7465
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostNodepoolsRequest.repeatedFields_, null);
|
|
7466
|
+
};
|
|
7467
|
+
goog.inherits(proto.clarifai.api.PostNodepoolsRequest, jspb.Message);
|
|
7468
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7469
|
+
/**
|
|
7470
|
+
* @public
|
|
7471
|
+
* @override
|
|
7472
|
+
*/
|
|
7473
|
+
proto.clarifai.api.PostNodepoolsRequest.displayName = 'proto.clarifai.api.PostNodepoolsRequest';
|
|
7474
|
+
}
|
|
7475
|
+
/**
|
|
7476
|
+
* Generated by JsPbCodeGenerator.
|
|
7477
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7478
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7479
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7480
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7481
|
+
* valid.
|
|
7482
|
+
* @extends {jspb.Message}
|
|
7483
|
+
* @constructor
|
|
7484
|
+
*/
|
|
7485
|
+
proto.clarifai.api.PatchNodepoolsRequest = function(opt_data) {
|
|
7486
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchNodepoolsRequest.repeatedFields_, null);
|
|
7487
|
+
};
|
|
7488
|
+
goog.inherits(proto.clarifai.api.PatchNodepoolsRequest, jspb.Message);
|
|
7489
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7490
|
+
/**
|
|
7491
|
+
* @public
|
|
7492
|
+
* @override
|
|
7493
|
+
*/
|
|
7494
|
+
proto.clarifai.api.PatchNodepoolsRequest.displayName = 'proto.clarifai.api.PatchNodepoolsRequest';
|
|
7495
|
+
}
|
|
7496
|
+
/**
|
|
7497
|
+
* Generated by JsPbCodeGenerator.
|
|
7498
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7499
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7500
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7501
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7502
|
+
* valid.
|
|
7503
|
+
* @extends {jspb.Message}
|
|
7504
|
+
* @constructor
|
|
7505
|
+
*/
|
|
7506
|
+
proto.clarifai.api.DeleteNodepoolsRequest = function(opt_data) {
|
|
7507
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteNodepoolsRequest.repeatedFields_, null);
|
|
7508
|
+
};
|
|
7509
|
+
goog.inherits(proto.clarifai.api.DeleteNodepoolsRequest, jspb.Message);
|
|
7510
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7511
|
+
/**
|
|
7512
|
+
* @public
|
|
7513
|
+
* @override
|
|
7514
|
+
*/
|
|
7515
|
+
proto.clarifai.api.DeleteNodepoolsRequest.displayName = 'proto.clarifai.api.DeleteNodepoolsRequest';
|
|
7516
|
+
}
|
|
7517
|
+
/**
|
|
7518
|
+
* Generated by JsPbCodeGenerator.
|
|
7519
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7520
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7521
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7522
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7523
|
+
* valid.
|
|
7524
|
+
* @extends {jspb.Message}
|
|
7525
|
+
* @constructor
|
|
7526
|
+
*/
|
|
7527
|
+
proto.clarifai.api.SingleNodepoolResponse = function(opt_data) {
|
|
7528
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
7529
|
+
};
|
|
7530
|
+
goog.inherits(proto.clarifai.api.SingleNodepoolResponse, jspb.Message);
|
|
7531
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7532
|
+
/**
|
|
7533
|
+
* @public
|
|
7534
|
+
* @override
|
|
7535
|
+
*/
|
|
7536
|
+
proto.clarifai.api.SingleNodepoolResponse.displayName = 'proto.clarifai.api.SingleNodepoolResponse';
|
|
7537
|
+
}
|
|
7538
|
+
/**
|
|
7539
|
+
* Generated by JsPbCodeGenerator.
|
|
7540
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7541
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7542
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7543
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7544
|
+
* valid.
|
|
7545
|
+
* @extends {jspb.Message}
|
|
7546
|
+
* @constructor
|
|
7547
|
+
*/
|
|
7548
|
+
proto.clarifai.api.MultiNodepoolResponse = function(opt_data) {
|
|
7549
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiNodepoolResponse.repeatedFields_, null);
|
|
7550
|
+
};
|
|
7551
|
+
goog.inherits(proto.clarifai.api.MultiNodepoolResponse, jspb.Message);
|
|
7552
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7553
|
+
/**
|
|
7554
|
+
* @public
|
|
7555
|
+
* @override
|
|
7556
|
+
*/
|
|
7557
|
+
proto.clarifai.api.MultiNodepoolResponse.displayName = 'proto.clarifai.api.MultiNodepoolResponse';
|
|
7558
|
+
}
|
|
7405
7559
|
|
|
7406
7560
|
|
|
7407
7561
|
|
|
@@ -41946,7 +42100,8 @@ proto.clarifai.api.PostModelVersionsUploadConfig.toObject = function(includeInst
|
|
|
41946
42100
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
41947
42101
|
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
41948
42102
|
modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f),
|
|
41949
|
-
totalSize: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
42103
|
+
totalSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
42104
|
+
isV3: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
41950
42105
|
};
|
|
41951
42106
|
|
|
41952
42107
|
if (includeInstance) {
|
|
@@ -42001,6 +42156,10 @@ proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader = f
|
|
|
42001
42156
|
var value = /** @type {number} */ (reader.readUint64());
|
|
42002
42157
|
msg.setTotalSize(value);
|
|
42003
42158
|
break;
|
|
42159
|
+
case 5:
|
|
42160
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
42161
|
+
msg.setIsV3(value);
|
|
42162
|
+
break;
|
|
42004
42163
|
default:
|
|
42005
42164
|
reader.skipField();
|
|
42006
42165
|
break;
|
|
@@ -42060,6 +42219,13 @@ proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter = funct
|
|
|
42060
42219
|
f
|
|
42061
42220
|
);
|
|
42062
42221
|
}
|
|
42222
|
+
f = message.getIsV3();
|
|
42223
|
+
if (f) {
|
|
42224
|
+
writer.writeBool(
|
|
42225
|
+
5,
|
|
42226
|
+
f
|
|
42227
|
+
);
|
|
42228
|
+
}
|
|
42063
42229
|
};
|
|
42064
42230
|
|
|
42065
42231
|
|
|
@@ -42173,6 +42339,24 @@ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setTotalSize = functi
|
|
|
42173
42339
|
};
|
|
42174
42340
|
|
|
42175
42341
|
|
|
42342
|
+
/**
|
|
42343
|
+
* optional bool is_v3 = 5;
|
|
42344
|
+
* @return {boolean}
|
|
42345
|
+
*/
|
|
42346
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getIsV3 = function() {
|
|
42347
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
42348
|
+
};
|
|
42349
|
+
|
|
42350
|
+
|
|
42351
|
+
/**
|
|
42352
|
+
* @param {boolean} value
|
|
42353
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
|
|
42354
|
+
*/
|
|
42355
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setIsV3 = function(value) {
|
|
42356
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
42357
|
+
};
|
|
42358
|
+
|
|
42359
|
+
|
|
42176
42360
|
|
|
42177
42361
|
|
|
42178
42362
|
|
|
@@ -87075,6 +87259,1470 @@ proto.clarifai.api.MultiTrainingTimeEstimateResponse.prototype.clearTrainingTime
|
|
|
87075
87259
|
};
|
|
87076
87260
|
|
|
87077
87261
|
|
|
87262
|
+
|
|
87263
|
+
|
|
87264
|
+
|
|
87265
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
87266
|
+
/**
|
|
87267
|
+
* Creates an object representation of this proto.
|
|
87268
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
87269
|
+
* Optional fields that are not set will be set to undefined.
|
|
87270
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
87271
|
+
* For the list of reserved names please see:
|
|
87272
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
87273
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
87274
|
+
* JSPB instance for transitional soy proto support:
|
|
87275
|
+
* http://goto/soy-param-migration
|
|
87276
|
+
* @return {!Object}
|
|
87277
|
+
*/
|
|
87278
|
+
proto.clarifai.api.GetNodepoolRequest.prototype.toObject = function(opt_includeInstance) {
|
|
87279
|
+
return proto.clarifai.api.GetNodepoolRequest.toObject(opt_includeInstance, this);
|
|
87280
|
+
};
|
|
87281
|
+
|
|
87282
|
+
|
|
87283
|
+
/**
|
|
87284
|
+
* Static version of the {@see toObject} method.
|
|
87285
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
87286
|
+
* the JSPB instance for transitional soy proto support:
|
|
87287
|
+
* http://goto/soy-param-migration
|
|
87288
|
+
* @param {!proto.clarifai.api.GetNodepoolRequest} msg The msg instance to transform.
|
|
87289
|
+
* @return {!Object}
|
|
87290
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87291
|
+
*/
|
|
87292
|
+
proto.clarifai.api.GetNodepoolRequest.toObject = function(includeInstance, msg) {
|
|
87293
|
+
var f, obj = {
|
|
87294
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
87295
|
+
nodepoolId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
87296
|
+
};
|
|
87297
|
+
|
|
87298
|
+
if (includeInstance) {
|
|
87299
|
+
obj.$jspbMessageInstance = msg;
|
|
87300
|
+
}
|
|
87301
|
+
return obj;
|
|
87302
|
+
};
|
|
87303
|
+
}
|
|
87304
|
+
|
|
87305
|
+
|
|
87306
|
+
/**
|
|
87307
|
+
* Deserializes binary data (in protobuf wire format).
|
|
87308
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
87309
|
+
* @return {!proto.clarifai.api.GetNodepoolRequest}
|
|
87310
|
+
*/
|
|
87311
|
+
proto.clarifai.api.GetNodepoolRequest.deserializeBinary = function(bytes) {
|
|
87312
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
87313
|
+
var msg = new proto.clarifai.api.GetNodepoolRequest;
|
|
87314
|
+
return proto.clarifai.api.GetNodepoolRequest.deserializeBinaryFromReader(msg, reader);
|
|
87315
|
+
};
|
|
87316
|
+
|
|
87317
|
+
|
|
87318
|
+
/**
|
|
87319
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
87320
|
+
* given reader into the given message object.
|
|
87321
|
+
* @param {!proto.clarifai.api.GetNodepoolRequest} msg The message object to deserialize into.
|
|
87322
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
87323
|
+
* @return {!proto.clarifai.api.GetNodepoolRequest}
|
|
87324
|
+
*/
|
|
87325
|
+
proto.clarifai.api.GetNodepoolRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
87326
|
+
while (reader.nextField()) {
|
|
87327
|
+
if (reader.isEndGroup()) {
|
|
87328
|
+
break;
|
|
87329
|
+
}
|
|
87330
|
+
var field = reader.getFieldNumber();
|
|
87331
|
+
switch (field) {
|
|
87332
|
+
case 1:
|
|
87333
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
87334
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
87335
|
+
msg.setUserAppId(value);
|
|
87336
|
+
break;
|
|
87337
|
+
case 2:
|
|
87338
|
+
var value = /** @type {string} */ (reader.readString());
|
|
87339
|
+
msg.setNodepoolId(value);
|
|
87340
|
+
break;
|
|
87341
|
+
default:
|
|
87342
|
+
reader.skipField();
|
|
87343
|
+
break;
|
|
87344
|
+
}
|
|
87345
|
+
}
|
|
87346
|
+
return msg;
|
|
87347
|
+
};
|
|
87348
|
+
|
|
87349
|
+
|
|
87350
|
+
/**
|
|
87351
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
87352
|
+
* @return {!Uint8Array}
|
|
87353
|
+
*/
|
|
87354
|
+
proto.clarifai.api.GetNodepoolRequest.prototype.serializeBinary = function() {
|
|
87355
|
+
var writer = new jspb.BinaryWriter();
|
|
87356
|
+
proto.clarifai.api.GetNodepoolRequest.serializeBinaryToWriter(this, writer);
|
|
87357
|
+
return writer.getResultBuffer();
|
|
87358
|
+
};
|
|
87359
|
+
|
|
87360
|
+
|
|
87361
|
+
/**
|
|
87362
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
87363
|
+
* format), writing to the given BinaryWriter.
|
|
87364
|
+
* @param {!proto.clarifai.api.GetNodepoolRequest} message
|
|
87365
|
+
* @param {!jspb.BinaryWriter} writer
|
|
87366
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87367
|
+
*/
|
|
87368
|
+
proto.clarifai.api.GetNodepoolRequest.serializeBinaryToWriter = function(message, writer) {
|
|
87369
|
+
var f = undefined;
|
|
87370
|
+
f = message.getUserAppId();
|
|
87371
|
+
if (f != null) {
|
|
87372
|
+
writer.writeMessage(
|
|
87373
|
+
1,
|
|
87374
|
+
f,
|
|
87375
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
87376
|
+
);
|
|
87377
|
+
}
|
|
87378
|
+
f = message.getNodepoolId();
|
|
87379
|
+
if (f.length > 0) {
|
|
87380
|
+
writer.writeString(
|
|
87381
|
+
2,
|
|
87382
|
+
f
|
|
87383
|
+
);
|
|
87384
|
+
}
|
|
87385
|
+
};
|
|
87386
|
+
|
|
87387
|
+
|
|
87388
|
+
/**
|
|
87389
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
87390
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
87391
|
+
*/
|
|
87392
|
+
proto.clarifai.api.GetNodepoolRequest.prototype.getUserAppId = function() {
|
|
87393
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
87394
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
87395
|
+
};
|
|
87396
|
+
|
|
87397
|
+
|
|
87398
|
+
/**
|
|
87399
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
87400
|
+
* @return {!proto.clarifai.api.GetNodepoolRequest} returns this
|
|
87401
|
+
*/
|
|
87402
|
+
proto.clarifai.api.GetNodepoolRequest.prototype.setUserAppId = function(value) {
|
|
87403
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
87404
|
+
};
|
|
87405
|
+
|
|
87406
|
+
|
|
87407
|
+
/**
|
|
87408
|
+
* Clears the message field making it undefined.
|
|
87409
|
+
* @return {!proto.clarifai.api.GetNodepoolRequest} returns this
|
|
87410
|
+
*/
|
|
87411
|
+
proto.clarifai.api.GetNodepoolRequest.prototype.clearUserAppId = function() {
|
|
87412
|
+
return this.setUserAppId(undefined);
|
|
87413
|
+
};
|
|
87414
|
+
|
|
87415
|
+
|
|
87416
|
+
/**
|
|
87417
|
+
* Returns whether this field is set.
|
|
87418
|
+
* @return {boolean}
|
|
87419
|
+
*/
|
|
87420
|
+
proto.clarifai.api.GetNodepoolRequest.prototype.hasUserAppId = function() {
|
|
87421
|
+
return jspb.Message.getField(this, 1) != null;
|
|
87422
|
+
};
|
|
87423
|
+
|
|
87424
|
+
|
|
87425
|
+
/**
|
|
87426
|
+
* optional string nodepool_id = 2;
|
|
87427
|
+
* @return {string}
|
|
87428
|
+
*/
|
|
87429
|
+
proto.clarifai.api.GetNodepoolRequest.prototype.getNodepoolId = function() {
|
|
87430
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
87431
|
+
};
|
|
87432
|
+
|
|
87433
|
+
|
|
87434
|
+
/**
|
|
87435
|
+
* @param {string} value
|
|
87436
|
+
* @return {!proto.clarifai.api.GetNodepoolRequest} returns this
|
|
87437
|
+
*/
|
|
87438
|
+
proto.clarifai.api.GetNodepoolRequest.prototype.setNodepoolId = function(value) {
|
|
87439
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
87440
|
+
};
|
|
87441
|
+
|
|
87442
|
+
|
|
87443
|
+
|
|
87444
|
+
|
|
87445
|
+
|
|
87446
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
87447
|
+
/**
|
|
87448
|
+
* Creates an object representation of this proto.
|
|
87449
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
87450
|
+
* Optional fields that are not set will be set to undefined.
|
|
87451
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
87452
|
+
* For the list of reserved names please see:
|
|
87453
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
87454
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
87455
|
+
* JSPB instance for transitional soy proto support:
|
|
87456
|
+
* http://goto/soy-param-migration
|
|
87457
|
+
* @return {!Object}
|
|
87458
|
+
*/
|
|
87459
|
+
proto.clarifai.api.ListNodepoolsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
87460
|
+
return proto.clarifai.api.ListNodepoolsRequest.toObject(opt_includeInstance, this);
|
|
87461
|
+
};
|
|
87462
|
+
|
|
87463
|
+
|
|
87464
|
+
/**
|
|
87465
|
+
* Static version of the {@see toObject} method.
|
|
87466
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
87467
|
+
* the JSPB instance for transitional soy proto support:
|
|
87468
|
+
* http://goto/soy-param-migration
|
|
87469
|
+
* @param {!proto.clarifai.api.ListNodepoolsRequest} msg The msg instance to transform.
|
|
87470
|
+
* @return {!Object}
|
|
87471
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87472
|
+
*/
|
|
87473
|
+
proto.clarifai.api.ListNodepoolsRequest.toObject = function(includeInstance, msg) {
|
|
87474
|
+
var f, obj = {
|
|
87475
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
87476
|
+
page: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
87477
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
87478
|
+
};
|
|
87479
|
+
|
|
87480
|
+
if (includeInstance) {
|
|
87481
|
+
obj.$jspbMessageInstance = msg;
|
|
87482
|
+
}
|
|
87483
|
+
return obj;
|
|
87484
|
+
};
|
|
87485
|
+
}
|
|
87486
|
+
|
|
87487
|
+
|
|
87488
|
+
/**
|
|
87489
|
+
* Deserializes binary data (in protobuf wire format).
|
|
87490
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
87491
|
+
* @return {!proto.clarifai.api.ListNodepoolsRequest}
|
|
87492
|
+
*/
|
|
87493
|
+
proto.clarifai.api.ListNodepoolsRequest.deserializeBinary = function(bytes) {
|
|
87494
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
87495
|
+
var msg = new proto.clarifai.api.ListNodepoolsRequest;
|
|
87496
|
+
return proto.clarifai.api.ListNodepoolsRequest.deserializeBinaryFromReader(msg, reader);
|
|
87497
|
+
};
|
|
87498
|
+
|
|
87499
|
+
|
|
87500
|
+
/**
|
|
87501
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
87502
|
+
* given reader into the given message object.
|
|
87503
|
+
* @param {!proto.clarifai.api.ListNodepoolsRequest} msg The message object to deserialize into.
|
|
87504
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
87505
|
+
* @return {!proto.clarifai.api.ListNodepoolsRequest}
|
|
87506
|
+
*/
|
|
87507
|
+
proto.clarifai.api.ListNodepoolsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
87508
|
+
while (reader.nextField()) {
|
|
87509
|
+
if (reader.isEndGroup()) {
|
|
87510
|
+
break;
|
|
87511
|
+
}
|
|
87512
|
+
var field = reader.getFieldNumber();
|
|
87513
|
+
switch (field) {
|
|
87514
|
+
case 1:
|
|
87515
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
87516
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
87517
|
+
msg.setUserAppId(value);
|
|
87518
|
+
break;
|
|
87519
|
+
case 2:
|
|
87520
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
87521
|
+
msg.setPage(value);
|
|
87522
|
+
break;
|
|
87523
|
+
case 3:
|
|
87524
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
87525
|
+
msg.setPerPage(value);
|
|
87526
|
+
break;
|
|
87527
|
+
default:
|
|
87528
|
+
reader.skipField();
|
|
87529
|
+
break;
|
|
87530
|
+
}
|
|
87531
|
+
}
|
|
87532
|
+
return msg;
|
|
87533
|
+
};
|
|
87534
|
+
|
|
87535
|
+
|
|
87536
|
+
/**
|
|
87537
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
87538
|
+
* @return {!Uint8Array}
|
|
87539
|
+
*/
|
|
87540
|
+
proto.clarifai.api.ListNodepoolsRequest.prototype.serializeBinary = function() {
|
|
87541
|
+
var writer = new jspb.BinaryWriter();
|
|
87542
|
+
proto.clarifai.api.ListNodepoolsRequest.serializeBinaryToWriter(this, writer);
|
|
87543
|
+
return writer.getResultBuffer();
|
|
87544
|
+
};
|
|
87545
|
+
|
|
87546
|
+
|
|
87547
|
+
/**
|
|
87548
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
87549
|
+
* format), writing to the given BinaryWriter.
|
|
87550
|
+
* @param {!proto.clarifai.api.ListNodepoolsRequest} message
|
|
87551
|
+
* @param {!jspb.BinaryWriter} writer
|
|
87552
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87553
|
+
*/
|
|
87554
|
+
proto.clarifai.api.ListNodepoolsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
87555
|
+
var f = undefined;
|
|
87556
|
+
f = message.getUserAppId();
|
|
87557
|
+
if (f != null) {
|
|
87558
|
+
writer.writeMessage(
|
|
87559
|
+
1,
|
|
87560
|
+
f,
|
|
87561
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
87562
|
+
);
|
|
87563
|
+
}
|
|
87564
|
+
f = message.getPage();
|
|
87565
|
+
if (f !== 0) {
|
|
87566
|
+
writer.writeUint32(
|
|
87567
|
+
2,
|
|
87568
|
+
f
|
|
87569
|
+
);
|
|
87570
|
+
}
|
|
87571
|
+
f = message.getPerPage();
|
|
87572
|
+
if (f !== 0) {
|
|
87573
|
+
writer.writeUint32(
|
|
87574
|
+
3,
|
|
87575
|
+
f
|
|
87576
|
+
);
|
|
87577
|
+
}
|
|
87578
|
+
};
|
|
87579
|
+
|
|
87580
|
+
|
|
87581
|
+
/**
|
|
87582
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
87583
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
87584
|
+
*/
|
|
87585
|
+
proto.clarifai.api.ListNodepoolsRequest.prototype.getUserAppId = function() {
|
|
87586
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
87587
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
87588
|
+
};
|
|
87589
|
+
|
|
87590
|
+
|
|
87591
|
+
/**
|
|
87592
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
87593
|
+
* @return {!proto.clarifai.api.ListNodepoolsRequest} returns this
|
|
87594
|
+
*/
|
|
87595
|
+
proto.clarifai.api.ListNodepoolsRequest.prototype.setUserAppId = function(value) {
|
|
87596
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
87597
|
+
};
|
|
87598
|
+
|
|
87599
|
+
|
|
87600
|
+
/**
|
|
87601
|
+
* Clears the message field making it undefined.
|
|
87602
|
+
* @return {!proto.clarifai.api.ListNodepoolsRequest} returns this
|
|
87603
|
+
*/
|
|
87604
|
+
proto.clarifai.api.ListNodepoolsRequest.prototype.clearUserAppId = function() {
|
|
87605
|
+
return this.setUserAppId(undefined);
|
|
87606
|
+
};
|
|
87607
|
+
|
|
87608
|
+
|
|
87609
|
+
/**
|
|
87610
|
+
* Returns whether this field is set.
|
|
87611
|
+
* @return {boolean}
|
|
87612
|
+
*/
|
|
87613
|
+
proto.clarifai.api.ListNodepoolsRequest.prototype.hasUserAppId = function() {
|
|
87614
|
+
return jspb.Message.getField(this, 1) != null;
|
|
87615
|
+
};
|
|
87616
|
+
|
|
87617
|
+
|
|
87618
|
+
/**
|
|
87619
|
+
* optional uint32 page = 2;
|
|
87620
|
+
* @return {number}
|
|
87621
|
+
*/
|
|
87622
|
+
proto.clarifai.api.ListNodepoolsRequest.prototype.getPage = function() {
|
|
87623
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
87624
|
+
};
|
|
87625
|
+
|
|
87626
|
+
|
|
87627
|
+
/**
|
|
87628
|
+
* @param {number} value
|
|
87629
|
+
* @return {!proto.clarifai.api.ListNodepoolsRequest} returns this
|
|
87630
|
+
*/
|
|
87631
|
+
proto.clarifai.api.ListNodepoolsRequest.prototype.setPage = function(value) {
|
|
87632
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
87633
|
+
};
|
|
87634
|
+
|
|
87635
|
+
|
|
87636
|
+
/**
|
|
87637
|
+
* optional uint32 per_page = 3;
|
|
87638
|
+
* @return {number}
|
|
87639
|
+
*/
|
|
87640
|
+
proto.clarifai.api.ListNodepoolsRequest.prototype.getPerPage = function() {
|
|
87641
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
87642
|
+
};
|
|
87643
|
+
|
|
87644
|
+
|
|
87645
|
+
/**
|
|
87646
|
+
* @param {number} value
|
|
87647
|
+
* @return {!proto.clarifai.api.ListNodepoolsRequest} returns this
|
|
87648
|
+
*/
|
|
87649
|
+
proto.clarifai.api.ListNodepoolsRequest.prototype.setPerPage = function(value) {
|
|
87650
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
87651
|
+
};
|
|
87652
|
+
|
|
87653
|
+
|
|
87654
|
+
|
|
87655
|
+
/**
|
|
87656
|
+
* List of repeated fields within this message type.
|
|
87657
|
+
* @private {!Array<number>}
|
|
87658
|
+
* @const
|
|
87659
|
+
*/
|
|
87660
|
+
proto.clarifai.api.PostNodepoolsRequest.repeatedFields_ = [2];
|
|
87661
|
+
|
|
87662
|
+
|
|
87663
|
+
|
|
87664
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
87665
|
+
/**
|
|
87666
|
+
* Creates an object representation of this proto.
|
|
87667
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
87668
|
+
* Optional fields that are not set will be set to undefined.
|
|
87669
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
87670
|
+
* For the list of reserved names please see:
|
|
87671
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
87672
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
87673
|
+
* JSPB instance for transitional soy proto support:
|
|
87674
|
+
* http://goto/soy-param-migration
|
|
87675
|
+
* @return {!Object}
|
|
87676
|
+
*/
|
|
87677
|
+
proto.clarifai.api.PostNodepoolsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
87678
|
+
return proto.clarifai.api.PostNodepoolsRequest.toObject(opt_includeInstance, this);
|
|
87679
|
+
};
|
|
87680
|
+
|
|
87681
|
+
|
|
87682
|
+
/**
|
|
87683
|
+
* Static version of the {@see toObject} method.
|
|
87684
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
87685
|
+
* the JSPB instance for transitional soy proto support:
|
|
87686
|
+
* http://goto/soy-param-migration
|
|
87687
|
+
* @param {!proto.clarifai.api.PostNodepoolsRequest} msg The msg instance to transform.
|
|
87688
|
+
* @return {!Object}
|
|
87689
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87690
|
+
*/
|
|
87691
|
+
proto.clarifai.api.PostNodepoolsRequest.toObject = function(includeInstance, msg) {
|
|
87692
|
+
var f, obj = {
|
|
87693
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
87694
|
+
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(),
|
|
87695
|
+
proto_clarifai_api_resources_pb.Nodepool.toObject, includeInstance)
|
|
87696
|
+
};
|
|
87697
|
+
|
|
87698
|
+
if (includeInstance) {
|
|
87699
|
+
obj.$jspbMessageInstance = msg;
|
|
87700
|
+
}
|
|
87701
|
+
return obj;
|
|
87702
|
+
};
|
|
87703
|
+
}
|
|
87704
|
+
|
|
87705
|
+
|
|
87706
|
+
/**
|
|
87707
|
+
* Deserializes binary data (in protobuf wire format).
|
|
87708
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
87709
|
+
* @return {!proto.clarifai.api.PostNodepoolsRequest}
|
|
87710
|
+
*/
|
|
87711
|
+
proto.clarifai.api.PostNodepoolsRequest.deserializeBinary = function(bytes) {
|
|
87712
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
87713
|
+
var msg = new proto.clarifai.api.PostNodepoolsRequest;
|
|
87714
|
+
return proto.clarifai.api.PostNodepoolsRequest.deserializeBinaryFromReader(msg, reader);
|
|
87715
|
+
};
|
|
87716
|
+
|
|
87717
|
+
|
|
87718
|
+
/**
|
|
87719
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
87720
|
+
* given reader into the given message object.
|
|
87721
|
+
* @param {!proto.clarifai.api.PostNodepoolsRequest} msg The message object to deserialize into.
|
|
87722
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
87723
|
+
* @return {!proto.clarifai.api.PostNodepoolsRequest}
|
|
87724
|
+
*/
|
|
87725
|
+
proto.clarifai.api.PostNodepoolsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
87726
|
+
while (reader.nextField()) {
|
|
87727
|
+
if (reader.isEndGroup()) {
|
|
87728
|
+
break;
|
|
87729
|
+
}
|
|
87730
|
+
var field = reader.getFieldNumber();
|
|
87731
|
+
switch (field) {
|
|
87732
|
+
case 1:
|
|
87733
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
87734
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
87735
|
+
msg.setUserAppId(value);
|
|
87736
|
+
break;
|
|
87737
|
+
case 2:
|
|
87738
|
+
var value = new proto_clarifai_api_resources_pb.Nodepool;
|
|
87739
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Nodepool.deserializeBinaryFromReader);
|
|
87740
|
+
msg.addNodepools(value);
|
|
87741
|
+
break;
|
|
87742
|
+
default:
|
|
87743
|
+
reader.skipField();
|
|
87744
|
+
break;
|
|
87745
|
+
}
|
|
87746
|
+
}
|
|
87747
|
+
return msg;
|
|
87748
|
+
};
|
|
87749
|
+
|
|
87750
|
+
|
|
87751
|
+
/**
|
|
87752
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
87753
|
+
* @return {!Uint8Array}
|
|
87754
|
+
*/
|
|
87755
|
+
proto.clarifai.api.PostNodepoolsRequest.prototype.serializeBinary = function() {
|
|
87756
|
+
var writer = new jspb.BinaryWriter();
|
|
87757
|
+
proto.clarifai.api.PostNodepoolsRequest.serializeBinaryToWriter(this, writer);
|
|
87758
|
+
return writer.getResultBuffer();
|
|
87759
|
+
};
|
|
87760
|
+
|
|
87761
|
+
|
|
87762
|
+
/**
|
|
87763
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
87764
|
+
* format), writing to the given BinaryWriter.
|
|
87765
|
+
* @param {!proto.clarifai.api.PostNodepoolsRequest} message
|
|
87766
|
+
* @param {!jspb.BinaryWriter} writer
|
|
87767
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87768
|
+
*/
|
|
87769
|
+
proto.clarifai.api.PostNodepoolsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
87770
|
+
var f = undefined;
|
|
87771
|
+
f = message.getUserAppId();
|
|
87772
|
+
if (f != null) {
|
|
87773
|
+
writer.writeMessage(
|
|
87774
|
+
1,
|
|
87775
|
+
f,
|
|
87776
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
87777
|
+
);
|
|
87778
|
+
}
|
|
87779
|
+
f = message.getNodepoolsList();
|
|
87780
|
+
if (f.length > 0) {
|
|
87781
|
+
writer.writeRepeatedMessage(
|
|
87782
|
+
2,
|
|
87783
|
+
f,
|
|
87784
|
+
proto_clarifai_api_resources_pb.Nodepool.serializeBinaryToWriter
|
|
87785
|
+
);
|
|
87786
|
+
}
|
|
87787
|
+
};
|
|
87788
|
+
|
|
87789
|
+
|
|
87790
|
+
/**
|
|
87791
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
87792
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
87793
|
+
*/
|
|
87794
|
+
proto.clarifai.api.PostNodepoolsRequest.prototype.getUserAppId = function() {
|
|
87795
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
87796
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
87797
|
+
};
|
|
87798
|
+
|
|
87799
|
+
|
|
87800
|
+
/**
|
|
87801
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
87802
|
+
* @return {!proto.clarifai.api.PostNodepoolsRequest} returns this
|
|
87803
|
+
*/
|
|
87804
|
+
proto.clarifai.api.PostNodepoolsRequest.prototype.setUserAppId = function(value) {
|
|
87805
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
87806
|
+
};
|
|
87807
|
+
|
|
87808
|
+
|
|
87809
|
+
/**
|
|
87810
|
+
* Clears the message field making it undefined.
|
|
87811
|
+
* @return {!proto.clarifai.api.PostNodepoolsRequest} returns this
|
|
87812
|
+
*/
|
|
87813
|
+
proto.clarifai.api.PostNodepoolsRequest.prototype.clearUserAppId = function() {
|
|
87814
|
+
return this.setUserAppId(undefined);
|
|
87815
|
+
};
|
|
87816
|
+
|
|
87817
|
+
|
|
87818
|
+
/**
|
|
87819
|
+
* Returns whether this field is set.
|
|
87820
|
+
* @return {boolean}
|
|
87821
|
+
*/
|
|
87822
|
+
proto.clarifai.api.PostNodepoolsRequest.prototype.hasUserAppId = function() {
|
|
87823
|
+
return jspb.Message.getField(this, 1) != null;
|
|
87824
|
+
};
|
|
87825
|
+
|
|
87826
|
+
|
|
87827
|
+
/**
|
|
87828
|
+
* repeated Nodepool nodepools = 2;
|
|
87829
|
+
* @return {!Array<!proto.clarifai.api.Nodepool>}
|
|
87830
|
+
*/
|
|
87831
|
+
proto.clarifai.api.PostNodepoolsRequest.prototype.getNodepoolsList = function() {
|
|
87832
|
+
return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (
|
|
87833
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Nodepool, 2));
|
|
87834
|
+
};
|
|
87835
|
+
|
|
87836
|
+
|
|
87837
|
+
/**
|
|
87838
|
+
* @param {!Array<!proto.clarifai.api.Nodepool>} value
|
|
87839
|
+
* @return {!proto.clarifai.api.PostNodepoolsRequest} returns this
|
|
87840
|
+
*/
|
|
87841
|
+
proto.clarifai.api.PostNodepoolsRequest.prototype.setNodepoolsList = function(value) {
|
|
87842
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
87843
|
+
};
|
|
87844
|
+
|
|
87845
|
+
|
|
87846
|
+
/**
|
|
87847
|
+
* @param {!proto.clarifai.api.Nodepool=} opt_value
|
|
87848
|
+
* @param {number=} opt_index
|
|
87849
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
87850
|
+
*/
|
|
87851
|
+
proto.clarifai.api.PostNodepoolsRequest.prototype.addNodepools = function(opt_value, opt_index) {
|
|
87852
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Nodepool, opt_index);
|
|
87853
|
+
};
|
|
87854
|
+
|
|
87855
|
+
|
|
87856
|
+
/**
|
|
87857
|
+
* Clears the list making it empty but non-null.
|
|
87858
|
+
* @return {!proto.clarifai.api.PostNodepoolsRequest} returns this
|
|
87859
|
+
*/
|
|
87860
|
+
proto.clarifai.api.PostNodepoolsRequest.prototype.clearNodepoolsList = function() {
|
|
87861
|
+
return this.setNodepoolsList([]);
|
|
87862
|
+
};
|
|
87863
|
+
|
|
87864
|
+
|
|
87865
|
+
|
|
87866
|
+
/**
|
|
87867
|
+
* List of repeated fields within this message type.
|
|
87868
|
+
* @private {!Array<number>}
|
|
87869
|
+
* @const
|
|
87870
|
+
*/
|
|
87871
|
+
proto.clarifai.api.PatchNodepoolsRequest.repeatedFields_ = [3];
|
|
87872
|
+
|
|
87873
|
+
|
|
87874
|
+
|
|
87875
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
87876
|
+
/**
|
|
87877
|
+
* Creates an object representation of this proto.
|
|
87878
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
87879
|
+
* Optional fields that are not set will be set to undefined.
|
|
87880
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
87881
|
+
* For the list of reserved names please see:
|
|
87882
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
87883
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
87884
|
+
* JSPB instance for transitional soy proto support:
|
|
87885
|
+
* http://goto/soy-param-migration
|
|
87886
|
+
* @return {!Object}
|
|
87887
|
+
*/
|
|
87888
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
87889
|
+
return proto.clarifai.api.PatchNodepoolsRequest.toObject(opt_includeInstance, this);
|
|
87890
|
+
};
|
|
87891
|
+
|
|
87892
|
+
|
|
87893
|
+
/**
|
|
87894
|
+
* Static version of the {@see toObject} method.
|
|
87895
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
87896
|
+
* the JSPB instance for transitional soy proto support:
|
|
87897
|
+
* http://goto/soy-param-migration
|
|
87898
|
+
* @param {!proto.clarifai.api.PatchNodepoolsRequest} msg The msg instance to transform.
|
|
87899
|
+
* @return {!Object}
|
|
87900
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87901
|
+
*/
|
|
87902
|
+
proto.clarifai.api.PatchNodepoolsRequest.toObject = function(includeInstance, msg) {
|
|
87903
|
+
var f, obj = {
|
|
87904
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
87905
|
+
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(),
|
|
87906
|
+
proto_clarifai_api_resources_pb.Nodepool.toObject, includeInstance),
|
|
87907
|
+
action: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
87908
|
+
};
|
|
87909
|
+
|
|
87910
|
+
if (includeInstance) {
|
|
87911
|
+
obj.$jspbMessageInstance = msg;
|
|
87912
|
+
}
|
|
87913
|
+
return obj;
|
|
87914
|
+
};
|
|
87915
|
+
}
|
|
87916
|
+
|
|
87917
|
+
|
|
87918
|
+
/**
|
|
87919
|
+
* Deserializes binary data (in protobuf wire format).
|
|
87920
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
87921
|
+
* @return {!proto.clarifai.api.PatchNodepoolsRequest}
|
|
87922
|
+
*/
|
|
87923
|
+
proto.clarifai.api.PatchNodepoolsRequest.deserializeBinary = function(bytes) {
|
|
87924
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
87925
|
+
var msg = new proto.clarifai.api.PatchNodepoolsRequest;
|
|
87926
|
+
return proto.clarifai.api.PatchNodepoolsRequest.deserializeBinaryFromReader(msg, reader);
|
|
87927
|
+
};
|
|
87928
|
+
|
|
87929
|
+
|
|
87930
|
+
/**
|
|
87931
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
87932
|
+
* given reader into the given message object.
|
|
87933
|
+
* @param {!proto.clarifai.api.PatchNodepoolsRequest} msg The message object to deserialize into.
|
|
87934
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
87935
|
+
* @return {!proto.clarifai.api.PatchNodepoolsRequest}
|
|
87936
|
+
*/
|
|
87937
|
+
proto.clarifai.api.PatchNodepoolsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
87938
|
+
while (reader.nextField()) {
|
|
87939
|
+
if (reader.isEndGroup()) {
|
|
87940
|
+
break;
|
|
87941
|
+
}
|
|
87942
|
+
var field = reader.getFieldNumber();
|
|
87943
|
+
switch (field) {
|
|
87944
|
+
case 1:
|
|
87945
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
87946
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
87947
|
+
msg.setUserAppId(value);
|
|
87948
|
+
break;
|
|
87949
|
+
case 3:
|
|
87950
|
+
var value = new proto_clarifai_api_resources_pb.Nodepool;
|
|
87951
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Nodepool.deserializeBinaryFromReader);
|
|
87952
|
+
msg.addNodepools(value);
|
|
87953
|
+
break;
|
|
87954
|
+
case 4:
|
|
87955
|
+
var value = /** @type {string} */ (reader.readString());
|
|
87956
|
+
msg.setAction(value);
|
|
87957
|
+
break;
|
|
87958
|
+
default:
|
|
87959
|
+
reader.skipField();
|
|
87960
|
+
break;
|
|
87961
|
+
}
|
|
87962
|
+
}
|
|
87963
|
+
return msg;
|
|
87964
|
+
};
|
|
87965
|
+
|
|
87966
|
+
|
|
87967
|
+
/**
|
|
87968
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
87969
|
+
* @return {!Uint8Array}
|
|
87970
|
+
*/
|
|
87971
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.serializeBinary = function() {
|
|
87972
|
+
var writer = new jspb.BinaryWriter();
|
|
87973
|
+
proto.clarifai.api.PatchNodepoolsRequest.serializeBinaryToWriter(this, writer);
|
|
87974
|
+
return writer.getResultBuffer();
|
|
87975
|
+
};
|
|
87976
|
+
|
|
87977
|
+
|
|
87978
|
+
/**
|
|
87979
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
87980
|
+
* format), writing to the given BinaryWriter.
|
|
87981
|
+
* @param {!proto.clarifai.api.PatchNodepoolsRequest} message
|
|
87982
|
+
* @param {!jspb.BinaryWriter} writer
|
|
87983
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
87984
|
+
*/
|
|
87985
|
+
proto.clarifai.api.PatchNodepoolsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
87986
|
+
var f = undefined;
|
|
87987
|
+
f = message.getUserAppId();
|
|
87988
|
+
if (f != null) {
|
|
87989
|
+
writer.writeMessage(
|
|
87990
|
+
1,
|
|
87991
|
+
f,
|
|
87992
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
87993
|
+
);
|
|
87994
|
+
}
|
|
87995
|
+
f = message.getNodepoolsList();
|
|
87996
|
+
if (f.length > 0) {
|
|
87997
|
+
writer.writeRepeatedMessage(
|
|
87998
|
+
3,
|
|
87999
|
+
f,
|
|
88000
|
+
proto_clarifai_api_resources_pb.Nodepool.serializeBinaryToWriter
|
|
88001
|
+
);
|
|
88002
|
+
}
|
|
88003
|
+
f = message.getAction();
|
|
88004
|
+
if (f.length > 0) {
|
|
88005
|
+
writer.writeString(
|
|
88006
|
+
4,
|
|
88007
|
+
f
|
|
88008
|
+
);
|
|
88009
|
+
}
|
|
88010
|
+
};
|
|
88011
|
+
|
|
88012
|
+
|
|
88013
|
+
/**
|
|
88014
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
88015
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
88016
|
+
*/
|
|
88017
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.getUserAppId = function() {
|
|
88018
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
88019
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
88020
|
+
};
|
|
88021
|
+
|
|
88022
|
+
|
|
88023
|
+
/**
|
|
88024
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
88025
|
+
* @return {!proto.clarifai.api.PatchNodepoolsRequest} returns this
|
|
88026
|
+
*/
|
|
88027
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.setUserAppId = function(value) {
|
|
88028
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
88029
|
+
};
|
|
88030
|
+
|
|
88031
|
+
|
|
88032
|
+
/**
|
|
88033
|
+
* Clears the message field making it undefined.
|
|
88034
|
+
* @return {!proto.clarifai.api.PatchNodepoolsRequest} returns this
|
|
88035
|
+
*/
|
|
88036
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.clearUserAppId = function() {
|
|
88037
|
+
return this.setUserAppId(undefined);
|
|
88038
|
+
};
|
|
88039
|
+
|
|
88040
|
+
|
|
88041
|
+
/**
|
|
88042
|
+
* Returns whether this field is set.
|
|
88043
|
+
* @return {boolean}
|
|
88044
|
+
*/
|
|
88045
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.hasUserAppId = function() {
|
|
88046
|
+
return jspb.Message.getField(this, 1) != null;
|
|
88047
|
+
};
|
|
88048
|
+
|
|
88049
|
+
|
|
88050
|
+
/**
|
|
88051
|
+
* repeated Nodepool nodepools = 3;
|
|
88052
|
+
* @return {!Array<!proto.clarifai.api.Nodepool>}
|
|
88053
|
+
*/
|
|
88054
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.getNodepoolsList = function() {
|
|
88055
|
+
return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (
|
|
88056
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Nodepool, 3));
|
|
88057
|
+
};
|
|
88058
|
+
|
|
88059
|
+
|
|
88060
|
+
/**
|
|
88061
|
+
* @param {!Array<!proto.clarifai.api.Nodepool>} value
|
|
88062
|
+
* @return {!proto.clarifai.api.PatchNodepoolsRequest} returns this
|
|
88063
|
+
*/
|
|
88064
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.setNodepoolsList = function(value) {
|
|
88065
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
88066
|
+
};
|
|
88067
|
+
|
|
88068
|
+
|
|
88069
|
+
/**
|
|
88070
|
+
* @param {!proto.clarifai.api.Nodepool=} opt_value
|
|
88071
|
+
* @param {number=} opt_index
|
|
88072
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
88073
|
+
*/
|
|
88074
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.addNodepools = function(opt_value, opt_index) {
|
|
88075
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Nodepool, opt_index);
|
|
88076
|
+
};
|
|
88077
|
+
|
|
88078
|
+
|
|
88079
|
+
/**
|
|
88080
|
+
* Clears the list making it empty but non-null.
|
|
88081
|
+
* @return {!proto.clarifai.api.PatchNodepoolsRequest} returns this
|
|
88082
|
+
*/
|
|
88083
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.clearNodepoolsList = function() {
|
|
88084
|
+
return this.setNodepoolsList([]);
|
|
88085
|
+
};
|
|
88086
|
+
|
|
88087
|
+
|
|
88088
|
+
/**
|
|
88089
|
+
* optional string action = 4;
|
|
88090
|
+
* @return {string}
|
|
88091
|
+
*/
|
|
88092
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.getAction = function() {
|
|
88093
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
88094
|
+
};
|
|
88095
|
+
|
|
88096
|
+
|
|
88097
|
+
/**
|
|
88098
|
+
* @param {string} value
|
|
88099
|
+
* @return {!proto.clarifai.api.PatchNodepoolsRequest} returns this
|
|
88100
|
+
*/
|
|
88101
|
+
proto.clarifai.api.PatchNodepoolsRequest.prototype.setAction = function(value) {
|
|
88102
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
88103
|
+
};
|
|
88104
|
+
|
|
88105
|
+
|
|
88106
|
+
|
|
88107
|
+
/**
|
|
88108
|
+
* List of repeated fields within this message type.
|
|
88109
|
+
* @private {!Array<number>}
|
|
88110
|
+
* @const
|
|
88111
|
+
*/
|
|
88112
|
+
proto.clarifai.api.DeleteNodepoolsRequest.repeatedFields_ = [2];
|
|
88113
|
+
|
|
88114
|
+
|
|
88115
|
+
|
|
88116
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
88117
|
+
/**
|
|
88118
|
+
* Creates an object representation of this proto.
|
|
88119
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
88120
|
+
* Optional fields that are not set will be set to undefined.
|
|
88121
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
88122
|
+
* For the list of reserved names please see:
|
|
88123
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
88124
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
88125
|
+
* JSPB instance for transitional soy proto support:
|
|
88126
|
+
* http://goto/soy-param-migration
|
|
88127
|
+
* @return {!Object}
|
|
88128
|
+
*/
|
|
88129
|
+
proto.clarifai.api.DeleteNodepoolsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
88130
|
+
return proto.clarifai.api.DeleteNodepoolsRequest.toObject(opt_includeInstance, this);
|
|
88131
|
+
};
|
|
88132
|
+
|
|
88133
|
+
|
|
88134
|
+
/**
|
|
88135
|
+
* Static version of the {@see toObject} method.
|
|
88136
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
88137
|
+
* the JSPB instance for transitional soy proto support:
|
|
88138
|
+
* http://goto/soy-param-migration
|
|
88139
|
+
* @param {!proto.clarifai.api.DeleteNodepoolsRequest} msg The msg instance to transform.
|
|
88140
|
+
* @return {!Object}
|
|
88141
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88142
|
+
*/
|
|
88143
|
+
proto.clarifai.api.DeleteNodepoolsRequest.toObject = function(includeInstance, msg) {
|
|
88144
|
+
var f, obj = {
|
|
88145
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
88146
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
88147
|
+
};
|
|
88148
|
+
|
|
88149
|
+
if (includeInstance) {
|
|
88150
|
+
obj.$jspbMessageInstance = msg;
|
|
88151
|
+
}
|
|
88152
|
+
return obj;
|
|
88153
|
+
};
|
|
88154
|
+
}
|
|
88155
|
+
|
|
88156
|
+
|
|
88157
|
+
/**
|
|
88158
|
+
* Deserializes binary data (in protobuf wire format).
|
|
88159
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
88160
|
+
* @return {!proto.clarifai.api.DeleteNodepoolsRequest}
|
|
88161
|
+
*/
|
|
88162
|
+
proto.clarifai.api.DeleteNodepoolsRequest.deserializeBinary = function(bytes) {
|
|
88163
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
88164
|
+
var msg = new proto.clarifai.api.DeleteNodepoolsRequest;
|
|
88165
|
+
return proto.clarifai.api.DeleteNodepoolsRequest.deserializeBinaryFromReader(msg, reader);
|
|
88166
|
+
};
|
|
88167
|
+
|
|
88168
|
+
|
|
88169
|
+
/**
|
|
88170
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
88171
|
+
* given reader into the given message object.
|
|
88172
|
+
* @param {!proto.clarifai.api.DeleteNodepoolsRequest} msg The message object to deserialize into.
|
|
88173
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
88174
|
+
* @return {!proto.clarifai.api.DeleteNodepoolsRequest}
|
|
88175
|
+
*/
|
|
88176
|
+
proto.clarifai.api.DeleteNodepoolsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
88177
|
+
while (reader.nextField()) {
|
|
88178
|
+
if (reader.isEndGroup()) {
|
|
88179
|
+
break;
|
|
88180
|
+
}
|
|
88181
|
+
var field = reader.getFieldNumber();
|
|
88182
|
+
switch (field) {
|
|
88183
|
+
case 1:
|
|
88184
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
88185
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
88186
|
+
msg.setUserAppId(value);
|
|
88187
|
+
break;
|
|
88188
|
+
case 2:
|
|
88189
|
+
var value = /** @type {string} */ (reader.readString());
|
|
88190
|
+
msg.addIds(value);
|
|
88191
|
+
break;
|
|
88192
|
+
default:
|
|
88193
|
+
reader.skipField();
|
|
88194
|
+
break;
|
|
88195
|
+
}
|
|
88196
|
+
}
|
|
88197
|
+
return msg;
|
|
88198
|
+
};
|
|
88199
|
+
|
|
88200
|
+
|
|
88201
|
+
/**
|
|
88202
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
88203
|
+
* @return {!Uint8Array}
|
|
88204
|
+
*/
|
|
88205
|
+
proto.clarifai.api.DeleteNodepoolsRequest.prototype.serializeBinary = function() {
|
|
88206
|
+
var writer = new jspb.BinaryWriter();
|
|
88207
|
+
proto.clarifai.api.DeleteNodepoolsRequest.serializeBinaryToWriter(this, writer);
|
|
88208
|
+
return writer.getResultBuffer();
|
|
88209
|
+
};
|
|
88210
|
+
|
|
88211
|
+
|
|
88212
|
+
/**
|
|
88213
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
88214
|
+
* format), writing to the given BinaryWriter.
|
|
88215
|
+
* @param {!proto.clarifai.api.DeleteNodepoolsRequest} message
|
|
88216
|
+
* @param {!jspb.BinaryWriter} writer
|
|
88217
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88218
|
+
*/
|
|
88219
|
+
proto.clarifai.api.DeleteNodepoolsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
88220
|
+
var f = undefined;
|
|
88221
|
+
f = message.getUserAppId();
|
|
88222
|
+
if (f != null) {
|
|
88223
|
+
writer.writeMessage(
|
|
88224
|
+
1,
|
|
88225
|
+
f,
|
|
88226
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
88227
|
+
);
|
|
88228
|
+
}
|
|
88229
|
+
f = message.getIdsList();
|
|
88230
|
+
if (f.length > 0) {
|
|
88231
|
+
writer.writeRepeatedString(
|
|
88232
|
+
2,
|
|
88233
|
+
f
|
|
88234
|
+
);
|
|
88235
|
+
}
|
|
88236
|
+
};
|
|
88237
|
+
|
|
88238
|
+
|
|
88239
|
+
/**
|
|
88240
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
88241
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
88242
|
+
*/
|
|
88243
|
+
proto.clarifai.api.DeleteNodepoolsRequest.prototype.getUserAppId = function() {
|
|
88244
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
88245
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
88246
|
+
};
|
|
88247
|
+
|
|
88248
|
+
|
|
88249
|
+
/**
|
|
88250
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
88251
|
+
* @return {!proto.clarifai.api.DeleteNodepoolsRequest} returns this
|
|
88252
|
+
*/
|
|
88253
|
+
proto.clarifai.api.DeleteNodepoolsRequest.prototype.setUserAppId = function(value) {
|
|
88254
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
88255
|
+
};
|
|
88256
|
+
|
|
88257
|
+
|
|
88258
|
+
/**
|
|
88259
|
+
* Clears the message field making it undefined.
|
|
88260
|
+
* @return {!proto.clarifai.api.DeleteNodepoolsRequest} returns this
|
|
88261
|
+
*/
|
|
88262
|
+
proto.clarifai.api.DeleteNodepoolsRequest.prototype.clearUserAppId = function() {
|
|
88263
|
+
return this.setUserAppId(undefined);
|
|
88264
|
+
};
|
|
88265
|
+
|
|
88266
|
+
|
|
88267
|
+
/**
|
|
88268
|
+
* Returns whether this field is set.
|
|
88269
|
+
* @return {boolean}
|
|
88270
|
+
*/
|
|
88271
|
+
proto.clarifai.api.DeleteNodepoolsRequest.prototype.hasUserAppId = function() {
|
|
88272
|
+
return jspb.Message.getField(this, 1) != null;
|
|
88273
|
+
};
|
|
88274
|
+
|
|
88275
|
+
|
|
88276
|
+
/**
|
|
88277
|
+
* repeated string ids = 2;
|
|
88278
|
+
* @return {!Array<string>}
|
|
88279
|
+
*/
|
|
88280
|
+
proto.clarifai.api.DeleteNodepoolsRequest.prototype.getIdsList = function() {
|
|
88281
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
88282
|
+
};
|
|
88283
|
+
|
|
88284
|
+
|
|
88285
|
+
/**
|
|
88286
|
+
* @param {!Array<string>} value
|
|
88287
|
+
* @return {!proto.clarifai.api.DeleteNodepoolsRequest} returns this
|
|
88288
|
+
*/
|
|
88289
|
+
proto.clarifai.api.DeleteNodepoolsRequest.prototype.setIdsList = function(value) {
|
|
88290
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
88291
|
+
};
|
|
88292
|
+
|
|
88293
|
+
|
|
88294
|
+
/**
|
|
88295
|
+
* @param {string} value
|
|
88296
|
+
* @param {number=} opt_index
|
|
88297
|
+
* @return {!proto.clarifai.api.DeleteNodepoolsRequest} returns this
|
|
88298
|
+
*/
|
|
88299
|
+
proto.clarifai.api.DeleteNodepoolsRequest.prototype.addIds = function(value, opt_index) {
|
|
88300
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
88301
|
+
};
|
|
88302
|
+
|
|
88303
|
+
|
|
88304
|
+
/**
|
|
88305
|
+
* Clears the list making it empty but non-null.
|
|
88306
|
+
* @return {!proto.clarifai.api.DeleteNodepoolsRequest} returns this
|
|
88307
|
+
*/
|
|
88308
|
+
proto.clarifai.api.DeleteNodepoolsRequest.prototype.clearIdsList = function() {
|
|
88309
|
+
return this.setIdsList([]);
|
|
88310
|
+
};
|
|
88311
|
+
|
|
88312
|
+
|
|
88313
|
+
|
|
88314
|
+
|
|
88315
|
+
|
|
88316
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
88317
|
+
/**
|
|
88318
|
+
* Creates an object representation of this proto.
|
|
88319
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
88320
|
+
* Optional fields that are not set will be set to undefined.
|
|
88321
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
88322
|
+
* For the list of reserved names please see:
|
|
88323
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
88324
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
88325
|
+
* JSPB instance for transitional soy proto support:
|
|
88326
|
+
* http://goto/soy-param-migration
|
|
88327
|
+
* @return {!Object}
|
|
88328
|
+
*/
|
|
88329
|
+
proto.clarifai.api.SingleNodepoolResponse.prototype.toObject = function(opt_includeInstance) {
|
|
88330
|
+
return proto.clarifai.api.SingleNodepoolResponse.toObject(opt_includeInstance, this);
|
|
88331
|
+
};
|
|
88332
|
+
|
|
88333
|
+
|
|
88334
|
+
/**
|
|
88335
|
+
* Static version of the {@see toObject} method.
|
|
88336
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
88337
|
+
* the JSPB instance for transitional soy proto support:
|
|
88338
|
+
* http://goto/soy-param-migration
|
|
88339
|
+
* @param {!proto.clarifai.api.SingleNodepoolResponse} msg The msg instance to transform.
|
|
88340
|
+
* @return {!Object}
|
|
88341
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88342
|
+
*/
|
|
88343
|
+
proto.clarifai.api.SingleNodepoolResponse.toObject = function(includeInstance, msg) {
|
|
88344
|
+
var f, obj = {
|
|
88345
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
88346
|
+
nodepool: (f = msg.getNodepool()) && proto_clarifai_api_resources_pb.Nodepool.toObject(includeInstance, f)
|
|
88347
|
+
};
|
|
88348
|
+
|
|
88349
|
+
if (includeInstance) {
|
|
88350
|
+
obj.$jspbMessageInstance = msg;
|
|
88351
|
+
}
|
|
88352
|
+
return obj;
|
|
88353
|
+
};
|
|
88354
|
+
}
|
|
88355
|
+
|
|
88356
|
+
|
|
88357
|
+
/**
|
|
88358
|
+
* Deserializes binary data (in protobuf wire format).
|
|
88359
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
88360
|
+
* @return {!proto.clarifai.api.SingleNodepoolResponse}
|
|
88361
|
+
*/
|
|
88362
|
+
proto.clarifai.api.SingleNodepoolResponse.deserializeBinary = function(bytes) {
|
|
88363
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
88364
|
+
var msg = new proto.clarifai.api.SingleNodepoolResponse;
|
|
88365
|
+
return proto.clarifai.api.SingleNodepoolResponse.deserializeBinaryFromReader(msg, reader);
|
|
88366
|
+
};
|
|
88367
|
+
|
|
88368
|
+
|
|
88369
|
+
/**
|
|
88370
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
88371
|
+
* given reader into the given message object.
|
|
88372
|
+
* @param {!proto.clarifai.api.SingleNodepoolResponse} msg The message object to deserialize into.
|
|
88373
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
88374
|
+
* @return {!proto.clarifai.api.SingleNodepoolResponse}
|
|
88375
|
+
*/
|
|
88376
|
+
proto.clarifai.api.SingleNodepoolResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
88377
|
+
while (reader.nextField()) {
|
|
88378
|
+
if (reader.isEndGroup()) {
|
|
88379
|
+
break;
|
|
88380
|
+
}
|
|
88381
|
+
var field = reader.getFieldNumber();
|
|
88382
|
+
switch (field) {
|
|
88383
|
+
case 1:
|
|
88384
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
88385
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
88386
|
+
msg.setStatus(value);
|
|
88387
|
+
break;
|
|
88388
|
+
case 2:
|
|
88389
|
+
var value = new proto_clarifai_api_resources_pb.Nodepool;
|
|
88390
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Nodepool.deserializeBinaryFromReader);
|
|
88391
|
+
msg.setNodepool(value);
|
|
88392
|
+
break;
|
|
88393
|
+
default:
|
|
88394
|
+
reader.skipField();
|
|
88395
|
+
break;
|
|
88396
|
+
}
|
|
88397
|
+
}
|
|
88398
|
+
return msg;
|
|
88399
|
+
};
|
|
88400
|
+
|
|
88401
|
+
|
|
88402
|
+
/**
|
|
88403
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
88404
|
+
* @return {!Uint8Array}
|
|
88405
|
+
*/
|
|
88406
|
+
proto.clarifai.api.SingleNodepoolResponse.prototype.serializeBinary = function() {
|
|
88407
|
+
var writer = new jspb.BinaryWriter();
|
|
88408
|
+
proto.clarifai.api.SingleNodepoolResponse.serializeBinaryToWriter(this, writer);
|
|
88409
|
+
return writer.getResultBuffer();
|
|
88410
|
+
};
|
|
88411
|
+
|
|
88412
|
+
|
|
88413
|
+
/**
|
|
88414
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
88415
|
+
* format), writing to the given BinaryWriter.
|
|
88416
|
+
* @param {!proto.clarifai.api.SingleNodepoolResponse} message
|
|
88417
|
+
* @param {!jspb.BinaryWriter} writer
|
|
88418
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88419
|
+
*/
|
|
88420
|
+
proto.clarifai.api.SingleNodepoolResponse.serializeBinaryToWriter = function(message, writer) {
|
|
88421
|
+
var f = undefined;
|
|
88422
|
+
f = message.getStatus();
|
|
88423
|
+
if (f != null) {
|
|
88424
|
+
writer.writeMessage(
|
|
88425
|
+
1,
|
|
88426
|
+
f,
|
|
88427
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
88428
|
+
);
|
|
88429
|
+
}
|
|
88430
|
+
f = message.getNodepool();
|
|
88431
|
+
if (f != null) {
|
|
88432
|
+
writer.writeMessage(
|
|
88433
|
+
2,
|
|
88434
|
+
f,
|
|
88435
|
+
proto_clarifai_api_resources_pb.Nodepool.serializeBinaryToWriter
|
|
88436
|
+
);
|
|
88437
|
+
}
|
|
88438
|
+
};
|
|
88439
|
+
|
|
88440
|
+
|
|
88441
|
+
/**
|
|
88442
|
+
* optional status.Status status = 1;
|
|
88443
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
88444
|
+
*/
|
|
88445
|
+
proto.clarifai.api.SingleNodepoolResponse.prototype.getStatus = function() {
|
|
88446
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
88447
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
88448
|
+
};
|
|
88449
|
+
|
|
88450
|
+
|
|
88451
|
+
/**
|
|
88452
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
88453
|
+
* @return {!proto.clarifai.api.SingleNodepoolResponse} returns this
|
|
88454
|
+
*/
|
|
88455
|
+
proto.clarifai.api.SingleNodepoolResponse.prototype.setStatus = function(value) {
|
|
88456
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
88457
|
+
};
|
|
88458
|
+
|
|
88459
|
+
|
|
88460
|
+
/**
|
|
88461
|
+
* Clears the message field making it undefined.
|
|
88462
|
+
* @return {!proto.clarifai.api.SingleNodepoolResponse} returns this
|
|
88463
|
+
*/
|
|
88464
|
+
proto.clarifai.api.SingleNodepoolResponse.prototype.clearStatus = function() {
|
|
88465
|
+
return this.setStatus(undefined);
|
|
88466
|
+
};
|
|
88467
|
+
|
|
88468
|
+
|
|
88469
|
+
/**
|
|
88470
|
+
* Returns whether this field is set.
|
|
88471
|
+
* @return {boolean}
|
|
88472
|
+
*/
|
|
88473
|
+
proto.clarifai.api.SingleNodepoolResponse.prototype.hasStatus = function() {
|
|
88474
|
+
return jspb.Message.getField(this, 1) != null;
|
|
88475
|
+
};
|
|
88476
|
+
|
|
88477
|
+
|
|
88478
|
+
/**
|
|
88479
|
+
* optional Nodepool nodepool = 2;
|
|
88480
|
+
* @return {?proto.clarifai.api.Nodepool}
|
|
88481
|
+
*/
|
|
88482
|
+
proto.clarifai.api.SingleNodepoolResponse.prototype.getNodepool = function() {
|
|
88483
|
+
return /** @type{?proto.clarifai.api.Nodepool} */ (
|
|
88484
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Nodepool, 2));
|
|
88485
|
+
};
|
|
88486
|
+
|
|
88487
|
+
|
|
88488
|
+
/**
|
|
88489
|
+
* @param {?proto.clarifai.api.Nodepool|undefined} value
|
|
88490
|
+
* @return {!proto.clarifai.api.SingleNodepoolResponse} returns this
|
|
88491
|
+
*/
|
|
88492
|
+
proto.clarifai.api.SingleNodepoolResponse.prototype.setNodepool = function(value) {
|
|
88493
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
88494
|
+
};
|
|
88495
|
+
|
|
88496
|
+
|
|
88497
|
+
/**
|
|
88498
|
+
* Clears the message field making it undefined.
|
|
88499
|
+
* @return {!proto.clarifai.api.SingleNodepoolResponse} returns this
|
|
88500
|
+
*/
|
|
88501
|
+
proto.clarifai.api.SingleNodepoolResponse.prototype.clearNodepool = function() {
|
|
88502
|
+
return this.setNodepool(undefined);
|
|
88503
|
+
};
|
|
88504
|
+
|
|
88505
|
+
|
|
88506
|
+
/**
|
|
88507
|
+
* Returns whether this field is set.
|
|
88508
|
+
* @return {boolean}
|
|
88509
|
+
*/
|
|
88510
|
+
proto.clarifai.api.SingleNodepoolResponse.prototype.hasNodepool = function() {
|
|
88511
|
+
return jspb.Message.getField(this, 2) != null;
|
|
88512
|
+
};
|
|
88513
|
+
|
|
88514
|
+
|
|
88515
|
+
|
|
88516
|
+
/**
|
|
88517
|
+
* List of repeated fields within this message type.
|
|
88518
|
+
* @private {!Array<number>}
|
|
88519
|
+
* @const
|
|
88520
|
+
*/
|
|
88521
|
+
proto.clarifai.api.MultiNodepoolResponse.repeatedFields_ = [2];
|
|
88522
|
+
|
|
88523
|
+
|
|
88524
|
+
|
|
88525
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
88526
|
+
/**
|
|
88527
|
+
* Creates an object representation of this proto.
|
|
88528
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
88529
|
+
* Optional fields that are not set will be set to undefined.
|
|
88530
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
88531
|
+
* For the list of reserved names please see:
|
|
88532
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
88533
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
88534
|
+
* JSPB instance for transitional soy proto support:
|
|
88535
|
+
* http://goto/soy-param-migration
|
|
88536
|
+
* @return {!Object}
|
|
88537
|
+
*/
|
|
88538
|
+
proto.clarifai.api.MultiNodepoolResponse.prototype.toObject = function(opt_includeInstance) {
|
|
88539
|
+
return proto.clarifai.api.MultiNodepoolResponse.toObject(opt_includeInstance, this);
|
|
88540
|
+
};
|
|
88541
|
+
|
|
88542
|
+
|
|
88543
|
+
/**
|
|
88544
|
+
* Static version of the {@see toObject} method.
|
|
88545
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
88546
|
+
* the JSPB instance for transitional soy proto support:
|
|
88547
|
+
* http://goto/soy-param-migration
|
|
88548
|
+
* @param {!proto.clarifai.api.MultiNodepoolResponse} msg The msg instance to transform.
|
|
88549
|
+
* @return {!Object}
|
|
88550
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88551
|
+
*/
|
|
88552
|
+
proto.clarifai.api.MultiNodepoolResponse.toObject = function(includeInstance, msg) {
|
|
88553
|
+
var f, obj = {
|
|
88554
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
88555
|
+
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(),
|
|
88556
|
+
proto_clarifai_api_resources_pb.Nodepool.toObject, includeInstance)
|
|
88557
|
+
};
|
|
88558
|
+
|
|
88559
|
+
if (includeInstance) {
|
|
88560
|
+
obj.$jspbMessageInstance = msg;
|
|
88561
|
+
}
|
|
88562
|
+
return obj;
|
|
88563
|
+
};
|
|
88564
|
+
}
|
|
88565
|
+
|
|
88566
|
+
|
|
88567
|
+
/**
|
|
88568
|
+
* Deserializes binary data (in protobuf wire format).
|
|
88569
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
88570
|
+
* @return {!proto.clarifai.api.MultiNodepoolResponse}
|
|
88571
|
+
*/
|
|
88572
|
+
proto.clarifai.api.MultiNodepoolResponse.deserializeBinary = function(bytes) {
|
|
88573
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
88574
|
+
var msg = new proto.clarifai.api.MultiNodepoolResponse;
|
|
88575
|
+
return proto.clarifai.api.MultiNodepoolResponse.deserializeBinaryFromReader(msg, reader);
|
|
88576
|
+
};
|
|
88577
|
+
|
|
88578
|
+
|
|
88579
|
+
/**
|
|
88580
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
88581
|
+
* given reader into the given message object.
|
|
88582
|
+
* @param {!proto.clarifai.api.MultiNodepoolResponse} msg The message object to deserialize into.
|
|
88583
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
88584
|
+
* @return {!proto.clarifai.api.MultiNodepoolResponse}
|
|
88585
|
+
*/
|
|
88586
|
+
proto.clarifai.api.MultiNodepoolResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
88587
|
+
while (reader.nextField()) {
|
|
88588
|
+
if (reader.isEndGroup()) {
|
|
88589
|
+
break;
|
|
88590
|
+
}
|
|
88591
|
+
var field = reader.getFieldNumber();
|
|
88592
|
+
switch (field) {
|
|
88593
|
+
case 1:
|
|
88594
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
88595
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
88596
|
+
msg.setStatus(value);
|
|
88597
|
+
break;
|
|
88598
|
+
case 2:
|
|
88599
|
+
var value = new proto_clarifai_api_resources_pb.Nodepool;
|
|
88600
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Nodepool.deserializeBinaryFromReader);
|
|
88601
|
+
msg.addNodepools(value);
|
|
88602
|
+
break;
|
|
88603
|
+
default:
|
|
88604
|
+
reader.skipField();
|
|
88605
|
+
break;
|
|
88606
|
+
}
|
|
88607
|
+
}
|
|
88608
|
+
return msg;
|
|
88609
|
+
};
|
|
88610
|
+
|
|
88611
|
+
|
|
88612
|
+
/**
|
|
88613
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
88614
|
+
* @return {!Uint8Array}
|
|
88615
|
+
*/
|
|
88616
|
+
proto.clarifai.api.MultiNodepoolResponse.prototype.serializeBinary = function() {
|
|
88617
|
+
var writer = new jspb.BinaryWriter();
|
|
88618
|
+
proto.clarifai.api.MultiNodepoolResponse.serializeBinaryToWriter(this, writer);
|
|
88619
|
+
return writer.getResultBuffer();
|
|
88620
|
+
};
|
|
88621
|
+
|
|
88622
|
+
|
|
88623
|
+
/**
|
|
88624
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
88625
|
+
* format), writing to the given BinaryWriter.
|
|
88626
|
+
* @param {!proto.clarifai.api.MultiNodepoolResponse} message
|
|
88627
|
+
* @param {!jspb.BinaryWriter} writer
|
|
88628
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88629
|
+
*/
|
|
88630
|
+
proto.clarifai.api.MultiNodepoolResponse.serializeBinaryToWriter = function(message, writer) {
|
|
88631
|
+
var f = undefined;
|
|
88632
|
+
f = message.getStatus();
|
|
88633
|
+
if (f != null) {
|
|
88634
|
+
writer.writeMessage(
|
|
88635
|
+
1,
|
|
88636
|
+
f,
|
|
88637
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
88638
|
+
);
|
|
88639
|
+
}
|
|
88640
|
+
f = message.getNodepoolsList();
|
|
88641
|
+
if (f.length > 0) {
|
|
88642
|
+
writer.writeRepeatedMessage(
|
|
88643
|
+
2,
|
|
88644
|
+
f,
|
|
88645
|
+
proto_clarifai_api_resources_pb.Nodepool.serializeBinaryToWriter
|
|
88646
|
+
);
|
|
88647
|
+
}
|
|
88648
|
+
};
|
|
88649
|
+
|
|
88650
|
+
|
|
88651
|
+
/**
|
|
88652
|
+
* optional status.Status status = 1;
|
|
88653
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
88654
|
+
*/
|
|
88655
|
+
proto.clarifai.api.MultiNodepoolResponse.prototype.getStatus = function() {
|
|
88656
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
88657
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
88658
|
+
};
|
|
88659
|
+
|
|
88660
|
+
|
|
88661
|
+
/**
|
|
88662
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
88663
|
+
* @return {!proto.clarifai.api.MultiNodepoolResponse} returns this
|
|
88664
|
+
*/
|
|
88665
|
+
proto.clarifai.api.MultiNodepoolResponse.prototype.setStatus = function(value) {
|
|
88666
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
88667
|
+
};
|
|
88668
|
+
|
|
88669
|
+
|
|
88670
|
+
/**
|
|
88671
|
+
* Clears the message field making it undefined.
|
|
88672
|
+
* @return {!proto.clarifai.api.MultiNodepoolResponse} returns this
|
|
88673
|
+
*/
|
|
88674
|
+
proto.clarifai.api.MultiNodepoolResponse.prototype.clearStatus = function() {
|
|
88675
|
+
return this.setStatus(undefined);
|
|
88676
|
+
};
|
|
88677
|
+
|
|
88678
|
+
|
|
88679
|
+
/**
|
|
88680
|
+
* Returns whether this field is set.
|
|
88681
|
+
* @return {boolean}
|
|
88682
|
+
*/
|
|
88683
|
+
proto.clarifai.api.MultiNodepoolResponse.prototype.hasStatus = function() {
|
|
88684
|
+
return jspb.Message.getField(this, 1) != null;
|
|
88685
|
+
};
|
|
88686
|
+
|
|
88687
|
+
|
|
88688
|
+
/**
|
|
88689
|
+
* repeated Nodepool nodepools = 2;
|
|
88690
|
+
* @return {!Array<!proto.clarifai.api.Nodepool>}
|
|
88691
|
+
*/
|
|
88692
|
+
proto.clarifai.api.MultiNodepoolResponse.prototype.getNodepoolsList = function() {
|
|
88693
|
+
return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (
|
|
88694
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Nodepool, 2));
|
|
88695
|
+
};
|
|
88696
|
+
|
|
88697
|
+
|
|
88698
|
+
/**
|
|
88699
|
+
* @param {!Array<!proto.clarifai.api.Nodepool>} value
|
|
88700
|
+
* @return {!proto.clarifai.api.MultiNodepoolResponse} returns this
|
|
88701
|
+
*/
|
|
88702
|
+
proto.clarifai.api.MultiNodepoolResponse.prototype.setNodepoolsList = function(value) {
|
|
88703
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
88704
|
+
};
|
|
88705
|
+
|
|
88706
|
+
|
|
88707
|
+
/**
|
|
88708
|
+
* @param {!proto.clarifai.api.Nodepool=} opt_value
|
|
88709
|
+
* @param {number=} opt_index
|
|
88710
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
88711
|
+
*/
|
|
88712
|
+
proto.clarifai.api.MultiNodepoolResponse.prototype.addNodepools = function(opt_value, opt_index) {
|
|
88713
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Nodepool, opt_index);
|
|
88714
|
+
};
|
|
88715
|
+
|
|
88716
|
+
|
|
88717
|
+
/**
|
|
88718
|
+
* Clears the list making it empty but non-null.
|
|
88719
|
+
* @return {!proto.clarifai.api.MultiNodepoolResponse} returns this
|
|
88720
|
+
*/
|
|
88721
|
+
proto.clarifai.api.MultiNodepoolResponse.prototype.clearNodepoolsList = function() {
|
|
88722
|
+
return this.setNodepoolsList([]);
|
|
88723
|
+
};
|
|
88724
|
+
|
|
88725
|
+
|
|
87078
88726
|
/**
|
|
87079
88727
|
* @enum {number}
|
|
87080
88728
|
*/
|