clarifai-web-grpc 10.5.3 → 10.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52657,7 +52657,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
52657
52657
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
52658
52658
  modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
52659
52659
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
52660
- userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
52661
52660
  labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
52662
52661
  worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
52663
52662
  nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
@@ -52717,10 +52716,6 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function (msg, reader) {
52717
52716
  reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
52718
52717
  msg.setMetadata(value);
52719
52718
  break;
52720
- case 6:
52721
- var value = /** @type {string} */ (reader.readString());
52722
- msg.setUserId(value);
52723
- break;
52724
52719
  case 7:
52725
52720
  var value = /** @type {string} */ (reader.readString());
52726
52721
  msg.addLabels(value);
@@ -52789,10 +52784,6 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function (message, writer) {
52789
52784
  if (f != null) {
52790
52785
  writer.writeMessage(5, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
52791
52786
  }
52792
- f = message.getUserId();
52793
- if (f.length > 0) {
52794
- writer.writeString(6, f);
52795
- }
52796
52787
  f = message.getLabelsList();
52797
52788
  if (f.length > 0) {
52798
52789
  writer.writeRepeatedString(7, f);
@@ -52926,20 +52917,6 @@ proto.clarifai.api.Runner.prototype.clearMetadata = function () {
52926
52917
  proto.clarifai.api.Runner.prototype.hasMetadata = function () {
52927
52918
  return jspb.Message.getField(this, 5) != null;
52928
52919
  };
52929
- /**
52930
- * optional string user_id = 6;
52931
- * @return {string}
52932
- */
52933
- proto.clarifai.api.Runner.prototype.getUserId = function () {
52934
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
52935
- };
52936
- /**
52937
- * @param {string} value
52938
- * @return {!proto.clarifai.api.Runner} returns this
52939
- */
52940
- proto.clarifai.api.Runner.prototype.setUserId = function (value) {
52941
- return jspb.Message.setProto3StringField(this, 6, value);
52942
- };
52943
52920
  /**
52944
52921
  * repeated string labels = 7;
52945
52922
  * @return {!Array<string>}
@@ -53104,7 +53081,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
53104
53081
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
53105
53082
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
53106
53083
  modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
53107
- userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
53108
53084
  computeCluster: (f = msg.getComputeCluster()) && proto.clarifai.api.ComputeCluster.toObject(includeInstance, f),
53109
53085
  nodeCapacityType: (f = msg.getNodeCapacityType()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
53110
53086
  instanceTypesList: jspb.Message.toObjectList(msg.getInstanceTypesList(), proto.clarifai.api.InstanceType.toObject, includeInstance),
@@ -53161,10 +53137,6 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function (msg, reader)
53161
53137
  reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
53162
53138
  msg.setModifiedAt(value);
53163
53139
  break;
53164
- case 5:
53165
- var value = /** @type {string} */ (reader.readString());
53166
- msg.setUserId(value);
53167
- break;
53168
53140
  case 6:
53169
53141
  var value = new proto.clarifai.api.ComputeCluster;
53170
53142
  reader.readMessage(value, proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader);
@@ -53239,10 +53211,6 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function (message, writer)
53239
53211
  if (f != null) {
53240
53212
  writer.writeMessage(4, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
53241
53213
  }
53242
- f = message.getUserId();
53243
- if (f.length > 0) {
53244
- writer.writeString(5, f);
53245
- }
53246
53214
  f = message.getComputeCluster();
53247
53215
  if (f != null) {
53248
53216
  writer.writeMessage(6, f, proto.clarifai.api.ComputeCluster.serializeBinaryToWriter);
@@ -53356,20 +53324,6 @@ proto.clarifai.api.Nodepool.prototype.clearModifiedAt = function () {
53356
53324
  proto.clarifai.api.Nodepool.prototype.hasModifiedAt = function () {
53357
53325
  return jspb.Message.getField(this, 4) != null;
53358
53326
  };
53359
- /**
53360
- * optional string user_id = 5;
53361
- * @return {string}
53362
- */
53363
- proto.clarifai.api.Nodepool.prototype.getUserId = function () {
53364
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
53365
- };
53366
- /**
53367
- * @param {string} value
53368
- * @return {!proto.clarifai.api.Nodepool} returns this
53369
- */
53370
- proto.clarifai.api.Nodepool.prototype.setUserId = function (value) {
53371
- return jspb.Message.setProto3StringField(this, 5, value);
53372
- };
53373
53327
  /**
53374
53328
  * optional ComputeCluster compute_cluster = 6;
53375
53329
  * @return {?proto.clarifai.api.ComputeCluster}
@@ -54008,7 +53962,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
54008
53962
  region: jspb.Message.getFieldWithDefault(msg, 4, ""),
54009
53963
  userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
54010
53964
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
54011
- modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
53965
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
53966
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
53967
+ clusterType: jspb.Message.getFieldWithDefault(msg, 9, ""),
53968
+ managedBy: jspb.Message.getFieldWithDefault(msg, 10, ""),
53969
+ key: (f = msg.getKey()) && proto.clarifai.api.Key.toObject(includeInstance, f)
54012
53970
  };
54013
53971
  if (includeInstance) {
54014
53972
  obj.$jspbMessageInstance = msg;
@@ -54071,6 +54029,24 @@ proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader = function (msg, r
54071
54029
  reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
54072
54030
  msg.setModifiedAt(value);
54073
54031
  break;
54032
+ case 8:
54033
+ var value = new proto.clarifai.api.Visibility;
54034
+ reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
54035
+ msg.setVisibility(value);
54036
+ break;
54037
+ case 9:
54038
+ var value = /** @type {string} */ (reader.readString());
54039
+ msg.setClusterType(value);
54040
+ break;
54041
+ case 10:
54042
+ var value = /** @type {string} */ (reader.readString());
54043
+ msg.setManagedBy(value);
54044
+ break;
54045
+ case 11:
54046
+ var value = new proto.clarifai.api.Key;
54047
+ reader.readMessage(value, proto.clarifai.api.Key.deserializeBinaryFromReader);
54048
+ msg.setKey(value);
54049
+ break;
54074
54050
  default:
54075
54051
  reader.skipField();
54076
54052
  break;
@@ -54124,6 +54100,22 @@ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter = function (message, w
54124
54100
  if (f != null) {
54125
54101
  writer.writeMessage(7, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
54126
54102
  }
54103
+ f = message.getVisibility();
54104
+ if (f != null) {
54105
+ writer.writeMessage(8, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
54106
+ }
54107
+ f = message.getClusterType();
54108
+ if (f.length > 0) {
54109
+ writer.writeString(9, f);
54110
+ }
54111
+ f = message.getManagedBy();
54112
+ if (f.length > 0) {
54113
+ writer.writeString(10, f);
54114
+ }
54115
+ f = message.getKey();
54116
+ if (f != null) {
54117
+ writer.writeMessage(11, f, proto.clarifai.api.Key.serializeBinaryToWriter);
54118
+ }
54127
54119
  };
54128
54120
  /**
54129
54121
  * optional string id = 1;
@@ -54265,6 +54257,90 @@ proto.clarifai.api.ComputeCluster.prototype.clearModifiedAt = function () {
54265
54257
  proto.clarifai.api.ComputeCluster.prototype.hasModifiedAt = function () {
54266
54258
  return jspb.Message.getField(this, 7) != null;
54267
54259
  };
54260
+ /**
54261
+ * optional Visibility visibility = 8;
54262
+ * @return {?proto.clarifai.api.Visibility}
54263
+ */
54264
+ proto.clarifai.api.ComputeCluster.prototype.getVisibility = function () {
54265
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 8));
54266
+ };
54267
+ /**
54268
+ * @param {?proto.clarifai.api.Visibility|undefined} value
54269
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54270
+ */
54271
+ proto.clarifai.api.ComputeCluster.prototype.setVisibility = function (value) {
54272
+ return jspb.Message.setWrapperField(this, 8, value);
54273
+ };
54274
+ /**
54275
+ * Clears the message field making it undefined.
54276
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54277
+ */
54278
+ proto.clarifai.api.ComputeCluster.prototype.clearVisibility = function () {
54279
+ return this.setVisibility(undefined);
54280
+ };
54281
+ /**
54282
+ * Returns whether this field is set.
54283
+ * @return {boolean}
54284
+ */
54285
+ proto.clarifai.api.ComputeCluster.prototype.hasVisibility = function () {
54286
+ return jspb.Message.getField(this, 8) != null;
54287
+ };
54288
+ /**
54289
+ * optional string cluster_type = 9;
54290
+ * @return {string}
54291
+ */
54292
+ proto.clarifai.api.ComputeCluster.prototype.getClusterType = function () {
54293
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
54294
+ };
54295
+ /**
54296
+ * @param {string} value
54297
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54298
+ */
54299
+ proto.clarifai.api.ComputeCluster.prototype.setClusterType = function (value) {
54300
+ return jspb.Message.setProto3StringField(this, 9, value);
54301
+ };
54302
+ /**
54303
+ * optional string managed_by = 10;
54304
+ * @return {string}
54305
+ */
54306
+ proto.clarifai.api.ComputeCluster.prototype.getManagedBy = function () {
54307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
54308
+ };
54309
+ /**
54310
+ * @param {string} value
54311
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54312
+ */
54313
+ proto.clarifai.api.ComputeCluster.prototype.setManagedBy = function (value) {
54314
+ return jspb.Message.setProto3StringField(this, 10, value);
54315
+ };
54316
+ /**
54317
+ * optional Key key = 11;
54318
+ * @return {?proto.clarifai.api.Key}
54319
+ */
54320
+ proto.clarifai.api.ComputeCluster.prototype.getKey = function () {
54321
+ return /** @type{?proto.clarifai.api.Key} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Key, 11));
54322
+ };
54323
+ /**
54324
+ * @param {?proto.clarifai.api.Key|undefined} value
54325
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54326
+ */
54327
+ proto.clarifai.api.ComputeCluster.prototype.setKey = function (value) {
54328
+ return jspb.Message.setWrapperField(this, 11, value);
54329
+ };
54330
+ /**
54331
+ * Clears the message field making it undefined.
54332
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54333
+ */
54334
+ proto.clarifai.api.ComputeCluster.prototype.clearKey = function () {
54335
+ return this.setKey(undefined);
54336
+ };
54337
+ /**
54338
+ * Returns whether this field is set.
54339
+ * @return {boolean}
54340
+ */
54341
+ proto.clarifai.api.ComputeCluster.prototype.hasKey = function () {
54342
+ return jspb.Message.getField(this, 11) != null;
54343
+ };
54268
54344
  /**
54269
54345
  * List of repeated fields within this message type.
54270
54346
  * @private {!Array<number>}
@@ -5274,6 +5274,48 @@ proto.clarifai.api.V2PromiseClient.prototype.patchApps =
5274
5274
  return this.client_.unaryCall(this.hostname_ +
5275
5275
  '/clarifai.api.V2/PatchApps', request, metadata || {}, methodDescriptor_V2_PatchApps);
5276
5276
  };
5277
+ /**
5278
+ * @const
5279
+ * @type {!grpc.web.MethodDescriptor<
5280
+ * !proto.clarifai.api.PatchAppsDetailsRequest,
5281
+ * !proto.clarifai.api.MultiAppResponse>}
5282
+ */
5283
+ const methodDescriptor_V2_PatchAppsDetails = new grpc.web.MethodDescriptor('/clarifai.api.V2/PatchAppsDetails', grpc.web.MethodType.UNARY, proto.clarifai.api.PatchAppsDetailsRequest, proto.clarifai.api.MultiAppResponse,
5284
+ /**
5285
+ * @param {!proto.clarifai.api.PatchAppsDetailsRequest} request
5286
+ * @return {!Uint8Array}
5287
+ */
5288
+ function (request) {
5289
+ return request.serializeBinary();
5290
+ }, proto.clarifai.api.MultiAppResponse.deserializeBinary);
5291
+ /**
5292
+ * @param {!proto.clarifai.api.PatchAppsDetailsRequest} request The
5293
+ * request proto
5294
+ * @param {?Object<string, string>} metadata User defined
5295
+ * call metadata
5296
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiAppResponse)}
5297
+ * callback The callback function(error, response)
5298
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiAppResponse>|undefined}
5299
+ * The XHR Node Readable Stream
5300
+ */
5301
+ proto.clarifai.api.V2Client.prototype.patchAppsDetails =
5302
+ function (request, metadata, callback) {
5303
+ return this.client_.rpcCall(this.hostname_ +
5304
+ '/clarifai.api.V2/PatchAppsDetails', request, metadata || {}, methodDescriptor_V2_PatchAppsDetails, callback);
5305
+ };
5306
+ /**
5307
+ * @param {!proto.clarifai.api.PatchAppsDetailsRequest} request The
5308
+ * request proto
5309
+ * @param {?Object<string, string>=} metadata User defined
5310
+ * call metadata
5311
+ * @return {!Promise<!proto.clarifai.api.MultiAppResponse>}
5312
+ * Promise that resolves to the response
5313
+ */
5314
+ proto.clarifai.api.V2PromiseClient.prototype.patchAppsDetails =
5315
+ function (request, metadata) {
5316
+ return this.client_.unaryCall(this.hostname_ +
5317
+ '/clarifai.api.V2/PatchAppsDetails', request, metadata || {}, methodDescriptor_V2_PatchAppsDetails);
5318
+ };
5277
5319
  /**
5278
5320
  * @const
5279
5321
  * @type {!grpc.web.MethodDescriptor<