clarifai-web-grpc 11.10.9 → 11.11.0

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.
@@ -61,6 +61,8 @@ goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationSpec', null, global);
61
61
  goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationStatus', null, global);
62
62
  goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationStepSpec', null, global);
63
63
  goog.exportSymbol('proto.clarifai.api.ArgoParameterOverride', null, global);
64
+ goog.exportSymbol('proto.clarifai.api.Artifact', null, global);
65
+ goog.exportSymbol('proto.clarifai.api.ArtifactVersion', null, global);
64
66
  goog.exportSymbol('proto.clarifai.api.Audio', null, global);
65
67
  goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
66
68
  goog.exportSymbol('proto.clarifai.api.AuditLogEntry', null, global);
@@ -5930,6 +5932,48 @@ if (goog.DEBUG && !COMPILED) {
5930
5932
  */
5931
5933
  proto.clarifai.api.MetricTypeLabels.LabelWithValues.displayName = 'proto.clarifai.api.MetricTypeLabels.LabelWithValues';
5932
5934
  }
5935
+ /**
5936
+ * Generated by JsPbCodeGenerator.
5937
+ * @param {Array=} opt_data Optional initial data array, typically from a
5938
+ * server response, or constructed directly in Javascript. The array is used
5939
+ * in place and becomes part of the constructed object. It is not cloned.
5940
+ * If no data is provided, the constructed object will be empty, but still
5941
+ * valid.
5942
+ * @extends {jspb.Message}
5943
+ * @constructor
5944
+ */
5945
+ proto.clarifai.api.Artifact = function (opt_data) {
5946
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5947
+ };
5948
+ goog.inherits(proto.clarifai.api.Artifact, jspb.Message);
5949
+ if (goog.DEBUG && !COMPILED) {
5950
+ /**
5951
+ * @public
5952
+ * @override
5953
+ */
5954
+ proto.clarifai.api.Artifact.displayName = 'proto.clarifai.api.Artifact';
5955
+ }
5956
+ /**
5957
+ * Generated by JsPbCodeGenerator.
5958
+ * @param {Array=} opt_data Optional initial data array, typically from a
5959
+ * server response, or constructed directly in Javascript. The array is used
5960
+ * in place and becomes part of the constructed object. It is not cloned.
5961
+ * If no data is provided, the constructed object will be empty, but still
5962
+ * valid.
5963
+ * @extends {jspb.Message}
5964
+ * @constructor
5965
+ */
5966
+ proto.clarifai.api.ArtifactVersion = function (opt_data) {
5967
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5968
+ };
5969
+ goog.inherits(proto.clarifai.api.ArtifactVersion, jspb.Message);
5970
+ if (goog.DEBUG && !COMPILED) {
5971
+ /**
5972
+ * @public
5973
+ * @override
5974
+ */
5975
+ proto.clarifai.api.ArtifactVersion.displayName = 'proto.clarifai.api.ArtifactVersion';
5976
+ }
5933
5977
  if (jspb.Message.GENERATE_TO_OBJECT) {
5934
5978
  /**
5935
5979
  * Creates an object representation of this proto.
@@ -29013,7 +29057,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
29013
29057
  var f, obj = {
29014
29058
  dockerImageName: jspb.Message.getFieldWithDefault(msg, 1, ""),
29015
29059
  dockerImageTag: jspb.Message.getFieldWithDefault(msg, 2, ""),
29016
- dockerImageDigest: jspb.Message.getFieldWithDefault(msg, 3, "")
29060
+ dockerImageDigest: jspb.Message.getFieldWithDefault(msg, 3, ""),
29061
+ platform: jspb.Message.getFieldWithDefault(msg, 4, "")
29017
29062
  };
29018
29063
  if (includeInstance) {
29019
29064
  obj.$jspbMessageInstance = msg;
@@ -29057,6 +29102,10 @@ proto.clarifai.api.BuildInfo.deserializeBinaryFromReader = function (msg, reader
29057
29102
  var value = /** @type {string} */ (reader.readString());
29058
29103
  msg.setDockerImageDigest(value);
29059
29104
  break;
29105
+ case 4:
29106
+ var value = /** @type {string} */ (reader.readString());
29107
+ msg.setPlatform(value);
29108
+ break;
29060
29109
  default:
29061
29110
  reader.skipField();
29062
29111
  break;
@@ -29094,6 +29143,10 @@ proto.clarifai.api.BuildInfo.serializeBinaryToWriter = function (message, writer
29094
29143
  if (f.length > 0) {
29095
29144
  writer.writeString(3, f);
29096
29145
  }
29146
+ f = message.getPlatform();
29147
+ if (f.length > 0) {
29148
+ writer.writeString(4, f);
29149
+ }
29097
29150
  };
29098
29151
  /**
29099
29152
  * optional string docker_image_name = 1;
@@ -29137,6 +29190,20 @@ proto.clarifai.api.BuildInfo.prototype.getDockerImageDigest = function () {
29137
29190
  proto.clarifai.api.BuildInfo.prototype.setDockerImageDigest = function (value) {
29138
29191
  return jspb.Message.setProto3StringField(this, 3, value);
29139
29192
  };
29193
+ /**
29194
+ * optional string platform = 4;
29195
+ * @return {string}
29196
+ */
29197
+ proto.clarifai.api.BuildInfo.prototype.getPlatform = function () {
29198
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
29199
+ };
29200
+ /**
29201
+ * @param {string} value
29202
+ * @return {!proto.clarifai.api.BuildInfo} returns this
29203
+ */
29204
+ proto.clarifai.api.BuildInfo.prototype.setPlatform = function (value) {
29205
+ return jspb.Message.setProto3StringField(this, 4, value);
29206
+ };
29140
29207
  if (jspb.Message.GENERATE_TO_OBJECT) {
29141
29208
  /**
29142
29209
  * Creates an object representation of this proto.
@@ -58031,7 +58098,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
58031
58098
  region: jspb.Message.getFieldWithDefault(msg, 6, ""),
58032
58099
  allowedCapacityTypes: (f = msg.getAllowedCapacityTypes()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
58033
58100
  featureFlagGroup: jspb.Message.getFieldWithDefault(msg, 8, ""),
58034
- specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(), proto.clarifai.api.SpecialHandling.toObject, includeInstance)
58101
+ specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(), proto.clarifai.api.SpecialHandling.toObject, includeInstance),
58102
+ architecture: jspb.Message.getFieldWithDefault(msg, 10, "")
58035
58103
  };
58036
58104
  if (includeInstance) {
58037
58105
  obj.$jspbMessageInstance = msg;
@@ -58103,6 +58171,10 @@ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function (msg, rea
58103
58171
  reader.readMessage(value, proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader);
58104
58172
  msg.addSpecialHandling(value);
58105
58173
  break;
58174
+ case 10:
58175
+ var value = /** @type {string} */ (reader.readString());
58176
+ msg.setArchitecture(value);
58177
+ break;
58106
58178
  default:
58107
58179
  reader.skipField();
58108
58180
  break;
@@ -58164,6 +58236,10 @@ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function (message, wri
58164
58236
  if (f.length > 0) {
58165
58237
  writer.writeRepeatedMessage(9, f, proto.clarifai.api.SpecialHandling.serializeBinaryToWriter);
58166
58238
  }
58239
+ f = message.getArchitecture();
58240
+ if (f.length > 0) {
58241
+ writer.writeString(10, f);
58242
+ }
58167
58243
  };
58168
58244
  /**
58169
58245
  * optional string id = 1;
@@ -58348,6 +58424,20 @@ proto.clarifai.api.InstanceType.prototype.addSpecialHandling = function (opt_val
58348
58424
  proto.clarifai.api.InstanceType.prototype.clearSpecialHandlingList = function () {
58349
58425
  return this.setSpecialHandlingList([]);
58350
58426
  };
58427
+ /**
58428
+ * optional string architecture = 10;
58429
+ * @return {string}
58430
+ */
58431
+ proto.clarifai.api.InstanceType.prototype.getArchitecture = function () {
58432
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
58433
+ };
58434
+ /**
58435
+ * @param {string} value
58436
+ * @return {!proto.clarifai.api.InstanceType} returns this
58437
+ */
58438
+ proto.clarifai.api.InstanceType.prototype.setArchitecture = function (value) {
58439
+ return jspb.Message.setProto3StringField(this, 10, value);
58440
+ };
58351
58441
  if (jspb.Message.GENERATE_TO_OBJECT) {
58352
58442
  /**
58353
58443
  * Creates an object representation of this proto.
@@ -71006,6 +71096,707 @@ proto.clarifai.api.MetricTypeLabels.prototype.addLabels = function (opt_value, o
71006
71096
  proto.clarifai.api.MetricTypeLabels.prototype.clearLabelsList = function () {
71007
71097
  return this.setLabelsList([]);
71008
71098
  };
71099
+ if (jspb.Message.GENERATE_TO_OBJECT) {
71100
+ /**
71101
+ * Creates an object representation of this proto.
71102
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
71103
+ * Optional fields that are not set will be set to undefined.
71104
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71105
+ * For the list of reserved names please see:
71106
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
71107
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
71108
+ * JSPB instance for transitional soy proto support:
71109
+ * http://goto/soy-param-migration
71110
+ * @return {!Object}
71111
+ */
71112
+ proto.clarifai.api.Artifact.prototype.toObject = function (opt_includeInstance) {
71113
+ return proto.clarifai.api.Artifact.toObject(opt_includeInstance, this);
71114
+ };
71115
+ /**
71116
+ * Static version of the {@see toObject} method.
71117
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
71118
+ * the JSPB instance for transitional soy proto support:
71119
+ * http://goto/soy-param-migration
71120
+ * @param {!proto.clarifai.api.Artifact} msg The msg instance to transform.
71121
+ * @return {!Object}
71122
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71123
+ */
71124
+ proto.clarifai.api.Artifact.toObject = function (includeInstance, msg) {
71125
+ var f, obj = {
71126
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
71127
+ userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
71128
+ appId: jspb.Message.getFieldWithDefault(msg, 3, ""),
71129
+ artifactVersion: (f = msg.getArtifactVersion()) && proto.clarifai.api.ArtifactVersion.toObject(includeInstance, f),
71130
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
71131
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
71132
+ deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
71133
+ };
71134
+ if (includeInstance) {
71135
+ obj.$jspbMessageInstance = msg;
71136
+ }
71137
+ return obj;
71138
+ };
71139
+ }
71140
+ /**
71141
+ * Deserializes binary data (in protobuf wire format).
71142
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
71143
+ * @return {!proto.clarifai.api.Artifact}
71144
+ */
71145
+ proto.clarifai.api.Artifact.deserializeBinary = function (bytes) {
71146
+ var reader = new jspb.BinaryReader(bytes);
71147
+ var msg = new proto.clarifai.api.Artifact;
71148
+ return proto.clarifai.api.Artifact.deserializeBinaryFromReader(msg, reader);
71149
+ };
71150
+ /**
71151
+ * Deserializes binary data (in protobuf wire format) from the
71152
+ * given reader into the given message object.
71153
+ * @param {!proto.clarifai.api.Artifact} msg The message object to deserialize into.
71154
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71155
+ * @return {!proto.clarifai.api.Artifact}
71156
+ */
71157
+ proto.clarifai.api.Artifact.deserializeBinaryFromReader = function (msg, reader) {
71158
+ while (reader.nextField()) {
71159
+ if (reader.isEndGroup()) {
71160
+ break;
71161
+ }
71162
+ var field = reader.getFieldNumber();
71163
+ switch (field) {
71164
+ case 1:
71165
+ var value = /** @type {string} */ (reader.readString());
71166
+ msg.setId(value);
71167
+ break;
71168
+ case 2:
71169
+ var value = /** @type {string} */ (reader.readString());
71170
+ msg.setUserId(value);
71171
+ break;
71172
+ case 3:
71173
+ var value = /** @type {string} */ (reader.readString());
71174
+ msg.setAppId(value);
71175
+ break;
71176
+ case 5:
71177
+ var value = new proto.clarifai.api.ArtifactVersion;
71178
+ reader.readMessage(value, proto.clarifai.api.ArtifactVersion.deserializeBinaryFromReader);
71179
+ msg.setArtifactVersion(value);
71180
+ break;
71181
+ case 6:
71182
+ var value = new google_protobuf_timestamp_pb.Timestamp;
71183
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
71184
+ msg.setCreatedAt(value);
71185
+ break;
71186
+ case 7:
71187
+ var value = new google_protobuf_timestamp_pb.Timestamp;
71188
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
71189
+ msg.setModifiedAt(value);
71190
+ break;
71191
+ case 8:
71192
+ var value = new google_protobuf_timestamp_pb.Timestamp;
71193
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
71194
+ msg.setDeletedAt(value);
71195
+ break;
71196
+ default:
71197
+ reader.skipField();
71198
+ break;
71199
+ }
71200
+ }
71201
+ return msg;
71202
+ };
71203
+ /**
71204
+ * Serializes the message to binary data (in protobuf wire format).
71205
+ * @return {!Uint8Array}
71206
+ */
71207
+ proto.clarifai.api.Artifact.prototype.serializeBinary = function () {
71208
+ var writer = new jspb.BinaryWriter();
71209
+ proto.clarifai.api.Artifact.serializeBinaryToWriter(this, writer);
71210
+ return writer.getResultBuffer();
71211
+ };
71212
+ /**
71213
+ * Serializes the given message to binary data (in protobuf wire
71214
+ * format), writing to the given BinaryWriter.
71215
+ * @param {!proto.clarifai.api.Artifact} message
71216
+ * @param {!jspb.BinaryWriter} writer
71217
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71218
+ */
71219
+ proto.clarifai.api.Artifact.serializeBinaryToWriter = function (message, writer) {
71220
+ var f = undefined;
71221
+ f = message.getId();
71222
+ if (f.length > 0) {
71223
+ writer.writeString(1, f);
71224
+ }
71225
+ f = message.getUserId();
71226
+ if (f.length > 0) {
71227
+ writer.writeString(2, f);
71228
+ }
71229
+ f = message.getAppId();
71230
+ if (f.length > 0) {
71231
+ writer.writeString(3, f);
71232
+ }
71233
+ f = message.getArtifactVersion();
71234
+ if (f != null) {
71235
+ writer.writeMessage(5, f, proto.clarifai.api.ArtifactVersion.serializeBinaryToWriter);
71236
+ }
71237
+ f = message.getCreatedAt();
71238
+ if (f != null) {
71239
+ writer.writeMessage(6, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
71240
+ }
71241
+ f = message.getModifiedAt();
71242
+ if (f != null) {
71243
+ writer.writeMessage(7, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
71244
+ }
71245
+ f = message.getDeletedAt();
71246
+ if (f != null) {
71247
+ writer.writeMessage(8, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
71248
+ }
71249
+ };
71250
+ /**
71251
+ * optional string id = 1;
71252
+ * @return {string}
71253
+ */
71254
+ proto.clarifai.api.Artifact.prototype.getId = function () {
71255
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
71256
+ };
71257
+ /**
71258
+ * @param {string} value
71259
+ * @return {!proto.clarifai.api.Artifact} returns this
71260
+ */
71261
+ proto.clarifai.api.Artifact.prototype.setId = function (value) {
71262
+ return jspb.Message.setProto3StringField(this, 1, value);
71263
+ };
71264
+ /**
71265
+ * optional string user_id = 2;
71266
+ * @return {string}
71267
+ */
71268
+ proto.clarifai.api.Artifact.prototype.getUserId = function () {
71269
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
71270
+ };
71271
+ /**
71272
+ * @param {string} value
71273
+ * @return {!proto.clarifai.api.Artifact} returns this
71274
+ */
71275
+ proto.clarifai.api.Artifact.prototype.setUserId = function (value) {
71276
+ return jspb.Message.setProto3StringField(this, 2, value);
71277
+ };
71278
+ /**
71279
+ * optional string app_id = 3;
71280
+ * @return {string}
71281
+ */
71282
+ proto.clarifai.api.Artifact.prototype.getAppId = function () {
71283
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
71284
+ };
71285
+ /**
71286
+ * @param {string} value
71287
+ * @return {!proto.clarifai.api.Artifact} returns this
71288
+ */
71289
+ proto.clarifai.api.Artifact.prototype.setAppId = function (value) {
71290
+ return jspb.Message.setProto3StringField(this, 3, value);
71291
+ };
71292
+ /**
71293
+ * optional ArtifactVersion artifact_version = 5;
71294
+ * @return {?proto.clarifai.api.ArtifactVersion}
71295
+ */
71296
+ proto.clarifai.api.Artifact.prototype.getArtifactVersion = function () {
71297
+ return /** @type{?proto.clarifai.api.ArtifactVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ArtifactVersion, 5));
71298
+ };
71299
+ /**
71300
+ * @param {?proto.clarifai.api.ArtifactVersion|undefined} value
71301
+ * @return {!proto.clarifai.api.Artifact} returns this
71302
+ */
71303
+ proto.clarifai.api.Artifact.prototype.setArtifactVersion = function (value) {
71304
+ return jspb.Message.setWrapperField(this, 5, value);
71305
+ };
71306
+ /**
71307
+ * Clears the message field making it undefined.
71308
+ * @return {!proto.clarifai.api.Artifact} returns this
71309
+ */
71310
+ proto.clarifai.api.Artifact.prototype.clearArtifactVersion = function () {
71311
+ return this.setArtifactVersion(undefined);
71312
+ };
71313
+ /**
71314
+ * Returns whether this field is set.
71315
+ * @return {boolean}
71316
+ */
71317
+ proto.clarifai.api.Artifact.prototype.hasArtifactVersion = function () {
71318
+ return jspb.Message.getField(this, 5) != null;
71319
+ };
71320
+ /**
71321
+ * optional google.protobuf.Timestamp created_at = 6;
71322
+ * @return {?proto.google.protobuf.Timestamp}
71323
+ */
71324
+ proto.clarifai.api.Artifact.prototype.getCreatedAt = function () {
71325
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
71326
+ };
71327
+ /**
71328
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
71329
+ * @return {!proto.clarifai.api.Artifact} returns this
71330
+ */
71331
+ proto.clarifai.api.Artifact.prototype.setCreatedAt = function (value) {
71332
+ return jspb.Message.setWrapperField(this, 6, value);
71333
+ };
71334
+ /**
71335
+ * Clears the message field making it undefined.
71336
+ * @return {!proto.clarifai.api.Artifact} returns this
71337
+ */
71338
+ proto.clarifai.api.Artifact.prototype.clearCreatedAt = function () {
71339
+ return this.setCreatedAt(undefined);
71340
+ };
71341
+ /**
71342
+ * Returns whether this field is set.
71343
+ * @return {boolean}
71344
+ */
71345
+ proto.clarifai.api.Artifact.prototype.hasCreatedAt = function () {
71346
+ return jspb.Message.getField(this, 6) != null;
71347
+ };
71348
+ /**
71349
+ * optional google.protobuf.Timestamp modified_at = 7;
71350
+ * @return {?proto.google.protobuf.Timestamp}
71351
+ */
71352
+ proto.clarifai.api.Artifact.prototype.getModifiedAt = function () {
71353
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
71354
+ };
71355
+ /**
71356
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
71357
+ * @return {!proto.clarifai.api.Artifact} returns this
71358
+ */
71359
+ proto.clarifai.api.Artifact.prototype.setModifiedAt = function (value) {
71360
+ return jspb.Message.setWrapperField(this, 7, value);
71361
+ };
71362
+ /**
71363
+ * Clears the message field making it undefined.
71364
+ * @return {!proto.clarifai.api.Artifact} returns this
71365
+ */
71366
+ proto.clarifai.api.Artifact.prototype.clearModifiedAt = function () {
71367
+ return this.setModifiedAt(undefined);
71368
+ };
71369
+ /**
71370
+ * Returns whether this field is set.
71371
+ * @return {boolean}
71372
+ */
71373
+ proto.clarifai.api.Artifact.prototype.hasModifiedAt = function () {
71374
+ return jspb.Message.getField(this, 7) != null;
71375
+ };
71376
+ /**
71377
+ * optional google.protobuf.Timestamp deleted_at = 8;
71378
+ * @return {?proto.google.protobuf.Timestamp}
71379
+ */
71380
+ proto.clarifai.api.Artifact.prototype.getDeletedAt = function () {
71381
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
71382
+ };
71383
+ /**
71384
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
71385
+ * @return {!proto.clarifai.api.Artifact} returns this
71386
+ */
71387
+ proto.clarifai.api.Artifact.prototype.setDeletedAt = function (value) {
71388
+ return jspb.Message.setWrapperField(this, 8, value);
71389
+ };
71390
+ /**
71391
+ * Clears the message field making it undefined.
71392
+ * @return {!proto.clarifai.api.Artifact} returns this
71393
+ */
71394
+ proto.clarifai.api.Artifact.prototype.clearDeletedAt = function () {
71395
+ return this.setDeletedAt(undefined);
71396
+ };
71397
+ /**
71398
+ * Returns whether this field is set.
71399
+ * @return {boolean}
71400
+ */
71401
+ proto.clarifai.api.Artifact.prototype.hasDeletedAt = function () {
71402
+ return jspb.Message.getField(this, 8) != null;
71403
+ };
71404
+ if (jspb.Message.GENERATE_TO_OBJECT) {
71405
+ /**
71406
+ * Creates an object representation of this proto.
71407
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
71408
+ * Optional fields that are not set will be set to undefined.
71409
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71410
+ * For the list of reserved names please see:
71411
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
71412
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
71413
+ * JSPB instance for transitional soy proto support:
71414
+ * http://goto/soy-param-migration
71415
+ * @return {!Object}
71416
+ */
71417
+ proto.clarifai.api.ArtifactVersion.prototype.toObject = function (opt_includeInstance) {
71418
+ return proto.clarifai.api.ArtifactVersion.toObject(opt_includeInstance, this);
71419
+ };
71420
+ /**
71421
+ * Static version of the {@see toObject} method.
71422
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
71423
+ * the JSPB instance for transitional soy proto support:
71424
+ * http://goto/soy-param-migration
71425
+ * @param {!proto.clarifai.api.ArtifactVersion} msg The msg instance to transform.
71426
+ * @return {!Object}
71427
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71428
+ */
71429
+ proto.clarifai.api.ArtifactVersion.toObject = function (includeInstance, msg) {
71430
+ var f, obj = {
71431
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
71432
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
71433
+ artifact: (f = msg.getArtifact()) && proto.clarifai.api.Artifact.toObject(includeInstance, f),
71434
+ upload: (f = msg.getUpload()) && proto.clarifai.api.Upload.toObject(includeInstance, f),
71435
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
71436
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
71437
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
71438
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
71439
+ deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
71440
+ };
71441
+ if (includeInstance) {
71442
+ obj.$jspbMessageInstance = msg;
71443
+ }
71444
+ return obj;
71445
+ };
71446
+ }
71447
+ /**
71448
+ * Deserializes binary data (in protobuf wire format).
71449
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
71450
+ * @return {!proto.clarifai.api.ArtifactVersion}
71451
+ */
71452
+ proto.clarifai.api.ArtifactVersion.deserializeBinary = function (bytes) {
71453
+ var reader = new jspb.BinaryReader(bytes);
71454
+ var msg = new proto.clarifai.api.ArtifactVersion;
71455
+ return proto.clarifai.api.ArtifactVersion.deserializeBinaryFromReader(msg, reader);
71456
+ };
71457
+ /**
71458
+ * Deserializes binary data (in protobuf wire format) from the
71459
+ * given reader into the given message object.
71460
+ * @param {!proto.clarifai.api.ArtifactVersion} msg The message object to deserialize into.
71461
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71462
+ * @return {!proto.clarifai.api.ArtifactVersion}
71463
+ */
71464
+ proto.clarifai.api.ArtifactVersion.deserializeBinaryFromReader = function (msg, reader) {
71465
+ while (reader.nextField()) {
71466
+ if (reader.isEndGroup()) {
71467
+ break;
71468
+ }
71469
+ var field = reader.getFieldNumber();
71470
+ switch (field) {
71471
+ case 1:
71472
+ var value = /** @type {string} */ (reader.readString());
71473
+ msg.setId(value);
71474
+ break;
71475
+ case 2:
71476
+ var value = /** @type {string} */ (reader.readString());
71477
+ msg.setDescription(value);
71478
+ break;
71479
+ case 3:
71480
+ var value = new proto.clarifai.api.Artifact;
71481
+ reader.readMessage(value, proto.clarifai.api.Artifact.deserializeBinaryFromReader);
71482
+ msg.setArtifact(value);
71483
+ break;
71484
+ case 4:
71485
+ var value = new proto.clarifai.api.Upload;
71486
+ reader.readMessage(value, proto.clarifai.api.Upload.deserializeBinaryFromReader);
71487
+ msg.setUpload(value);
71488
+ break;
71489
+ case 5:
71490
+ var value = new proto.clarifai.api.Visibility;
71491
+ reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
71492
+ msg.setVisibility(value);
71493
+ break;
71494
+ case 6:
71495
+ var value = new google_protobuf_timestamp_pb.Timestamp;
71496
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
71497
+ msg.setExpiresAt(value);
71498
+ break;
71499
+ case 7:
71500
+ var value = new google_protobuf_timestamp_pb.Timestamp;
71501
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
71502
+ msg.setCreatedAt(value);
71503
+ break;
71504
+ case 8:
71505
+ var value = new google_protobuf_timestamp_pb.Timestamp;
71506
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
71507
+ msg.setModifiedAt(value);
71508
+ break;
71509
+ case 9:
71510
+ var value = new google_protobuf_timestamp_pb.Timestamp;
71511
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
71512
+ msg.setDeletedAt(value);
71513
+ break;
71514
+ default:
71515
+ reader.skipField();
71516
+ break;
71517
+ }
71518
+ }
71519
+ return msg;
71520
+ };
71521
+ /**
71522
+ * Serializes the message to binary data (in protobuf wire format).
71523
+ * @return {!Uint8Array}
71524
+ */
71525
+ proto.clarifai.api.ArtifactVersion.prototype.serializeBinary = function () {
71526
+ var writer = new jspb.BinaryWriter();
71527
+ proto.clarifai.api.ArtifactVersion.serializeBinaryToWriter(this, writer);
71528
+ return writer.getResultBuffer();
71529
+ };
71530
+ /**
71531
+ * Serializes the given message to binary data (in protobuf wire
71532
+ * format), writing to the given BinaryWriter.
71533
+ * @param {!proto.clarifai.api.ArtifactVersion} message
71534
+ * @param {!jspb.BinaryWriter} writer
71535
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71536
+ */
71537
+ proto.clarifai.api.ArtifactVersion.serializeBinaryToWriter = function (message, writer) {
71538
+ var f = undefined;
71539
+ f = message.getId();
71540
+ if (f.length > 0) {
71541
+ writer.writeString(1, f);
71542
+ }
71543
+ f = message.getDescription();
71544
+ if (f.length > 0) {
71545
+ writer.writeString(2, f);
71546
+ }
71547
+ f = message.getArtifact();
71548
+ if (f != null) {
71549
+ writer.writeMessage(3, f, proto.clarifai.api.Artifact.serializeBinaryToWriter);
71550
+ }
71551
+ f = message.getUpload();
71552
+ if (f != null) {
71553
+ writer.writeMessage(4, f, proto.clarifai.api.Upload.serializeBinaryToWriter);
71554
+ }
71555
+ f = message.getVisibility();
71556
+ if (f != null) {
71557
+ writer.writeMessage(5, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
71558
+ }
71559
+ f = message.getExpiresAt();
71560
+ if (f != null) {
71561
+ writer.writeMessage(6, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
71562
+ }
71563
+ f = message.getCreatedAt();
71564
+ if (f != null) {
71565
+ writer.writeMessage(7, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
71566
+ }
71567
+ f = message.getModifiedAt();
71568
+ if (f != null) {
71569
+ writer.writeMessage(8, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
71570
+ }
71571
+ f = message.getDeletedAt();
71572
+ if (f != null) {
71573
+ writer.writeMessage(9, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
71574
+ }
71575
+ };
71576
+ /**
71577
+ * optional string id = 1;
71578
+ * @return {string}
71579
+ */
71580
+ proto.clarifai.api.ArtifactVersion.prototype.getId = function () {
71581
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
71582
+ };
71583
+ /**
71584
+ * @param {string} value
71585
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71586
+ */
71587
+ proto.clarifai.api.ArtifactVersion.prototype.setId = function (value) {
71588
+ return jspb.Message.setProto3StringField(this, 1, value);
71589
+ };
71590
+ /**
71591
+ * optional string description = 2;
71592
+ * @return {string}
71593
+ */
71594
+ proto.clarifai.api.ArtifactVersion.prototype.getDescription = function () {
71595
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
71596
+ };
71597
+ /**
71598
+ * @param {string} value
71599
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71600
+ */
71601
+ proto.clarifai.api.ArtifactVersion.prototype.setDescription = function (value) {
71602
+ return jspb.Message.setProto3StringField(this, 2, value);
71603
+ };
71604
+ /**
71605
+ * optional Artifact artifact = 3;
71606
+ * @return {?proto.clarifai.api.Artifact}
71607
+ */
71608
+ proto.clarifai.api.ArtifactVersion.prototype.getArtifact = function () {
71609
+ return /** @type{?proto.clarifai.api.Artifact} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Artifact, 3));
71610
+ };
71611
+ /**
71612
+ * @param {?proto.clarifai.api.Artifact|undefined} value
71613
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71614
+ */
71615
+ proto.clarifai.api.ArtifactVersion.prototype.setArtifact = function (value) {
71616
+ return jspb.Message.setWrapperField(this, 3, value);
71617
+ };
71618
+ /**
71619
+ * Clears the message field making it undefined.
71620
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71621
+ */
71622
+ proto.clarifai.api.ArtifactVersion.prototype.clearArtifact = function () {
71623
+ return this.setArtifact(undefined);
71624
+ };
71625
+ /**
71626
+ * Returns whether this field is set.
71627
+ * @return {boolean}
71628
+ */
71629
+ proto.clarifai.api.ArtifactVersion.prototype.hasArtifact = function () {
71630
+ return jspb.Message.getField(this, 3) != null;
71631
+ };
71632
+ /**
71633
+ * optional Upload upload = 4;
71634
+ * @return {?proto.clarifai.api.Upload}
71635
+ */
71636
+ proto.clarifai.api.ArtifactVersion.prototype.getUpload = function () {
71637
+ return /** @type{?proto.clarifai.api.Upload} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Upload, 4));
71638
+ };
71639
+ /**
71640
+ * @param {?proto.clarifai.api.Upload|undefined} value
71641
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71642
+ */
71643
+ proto.clarifai.api.ArtifactVersion.prototype.setUpload = function (value) {
71644
+ return jspb.Message.setWrapperField(this, 4, value);
71645
+ };
71646
+ /**
71647
+ * Clears the message field making it undefined.
71648
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71649
+ */
71650
+ proto.clarifai.api.ArtifactVersion.prototype.clearUpload = function () {
71651
+ return this.setUpload(undefined);
71652
+ };
71653
+ /**
71654
+ * Returns whether this field is set.
71655
+ * @return {boolean}
71656
+ */
71657
+ proto.clarifai.api.ArtifactVersion.prototype.hasUpload = function () {
71658
+ return jspb.Message.getField(this, 4) != null;
71659
+ };
71660
+ /**
71661
+ * optional Visibility visibility = 5;
71662
+ * @return {?proto.clarifai.api.Visibility}
71663
+ */
71664
+ proto.clarifai.api.ArtifactVersion.prototype.getVisibility = function () {
71665
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 5));
71666
+ };
71667
+ /**
71668
+ * @param {?proto.clarifai.api.Visibility|undefined} value
71669
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71670
+ */
71671
+ proto.clarifai.api.ArtifactVersion.prototype.setVisibility = function (value) {
71672
+ return jspb.Message.setWrapperField(this, 5, value);
71673
+ };
71674
+ /**
71675
+ * Clears the message field making it undefined.
71676
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71677
+ */
71678
+ proto.clarifai.api.ArtifactVersion.prototype.clearVisibility = function () {
71679
+ return this.setVisibility(undefined);
71680
+ };
71681
+ /**
71682
+ * Returns whether this field is set.
71683
+ * @return {boolean}
71684
+ */
71685
+ proto.clarifai.api.ArtifactVersion.prototype.hasVisibility = function () {
71686
+ return jspb.Message.getField(this, 5) != null;
71687
+ };
71688
+ /**
71689
+ * optional google.protobuf.Timestamp expires_at = 6;
71690
+ * @return {?proto.google.protobuf.Timestamp}
71691
+ */
71692
+ proto.clarifai.api.ArtifactVersion.prototype.getExpiresAt = function () {
71693
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
71694
+ };
71695
+ /**
71696
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
71697
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71698
+ */
71699
+ proto.clarifai.api.ArtifactVersion.prototype.setExpiresAt = function (value) {
71700
+ return jspb.Message.setWrapperField(this, 6, value);
71701
+ };
71702
+ /**
71703
+ * Clears the message field making it undefined.
71704
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71705
+ */
71706
+ proto.clarifai.api.ArtifactVersion.prototype.clearExpiresAt = function () {
71707
+ return this.setExpiresAt(undefined);
71708
+ };
71709
+ /**
71710
+ * Returns whether this field is set.
71711
+ * @return {boolean}
71712
+ */
71713
+ proto.clarifai.api.ArtifactVersion.prototype.hasExpiresAt = function () {
71714
+ return jspb.Message.getField(this, 6) != null;
71715
+ };
71716
+ /**
71717
+ * optional google.protobuf.Timestamp created_at = 7;
71718
+ * @return {?proto.google.protobuf.Timestamp}
71719
+ */
71720
+ proto.clarifai.api.ArtifactVersion.prototype.getCreatedAt = function () {
71721
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
71722
+ };
71723
+ /**
71724
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
71725
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71726
+ */
71727
+ proto.clarifai.api.ArtifactVersion.prototype.setCreatedAt = function (value) {
71728
+ return jspb.Message.setWrapperField(this, 7, value);
71729
+ };
71730
+ /**
71731
+ * Clears the message field making it undefined.
71732
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71733
+ */
71734
+ proto.clarifai.api.ArtifactVersion.prototype.clearCreatedAt = function () {
71735
+ return this.setCreatedAt(undefined);
71736
+ };
71737
+ /**
71738
+ * Returns whether this field is set.
71739
+ * @return {boolean}
71740
+ */
71741
+ proto.clarifai.api.ArtifactVersion.prototype.hasCreatedAt = function () {
71742
+ return jspb.Message.getField(this, 7) != null;
71743
+ };
71744
+ /**
71745
+ * optional google.protobuf.Timestamp modified_at = 8;
71746
+ * @return {?proto.google.protobuf.Timestamp}
71747
+ */
71748
+ proto.clarifai.api.ArtifactVersion.prototype.getModifiedAt = function () {
71749
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
71750
+ };
71751
+ /**
71752
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
71753
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71754
+ */
71755
+ proto.clarifai.api.ArtifactVersion.prototype.setModifiedAt = function (value) {
71756
+ return jspb.Message.setWrapperField(this, 8, value);
71757
+ };
71758
+ /**
71759
+ * Clears the message field making it undefined.
71760
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71761
+ */
71762
+ proto.clarifai.api.ArtifactVersion.prototype.clearModifiedAt = function () {
71763
+ return this.setModifiedAt(undefined);
71764
+ };
71765
+ /**
71766
+ * Returns whether this field is set.
71767
+ * @return {boolean}
71768
+ */
71769
+ proto.clarifai.api.ArtifactVersion.prototype.hasModifiedAt = function () {
71770
+ return jspb.Message.getField(this, 8) != null;
71771
+ };
71772
+ /**
71773
+ * optional google.protobuf.Timestamp deleted_at = 9;
71774
+ * @return {?proto.google.protobuf.Timestamp}
71775
+ */
71776
+ proto.clarifai.api.ArtifactVersion.prototype.getDeletedAt = function () {
71777
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
71778
+ };
71779
+ /**
71780
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
71781
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71782
+ */
71783
+ proto.clarifai.api.ArtifactVersion.prototype.setDeletedAt = function (value) {
71784
+ return jspb.Message.setWrapperField(this, 9, value);
71785
+ };
71786
+ /**
71787
+ * Clears the message field making it undefined.
71788
+ * @return {!proto.clarifai.api.ArtifactVersion} returns this
71789
+ */
71790
+ proto.clarifai.api.ArtifactVersion.prototype.clearDeletedAt = function () {
71791
+ return this.setDeletedAt(undefined);
71792
+ };
71793
+ /**
71794
+ * Returns whether this field is set.
71795
+ * @return {boolean}
71796
+ */
71797
+ proto.clarifai.api.ArtifactVersion.prototype.hasDeletedAt = function () {
71798
+ return jspb.Message.getField(this, 9) != null;
71799
+ };
71009
71800
  /**
71010
71801
  * @enum {number}
71011
71802
  */
@@ -71064,7 +71855,8 @@ proto.clarifai.api.DeployRestriction = {
71064
71855
  USAGE_RESTRICTION_NOT_SET: 0,
71065
71856
  NO_LIMITS: 1,
71066
71857
  SHARED_COMPUTE_ONLY: 2,
71067
- DEDICATED_COMPUTE_ONLY: 3
71858
+ DEDICATED_COMPUTE_ONLY: 3,
71859
+ MODEL_OWNER_DEDICATED_COMPUTE_ONLY: 4
71068
71860
  };
71069
71861
  /**
71070
71862
  * @enum {number}