clarifai-web-grpc 10.6.3 → 10.6.4
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 +51 -15
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +356 -0
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +51 -15
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +356 -0
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +11 -3
- package/proto/clarifai/api/resources_pb.js +59 -16
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +12 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +61 -0
- package/proto/clarifai/api/service_pb.d.ts +50 -0
- package/proto/clarifai/api/service_pb.js +436 -0
- package/proto/clarifai/api/status/status_code_pb.d.ts +3 -0
- package/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
- package/proto/clarifai/auth/scope/scope_pb.js +2 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
10.6.
|
|
1
|
+
10.6.4
|
|
@@ -57,6 +57,7 @@ goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
|
|
|
57
57
|
goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
|
|
58
58
|
goog.exportSymbol('proto.clarifai.api.Audio', null, global);
|
|
59
59
|
goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
|
|
60
|
+
goog.exportSymbol('proto.clarifai.api.AuditOperationType', null, global);
|
|
60
61
|
goog.exportSymbol('proto.clarifai.api.AutoscaleConfig', null, global);
|
|
61
62
|
goog.exportSymbol('proto.clarifai.api.AzureBlobCreds', null, global);
|
|
62
63
|
goog.exportSymbol('proto.clarifai.api.BinaryMetrics', null, global);
|
|
@@ -14326,7 +14327,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
14326
14327
|
base64: msg.getBase64_asB64(),
|
|
14327
14328
|
allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
14328
14329
|
hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f),
|
|
14329
|
-
imageInfo: (f = msg.getImageInfo()) && proto.clarifai.api.ImageInfo.toObject(includeInstance, f)
|
|
14330
|
+
imageInfo: (f = msg.getImageInfo()) && proto.clarifai.api.ImageInfo.toObject(includeInstance, f),
|
|
14331
|
+
hostedImageInfoMap: (f = msg.getHostedImageInfoMap()) ? f.toObject(includeInstance, proto.clarifai.api.ImageInfo.toObject) : []
|
|
14330
14332
|
};
|
|
14331
14333
|
if (includeInstance) {
|
|
14332
14334
|
obj.$jspbMessageInstance = msg;
|
|
@@ -14380,6 +14382,12 @@ proto.clarifai.api.Image.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
14380
14382
|
reader.readMessage(value, proto.clarifai.api.ImageInfo.deserializeBinaryFromReader);
|
|
14381
14383
|
msg.setImageInfo(value);
|
|
14382
14384
|
break;
|
|
14385
|
+
case 7:
|
|
14386
|
+
var value = msg.getHostedImageInfoMap();
|
|
14387
|
+
reader.readMessage(value, function (message, reader) {
|
|
14388
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.ImageInfo.deserializeBinaryFromReader, "", new proto.clarifai.api.ImageInfo());
|
|
14389
|
+
});
|
|
14390
|
+
break;
|
|
14383
14391
|
default:
|
|
14384
14392
|
reader.skipField();
|
|
14385
14393
|
break;
|
|
@@ -14425,6 +14433,10 @@ proto.clarifai.api.Image.serializeBinaryToWriter = function (message, writer) {
|
|
|
14425
14433
|
if (f != null) {
|
|
14426
14434
|
writer.writeMessage(6, f, proto.clarifai.api.ImageInfo.serializeBinaryToWriter);
|
|
14427
14435
|
}
|
|
14436
|
+
f = message.getHostedImageInfoMap(true);
|
|
14437
|
+
if (f && f.getLength() > 0) {
|
|
14438
|
+
f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.ImageInfo.serializeBinaryToWriter);
|
|
14439
|
+
}
|
|
14428
14440
|
};
|
|
14429
14441
|
/**
|
|
14430
14442
|
* optional string url = 1;
|
|
@@ -14542,6 +14554,23 @@ proto.clarifai.api.Image.prototype.clearImageInfo = function () {
|
|
|
14542
14554
|
proto.clarifai.api.Image.prototype.hasImageInfo = function () {
|
|
14543
14555
|
return jspb.Message.getField(this, 6) != null;
|
|
14544
14556
|
};
|
|
14557
|
+
/**
|
|
14558
|
+
* map<string, ImageInfo> hosted_image_info = 7;
|
|
14559
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
14560
|
+
* empty, instead returning `undefined`
|
|
14561
|
+
* @return {!jspb.Map<string,!proto.clarifai.api.ImageInfo>}
|
|
14562
|
+
*/
|
|
14563
|
+
proto.clarifai.api.Image.prototype.getHostedImageInfoMap = function (opt_noLazyCreate) {
|
|
14564
|
+
return /** @type {!jspb.Map<string,!proto.clarifai.api.ImageInfo>} */ (jspb.Message.getMapField(this, 7, opt_noLazyCreate, proto.clarifai.api.ImageInfo));
|
|
14565
|
+
};
|
|
14566
|
+
/**
|
|
14567
|
+
* Clears values from the map. The map will be non-null.
|
|
14568
|
+
* @return {!proto.clarifai.api.Image} returns this
|
|
14569
|
+
*/
|
|
14570
|
+
proto.clarifai.api.Image.prototype.clearHostedImageInfoMap = function () {
|
|
14571
|
+
this.getHostedImageInfoMap().clear();
|
|
14572
|
+
return this;
|
|
14573
|
+
};
|
|
14545
14574
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14546
14575
|
/**
|
|
14547
14576
|
* Creates an object representation of this proto.
|
|
@@ -54374,7 +54403,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
54374
54403
|
*/
|
|
54375
54404
|
proto.clarifai.api.ComputeInfo.toObject = function (includeInstance, msg) {
|
|
54376
54405
|
var f, obj = {
|
|
54377
|
-
|
|
54406
|
+
cpuLimit: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
54378
54407
|
cpuMemory: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
54379
54408
|
numAccelerators: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
54380
54409
|
acceleratorMemory: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
@@ -54410,9 +54439,9 @@ proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader = function (msg, read
|
|
|
54410
54439
|
}
|
|
54411
54440
|
var field = reader.getFieldNumber();
|
|
54412
54441
|
switch (field) {
|
|
54413
|
-
case
|
|
54414
|
-
var value = /** @type {
|
|
54415
|
-
msg.
|
|
54442
|
+
case 6:
|
|
54443
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54444
|
+
msg.setCpuLimit(value);
|
|
54416
54445
|
break;
|
|
54417
54446
|
case 2:
|
|
54418
54447
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -54455,9 +54484,9 @@ proto.clarifai.api.ComputeInfo.prototype.serializeBinary = function () {
|
|
|
54455
54484
|
*/
|
|
54456
54485
|
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function (message, writer) {
|
|
54457
54486
|
var f = undefined;
|
|
54458
|
-
f = message.
|
|
54459
|
-
if (f
|
|
54460
|
-
writer.
|
|
54487
|
+
f = message.getCpuLimit();
|
|
54488
|
+
if (f.length > 0) {
|
|
54489
|
+
writer.writeString(6, f);
|
|
54461
54490
|
}
|
|
54462
54491
|
f = message.getCpuMemory();
|
|
54463
54492
|
if (f.length > 0) {
|
|
@@ -54477,18 +54506,18 @@ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function (message, writ
|
|
|
54477
54506
|
}
|
|
54478
54507
|
};
|
|
54479
54508
|
/**
|
|
54480
|
-
* optional
|
|
54481
|
-
* @return {
|
|
54509
|
+
* optional string cpu_limit = 6;
|
|
54510
|
+
* @return {string}
|
|
54482
54511
|
*/
|
|
54483
|
-
proto.clarifai.api.ComputeInfo.prototype.
|
|
54484
|
-
return /** @type {
|
|
54512
|
+
proto.clarifai.api.ComputeInfo.prototype.getCpuLimit = function () {
|
|
54513
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
54485
54514
|
};
|
|
54486
54515
|
/**
|
|
54487
|
-
* @param {
|
|
54516
|
+
* @param {string} value
|
|
54488
54517
|
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
54489
54518
|
*/
|
|
54490
|
-
proto.clarifai.api.ComputeInfo.prototype.
|
|
54491
|
-
return jspb.Message.
|
|
54519
|
+
proto.clarifai.api.ComputeInfo.prototype.setCpuLimit = function (value) {
|
|
54520
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
54492
54521
|
};
|
|
54493
54522
|
/**
|
|
54494
54523
|
* optional string cpu_memory = 2;
|
|
@@ -55765,4 +55794,11 @@ proto.clarifai.api.RunnerMethodType = {
|
|
|
55765
55794
|
STREAMING_UNARY: 3,
|
|
55766
55795
|
STREAMING_STREAMING: 4
|
|
55767
55796
|
};
|
|
55797
|
+
/**
|
|
55798
|
+
* @enum {number}
|
|
55799
|
+
*/
|
|
55800
|
+
proto.clarifai.api.AuditOperationType = {
|
|
55801
|
+
AUDIT_OPERATION_TYPE_NOT_SET: 0,
|
|
55802
|
+
APPLICATION_CREATE: 100
|
|
55803
|
+
};
|
|
55768
55804
|
goog.object.extend(exports, proto.clarifai.api);
|
|
@@ -9264,6 +9264,48 @@ proto.clarifai.api.V2PromiseClient.prototype.postModelVersionsTrainingTimeEstima
|
|
|
9264
9264
|
return this.client_.unaryCall(this.hostname_ +
|
|
9265
9265
|
'/clarifai.api.V2/PostModelVersionsTrainingTimeEstimate', request, metadata || {}, methodDescriptor_V2_PostModelVersionsTrainingTimeEstimate);
|
|
9266
9266
|
};
|
|
9267
|
+
/**
|
|
9268
|
+
* @const
|
|
9269
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
9270
|
+
* !proto.clarifai.api.ListInstanceTypesRequest,
|
|
9271
|
+
* !proto.clarifai.api.MultiInstanceTypeResponse>}
|
|
9272
|
+
*/
|
|
9273
|
+
const methodDescriptor_V2_ListInstanceTypes = new grpc.web.MethodDescriptor('/clarifai.api.V2/ListInstanceTypes', grpc.web.MethodType.UNARY, proto.clarifai.api.ListInstanceTypesRequest, proto.clarifai.api.MultiInstanceTypeResponse,
|
|
9274
|
+
/**
|
|
9275
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} request
|
|
9276
|
+
* @return {!Uint8Array}
|
|
9277
|
+
*/
|
|
9278
|
+
function (request) {
|
|
9279
|
+
return request.serializeBinary();
|
|
9280
|
+
}, proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinary);
|
|
9281
|
+
/**
|
|
9282
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} request The
|
|
9283
|
+
* request proto
|
|
9284
|
+
* @param {?Object<string, string>} metadata User defined
|
|
9285
|
+
* call metadata
|
|
9286
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiInstanceTypeResponse)}
|
|
9287
|
+
* callback The callback function(error, response)
|
|
9288
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiInstanceTypeResponse>|undefined}
|
|
9289
|
+
* The XHR Node Readable Stream
|
|
9290
|
+
*/
|
|
9291
|
+
proto.clarifai.api.V2Client.prototype.listInstanceTypes =
|
|
9292
|
+
function (request, metadata, callback) {
|
|
9293
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
9294
|
+
'/clarifai.api.V2/ListInstanceTypes', request, metadata || {}, methodDescriptor_V2_ListInstanceTypes, callback);
|
|
9295
|
+
};
|
|
9296
|
+
/**
|
|
9297
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} request The
|
|
9298
|
+
* request proto
|
|
9299
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
9300
|
+
* call metadata
|
|
9301
|
+
* @return {!Promise<!proto.clarifai.api.MultiInstanceTypeResponse>}
|
|
9302
|
+
* Promise that resolves to the response
|
|
9303
|
+
*/
|
|
9304
|
+
proto.clarifai.api.V2PromiseClient.prototype.listInstanceTypes =
|
|
9305
|
+
function (request, metadata) {
|
|
9306
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
9307
|
+
'/clarifai.api.V2/ListInstanceTypes', request, metadata || {}, methodDescriptor_V2_ListInstanceTypes);
|
|
9308
|
+
};
|
|
9267
9309
|
/**
|
|
9268
9310
|
* @const
|
|
9269
9311
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -153,6 +153,7 @@ goog.exportSymbol('proto.clarifai.api.ListInputsAddJobsRequest', null, global);
|
|
|
153
153
|
goog.exportSymbol('proto.clarifai.api.ListInputsExtractionJobsRequest', null, global);
|
|
154
154
|
goog.exportSymbol('proto.clarifai.api.ListInputsRequest', null, global);
|
|
155
155
|
goog.exportSymbol('proto.clarifai.api.ListInstalledModuleVersionsRequest', null, global);
|
|
156
|
+
goog.exportSymbol('proto.clarifai.api.ListInstanceTypesRequest', null, global);
|
|
156
157
|
goog.exportSymbol('proto.clarifai.api.ListKeysRequest', null, global);
|
|
157
158
|
goog.exportSymbol('proto.clarifai.api.ListKnowledgeGraphsRequest', null, global);
|
|
158
159
|
goog.exportSymbol('proto.clarifai.api.ListLabelOrdersRequest', null, global);
|
|
@@ -212,6 +213,7 @@ goog.exportSymbol('proto.clarifai.api.MultiInputResponse', null, global);
|
|
|
212
213
|
goog.exportSymbol('proto.clarifai.api.MultiInputsAddJobResponse', null, global);
|
|
213
214
|
goog.exportSymbol('proto.clarifai.api.MultiInputsExtractionJobResponse', null, global);
|
|
214
215
|
goog.exportSymbol('proto.clarifai.api.MultiInstalledModuleVersionResponse', null, global);
|
|
216
|
+
goog.exportSymbol('proto.clarifai.api.MultiInstanceTypeResponse', null, global);
|
|
215
217
|
goog.exportSymbol('proto.clarifai.api.MultiKeyResponse', null, global);
|
|
216
218
|
goog.exportSymbol('proto.clarifai.api.MultiKnowledgeGraphResponse', null, global);
|
|
217
219
|
goog.exportSymbol('proto.clarifai.api.MultiLabelOrderResponse', null, global);
|
|
@@ -7420,6 +7422,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
7420
7422
|
*/
|
|
7421
7423
|
proto.clarifai.api.MultiTrainingTimeEstimateResponse.displayName = 'proto.clarifai.api.MultiTrainingTimeEstimateResponse';
|
|
7422
7424
|
}
|
|
7425
|
+
/**
|
|
7426
|
+
* Generated by JsPbCodeGenerator.
|
|
7427
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7428
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7429
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7430
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7431
|
+
* valid.
|
|
7432
|
+
* @extends {jspb.Message}
|
|
7433
|
+
* @constructor
|
|
7434
|
+
*/
|
|
7435
|
+
proto.clarifai.api.ListInstanceTypesRequest = function (opt_data) {
|
|
7436
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
7437
|
+
};
|
|
7438
|
+
goog.inherits(proto.clarifai.api.ListInstanceTypesRequest, jspb.Message);
|
|
7439
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7440
|
+
/**
|
|
7441
|
+
* @public
|
|
7442
|
+
* @override
|
|
7443
|
+
*/
|
|
7444
|
+
proto.clarifai.api.ListInstanceTypesRequest.displayName = 'proto.clarifai.api.ListInstanceTypesRequest';
|
|
7445
|
+
}
|
|
7446
|
+
/**
|
|
7447
|
+
* Generated by JsPbCodeGenerator.
|
|
7448
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7449
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7450
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7451
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7452
|
+
* valid.
|
|
7453
|
+
* @extends {jspb.Message}
|
|
7454
|
+
* @constructor
|
|
7455
|
+
*/
|
|
7456
|
+
proto.clarifai.api.MultiInstanceTypeResponse = function (opt_data) {
|
|
7457
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiInstanceTypeResponse.repeatedFields_, null);
|
|
7458
|
+
};
|
|
7459
|
+
goog.inherits(proto.clarifai.api.MultiInstanceTypeResponse, jspb.Message);
|
|
7460
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7461
|
+
/**
|
|
7462
|
+
* @public
|
|
7463
|
+
* @override
|
|
7464
|
+
*/
|
|
7465
|
+
proto.clarifai.api.MultiInstanceTypeResponse.displayName = 'proto.clarifai.api.MultiInstanceTypeResponse';
|
|
7466
|
+
}
|
|
7423
7467
|
/**
|
|
7424
7468
|
* Generated by JsPbCodeGenerator.
|
|
7425
7469
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -71247,6 +71291,318 @@ proto.clarifai.api.MultiTrainingTimeEstimateResponse.prototype.addTrainingTimeEs
|
|
|
71247
71291
|
proto.clarifai.api.MultiTrainingTimeEstimateResponse.prototype.clearTrainingTimeEstimatesList = function () {
|
|
71248
71292
|
return this.setTrainingTimeEstimatesList([]);
|
|
71249
71293
|
};
|
|
71294
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71295
|
+
/**
|
|
71296
|
+
* Creates an object representation of this proto.
|
|
71297
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71298
|
+
* Optional fields that are not set will be set to undefined.
|
|
71299
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71300
|
+
* For the list of reserved names please see:
|
|
71301
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71302
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71303
|
+
* JSPB instance for transitional soy proto support:
|
|
71304
|
+
* http://goto/soy-param-migration
|
|
71305
|
+
* @return {!Object}
|
|
71306
|
+
*/
|
|
71307
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.toObject = function (opt_includeInstance) {
|
|
71308
|
+
return proto.clarifai.api.ListInstanceTypesRequest.toObject(opt_includeInstance, this);
|
|
71309
|
+
};
|
|
71310
|
+
/**
|
|
71311
|
+
* Static version of the {@see toObject} method.
|
|
71312
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71313
|
+
* the JSPB instance for transitional soy proto support:
|
|
71314
|
+
* http://goto/soy-param-migration
|
|
71315
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} msg The msg instance to transform.
|
|
71316
|
+
* @return {!Object}
|
|
71317
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71318
|
+
*/
|
|
71319
|
+
proto.clarifai.api.ListInstanceTypesRequest.toObject = function (includeInstance, msg) {
|
|
71320
|
+
var f, obj = {
|
|
71321
|
+
cloudProvider: (f = msg.getCloudProvider()) && proto_clarifai_api_resources_pb.CloudProvider.toObject(includeInstance, f),
|
|
71322
|
+
region: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
71323
|
+
};
|
|
71324
|
+
if (includeInstance) {
|
|
71325
|
+
obj.$jspbMessageInstance = msg;
|
|
71326
|
+
}
|
|
71327
|
+
return obj;
|
|
71328
|
+
};
|
|
71329
|
+
}
|
|
71330
|
+
/**
|
|
71331
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71332
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71333
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest}
|
|
71334
|
+
*/
|
|
71335
|
+
proto.clarifai.api.ListInstanceTypesRequest.deserializeBinary = function (bytes) {
|
|
71336
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71337
|
+
var msg = new proto.clarifai.api.ListInstanceTypesRequest;
|
|
71338
|
+
return proto.clarifai.api.ListInstanceTypesRequest.deserializeBinaryFromReader(msg, reader);
|
|
71339
|
+
};
|
|
71340
|
+
/**
|
|
71341
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71342
|
+
* given reader into the given message object.
|
|
71343
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} msg The message object to deserialize into.
|
|
71344
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71345
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest}
|
|
71346
|
+
*/
|
|
71347
|
+
proto.clarifai.api.ListInstanceTypesRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
71348
|
+
while (reader.nextField()) {
|
|
71349
|
+
if (reader.isEndGroup()) {
|
|
71350
|
+
break;
|
|
71351
|
+
}
|
|
71352
|
+
var field = reader.getFieldNumber();
|
|
71353
|
+
switch (field) {
|
|
71354
|
+
case 1:
|
|
71355
|
+
var value = new proto_clarifai_api_resources_pb.CloudProvider;
|
|
71356
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.CloudProvider.deserializeBinaryFromReader);
|
|
71357
|
+
msg.setCloudProvider(value);
|
|
71358
|
+
break;
|
|
71359
|
+
case 2:
|
|
71360
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71361
|
+
msg.setRegion(value);
|
|
71362
|
+
break;
|
|
71363
|
+
default:
|
|
71364
|
+
reader.skipField();
|
|
71365
|
+
break;
|
|
71366
|
+
}
|
|
71367
|
+
}
|
|
71368
|
+
return msg;
|
|
71369
|
+
};
|
|
71370
|
+
/**
|
|
71371
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71372
|
+
* @return {!Uint8Array}
|
|
71373
|
+
*/
|
|
71374
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.serializeBinary = function () {
|
|
71375
|
+
var writer = new jspb.BinaryWriter();
|
|
71376
|
+
proto.clarifai.api.ListInstanceTypesRequest.serializeBinaryToWriter(this, writer);
|
|
71377
|
+
return writer.getResultBuffer();
|
|
71378
|
+
};
|
|
71379
|
+
/**
|
|
71380
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71381
|
+
* format), writing to the given BinaryWriter.
|
|
71382
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} message
|
|
71383
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71384
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71385
|
+
*/
|
|
71386
|
+
proto.clarifai.api.ListInstanceTypesRequest.serializeBinaryToWriter = function (message, writer) {
|
|
71387
|
+
var f = undefined;
|
|
71388
|
+
f = message.getCloudProvider();
|
|
71389
|
+
if (f != null) {
|
|
71390
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.CloudProvider.serializeBinaryToWriter);
|
|
71391
|
+
}
|
|
71392
|
+
f = message.getRegion();
|
|
71393
|
+
if (f.length > 0) {
|
|
71394
|
+
writer.writeString(2, f);
|
|
71395
|
+
}
|
|
71396
|
+
};
|
|
71397
|
+
/**
|
|
71398
|
+
* optional CloudProvider cloud_provider = 1;
|
|
71399
|
+
* @return {?proto.clarifai.api.CloudProvider}
|
|
71400
|
+
*/
|
|
71401
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.getCloudProvider = function () {
|
|
71402
|
+
return /** @type{?proto.clarifai.api.CloudProvider} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.CloudProvider, 1));
|
|
71403
|
+
};
|
|
71404
|
+
/**
|
|
71405
|
+
* @param {?proto.clarifai.api.CloudProvider|undefined} value
|
|
71406
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest} returns this
|
|
71407
|
+
*/
|
|
71408
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.setCloudProvider = function (value) {
|
|
71409
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
71410
|
+
};
|
|
71411
|
+
/**
|
|
71412
|
+
* Clears the message field making it undefined.
|
|
71413
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest} returns this
|
|
71414
|
+
*/
|
|
71415
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.clearCloudProvider = function () {
|
|
71416
|
+
return this.setCloudProvider(undefined);
|
|
71417
|
+
};
|
|
71418
|
+
/**
|
|
71419
|
+
* Returns whether this field is set.
|
|
71420
|
+
* @return {boolean}
|
|
71421
|
+
*/
|
|
71422
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.hasCloudProvider = function () {
|
|
71423
|
+
return jspb.Message.getField(this, 1) != null;
|
|
71424
|
+
};
|
|
71425
|
+
/**
|
|
71426
|
+
* optional string region = 2;
|
|
71427
|
+
* @return {string}
|
|
71428
|
+
*/
|
|
71429
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.getRegion = function () {
|
|
71430
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
71431
|
+
};
|
|
71432
|
+
/**
|
|
71433
|
+
* @param {string} value
|
|
71434
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest} returns this
|
|
71435
|
+
*/
|
|
71436
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.setRegion = function (value) {
|
|
71437
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
71438
|
+
};
|
|
71439
|
+
/**
|
|
71440
|
+
* List of repeated fields within this message type.
|
|
71441
|
+
* @private {!Array<number>}
|
|
71442
|
+
* @const
|
|
71443
|
+
*/
|
|
71444
|
+
proto.clarifai.api.MultiInstanceTypeResponse.repeatedFields_ = [2];
|
|
71445
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71446
|
+
/**
|
|
71447
|
+
* Creates an object representation of this proto.
|
|
71448
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71449
|
+
* Optional fields that are not set will be set to undefined.
|
|
71450
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71451
|
+
* For the list of reserved names please see:
|
|
71452
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71453
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71454
|
+
* JSPB instance for transitional soy proto support:
|
|
71455
|
+
* http://goto/soy-param-migration
|
|
71456
|
+
* @return {!Object}
|
|
71457
|
+
*/
|
|
71458
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.toObject = function (opt_includeInstance) {
|
|
71459
|
+
return proto.clarifai.api.MultiInstanceTypeResponse.toObject(opt_includeInstance, this);
|
|
71460
|
+
};
|
|
71461
|
+
/**
|
|
71462
|
+
* Static version of the {@see toObject} method.
|
|
71463
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71464
|
+
* the JSPB instance for transitional soy proto support:
|
|
71465
|
+
* http://goto/soy-param-migration
|
|
71466
|
+
* @param {!proto.clarifai.api.MultiInstanceTypeResponse} msg The msg instance to transform.
|
|
71467
|
+
* @return {!Object}
|
|
71468
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71469
|
+
*/
|
|
71470
|
+
proto.clarifai.api.MultiInstanceTypeResponse.toObject = function (includeInstance, msg) {
|
|
71471
|
+
var f, obj = {
|
|
71472
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
71473
|
+
instanceTypesList: jspb.Message.toObjectList(msg.getInstanceTypesList(), proto_clarifai_api_resources_pb.InstanceType.toObject, includeInstance)
|
|
71474
|
+
};
|
|
71475
|
+
if (includeInstance) {
|
|
71476
|
+
obj.$jspbMessageInstance = msg;
|
|
71477
|
+
}
|
|
71478
|
+
return obj;
|
|
71479
|
+
};
|
|
71480
|
+
}
|
|
71481
|
+
/**
|
|
71482
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71483
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71484
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse}
|
|
71485
|
+
*/
|
|
71486
|
+
proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinary = function (bytes) {
|
|
71487
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71488
|
+
var msg = new proto.clarifai.api.MultiInstanceTypeResponse;
|
|
71489
|
+
return proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinaryFromReader(msg, reader);
|
|
71490
|
+
};
|
|
71491
|
+
/**
|
|
71492
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71493
|
+
* given reader into the given message object.
|
|
71494
|
+
* @param {!proto.clarifai.api.MultiInstanceTypeResponse} msg The message object to deserialize into.
|
|
71495
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71496
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse}
|
|
71497
|
+
*/
|
|
71498
|
+
proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
71499
|
+
while (reader.nextField()) {
|
|
71500
|
+
if (reader.isEndGroup()) {
|
|
71501
|
+
break;
|
|
71502
|
+
}
|
|
71503
|
+
var field = reader.getFieldNumber();
|
|
71504
|
+
switch (field) {
|
|
71505
|
+
case 1:
|
|
71506
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
71507
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
71508
|
+
msg.setStatus(value);
|
|
71509
|
+
break;
|
|
71510
|
+
case 2:
|
|
71511
|
+
var value = new proto_clarifai_api_resources_pb.InstanceType;
|
|
71512
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.InstanceType.deserializeBinaryFromReader);
|
|
71513
|
+
msg.addInstanceTypes(value);
|
|
71514
|
+
break;
|
|
71515
|
+
default:
|
|
71516
|
+
reader.skipField();
|
|
71517
|
+
break;
|
|
71518
|
+
}
|
|
71519
|
+
}
|
|
71520
|
+
return msg;
|
|
71521
|
+
};
|
|
71522
|
+
/**
|
|
71523
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71524
|
+
* @return {!Uint8Array}
|
|
71525
|
+
*/
|
|
71526
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.serializeBinary = function () {
|
|
71527
|
+
var writer = new jspb.BinaryWriter();
|
|
71528
|
+
proto.clarifai.api.MultiInstanceTypeResponse.serializeBinaryToWriter(this, writer);
|
|
71529
|
+
return writer.getResultBuffer();
|
|
71530
|
+
};
|
|
71531
|
+
/**
|
|
71532
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71533
|
+
* format), writing to the given BinaryWriter.
|
|
71534
|
+
* @param {!proto.clarifai.api.MultiInstanceTypeResponse} message
|
|
71535
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71536
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71537
|
+
*/
|
|
71538
|
+
proto.clarifai.api.MultiInstanceTypeResponse.serializeBinaryToWriter = function (message, writer) {
|
|
71539
|
+
var f = undefined;
|
|
71540
|
+
f = message.getStatus();
|
|
71541
|
+
if (f != null) {
|
|
71542
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
71543
|
+
}
|
|
71544
|
+
f = message.getInstanceTypesList();
|
|
71545
|
+
if (f.length > 0) {
|
|
71546
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.InstanceType.serializeBinaryToWriter);
|
|
71547
|
+
}
|
|
71548
|
+
};
|
|
71549
|
+
/**
|
|
71550
|
+
* optional status.Status status = 1;
|
|
71551
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
71552
|
+
*/
|
|
71553
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.getStatus = function () {
|
|
71554
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
71555
|
+
};
|
|
71556
|
+
/**
|
|
71557
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
71558
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
71559
|
+
*/
|
|
71560
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.setStatus = function (value) {
|
|
71561
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
71562
|
+
};
|
|
71563
|
+
/**
|
|
71564
|
+
* Clears the message field making it undefined.
|
|
71565
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
71566
|
+
*/
|
|
71567
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.clearStatus = function () {
|
|
71568
|
+
return this.setStatus(undefined);
|
|
71569
|
+
};
|
|
71570
|
+
/**
|
|
71571
|
+
* Returns whether this field is set.
|
|
71572
|
+
* @return {boolean}
|
|
71573
|
+
*/
|
|
71574
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.hasStatus = function () {
|
|
71575
|
+
return jspb.Message.getField(this, 1) != null;
|
|
71576
|
+
};
|
|
71577
|
+
/**
|
|
71578
|
+
* repeated InstanceType instance_types = 2;
|
|
71579
|
+
* @return {!Array<!proto.clarifai.api.InstanceType>}
|
|
71580
|
+
*/
|
|
71581
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.getInstanceTypesList = function () {
|
|
71582
|
+
return /** @type{!Array<!proto.clarifai.api.InstanceType>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InstanceType, 2));
|
|
71583
|
+
};
|
|
71584
|
+
/**
|
|
71585
|
+
* @param {!Array<!proto.clarifai.api.InstanceType>} value
|
|
71586
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
71587
|
+
*/
|
|
71588
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.setInstanceTypesList = function (value) {
|
|
71589
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
71590
|
+
};
|
|
71591
|
+
/**
|
|
71592
|
+
* @param {!proto.clarifai.api.InstanceType=} opt_value
|
|
71593
|
+
* @param {number=} opt_index
|
|
71594
|
+
* @return {!proto.clarifai.api.InstanceType}
|
|
71595
|
+
*/
|
|
71596
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.addInstanceTypes = function (opt_value, opt_index) {
|
|
71597
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InstanceType, opt_index);
|
|
71598
|
+
};
|
|
71599
|
+
/**
|
|
71600
|
+
* Clears the list making it empty but non-null.
|
|
71601
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
71602
|
+
*/
|
|
71603
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.clearInstanceTypesList = function () {
|
|
71604
|
+
return this.setInstanceTypesList([]);
|
|
71605
|
+
};
|
|
71250
71606
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71251
71607
|
/**
|
|
71252
71608
|
* Creates an object representation of this proto.
|
|
@@ -181,6 +181,9 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
181
181
|
DEPLOYMENT_DOES_NOT_EXIST: 25900,
|
|
182
182
|
DEPLOYMENT_INVALID_ARGUMENT: 25901,
|
|
183
183
|
DEPLOYMENT_INVALID_REQUEST: 25902,
|
|
184
|
+
INSTANCE_TYPE_DOES_NOT_EXIST: 26000,
|
|
185
|
+
INSTANCE_TYPE_INVALID_ARGUMENT: 26001,
|
|
186
|
+
INSTANCE_TYPE_INVALID_REQUEST: 26002,
|
|
184
187
|
INPUT_DOWNLOAD_SUCCESS: 30000,
|
|
185
188
|
INPUT_DOWNLOAD_PENDING: 30001,
|
|
186
189
|
INPUT_DOWNLOAD_FAILED: 30002,
|
|
@@ -316,7 +316,8 @@ proto.clarifai.auth.scope.S = {
|
|
|
316
316
|
COMPUTECLUSTERS_DELETE: 141,
|
|
317
317
|
DEPLOYMENTS_GET: 144,
|
|
318
318
|
DEPLOYMENTS_ADD: 145,
|
|
319
|
-
DEPLOYMENTS_DELETE: 146
|
|
319
|
+
DEPLOYMENTS_DELETE: 146,
|
|
320
|
+
INSTANCETYPES_GET: 148
|
|
320
321
|
};
|
|
321
322
|
/**
|
|
322
323
|
* A tuple of {field number, class constructor} for the extension
|