clarifai-web-grpc 11.10.2 → 11.10.3
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 +6 -140
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +212 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +6 -140
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +212 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +2 -20
- package/proto/clarifai/api/resources_pb.js +7 -163
- 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 +30 -0
- package/proto/clarifai/api/service_pb.js +263 -0
|
@@ -307,6 +307,7 @@ goog.exportSymbol('proto.clarifai.api.PatchAppsIdsRequest', null, global);
|
|
|
307
307
|
goog.exportSymbol('proto.clarifai.api.PatchAppsRequest', null, global);
|
|
308
308
|
goog.exportSymbol('proto.clarifai.api.PatchCollaboratorsRequest', null, global);
|
|
309
309
|
goog.exportSymbol('proto.clarifai.api.PatchCollectorsRequest', null, global);
|
|
310
|
+
goog.exportSymbol('proto.clarifai.api.PatchComputeClustersRequest', null, global);
|
|
310
311
|
goog.exportSymbol('proto.clarifai.api.PatchConceptLanguagesRequest', null, global);
|
|
311
312
|
goog.exportSymbol('proto.clarifai.api.PatchConceptsRequest', null, global);
|
|
312
313
|
goog.exportSymbol('proto.clarifai.api.PatchDatasetVersionsRequest', null, global);
|
|
@@ -7850,6 +7851,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
7850
7851
|
*/
|
|
7851
7852
|
proto.clarifai.api.PostComputeClustersRequest.displayName = 'proto.clarifai.api.PostComputeClustersRequest';
|
|
7852
7853
|
}
|
|
7854
|
+
/**
|
|
7855
|
+
* Generated by JsPbCodeGenerator.
|
|
7856
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7857
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7858
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7859
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7860
|
+
* valid.
|
|
7861
|
+
* @extends {jspb.Message}
|
|
7862
|
+
* @constructor
|
|
7863
|
+
*/
|
|
7864
|
+
proto.clarifai.api.PatchComputeClustersRequest = function(opt_data) {
|
|
7865
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchComputeClustersRequest.repeatedFields_, null);
|
|
7866
|
+
};
|
|
7867
|
+
goog.inherits(proto.clarifai.api.PatchComputeClustersRequest, jspb.Message);
|
|
7868
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7869
|
+
/**
|
|
7870
|
+
* @public
|
|
7871
|
+
* @override
|
|
7872
|
+
*/
|
|
7873
|
+
proto.clarifai.api.PatchComputeClustersRequest.displayName = 'proto.clarifai.api.PatchComputeClustersRequest';
|
|
7874
|
+
}
|
|
7853
7875
|
/**
|
|
7854
7876
|
* Generated by JsPbCodeGenerator.
|
|
7855
7877
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -95233,6 +95255,247 @@ proto.clarifai.api.PostComputeClustersRequest.prototype.clearComputeClustersList
|
|
|
95233
95255
|
|
|
95234
95256
|
|
|
95235
95257
|
|
|
95258
|
+
/**
|
|
95259
|
+
* List of repeated fields within this message type.
|
|
95260
|
+
* @private {!Array<number>}
|
|
95261
|
+
* @const
|
|
95262
|
+
*/
|
|
95263
|
+
proto.clarifai.api.PatchComputeClustersRequest.repeatedFields_ = [2];
|
|
95264
|
+
|
|
95265
|
+
|
|
95266
|
+
|
|
95267
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
95268
|
+
/**
|
|
95269
|
+
* Creates an object representation of this proto.
|
|
95270
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
95271
|
+
* Optional fields that are not set will be set to undefined.
|
|
95272
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
95273
|
+
* For the list of reserved names please see:
|
|
95274
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
95275
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
95276
|
+
* JSPB instance for transitional soy proto support:
|
|
95277
|
+
* http://goto/soy-param-migration
|
|
95278
|
+
* @return {!Object}
|
|
95279
|
+
*/
|
|
95280
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.toObject = function(opt_includeInstance) {
|
|
95281
|
+
return proto.clarifai.api.PatchComputeClustersRequest.toObject(opt_includeInstance, this);
|
|
95282
|
+
};
|
|
95283
|
+
|
|
95284
|
+
|
|
95285
|
+
/**
|
|
95286
|
+
* Static version of the {@see toObject} method.
|
|
95287
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
95288
|
+
* the JSPB instance for transitional soy proto support:
|
|
95289
|
+
* http://goto/soy-param-migration
|
|
95290
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} msg The msg instance to transform.
|
|
95291
|
+
* @return {!Object}
|
|
95292
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
95293
|
+
*/
|
|
95294
|
+
proto.clarifai.api.PatchComputeClustersRequest.toObject = function(includeInstance, msg) {
|
|
95295
|
+
var f, obj = {
|
|
95296
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
95297
|
+
computeClustersList: jspb.Message.toObjectList(msg.getComputeClustersList(),
|
|
95298
|
+
proto_clarifai_api_resources_pb.ComputeCluster.toObject, includeInstance),
|
|
95299
|
+
action: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
95300
|
+
};
|
|
95301
|
+
|
|
95302
|
+
if (includeInstance) {
|
|
95303
|
+
obj.$jspbMessageInstance = msg;
|
|
95304
|
+
}
|
|
95305
|
+
return obj;
|
|
95306
|
+
};
|
|
95307
|
+
}
|
|
95308
|
+
|
|
95309
|
+
|
|
95310
|
+
/**
|
|
95311
|
+
* Deserializes binary data (in protobuf wire format).
|
|
95312
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
95313
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest}
|
|
95314
|
+
*/
|
|
95315
|
+
proto.clarifai.api.PatchComputeClustersRequest.deserializeBinary = function(bytes) {
|
|
95316
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
95317
|
+
var msg = new proto.clarifai.api.PatchComputeClustersRequest;
|
|
95318
|
+
return proto.clarifai.api.PatchComputeClustersRequest.deserializeBinaryFromReader(msg, reader);
|
|
95319
|
+
};
|
|
95320
|
+
|
|
95321
|
+
|
|
95322
|
+
/**
|
|
95323
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
95324
|
+
* given reader into the given message object.
|
|
95325
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} msg The message object to deserialize into.
|
|
95326
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
95327
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest}
|
|
95328
|
+
*/
|
|
95329
|
+
proto.clarifai.api.PatchComputeClustersRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
95330
|
+
while (reader.nextField()) {
|
|
95331
|
+
if (reader.isEndGroup()) {
|
|
95332
|
+
break;
|
|
95333
|
+
}
|
|
95334
|
+
var field = reader.getFieldNumber();
|
|
95335
|
+
switch (field) {
|
|
95336
|
+
case 1:
|
|
95337
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
95338
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
95339
|
+
msg.setUserAppId(value);
|
|
95340
|
+
break;
|
|
95341
|
+
case 2:
|
|
95342
|
+
var value = new proto_clarifai_api_resources_pb.ComputeCluster;
|
|
95343
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.ComputeCluster.deserializeBinaryFromReader);
|
|
95344
|
+
msg.addComputeClusters(value);
|
|
95345
|
+
break;
|
|
95346
|
+
case 3:
|
|
95347
|
+
var value = /** @type {string} */ (reader.readString());
|
|
95348
|
+
msg.setAction(value);
|
|
95349
|
+
break;
|
|
95350
|
+
default:
|
|
95351
|
+
reader.skipField();
|
|
95352
|
+
break;
|
|
95353
|
+
}
|
|
95354
|
+
}
|
|
95355
|
+
return msg;
|
|
95356
|
+
};
|
|
95357
|
+
|
|
95358
|
+
|
|
95359
|
+
/**
|
|
95360
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
95361
|
+
* @return {!Uint8Array}
|
|
95362
|
+
*/
|
|
95363
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.serializeBinary = function() {
|
|
95364
|
+
var writer = new jspb.BinaryWriter();
|
|
95365
|
+
proto.clarifai.api.PatchComputeClustersRequest.serializeBinaryToWriter(this, writer);
|
|
95366
|
+
return writer.getResultBuffer();
|
|
95367
|
+
};
|
|
95368
|
+
|
|
95369
|
+
|
|
95370
|
+
/**
|
|
95371
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
95372
|
+
* format), writing to the given BinaryWriter.
|
|
95373
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} message
|
|
95374
|
+
* @param {!jspb.BinaryWriter} writer
|
|
95375
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
95376
|
+
*/
|
|
95377
|
+
proto.clarifai.api.PatchComputeClustersRequest.serializeBinaryToWriter = function(message, writer) {
|
|
95378
|
+
var f = undefined;
|
|
95379
|
+
f = message.getUserAppId();
|
|
95380
|
+
if (f != null) {
|
|
95381
|
+
writer.writeMessage(
|
|
95382
|
+
1,
|
|
95383
|
+
f,
|
|
95384
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
95385
|
+
);
|
|
95386
|
+
}
|
|
95387
|
+
f = message.getComputeClustersList();
|
|
95388
|
+
if (f.length > 0) {
|
|
95389
|
+
writer.writeRepeatedMessage(
|
|
95390
|
+
2,
|
|
95391
|
+
f,
|
|
95392
|
+
proto_clarifai_api_resources_pb.ComputeCluster.serializeBinaryToWriter
|
|
95393
|
+
);
|
|
95394
|
+
}
|
|
95395
|
+
f = message.getAction();
|
|
95396
|
+
if (f.length > 0) {
|
|
95397
|
+
writer.writeString(
|
|
95398
|
+
3,
|
|
95399
|
+
f
|
|
95400
|
+
);
|
|
95401
|
+
}
|
|
95402
|
+
};
|
|
95403
|
+
|
|
95404
|
+
|
|
95405
|
+
/**
|
|
95406
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
95407
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
95408
|
+
*/
|
|
95409
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.getUserAppId = function() {
|
|
95410
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
95411
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
95412
|
+
};
|
|
95413
|
+
|
|
95414
|
+
|
|
95415
|
+
/**
|
|
95416
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
95417
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
95418
|
+
*/
|
|
95419
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.setUserAppId = function(value) {
|
|
95420
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
95421
|
+
};
|
|
95422
|
+
|
|
95423
|
+
|
|
95424
|
+
/**
|
|
95425
|
+
* Clears the message field making it undefined.
|
|
95426
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
95427
|
+
*/
|
|
95428
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.clearUserAppId = function() {
|
|
95429
|
+
return this.setUserAppId(undefined);
|
|
95430
|
+
};
|
|
95431
|
+
|
|
95432
|
+
|
|
95433
|
+
/**
|
|
95434
|
+
* Returns whether this field is set.
|
|
95435
|
+
* @return {boolean}
|
|
95436
|
+
*/
|
|
95437
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.hasUserAppId = function() {
|
|
95438
|
+
return jspb.Message.getField(this, 1) != null;
|
|
95439
|
+
};
|
|
95440
|
+
|
|
95441
|
+
|
|
95442
|
+
/**
|
|
95443
|
+
* repeated ComputeCluster compute_clusters = 2;
|
|
95444
|
+
* @return {!Array<!proto.clarifai.api.ComputeCluster>}
|
|
95445
|
+
*/
|
|
95446
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.getComputeClustersList = function() {
|
|
95447
|
+
return /** @type{!Array<!proto.clarifai.api.ComputeCluster>} */ (
|
|
95448
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ComputeCluster, 2));
|
|
95449
|
+
};
|
|
95450
|
+
|
|
95451
|
+
|
|
95452
|
+
/**
|
|
95453
|
+
* @param {!Array<!proto.clarifai.api.ComputeCluster>} value
|
|
95454
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
95455
|
+
*/
|
|
95456
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.setComputeClustersList = function(value) {
|
|
95457
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
95458
|
+
};
|
|
95459
|
+
|
|
95460
|
+
|
|
95461
|
+
/**
|
|
95462
|
+
* @param {!proto.clarifai.api.ComputeCluster=} opt_value
|
|
95463
|
+
* @param {number=} opt_index
|
|
95464
|
+
* @return {!proto.clarifai.api.ComputeCluster}
|
|
95465
|
+
*/
|
|
95466
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.addComputeClusters = function(opt_value, opt_index) {
|
|
95467
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ComputeCluster, opt_index);
|
|
95468
|
+
};
|
|
95469
|
+
|
|
95470
|
+
|
|
95471
|
+
/**
|
|
95472
|
+
* Clears the list making it empty but non-null.
|
|
95473
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
95474
|
+
*/
|
|
95475
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.clearComputeClustersList = function() {
|
|
95476
|
+
return this.setComputeClustersList([]);
|
|
95477
|
+
};
|
|
95478
|
+
|
|
95479
|
+
|
|
95480
|
+
/**
|
|
95481
|
+
* optional string action = 3;
|
|
95482
|
+
* @return {string}
|
|
95483
|
+
*/
|
|
95484
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.getAction = function() {
|
|
95485
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
95486
|
+
};
|
|
95487
|
+
|
|
95488
|
+
|
|
95489
|
+
/**
|
|
95490
|
+
* @param {string} value
|
|
95491
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
95492
|
+
*/
|
|
95493
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.setAction = function(value) {
|
|
95494
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
95495
|
+
};
|
|
95496
|
+
|
|
95497
|
+
|
|
95498
|
+
|
|
95236
95499
|
/**
|
|
95237
95500
|
* List of repeated fields within this message type.
|
|
95238
95501
|
* @private {!Array<number>}
|