clarifai-web-grpc 10.10.2 → 10.11.1
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 +670 -6
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +126 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +1229 -2
- package/dist/esm/proto/clarifai/api/resources_pb.js +670 -6
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +126 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +1229 -2
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +111 -0
- package/proto/clarifai/api/resources_pb.js +844 -6
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +36 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +183 -0
- package/proto/clarifai/api/service_pb.d.ts +178 -0
- package/proto/clarifai/api/service_pb.js +1515 -2
|
@@ -134,6 +134,8 @@ goog.exportSymbol('proto.clarifai.api.ListAppKeysRequest', null, global);
|
|
|
134
134
|
goog.exportSymbol('proto.clarifai.api.ListAppsRequest', null, global);
|
|
135
135
|
goog.exportSymbol('proto.clarifai.api.ListAppsRequest.SortByCase', null, global);
|
|
136
136
|
goog.exportSymbol('proto.clarifai.api.ListBulkOperationsRequest', null, global);
|
|
137
|
+
goog.exportSymbol('proto.clarifai.api.ListCloudProvidersRequest', null, global);
|
|
138
|
+
goog.exportSymbol('proto.clarifai.api.ListCloudRegionsRequest', null, global);
|
|
137
139
|
goog.exportSymbol('proto.clarifai.api.ListCollaborationsRequest', null, global);
|
|
138
140
|
goog.exportSymbol('proto.clarifai.api.ListCollaboratorsRequest', null, global);
|
|
139
141
|
goog.exportSymbol('proto.clarifai.api.ListCollectorsRequest', null, global);
|
|
@@ -157,6 +159,7 @@ goog.exportSymbol('proto.clarifai.api.ListInstanceTypesRequest', null, global);
|
|
|
157
159
|
goog.exportSymbol('proto.clarifai.api.ListKeysRequest', null, global);
|
|
158
160
|
goog.exportSymbol('proto.clarifai.api.ListKnowledgeGraphsRequest', null, global);
|
|
159
161
|
goog.exportSymbol('proto.clarifai.api.ListLabelOrdersRequest', null, global);
|
|
162
|
+
goog.exportSymbol('proto.clarifai.api.ListLogEntriesRequest', null, global);
|
|
160
163
|
goog.exportSymbol('proto.clarifai.api.ListModelConceptsRequest', null, global);
|
|
161
164
|
goog.exportSymbol('proto.clarifai.api.ListModelInputsRequest', null, global);
|
|
162
165
|
goog.exportSymbol('proto.clarifai.api.ListModelReferencesRequest', null, global);
|
|
@@ -194,6 +197,8 @@ goog.exportSymbol('proto.clarifai.api.MultiAppDuplicationsResponse', null, globa
|
|
|
194
197
|
goog.exportSymbol('proto.clarifai.api.MultiAppResponse', null, global);
|
|
195
198
|
goog.exportSymbol('proto.clarifai.api.MultiAuditLogEntryResponse', null, global);
|
|
196
199
|
goog.exportSymbol('proto.clarifai.api.MultiBulkOperationsResponse', null, global);
|
|
200
|
+
goog.exportSymbol('proto.clarifai.api.MultiCloudProviderResponse', null, global);
|
|
201
|
+
goog.exportSymbol('proto.clarifai.api.MultiCloudRegionResponse', null, global);
|
|
197
202
|
goog.exportSymbol('proto.clarifai.api.MultiCollaborationsResponse', null, global);
|
|
198
203
|
goog.exportSymbol('proto.clarifai.api.MultiCollaboratorsResponse', null, global);
|
|
199
204
|
goog.exportSymbol('proto.clarifai.api.MultiCollectorResponse', null, global);
|
|
@@ -218,6 +223,7 @@ goog.exportSymbol('proto.clarifai.api.MultiInstanceTypeResponse', null, global);
|
|
|
218
223
|
goog.exportSymbol('proto.clarifai.api.MultiKeyResponse', null, global);
|
|
219
224
|
goog.exportSymbol('proto.clarifai.api.MultiKnowledgeGraphResponse', null, global);
|
|
220
225
|
goog.exportSymbol('proto.clarifai.api.MultiLabelOrderResponse', null, global);
|
|
226
|
+
goog.exportSymbol('proto.clarifai.api.MultiLogEntryResponse', null, global);
|
|
221
227
|
goog.exportSymbol('proto.clarifai.api.MultiModelCheckConsentResponse', null, global);
|
|
222
228
|
goog.exportSymbol('proto.clarifai.api.MultiModelLanguageResponse', null, global);
|
|
223
229
|
goog.exportSymbol('proto.clarifai.api.MultiModelReferenceResponse', null, global);
|
|
@@ -2507,6 +2513,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2507
2513
|
*/
|
|
2508
2514
|
proto.clarifai.api.ListModelInputsRequest.displayName = 'proto.clarifai.api.ListModelInputsRequest';
|
|
2509
2515
|
}
|
|
2516
|
+
/**
|
|
2517
|
+
* Generated by JsPbCodeGenerator.
|
|
2518
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2519
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2520
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2521
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2522
|
+
* valid.
|
|
2523
|
+
* @extends {jspb.Message}
|
|
2524
|
+
* @constructor
|
|
2525
|
+
*/
|
|
2526
|
+
proto.clarifai.api.ListLogEntriesRequest = function (opt_data) {
|
|
2527
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2528
|
+
};
|
|
2529
|
+
goog.inherits(proto.clarifai.api.ListLogEntriesRequest, jspb.Message);
|
|
2530
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2531
|
+
/**
|
|
2532
|
+
* @public
|
|
2533
|
+
* @override
|
|
2534
|
+
*/
|
|
2535
|
+
proto.clarifai.api.ListLogEntriesRequest.displayName = 'proto.clarifai.api.ListLogEntriesRequest';
|
|
2536
|
+
}
|
|
2510
2537
|
/**
|
|
2511
2538
|
* Generated by JsPbCodeGenerator.
|
|
2512
2539
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4040,6 +4067,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4040
4067
|
*/
|
|
4041
4068
|
proto.clarifai.api.MultiOutputResponse.displayName = 'proto.clarifai.api.MultiOutputResponse';
|
|
4042
4069
|
}
|
|
4070
|
+
/**
|
|
4071
|
+
* Generated by JsPbCodeGenerator.
|
|
4072
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4073
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4074
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4075
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4076
|
+
* valid.
|
|
4077
|
+
* @extends {jspb.Message}
|
|
4078
|
+
* @constructor
|
|
4079
|
+
*/
|
|
4080
|
+
proto.clarifai.api.MultiLogEntryResponse = function (opt_data) {
|
|
4081
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiLogEntryResponse.repeatedFields_, null);
|
|
4082
|
+
};
|
|
4083
|
+
goog.inherits(proto.clarifai.api.MultiLogEntryResponse, jspb.Message);
|
|
4084
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4085
|
+
/**
|
|
4086
|
+
* @public
|
|
4087
|
+
* @override
|
|
4088
|
+
*/
|
|
4089
|
+
proto.clarifai.api.MultiLogEntryResponse.displayName = 'proto.clarifai.api.MultiLogEntryResponse';
|
|
4090
|
+
}
|
|
4043
4091
|
/**
|
|
4044
4092
|
* Generated by JsPbCodeGenerator.
|
|
4045
4093
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7316,6 +7364,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
7316
7364
|
*/
|
|
7317
7365
|
proto.clarifai.api.MultiTrainingTimeEstimateResponse.displayName = 'proto.clarifai.api.MultiTrainingTimeEstimateResponse';
|
|
7318
7366
|
}
|
|
7367
|
+
/**
|
|
7368
|
+
* Generated by JsPbCodeGenerator.
|
|
7369
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7370
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7371
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7372
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7373
|
+
* valid.
|
|
7374
|
+
* @extends {jspb.Message}
|
|
7375
|
+
* @constructor
|
|
7376
|
+
*/
|
|
7377
|
+
proto.clarifai.api.ListCloudProvidersRequest = function (opt_data) {
|
|
7378
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
7379
|
+
};
|
|
7380
|
+
goog.inherits(proto.clarifai.api.ListCloudProvidersRequest, jspb.Message);
|
|
7381
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7382
|
+
/**
|
|
7383
|
+
* @public
|
|
7384
|
+
* @override
|
|
7385
|
+
*/
|
|
7386
|
+
proto.clarifai.api.ListCloudProvidersRequest.displayName = 'proto.clarifai.api.ListCloudProvidersRequest';
|
|
7387
|
+
}
|
|
7388
|
+
/**
|
|
7389
|
+
* Generated by JsPbCodeGenerator.
|
|
7390
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7391
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7392
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7393
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7394
|
+
* valid.
|
|
7395
|
+
* @extends {jspb.Message}
|
|
7396
|
+
* @constructor
|
|
7397
|
+
*/
|
|
7398
|
+
proto.clarifai.api.MultiCloudProviderResponse = function (opt_data) {
|
|
7399
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiCloudProviderResponse.repeatedFields_, null);
|
|
7400
|
+
};
|
|
7401
|
+
goog.inherits(proto.clarifai.api.MultiCloudProviderResponse, jspb.Message);
|
|
7402
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7403
|
+
/**
|
|
7404
|
+
* @public
|
|
7405
|
+
* @override
|
|
7406
|
+
*/
|
|
7407
|
+
proto.clarifai.api.MultiCloudProviderResponse.displayName = 'proto.clarifai.api.MultiCloudProviderResponse';
|
|
7408
|
+
}
|
|
7409
|
+
/**
|
|
7410
|
+
* Generated by JsPbCodeGenerator.
|
|
7411
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7412
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7413
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7414
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7415
|
+
* valid.
|
|
7416
|
+
* @extends {jspb.Message}
|
|
7417
|
+
* @constructor
|
|
7418
|
+
*/
|
|
7419
|
+
proto.clarifai.api.ListCloudRegionsRequest = function (opt_data) {
|
|
7420
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
7421
|
+
};
|
|
7422
|
+
goog.inherits(proto.clarifai.api.ListCloudRegionsRequest, jspb.Message);
|
|
7423
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7424
|
+
/**
|
|
7425
|
+
* @public
|
|
7426
|
+
* @override
|
|
7427
|
+
*/
|
|
7428
|
+
proto.clarifai.api.ListCloudRegionsRequest.displayName = 'proto.clarifai.api.ListCloudRegionsRequest';
|
|
7429
|
+
}
|
|
7430
|
+
/**
|
|
7431
|
+
* Generated by JsPbCodeGenerator.
|
|
7432
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7433
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7434
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7435
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7436
|
+
* valid.
|
|
7437
|
+
* @extends {jspb.Message}
|
|
7438
|
+
* @constructor
|
|
7439
|
+
*/
|
|
7440
|
+
proto.clarifai.api.MultiCloudRegionResponse = function (opt_data) {
|
|
7441
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiCloudRegionResponse.repeatedFields_, null);
|
|
7442
|
+
};
|
|
7443
|
+
goog.inherits(proto.clarifai.api.MultiCloudRegionResponse, jspb.Message);
|
|
7444
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7445
|
+
/**
|
|
7446
|
+
* @public
|
|
7447
|
+
* @override
|
|
7448
|
+
*/
|
|
7449
|
+
proto.clarifai.api.MultiCloudRegionResponse.displayName = 'proto.clarifai.api.MultiCloudRegionResponse';
|
|
7450
|
+
}
|
|
7319
7451
|
/**
|
|
7320
7452
|
* Generated by JsPbCodeGenerator.
|
|
7321
7453
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -27118,6 +27250,335 @@ proto.clarifai.api.ListModelInputsRequest.prototype.getPerPage = function () {
|
|
|
27118
27250
|
proto.clarifai.api.ListModelInputsRequest.prototype.setPerPage = function (value) {
|
|
27119
27251
|
return jspb.Message.setProto3IntField(this, 5, value);
|
|
27120
27252
|
};
|
|
27253
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27254
|
+
/**
|
|
27255
|
+
* Creates an object representation of this proto.
|
|
27256
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
27257
|
+
* Optional fields that are not set will be set to undefined.
|
|
27258
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
27259
|
+
* For the list of reserved names please see:
|
|
27260
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
27261
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
27262
|
+
* JSPB instance for transitional soy proto support:
|
|
27263
|
+
* http://goto/soy-param-migration
|
|
27264
|
+
* @return {!Object}
|
|
27265
|
+
*/
|
|
27266
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.toObject = function (opt_includeInstance) {
|
|
27267
|
+
return proto.clarifai.api.ListLogEntriesRequest.toObject(opt_includeInstance, this);
|
|
27268
|
+
};
|
|
27269
|
+
/**
|
|
27270
|
+
* Static version of the {@see toObject} method.
|
|
27271
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
27272
|
+
* the JSPB instance for transitional soy proto support:
|
|
27273
|
+
* http://goto/soy-param-migration
|
|
27274
|
+
* @param {!proto.clarifai.api.ListLogEntriesRequest} msg The msg instance to transform.
|
|
27275
|
+
* @return {!Object}
|
|
27276
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
27277
|
+
*/
|
|
27278
|
+
proto.clarifai.api.ListLogEntriesRequest.toObject = function (includeInstance, msg) {
|
|
27279
|
+
var f, obj = {
|
|
27280
|
+
page: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
27281
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
27282
|
+
logType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
27283
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
27284
|
+
modelId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
27285
|
+
modelVersionId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
27286
|
+
workflowId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
27287
|
+
computeClusterId: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
27288
|
+
nodepoolId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
27289
|
+
runnerId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
27290
|
+
};
|
|
27291
|
+
if (includeInstance) {
|
|
27292
|
+
obj.$jspbMessageInstance = msg;
|
|
27293
|
+
}
|
|
27294
|
+
return obj;
|
|
27295
|
+
};
|
|
27296
|
+
}
|
|
27297
|
+
/**
|
|
27298
|
+
* Deserializes binary data (in protobuf wire format).
|
|
27299
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
27300
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest}
|
|
27301
|
+
*/
|
|
27302
|
+
proto.clarifai.api.ListLogEntriesRequest.deserializeBinary = function (bytes) {
|
|
27303
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
27304
|
+
var msg = new proto.clarifai.api.ListLogEntriesRequest;
|
|
27305
|
+
return proto.clarifai.api.ListLogEntriesRequest.deserializeBinaryFromReader(msg, reader);
|
|
27306
|
+
};
|
|
27307
|
+
/**
|
|
27308
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
27309
|
+
* given reader into the given message object.
|
|
27310
|
+
* @param {!proto.clarifai.api.ListLogEntriesRequest} msg The message object to deserialize into.
|
|
27311
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
27312
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest}
|
|
27313
|
+
*/
|
|
27314
|
+
proto.clarifai.api.ListLogEntriesRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
27315
|
+
while (reader.nextField()) {
|
|
27316
|
+
if (reader.isEndGroup()) {
|
|
27317
|
+
break;
|
|
27318
|
+
}
|
|
27319
|
+
var field = reader.getFieldNumber();
|
|
27320
|
+
switch (field) {
|
|
27321
|
+
case 1:
|
|
27322
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
27323
|
+
msg.setPage(value);
|
|
27324
|
+
break;
|
|
27325
|
+
case 2:
|
|
27326
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
27327
|
+
msg.setPerPage(value);
|
|
27328
|
+
break;
|
|
27329
|
+
case 3:
|
|
27330
|
+
var value = /** @type {string} */ (reader.readString());
|
|
27331
|
+
msg.setLogType(value);
|
|
27332
|
+
break;
|
|
27333
|
+
case 4:
|
|
27334
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
27335
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
27336
|
+
msg.setUserAppId(value);
|
|
27337
|
+
break;
|
|
27338
|
+
case 5:
|
|
27339
|
+
var value = /** @type {string} */ (reader.readString());
|
|
27340
|
+
msg.setModelId(value);
|
|
27341
|
+
break;
|
|
27342
|
+
case 6:
|
|
27343
|
+
var value = /** @type {string} */ (reader.readString());
|
|
27344
|
+
msg.setModelVersionId(value);
|
|
27345
|
+
break;
|
|
27346
|
+
case 7:
|
|
27347
|
+
var value = /** @type {string} */ (reader.readString());
|
|
27348
|
+
msg.setWorkflowId(value);
|
|
27349
|
+
break;
|
|
27350
|
+
case 9:
|
|
27351
|
+
var value = /** @type {string} */ (reader.readString());
|
|
27352
|
+
msg.setComputeClusterId(value);
|
|
27353
|
+
break;
|
|
27354
|
+
case 10:
|
|
27355
|
+
var value = /** @type {string} */ (reader.readString());
|
|
27356
|
+
msg.setNodepoolId(value);
|
|
27357
|
+
break;
|
|
27358
|
+
case 11:
|
|
27359
|
+
var value = /** @type {string} */ (reader.readString());
|
|
27360
|
+
msg.setRunnerId(value);
|
|
27361
|
+
break;
|
|
27362
|
+
default:
|
|
27363
|
+
reader.skipField();
|
|
27364
|
+
break;
|
|
27365
|
+
}
|
|
27366
|
+
}
|
|
27367
|
+
return msg;
|
|
27368
|
+
};
|
|
27369
|
+
/**
|
|
27370
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
27371
|
+
* @return {!Uint8Array}
|
|
27372
|
+
*/
|
|
27373
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.serializeBinary = function () {
|
|
27374
|
+
var writer = new jspb.BinaryWriter();
|
|
27375
|
+
proto.clarifai.api.ListLogEntriesRequest.serializeBinaryToWriter(this, writer);
|
|
27376
|
+
return writer.getResultBuffer();
|
|
27377
|
+
};
|
|
27378
|
+
/**
|
|
27379
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
27380
|
+
* format), writing to the given BinaryWriter.
|
|
27381
|
+
* @param {!proto.clarifai.api.ListLogEntriesRequest} message
|
|
27382
|
+
* @param {!jspb.BinaryWriter} writer
|
|
27383
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
27384
|
+
*/
|
|
27385
|
+
proto.clarifai.api.ListLogEntriesRequest.serializeBinaryToWriter = function (message, writer) {
|
|
27386
|
+
var f = undefined;
|
|
27387
|
+
f = message.getPage();
|
|
27388
|
+
if (f !== 0) {
|
|
27389
|
+
writer.writeUint32(1, f);
|
|
27390
|
+
}
|
|
27391
|
+
f = message.getPerPage();
|
|
27392
|
+
if (f !== 0) {
|
|
27393
|
+
writer.writeUint32(2, f);
|
|
27394
|
+
}
|
|
27395
|
+
f = message.getLogType();
|
|
27396
|
+
if (f.length > 0) {
|
|
27397
|
+
writer.writeString(3, f);
|
|
27398
|
+
}
|
|
27399
|
+
f = message.getUserAppId();
|
|
27400
|
+
if (f != null) {
|
|
27401
|
+
writer.writeMessage(4, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
27402
|
+
}
|
|
27403
|
+
f = message.getModelId();
|
|
27404
|
+
if (f.length > 0) {
|
|
27405
|
+
writer.writeString(5, f);
|
|
27406
|
+
}
|
|
27407
|
+
f = message.getModelVersionId();
|
|
27408
|
+
if (f.length > 0) {
|
|
27409
|
+
writer.writeString(6, f);
|
|
27410
|
+
}
|
|
27411
|
+
f = message.getWorkflowId();
|
|
27412
|
+
if (f.length > 0) {
|
|
27413
|
+
writer.writeString(7, f);
|
|
27414
|
+
}
|
|
27415
|
+
f = message.getComputeClusterId();
|
|
27416
|
+
if (f.length > 0) {
|
|
27417
|
+
writer.writeString(9, f);
|
|
27418
|
+
}
|
|
27419
|
+
f = message.getNodepoolId();
|
|
27420
|
+
if (f.length > 0) {
|
|
27421
|
+
writer.writeString(10, f);
|
|
27422
|
+
}
|
|
27423
|
+
f = message.getRunnerId();
|
|
27424
|
+
if (f.length > 0) {
|
|
27425
|
+
writer.writeString(11, f);
|
|
27426
|
+
}
|
|
27427
|
+
};
|
|
27428
|
+
/**
|
|
27429
|
+
* optional uint32 page = 1;
|
|
27430
|
+
* @return {number}
|
|
27431
|
+
*/
|
|
27432
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getPage = function () {
|
|
27433
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
27434
|
+
};
|
|
27435
|
+
/**
|
|
27436
|
+
* @param {number} value
|
|
27437
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27438
|
+
*/
|
|
27439
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setPage = function (value) {
|
|
27440
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
27441
|
+
};
|
|
27442
|
+
/**
|
|
27443
|
+
* optional uint32 per_page = 2;
|
|
27444
|
+
* @return {number}
|
|
27445
|
+
*/
|
|
27446
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getPerPage = function () {
|
|
27447
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
27448
|
+
};
|
|
27449
|
+
/**
|
|
27450
|
+
* @param {number} value
|
|
27451
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27452
|
+
*/
|
|
27453
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setPerPage = function (value) {
|
|
27454
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
27455
|
+
};
|
|
27456
|
+
/**
|
|
27457
|
+
* optional string log_type = 3;
|
|
27458
|
+
* @return {string}
|
|
27459
|
+
*/
|
|
27460
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getLogType = function () {
|
|
27461
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
27462
|
+
};
|
|
27463
|
+
/**
|
|
27464
|
+
* @param {string} value
|
|
27465
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27466
|
+
*/
|
|
27467
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setLogType = function (value) {
|
|
27468
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
27469
|
+
};
|
|
27470
|
+
/**
|
|
27471
|
+
* optional UserAppIDSet user_app_id = 4;
|
|
27472
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
27473
|
+
*/
|
|
27474
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getUserAppId = function () {
|
|
27475
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 4));
|
|
27476
|
+
};
|
|
27477
|
+
/**
|
|
27478
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
27479
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27480
|
+
*/
|
|
27481
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setUserAppId = function (value) {
|
|
27482
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
27483
|
+
};
|
|
27484
|
+
/**
|
|
27485
|
+
* Clears the message field making it undefined.
|
|
27486
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27487
|
+
*/
|
|
27488
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.clearUserAppId = function () {
|
|
27489
|
+
return this.setUserAppId(undefined);
|
|
27490
|
+
};
|
|
27491
|
+
/**
|
|
27492
|
+
* Returns whether this field is set.
|
|
27493
|
+
* @return {boolean}
|
|
27494
|
+
*/
|
|
27495
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.hasUserAppId = function () {
|
|
27496
|
+
return jspb.Message.getField(this, 4) != null;
|
|
27497
|
+
};
|
|
27498
|
+
/**
|
|
27499
|
+
* optional string model_id = 5;
|
|
27500
|
+
* @return {string}
|
|
27501
|
+
*/
|
|
27502
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getModelId = function () {
|
|
27503
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
27504
|
+
};
|
|
27505
|
+
/**
|
|
27506
|
+
* @param {string} value
|
|
27507
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27508
|
+
*/
|
|
27509
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setModelId = function (value) {
|
|
27510
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
27511
|
+
};
|
|
27512
|
+
/**
|
|
27513
|
+
* optional string model_version_id = 6;
|
|
27514
|
+
* @return {string}
|
|
27515
|
+
*/
|
|
27516
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getModelVersionId = function () {
|
|
27517
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
27518
|
+
};
|
|
27519
|
+
/**
|
|
27520
|
+
* @param {string} value
|
|
27521
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27522
|
+
*/
|
|
27523
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setModelVersionId = function (value) {
|
|
27524
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
27525
|
+
};
|
|
27526
|
+
/**
|
|
27527
|
+
* optional string workflow_id = 7;
|
|
27528
|
+
* @return {string}
|
|
27529
|
+
*/
|
|
27530
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getWorkflowId = function () {
|
|
27531
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
27532
|
+
};
|
|
27533
|
+
/**
|
|
27534
|
+
* @param {string} value
|
|
27535
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27536
|
+
*/
|
|
27537
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setWorkflowId = function (value) {
|
|
27538
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
27539
|
+
};
|
|
27540
|
+
/**
|
|
27541
|
+
* optional string compute_cluster_id = 9;
|
|
27542
|
+
* @return {string}
|
|
27543
|
+
*/
|
|
27544
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getComputeClusterId = function () {
|
|
27545
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
27546
|
+
};
|
|
27547
|
+
/**
|
|
27548
|
+
* @param {string} value
|
|
27549
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27550
|
+
*/
|
|
27551
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setComputeClusterId = function (value) {
|
|
27552
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
27553
|
+
};
|
|
27554
|
+
/**
|
|
27555
|
+
* optional string nodepool_id = 10;
|
|
27556
|
+
* @return {string}
|
|
27557
|
+
*/
|
|
27558
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getNodepoolId = function () {
|
|
27559
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
27560
|
+
};
|
|
27561
|
+
/**
|
|
27562
|
+
* @param {string} value
|
|
27563
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27564
|
+
*/
|
|
27565
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setNodepoolId = function (value) {
|
|
27566
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
27567
|
+
};
|
|
27568
|
+
/**
|
|
27569
|
+
* optional string runner_id = 11;
|
|
27570
|
+
* @return {string}
|
|
27571
|
+
*/
|
|
27572
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getRunnerId = function () {
|
|
27573
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
27574
|
+
};
|
|
27575
|
+
/**
|
|
27576
|
+
* @param {string} value
|
|
27577
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
27578
|
+
*/
|
|
27579
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setRunnerId = function (value) {
|
|
27580
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
27581
|
+
};
|
|
27121
27582
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27122
27583
|
/**
|
|
27123
27584
|
* Creates an object representation of this proto.
|
|
@@ -41841,6 +42302,173 @@ proto.clarifai.api.MultiOutputResponse.prototype.addOutputs = function (opt_valu
|
|
|
41841
42302
|
proto.clarifai.api.MultiOutputResponse.prototype.clearOutputsList = function () {
|
|
41842
42303
|
return this.setOutputsList([]);
|
|
41843
42304
|
};
|
|
42305
|
+
/**
|
|
42306
|
+
* List of repeated fields within this message type.
|
|
42307
|
+
* @private {!Array<number>}
|
|
42308
|
+
* @const
|
|
42309
|
+
*/
|
|
42310
|
+
proto.clarifai.api.MultiLogEntryResponse.repeatedFields_ = [2];
|
|
42311
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42312
|
+
/**
|
|
42313
|
+
* Creates an object representation of this proto.
|
|
42314
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
42315
|
+
* Optional fields that are not set will be set to undefined.
|
|
42316
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
42317
|
+
* For the list of reserved names please see:
|
|
42318
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
42319
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
42320
|
+
* JSPB instance for transitional soy proto support:
|
|
42321
|
+
* http://goto/soy-param-migration
|
|
42322
|
+
* @return {!Object}
|
|
42323
|
+
*/
|
|
42324
|
+
proto.clarifai.api.MultiLogEntryResponse.prototype.toObject = function (opt_includeInstance) {
|
|
42325
|
+
return proto.clarifai.api.MultiLogEntryResponse.toObject(opt_includeInstance, this);
|
|
42326
|
+
};
|
|
42327
|
+
/**
|
|
42328
|
+
* Static version of the {@see toObject} method.
|
|
42329
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
42330
|
+
* the JSPB instance for transitional soy proto support:
|
|
42331
|
+
* http://goto/soy-param-migration
|
|
42332
|
+
* @param {!proto.clarifai.api.MultiLogEntryResponse} msg The msg instance to transform.
|
|
42333
|
+
* @return {!Object}
|
|
42334
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42335
|
+
*/
|
|
42336
|
+
proto.clarifai.api.MultiLogEntryResponse.toObject = function (includeInstance, msg) {
|
|
42337
|
+
var f, obj = {
|
|
42338
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
42339
|
+
logEntriesList: jspb.Message.toObjectList(msg.getLogEntriesList(), proto_clarifai_api_resources_pb.LogEntry.toObject, includeInstance)
|
|
42340
|
+
};
|
|
42341
|
+
if (includeInstance) {
|
|
42342
|
+
obj.$jspbMessageInstance = msg;
|
|
42343
|
+
}
|
|
42344
|
+
return obj;
|
|
42345
|
+
};
|
|
42346
|
+
}
|
|
42347
|
+
/**
|
|
42348
|
+
* Deserializes binary data (in protobuf wire format).
|
|
42349
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
42350
|
+
* @return {!proto.clarifai.api.MultiLogEntryResponse}
|
|
42351
|
+
*/
|
|
42352
|
+
proto.clarifai.api.MultiLogEntryResponse.deserializeBinary = function (bytes) {
|
|
42353
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
42354
|
+
var msg = new proto.clarifai.api.MultiLogEntryResponse;
|
|
42355
|
+
return proto.clarifai.api.MultiLogEntryResponse.deserializeBinaryFromReader(msg, reader);
|
|
42356
|
+
};
|
|
42357
|
+
/**
|
|
42358
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
42359
|
+
* given reader into the given message object.
|
|
42360
|
+
* @param {!proto.clarifai.api.MultiLogEntryResponse} msg The message object to deserialize into.
|
|
42361
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
42362
|
+
* @return {!proto.clarifai.api.MultiLogEntryResponse}
|
|
42363
|
+
*/
|
|
42364
|
+
proto.clarifai.api.MultiLogEntryResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
42365
|
+
while (reader.nextField()) {
|
|
42366
|
+
if (reader.isEndGroup()) {
|
|
42367
|
+
break;
|
|
42368
|
+
}
|
|
42369
|
+
var field = reader.getFieldNumber();
|
|
42370
|
+
switch (field) {
|
|
42371
|
+
case 1:
|
|
42372
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
42373
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
42374
|
+
msg.setStatus(value);
|
|
42375
|
+
break;
|
|
42376
|
+
case 2:
|
|
42377
|
+
var value = new proto_clarifai_api_resources_pb.LogEntry;
|
|
42378
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.LogEntry.deserializeBinaryFromReader);
|
|
42379
|
+
msg.addLogEntries(value);
|
|
42380
|
+
break;
|
|
42381
|
+
default:
|
|
42382
|
+
reader.skipField();
|
|
42383
|
+
break;
|
|
42384
|
+
}
|
|
42385
|
+
}
|
|
42386
|
+
return msg;
|
|
42387
|
+
};
|
|
42388
|
+
/**
|
|
42389
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
42390
|
+
* @return {!Uint8Array}
|
|
42391
|
+
*/
|
|
42392
|
+
proto.clarifai.api.MultiLogEntryResponse.prototype.serializeBinary = function () {
|
|
42393
|
+
var writer = new jspb.BinaryWriter();
|
|
42394
|
+
proto.clarifai.api.MultiLogEntryResponse.serializeBinaryToWriter(this, writer);
|
|
42395
|
+
return writer.getResultBuffer();
|
|
42396
|
+
};
|
|
42397
|
+
/**
|
|
42398
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
42399
|
+
* format), writing to the given BinaryWriter.
|
|
42400
|
+
* @param {!proto.clarifai.api.MultiLogEntryResponse} message
|
|
42401
|
+
* @param {!jspb.BinaryWriter} writer
|
|
42402
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42403
|
+
*/
|
|
42404
|
+
proto.clarifai.api.MultiLogEntryResponse.serializeBinaryToWriter = function (message, writer) {
|
|
42405
|
+
var f = undefined;
|
|
42406
|
+
f = message.getStatus();
|
|
42407
|
+
if (f != null) {
|
|
42408
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
42409
|
+
}
|
|
42410
|
+
f = message.getLogEntriesList();
|
|
42411
|
+
if (f.length > 0) {
|
|
42412
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.LogEntry.serializeBinaryToWriter);
|
|
42413
|
+
}
|
|
42414
|
+
};
|
|
42415
|
+
/**
|
|
42416
|
+
* optional status.Status status = 1;
|
|
42417
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
42418
|
+
*/
|
|
42419
|
+
proto.clarifai.api.MultiLogEntryResponse.prototype.getStatus = function () {
|
|
42420
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
42421
|
+
};
|
|
42422
|
+
/**
|
|
42423
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
42424
|
+
* @return {!proto.clarifai.api.MultiLogEntryResponse} returns this
|
|
42425
|
+
*/
|
|
42426
|
+
proto.clarifai.api.MultiLogEntryResponse.prototype.setStatus = function (value) {
|
|
42427
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
42428
|
+
};
|
|
42429
|
+
/**
|
|
42430
|
+
* Clears the message field making it undefined.
|
|
42431
|
+
* @return {!proto.clarifai.api.MultiLogEntryResponse} returns this
|
|
42432
|
+
*/
|
|
42433
|
+
proto.clarifai.api.MultiLogEntryResponse.prototype.clearStatus = function () {
|
|
42434
|
+
return this.setStatus(undefined);
|
|
42435
|
+
};
|
|
42436
|
+
/**
|
|
42437
|
+
* Returns whether this field is set.
|
|
42438
|
+
* @return {boolean}
|
|
42439
|
+
*/
|
|
42440
|
+
proto.clarifai.api.MultiLogEntryResponse.prototype.hasStatus = function () {
|
|
42441
|
+
return jspb.Message.getField(this, 1) != null;
|
|
42442
|
+
};
|
|
42443
|
+
/**
|
|
42444
|
+
* repeated LogEntry log_entries = 2;
|
|
42445
|
+
* @return {!Array<!proto.clarifai.api.LogEntry>}
|
|
42446
|
+
*/
|
|
42447
|
+
proto.clarifai.api.MultiLogEntryResponse.prototype.getLogEntriesList = function () {
|
|
42448
|
+
return /** @type{!Array<!proto.clarifai.api.LogEntry>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.LogEntry, 2));
|
|
42449
|
+
};
|
|
42450
|
+
/**
|
|
42451
|
+
* @param {!Array<!proto.clarifai.api.LogEntry>} value
|
|
42452
|
+
* @return {!proto.clarifai.api.MultiLogEntryResponse} returns this
|
|
42453
|
+
*/
|
|
42454
|
+
proto.clarifai.api.MultiLogEntryResponse.prototype.setLogEntriesList = function (value) {
|
|
42455
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
42456
|
+
};
|
|
42457
|
+
/**
|
|
42458
|
+
* @param {!proto.clarifai.api.LogEntry=} opt_value
|
|
42459
|
+
* @param {number=} opt_index
|
|
42460
|
+
* @return {!proto.clarifai.api.LogEntry}
|
|
42461
|
+
*/
|
|
42462
|
+
proto.clarifai.api.MultiLogEntryResponse.prototype.addLogEntries = function (opt_value, opt_index) {
|
|
42463
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.LogEntry, opt_index);
|
|
42464
|
+
};
|
|
42465
|
+
/**
|
|
42466
|
+
* Clears the list making it empty but non-null.
|
|
42467
|
+
* @return {!proto.clarifai.api.MultiLogEntryResponse} returns this
|
|
42468
|
+
*/
|
|
42469
|
+
proto.clarifai.api.MultiLogEntryResponse.prototype.clearLogEntriesList = function () {
|
|
42470
|
+
return this.setLogEntriesList([]);
|
|
42471
|
+
};
|
|
41844
42472
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
41845
42473
|
/**
|
|
41846
42474
|
* Creates an object representation of this proto.
|
|
@@ -53112,7 +53740,7 @@ proto.clarifai.api.GetTaskRequest.prototype.clearAdditionalFieldsList = function
|
|
|
53112
53740
|
* @private {!Array<number>}
|
|
53113
53741
|
* @const
|
|
53114
53742
|
*/
|
|
53115
|
-
proto.clarifai.api.ListTasksRequest.repeatedFields_ = [4, 5, 8, 7, 9];
|
|
53743
|
+
proto.clarifai.api.ListTasksRequest.repeatedFields_ = [4, 5, 8, 7, 9, 11];
|
|
53116
53744
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53117
53745
|
/**
|
|
53118
53746
|
* Creates an object representation of this proto.
|
|
@@ -53148,7 +53776,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
53148
53776
|
labelOrderIdsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
|
|
53149
53777
|
includingLabelOrderTasks: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
53150
53778
|
additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
53151
|
-
idsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f
|
|
53779
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
|
|
53780
|
+
inputSourceType: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
53781
|
+
inputSourceIdsList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f
|
|
53152
53782
|
};
|
|
53153
53783
|
if (includeInstance) {
|
|
53154
53784
|
obj.$jspbMessageInstance = msg;
|
|
@@ -53217,6 +53847,14 @@ proto.clarifai.api.ListTasksRequest.deserializeBinaryFromReader = function (msg,
|
|
|
53217
53847
|
var value = /** @type {string} */ (reader.readString());
|
|
53218
53848
|
msg.addIds(value);
|
|
53219
53849
|
break;
|
|
53850
|
+
case 10:
|
|
53851
|
+
var value = /** @type {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} */ (reader.readEnum());
|
|
53852
|
+
msg.setInputSourceType(value);
|
|
53853
|
+
break;
|
|
53854
|
+
case 11:
|
|
53855
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53856
|
+
msg.addInputSourceIds(value);
|
|
53857
|
+
break;
|
|
53220
53858
|
default:
|
|
53221
53859
|
reader.skipField();
|
|
53222
53860
|
break;
|
|
@@ -53278,6 +53916,14 @@ proto.clarifai.api.ListTasksRequest.serializeBinaryToWriter = function (message,
|
|
|
53278
53916
|
if (f.length > 0) {
|
|
53279
53917
|
writer.writeRepeatedString(9, f);
|
|
53280
53918
|
}
|
|
53919
|
+
f = message.getInputSourceType();
|
|
53920
|
+
if (f !== 0.0) {
|
|
53921
|
+
writer.writeEnum(10, f);
|
|
53922
|
+
}
|
|
53923
|
+
f = message.getInputSourceIdsList();
|
|
53924
|
+
if (f.length > 0) {
|
|
53925
|
+
writer.writeRepeatedString(11, f);
|
|
53926
|
+
}
|
|
53281
53927
|
};
|
|
53282
53928
|
/**
|
|
53283
53929
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -53494,6 +54140,49 @@ proto.clarifai.api.ListTasksRequest.prototype.addIds = function (value, opt_inde
|
|
|
53494
54140
|
proto.clarifai.api.ListTasksRequest.prototype.clearIdsList = function () {
|
|
53495
54141
|
return this.setIdsList([]);
|
|
53496
54142
|
};
|
|
54143
|
+
/**
|
|
54144
|
+
* optional TaskInputSource.TaskInputSourceType input_source_type = 10;
|
|
54145
|
+
* @return {!proto.clarifai.api.TaskInputSource.TaskInputSourceType}
|
|
54146
|
+
*/
|
|
54147
|
+
proto.clarifai.api.ListTasksRequest.prototype.getInputSourceType = function () {
|
|
54148
|
+
return /** @type {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
54149
|
+
};
|
|
54150
|
+
/**
|
|
54151
|
+
* @param {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} value
|
|
54152
|
+
* @return {!proto.clarifai.api.ListTasksRequest} returns this
|
|
54153
|
+
*/
|
|
54154
|
+
proto.clarifai.api.ListTasksRequest.prototype.setInputSourceType = function (value) {
|
|
54155
|
+
return jspb.Message.setProto3EnumField(this, 10, value);
|
|
54156
|
+
};
|
|
54157
|
+
/**
|
|
54158
|
+
* repeated string input_source_ids = 11;
|
|
54159
|
+
* @return {!Array<string>}
|
|
54160
|
+
*/
|
|
54161
|
+
proto.clarifai.api.ListTasksRequest.prototype.getInputSourceIdsList = function () {
|
|
54162
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
|
|
54163
|
+
};
|
|
54164
|
+
/**
|
|
54165
|
+
* @param {!Array<string>} value
|
|
54166
|
+
* @return {!proto.clarifai.api.ListTasksRequest} returns this
|
|
54167
|
+
*/
|
|
54168
|
+
proto.clarifai.api.ListTasksRequest.prototype.setInputSourceIdsList = function (value) {
|
|
54169
|
+
return jspb.Message.setField(this, 11, value || []);
|
|
54170
|
+
};
|
|
54171
|
+
/**
|
|
54172
|
+
* @param {string} value
|
|
54173
|
+
* @param {number=} opt_index
|
|
54174
|
+
* @return {!proto.clarifai.api.ListTasksRequest} returns this
|
|
54175
|
+
*/
|
|
54176
|
+
proto.clarifai.api.ListTasksRequest.prototype.addInputSourceIds = function (value, opt_index) {
|
|
54177
|
+
return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
|
|
54178
|
+
};
|
|
54179
|
+
/**
|
|
54180
|
+
* Clears the list making it empty but non-null.
|
|
54181
|
+
* @return {!proto.clarifai.api.ListTasksRequest} returns this
|
|
54182
|
+
*/
|
|
54183
|
+
proto.clarifai.api.ListTasksRequest.prototype.clearInputSourceIdsList = function () {
|
|
54184
|
+
return this.setInputSourceIdsList([]);
|
|
54185
|
+
};
|
|
53497
54186
|
/**
|
|
53498
54187
|
* List of repeated fields within this message type.
|
|
53499
54188
|
* @private {!Array<number>}
|
|
@@ -70474,6 +71163,544 @@ proto.clarifai.api.MultiTrainingTimeEstimateResponse.prototype.addTrainingTimeEs
|
|
|
70474
71163
|
proto.clarifai.api.MultiTrainingTimeEstimateResponse.prototype.clearTrainingTimeEstimatesList = function () {
|
|
70475
71164
|
return this.setTrainingTimeEstimatesList([]);
|
|
70476
71165
|
};
|
|
71166
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71167
|
+
/**
|
|
71168
|
+
* Creates an object representation of this proto.
|
|
71169
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71170
|
+
* Optional fields that are not set will be set to undefined.
|
|
71171
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71172
|
+
* For the list of reserved names please see:
|
|
71173
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71174
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71175
|
+
* JSPB instance for transitional soy proto support:
|
|
71176
|
+
* http://goto/soy-param-migration
|
|
71177
|
+
* @return {!Object}
|
|
71178
|
+
*/
|
|
71179
|
+
proto.clarifai.api.ListCloudProvidersRequest.prototype.toObject = function (opt_includeInstance) {
|
|
71180
|
+
return proto.clarifai.api.ListCloudProvidersRequest.toObject(opt_includeInstance, this);
|
|
71181
|
+
};
|
|
71182
|
+
/**
|
|
71183
|
+
* Static version of the {@see toObject} method.
|
|
71184
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71185
|
+
* the JSPB instance for transitional soy proto support:
|
|
71186
|
+
* http://goto/soy-param-migration
|
|
71187
|
+
* @param {!proto.clarifai.api.ListCloudProvidersRequest} msg The msg instance to transform.
|
|
71188
|
+
* @return {!Object}
|
|
71189
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71190
|
+
*/
|
|
71191
|
+
proto.clarifai.api.ListCloudProvidersRequest.toObject = function (includeInstance, msg) {
|
|
71192
|
+
var f, obj = {};
|
|
71193
|
+
if (includeInstance) {
|
|
71194
|
+
obj.$jspbMessageInstance = msg;
|
|
71195
|
+
}
|
|
71196
|
+
return obj;
|
|
71197
|
+
};
|
|
71198
|
+
}
|
|
71199
|
+
/**
|
|
71200
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71201
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71202
|
+
* @return {!proto.clarifai.api.ListCloudProvidersRequest}
|
|
71203
|
+
*/
|
|
71204
|
+
proto.clarifai.api.ListCloudProvidersRequest.deserializeBinary = function (bytes) {
|
|
71205
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71206
|
+
var msg = new proto.clarifai.api.ListCloudProvidersRequest;
|
|
71207
|
+
return proto.clarifai.api.ListCloudProvidersRequest.deserializeBinaryFromReader(msg, reader);
|
|
71208
|
+
};
|
|
71209
|
+
/**
|
|
71210
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71211
|
+
* given reader into the given message object.
|
|
71212
|
+
* @param {!proto.clarifai.api.ListCloudProvidersRequest} msg The message object to deserialize into.
|
|
71213
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71214
|
+
* @return {!proto.clarifai.api.ListCloudProvidersRequest}
|
|
71215
|
+
*/
|
|
71216
|
+
proto.clarifai.api.ListCloudProvidersRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
71217
|
+
while (reader.nextField()) {
|
|
71218
|
+
if (reader.isEndGroup()) {
|
|
71219
|
+
break;
|
|
71220
|
+
}
|
|
71221
|
+
var field = reader.getFieldNumber();
|
|
71222
|
+
switch (field) {
|
|
71223
|
+
default:
|
|
71224
|
+
reader.skipField();
|
|
71225
|
+
break;
|
|
71226
|
+
}
|
|
71227
|
+
}
|
|
71228
|
+
return msg;
|
|
71229
|
+
};
|
|
71230
|
+
/**
|
|
71231
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71232
|
+
* @return {!Uint8Array}
|
|
71233
|
+
*/
|
|
71234
|
+
proto.clarifai.api.ListCloudProvidersRequest.prototype.serializeBinary = function () {
|
|
71235
|
+
var writer = new jspb.BinaryWriter();
|
|
71236
|
+
proto.clarifai.api.ListCloudProvidersRequest.serializeBinaryToWriter(this, writer);
|
|
71237
|
+
return writer.getResultBuffer();
|
|
71238
|
+
};
|
|
71239
|
+
/**
|
|
71240
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71241
|
+
* format), writing to the given BinaryWriter.
|
|
71242
|
+
* @param {!proto.clarifai.api.ListCloudProvidersRequest} message
|
|
71243
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71244
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71245
|
+
*/
|
|
71246
|
+
proto.clarifai.api.ListCloudProvidersRequest.serializeBinaryToWriter = function (message, writer) {
|
|
71247
|
+
var f = undefined;
|
|
71248
|
+
};
|
|
71249
|
+
/**
|
|
71250
|
+
* List of repeated fields within this message type.
|
|
71251
|
+
* @private {!Array<number>}
|
|
71252
|
+
* @const
|
|
71253
|
+
*/
|
|
71254
|
+
proto.clarifai.api.MultiCloudProviderResponse.repeatedFields_ = [2];
|
|
71255
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71256
|
+
/**
|
|
71257
|
+
* Creates an object representation of this proto.
|
|
71258
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71259
|
+
* Optional fields that are not set will be set to undefined.
|
|
71260
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71261
|
+
* For the list of reserved names please see:
|
|
71262
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71263
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71264
|
+
* JSPB instance for transitional soy proto support:
|
|
71265
|
+
* http://goto/soy-param-migration
|
|
71266
|
+
* @return {!Object}
|
|
71267
|
+
*/
|
|
71268
|
+
proto.clarifai.api.MultiCloudProviderResponse.prototype.toObject = function (opt_includeInstance) {
|
|
71269
|
+
return proto.clarifai.api.MultiCloudProviderResponse.toObject(opt_includeInstance, this);
|
|
71270
|
+
};
|
|
71271
|
+
/**
|
|
71272
|
+
* Static version of the {@see toObject} method.
|
|
71273
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71274
|
+
* the JSPB instance for transitional soy proto support:
|
|
71275
|
+
* http://goto/soy-param-migration
|
|
71276
|
+
* @param {!proto.clarifai.api.MultiCloudProviderResponse} msg The msg instance to transform.
|
|
71277
|
+
* @return {!Object}
|
|
71278
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71279
|
+
*/
|
|
71280
|
+
proto.clarifai.api.MultiCloudProviderResponse.toObject = function (includeInstance, msg) {
|
|
71281
|
+
var f, obj = {
|
|
71282
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
71283
|
+
cloudProvidersList: jspb.Message.toObjectList(msg.getCloudProvidersList(), proto_clarifai_api_resources_pb.CloudProvider.toObject, includeInstance)
|
|
71284
|
+
};
|
|
71285
|
+
if (includeInstance) {
|
|
71286
|
+
obj.$jspbMessageInstance = msg;
|
|
71287
|
+
}
|
|
71288
|
+
return obj;
|
|
71289
|
+
};
|
|
71290
|
+
}
|
|
71291
|
+
/**
|
|
71292
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71293
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71294
|
+
* @return {!proto.clarifai.api.MultiCloudProviderResponse}
|
|
71295
|
+
*/
|
|
71296
|
+
proto.clarifai.api.MultiCloudProviderResponse.deserializeBinary = function (bytes) {
|
|
71297
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71298
|
+
var msg = new proto.clarifai.api.MultiCloudProviderResponse;
|
|
71299
|
+
return proto.clarifai.api.MultiCloudProviderResponse.deserializeBinaryFromReader(msg, reader);
|
|
71300
|
+
};
|
|
71301
|
+
/**
|
|
71302
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71303
|
+
* given reader into the given message object.
|
|
71304
|
+
* @param {!proto.clarifai.api.MultiCloudProviderResponse} msg The message object to deserialize into.
|
|
71305
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71306
|
+
* @return {!proto.clarifai.api.MultiCloudProviderResponse}
|
|
71307
|
+
*/
|
|
71308
|
+
proto.clarifai.api.MultiCloudProviderResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
71309
|
+
while (reader.nextField()) {
|
|
71310
|
+
if (reader.isEndGroup()) {
|
|
71311
|
+
break;
|
|
71312
|
+
}
|
|
71313
|
+
var field = reader.getFieldNumber();
|
|
71314
|
+
switch (field) {
|
|
71315
|
+
case 1:
|
|
71316
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
71317
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
71318
|
+
msg.setStatus(value);
|
|
71319
|
+
break;
|
|
71320
|
+
case 2:
|
|
71321
|
+
var value = new proto_clarifai_api_resources_pb.CloudProvider;
|
|
71322
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.CloudProvider.deserializeBinaryFromReader);
|
|
71323
|
+
msg.addCloudProviders(value);
|
|
71324
|
+
break;
|
|
71325
|
+
default:
|
|
71326
|
+
reader.skipField();
|
|
71327
|
+
break;
|
|
71328
|
+
}
|
|
71329
|
+
}
|
|
71330
|
+
return msg;
|
|
71331
|
+
};
|
|
71332
|
+
/**
|
|
71333
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71334
|
+
* @return {!Uint8Array}
|
|
71335
|
+
*/
|
|
71336
|
+
proto.clarifai.api.MultiCloudProviderResponse.prototype.serializeBinary = function () {
|
|
71337
|
+
var writer = new jspb.BinaryWriter();
|
|
71338
|
+
proto.clarifai.api.MultiCloudProviderResponse.serializeBinaryToWriter(this, writer);
|
|
71339
|
+
return writer.getResultBuffer();
|
|
71340
|
+
};
|
|
71341
|
+
/**
|
|
71342
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71343
|
+
* format), writing to the given BinaryWriter.
|
|
71344
|
+
* @param {!proto.clarifai.api.MultiCloudProviderResponse} message
|
|
71345
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71346
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71347
|
+
*/
|
|
71348
|
+
proto.clarifai.api.MultiCloudProviderResponse.serializeBinaryToWriter = function (message, writer) {
|
|
71349
|
+
var f = undefined;
|
|
71350
|
+
f = message.getStatus();
|
|
71351
|
+
if (f != null) {
|
|
71352
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
71353
|
+
}
|
|
71354
|
+
f = message.getCloudProvidersList();
|
|
71355
|
+
if (f.length > 0) {
|
|
71356
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.CloudProvider.serializeBinaryToWriter);
|
|
71357
|
+
}
|
|
71358
|
+
};
|
|
71359
|
+
/**
|
|
71360
|
+
* optional status.Status status = 1;
|
|
71361
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
71362
|
+
*/
|
|
71363
|
+
proto.clarifai.api.MultiCloudProviderResponse.prototype.getStatus = function () {
|
|
71364
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
71365
|
+
};
|
|
71366
|
+
/**
|
|
71367
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
71368
|
+
* @return {!proto.clarifai.api.MultiCloudProviderResponse} returns this
|
|
71369
|
+
*/
|
|
71370
|
+
proto.clarifai.api.MultiCloudProviderResponse.prototype.setStatus = function (value) {
|
|
71371
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
71372
|
+
};
|
|
71373
|
+
/**
|
|
71374
|
+
* Clears the message field making it undefined.
|
|
71375
|
+
* @return {!proto.clarifai.api.MultiCloudProviderResponse} returns this
|
|
71376
|
+
*/
|
|
71377
|
+
proto.clarifai.api.MultiCloudProviderResponse.prototype.clearStatus = function () {
|
|
71378
|
+
return this.setStatus(undefined);
|
|
71379
|
+
};
|
|
71380
|
+
/**
|
|
71381
|
+
* Returns whether this field is set.
|
|
71382
|
+
* @return {boolean}
|
|
71383
|
+
*/
|
|
71384
|
+
proto.clarifai.api.MultiCloudProviderResponse.prototype.hasStatus = function () {
|
|
71385
|
+
return jspb.Message.getField(this, 1) != null;
|
|
71386
|
+
};
|
|
71387
|
+
/**
|
|
71388
|
+
* repeated CloudProvider cloud_providers = 2;
|
|
71389
|
+
* @return {!Array<!proto.clarifai.api.CloudProvider>}
|
|
71390
|
+
*/
|
|
71391
|
+
proto.clarifai.api.MultiCloudProviderResponse.prototype.getCloudProvidersList = function () {
|
|
71392
|
+
return /** @type{!Array<!proto.clarifai.api.CloudProvider>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.CloudProvider, 2));
|
|
71393
|
+
};
|
|
71394
|
+
/**
|
|
71395
|
+
* @param {!Array<!proto.clarifai.api.CloudProvider>} value
|
|
71396
|
+
* @return {!proto.clarifai.api.MultiCloudProviderResponse} returns this
|
|
71397
|
+
*/
|
|
71398
|
+
proto.clarifai.api.MultiCloudProviderResponse.prototype.setCloudProvidersList = function (value) {
|
|
71399
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
71400
|
+
};
|
|
71401
|
+
/**
|
|
71402
|
+
* @param {!proto.clarifai.api.CloudProvider=} opt_value
|
|
71403
|
+
* @param {number=} opt_index
|
|
71404
|
+
* @return {!proto.clarifai.api.CloudProvider}
|
|
71405
|
+
*/
|
|
71406
|
+
proto.clarifai.api.MultiCloudProviderResponse.prototype.addCloudProviders = function (opt_value, opt_index) {
|
|
71407
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.CloudProvider, opt_index);
|
|
71408
|
+
};
|
|
71409
|
+
/**
|
|
71410
|
+
* Clears the list making it empty but non-null.
|
|
71411
|
+
* @return {!proto.clarifai.api.MultiCloudProviderResponse} returns this
|
|
71412
|
+
*/
|
|
71413
|
+
proto.clarifai.api.MultiCloudProviderResponse.prototype.clearCloudProvidersList = function () {
|
|
71414
|
+
return this.setCloudProvidersList([]);
|
|
71415
|
+
};
|
|
71416
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71417
|
+
/**
|
|
71418
|
+
* Creates an object representation of this proto.
|
|
71419
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71420
|
+
* Optional fields that are not set will be set to undefined.
|
|
71421
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71422
|
+
* For the list of reserved names please see:
|
|
71423
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71424
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71425
|
+
* JSPB instance for transitional soy proto support:
|
|
71426
|
+
* http://goto/soy-param-migration
|
|
71427
|
+
* @return {!Object}
|
|
71428
|
+
*/
|
|
71429
|
+
proto.clarifai.api.ListCloudRegionsRequest.prototype.toObject = function (opt_includeInstance) {
|
|
71430
|
+
return proto.clarifai.api.ListCloudRegionsRequest.toObject(opt_includeInstance, this);
|
|
71431
|
+
};
|
|
71432
|
+
/**
|
|
71433
|
+
* Static version of the {@see toObject} method.
|
|
71434
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71435
|
+
* the JSPB instance for transitional soy proto support:
|
|
71436
|
+
* http://goto/soy-param-migration
|
|
71437
|
+
* @param {!proto.clarifai.api.ListCloudRegionsRequest} msg The msg instance to transform.
|
|
71438
|
+
* @return {!Object}
|
|
71439
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71440
|
+
*/
|
|
71441
|
+
proto.clarifai.api.ListCloudRegionsRequest.toObject = function (includeInstance, msg) {
|
|
71442
|
+
var f, obj = {
|
|
71443
|
+
cloudProvider: (f = msg.getCloudProvider()) && proto_clarifai_api_resources_pb.CloudProvider.toObject(includeInstance, f)
|
|
71444
|
+
};
|
|
71445
|
+
if (includeInstance) {
|
|
71446
|
+
obj.$jspbMessageInstance = msg;
|
|
71447
|
+
}
|
|
71448
|
+
return obj;
|
|
71449
|
+
};
|
|
71450
|
+
}
|
|
71451
|
+
/**
|
|
71452
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71453
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71454
|
+
* @return {!proto.clarifai.api.ListCloudRegionsRequest}
|
|
71455
|
+
*/
|
|
71456
|
+
proto.clarifai.api.ListCloudRegionsRequest.deserializeBinary = function (bytes) {
|
|
71457
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71458
|
+
var msg = new proto.clarifai.api.ListCloudRegionsRequest;
|
|
71459
|
+
return proto.clarifai.api.ListCloudRegionsRequest.deserializeBinaryFromReader(msg, reader);
|
|
71460
|
+
};
|
|
71461
|
+
/**
|
|
71462
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71463
|
+
* given reader into the given message object.
|
|
71464
|
+
* @param {!proto.clarifai.api.ListCloudRegionsRequest} msg The message object to deserialize into.
|
|
71465
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71466
|
+
* @return {!proto.clarifai.api.ListCloudRegionsRequest}
|
|
71467
|
+
*/
|
|
71468
|
+
proto.clarifai.api.ListCloudRegionsRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
71469
|
+
while (reader.nextField()) {
|
|
71470
|
+
if (reader.isEndGroup()) {
|
|
71471
|
+
break;
|
|
71472
|
+
}
|
|
71473
|
+
var field = reader.getFieldNumber();
|
|
71474
|
+
switch (field) {
|
|
71475
|
+
case 1:
|
|
71476
|
+
var value = new proto_clarifai_api_resources_pb.CloudProvider;
|
|
71477
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.CloudProvider.deserializeBinaryFromReader);
|
|
71478
|
+
msg.setCloudProvider(value);
|
|
71479
|
+
break;
|
|
71480
|
+
default:
|
|
71481
|
+
reader.skipField();
|
|
71482
|
+
break;
|
|
71483
|
+
}
|
|
71484
|
+
}
|
|
71485
|
+
return msg;
|
|
71486
|
+
};
|
|
71487
|
+
/**
|
|
71488
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71489
|
+
* @return {!Uint8Array}
|
|
71490
|
+
*/
|
|
71491
|
+
proto.clarifai.api.ListCloudRegionsRequest.prototype.serializeBinary = function () {
|
|
71492
|
+
var writer = new jspb.BinaryWriter();
|
|
71493
|
+
proto.clarifai.api.ListCloudRegionsRequest.serializeBinaryToWriter(this, writer);
|
|
71494
|
+
return writer.getResultBuffer();
|
|
71495
|
+
};
|
|
71496
|
+
/**
|
|
71497
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71498
|
+
* format), writing to the given BinaryWriter.
|
|
71499
|
+
* @param {!proto.clarifai.api.ListCloudRegionsRequest} message
|
|
71500
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71501
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71502
|
+
*/
|
|
71503
|
+
proto.clarifai.api.ListCloudRegionsRequest.serializeBinaryToWriter = function (message, writer) {
|
|
71504
|
+
var f = undefined;
|
|
71505
|
+
f = message.getCloudProvider();
|
|
71506
|
+
if (f != null) {
|
|
71507
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.CloudProvider.serializeBinaryToWriter);
|
|
71508
|
+
}
|
|
71509
|
+
};
|
|
71510
|
+
/**
|
|
71511
|
+
* optional CloudProvider cloud_provider = 1;
|
|
71512
|
+
* @return {?proto.clarifai.api.CloudProvider}
|
|
71513
|
+
*/
|
|
71514
|
+
proto.clarifai.api.ListCloudRegionsRequest.prototype.getCloudProvider = function () {
|
|
71515
|
+
return /** @type{?proto.clarifai.api.CloudProvider} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.CloudProvider, 1));
|
|
71516
|
+
};
|
|
71517
|
+
/**
|
|
71518
|
+
* @param {?proto.clarifai.api.CloudProvider|undefined} value
|
|
71519
|
+
* @return {!proto.clarifai.api.ListCloudRegionsRequest} returns this
|
|
71520
|
+
*/
|
|
71521
|
+
proto.clarifai.api.ListCloudRegionsRequest.prototype.setCloudProvider = function (value) {
|
|
71522
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
71523
|
+
};
|
|
71524
|
+
/**
|
|
71525
|
+
* Clears the message field making it undefined.
|
|
71526
|
+
* @return {!proto.clarifai.api.ListCloudRegionsRequest} returns this
|
|
71527
|
+
*/
|
|
71528
|
+
proto.clarifai.api.ListCloudRegionsRequest.prototype.clearCloudProvider = function () {
|
|
71529
|
+
return this.setCloudProvider(undefined);
|
|
71530
|
+
};
|
|
71531
|
+
/**
|
|
71532
|
+
* Returns whether this field is set.
|
|
71533
|
+
* @return {boolean}
|
|
71534
|
+
*/
|
|
71535
|
+
proto.clarifai.api.ListCloudRegionsRequest.prototype.hasCloudProvider = function () {
|
|
71536
|
+
return jspb.Message.getField(this, 1) != null;
|
|
71537
|
+
};
|
|
71538
|
+
/**
|
|
71539
|
+
* List of repeated fields within this message type.
|
|
71540
|
+
* @private {!Array<number>}
|
|
71541
|
+
* @const
|
|
71542
|
+
*/
|
|
71543
|
+
proto.clarifai.api.MultiCloudRegionResponse.repeatedFields_ = [2];
|
|
71544
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71545
|
+
/**
|
|
71546
|
+
* Creates an object representation of this proto.
|
|
71547
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71548
|
+
* Optional fields that are not set will be set to undefined.
|
|
71549
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71550
|
+
* For the list of reserved names please see:
|
|
71551
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71552
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71553
|
+
* JSPB instance for transitional soy proto support:
|
|
71554
|
+
* http://goto/soy-param-migration
|
|
71555
|
+
* @return {!Object}
|
|
71556
|
+
*/
|
|
71557
|
+
proto.clarifai.api.MultiCloudRegionResponse.prototype.toObject = function (opt_includeInstance) {
|
|
71558
|
+
return proto.clarifai.api.MultiCloudRegionResponse.toObject(opt_includeInstance, this);
|
|
71559
|
+
};
|
|
71560
|
+
/**
|
|
71561
|
+
* Static version of the {@see toObject} method.
|
|
71562
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71563
|
+
* the JSPB instance for transitional soy proto support:
|
|
71564
|
+
* http://goto/soy-param-migration
|
|
71565
|
+
* @param {!proto.clarifai.api.MultiCloudRegionResponse} msg The msg instance to transform.
|
|
71566
|
+
* @return {!Object}
|
|
71567
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71568
|
+
*/
|
|
71569
|
+
proto.clarifai.api.MultiCloudRegionResponse.toObject = function (includeInstance, msg) {
|
|
71570
|
+
var f, obj = {
|
|
71571
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
71572
|
+
regionsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
71573
|
+
};
|
|
71574
|
+
if (includeInstance) {
|
|
71575
|
+
obj.$jspbMessageInstance = msg;
|
|
71576
|
+
}
|
|
71577
|
+
return obj;
|
|
71578
|
+
};
|
|
71579
|
+
}
|
|
71580
|
+
/**
|
|
71581
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71582
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71583
|
+
* @return {!proto.clarifai.api.MultiCloudRegionResponse}
|
|
71584
|
+
*/
|
|
71585
|
+
proto.clarifai.api.MultiCloudRegionResponse.deserializeBinary = function (bytes) {
|
|
71586
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71587
|
+
var msg = new proto.clarifai.api.MultiCloudRegionResponse;
|
|
71588
|
+
return proto.clarifai.api.MultiCloudRegionResponse.deserializeBinaryFromReader(msg, reader);
|
|
71589
|
+
};
|
|
71590
|
+
/**
|
|
71591
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71592
|
+
* given reader into the given message object.
|
|
71593
|
+
* @param {!proto.clarifai.api.MultiCloudRegionResponse} msg The message object to deserialize into.
|
|
71594
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71595
|
+
* @return {!proto.clarifai.api.MultiCloudRegionResponse}
|
|
71596
|
+
*/
|
|
71597
|
+
proto.clarifai.api.MultiCloudRegionResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
71598
|
+
while (reader.nextField()) {
|
|
71599
|
+
if (reader.isEndGroup()) {
|
|
71600
|
+
break;
|
|
71601
|
+
}
|
|
71602
|
+
var field = reader.getFieldNumber();
|
|
71603
|
+
switch (field) {
|
|
71604
|
+
case 1:
|
|
71605
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
71606
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
71607
|
+
msg.setStatus(value);
|
|
71608
|
+
break;
|
|
71609
|
+
case 2:
|
|
71610
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71611
|
+
msg.addRegions(value);
|
|
71612
|
+
break;
|
|
71613
|
+
default:
|
|
71614
|
+
reader.skipField();
|
|
71615
|
+
break;
|
|
71616
|
+
}
|
|
71617
|
+
}
|
|
71618
|
+
return msg;
|
|
71619
|
+
};
|
|
71620
|
+
/**
|
|
71621
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71622
|
+
* @return {!Uint8Array}
|
|
71623
|
+
*/
|
|
71624
|
+
proto.clarifai.api.MultiCloudRegionResponse.prototype.serializeBinary = function () {
|
|
71625
|
+
var writer = new jspb.BinaryWriter();
|
|
71626
|
+
proto.clarifai.api.MultiCloudRegionResponse.serializeBinaryToWriter(this, writer);
|
|
71627
|
+
return writer.getResultBuffer();
|
|
71628
|
+
};
|
|
71629
|
+
/**
|
|
71630
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71631
|
+
* format), writing to the given BinaryWriter.
|
|
71632
|
+
* @param {!proto.clarifai.api.MultiCloudRegionResponse} message
|
|
71633
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71634
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71635
|
+
*/
|
|
71636
|
+
proto.clarifai.api.MultiCloudRegionResponse.serializeBinaryToWriter = function (message, writer) {
|
|
71637
|
+
var f = undefined;
|
|
71638
|
+
f = message.getStatus();
|
|
71639
|
+
if (f != null) {
|
|
71640
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
71641
|
+
}
|
|
71642
|
+
f = message.getRegionsList();
|
|
71643
|
+
if (f.length > 0) {
|
|
71644
|
+
writer.writeRepeatedString(2, f);
|
|
71645
|
+
}
|
|
71646
|
+
};
|
|
71647
|
+
/**
|
|
71648
|
+
* optional status.Status status = 1;
|
|
71649
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
71650
|
+
*/
|
|
71651
|
+
proto.clarifai.api.MultiCloudRegionResponse.prototype.getStatus = function () {
|
|
71652
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
71653
|
+
};
|
|
71654
|
+
/**
|
|
71655
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
71656
|
+
* @return {!proto.clarifai.api.MultiCloudRegionResponse} returns this
|
|
71657
|
+
*/
|
|
71658
|
+
proto.clarifai.api.MultiCloudRegionResponse.prototype.setStatus = function (value) {
|
|
71659
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
71660
|
+
};
|
|
71661
|
+
/**
|
|
71662
|
+
* Clears the message field making it undefined.
|
|
71663
|
+
* @return {!proto.clarifai.api.MultiCloudRegionResponse} returns this
|
|
71664
|
+
*/
|
|
71665
|
+
proto.clarifai.api.MultiCloudRegionResponse.prototype.clearStatus = function () {
|
|
71666
|
+
return this.setStatus(undefined);
|
|
71667
|
+
};
|
|
71668
|
+
/**
|
|
71669
|
+
* Returns whether this field is set.
|
|
71670
|
+
* @return {boolean}
|
|
71671
|
+
*/
|
|
71672
|
+
proto.clarifai.api.MultiCloudRegionResponse.prototype.hasStatus = function () {
|
|
71673
|
+
return jspb.Message.getField(this, 1) != null;
|
|
71674
|
+
};
|
|
71675
|
+
/**
|
|
71676
|
+
* repeated string regions = 2;
|
|
71677
|
+
* @return {!Array<string>}
|
|
71678
|
+
*/
|
|
71679
|
+
proto.clarifai.api.MultiCloudRegionResponse.prototype.getRegionsList = function () {
|
|
71680
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
71681
|
+
};
|
|
71682
|
+
/**
|
|
71683
|
+
* @param {!Array<string>} value
|
|
71684
|
+
* @return {!proto.clarifai.api.MultiCloudRegionResponse} returns this
|
|
71685
|
+
*/
|
|
71686
|
+
proto.clarifai.api.MultiCloudRegionResponse.prototype.setRegionsList = function (value) {
|
|
71687
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
71688
|
+
};
|
|
71689
|
+
/**
|
|
71690
|
+
* @param {string} value
|
|
71691
|
+
* @param {number=} opt_index
|
|
71692
|
+
* @return {!proto.clarifai.api.MultiCloudRegionResponse} returns this
|
|
71693
|
+
*/
|
|
71694
|
+
proto.clarifai.api.MultiCloudRegionResponse.prototype.addRegions = function (value, opt_index) {
|
|
71695
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
71696
|
+
};
|
|
71697
|
+
/**
|
|
71698
|
+
* Clears the list making it empty but non-null.
|
|
71699
|
+
* @return {!proto.clarifai.api.MultiCloudRegionResponse} returns this
|
|
71700
|
+
*/
|
|
71701
|
+
proto.clarifai.api.MultiCloudRegionResponse.prototype.clearRegionsList = function () {
|
|
71702
|
+
return this.setRegionsList([]);
|
|
71703
|
+
};
|
|
70477
71704
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
70478
71705
|
/**
|
|
70479
71706
|
* Creates an object representation of this proto.
|