clarifai-web-grpc 10.8.4 → 10.8.6

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
- 10.8.4
1
+ 10.8.6
@@ -91,7 +91,6 @@ goog.exportSymbol('proto.clarifai.api.ConfusionMatrix', null, global);
91
91
  goog.exportSymbol('proto.clarifai.api.ConfusionMatrixEntry', null, global);
92
92
  goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrix', null, global);
93
93
  goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrixEntry', null, global);
94
- goog.exportSymbol('proto.clarifai.api.CustomCodeOperatorRequest', null, global);
95
94
  goog.exportSymbol('proto.clarifai.api.Data', null, global);
96
95
  goog.exportSymbol('proto.clarifai.api.DataSourceCredentials', null, global);
97
96
  goog.exportSymbol('proto.clarifai.api.DataSourceCredentials.CredentialsCase', null, global);
@@ -237,6 +236,7 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregate', null, global);
237
236
  goog.exportSymbol('proto.clarifai.api.StatValueAggregateQuery', null, global);
238
237
  goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
239
238
  goog.exportSymbol('proto.clarifai.api.Task', null, global);
239
+ goog.exportSymbol('proto.clarifai.api.Task.TaskPriority', null, global);
240
240
  goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
241
241
  goog.exportSymbol('proto.clarifai.api.Task.WorkerType', null, global);
242
242
  goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
@@ -292,7 +292,6 @@ goog.exportSymbol('proto.clarifai.api.Workflow', null, global);
292
292
  goog.exportSymbol('proto.clarifai.api.WorkflowModelUseCase', null, global);
293
293
  goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
294
294
  goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
295
- goog.exportSymbol('proto.clarifai.api.WorkflowResultsSimilarity', null, global);
296
295
  goog.exportSymbol('proto.clarifai.api.WorkflowState', null, global);
297
296
  goog.exportSymbol('proto.clarifai.api.WorkflowVersion', null, global);
298
297
  /**
@@ -1576,27 +1575,6 @@ if (goog.DEBUG && !COMPILED) {
1576
1575
  */
1577
1576
  proto.clarifai.api.FrameInterpolationInfo.displayName = 'proto.clarifai.api.FrameInterpolationInfo';
1578
1577
  }
1579
- /**
1580
- * Generated by JsPbCodeGenerator.
1581
- * @param {Array=} opt_data Optional initial data array, typically from a
1582
- * server response, or constructed directly in Javascript. The array is used
1583
- * in place and becomes part of the constructed object. It is not cloned.
1584
- * If no data is provided, the constructed object will be empty, but still
1585
- * valid.
1586
- * @extends {jspb.Message}
1587
- * @constructor
1588
- */
1589
- proto.clarifai.api.WorkflowResultsSimilarity = function (opt_data) {
1590
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.WorkflowResultsSimilarity.repeatedFields_, null);
1591
- };
1592
- goog.inherits(proto.clarifai.api.WorkflowResultsSimilarity, jspb.Message);
1593
- if (goog.DEBUG && !COMPILED) {
1594
- /**
1595
- * @public
1596
- * @override
1597
- */
1598
- proto.clarifai.api.WorkflowResultsSimilarity.displayName = 'proto.clarifai.api.WorkflowResultsSimilarity';
1599
- }
1600
1578
  /**
1601
1579
  * Generated by JsPbCodeGenerator.
1602
1580
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4306,27 +4284,6 @@ if (goog.DEBUG && !COMPILED) {
4306
4284
  */
4307
4285
  proto.clarifai.api.UploadContentPart.displayName = 'proto.clarifai.api.UploadContentPart';
4308
4286
  }
4309
- /**
4310
- * Generated by JsPbCodeGenerator.
4311
- * @param {Array=} opt_data Optional initial data array, typically from a
4312
- * server response, or constructed directly in Javascript. The array is used
4313
- * in place and becomes part of the constructed object. It is not cloned.
4314
- * If no data is provided, the constructed object will be empty, but still
4315
- * valid.
4316
- * @extends {jspb.Message}
4317
- * @constructor
4318
- */
4319
- proto.clarifai.api.CustomCodeOperatorRequest = function (opt_data) {
4320
- jspb.Message.initialize(this, opt_data, 0, 500, proto.clarifai.api.CustomCodeOperatorRequest.repeatedFields_, null);
4321
- };
4322
- goog.inherits(proto.clarifai.api.CustomCodeOperatorRequest, jspb.Message);
4323
- if (goog.DEBUG && !COMPILED) {
4324
- /**
4325
- * @public
4326
- * @override
4327
- */
4328
- proto.clarifai.api.CustomCodeOperatorRequest.displayName = 'proto.clarifai.api.CustomCodeOperatorRequest';
4329
- }
4330
4287
  /**
4331
4288
  * Generated by JsPbCodeGenerator.
4332
4289
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -8826,7 +8783,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
8826
8783
  visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
8827
8784
  userId: jspb.Message.getFieldWithDefault(msg, 10, ""),
8828
8785
  keypointInfo: (f = msg.getKeypointInfo()) && proto.clarifai.api.KeypointInfo.toObject(includeInstance, f),
8829
- extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfo.toObject(includeInstance, f)
8786
+ extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfo.toObject(includeInstance, f),
8787
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
8830
8788
  };
8831
8789
  if (includeInstance) {
8832
8790
  obj.$jspbMessageInstance = msg;
@@ -8910,6 +8868,11 @@ proto.clarifai.api.Concept.deserializeBinaryFromReader = function (msg, reader)
8910
8868
  reader.readMessage(value, proto.clarifai.api.ConceptExtraInfo.deserializeBinaryFromReader);
8911
8869
  msg.setExtraInfo(value);
8912
8870
  break;
8871
+ case 13:
8872
+ var value = new google_protobuf_struct_pb.Struct;
8873
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
8874
+ msg.setMetadata(value);
8875
+ break;
8913
8876
  default:
8914
8877
  reader.skipField();
8915
8878
  break;
@@ -8983,6 +8946,10 @@ proto.clarifai.api.Concept.serializeBinaryToWriter = function (message, writer)
8983
8946
  if (f != null) {
8984
8947
  writer.writeMessage(12, f, proto.clarifai.api.ConceptExtraInfo.serializeBinaryToWriter);
8985
8948
  }
8949
+ f = message.getMetadata();
8950
+ if (f != null) {
8951
+ writer.writeMessage(13, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
8952
+ }
8986
8953
  };
8987
8954
  /**
8988
8955
  * optional string id = 1;
@@ -9208,6 +9175,34 @@ proto.clarifai.api.Concept.prototype.clearExtraInfo = function () {
9208
9175
  proto.clarifai.api.Concept.prototype.hasExtraInfo = function () {
9209
9176
  return jspb.Message.getField(this, 12) != null;
9210
9177
  };
9178
+ /**
9179
+ * optional google.protobuf.Struct metadata = 13;
9180
+ * @return {?proto.google.protobuf.Struct}
9181
+ */
9182
+ proto.clarifai.api.Concept.prototype.getMetadata = function () {
9183
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 13));
9184
+ };
9185
+ /**
9186
+ * @param {?proto.google.protobuf.Struct|undefined} value
9187
+ * @return {!proto.clarifai.api.Concept} returns this
9188
+ */
9189
+ proto.clarifai.api.Concept.prototype.setMetadata = function (value) {
9190
+ return jspb.Message.setWrapperField(this, 13, value);
9191
+ };
9192
+ /**
9193
+ * Clears the message field making it undefined.
9194
+ * @return {!proto.clarifai.api.Concept} returns this
9195
+ */
9196
+ proto.clarifai.api.Concept.prototype.clearMetadata = function () {
9197
+ return this.setMetadata(undefined);
9198
+ };
9199
+ /**
9200
+ * Returns whether this field is set.
9201
+ * @return {boolean}
9202
+ */
9203
+ proto.clarifai.api.Concept.prototype.hasMetadata = function () {
9204
+ return jspb.Message.getField(this, 13) != null;
9205
+ };
9211
9206
  /**
9212
9207
  * List of repeated fields within this message type.
9213
9208
  * @private {!Array<number>}
@@ -19269,173 +19264,6 @@ proto.clarifai.api.FrameInterpolationInfo.prototype.getSampleMs = function () {
19269
19264
  proto.clarifai.api.FrameInterpolationInfo.prototype.setSampleMs = function (value) {
19270
19265
  return jspb.Message.setProto3IntField(this, 1, value);
19271
19266
  };
19272
- /**
19273
- * List of repeated fields within this message type.
19274
- * @private {!Array<number>}
19275
- * @const
19276
- */
19277
- proto.clarifai.api.WorkflowResultsSimilarity.repeatedFields_ = [2];
19278
- if (jspb.Message.GENERATE_TO_OBJECT) {
19279
- /**
19280
- * Creates an object representation of this proto.
19281
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
19282
- * Optional fields that are not set will be set to undefined.
19283
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19284
- * For the list of reserved names please see:
19285
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19286
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19287
- * JSPB instance for transitional soy proto support:
19288
- * http://goto/soy-param-migration
19289
- * @return {!Object}
19290
- */
19291
- proto.clarifai.api.WorkflowResultsSimilarity.prototype.toObject = function (opt_includeInstance) {
19292
- return proto.clarifai.api.WorkflowResultsSimilarity.toObject(opt_includeInstance, this);
19293
- };
19294
- /**
19295
- * Static version of the {@see toObject} method.
19296
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19297
- * the JSPB instance for transitional soy proto support:
19298
- * http://goto/soy-param-migration
19299
- * @param {!proto.clarifai.api.WorkflowResultsSimilarity} msg The msg instance to transform.
19300
- * @return {!Object}
19301
- * @suppress {unusedLocalVariables} f is only used for nested messages
19302
- */
19303
- proto.clarifai.api.WorkflowResultsSimilarity.toObject = function (includeInstance, msg) {
19304
- var f, obj = {
19305
- probeInput: (f = msg.getProbeInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
19306
- poolResultsList: jspb.Message.toObjectList(msg.getPoolResultsList(), proto.clarifai.api.Hit.toObject, includeInstance)
19307
- };
19308
- if (includeInstance) {
19309
- obj.$jspbMessageInstance = msg;
19310
- }
19311
- return obj;
19312
- };
19313
- }
19314
- /**
19315
- * Deserializes binary data (in protobuf wire format).
19316
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
19317
- * @return {!proto.clarifai.api.WorkflowResultsSimilarity}
19318
- */
19319
- proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinary = function (bytes) {
19320
- var reader = new jspb.BinaryReader(bytes);
19321
- var msg = new proto.clarifai.api.WorkflowResultsSimilarity;
19322
- return proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinaryFromReader(msg, reader);
19323
- };
19324
- /**
19325
- * Deserializes binary data (in protobuf wire format) from the
19326
- * given reader into the given message object.
19327
- * @param {!proto.clarifai.api.WorkflowResultsSimilarity} msg The message object to deserialize into.
19328
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19329
- * @return {!proto.clarifai.api.WorkflowResultsSimilarity}
19330
- */
19331
- proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinaryFromReader = function (msg, reader) {
19332
- while (reader.nextField()) {
19333
- if (reader.isEndGroup()) {
19334
- break;
19335
- }
19336
- var field = reader.getFieldNumber();
19337
- switch (field) {
19338
- case 1:
19339
- var value = new proto.clarifai.api.Input;
19340
- reader.readMessage(value, proto.clarifai.api.Input.deserializeBinaryFromReader);
19341
- msg.setProbeInput(value);
19342
- break;
19343
- case 2:
19344
- var value = new proto.clarifai.api.Hit;
19345
- reader.readMessage(value, proto.clarifai.api.Hit.deserializeBinaryFromReader);
19346
- msg.addPoolResults(value);
19347
- break;
19348
- default:
19349
- reader.skipField();
19350
- break;
19351
- }
19352
- }
19353
- return msg;
19354
- };
19355
- /**
19356
- * Serializes the message to binary data (in protobuf wire format).
19357
- * @return {!Uint8Array}
19358
- */
19359
- proto.clarifai.api.WorkflowResultsSimilarity.prototype.serializeBinary = function () {
19360
- var writer = new jspb.BinaryWriter();
19361
- proto.clarifai.api.WorkflowResultsSimilarity.serializeBinaryToWriter(this, writer);
19362
- return writer.getResultBuffer();
19363
- };
19364
- /**
19365
- * Serializes the given message to binary data (in protobuf wire
19366
- * format), writing to the given BinaryWriter.
19367
- * @param {!proto.clarifai.api.WorkflowResultsSimilarity} message
19368
- * @param {!jspb.BinaryWriter} writer
19369
- * @suppress {unusedLocalVariables} f is only used for nested messages
19370
- */
19371
- proto.clarifai.api.WorkflowResultsSimilarity.serializeBinaryToWriter = function (message, writer) {
19372
- var f = undefined;
19373
- f = message.getProbeInput();
19374
- if (f != null) {
19375
- writer.writeMessage(1, f, proto.clarifai.api.Input.serializeBinaryToWriter);
19376
- }
19377
- f = message.getPoolResultsList();
19378
- if (f.length > 0) {
19379
- writer.writeRepeatedMessage(2, f, proto.clarifai.api.Hit.serializeBinaryToWriter);
19380
- }
19381
- };
19382
- /**
19383
- * optional Input probe_input = 1;
19384
- * @return {?proto.clarifai.api.Input}
19385
- */
19386
- proto.clarifai.api.WorkflowResultsSimilarity.prototype.getProbeInput = function () {
19387
- return /** @type{?proto.clarifai.api.Input} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 1));
19388
- };
19389
- /**
19390
- * @param {?proto.clarifai.api.Input|undefined} value
19391
- * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this
19392
- */
19393
- proto.clarifai.api.WorkflowResultsSimilarity.prototype.setProbeInput = function (value) {
19394
- return jspb.Message.setWrapperField(this, 1, value);
19395
- };
19396
- /**
19397
- * Clears the message field making it undefined.
19398
- * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this
19399
- */
19400
- proto.clarifai.api.WorkflowResultsSimilarity.prototype.clearProbeInput = function () {
19401
- return this.setProbeInput(undefined);
19402
- };
19403
- /**
19404
- * Returns whether this field is set.
19405
- * @return {boolean}
19406
- */
19407
- proto.clarifai.api.WorkflowResultsSimilarity.prototype.hasProbeInput = function () {
19408
- return jspb.Message.getField(this, 1) != null;
19409
- };
19410
- /**
19411
- * repeated Hit pool_results = 2;
19412
- * @return {!Array<!proto.clarifai.api.Hit>}
19413
- */
19414
- proto.clarifai.api.WorkflowResultsSimilarity.prototype.getPoolResultsList = function () {
19415
- return /** @type{!Array<!proto.clarifai.api.Hit>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Hit, 2));
19416
- };
19417
- /**
19418
- * @param {!Array<!proto.clarifai.api.Hit>} value
19419
- * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this
19420
- */
19421
- proto.clarifai.api.WorkflowResultsSimilarity.prototype.setPoolResultsList = function (value) {
19422
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
19423
- };
19424
- /**
19425
- * @param {!proto.clarifai.api.Hit=} opt_value
19426
- * @param {number=} opt_index
19427
- * @return {!proto.clarifai.api.Hit}
19428
- */
19429
- proto.clarifai.api.WorkflowResultsSimilarity.prototype.addPoolResults = function (opt_value, opt_index) {
19430
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Hit, opt_index);
19431
- };
19432
- /**
19433
- * Clears the list making it empty but non-null.
19434
- * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this
19435
- */
19436
- proto.clarifai.api.WorkflowResultsSimilarity.prototype.clearPoolResultsList = function () {
19437
- return this.setPoolResultsList([]);
19438
- };
19439
19267
  /**
19440
19268
  * List of repeated fields within this message type.
19441
19269
  * @private {!Array<number>}
@@ -33577,7 +33405,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
33577
33405
  isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
33578
33406
  starCount: jspb.Message.getFieldWithDefault(msg, 22, 0),
33579
33407
  visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
33580
- userDetail: (f = msg.getUserDetail()) && proto.clarifai.api.UserDetail.toObject(includeInstance, f)
33408
+ userDetail: (f = msg.getUserDetail()) && proto.clarifai.api.UserDetail.toObject(includeInstance, f),
33409
+ image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
33581
33410
  };
33582
33411
  if (includeInstance) {
33583
33412
  obj.$jspbMessageInstance = msg;
@@ -33710,6 +33539,11 @@ proto.clarifai.api.User.deserializeBinaryFromReader = function (msg, reader) {
33710
33539
  reader.readMessage(value, proto.clarifai.api.UserDetail.deserializeBinaryFromReader);
33711
33540
  msg.setUserDetail(value);
33712
33541
  break;
33542
+ case 26:
33543
+ var value = new proto.clarifai.api.Image;
33544
+ reader.readMessage(value, proto.clarifai.api.Image.deserializeBinaryFromReader);
33545
+ msg.setImage(value);
33546
+ break;
33713
33547
  default:
33714
33548
  reader.skipField();
33715
33549
  break;
@@ -33827,6 +33661,10 @@ proto.clarifai.api.User.serializeBinaryToWriter = function (message, writer) {
33827
33661
  if (f != null) {
33828
33662
  writer.writeMessage(18, f, proto.clarifai.api.UserDetail.serializeBinaryToWriter);
33829
33663
  }
33664
+ f = message.getImage();
33665
+ if (f != null) {
33666
+ writer.writeMessage(26, f, proto.clarifai.api.Image.serializeBinaryToWriter);
33667
+ }
33830
33668
  };
33831
33669
  /**
33832
33670
  * optional string id = 1;
@@ -34277,6 +34115,34 @@ proto.clarifai.api.User.prototype.clearUserDetail = function () {
34277
34115
  proto.clarifai.api.User.prototype.hasUserDetail = function () {
34278
34116
  return jspb.Message.getField(this, 18) != null;
34279
34117
  };
34118
+ /**
34119
+ * optional Image image = 26;
34120
+ * @return {?proto.clarifai.api.Image}
34121
+ */
34122
+ proto.clarifai.api.User.prototype.getImage = function () {
34123
+ return /** @type{?proto.clarifai.api.Image} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 26));
34124
+ };
34125
+ /**
34126
+ * @param {?proto.clarifai.api.Image|undefined} value
34127
+ * @return {!proto.clarifai.api.User} returns this
34128
+ */
34129
+ proto.clarifai.api.User.prototype.setImage = function (value) {
34130
+ return jspb.Message.setWrapperField(this, 26, value);
34131
+ };
34132
+ /**
34133
+ * Clears the message field making it undefined.
34134
+ * @return {!proto.clarifai.api.User} returns this
34135
+ */
34136
+ proto.clarifai.api.User.prototype.clearImage = function () {
34137
+ return this.setImage(undefined);
34138
+ };
34139
+ /**
34140
+ * Returns whether this field is set.
34141
+ * @return {boolean}
34142
+ */
34143
+ proto.clarifai.api.User.prototype.hasImage = function () {
34144
+ return jspb.Message.getField(this, 26) != null;
34145
+ };
34280
34146
  /**
34281
34147
  * List of repeated fields within this message type.
34282
34148
  * @private {!Array<number>}
@@ -37398,7 +37264,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
37398
37264
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
37399
37265
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
37400
37266
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
37401
- model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
37402
37267
  input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
37403
37268
  outputsList: jspb.Message.toObjectList(msg.getOutputsList(), proto.clarifai.api.Output.toObject, includeInstance),
37404
37269
  suppressOutput: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
@@ -37447,11 +37312,6 @@ proto.clarifai.api.WorkflowResult.deserializeBinaryFromReader = function (msg, r
37447
37312
  reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
37448
37313
  msg.setCreatedAt(value);
37449
37314
  break;
37450
- case 4:
37451
- var value = new proto.clarifai.api.Model;
37452
- reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
37453
- msg.setModel(value);
37454
- break;
37455
37315
  case 5:
37456
37316
  var value = new proto.clarifai.api.Input;
37457
37317
  reader.readMessage(value, proto.clarifai.api.Input.deserializeBinaryFromReader);
@@ -37503,10 +37363,6 @@ proto.clarifai.api.WorkflowResult.serializeBinaryToWriter = function (message, w
37503
37363
  if (f != null) {
37504
37364
  writer.writeMessage(3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
37505
37365
  }
37506
- f = message.getModel();
37507
- if (f != null) {
37508
- writer.writeMessage(4, f, proto.clarifai.api.Model.serializeBinaryToWriter);
37509
- }
37510
37366
  f = message.getInput();
37511
37367
  if (f != null) {
37512
37368
  writer.writeMessage(5, f, proto.clarifai.api.Input.serializeBinaryToWriter);
@@ -37590,34 +37446,6 @@ proto.clarifai.api.WorkflowResult.prototype.clearCreatedAt = function () {
37590
37446
  proto.clarifai.api.WorkflowResult.prototype.hasCreatedAt = function () {
37591
37447
  return jspb.Message.getField(this, 3) != null;
37592
37448
  };
37593
- /**
37594
- * optional Model model = 4;
37595
- * @return {?proto.clarifai.api.Model}
37596
- */
37597
- proto.clarifai.api.WorkflowResult.prototype.getModel = function () {
37598
- return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 4));
37599
- };
37600
- /**
37601
- * @param {?proto.clarifai.api.Model|undefined} value
37602
- * @return {!proto.clarifai.api.WorkflowResult} returns this
37603
- */
37604
- proto.clarifai.api.WorkflowResult.prototype.setModel = function (value) {
37605
- return jspb.Message.setWrapperField(this, 4, value);
37606
- };
37607
- /**
37608
- * Clears the message field making it undefined.
37609
- * @return {!proto.clarifai.api.WorkflowResult} returns this
37610
- */
37611
- proto.clarifai.api.WorkflowResult.prototype.clearModel = function () {
37612
- return this.setModel(undefined);
37613
- };
37614
- /**
37615
- * Returns whether this field is set.
37616
- * @return {boolean}
37617
- */
37618
- proto.clarifai.api.WorkflowResult.prototype.hasModel = function () {
37619
- return jspb.Message.getField(this, 4) != null;
37620
- };
37621
37449
  /**
37622
37450
  * optional Input input = 5;
37623
37451
  * @return {?proto.clarifai.api.Input}
@@ -39017,7 +38845,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
39017
38845
  labelOrderId: jspb.Message.getFieldWithDefault(msg, 18, ""),
39018
38846
  conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), proto.clarifai.api.TaskConcept.toObject, includeInstance),
39019
38847
  deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
39020
- metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f)
38848
+ metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f),
38849
+ priority: jspb.Message.getFieldWithDefault(msg, 23, 0)
39021
38850
  };
39022
38851
  if (includeInstance) {
39023
38852
  obj.$jspbMessageInstance = msg;
@@ -39148,6 +38977,10 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function (msg, reader) {
39148
38977
  reader.readMessage(value, proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader);
39149
38978
  msg.setMetrics(value);
39150
38979
  break;
38980
+ case 23:
38981
+ var value = /** @type {!proto.clarifai.api.Task.TaskPriority} */ (reader.readEnum());
38982
+ msg.setPriority(value);
38983
+ break;
39151
38984
  default:
39152
38985
  reader.skipField();
39153
38986
  break;
@@ -39261,6 +39094,10 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
39261
39094
  if (f != null) {
39262
39095
  writer.writeMessage(21, f, proto.clarifai.api.TaskMetrics.serializeBinaryToWriter);
39263
39096
  }
39097
+ f = message.getPriority();
39098
+ if (f !== 0.0) {
39099
+ writer.writeEnum(23, f);
39100
+ }
39264
39101
  };
39265
39102
  /**
39266
39103
  * @enum {number}
@@ -39279,6 +39116,15 @@ proto.clarifai.api.Task.TaskType = {
39279
39116
  BOUNDING_BOX_DETECTION: 2,
39280
39117
  POLYGON_DETECTION: 3
39281
39118
  };
39119
+ /**
39120
+ * @enum {number}
39121
+ */
39122
+ proto.clarifai.api.Task.TaskPriority = {
39123
+ TASK_PRIORITY_NOT_SET: 0,
39124
+ LOW: 1,
39125
+ MEDIUM: 2,
39126
+ HIGH: 3
39127
+ };
39282
39128
  /**
39283
39129
  * optional string id = 1;
39284
39130
  * @return {string}
@@ -39757,6 +39603,20 @@ proto.clarifai.api.Task.prototype.clearMetrics = function () {
39757
39603
  proto.clarifai.api.Task.prototype.hasMetrics = function () {
39758
39604
  return jspb.Message.getField(this, 21) != null;
39759
39605
  };
39606
+ /**
39607
+ * optional TaskPriority priority = 23;
39608
+ * @return {!proto.clarifai.api.Task.TaskPriority}
39609
+ */
39610
+ proto.clarifai.api.Task.prototype.getPriority = function () {
39611
+ return /** @type {!proto.clarifai.api.Task.TaskPriority} */ (jspb.Message.getFieldWithDefault(this, 23, 0));
39612
+ };
39613
+ /**
39614
+ * @param {!proto.clarifai.api.Task.TaskPriority} value
39615
+ * @return {!proto.clarifai.api.Task} returns this
39616
+ */
39617
+ proto.clarifai.api.Task.prototype.setPriority = function (value) {
39618
+ return jspb.Message.setProto3EnumField(this, 23, value);
39619
+ };
39760
39620
  /**
39761
39621
  * List of repeated fields within this message type.
39762
39622
  * @private {!Array<number>}
@@ -50738,173 +50598,6 @@ proto.clarifai.api.UploadContentPart.prototype.getData_asU8 = function () {
50738
50598
  proto.clarifai.api.UploadContentPart.prototype.setData = function (value) {
50739
50599
  return jspb.Message.setProto3BytesField(this, 3, value);
50740
50600
  };
50741
- /**
50742
- * List of repeated fields within this message type.
50743
- * @private {!Array<number>}
50744
- * @const
50745
- */
50746
- proto.clarifai.api.CustomCodeOperatorRequest.repeatedFields_ = [1];
50747
- if (jspb.Message.GENERATE_TO_OBJECT) {
50748
- /**
50749
- * Creates an object representation of this proto.
50750
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
50751
- * Optional fields that are not set will be set to undefined.
50752
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50753
- * For the list of reserved names please see:
50754
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50755
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50756
- * JSPB instance for transitional soy proto support:
50757
- * http://goto/soy-param-migration
50758
- * @return {!Object}
50759
- */
50760
- proto.clarifai.api.CustomCodeOperatorRequest.prototype.toObject = function (opt_includeInstance) {
50761
- return proto.clarifai.api.CustomCodeOperatorRequest.toObject(opt_includeInstance, this);
50762
- };
50763
- /**
50764
- * Static version of the {@see toObject} method.
50765
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50766
- * the JSPB instance for transitional soy proto support:
50767
- * http://goto/soy-param-migration
50768
- * @param {!proto.clarifai.api.CustomCodeOperatorRequest} msg The msg instance to transform.
50769
- * @return {!Object}
50770
- * @suppress {unusedLocalVariables} f is only used for nested messages
50771
- */
50772
- proto.clarifai.api.CustomCodeOperatorRequest.toObject = function (includeInstance, msg) {
50773
- var f, obj = {
50774
- inputsList: jspb.Message.toObjectList(msg.getInputsList(), proto.clarifai.api.Input.toObject, includeInstance),
50775
- metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
50776
- };
50777
- if (includeInstance) {
50778
- obj.$jspbMessageInstance = msg;
50779
- }
50780
- return obj;
50781
- };
50782
- }
50783
- /**
50784
- * Deserializes binary data (in protobuf wire format).
50785
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
50786
- * @return {!proto.clarifai.api.CustomCodeOperatorRequest}
50787
- */
50788
- proto.clarifai.api.CustomCodeOperatorRequest.deserializeBinary = function (bytes) {
50789
- var reader = new jspb.BinaryReader(bytes);
50790
- var msg = new proto.clarifai.api.CustomCodeOperatorRequest;
50791
- return proto.clarifai.api.CustomCodeOperatorRequest.deserializeBinaryFromReader(msg, reader);
50792
- };
50793
- /**
50794
- * Deserializes binary data (in protobuf wire format) from the
50795
- * given reader into the given message object.
50796
- * @param {!proto.clarifai.api.CustomCodeOperatorRequest} msg The message object to deserialize into.
50797
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50798
- * @return {!proto.clarifai.api.CustomCodeOperatorRequest}
50799
- */
50800
- proto.clarifai.api.CustomCodeOperatorRequest.deserializeBinaryFromReader = function (msg, reader) {
50801
- while (reader.nextField()) {
50802
- if (reader.isEndGroup()) {
50803
- break;
50804
- }
50805
- var field = reader.getFieldNumber();
50806
- switch (field) {
50807
- case 1:
50808
- var value = new proto.clarifai.api.Input;
50809
- reader.readMessage(value, proto.clarifai.api.Input.deserializeBinaryFromReader);
50810
- msg.addInputs(value);
50811
- break;
50812
- case 1002:
50813
- var value = new google_protobuf_struct_pb.Struct;
50814
- reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
50815
- msg.setMetadata(value);
50816
- break;
50817
- default:
50818
- reader.skipField();
50819
- break;
50820
- }
50821
- }
50822
- return msg;
50823
- };
50824
- /**
50825
- * Serializes the message to binary data (in protobuf wire format).
50826
- * @return {!Uint8Array}
50827
- */
50828
- proto.clarifai.api.CustomCodeOperatorRequest.prototype.serializeBinary = function () {
50829
- var writer = new jspb.BinaryWriter();
50830
- proto.clarifai.api.CustomCodeOperatorRequest.serializeBinaryToWriter(this, writer);
50831
- return writer.getResultBuffer();
50832
- };
50833
- /**
50834
- * Serializes the given message to binary data (in protobuf wire
50835
- * format), writing to the given BinaryWriter.
50836
- * @param {!proto.clarifai.api.CustomCodeOperatorRequest} message
50837
- * @param {!jspb.BinaryWriter} writer
50838
- * @suppress {unusedLocalVariables} f is only used for nested messages
50839
- */
50840
- proto.clarifai.api.CustomCodeOperatorRequest.serializeBinaryToWriter = function (message, writer) {
50841
- var f = undefined;
50842
- f = message.getInputsList();
50843
- if (f.length > 0) {
50844
- writer.writeRepeatedMessage(1, f, proto.clarifai.api.Input.serializeBinaryToWriter);
50845
- }
50846
- f = message.getMetadata();
50847
- if (f != null) {
50848
- writer.writeMessage(1002, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
50849
- }
50850
- };
50851
- /**
50852
- * repeated Input inputs = 1;
50853
- * @return {!Array<!proto.clarifai.api.Input>}
50854
- */
50855
- proto.clarifai.api.CustomCodeOperatorRequest.prototype.getInputsList = function () {
50856
- return /** @type{!Array<!proto.clarifai.api.Input>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Input, 1));
50857
- };
50858
- /**
50859
- * @param {!Array<!proto.clarifai.api.Input>} value
50860
- * @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this
50861
- */
50862
- proto.clarifai.api.CustomCodeOperatorRequest.prototype.setInputsList = function (value) {
50863
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
50864
- };
50865
- /**
50866
- * @param {!proto.clarifai.api.Input=} opt_value
50867
- * @param {number=} opt_index
50868
- * @return {!proto.clarifai.api.Input}
50869
- */
50870
- proto.clarifai.api.CustomCodeOperatorRequest.prototype.addInputs = function (opt_value, opt_index) {
50871
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.Input, opt_index);
50872
- };
50873
- /**
50874
- * Clears the list making it empty but non-null.
50875
- * @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this
50876
- */
50877
- proto.clarifai.api.CustomCodeOperatorRequest.prototype.clearInputsList = function () {
50878
- return this.setInputsList([]);
50879
- };
50880
- /**
50881
- * optional google.protobuf.Struct metadata = 1002;
50882
- * @return {?proto.google.protobuf.Struct}
50883
- */
50884
- proto.clarifai.api.CustomCodeOperatorRequest.prototype.getMetadata = function () {
50885
- return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1002));
50886
- };
50887
- /**
50888
- * @param {?proto.google.protobuf.Struct|undefined} value
50889
- * @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this
50890
- */
50891
- proto.clarifai.api.CustomCodeOperatorRequest.prototype.setMetadata = function (value) {
50892
- return jspb.Message.setWrapperField(this, 1002, value);
50893
- };
50894
- /**
50895
- * Clears the message field making it undefined.
50896
- * @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this
50897
- */
50898
- proto.clarifai.api.CustomCodeOperatorRequest.prototype.clearMetadata = function () {
50899
- return this.setMetadata(undefined);
50900
- };
50901
- /**
50902
- * Returns whether this field is set.
50903
- * @return {boolean}
50904
- */
50905
- proto.clarifai.api.CustomCodeOperatorRequest.prototype.hasMetadata = function () {
50906
- return jspb.Message.getField(this, 1002) != null;
50907
- };
50908
50601
  if (jspb.Message.GENERATE_TO_OBJECT) {
50909
50602
  /**
50910
50603
  * Creates an object representation of this proto.