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 CHANGED
@@ -1 +1 @@
1
- 11.10.2
1
+ 11.10.3
@@ -300,7 +300,6 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggType', null, global);
300
300
  goog.exportSymbol('proto.clarifai.api.StatValueAggregate', null, global);
301
301
  goog.exportSymbol('proto.clarifai.api.StatValueAggregateQuery', null, global);
302
302
  goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
303
- goog.exportSymbol('proto.clarifai.api.StepSecretConfig', null, global);
304
303
  goog.exportSymbol('proto.clarifai.api.Task', null, global);
305
304
  goog.exportSymbol('proto.clarifai.api.Task.TaskPriority', null, global);
306
305
  goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
@@ -5641,27 +5640,6 @@ if (goog.DEBUG && !COMPILED) {
5641
5640
  */
5642
5641
  proto.clarifai.api.PipelineVersionConfig.displayName = 'proto.clarifai.api.PipelineVersionConfig';
5643
5642
  }
5644
- /**
5645
- * Generated by JsPbCodeGenerator.
5646
- * @param {Array=} opt_data Optional initial data array, typically from a
5647
- * server response, or constructed directly in Javascript. The array is used
5648
- * in place and becomes part of the constructed object. It is not cloned.
5649
- * If no data is provided, the constructed object will be empty, but still
5650
- * valid.
5651
- * @extends {jspb.Message}
5652
- * @constructor
5653
- */
5654
- proto.clarifai.api.StepSecretConfig = function (opt_data) {
5655
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5656
- };
5657
- goog.inherits(proto.clarifai.api.StepSecretConfig, jspb.Message);
5658
- if (goog.DEBUG && !COMPILED) {
5659
- /**
5660
- * @public
5661
- * @override
5662
- */
5663
- proto.clarifai.api.StepSecretConfig.displayName = 'proto.clarifai.api.StepSecretConfig';
5664
- }
5665
5643
  /**
5666
5644
  * Generated by JsPbCodeGenerator.
5667
5645
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -68252,7 +68230,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
68252
68230
  */
68253
68231
  proto.clarifai.api.PipelineVersionConfig.toObject = function (includeInstance, msg) {
68254
68232
  var f, obj = {
68255
- stepVersionSecretsMap: (f = msg.getStepVersionSecretsMap()) ? f.toObject(includeInstance, proto.clarifai.api.StepSecretConfig.toObject) : []
68233
+ stepVersionSecretsMap: (f = msg.getStepVersionSecretsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Struct.toObject) : []
68256
68234
  };
68257
68235
  if (includeInstance) {
68258
68236
  obj.$jspbMessageInstance = msg;
@@ -68287,7 +68265,7 @@ proto.clarifai.api.PipelineVersionConfig.deserializeBinaryFromReader = function
68287
68265
  case 1:
68288
68266
  var value = msg.getStepVersionSecretsMap();
68289
68267
  reader.readMessage(value, function (message, reader) {
68290
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.StepSecretConfig.deserializeBinaryFromReader, "", new proto.clarifai.api.StepSecretConfig());
68268
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Struct.deserializeBinaryFromReader, "", new proto.google.protobuf.Struct());
68291
68269
  });
68292
68270
  break;
68293
68271
  default:
@@ -68317,17 +68295,17 @@ proto.clarifai.api.PipelineVersionConfig.serializeBinaryToWriter = function (mes
68317
68295
  var f = undefined;
68318
68296
  f = message.getStepVersionSecretsMap(true);
68319
68297
  if (f && f.getLength() > 0) {
68320
- f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.StepSecretConfig.serializeBinaryToWriter);
68298
+ f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Struct.serializeBinaryToWriter);
68321
68299
  }
68322
68300
  };
68323
68301
  /**
68324
- * map<string, StepSecretConfig> step_version_secrets = 1;
68302
+ * map<string, google.protobuf.Struct> step_version_secrets = 1;
68325
68303
  * @param {boolean=} opt_noLazyCreate Do not create the map if
68326
68304
  * empty, instead returning `undefined`
68327
- * @return {!jspb.Map<string,!proto.clarifai.api.StepSecretConfig>}
68305
+ * @return {!jspb.Map<string,!proto.google.protobuf.Struct>}
68328
68306
  */
68329
68307
  proto.clarifai.api.PipelineVersionConfig.prototype.getStepVersionSecretsMap = function (opt_noLazyCreate) {
68330
- return /** @type {!jspb.Map<string,!proto.clarifai.api.StepSecretConfig>} */ (jspb.Message.getMapField(this, 1, opt_noLazyCreate, proto.clarifai.api.StepSecretConfig));
68308
+ return /** @type {!jspb.Map<string,!proto.google.protobuf.Struct>} */ (jspb.Message.getMapField(this, 1, opt_noLazyCreate, proto.google.protobuf.Struct));
68331
68309
  };
68332
68310
  /**
68333
68311
  * Clears values from the map. The map will be non-null.
@@ -68337,118 +68315,6 @@ proto.clarifai.api.PipelineVersionConfig.prototype.clearStepVersionSecretsMap =
68337
68315
  this.getStepVersionSecretsMap().clear();
68338
68316
  return this;
68339
68317
  };
68340
- if (jspb.Message.GENERATE_TO_OBJECT) {
68341
- /**
68342
- * Creates an object representation of this proto.
68343
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
68344
- * Optional fields that are not set will be set to undefined.
68345
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
68346
- * For the list of reserved names please see:
68347
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
68348
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
68349
- * JSPB instance for transitional soy proto support:
68350
- * http://goto/soy-param-migration
68351
- * @return {!Object}
68352
- */
68353
- proto.clarifai.api.StepSecretConfig.prototype.toObject = function (opt_includeInstance) {
68354
- return proto.clarifai.api.StepSecretConfig.toObject(opt_includeInstance, this);
68355
- };
68356
- /**
68357
- * Static version of the {@see toObject} method.
68358
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
68359
- * the JSPB instance for transitional soy proto support:
68360
- * http://goto/soy-param-migration
68361
- * @param {!proto.clarifai.api.StepSecretConfig} msg The msg instance to transform.
68362
- * @return {!Object}
68363
- * @suppress {unusedLocalVariables} f is only used for nested messages
68364
- */
68365
- proto.clarifai.api.StepSecretConfig.toObject = function (includeInstance, msg) {
68366
- var f, obj = {
68367
- secretsMap: (f = msg.getSecretsMap()) ? f.toObject(includeInstance, undefined) : []
68368
- };
68369
- if (includeInstance) {
68370
- obj.$jspbMessageInstance = msg;
68371
- }
68372
- return obj;
68373
- };
68374
- }
68375
- /**
68376
- * Deserializes binary data (in protobuf wire format).
68377
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
68378
- * @return {!proto.clarifai.api.StepSecretConfig}
68379
- */
68380
- proto.clarifai.api.StepSecretConfig.deserializeBinary = function (bytes) {
68381
- var reader = new jspb.BinaryReader(bytes);
68382
- var msg = new proto.clarifai.api.StepSecretConfig;
68383
- return proto.clarifai.api.StepSecretConfig.deserializeBinaryFromReader(msg, reader);
68384
- };
68385
- /**
68386
- * Deserializes binary data (in protobuf wire format) from the
68387
- * given reader into the given message object.
68388
- * @param {!proto.clarifai.api.StepSecretConfig} msg The message object to deserialize into.
68389
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
68390
- * @return {!proto.clarifai.api.StepSecretConfig}
68391
- */
68392
- proto.clarifai.api.StepSecretConfig.deserializeBinaryFromReader = function (msg, reader) {
68393
- while (reader.nextField()) {
68394
- if (reader.isEndGroup()) {
68395
- break;
68396
- }
68397
- var field = reader.getFieldNumber();
68398
- switch (field) {
68399
- case 1:
68400
- var value = msg.getSecretsMap();
68401
- reader.readMessage(value, function (message, reader) {
68402
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
68403
- });
68404
- break;
68405
- default:
68406
- reader.skipField();
68407
- break;
68408
- }
68409
- }
68410
- return msg;
68411
- };
68412
- /**
68413
- * Serializes the message to binary data (in protobuf wire format).
68414
- * @return {!Uint8Array}
68415
- */
68416
- proto.clarifai.api.StepSecretConfig.prototype.serializeBinary = function () {
68417
- var writer = new jspb.BinaryWriter();
68418
- proto.clarifai.api.StepSecretConfig.serializeBinaryToWriter(this, writer);
68419
- return writer.getResultBuffer();
68420
- };
68421
- /**
68422
- * Serializes the given message to binary data (in protobuf wire
68423
- * format), writing to the given BinaryWriter.
68424
- * @param {!proto.clarifai.api.StepSecretConfig} message
68425
- * @param {!jspb.BinaryWriter} writer
68426
- * @suppress {unusedLocalVariables} f is only used for nested messages
68427
- */
68428
- proto.clarifai.api.StepSecretConfig.serializeBinaryToWriter = function (message, writer) {
68429
- var f = undefined;
68430
- f = message.getSecretsMap(true);
68431
- if (f && f.getLength() > 0) {
68432
- f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
68433
- }
68434
- };
68435
- /**
68436
- * map<string, string> secrets = 1;
68437
- * @param {boolean=} opt_noLazyCreate Do not create the map if
68438
- * empty, instead returning `undefined`
68439
- * @return {!jspb.Map<string,string>}
68440
- */
68441
- proto.clarifai.api.StepSecretConfig.prototype.getSecretsMap = function (opt_noLazyCreate) {
68442
- return /** @type {!jspb.Map<string,string>} */ (jspb.Message.getMapField(this, 1, opt_noLazyCreate, null));
68443
- };
68444
- /**
68445
- * Clears values from the map. The map will be non-null.
68446
- * @return {!proto.clarifai.api.StepSecretConfig} returns this
68447
- */
68448
- proto.clarifai.api.StepSecretConfig.prototype.clearSecretsMap = function () {
68449
- this.getSecretsMap().clear();
68450
- return this;
68451
- };
68452
68318
  if (jspb.Message.GENERATE_TO_OBJECT) {
68453
68319
  /**
68454
68320
  * Creates an object representation of this proto.
@@ -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>}
@@ -300,7 +300,6 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggType', null, global);
300
300
  goog.exportSymbol('proto.clarifai.api.StatValueAggregate', null, global);
301
301
  goog.exportSymbol('proto.clarifai.api.StatValueAggregateQuery', null, global);
302
302
  goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
303
- goog.exportSymbol('proto.clarifai.api.StepSecretConfig', null, global);
304
303
  goog.exportSymbol('proto.clarifai.api.Task', null, global);
305
304
  goog.exportSymbol('proto.clarifai.api.Task.TaskPriority', null, global);
306
305
  goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
@@ -5641,27 +5640,6 @@ if (goog.DEBUG && !COMPILED) {
5641
5640
  */
5642
5641
  proto.clarifai.api.PipelineVersionConfig.displayName = 'proto.clarifai.api.PipelineVersionConfig';
5643
5642
  }
5644
- /**
5645
- * Generated by JsPbCodeGenerator.
5646
- * @param {Array=} opt_data Optional initial data array, typically from a
5647
- * server response, or constructed directly in Javascript. The array is used
5648
- * in place and becomes part of the constructed object. It is not cloned.
5649
- * If no data is provided, the constructed object will be empty, but still
5650
- * valid.
5651
- * @extends {jspb.Message}
5652
- * @constructor
5653
- */
5654
- proto.clarifai.api.StepSecretConfig = function (opt_data) {
5655
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5656
- };
5657
- goog.inherits(proto.clarifai.api.StepSecretConfig, jspb.Message);
5658
- if (goog.DEBUG && !COMPILED) {
5659
- /**
5660
- * @public
5661
- * @override
5662
- */
5663
- proto.clarifai.api.StepSecretConfig.displayName = 'proto.clarifai.api.StepSecretConfig';
5664
- }
5665
5643
  /**
5666
5644
  * Generated by JsPbCodeGenerator.
5667
5645
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -68252,7 +68230,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
68252
68230
  */
68253
68231
  proto.clarifai.api.PipelineVersionConfig.toObject = function (includeInstance, msg) {
68254
68232
  var f, obj = {
68255
- stepVersionSecretsMap: (f = msg.getStepVersionSecretsMap()) ? f.toObject(includeInstance, proto.clarifai.api.StepSecretConfig.toObject) : []
68233
+ stepVersionSecretsMap: (f = msg.getStepVersionSecretsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Struct.toObject) : []
68256
68234
  };
68257
68235
  if (includeInstance) {
68258
68236
  obj.$jspbMessageInstance = msg;
@@ -68287,7 +68265,7 @@ proto.clarifai.api.PipelineVersionConfig.deserializeBinaryFromReader = function
68287
68265
  case 1:
68288
68266
  var value = msg.getStepVersionSecretsMap();
68289
68267
  reader.readMessage(value, function (message, reader) {
68290
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.StepSecretConfig.deserializeBinaryFromReader, "", new proto.clarifai.api.StepSecretConfig());
68268
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Struct.deserializeBinaryFromReader, "", new proto.google.protobuf.Struct());
68291
68269
  });
68292
68270
  break;
68293
68271
  default:
@@ -68317,17 +68295,17 @@ proto.clarifai.api.PipelineVersionConfig.serializeBinaryToWriter = function (mes
68317
68295
  var f = undefined;
68318
68296
  f = message.getStepVersionSecretsMap(true);
68319
68297
  if (f && f.getLength() > 0) {
68320
- f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.StepSecretConfig.serializeBinaryToWriter);
68298
+ f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Struct.serializeBinaryToWriter);
68321
68299
  }
68322
68300
  };
68323
68301
  /**
68324
- * map<string, StepSecretConfig> step_version_secrets = 1;
68302
+ * map<string, google.protobuf.Struct> step_version_secrets = 1;
68325
68303
  * @param {boolean=} opt_noLazyCreate Do not create the map if
68326
68304
  * empty, instead returning `undefined`
68327
- * @return {!jspb.Map<string,!proto.clarifai.api.StepSecretConfig>}
68305
+ * @return {!jspb.Map<string,!proto.google.protobuf.Struct>}
68328
68306
  */
68329
68307
  proto.clarifai.api.PipelineVersionConfig.prototype.getStepVersionSecretsMap = function (opt_noLazyCreate) {
68330
- return /** @type {!jspb.Map<string,!proto.clarifai.api.StepSecretConfig>} */ (jspb.Message.getMapField(this, 1, opt_noLazyCreate, proto.clarifai.api.StepSecretConfig));
68308
+ return /** @type {!jspb.Map<string,!proto.google.protobuf.Struct>} */ (jspb.Message.getMapField(this, 1, opt_noLazyCreate, proto.google.protobuf.Struct));
68331
68309
  };
68332
68310
  /**
68333
68311
  * Clears values from the map. The map will be non-null.
@@ -68337,118 +68315,6 @@ proto.clarifai.api.PipelineVersionConfig.prototype.clearStepVersionSecretsMap =
68337
68315
  this.getStepVersionSecretsMap().clear();
68338
68316
  return this;
68339
68317
  };
68340
- if (jspb.Message.GENERATE_TO_OBJECT) {
68341
- /**
68342
- * Creates an object representation of this proto.
68343
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
68344
- * Optional fields that are not set will be set to undefined.
68345
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
68346
- * For the list of reserved names please see:
68347
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
68348
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
68349
- * JSPB instance for transitional soy proto support:
68350
- * http://goto/soy-param-migration
68351
- * @return {!Object}
68352
- */
68353
- proto.clarifai.api.StepSecretConfig.prototype.toObject = function (opt_includeInstance) {
68354
- return proto.clarifai.api.StepSecretConfig.toObject(opt_includeInstance, this);
68355
- };
68356
- /**
68357
- * Static version of the {@see toObject} method.
68358
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
68359
- * the JSPB instance for transitional soy proto support:
68360
- * http://goto/soy-param-migration
68361
- * @param {!proto.clarifai.api.StepSecretConfig} msg The msg instance to transform.
68362
- * @return {!Object}
68363
- * @suppress {unusedLocalVariables} f is only used for nested messages
68364
- */
68365
- proto.clarifai.api.StepSecretConfig.toObject = function (includeInstance, msg) {
68366
- var f, obj = {
68367
- secretsMap: (f = msg.getSecretsMap()) ? f.toObject(includeInstance, undefined) : []
68368
- };
68369
- if (includeInstance) {
68370
- obj.$jspbMessageInstance = msg;
68371
- }
68372
- return obj;
68373
- };
68374
- }
68375
- /**
68376
- * Deserializes binary data (in protobuf wire format).
68377
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
68378
- * @return {!proto.clarifai.api.StepSecretConfig}
68379
- */
68380
- proto.clarifai.api.StepSecretConfig.deserializeBinary = function (bytes) {
68381
- var reader = new jspb.BinaryReader(bytes);
68382
- var msg = new proto.clarifai.api.StepSecretConfig;
68383
- return proto.clarifai.api.StepSecretConfig.deserializeBinaryFromReader(msg, reader);
68384
- };
68385
- /**
68386
- * Deserializes binary data (in protobuf wire format) from the
68387
- * given reader into the given message object.
68388
- * @param {!proto.clarifai.api.StepSecretConfig} msg The message object to deserialize into.
68389
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
68390
- * @return {!proto.clarifai.api.StepSecretConfig}
68391
- */
68392
- proto.clarifai.api.StepSecretConfig.deserializeBinaryFromReader = function (msg, reader) {
68393
- while (reader.nextField()) {
68394
- if (reader.isEndGroup()) {
68395
- break;
68396
- }
68397
- var field = reader.getFieldNumber();
68398
- switch (field) {
68399
- case 1:
68400
- var value = msg.getSecretsMap();
68401
- reader.readMessage(value, function (message, reader) {
68402
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
68403
- });
68404
- break;
68405
- default:
68406
- reader.skipField();
68407
- break;
68408
- }
68409
- }
68410
- return msg;
68411
- };
68412
- /**
68413
- * Serializes the message to binary data (in protobuf wire format).
68414
- * @return {!Uint8Array}
68415
- */
68416
- proto.clarifai.api.StepSecretConfig.prototype.serializeBinary = function () {
68417
- var writer = new jspb.BinaryWriter();
68418
- proto.clarifai.api.StepSecretConfig.serializeBinaryToWriter(this, writer);
68419
- return writer.getResultBuffer();
68420
- };
68421
- /**
68422
- * Serializes the given message to binary data (in protobuf wire
68423
- * format), writing to the given BinaryWriter.
68424
- * @param {!proto.clarifai.api.StepSecretConfig} message
68425
- * @param {!jspb.BinaryWriter} writer
68426
- * @suppress {unusedLocalVariables} f is only used for nested messages
68427
- */
68428
- proto.clarifai.api.StepSecretConfig.serializeBinaryToWriter = function (message, writer) {
68429
- var f = undefined;
68430
- f = message.getSecretsMap(true);
68431
- if (f && f.getLength() > 0) {
68432
- f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
68433
- }
68434
- };
68435
- /**
68436
- * map<string, string> secrets = 1;
68437
- * @param {boolean=} opt_noLazyCreate Do not create the map if
68438
- * empty, instead returning `undefined`
68439
- * @return {!jspb.Map<string,string>}
68440
- */
68441
- proto.clarifai.api.StepSecretConfig.prototype.getSecretsMap = function (opt_noLazyCreate) {
68442
- return /** @type {!jspb.Map<string,string>} */ (jspb.Message.getMapField(this, 1, opt_noLazyCreate, null));
68443
- };
68444
- /**
68445
- * Clears values from the map. The map will be non-null.
68446
- * @return {!proto.clarifai.api.StepSecretConfig} returns this
68447
- */
68448
- proto.clarifai.api.StepSecretConfig.prototype.clearSecretsMap = function () {
68449
- this.getSecretsMap().clear();
68450
- return this;
68451
- };
68452
68318
  if (jspb.Message.GENERATE_TO_OBJECT) {
68453
68319
  /**
68454
68320
  * Creates an object representation of this proto.