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
|
@@ -9768,6 +9768,48 @@ proto.clarifai.api.V2PromiseClient.prototype.deleteComputeClusters =
|
|
|
9768
9768
|
return this.client_.unaryCall(this.hostname_ +
|
|
9769
9769
|
'/clarifai.api.V2/DeleteComputeClusters', request, metadata || {}, methodDescriptor_V2_DeleteComputeClusters);
|
|
9770
9770
|
};
|
|
9771
|
+
/**
|
|
9772
|
+
* @const
|
|
9773
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
9774
|
+
* !proto.clarifai.api.PatchComputeClustersRequest,
|
|
9775
|
+
* !proto.clarifai.api.MultiComputeClusterResponse>}
|
|
9776
|
+
*/
|
|
9777
|
+
const methodDescriptor_V2_PatchComputeClusters = new grpc.web.MethodDescriptor('/clarifai.api.V2/PatchComputeClusters', grpc.web.MethodType.UNARY, proto.clarifai.api.PatchComputeClustersRequest, proto.clarifai.api.MultiComputeClusterResponse,
|
|
9778
|
+
/**
|
|
9779
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} request
|
|
9780
|
+
* @return {!Uint8Array}
|
|
9781
|
+
*/
|
|
9782
|
+
function (request) {
|
|
9783
|
+
return request.serializeBinary();
|
|
9784
|
+
}, proto.clarifai.api.MultiComputeClusterResponse.deserializeBinary);
|
|
9785
|
+
/**
|
|
9786
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} request The
|
|
9787
|
+
* request proto
|
|
9788
|
+
* @param {?Object<string, string>} metadata User defined
|
|
9789
|
+
* call metadata
|
|
9790
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiComputeClusterResponse)}
|
|
9791
|
+
* callback The callback function(error, response)
|
|
9792
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiComputeClusterResponse>|undefined}
|
|
9793
|
+
* The XHR Node Readable Stream
|
|
9794
|
+
*/
|
|
9795
|
+
proto.clarifai.api.V2Client.prototype.patchComputeClusters =
|
|
9796
|
+
function (request, metadata, callback) {
|
|
9797
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
9798
|
+
'/clarifai.api.V2/PatchComputeClusters', request, metadata || {}, methodDescriptor_V2_PatchComputeClusters, callback);
|
|
9799
|
+
};
|
|
9800
|
+
/**
|
|
9801
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} request The
|
|
9802
|
+
* request proto
|
|
9803
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
9804
|
+
* call metadata
|
|
9805
|
+
* @return {!Promise<!proto.clarifai.api.MultiComputeClusterResponse>}
|
|
9806
|
+
* Promise that resolves to the response
|
|
9807
|
+
*/
|
|
9808
|
+
proto.clarifai.api.V2PromiseClient.prototype.patchComputeClusters =
|
|
9809
|
+
function (request, metadata) {
|
|
9810
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
9811
|
+
'/clarifai.api.V2/PatchComputeClusters', request, metadata || {}, methodDescriptor_V2_PatchComputeClusters);
|
|
9812
|
+
};
|
|
9771
9813
|
/**
|
|
9772
9814
|
* @const
|
|
9773
9815
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -305,6 +305,7 @@ goog.exportSymbol('proto.clarifai.api.PatchAppsIdsRequest', null, global);
|
|
|
305
305
|
goog.exportSymbol('proto.clarifai.api.PatchAppsRequest', null, global);
|
|
306
306
|
goog.exportSymbol('proto.clarifai.api.PatchCollaboratorsRequest', null, global);
|
|
307
307
|
goog.exportSymbol('proto.clarifai.api.PatchCollectorsRequest', null, global);
|
|
308
|
+
goog.exportSymbol('proto.clarifai.api.PatchComputeClustersRequest', null, global);
|
|
308
309
|
goog.exportSymbol('proto.clarifai.api.PatchConceptLanguagesRequest', null, global);
|
|
309
310
|
goog.exportSymbol('proto.clarifai.api.PatchConceptsRequest', null, global);
|
|
310
311
|
goog.exportSymbol('proto.clarifai.api.PatchDatasetVersionsRequest', null, global);
|
|
@@ -7848,6 +7849,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
7848
7849
|
*/
|
|
7849
7850
|
proto.clarifai.api.PostComputeClustersRequest.displayName = 'proto.clarifai.api.PostComputeClustersRequest';
|
|
7850
7851
|
}
|
|
7852
|
+
/**
|
|
7853
|
+
* Generated by JsPbCodeGenerator.
|
|
7854
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7855
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7856
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7857
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7858
|
+
* valid.
|
|
7859
|
+
* @extends {jspb.Message}
|
|
7860
|
+
* @constructor
|
|
7861
|
+
*/
|
|
7862
|
+
proto.clarifai.api.PatchComputeClustersRequest = function (opt_data) {
|
|
7863
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchComputeClustersRequest.repeatedFields_, null);
|
|
7864
|
+
};
|
|
7865
|
+
goog.inherits(proto.clarifai.api.PatchComputeClustersRequest, jspb.Message);
|
|
7866
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7867
|
+
/**
|
|
7868
|
+
* @public
|
|
7869
|
+
* @override
|
|
7870
|
+
*/
|
|
7871
|
+
proto.clarifai.api.PatchComputeClustersRequest.displayName = 'proto.clarifai.api.PatchComputeClustersRequest';
|
|
7872
|
+
}
|
|
7851
7873
|
/**
|
|
7852
7874
|
* Generated by JsPbCodeGenerator.
|
|
7853
7875
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -77272,6 +77294,196 @@ proto.clarifai.api.PostComputeClustersRequest.prototype.addComputeClusters = fun
|
|
|
77272
77294
|
proto.clarifai.api.PostComputeClustersRequest.prototype.clearComputeClustersList = function () {
|
|
77273
77295
|
return this.setComputeClustersList([]);
|
|
77274
77296
|
};
|
|
77297
|
+
/**
|
|
77298
|
+
* List of repeated fields within this message type.
|
|
77299
|
+
* @private {!Array<number>}
|
|
77300
|
+
* @const
|
|
77301
|
+
*/
|
|
77302
|
+
proto.clarifai.api.PatchComputeClustersRequest.repeatedFields_ = [2];
|
|
77303
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
77304
|
+
/**
|
|
77305
|
+
* Creates an object representation of this proto.
|
|
77306
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
77307
|
+
* Optional fields that are not set will be set to undefined.
|
|
77308
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
77309
|
+
* For the list of reserved names please see:
|
|
77310
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
77311
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
77312
|
+
* JSPB instance for transitional soy proto support:
|
|
77313
|
+
* http://goto/soy-param-migration
|
|
77314
|
+
* @return {!Object}
|
|
77315
|
+
*/
|
|
77316
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.toObject = function (opt_includeInstance) {
|
|
77317
|
+
return proto.clarifai.api.PatchComputeClustersRequest.toObject(opt_includeInstance, this);
|
|
77318
|
+
};
|
|
77319
|
+
/**
|
|
77320
|
+
* Static version of the {@see toObject} method.
|
|
77321
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
77322
|
+
* the JSPB instance for transitional soy proto support:
|
|
77323
|
+
* http://goto/soy-param-migration
|
|
77324
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} msg The msg instance to transform.
|
|
77325
|
+
* @return {!Object}
|
|
77326
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77327
|
+
*/
|
|
77328
|
+
proto.clarifai.api.PatchComputeClustersRequest.toObject = function (includeInstance, msg) {
|
|
77329
|
+
var f, obj = {
|
|
77330
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
77331
|
+
computeClustersList: jspb.Message.toObjectList(msg.getComputeClustersList(), proto_clarifai_api_resources_pb.ComputeCluster.toObject, includeInstance),
|
|
77332
|
+
action: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
77333
|
+
};
|
|
77334
|
+
if (includeInstance) {
|
|
77335
|
+
obj.$jspbMessageInstance = msg;
|
|
77336
|
+
}
|
|
77337
|
+
return obj;
|
|
77338
|
+
};
|
|
77339
|
+
}
|
|
77340
|
+
/**
|
|
77341
|
+
* Deserializes binary data (in protobuf wire format).
|
|
77342
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
77343
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest}
|
|
77344
|
+
*/
|
|
77345
|
+
proto.clarifai.api.PatchComputeClustersRequest.deserializeBinary = function (bytes) {
|
|
77346
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
77347
|
+
var msg = new proto.clarifai.api.PatchComputeClustersRequest;
|
|
77348
|
+
return proto.clarifai.api.PatchComputeClustersRequest.deserializeBinaryFromReader(msg, reader);
|
|
77349
|
+
};
|
|
77350
|
+
/**
|
|
77351
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
77352
|
+
* given reader into the given message object.
|
|
77353
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} msg The message object to deserialize into.
|
|
77354
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
77355
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest}
|
|
77356
|
+
*/
|
|
77357
|
+
proto.clarifai.api.PatchComputeClustersRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
77358
|
+
while (reader.nextField()) {
|
|
77359
|
+
if (reader.isEndGroup()) {
|
|
77360
|
+
break;
|
|
77361
|
+
}
|
|
77362
|
+
var field = reader.getFieldNumber();
|
|
77363
|
+
switch (field) {
|
|
77364
|
+
case 1:
|
|
77365
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
77366
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
77367
|
+
msg.setUserAppId(value);
|
|
77368
|
+
break;
|
|
77369
|
+
case 2:
|
|
77370
|
+
var value = new proto_clarifai_api_resources_pb.ComputeCluster;
|
|
77371
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.ComputeCluster.deserializeBinaryFromReader);
|
|
77372
|
+
msg.addComputeClusters(value);
|
|
77373
|
+
break;
|
|
77374
|
+
case 3:
|
|
77375
|
+
var value = /** @type {string} */ (reader.readString());
|
|
77376
|
+
msg.setAction(value);
|
|
77377
|
+
break;
|
|
77378
|
+
default:
|
|
77379
|
+
reader.skipField();
|
|
77380
|
+
break;
|
|
77381
|
+
}
|
|
77382
|
+
}
|
|
77383
|
+
return msg;
|
|
77384
|
+
};
|
|
77385
|
+
/**
|
|
77386
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
77387
|
+
* @return {!Uint8Array}
|
|
77388
|
+
*/
|
|
77389
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.serializeBinary = function () {
|
|
77390
|
+
var writer = new jspb.BinaryWriter();
|
|
77391
|
+
proto.clarifai.api.PatchComputeClustersRequest.serializeBinaryToWriter(this, writer);
|
|
77392
|
+
return writer.getResultBuffer();
|
|
77393
|
+
};
|
|
77394
|
+
/**
|
|
77395
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
77396
|
+
* format), writing to the given BinaryWriter.
|
|
77397
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} message
|
|
77398
|
+
* @param {!jspb.BinaryWriter} writer
|
|
77399
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77400
|
+
*/
|
|
77401
|
+
proto.clarifai.api.PatchComputeClustersRequest.serializeBinaryToWriter = function (message, writer) {
|
|
77402
|
+
var f = undefined;
|
|
77403
|
+
f = message.getUserAppId();
|
|
77404
|
+
if (f != null) {
|
|
77405
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
77406
|
+
}
|
|
77407
|
+
f = message.getComputeClustersList();
|
|
77408
|
+
if (f.length > 0) {
|
|
77409
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.ComputeCluster.serializeBinaryToWriter);
|
|
77410
|
+
}
|
|
77411
|
+
f = message.getAction();
|
|
77412
|
+
if (f.length > 0) {
|
|
77413
|
+
writer.writeString(3, f);
|
|
77414
|
+
}
|
|
77415
|
+
};
|
|
77416
|
+
/**
|
|
77417
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
77418
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
77419
|
+
*/
|
|
77420
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.getUserAppId = function () {
|
|
77421
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
77422
|
+
};
|
|
77423
|
+
/**
|
|
77424
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
77425
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
77426
|
+
*/
|
|
77427
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.setUserAppId = function (value) {
|
|
77428
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
77429
|
+
};
|
|
77430
|
+
/**
|
|
77431
|
+
* Clears the message field making it undefined.
|
|
77432
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
77433
|
+
*/
|
|
77434
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.clearUserAppId = function () {
|
|
77435
|
+
return this.setUserAppId(undefined);
|
|
77436
|
+
};
|
|
77437
|
+
/**
|
|
77438
|
+
* Returns whether this field is set.
|
|
77439
|
+
* @return {boolean}
|
|
77440
|
+
*/
|
|
77441
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.hasUserAppId = function () {
|
|
77442
|
+
return jspb.Message.getField(this, 1) != null;
|
|
77443
|
+
};
|
|
77444
|
+
/**
|
|
77445
|
+
* repeated ComputeCluster compute_clusters = 2;
|
|
77446
|
+
* @return {!Array<!proto.clarifai.api.ComputeCluster>}
|
|
77447
|
+
*/
|
|
77448
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.getComputeClustersList = function () {
|
|
77449
|
+
return /** @type{!Array<!proto.clarifai.api.ComputeCluster>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ComputeCluster, 2));
|
|
77450
|
+
};
|
|
77451
|
+
/**
|
|
77452
|
+
* @param {!Array<!proto.clarifai.api.ComputeCluster>} value
|
|
77453
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
77454
|
+
*/
|
|
77455
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.setComputeClustersList = function (value) {
|
|
77456
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
77457
|
+
};
|
|
77458
|
+
/**
|
|
77459
|
+
* @param {!proto.clarifai.api.ComputeCluster=} opt_value
|
|
77460
|
+
* @param {number=} opt_index
|
|
77461
|
+
* @return {!proto.clarifai.api.ComputeCluster}
|
|
77462
|
+
*/
|
|
77463
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.addComputeClusters = function (opt_value, opt_index) {
|
|
77464
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ComputeCluster, opt_index);
|
|
77465
|
+
};
|
|
77466
|
+
/**
|
|
77467
|
+
* Clears the list making it empty but non-null.
|
|
77468
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
77469
|
+
*/
|
|
77470
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.clearComputeClustersList = function () {
|
|
77471
|
+
return this.setComputeClustersList([]);
|
|
77472
|
+
};
|
|
77473
|
+
/**
|
|
77474
|
+
* optional string action = 3;
|
|
77475
|
+
* @return {string}
|
|
77476
|
+
*/
|
|
77477
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.getAction = function () {
|
|
77478
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
77479
|
+
};
|
|
77480
|
+
/**
|
|
77481
|
+
* @param {string} value
|
|
77482
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
77483
|
+
*/
|
|
77484
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.setAction = function (value) {
|
|
77485
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
77486
|
+
};
|
|
77275
77487
|
/**
|
|
77276
77488
|
* List of repeated fields within this message type.
|
|
77277
77489
|
* @private {!Array<number>}
|
package/package.json
CHANGED
|
@@ -10409,7 +10409,7 @@ export namespace Pipeline {
|
|
|
10409
10409
|
}
|
|
10410
10410
|
|
|
10411
10411
|
export class PipelineVersionConfig extends jspb.Message {
|
|
10412
|
-
getStepVersionSecretsMap(): jspb.Map<string,
|
|
10412
|
+
getStepVersionSecretsMap(): jspb.Map<string, google_protobuf_struct_pb.Struct>;
|
|
10413
10413
|
clearStepVersionSecretsMap(): PipelineVersionConfig;
|
|
10414
10414
|
|
|
10415
10415
|
serializeBinary(): Uint8Array;
|
|
@@ -10422,25 +10422,7 @@ export class PipelineVersionConfig extends jspb.Message {
|
|
|
10422
10422
|
|
|
10423
10423
|
export namespace PipelineVersionConfig {
|
|
10424
10424
|
export type AsObject = {
|
|
10425
|
-
stepVersionSecretsMap: Array<[string,
|
|
10426
|
-
}
|
|
10427
|
-
}
|
|
10428
|
-
|
|
10429
|
-
export class StepSecretConfig extends jspb.Message {
|
|
10430
|
-
getSecretsMap(): jspb.Map<string, string>;
|
|
10431
|
-
clearSecretsMap(): StepSecretConfig;
|
|
10432
|
-
|
|
10433
|
-
serializeBinary(): Uint8Array;
|
|
10434
|
-
toObject(includeInstance?: boolean): StepSecretConfig.AsObject;
|
|
10435
|
-
static toObject(includeInstance: boolean, msg: StepSecretConfig): StepSecretConfig.AsObject;
|
|
10436
|
-
static serializeBinaryToWriter(message: StepSecretConfig, writer: jspb.BinaryWriter): void;
|
|
10437
|
-
static deserializeBinary(bytes: Uint8Array): StepSecretConfig;
|
|
10438
|
-
static deserializeBinaryFromReader(message: StepSecretConfig, reader: jspb.BinaryReader): StepSecretConfig;
|
|
10439
|
-
}
|
|
10440
|
-
|
|
10441
|
-
export namespace StepSecretConfig {
|
|
10442
|
-
export type AsObject = {
|
|
10443
|
-
secretsMap: Array<[string, string]>,
|
|
10425
|
+
stepVersionSecretsMap: Array<[string, google_protobuf_struct_pb.Struct.AsObject]>,
|
|
10444
10426
|
}
|
|
10445
10427
|
}
|
|
10446
10428
|
|
|
@@ -302,7 +302,6 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggType', null, global);
|
|
|
302
302
|
goog.exportSymbol('proto.clarifai.api.StatValueAggregate', null, global);
|
|
303
303
|
goog.exportSymbol('proto.clarifai.api.StatValueAggregateQuery', null, global);
|
|
304
304
|
goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
|
|
305
|
-
goog.exportSymbol('proto.clarifai.api.StepSecretConfig', null, global);
|
|
306
305
|
goog.exportSymbol('proto.clarifai.api.Task', null, global);
|
|
307
306
|
goog.exportSymbol('proto.clarifai.api.Task.TaskPriority', null, global);
|
|
308
307
|
goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
|
|
@@ -5643,27 +5642,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5643
5642
|
*/
|
|
5644
5643
|
proto.clarifai.api.PipelineVersionConfig.displayName = 'proto.clarifai.api.PipelineVersionConfig';
|
|
5645
5644
|
}
|
|
5646
|
-
/**
|
|
5647
|
-
* Generated by JsPbCodeGenerator.
|
|
5648
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5649
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5650
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5651
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5652
|
-
* valid.
|
|
5653
|
-
* @extends {jspb.Message}
|
|
5654
|
-
* @constructor
|
|
5655
|
-
*/
|
|
5656
|
-
proto.clarifai.api.StepSecretConfig = function(opt_data) {
|
|
5657
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5658
|
-
};
|
|
5659
|
-
goog.inherits(proto.clarifai.api.StepSecretConfig, jspb.Message);
|
|
5660
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5661
|
-
/**
|
|
5662
|
-
* @public
|
|
5663
|
-
* @override
|
|
5664
|
-
*/
|
|
5665
|
-
proto.clarifai.api.StepSecretConfig.displayName = 'proto.clarifai.api.StepSecretConfig';
|
|
5666
|
-
}
|
|
5667
5645
|
/**
|
|
5668
5646
|
* Generated by JsPbCodeGenerator.
|
|
5669
5647
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -85428,7 +85406,7 @@ proto.clarifai.api.PipelineVersionConfig.prototype.toObject = function(opt_inclu
|
|
|
85428
85406
|
*/
|
|
85429
85407
|
proto.clarifai.api.PipelineVersionConfig.toObject = function(includeInstance, msg) {
|
|
85430
85408
|
var f, obj = {
|
|
85431
|
-
stepVersionSecretsMap: (f = msg.getStepVersionSecretsMap()) ? f.toObject(includeInstance, proto.
|
|
85409
|
+
stepVersionSecretsMap: (f = msg.getStepVersionSecretsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Struct.toObject) : []
|
|
85432
85410
|
};
|
|
85433
85411
|
|
|
85434
85412
|
if (includeInstance) {
|
|
@@ -85468,7 +85446,7 @@ proto.clarifai.api.PipelineVersionConfig.deserializeBinaryFromReader = function(
|
|
|
85468
85446
|
case 1:
|
|
85469
85447
|
var value = msg.getStepVersionSecretsMap();
|
|
85470
85448
|
reader.readMessage(value, function(message, reader) {
|
|
85471
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.
|
|
85449
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Struct.deserializeBinaryFromReader, "", new proto.google.protobuf.Struct());
|
|
85472
85450
|
});
|
|
85473
85451
|
break;
|
|
85474
85452
|
default:
|
|
@@ -85502,21 +85480,21 @@ proto.clarifai.api.PipelineVersionConfig.serializeBinaryToWriter = function(mess
|
|
|
85502
85480
|
var f = undefined;
|
|
85503
85481
|
f = message.getStepVersionSecretsMap(true);
|
|
85504
85482
|
if (f && f.getLength() > 0) {
|
|
85505
|
-
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.
|
|
85483
|
+
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Struct.serializeBinaryToWriter);
|
|
85506
85484
|
}
|
|
85507
85485
|
};
|
|
85508
85486
|
|
|
85509
85487
|
|
|
85510
85488
|
/**
|
|
85511
|
-
* map<string,
|
|
85489
|
+
* map<string, google.protobuf.Struct> step_version_secrets = 1;
|
|
85512
85490
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
85513
85491
|
* empty, instead returning `undefined`
|
|
85514
|
-
* @return {!jspb.Map<string,!proto.
|
|
85492
|
+
* @return {!jspb.Map<string,!proto.google.protobuf.Struct>}
|
|
85515
85493
|
*/
|
|
85516
85494
|
proto.clarifai.api.PipelineVersionConfig.prototype.getStepVersionSecretsMap = function(opt_noLazyCreate) {
|
|
85517
|
-
return /** @type {!jspb.Map<string,!proto.
|
|
85495
|
+
return /** @type {!jspb.Map<string,!proto.google.protobuf.Struct>} */ (
|
|
85518
85496
|
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
|
|
85519
|
-
proto.
|
|
85497
|
+
proto.google.protobuf.Struct));
|
|
85520
85498
|
};
|
|
85521
85499
|
|
|
85522
85500
|
|
|
@@ -85533,140 +85511,6 @@ proto.clarifai.api.PipelineVersionConfig.prototype.clearStepVersionSecretsMap =
|
|
|
85533
85511
|
|
|
85534
85512
|
|
|
85535
85513
|
|
|
85536
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
85537
|
-
/**
|
|
85538
|
-
* Creates an object representation of this proto.
|
|
85539
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
85540
|
-
* Optional fields that are not set will be set to undefined.
|
|
85541
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
85542
|
-
* For the list of reserved names please see:
|
|
85543
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
85544
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
85545
|
-
* JSPB instance for transitional soy proto support:
|
|
85546
|
-
* http://goto/soy-param-migration
|
|
85547
|
-
* @return {!Object}
|
|
85548
|
-
*/
|
|
85549
|
-
proto.clarifai.api.StepSecretConfig.prototype.toObject = function(opt_includeInstance) {
|
|
85550
|
-
return proto.clarifai.api.StepSecretConfig.toObject(opt_includeInstance, this);
|
|
85551
|
-
};
|
|
85552
|
-
|
|
85553
|
-
|
|
85554
|
-
/**
|
|
85555
|
-
* Static version of the {@see toObject} method.
|
|
85556
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
85557
|
-
* the JSPB instance for transitional soy proto support:
|
|
85558
|
-
* http://goto/soy-param-migration
|
|
85559
|
-
* @param {!proto.clarifai.api.StepSecretConfig} msg The msg instance to transform.
|
|
85560
|
-
* @return {!Object}
|
|
85561
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
85562
|
-
*/
|
|
85563
|
-
proto.clarifai.api.StepSecretConfig.toObject = function(includeInstance, msg) {
|
|
85564
|
-
var f, obj = {
|
|
85565
|
-
secretsMap: (f = msg.getSecretsMap()) ? f.toObject(includeInstance, undefined) : []
|
|
85566
|
-
};
|
|
85567
|
-
|
|
85568
|
-
if (includeInstance) {
|
|
85569
|
-
obj.$jspbMessageInstance = msg;
|
|
85570
|
-
}
|
|
85571
|
-
return obj;
|
|
85572
|
-
};
|
|
85573
|
-
}
|
|
85574
|
-
|
|
85575
|
-
|
|
85576
|
-
/**
|
|
85577
|
-
* Deserializes binary data (in protobuf wire format).
|
|
85578
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
85579
|
-
* @return {!proto.clarifai.api.StepSecretConfig}
|
|
85580
|
-
*/
|
|
85581
|
-
proto.clarifai.api.StepSecretConfig.deserializeBinary = function(bytes) {
|
|
85582
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
85583
|
-
var msg = new proto.clarifai.api.StepSecretConfig;
|
|
85584
|
-
return proto.clarifai.api.StepSecretConfig.deserializeBinaryFromReader(msg, reader);
|
|
85585
|
-
};
|
|
85586
|
-
|
|
85587
|
-
|
|
85588
|
-
/**
|
|
85589
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
85590
|
-
* given reader into the given message object.
|
|
85591
|
-
* @param {!proto.clarifai.api.StepSecretConfig} msg The message object to deserialize into.
|
|
85592
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
85593
|
-
* @return {!proto.clarifai.api.StepSecretConfig}
|
|
85594
|
-
*/
|
|
85595
|
-
proto.clarifai.api.StepSecretConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
85596
|
-
while (reader.nextField()) {
|
|
85597
|
-
if (reader.isEndGroup()) {
|
|
85598
|
-
break;
|
|
85599
|
-
}
|
|
85600
|
-
var field = reader.getFieldNumber();
|
|
85601
|
-
switch (field) {
|
|
85602
|
-
case 1:
|
|
85603
|
-
var value = msg.getSecretsMap();
|
|
85604
|
-
reader.readMessage(value, function(message, reader) {
|
|
85605
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
85606
|
-
});
|
|
85607
|
-
break;
|
|
85608
|
-
default:
|
|
85609
|
-
reader.skipField();
|
|
85610
|
-
break;
|
|
85611
|
-
}
|
|
85612
|
-
}
|
|
85613
|
-
return msg;
|
|
85614
|
-
};
|
|
85615
|
-
|
|
85616
|
-
|
|
85617
|
-
/**
|
|
85618
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
85619
|
-
* @return {!Uint8Array}
|
|
85620
|
-
*/
|
|
85621
|
-
proto.clarifai.api.StepSecretConfig.prototype.serializeBinary = function() {
|
|
85622
|
-
var writer = new jspb.BinaryWriter();
|
|
85623
|
-
proto.clarifai.api.StepSecretConfig.serializeBinaryToWriter(this, writer);
|
|
85624
|
-
return writer.getResultBuffer();
|
|
85625
|
-
};
|
|
85626
|
-
|
|
85627
|
-
|
|
85628
|
-
/**
|
|
85629
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
85630
|
-
* format), writing to the given BinaryWriter.
|
|
85631
|
-
* @param {!proto.clarifai.api.StepSecretConfig} message
|
|
85632
|
-
* @param {!jspb.BinaryWriter} writer
|
|
85633
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
85634
|
-
*/
|
|
85635
|
-
proto.clarifai.api.StepSecretConfig.serializeBinaryToWriter = function(message, writer) {
|
|
85636
|
-
var f = undefined;
|
|
85637
|
-
f = message.getSecretsMap(true);
|
|
85638
|
-
if (f && f.getLength() > 0) {
|
|
85639
|
-
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
85640
|
-
}
|
|
85641
|
-
};
|
|
85642
|
-
|
|
85643
|
-
|
|
85644
|
-
/**
|
|
85645
|
-
* map<string, string> secrets = 1;
|
|
85646
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
85647
|
-
* empty, instead returning `undefined`
|
|
85648
|
-
* @return {!jspb.Map<string,string>}
|
|
85649
|
-
*/
|
|
85650
|
-
proto.clarifai.api.StepSecretConfig.prototype.getSecretsMap = function(opt_noLazyCreate) {
|
|
85651
|
-
return /** @type {!jspb.Map<string,string>} */ (
|
|
85652
|
-
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
|
|
85653
|
-
null));
|
|
85654
|
-
};
|
|
85655
|
-
|
|
85656
|
-
|
|
85657
|
-
/**
|
|
85658
|
-
* Clears values from the map. The map will be non-null.
|
|
85659
|
-
* @return {!proto.clarifai.api.StepSecretConfig} returns this
|
|
85660
|
-
*/
|
|
85661
|
-
proto.clarifai.api.StepSecretConfig.prototype.clearSecretsMap = function() {
|
|
85662
|
-
this.getSecretsMap().clear();
|
|
85663
|
-
return this;
|
|
85664
|
-
};
|
|
85665
|
-
|
|
85666
|
-
|
|
85667
|
-
|
|
85668
|
-
|
|
85669
|
-
|
|
85670
85514
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
85671
85515
|
/**
|
|
85672
85516
|
* Creates an object representation of this proto.
|
|
@@ -1624,6 +1624,13 @@ export class V2Client {
|
|
|
1624
1624
|
response: proto_clarifai_api_status_status_pb.BaseResponse) => void
|
|
1625
1625
|
): grpcWeb.ClientReadableStream<proto_clarifai_api_status_status_pb.BaseResponse>;
|
|
1626
1626
|
|
|
1627
|
+
patchComputeClusters(
|
|
1628
|
+
request: proto_clarifai_api_service_pb.PatchComputeClustersRequest,
|
|
1629
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
1630
|
+
callback: (err: grpcWeb.RpcError,
|
|
1631
|
+
response: proto_clarifai_api_service_pb.MultiComputeClusterResponse) => void
|
|
1632
|
+
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiComputeClusterResponse>;
|
|
1633
|
+
|
|
1627
1634
|
getNodepool(
|
|
1628
1635
|
request: proto_clarifai_api_service_pb.GetNodepoolRequest,
|
|
1629
1636
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -3106,6 +3113,11 @@ export class V2PromiseClient {
|
|
|
3106
3113
|
metadata?: grpcWeb.Metadata
|
|
3107
3114
|
): Promise<proto_clarifai_api_status_status_pb.BaseResponse>;
|
|
3108
3115
|
|
|
3116
|
+
patchComputeClusters(
|
|
3117
|
+
request: proto_clarifai_api_service_pb.PatchComputeClustersRequest,
|
|
3118
|
+
metadata?: grpcWeb.Metadata
|
|
3119
|
+
): Promise<proto_clarifai_api_service_pb.MultiComputeClusterResponse>;
|
|
3120
|
+
|
|
3109
3121
|
getNodepool(
|
|
3110
3122
|
request: proto_clarifai_api_service_pb.GetNodepoolRequest,
|
|
3111
3123
|
metadata?: grpcWeb.Metadata
|
|
@@ -14181,6 +14181,67 @@ proto.clarifai.api.V2PromiseClient.prototype.deleteComputeClusters =
|
|
|
14181
14181
|
};
|
|
14182
14182
|
|
|
14183
14183
|
|
|
14184
|
+
/**
|
|
14185
|
+
* @const
|
|
14186
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
14187
|
+
* !proto.clarifai.api.PatchComputeClustersRequest,
|
|
14188
|
+
* !proto.clarifai.api.MultiComputeClusterResponse>}
|
|
14189
|
+
*/
|
|
14190
|
+
const methodDescriptor_V2_PatchComputeClusters = new grpc.web.MethodDescriptor(
|
|
14191
|
+
'/clarifai.api.V2/PatchComputeClusters',
|
|
14192
|
+
grpc.web.MethodType.UNARY,
|
|
14193
|
+
proto.clarifai.api.PatchComputeClustersRequest,
|
|
14194
|
+
proto.clarifai.api.MultiComputeClusterResponse,
|
|
14195
|
+
/**
|
|
14196
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} request
|
|
14197
|
+
* @return {!Uint8Array}
|
|
14198
|
+
*/
|
|
14199
|
+
function(request) {
|
|
14200
|
+
return request.serializeBinary();
|
|
14201
|
+
},
|
|
14202
|
+
proto.clarifai.api.MultiComputeClusterResponse.deserializeBinary
|
|
14203
|
+
);
|
|
14204
|
+
|
|
14205
|
+
|
|
14206
|
+
/**
|
|
14207
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} request The
|
|
14208
|
+
* request proto
|
|
14209
|
+
* @param {?Object<string, string>} metadata User defined
|
|
14210
|
+
* call metadata
|
|
14211
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiComputeClusterResponse)}
|
|
14212
|
+
* callback The callback function(error, response)
|
|
14213
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiComputeClusterResponse>|undefined}
|
|
14214
|
+
* The XHR Node Readable Stream
|
|
14215
|
+
*/
|
|
14216
|
+
proto.clarifai.api.V2Client.prototype.patchComputeClusters =
|
|
14217
|
+
function(request, metadata, callback) {
|
|
14218
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
14219
|
+
'/clarifai.api.V2/PatchComputeClusters',
|
|
14220
|
+
request,
|
|
14221
|
+
metadata || {},
|
|
14222
|
+
methodDescriptor_V2_PatchComputeClusters,
|
|
14223
|
+
callback);
|
|
14224
|
+
};
|
|
14225
|
+
|
|
14226
|
+
|
|
14227
|
+
/**
|
|
14228
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} request The
|
|
14229
|
+
* request proto
|
|
14230
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
14231
|
+
* call metadata
|
|
14232
|
+
* @return {!Promise<!proto.clarifai.api.MultiComputeClusterResponse>}
|
|
14233
|
+
* Promise that resolves to the response
|
|
14234
|
+
*/
|
|
14235
|
+
proto.clarifai.api.V2PromiseClient.prototype.patchComputeClusters =
|
|
14236
|
+
function(request, metadata) {
|
|
14237
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
14238
|
+
'/clarifai.api.V2/PatchComputeClusters',
|
|
14239
|
+
request,
|
|
14240
|
+
metadata || {},
|
|
14241
|
+
methodDescriptor_V2_PatchComputeClusters);
|
|
14242
|
+
};
|
|
14243
|
+
|
|
14244
|
+
|
|
14184
14245
|
/**
|
|
14185
14246
|
* @const
|
|
14186
14247
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -10931,6 +10931,36 @@ export namespace PostComputeClustersRequest {
|
|
|
10931
10931
|
}
|
|
10932
10932
|
}
|
|
10933
10933
|
|
|
10934
|
+
export class PatchComputeClustersRequest extends jspb.Message {
|
|
10935
|
+
getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
|
|
10936
|
+
setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchComputeClustersRequest;
|
|
10937
|
+
hasUserAppId(): boolean;
|
|
10938
|
+
clearUserAppId(): PatchComputeClustersRequest;
|
|
10939
|
+
|
|
10940
|
+
getComputeClustersList(): Array<proto_clarifai_api_resources_pb.ComputeCluster>;
|
|
10941
|
+
setComputeClustersList(value: Array<proto_clarifai_api_resources_pb.ComputeCluster>): PatchComputeClustersRequest;
|
|
10942
|
+
clearComputeClustersList(): PatchComputeClustersRequest;
|
|
10943
|
+
addComputeClusters(value?: proto_clarifai_api_resources_pb.ComputeCluster, index?: number): proto_clarifai_api_resources_pb.ComputeCluster;
|
|
10944
|
+
|
|
10945
|
+
getAction(): string;
|
|
10946
|
+
setAction(value: string): PatchComputeClustersRequest;
|
|
10947
|
+
|
|
10948
|
+
serializeBinary(): Uint8Array;
|
|
10949
|
+
toObject(includeInstance?: boolean): PatchComputeClustersRequest.AsObject;
|
|
10950
|
+
static toObject(includeInstance: boolean, msg: PatchComputeClustersRequest): PatchComputeClustersRequest.AsObject;
|
|
10951
|
+
static serializeBinaryToWriter(message: PatchComputeClustersRequest, writer: jspb.BinaryWriter): void;
|
|
10952
|
+
static deserializeBinary(bytes: Uint8Array): PatchComputeClustersRequest;
|
|
10953
|
+
static deserializeBinaryFromReader(message: PatchComputeClustersRequest, reader: jspb.BinaryReader): PatchComputeClustersRequest;
|
|
10954
|
+
}
|
|
10955
|
+
|
|
10956
|
+
export namespace PatchComputeClustersRequest {
|
|
10957
|
+
export type AsObject = {
|
|
10958
|
+
userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
|
|
10959
|
+
computeClustersList: Array<proto_clarifai_api_resources_pb.ComputeCluster.AsObject>,
|
|
10960
|
+
action: string,
|
|
10961
|
+
}
|
|
10962
|
+
}
|
|
10963
|
+
|
|
10934
10964
|
export class DeleteComputeClustersRequest extends jspb.Message {
|
|
10935
10965
|
getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
|
|
10936
10966
|
setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteComputeClustersRequest;
|