clarifai-web-grpc 10.11.1 → 11.0.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.
@@ -56,6 +56,8 @@ goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
56
56
  goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
57
57
  goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
58
58
  goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
59
+ goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationSpec', null, global);
60
+ goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationStatus', null, global);
59
61
  goog.exportSymbol('proto.clarifai.api.Audio', null, global);
60
62
  goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
61
63
  goog.exportSymbol('proto.clarifai.api.AuditLogEntry', null, global);
@@ -70,6 +72,7 @@ goog.exportSymbol('proto.clarifai.api.BookmarkOrigin.BookmarkType', null, global
70
72
  goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global);
71
73
  goog.exportSymbol('proto.clarifai.api.BuildInfo', null, global);
72
74
  goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global);
75
+ goog.exportSymbol('proto.clarifai.api.BulkOperation.AnnotationSourceCase', null, global);
73
76
  goog.exportSymbol('proto.clarifai.api.BulkOperation.InputSourceCase', null, global);
74
77
  goog.exportSymbol('proto.clarifai.api.CloudProvider', null, global);
75
78
  goog.exportSymbol('proto.clarifai.api.Cluster', null, global);
@@ -115,6 +118,7 @@ goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroup', null, global)
115
118
  goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroupType', null, global);
116
119
  goog.exportSymbol('proto.clarifai.api.DatasetVersionProcessingInfo', null, global);
117
120
  goog.exportSymbol('proto.clarifai.api.DatasetVersionRequestOrigin', null, global);
121
+ goog.exportSymbol('proto.clarifai.api.DeleteAnnotations', null, global);
118
122
  goog.exportSymbol('proto.clarifai.api.DeleteConcepts', null, global);
119
123
  goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global);
120
124
  goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global);
@@ -204,7 +208,12 @@ goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, glob
204
208
  goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
205
209
  goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
206
210
  goog.exportSymbol('proto.clarifai.api.Operation', null, global);
211
+ goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
207
212
  goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
213
+ goog.exportSymbol('proto.clarifai.api.OrchestrationSpec', null, global);
214
+ goog.exportSymbol('proto.clarifai.api.OrchestrationSpec.OrchestrationCase', null, global);
215
+ goog.exportSymbol('proto.clarifai.api.OrchestrationStatus', null, global);
216
+ goog.exportSymbol('proto.clarifai.api.OrchestrationStatus.StatusDetailsCase', null, global);
208
217
  goog.exportSymbol('proto.clarifai.api.Output', null, global);
209
218
  goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
210
219
  goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global);
@@ -214,6 +223,9 @@ goog.exportSymbol('proto.clarifai.api.Part', null, global);
214
223
  goog.exportSymbol('proto.clarifai.api.Password', null, global);
215
224
  goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global);
216
225
  goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
226
+ goog.exportSymbol('proto.clarifai.api.Pipeline', null, global);
227
+ goog.exportSymbol('proto.clarifai.api.PipelineRun', null, global);
228
+ goog.exportSymbol('proto.clarifai.api.PipelineVersion', null, global);
217
229
  goog.exportSymbol('proto.clarifai.api.Point', null, global);
218
230
  goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
219
231
  goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
@@ -3510,7 +3522,7 @@ if (goog.DEBUG && !COMPILED) {
3510
3522
  * @constructor
3511
3523
  */
3512
3524
  proto.clarifai.api.TaskReviewMetrics = function (opt_data) {
3513
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3525
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.TaskReviewMetrics.repeatedFields_, null);
3514
3526
  };
3515
3527
  goog.inherits(proto.clarifai.api.TaskReviewMetrics, jspb.Message);
3516
3528
  if (goog.DEBUG && !COMPILED) {
@@ -4297,6 +4309,27 @@ if (goog.DEBUG && !COMPILED) {
4297
4309
  */
4298
4310
  proto.clarifai.api.DatasetSplit.displayName = 'proto.clarifai.api.DatasetSplit';
4299
4311
  }
4312
+ /**
4313
+ * Generated by JsPbCodeGenerator.
4314
+ * @param {Array=} opt_data Optional initial data array, typically from a
4315
+ * server response, or constructed directly in Javascript. The array is used
4316
+ * in place and becomes part of the constructed object. It is not cloned.
4317
+ * If no data is provided, the constructed object will be empty, but still
4318
+ * valid.
4319
+ * @extends {jspb.Message}
4320
+ * @constructor
4321
+ */
4322
+ proto.clarifai.api.DeleteAnnotations = function (opt_data) {
4323
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4324
+ };
4325
+ goog.inherits(proto.clarifai.api.DeleteAnnotations, jspb.Message);
4326
+ if (goog.DEBUG && !COMPILED) {
4327
+ /**
4328
+ * @public
4329
+ * @override
4330
+ */
4331
+ proto.clarifai.api.DeleteAnnotations.displayName = 'proto.clarifai.api.DeleteAnnotations';
4332
+ }
4300
4333
  /**
4301
4334
  * Generated by JsPbCodeGenerator.
4302
4335
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4948,6 +4981,153 @@ if (goog.DEBUG && !COMPILED) {
4948
4981
  */
4949
4982
  proto.clarifai.api.ComputeSourceMetadata.displayName = 'proto.clarifai.api.ComputeSourceMetadata';
4950
4983
  }
4984
+ /**
4985
+ * Generated by JsPbCodeGenerator.
4986
+ * @param {Array=} opt_data Optional initial data array, typically from a
4987
+ * server response, or constructed directly in Javascript. The array is used
4988
+ * in place and becomes part of the constructed object. It is not cloned.
4989
+ * If no data is provided, the constructed object will be empty, but still
4990
+ * valid.
4991
+ * @extends {jspb.Message}
4992
+ * @constructor
4993
+ */
4994
+ proto.clarifai.api.ArgoOrchestrationSpec = function (opt_data) {
4995
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4996
+ };
4997
+ goog.inherits(proto.clarifai.api.ArgoOrchestrationSpec, jspb.Message);
4998
+ if (goog.DEBUG && !COMPILED) {
4999
+ /**
5000
+ * @public
5001
+ * @override
5002
+ */
5003
+ proto.clarifai.api.ArgoOrchestrationSpec.displayName = 'proto.clarifai.api.ArgoOrchestrationSpec';
5004
+ }
5005
+ /**
5006
+ * Generated by JsPbCodeGenerator.
5007
+ * @param {Array=} opt_data Optional initial data array, typically from a
5008
+ * server response, or constructed directly in Javascript. The array is used
5009
+ * in place and becomes part of the constructed object. It is not cloned.
5010
+ * If no data is provided, the constructed object will be empty, but still
5011
+ * valid.
5012
+ * @extends {jspb.Message}
5013
+ * @constructor
5014
+ */
5015
+ proto.clarifai.api.OrchestrationSpec = function (opt_data) {
5016
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationSpec.oneofGroups_);
5017
+ };
5018
+ goog.inherits(proto.clarifai.api.OrchestrationSpec, jspb.Message);
5019
+ if (goog.DEBUG && !COMPILED) {
5020
+ /**
5021
+ * @public
5022
+ * @override
5023
+ */
5024
+ proto.clarifai.api.OrchestrationSpec.displayName = 'proto.clarifai.api.OrchestrationSpec';
5025
+ }
5026
+ /**
5027
+ * Generated by JsPbCodeGenerator.
5028
+ * @param {Array=} opt_data Optional initial data array, typically from a
5029
+ * server response, or constructed directly in Javascript. The array is used
5030
+ * in place and becomes part of the constructed object. It is not cloned.
5031
+ * If no data is provided, the constructed object will be empty, but still
5032
+ * valid.
5033
+ * @extends {jspb.Message}
5034
+ * @constructor
5035
+ */
5036
+ proto.clarifai.api.Pipeline = function (opt_data) {
5037
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5038
+ };
5039
+ goog.inherits(proto.clarifai.api.Pipeline, jspb.Message);
5040
+ if (goog.DEBUG && !COMPILED) {
5041
+ /**
5042
+ * @public
5043
+ * @override
5044
+ */
5045
+ proto.clarifai.api.Pipeline.displayName = 'proto.clarifai.api.Pipeline';
5046
+ }
5047
+ /**
5048
+ * Generated by JsPbCodeGenerator.
5049
+ * @param {Array=} opt_data Optional initial data array, typically from a
5050
+ * server response, or constructed directly in Javascript. The array is used
5051
+ * in place and becomes part of the constructed object. It is not cloned.
5052
+ * If no data is provided, the constructed object will be empty, but still
5053
+ * valid.
5054
+ * @extends {jspb.Message}
5055
+ * @constructor
5056
+ */
5057
+ proto.clarifai.api.PipelineVersion = function (opt_data) {
5058
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5059
+ };
5060
+ goog.inherits(proto.clarifai.api.PipelineVersion, jspb.Message);
5061
+ if (goog.DEBUG && !COMPILED) {
5062
+ /**
5063
+ * @public
5064
+ * @override
5065
+ */
5066
+ proto.clarifai.api.PipelineVersion.displayName = 'proto.clarifai.api.PipelineVersion';
5067
+ }
5068
+ /**
5069
+ * Generated by JsPbCodeGenerator.
5070
+ * @param {Array=} opt_data Optional initial data array, typically from a
5071
+ * server response, or constructed directly in Javascript. The array is used
5072
+ * in place and becomes part of the constructed object. It is not cloned.
5073
+ * If no data is provided, the constructed object will be empty, but still
5074
+ * valid.
5075
+ * @extends {jspb.Message}
5076
+ * @constructor
5077
+ */
5078
+ proto.clarifai.api.OrchestrationStatus = function (opt_data) {
5079
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationStatus.oneofGroups_);
5080
+ };
5081
+ goog.inherits(proto.clarifai.api.OrchestrationStatus, jspb.Message);
5082
+ if (goog.DEBUG && !COMPILED) {
5083
+ /**
5084
+ * @public
5085
+ * @override
5086
+ */
5087
+ proto.clarifai.api.OrchestrationStatus.displayName = 'proto.clarifai.api.OrchestrationStatus';
5088
+ }
5089
+ /**
5090
+ * Generated by JsPbCodeGenerator.
5091
+ * @param {Array=} opt_data Optional initial data array, typically from a
5092
+ * server response, or constructed directly in Javascript. The array is used
5093
+ * in place and becomes part of the constructed object. It is not cloned.
5094
+ * If no data is provided, the constructed object will be empty, but still
5095
+ * valid.
5096
+ * @extends {jspb.Message}
5097
+ * @constructor
5098
+ */
5099
+ proto.clarifai.api.ArgoOrchestrationStatus = function (opt_data) {
5100
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5101
+ };
5102
+ goog.inherits(proto.clarifai.api.ArgoOrchestrationStatus, jspb.Message);
5103
+ if (goog.DEBUG && !COMPILED) {
5104
+ /**
5105
+ * @public
5106
+ * @override
5107
+ */
5108
+ proto.clarifai.api.ArgoOrchestrationStatus.displayName = 'proto.clarifai.api.ArgoOrchestrationStatus';
5109
+ }
5110
+ /**
5111
+ * Generated by JsPbCodeGenerator.
5112
+ * @param {Array=} opt_data Optional initial data array, typically from a
5113
+ * server response, or constructed directly in Javascript. The array is used
5114
+ * in place and becomes part of the constructed object. It is not cloned.
5115
+ * If no data is provided, the constructed object will be empty, but still
5116
+ * valid.
5117
+ * @extends {jspb.Message}
5118
+ * @constructor
5119
+ */
5120
+ proto.clarifai.api.PipelineRun = function (opt_data) {
5121
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PipelineRun.repeatedFields_, null);
5122
+ };
5123
+ goog.inherits(proto.clarifai.api.PipelineRun, jspb.Message);
5124
+ if (goog.DEBUG && !COMPILED) {
5125
+ /**
5126
+ * @public
5127
+ * @override
5128
+ */
5129
+ proto.clarifai.api.PipelineRun.displayName = 'proto.clarifai.api.PipelineRun';
5130
+ }
4951
5131
  if (jspb.Message.GENERATE_TO_OBJECT) {
4952
5132
  /**
4953
5133
  * Creates an object representation of this proto.
@@ -15059,7 +15239,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
15059
15239
  allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
15060
15240
  hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f),
15061
15241
  imageInfo: (f = msg.getImageInfo()) && proto.clarifai.api.ImageInfo.toObject(includeInstance, f),
15062
- hostedImageInfoMap: (f = msg.getHostedImageInfoMap()) ? f.toObject(includeInstance, proto.clarifai.api.ImageInfo.toObject) : []
15242
+ hostedImageInfoMap: (f = msg.getHostedImageInfoMap()) ? f.toObject(includeInstance, proto.clarifai.api.ImageInfo.toObject) : [],
15243
+ decodedBytes: msg.getDecodedBytes_asB64()
15063
15244
  };
15064
15245
  if (includeInstance) {
15065
15246
  obj.$jspbMessageInstance = msg;
@@ -15119,6 +15300,10 @@ proto.clarifai.api.Image.deserializeBinaryFromReader = function (msg, reader) {
15119
15300
  jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.ImageInfo.deserializeBinaryFromReader, "", new proto.clarifai.api.ImageInfo());
15120
15301
  });
15121
15302
  break;
15303
+ case 8:
15304
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
15305
+ msg.setDecodedBytes(value);
15306
+ break;
15122
15307
  default:
15123
15308
  reader.skipField();
15124
15309
  break;
@@ -15168,6 +15353,10 @@ proto.clarifai.api.Image.serializeBinaryToWriter = function (message, writer) {
15168
15353
  if (f && f.getLength() > 0) {
15169
15354
  f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.ImageInfo.serializeBinaryToWriter);
15170
15355
  }
15356
+ f = message.getDecodedBytes_asU8();
15357
+ if (f.length > 0) {
15358
+ writer.writeBytes(8, f);
15359
+ }
15171
15360
  };
15172
15361
  /**
15173
15362
  * optional string url = 1;
@@ -15302,6 +15491,38 @@ proto.clarifai.api.Image.prototype.clearHostedImageInfoMap = function () {
15302
15491
  this.getHostedImageInfoMap().clear();
15303
15492
  return this;
15304
15493
  };
15494
+ /**
15495
+ * optional bytes decoded_bytes = 8;
15496
+ * @return {string}
15497
+ */
15498
+ proto.clarifai.api.Image.prototype.getDecodedBytes = function () {
15499
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
15500
+ };
15501
+ /**
15502
+ * optional bytes decoded_bytes = 8;
15503
+ * This is a type-conversion wrapper around `getDecodedBytes()`
15504
+ * @return {string}
15505
+ */
15506
+ proto.clarifai.api.Image.prototype.getDecodedBytes_asB64 = function () {
15507
+ return /** @type {string} */ (jspb.Message.bytesAsB64(this.getDecodedBytes()));
15508
+ };
15509
+ /**
15510
+ * optional bytes decoded_bytes = 8;
15511
+ * Note that Uint8Array is not supported on all browsers.
15512
+ * @see http://caniuse.com/Uint8Array
15513
+ * This is a type-conversion wrapper around `getDecodedBytes()`
15514
+ * @return {!Uint8Array}
15515
+ */
15516
+ proto.clarifai.api.Image.prototype.getDecodedBytes_asU8 = function () {
15517
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getDecodedBytes()));
15518
+ };
15519
+ /**
15520
+ * @param {!(string|Uint8Array)} value
15521
+ * @return {!proto.clarifai.api.Image} returns this
15522
+ */
15523
+ proto.clarifai.api.Image.prototype.setDecodedBytes = function (value) {
15524
+ return jspb.Message.setProto3BytesField(this, 8, value);
15525
+ };
15305
15526
  if (jspb.Message.GENERATE_TO_OBJECT) {
15306
15527
  /**
15307
15528
  * Creates an object representation of this proto.
@@ -15332,7 +15553,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
15332
15553
  width: jspb.Message.getFieldWithDefault(msg, 1, 0),
15333
15554
  height: jspb.Message.getFieldWithDefault(msg, 2, 0),
15334
15555
  format: jspb.Message.getFieldWithDefault(msg, 3, ""),
15335
- colorMode: jspb.Message.getFieldWithDefault(msg, 4, "")
15556
+ colorMode: jspb.Message.getFieldWithDefault(msg, 4, ""),
15557
+ mode: jspb.Message.getFieldWithDefault(msg, 5, "")
15336
15558
  };
15337
15559
  if (includeInstance) {
15338
15560
  obj.$jspbMessageInstance = msg;
@@ -15380,6 +15602,10 @@ proto.clarifai.api.ImageInfo.deserializeBinaryFromReader = function (msg, reader
15380
15602
  var value = /** @type {string} */ (reader.readString());
15381
15603
  msg.setColorMode(value);
15382
15604
  break;
15605
+ case 5:
15606
+ var value = /** @type {string} */ (reader.readString());
15607
+ msg.setMode(value);
15608
+ break;
15383
15609
  default:
15384
15610
  reader.skipField();
15385
15611
  break;
@@ -15421,6 +15647,10 @@ proto.clarifai.api.ImageInfo.serializeBinaryToWriter = function (message, writer
15421
15647
  if (f.length > 0) {
15422
15648
  writer.writeString(4, f);
15423
15649
  }
15650
+ f = message.getMode();
15651
+ if (f.length > 0) {
15652
+ writer.writeString(5, f);
15653
+ }
15424
15654
  };
15425
15655
  /**
15426
15656
  * optional int32 width = 1;
@@ -15478,6 +15708,20 @@ proto.clarifai.api.ImageInfo.prototype.getColorMode = function () {
15478
15708
  proto.clarifai.api.ImageInfo.prototype.setColorMode = function (value) {
15479
15709
  return jspb.Message.setProto3StringField(this, 4, value);
15480
15710
  };
15711
+ /**
15712
+ * optional string mode = 5;
15713
+ * @return {string}
15714
+ */
15715
+ proto.clarifai.api.ImageInfo.prototype.getMode = function () {
15716
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
15717
+ };
15718
+ /**
15719
+ * @param {string} value
15720
+ * @return {!proto.clarifai.api.ImageInfo} returns this
15721
+ */
15722
+ proto.clarifai.api.ImageInfo.prototype.setMode = function (value) {
15723
+ return jspb.Message.setProto3StringField(this, 5, value);
15724
+ };
15481
15725
  /**
15482
15726
  * List of repeated fields within this message type.
15483
15727
  * @private {!Array<number>}
@@ -43407,6 +43651,12 @@ proto.clarifai.api.TaskWorkMetrics.prototype.getInputsPercentEstimated = functio
43407
43651
  proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = function (value) {
43408
43652
  return jspb.Message.setProto3IntField(this, 2, value);
43409
43653
  };
43654
+ /**
43655
+ * List of repeated fields within this message type.
43656
+ * @private {!Array<number>}
43657
+ * @const
43658
+ */
43659
+ proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3];
43410
43660
  if (jspb.Message.GENERATE_TO_OBJECT) {
43411
43661
  /**
43412
43662
  * Creates an object representation of this proto.
@@ -43435,6 +43685,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
43435
43685
  proto.clarifai.api.TaskReviewMetrics.toObject = function (includeInstance, msg) {
43436
43686
  var f, obj = {
43437
43687
  inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
43688
+ inputsCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
43438
43689
  inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
43439
43690
  };
43440
43691
  if (includeInstance) {
@@ -43471,6 +43722,12 @@ proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function (msg
43471
43722
  var value = /** @type {number} */ (reader.readUint64());
43472
43723
  msg.setInputsCountEstimated(value);
43473
43724
  break;
43725
+ case 3:
43726
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
43727
+ for (var i = 0; i < values.length; i++) {
43728
+ msg.addInputsCountEstimatedPerReviewer(values[i]);
43729
+ }
43730
+ break;
43474
43731
  case 2:
43475
43732
  var value = /** @type {number} */ (reader.readUint32());
43476
43733
  msg.setInputsPercentEstimated(value);
@@ -43504,6 +43761,10 @@ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function (message
43504
43761
  if (f !== 0) {
43505
43762
  writer.writeUint64(1, f);
43506
43763
  }
43764
+ f = message.getInputsCountEstimatedPerReviewerList();
43765
+ if (f.length > 0) {
43766
+ writer.writePackedUint64(3, f);
43767
+ }
43507
43768
  f = message.getInputsPercentEstimated();
43508
43769
  if (f !== 0) {
43509
43770
  writer.writeUint32(2, f);
@@ -43523,6 +43784,35 @@ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimated = functio
43523
43784
  proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = function (value) {
43524
43785
  return jspb.Message.setProto3IntField(this, 1, value);
43525
43786
  };
43787
+ /**
43788
+ * repeated uint64 inputs_count_estimated_per_reviewer = 3;
43789
+ * @return {!Array<number>}
43790
+ */
43791
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimatedPerReviewerList = function () {
43792
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
43793
+ };
43794
+ /**
43795
+ * @param {!Array<number>} value
43796
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
43797
+ */
43798
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimatedPerReviewerList = function (value) {
43799
+ return jspb.Message.setField(this, 3, value || []);
43800
+ };
43801
+ /**
43802
+ * @param {number} value
43803
+ * @param {number=} opt_index
43804
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
43805
+ */
43806
+ proto.clarifai.api.TaskReviewMetrics.prototype.addInputsCountEstimatedPerReviewer = function (value, opt_index) {
43807
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
43808
+ };
43809
+ /**
43810
+ * Clears the list making it empty but non-null.
43811
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
43812
+ */
43813
+ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsCountEstimatedPerReviewerList = function () {
43814
+ return this.setInputsCountEstimatedPerReviewerList([]);
43815
+ };
43526
43816
  /**
43527
43817
  * optional uint32 inputs_percent_estimated = 2;
43528
43818
  * @return {number}
@@ -48430,7 +48720,7 @@ proto.clarifai.api.InstalledModuleVersion.prototype.setKeyId = function (value)
48430
48720
  * @private {!Array<!Array<number>>}
48431
48721
  * @const
48432
48722
  */
48433
- proto.clarifai.api.BulkOperation.oneofGroups_ = [[2, 10, 11]];
48723
+ proto.clarifai.api.BulkOperation.oneofGroups_ = [[2, 10, 11], [12]];
48434
48724
  /**
48435
48725
  * @enum {number}
48436
48726
  */
@@ -48446,6 +48736,19 @@ proto.clarifai.api.BulkOperation.InputSourceCase = {
48446
48736
  proto.clarifai.api.BulkOperation.prototype.getInputSourceCase = function () {
48447
48737
  return /** @type {proto.clarifai.api.BulkOperation.InputSourceCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.BulkOperation.oneofGroups_[0]));
48448
48738
  };
48739
+ /**
48740
+ * @enum {number}
48741
+ */
48742
+ proto.clarifai.api.BulkOperation.AnnotationSourceCase = {
48743
+ ANNOTATION_SOURCE_NOT_SET: 0,
48744
+ ANNOTATION_SEARCH: 12
48745
+ };
48746
+ /**
48747
+ * @return {proto.clarifai.api.BulkOperation.AnnotationSourceCase}
48748
+ */
48749
+ proto.clarifai.api.BulkOperation.prototype.getAnnotationSourceCase = function () {
48750
+ return /** @type {proto.clarifai.api.BulkOperation.AnnotationSourceCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.BulkOperation.oneofGroups_[1]));
48751
+ };
48449
48752
  if (jspb.Message.GENERATE_TO_OBJECT) {
48450
48753
  /**
48451
48754
  * Creates an object representation of this proto.
@@ -48477,6 +48780,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
48477
48780
  inputIds: (f = msg.getInputIds()) && proto.clarifai.api.InputIDs.toObject(includeInstance, f),
48478
48781
  search: (f = msg.getSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f),
48479
48782
  dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f),
48783
+ annotationSearch: (f = msg.getAnnotationSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f),
48480
48784
  operation: (f = msg.getOperation()) && proto.clarifai.api.Operation.toObject(includeInstance, f),
48481
48785
  appId: jspb.Message.getFieldWithDefault(msg, 4, ""),
48482
48786
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
@@ -48534,6 +48838,11 @@ proto.clarifai.api.BulkOperation.deserializeBinaryFromReader = function (msg, re
48534
48838
  reader.readMessage(value, proto.clarifai.api.Dataset.deserializeBinaryFromReader);
48535
48839
  msg.setDataset(value);
48536
48840
  break;
48841
+ case 12:
48842
+ var value = new proto.clarifai.api.Search;
48843
+ reader.readMessage(value, proto.clarifai.api.Search.deserializeBinaryFromReader);
48844
+ msg.setAnnotationSearch(value);
48845
+ break;
48537
48846
  case 3:
48538
48847
  var value = new proto.clarifai.api.Operation;
48539
48848
  reader.readMessage(value, proto.clarifai.api.Operation.deserializeBinaryFromReader);
@@ -48608,6 +48917,10 @@ proto.clarifai.api.BulkOperation.serializeBinaryToWriter = function (message, wr
48608
48917
  if (f != null) {
48609
48918
  writer.writeMessage(11, f, proto.clarifai.api.Dataset.serializeBinaryToWriter);
48610
48919
  }
48920
+ f = message.getAnnotationSearch();
48921
+ if (f != null) {
48922
+ writer.writeMessage(12, f, proto.clarifai.api.Search.serializeBinaryToWriter);
48923
+ }
48611
48924
  f = message.getOperation();
48612
48925
  if (f != null) {
48613
48926
  writer.writeMessage(3, f, proto.clarifai.api.Operation.serializeBinaryToWriter);
@@ -48735,6 +49048,34 @@ proto.clarifai.api.BulkOperation.prototype.clearDataset = function () {
48735
49048
  proto.clarifai.api.BulkOperation.prototype.hasDataset = function () {
48736
49049
  return jspb.Message.getField(this, 11) != null;
48737
49050
  };
49051
+ /**
49052
+ * optional Search annotation_search = 12;
49053
+ * @return {?proto.clarifai.api.Search}
49054
+ */
49055
+ proto.clarifai.api.BulkOperation.prototype.getAnnotationSearch = function () {
49056
+ return /** @type{?proto.clarifai.api.Search} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 12));
49057
+ };
49058
+ /**
49059
+ * @param {?proto.clarifai.api.Search|undefined} value
49060
+ * @return {!proto.clarifai.api.BulkOperation} returns this
49061
+ */
49062
+ proto.clarifai.api.BulkOperation.prototype.setAnnotationSearch = function (value) {
49063
+ return jspb.Message.setOneofWrapperField(this, 12, proto.clarifai.api.BulkOperation.oneofGroups_[1], value);
49064
+ };
49065
+ /**
49066
+ * Clears the message field making it undefined.
49067
+ * @return {!proto.clarifai.api.BulkOperation} returns this
49068
+ */
49069
+ proto.clarifai.api.BulkOperation.prototype.clearAnnotationSearch = function () {
49070
+ return this.setAnnotationSearch(undefined);
49071
+ };
49072
+ /**
49073
+ * Returns whether this field is set.
49074
+ * @return {boolean}
49075
+ */
49076
+ proto.clarifai.api.BulkOperation.prototype.hasAnnotationSearch = function () {
49077
+ return jspb.Message.getField(this, 12) != null;
49078
+ };
48738
49079
  /**
48739
49080
  * optional Operation operation = 3;
48740
49081
  * @return {?proto.clarifai.api.Operation}
@@ -49169,7 +49510,7 @@ proto.clarifai.api.Progress.prototype.setLastProcessedId = function (value) {
49169
49510
  * @private {!Array<!Array<number>>}
49170
49511
  * @const
49171
49512
  */
49172
- proto.clarifai.api.Operation.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8, 9]];
49513
+ proto.clarifai.api.Operation.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8, 9], [10]];
49173
49514
  /**
49174
49515
  * @enum {number}
49175
49516
  */
@@ -49191,6 +49532,19 @@ proto.clarifai.api.Operation.OperationCase = {
49191
49532
  proto.clarifai.api.Operation.prototype.getOperationCase = function () {
49192
49533
  return /** @type {proto.clarifai.api.Operation.OperationCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.Operation.oneofGroups_[0]));
49193
49534
  };
49535
+ /**
49536
+ * @enum {number}
49537
+ */
49538
+ proto.clarifai.api.Operation.AnnotationOperationCase = {
49539
+ ANNOTATION_OPERATION_NOT_SET: 0,
49540
+ DELETE_ANNOTATIONS: 10
49541
+ };
49542
+ /**
49543
+ * @return {proto.clarifai.api.Operation.AnnotationOperationCase}
49544
+ */
49545
+ proto.clarifai.api.Operation.prototype.getAnnotationOperationCase = function () {
49546
+ return /** @type {proto.clarifai.api.Operation.AnnotationOperationCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.Operation.oneofGroups_[1]));
49547
+ };
49194
49548
  if (jspb.Message.GENERATE_TO_OBJECT) {
49195
49549
  /**
49196
49550
  * Creates an object representation of this proto.
@@ -49226,7 +49580,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
49226
49580
  deleteGeo: (f = msg.getDeleteGeo()) && proto.clarifai.api.DeleteGeo.toObject(includeInstance, f),
49227
49581
  deleteFromDataset: (f = msg.getDeleteFromDataset()) && proto.clarifai.api.DeleteFromDataset.toObject(includeInstance, f),
49228
49582
  addToDataset: (f = msg.getAddToDataset()) && proto.clarifai.api.AddToDataset.toObject(includeInstance, f),
49229
- splitIntoDatasets: (f = msg.getSplitIntoDatasets()) && proto.clarifai.api.SplitIntoDatasets.toObject(includeInstance, f)
49583
+ splitIntoDatasets: (f = msg.getSplitIntoDatasets()) && proto.clarifai.api.SplitIntoDatasets.toObject(includeInstance, f),
49584
+ deleteAnnotations: (f = msg.getDeleteAnnotations()) && proto.clarifai.api.DeleteAnnotations.toObject(includeInstance, f)
49230
49585
  };
49231
49586
  if (includeInstance) {
49232
49587
  obj.$jspbMessageInstance = msg;
@@ -49303,6 +49658,11 @@ proto.clarifai.api.Operation.deserializeBinaryFromReader = function (msg, reader
49303
49658
  reader.readMessage(value, proto.clarifai.api.SplitIntoDatasets.deserializeBinaryFromReader);
49304
49659
  msg.setSplitIntoDatasets(value);
49305
49660
  break;
49661
+ case 10:
49662
+ var value = new proto.clarifai.api.DeleteAnnotations;
49663
+ reader.readMessage(value, proto.clarifai.api.DeleteAnnotations.deserializeBinaryFromReader);
49664
+ msg.setDeleteAnnotations(value);
49665
+ break;
49306
49666
  default:
49307
49667
  reader.skipField();
49308
49668
  break;
@@ -49364,6 +49724,10 @@ proto.clarifai.api.Operation.serializeBinaryToWriter = function (message, writer
49364
49724
  if (f != null) {
49365
49725
  writer.writeMessage(9, f, proto.clarifai.api.SplitIntoDatasets.serializeBinaryToWriter);
49366
49726
  }
49727
+ f = message.getDeleteAnnotations();
49728
+ if (f != null) {
49729
+ writer.writeMessage(10, f, proto.clarifai.api.DeleteAnnotations.serializeBinaryToWriter);
49730
+ }
49367
49731
  };
49368
49732
  /**
49369
49733
  * optional AddConcepts add_concepts = 1;
@@ -49617,6 +49981,34 @@ proto.clarifai.api.Operation.prototype.clearSplitIntoDatasets = function () {
49617
49981
  proto.clarifai.api.Operation.prototype.hasSplitIntoDatasets = function () {
49618
49982
  return jspb.Message.getField(this, 9) != null;
49619
49983
  };
49984
+ /**
49985
+ * optional DeleteAnnotations delete_annotations = 10;
49986
+ * @return {?proto.clarifai.api.DeleteAnnotations}
49987
+ */
49988
+ proto.clarifai.api.Operation.prototype.getDeleteAnnotations = function () {
49989
+ return /** @type{?proto.clarifai.api.DeleteAnnotations} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DeleteAnnotations, 10));
49990
+ };
49991
+ /**
49992
+ * @param {?proto.clarifai.api.DeleteAnnotations|undefined} value
49993
+ * @return {!proto.clarifai.api.Operation} returns this
49994
+ */
49995
+ proto.clarifai.api.Operation.prototype.setDeleteAnnotations = function (value) {
49996
+ return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.Operation.oneofGroups_[1], value);
49997
+ };
49998
+ /**
49999
+ * Clears the message field making it undefined.
50000
+ * @return {!proto.clarifai.api.Operation} returns this
50001
+ */
50002
+ proto.clarifai.api.Operation.prototype.clearDeleteAnnotations = function () {
50003
+ return this.setDeleteAnnotations(undefined);
50004
+ };
50005
+ /**
50006
+ * Returns whether this field is set.
50007
+ * @return {boolean}
50008
+ */
50009
+ proto.clarifai.api.Operation.prototype.hasDeleteAnnotations = function () {
50010
+ return jspb.Message.getField(this, 10) != null;
50011
+ };
49620
50012
  /**
49621
50013
  * List of repeated fields within this message type.
49622
50014
  * @private {!Array<number>}
@@ -50916,6 +51308,89 @@ proto.clarifai.api.DatasetSplit.prototype.clearPercentage = function () {
50916
51308
  proto.clarifai.api.DatasetSplit.prototype.hasPercentage = function () {
50917
51309
  return jspb.Message.getField(this, 2) != null;
50918
51310
  };
51311
+ if (jspb.Message.GENERATE_TO_OBJECT) {
51312
+ /**
51313
+ * Creates an object representation of this proto.
51314
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
51315
+ * Optional fields that are not set will be set to undefined.
51316
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
51317
+ * For the list of reserved names please see:
51318
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
51319
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
51320
+ * JSPB instance for transitional soy proto support:
51321
+ * http://goto/soy-param-migration
51322
+ * @return {!Object}
51323
+ */
51324
+ proto.clarifai.api.DeleteAnnotations.prototype.toObject = function (opt_includeInstance) {
51325
+ return proto.clarifai.api.DeleteAnnotations.toObject(opt_includeInstance, this);
51326
+ };
51327
+ /**
51328
+ * Static version of the {@see toObject} method.
51329
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
51330
+ * the JSPB instance for transitional soy proto support:
51331
+ * http://goto/soy-param-migration
51332
+ * @param {!proto.clarifai.api.DeleteAnnotations} msg The msg instance to transform.
51333
+ * @return {!Object}
51334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
51335
+ */
51336
+ proto.clarifai.api.DeleteAnnotations.toObject = function (includeInstance, msg) {
51337
+ var f, obj = {};
51338
+ if (includeInstance) {
51339
+ obj.$jspbMessageInstance = msg;
51340
+ }
51341
+ return obj;
51342
+ };
51343
+ }
51344
+ /**
51345
+ * Deserializes binary data (in protobuf wire format).
51346
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
51347
+ * @return {!proto.clarifai.api.DeleteAnnotations}
51348
+ */
51349
+ proto.clarifai.api.DeleteAnnotations.deserializeBinary = function (bytes) {
51350
+ var reader = new jspb.BinaryReader(bytes);
51351
+ var msg = new proto.clarifai.api.DeleteAnnotations;
51352
+ return proto.clarifai.api.DeleteAnnotations.deserializeBinaryFromReader(msg, reader);
51353
+ };
51354
+ /**
51355
+ * Deserializes binary data (in protobuf wire format) from the
51356
+ * given reader into the given message object.
51357
+ * @param {!proto.clarifai.api.DeleteAnnotations} msg The message object to deserialize into.
51358
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
51359
+ * @return {!proto.clarifai.api.DeleteAnnotations}
51360
+ */
51361
+ proto.clarifai.api.DeleteAnnotations.deserializeBinaryFromReader = function (msg, reader) {
51362
+ while (reader.nextField()) {
51363
+ if (reader.isEndGroup()) {
51364
+ break;
51365
+ }
51366
+ var field = reader.getFieldNumber();
51367
+ switch (field) {
51368
+ default:
51369
+ reader.skipField();
51370
+ break;
51371
+ }
51372
+ }
51373
+ return msg;
51374
+ };
51375
+ /**
51376
+ * Serializes the message to binary data (in protobuf wire format).
51377
+ * @return {!Uint8Array}
51378
+ */
51379
+ proto.clarifai.api.DeleteAnnotations.prototype.serializeBinary = function () {
51380
+ var writer = new jspb.BinaryWriter();
51381
+ proto.clarifai.api.DeleteAnnotations.serializeBinaryToWriter(this, writer);
51382
+ return writer.getResultBuffer();
51383
+ };
51384
+ /**
51385
+ * Serializes the given message to binary data (in protobuf wire
51386
+ * format), writing to the given BinaryWriter.
51387
+ * @param {!proto.clarifai.api.DeleteAnnotations} message
51388
+ * @param {!jspb.BinaryWriter} writer
51389
+ * @suppress {unusedLocalVariables} f is only used for nested messages
51390
+ */
51391
+ proto.clarifai.api.DeleteAnnotations.serializeBinaryToWriter = function (message, writer) {
51392
+ var f = undefined;
51393
+ };
50919
51394
  /**
50920
51395
  * List of repeated fields within this message type.
50921
51396
  * @private {!Array<number>}
@@ -56903,7 +57378,7 @@ proto.clarifai.api.ProcessingInfo.prototype.setProcessingId = function (value) {
56903
57378
  * @private {!Array<!Array<number>>}
56904
57379
  * @const
56905
57380
  */
56906
- proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1, 2, 3, 4, 5, 6]];
57381
+ proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8]];
56907
57382
  /**
56908
57383
  * @enum {number}
56909
57384
  */
@@ -56914,7 +57389,9 @@ proto.clarifai.api.AuditLogTarget.TargetCase = {
56914
57389
  TEAM: 3,
56915
57390
  APP: 4,
56916
57391
  MODULE: 5,
56917
- MODULE_VERSION: 6
57392
+ MODULE_VERSION: 6,
57393
+ WORKFLOW: 7,
57394
+ WORKFLOW_VERSION: 8
56918
57395
  };
56919
57396
  /**
56920
57397
  * @return {proto.clarifai.api.AuditLogTarget.TargetCase}
@@ -56954,7 +57431,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
56954
57431
  team: (f = msg.getTeam()) && proto.clarifai.api.Team.toObject(includeInstance, f),
56955
57432
  app: (f = msg.getApp()) && proto.clarifai.api.App.toObject(includeInstance, f),
56956
57433
  module: (f = msg.getModule()) && proto.clarifai.api.Module.toObject(includeInstance, f),
56957
- moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f)
57434
+ moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f),
57435
+ workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
57436
+ workflowVersion: (f = msg.getWorkflowVersion()) && proto.clarifai.api.WorkflowVersion.toObject(includeInstance, f)
56958
57437
  };
56959
57438
  if (includeInstance) {
56960
57439
  obj.$jspbMessageInstance = msg;
@@ -57016,6 +57495,16 @@ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function (msg, r
57016
57495
  reader.readMessage(value, proto.clarifai.api.ModuleVersion.deserializeBinaryFromReader);
57017
57496
  msg.setModuleVersion(value);
57018
57497
  break;
57498
+ case 7:
57499
+ var value = new proto.clarifai.api.Workflow;
57500
+ reader.readMessage(value, proto.clarifai.api.Workflow.deserializeBinaryFromReader);
57501
+ msg.setWorkflow(value);
57502
+ break;
57503
+ case 8:
57504
+ var value = new proto.clarifai.api.WorkflowVersion;
57505
+ reader.readMessage(value, proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader);
57506
+ msg.setWorkflowVersion(value);
57507
+ break;
57019
57508
  default:
57020
57509
  reader.skipField();
57021
57510
  break;
@@ -57065,6 +57554,14 @@ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function (message, w
57065
57554
  if (f != null) {
57066
57555
  writer.writeMessage(6, f, proto.clarifai.api.ModuleVersion.serializeBinaryToWriter);
57067
57556
  }
57557
+ f = message.getWorkflow();
57558
+ if (f != null) {
57559
+ writer.writeMessage(7, f, proto.clarifai.api.Workflow.serializeBinaryToWriter);
57560
+ }
57561
+ f = message.getWorkflowVersion();
57562
+ if (f != null) {
57563
+ writer.writeMessage(8, f, proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter);
57564
+ }
57068
57565
  };
57069
57566
  /**
57070
57567
  * optional User user = 1;
@@ -57234,6 +57731,62 @@ proto.clarifai.api.AuditLogTarget.prototype.clearModuleVersion = function () {
57234
57731
  proto.clarifai.api.AuditLogTarget.prototype.hasModuleVersion = function () {
57235
57732
  return jspb.Message.getField(this, 6) != null;
57236
57733
  };
57734
+ /**
57735
+ * optional Workflow workflow = 7;
57736
+ * @return {?proto.clarifai.api.Workflow}
57737
+ */
57738
+ proto.clarifai.api.AuditLogTarget.prototype.getWorkflow = function () {
57739
+ return /** @type{?proto.clarifai.api.Workflow} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 7));
57740
+ };
57741
+ /**
57742
+ * @param {?proto.clarifai.api.Workflow|undefined} value
57743
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57744
+ */
57745
+ proto.clarifai.api.AuditLogTarget.prototype.setWorkflow = function (value) {
57746
+ return jspb.Message.setOneofWrapperField(this, 7, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
57747
+ };
57748
+ /**
57749
+ * Clears the message field making it undefined.
57750
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57751
+ */
57752
+ proto.clarifai.api.AuditLogTarget.prototype.clearWorkflow = function () {
57753
+ return this.setWorkflow(undefined);
57754
+ };
57755
+ /**
57756
+ * Returns whether this field is set.
57757
+ * @return {boolean}
57758
+ */
57759
+ proto.clarifai.api.AuditLogTarget.prototype.hasWorkflow = function () {
57760
+ return jspb.Message.getField(this, 7) != null;
57761
+ };
57762
+ /**
57763
+ * optional WorkflowVersion workflow_version = 8;
57764
+ * @return {?proto.clarifai.api.WorkflowVersion}
57765
+ */
57766
+ proto.clarifai.api.AuditLogTarget.prototype.getWorkflowVersion = function () {
57767
+ return /** @type{?proto.clarifai.api.WorkflowVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowVersion, 8));
57768
+ };
57769
+ /**
57770
+ * @param {?proto.clarifai.api.WorkflowVersion|undefined} value
57771
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57772
+ */
57773
+ proto.clarifai.api.AuditLogTarget.prototype.setWorkflowVersion = function (value) {
57774
+ return jspb.Message.setOneofWrapperField(this, 8, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
57775
+ };
57776
+ /**
57777
+ * Clears the message field making it undefined.
57778
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57779
+ */
57780
+ proto.clarifai.api.AuditLogTarget.prototype.clearWorkflowVersion = function () {
57781
+ return this.setWorkflowVersion(undefined);
57782
+ };
57783
+ /**
57784
+ * Returns whether this field is set.
57785
+ * @return {boolean}
57786
+ */
57787
+ proto.clarifai.api.AuditLogTarget.prototype.hasWorkflowVersion = function () {
57788
+ return jspb.Message.getField(this, 8) != null;
57789
+ };
57237
57790
  /**
57238
57791
  * List of repeated fields within this message type.
57239
57792
  * @private {!Array<number>}
@@ -58839,6 +59392,1654 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.getRunnerId = function () {
58839
59392
  proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function (value) {
58840
59393
  return jspb.Message.setProto3StringField(this, 8, value);
58841
59394
  };
59395
+ if (jspb.Message.GENERATE_TO_OBJECT) {
59396
+ /**
59397
+ * Creates an object representation of this proto.
59398
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
59399
+ * Optional fields that are not set will be set to undefined.
59400
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
59401
+ * For the list of reserved names please see:
59402
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
59403
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
59404
+ * JSPB instance for transitional soy proto support:
59405
+ * http://goto/soy-param-migration
59406
+ * @return {!Object}
59407
+ */
59408
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.toObject = function (opt_includeInstance) {
59409
+ return proto.clarifai.api.ArgoOrchestrationSpec.toObject(opt_includeInstance, this);
59410
+ };
59411
+ /**
59412
+ * Static version of the {@see toObject} method.
59413
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
59414
+ * the JSPB instance for transitional soy proto support:
59415
+ * http://goto/soy-param-migration
59416
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The msg instance to transform.
59417
+ * @return {!Object}
59418
+ * @suppress {unusedLocalVariables} f is only used for nested messages
59419
+ */
59420
+ proto.clarifai.api.ArgoOrchestrationSpec.toObject = function (includeInstance, msg) {
59421
+ var f, obj = {
59422
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
59423
+ apiVersion: jspb.Message.getFieldWithDefault(msg, 2, ""),
59424
+ specJson: jspb.Message.getFieldWithDefault(msg, 3, "")
59425
+ };
59426
+ if (includeInstance) {
59427
+ obj.$jspbMessageInstance = msg;
59428
+ }
59429
+ return obj;
59430
+ };
59431
+ }
59432
+ /**
59433
+ * Deserializes binary data (in protobuf wire format).
59434
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
59435
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec}
59436
+ */
59437
+ proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinary = function (bytes) {
59438
+ var reader = new jspb.BinaryReader(bytes);
59439
+ var msg = new proto.clarifai.api.ArgoOrchestrationSpec;
59440
+ return proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader(msg, reader);
59441
+ };
59442
+ /**
59443
+ * Deserializes binary data (in protobuf wire format) from the
59444
+ * given reader into the given message object.
59445
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The message object to deserialize into.
59446
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
59447
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec}
59448
+ */
59449
+ proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader = function (msg, reader) {
59450
+ while (reader.nextField()) {
59451
+ if (reader.isEndGroup()) {
59452
+ break;
59453
+ }
59454
+ var field = reader.getFieldNumber();
59455
+ switch (field) {
59456
+ case 1:
59457
+ var value = /** @type {string} */ (reader.readString());
59458
+ msg.setId(value);
59459
+ break;
59460
+ case 2:
59461
+ var value = /** @type {string} */ (reader.readString());
59462
+ msg.setApiVersion(value);
59463
+ break;
59464
+ case 3:
59465
+ var value = /** @type {string} */ (reader.readString());
59466
+ msg.setSpecJson(value);
59467
+ break;
59468
+ default:
59469
+ reader.skipField();
59470
+ break;
59471
+ }
59472
+ }
59473
+ return msg;
59474
+ };
59475
+ /**
59476
+ * Serializes the message to binary data (in protobuf wire format).
59477
+ * @return {!Uint8Array}
59478
+ */
59479
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.serializeBinary = function () {
59480
+ var writer = new jspb.BinaryWriter();
59481
+ proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter(this, writer);
59482
+ return writer.getResultBuffer();
59483
+ };
59484
+ /**
59485
+ * Serializes the given message to binary data (in protobuf wire
59486
+ * format), writing to the given BinaryWriter.
59487
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} message
59488
+ * @param {!jspb.BinaryWriter} writer
59489
+ * @suppress {unusedLocalVariables} f is only used for nested messages
59490
+ */
59491
+ proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter = function (message, writer) {
59492
+ var f = undefined;
59493
+ f = message.getId();
59494
+ if (f.length > 0) {
59495
+ writer.writeString(1, f);
59496
+ }
59497
+ f = message.getApiVersion();
59498
+ if (f.length > 0) {
59499
+ writer.writeString(2, f);
59500
+ }
59501
+ f = message.getSpecJson();
59502
+ if (f.length > 0) {
59503
+ writer.writeString(3, f);
59504
+ }
59505
+ };
59506
+ /**
59507
+ * optional string id = 1;
59508
+ * @return {string}
59509
+ */
59510
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.getId = function () {
59511
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
59512
+ };
59513
+ /**
59514
+ * @param {string} value
59515
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
59516
+ */
59517
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.setId = function (value) {
59518
+ return jspb.Message.setProto3StringField(this, 1, value);
59519
+ };
59520
+ /**
59521
+ * optional string api_version = 2;
59522
+ * @return {string}
59523
+ */
59524
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.getApiVersion = function () {
59525
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
59526
+ };
59527
+ /**
59528
+ * @param {string} value
59529
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
59530
+ */
59531
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.setApiVersion = function (value) {
59532
+ return jspb.Message.setProto3StringField(this, 2, value);
59533
+ };
59534
+ /**
59535
+ * optional string spec_json = 3;
59536
+ * @return {string}
59537
+ */
59538
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.getSpecJson = function () {
59539
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
59540
+ };
59541
+ /**
59542
+ * @param {string} value
59543
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
59544
+ */
59545
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.setSpecJson = function (value) {
59546
+ return jspb.Message.setProto3StringField(this, 3, value);
59547
+ };
59548
+ /**
59549
+ * Oneof group definitions for this message. Each group defines the field
59550
+ * numbers belonging to that group. When of these fields' value is set, all
59551
+ * other fields in the group are cleared. During deserialization, if multiple
59552
+ * fields are encountered for a group, only the last value seen will be kept.
59553
+ * @private {!Array<!Array<number>>}
59554
+ * @const
59555
+ */
59556
+ proto.clarifai.api.OrchestrationSpec.oneofGroups_ = [[1]];
59557
+ /**
59558
+ * @enum {number}
59559
+ */
59560
+ proto.clarifai.api.OrchestrationSpec.OrchestrationCase = {
59561
+ ORCHESTRATION_NOT_SET: 0,
59562
+ ARGO_ORCHESTRATION_SPEC: 1
59563
+ };
59564
+ /**
59565
+ * @return {proto.clarifai.api.OrchestrationSpec.OrchestrationCase}
59566
+ */
59567
+ proto.clarifai.api.OrchestrationSpec.prototype.getOrchestrationCase = function () {
59568
+ return /** @type {proto.clarifai.api.OrchestrationSpec.OrchestrationCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0]));
59569
+ };
59570
+ if (jspb.Message.GENERATE_TO_OBJECT) {
59571
+ /**
59572
+ * Creates an object representation of this proto.
59573
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
59574
+ * Optional fields that are not set will be set to undefined.
59575
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
59576
+ * For the list of reserved names please see:
59577
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
59578
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
59579
+ * JSPB instance for transitional soy proto support:
59580
+ * http://goto/soy-param-migration
59581
+ * @return {!Object}
59582
+ */
59583
+ proto.clarifai.api.OrchestrationSpec.prototype.toObject = function (opt_includeInstance) {
59584
+ return proto.clarifai.api.OrchestrationSpec.toObject(opt_includeInstance, this);
59585
+ };
59586
+ /**
59587
+ * Static version of the {@see toObject} method.
59588
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
59589
+ * the JSPB instance for transitional soy proto support:
59590
+ * http://goto/soy-param-migration
59591
+ * @param {!proto.clarifai.api.OrchestrationSpec} msg The msg instance to transform.
59592
+ * @return {!Object}
59593
+ * @suppress {unusedLocalVariables} f is only used for nested messages
59594
+ */
59595
+ proto.clarifai.api.OrchestrationSpec.toObject = function (includeInstance, msg) {
59596
+ var f, obj = {
59597
+ argoOrchestrationSpec: (f = msg.getArgoOrchestrationSpec()) && proto.clarifai.api.ArgoOrchestrationSpec.toObject(includeInstance, f)
59598
+ };
59599
+ if (includeInstance) {
59600
+ obj.$jspbMessageInstance = msg;
59601
+ }
59602
+ return obj;
59603
+ };
59604
+ }
59605
+ /**
59606
+ * Deserializes binary data (in protobuf wire format).
59607
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
59608
+ * @return {!proto.clarifai.api.OrchestrationSpec}
59609
+ */
59610
+ proto.clarifai.api.OrchestrationSpec.deserializeBinary = function (bytes) {
59611
+ var reader = new jspb.BinaryReader(bytes);
59612
+ var msg = new proto.clarifai.api.OrchestrationSpec;
59613
+ return proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader(msg, reader);
59614
+ };
59615
+ /**
59616
+ * Deserializes binary data (in protobuf wire format) from the
59617
+ * given reader into the given message object.
59618
+ * @param {!proto.clarifai.api.OrchestrationSpec} msg The message object to deserialize into.
59619
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
59620
+ * @return {!proto.clarifai.api.OrchestrationSpec}
59621
+ */
59622
+ proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader = function (msg, reader) {
59623
+ while (reader.nextField()) {
59624
+ if (reader.isEndGroup()) {
59625
+ break;
59626
+ }
59627
+ var field = reader.getFieldNumber();
59628
+ switch (field) {
59629
+ case 1:
59630
+ var value = new proto.clarifai.api.ArgoOrchestrationSpec;
59631
+ reader.readMessage(value, proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader);
59632
+ msg.setArgoOrchestrationSpec(value);
59633
+ break;
59634
+ default:
59635
+ reader.skipField();
59636
+ break;
59637
+ }
59638
+ }
59639
+ return msg;
59640
+ };
59641
+ /**
59642
+ * Serializes the message to binary data (in protobuf wire format).
59643
+ * @return {!Uint8Array}
59644
+ */
59645
+ proto.clarifai.api.OrchestrationSpec.prototype.serializeBinary = function () {
59646
+ var writer = new jspb.BinaryWriter();
59647
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter(this, writer);
59648
+ return writer.getResultBuffer();
59649
+ };
59650
+ /**
59651
+ * Serializes the given message to binary data (in protobuf wire
59652
+ * format), writing to the given BinaryWriter.
59653
+ * @param {!proto.clarifai.api.OrchestrationSpec} message
59654
+ * @param {!jspb.BinaryWriter} writer
59655
+ * @suppress {unusedLocalVariables} f is only used for nested messages
59656
+ */
59657
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter = function (message, writer) {
59658
+ var f = undefined;
59659
+ f = message.getArgoOrchestrationSpec();
59660
+ if (f != null) {
59661
+ writer.writeMessage(1, f, proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter);
59662
+ }
59663
+ };
59664
+ /**
59665
+ * optional ArgoOrchestrationSpec argo_orchestration_spec = 1;
59666
+ * @return {?proto.clarifai.api.ArgoOrchestrationSpec}
59667
+ */
59668
+ proto.clarifai.api.OrchestrationSpec.prototype.getArgoOrchestrationSpec = function () {
59669
+ return /** @type{?proto.clarifai.api.ArgoOrchestrationSpec} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationSpec, 1));
59670
+ };
59671
+ /**
59672
+ * @param {?proto.clarifai.api.ArgoOrchestrationSpec|undefined} value
59673
+ * @return {!proto.clarifai.api.OrchestrationSpec} returns this
59674
+ */
59675
+ proto.clarifai.api.OrchestrationSpec.prototype.setArgoOrchestrationSpec = function (value) {
59676
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0], value);
59677
+ };
59678
+ /**
59679
+ * Clears the message field making it undefined.
59680
+ * @return {!proto.clarifai.api.OrchestrationSpec} returns this
59681
+ */
59682
+ proto.clarifai.api.OrchestrationSpec.prototype.clearArgoOrchestrationSpec = function () {
59683
+ return this.setArgoOrchestrationSpec(undefined);
59684
+ };
59685
+ /**
59686
+ * Returns whether this field is set.
59687
+ * @return {boolean}
59688
+ */
59689
+ proto.clarifai.api.OrchestrationSpec.prototype.hasArgoOrchestrationSpec = function () {
59690
+ return jspb.Message.getField(this, 1) != null;
59691
+ };
59692
+ if (jspb.Message.GENERATE_TO_OBJECT) {
59693
+ /**
59694
+ * Creates an object representation of this proto.
59695
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
59696
+ * Optional fields that are not set will be set to undefined.
59697
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
59698
+ * For the list of reserved names please see:
59699
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
59700
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
59701
+ * JSPB instance for transitional soy proto support:
59702
+ * http://goto/soy-param-migration
59703
+ * @return {!Object}
59704
+ */
59705
+ proto.clarifai.api.Pipeline.prototype.toObject = function (opt_includeInstance) {
59706
+ return proto.clarifai.api.Pipeline.toObject(opt_includeInstance, this);
59707
+ };
59708
+ /**
59709
+ * Static version of the {@see toObject} method.
59710
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
59711
+ * the JSPB instance for transitional soy proto support:
59712
+ * http://goto/soy-param-migration
59713
+ * @param {!proto.clarifai.api.Pipeline} msg The msg instance to transform.
59714
+ * @return {!Object}
59715
+ * @suppress {unusedLocalVariables} f is only used for nested messages
59716
+ */
59717
+ proto.clarifai.api.Pipeline.toObject = function (includeInstance, msg) {
59718
+ var f, obj = {
59719
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
59720
+ userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
59721
+ appId: jspb.Message.getFieldWithDefault(msg, 3, ""),
59722
+ orchestrationSpec: (f = msg.getOrchestrationSpec()) && proto.clarifai.api.OrchestrationSpec.toObject(includeInstance, f),
59723
+ pipelineVersion: (f = msg.getPipelineVersion()) && proto.clarifai.api.PipelineVersion.toObject(includeInstance, f),
59724
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
59725
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
59726
+ notes: jspb.Message.getFieldWithDefault(msg, 8, ""),
59727
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
59728
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
59729
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
59730
+ };
59731
+ if (includeInstance) {
59732
+ obj.$jspbMessageInstance = msg;
59733
+ }
59734
+ return obj;
59735
+ };
59736
+ }
59737
+ /**
59738
+ * Deserializes binary data (in protobuf wire format).
59739
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
59740
+ * @return {!proto.clarifai.api.Pipeline}
59741
+ */
59742
+ proto.clarifai.api.Pipeline.deserializeBinary = function (bytes) {
59743
+ var reader = new jspb.BinaryReader(bytes);
59744
+ var msg = new proto.clarifai.api.Pipeline;
59745
+ return proto.clarifai.api.Pipeline.deserializeBinaryFromReader(msg, reader);
59746
+ };
59747
+ /**
59748
+ * Deserializes binary data (in protobuf wire format) from the
59749
+ * given reader into the given message object.
59750
+ * @param {!proto.clarifai.api.Pipeline} msg The message object to deserialize into.
59751
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
59752
+ * @return {!proto.clarifai.api.Pipeline}
59753
+ */
59754
+ proto.clarifai.api.Pipeline.deserializeBinaryFromReader = function (msg, reader) {
59755
+ while (reader.nextField()) {
59756
+ if (reader.isEndGroup()) {
59757
+ break;
59758
+ }
59759
+ var field = reader.getFieldNumber();
59760
+ switch (field) {
59761
+ case 1:
59762
+ var value = /** @type {string} */ (reader.readString());
59763
+ msg.setId(value);
59764
+ break;
59765
+ case 2:
59766
+ var value = /** @type {string} */ (reader.readString());
59767
+ msg.setUserId(value);
59768
+ break;
59769
+ case 3:
59770
+ var value = /** @type {string} */ (reader.readString());
59771
+ msg.setAppId(value);
59772
+ break;
59773
+ case 4:
59774
+ var value = new proto.clarifai.api.OrchestrationSpec;
59775
+ reader.readMessage(value, proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader);
59776
+ msg.setOrchestrationSpec(value);
59777
+ break;
59778
+ case 5:
59779
+ var value = new proto.clarifai.api.PipelineVersion;
59780
+ reader.readMessage(value, proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader);
59781
+ msg.setPipelineVersion(value);
59782
+ break;
59783
+ case 6:
59784
+ var value = /** @type {string} */ (reader.readString());
59785
+ msg.setDescription(value);
59786
+ break;
59787
+ case 7:
59788
+ var value = new proto.clarifai.api.Visibility;
59789
+ reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
59790
+ msg.setVisibility(value);
59791
+ break;
59792
+ case 8:
59793
+ var value = /** @type {string} */ (reader.readString());
59794
+ msg.setNotes(value);
59795
+ break;
59796
+ case 9:
59797
+ var value = new google_protobuf_struct_pb.Struct;
59798
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
59799
+ msg.setMetadata(value);
59800
+ break;
59801
+ case 10:
59802
+ var value = new google_protobuf_timestamp_pb.Timestamp;
59803
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
59804
+ msg.setCreatedAt(value);
59805
+ break;
59806
+ case 11:
59807
+ var value = new google_protobuf_timestamp_pb.Timestamp;
59808
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
59809
+ msg.setModifiedAt(value);
59810
+ break;
59811
+ default:
59812
+ reader.skipField();
59813
+ break;
59814
+ }
59815
+ }
59816
+ return msg;
59817
+ };
59818
+ /**
59819
+ * Serializes the message to binary data (in protobuf wire format).
59820
+ * @return {!Uint8Array}
59821
+ */
59822
+ proto.clarifai.api.Pipeline.prototype.serializeBinary = function () {
59823
+ var writer = new jspb.BinaryWriter();
59824
+ proto.clarifai.api.Pipeline.serializeBinaryToWriter(this, writer);
59825
+ return writer.getResultBuffer();
59826
+ };
59827
+ /**
59828
+ * Serializes the given message to binary data (in protobuf wire
59829
+ * format), writing to the given BinaryWriter.
59830
+ * @param {!proto.clarifai.api.Pipeline} message
59831
+ * @param {!jspb.BinaryWriter} writer
59832
+ * @suppress {unusedLocalVariables} f is only used for nested messages
59833
+ */
59834
+ proto.clarifai.api.Pipeline.serializeBinaryToWriter = function (message, writer) {
59835
+ var f = undefined;
59836
+ f = message.getId();
59837
+ if (f.length > 0) {
59838
+ writer.writeString(1, f);
59839
+ }
59840
+ f = message.getUserId();
59841
+ if (f.length > 0) {
59842
+ writer.writeString(2, f);
59843
+ }
59844
+ f = message.getAppId();
59845
+ if (f.length > 0) {
59846
+ writer.writeString(3, f);
59847
+ }
59848
+ f = message.getOrchestrationSpec();
59849
+ if (f != null) {
59850
+ writer.writeMessage(4, f, proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter);
59851
+ }
59852
+ f = message.getPipelineVersion();
59853
+ if (f != null) {
59854
+ writer.writeMessage(5, f, proto.clarifai.api.PipelineVersion.serializeBinaryToWriter);
59855
+ }
59856
+ f = message.getDescription();
59857
+ if (f.length > 0) {
59858
+ writer.writeString(6, f);
59859
+ }
59860
+ f = message.getVisibility();
59861
+ if (f != null) {
59862
+ writer.writeMessage(7, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
59863
+ }
59864
+ f = message.getNotes();
59865
+ if (f.length > 0) {
59866
+ writer.writeString(8, f);
59867
+ }
59868
+ f = message.getMetadata();
59869
+ if (f != null) {
59870
+ writer.writeMessage(9, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
59871
+ }
59872
+ f = message.getCreatedAt();
59873
+ if (f != null) {
59874
+ writer.writeMessage(10, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
59875
+ }
59876
+ f = message.getModifiedAt();
59877
+ if (f != null) {
59878
+ writer.writeMessage(11, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
59879
+ }
59880
+ };
59881
+ /**
59882
+ * optional string id = 1;
59883
+ * @return {string}
59884
+ */
59885
+ proto.clarifai.api.Pipeline.prototype.getId = function () {
59886
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
59887
+ };
59888
+ /**
59889
+ * @param {string} value
59890
+ * @return {!proto.clarifai.api.Pipeline} returns this
59891
+ */
59892
+ proto.clarifai.api.Pipeline.prototype.setId = function (value) {
59893
+ return jspb.Message.setProto3StringField(this, 1, value);
59894
+ };
59895
+ /**
59896
+ * optional string user_id = 2;
59897
+ * @return {string}
59898
+ */
59899
+ proto.clarifai.api.Pipeline.prototype.getUserId = function () {
59900
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
59901
+ };
59902
+ /**
59903
+ * @param {string} value
59904
+ * @return {!proto.clarifai.api.Pipeline} returns this
59905
+ */
59906
+ proto.clarifai.api.Pipeline.prototype.setUserId = function (value) {
59907
+ return jspb.Message.setProto3StringField(this, 2, value);
59908
+ };
59909
+ /**
59910
+ * optional string app_id = 3;
59911
+ * @return {string}
59912
+ */
59913
+ proto.clarifai.api.Pipeline.prototype.getAppId = function () {
59914
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
59915
+ };
59916
+ /**
59917
+ * @param {string} value
59918
+ * @return {!proto.clarifai.api.Pipeline} returns this
59919
+ */
59920
+ proto.clarifai.api.Pipeline.prototype.setAppId = function (value) {
59921
+ return jspb.Message.setProto3StringField(this, 3, value);
59922
+ };
59923
+ /**
59924
+ * optional OrchestrationSpec orchestration_spec = 4;
59925
+ * @return {?proto.clarifai.api.OrchestrationSpec}
59926
+ */
59927
+ proto.clarifai.api.Pipeline.prototype.getOrchestrationSpec = function () {
59928
+ return /** @type{?proto.clarifai.api.OrchestrationSpec} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationSpec, 4));
59929
+ };
59930
+ /**
59931
+ * @param {?proto.clarifai.api.OrchestrationSpec|undefined} value
59932
+ * @return {!proto.clarifai.api.Pipeline} returns this
59933
+ */
59934
+ proto.clarifai.api.Pipeline.prototype.setOrchestrationSpec = function (value) {
59935
+ return jspb.Message.setWrapperField(this, 4, value);
59936
+ };
59937
+ /**
59938
+ * Clears the message field making it undefined.
59939
+ * @return {!proto.clarifai.api.Pipeline} returns this
59940
+ */
59941
+ proto.clarifai.api.Pipeline.prototype.clearOrchestrationSpec = function () {
59942
+ return this.setOrchestrationSpec(undefined);
59943
+ };
59944
+ /**
59945
+ * Returns whether this field is set.
59946
+ * @return {boolean}
59947
+ */
59948
+ proto.clarifai.api.Pipeline.prototype.hasOrchestrationSpec = function () {
59949
+ return jspb.Message.getField(this, 4) != null;
59950
+ };
59951
+ /**
59952
+ * optional PipelineVersion pipeline_version = 5;
59953
+ * @return {?proto.clarifai.api.PipelineVersion}
59954
+ */
59955
+ proto.clarifai.api.Pipeline.prototype.getPipelineVersion = function () {
59956
+ return /** @type{?proto.clarifai.api.PipelineVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.PipelineVersion, 5));
59957
+ };
59958
+ /**
59959
+ * @param {?proto.clarifai.api.PipelineVersion|undefined} value
59960
+ * @return {!proto.clarifai.api.Pipeline} returns this
59961
+ */
59962
+ proto.clarifai.api.Pipeline.prototype.setPipelineVersion = function (value) {
59963
+ return jspb.Message.setWrapperField(this, 5, value);
59964
+ };
59965
+ /**
59966
+ * Clears the message field making it undefined.
59967
+ * @return {!proto.clarifai.api.Pipeline} returns this
59968
+ */
59969
+ proto.clarifai.api.Pipeline.prototype.clearPipelineVersion = function () {
59970
+ return this.setPipelineVersion(undefined);
59971
+ };
59972
+ /**
59973
+ * Returns whether this field is set.
59974
+ * @return {boolean}
59975
+ */
59976
+ proto.clarifai.api.Pipeline.prototype.hasPipelineVersion = function () {
59977
+ return jspb.Message.getField(this, 5) != null;
59978
+ };
59979
+ /**
59980
+ * optional string description = 6;
59981
+ * @return {string}
59982
+ */
59983
+ proto.clarifai.api.Pipeline.prototype.getDescription = function () {
59984
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
59985
+ };
59986
+ /**
59987
+ * @param {string} value
59988
+ * @return {!proto.clarifai.api.Pipeline} returns this
59989
+ */
59990
+ proto.clarifai.api.Pipeline.prototype.setDescription = function (value) {
59991
+ return jspb.Message.setProto3StringField(this, 6, value);
59992
+ };
59993
+ /**
59994
+ * optional Visibility visibility = 7;
59995
+ * @return {?proto.clarifai.api.Visibility}
59996
+ */
59997
+ proto.clarifai.api.Pipeline.prototype.getVisibility = function () {
59998
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7));
59999
+ };
60000
+ /**
60001
+ * @param {?proto.clarifai.api.Visibility|undefined} value
60002
+ * @return {!proto.clarifai.api.Pipeline} returns this
60003
+ */
60004
+ proto.clarifai.api.Pipeline.prototype.setVisibility = function (value) {
60005
+ return jspb.Message.setWrapperField(this, 7, value);
60006
+ };
60007
+ /**
60008
+ * Clears the message field making it undefined.
60009
+ * @return {!proto.clarifai.api.Pipeline} returns this
60010
+ */
60011
+ proto.clarifai.api.Pipeline.prototype.clearVisibility = function () {
60012
+ return this.setVisibility(undefined);
60013
+ };
60014
+ /**
60015
+ * Returns whether this field is set.
60016
+ * @return {boolean}
60017
+ */
60018
+ proto.clarifai.api.Pipeline.prototype.hasVisibility = function () {
60019
+ return jspb.Message.getField(this, 7) != null;
60020
+ };
60021
+ /**
60022
+ * optional string notes = 8;
60023
+ * @return {string}
60024
+ */
60025
+ proto.clarifai.api.Pipeline.prototype.getNotes = function () {
60026
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
60027
+ };
60028
+ /**
60029
+ * @param {string} value
60030
+ * @return {!proto.clarifai.api.Pipeline} returns this
60031
+ */
60032
+ proto.clarifai.api.Pipeline.prototype.setNotes = function (value) {
60033
+ return jspb.Message.setProto3StringField(this, 8, value);
60034
+ };
60035
+ /**
60036
+ * optional google.protobuf.Struct metadata = 9;
60037
+ * @return {?proto.google.protobuf.Struct}
60038
+ */
60039
+ proto.clarifai.api.Pipeline.prototype.getMetadata = function () {
60040
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 9));
60041
+ };
60042
+ /**
60043
+ * @param {?proto.google.protobuf.Struct|undefined} value
60044
+ * @return {!proto.clarifai.api.Pipeline} returns this
60045
+ */
60046
+ proto.clarifai.api.Pipeline.prototype.setMetadata = function (value) {
60047
+ return jspb.Message.setWrapperField(this, 9, value);
60048
+ };
60049
+ /**
60050
+ * Clears the message field making it undefined.
60051
+ * @return {!proto.clarifai.api.Pipeline} returns this
60052
+ */
60053
+ proto.clarifai.api.Pipeline.prototype.clearMetadata = function () {
60054
+ return this.setMetadata(undefined);
60055
+ };
60056
+ /**
60057
+ * Returns whether this field is set.
60058
+ * @return {boolean}
60059
+ */
60060
+ proto.clarifai.api.Pipeline.prototype.hasMetadata = function () {
60061
+ return jspb.Message.getField(this, 9) != null;
60062
+ };
60063
+ /**
60064
+ * optional google.protobuf.Timestamp created_at = 10;
60065
+ * @return {?proto.google.protobuf.Timestamp}
60066
+ */
60067
+ proto.clarifai.api.Pipeline.prototype.getCreatedAt = function () {
60068
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
60069
+ };
60070
+ /**
60071
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
60072
+ * @return {!proto.clarifai.api.Pipeline} returns this
60073
+ */
60074
+ proto.clarifai.api.Pipeline.prototype.setCreatedAt = function (value) {
60075
+ return jspb.Message.setWrapperField(this, 10, value);
60076
+ };
60077
+ /**
60078
+ * Clears the message field making it undefined.
60079
+ * @return {!proto.clarifai.api.Pipeline} returns this
60080
+ */
60081
+ proto.clarifai.api.Pipeline.prototype.clearCreatedAt = function () {
60082
+ return this.setCreatedAt(undefined);
60083
+ };
60084
+ /**
60085
+ * Returns whether this field is set.
60086
+ * @return {boolean}
60087
+ */
60088
+ proto.clarifai.api.Pipeline.prototype.hasCreatedAt = function () {
60089
+ return jspb.Message.getField(this, 10) != null;
60090
+ };
60091
+ /**
60092
+ * optional google.protobuf.Timestamp modified_at = 11;
60093
+ * @return {?proto.google.protobuf.Timestamp}
60094
+ */
60095
+ proto.clarifai.api.Pipeline.prototype.getModifiedAt = function () {
60096
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
60097
+ };
60098
+ /**
60099
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
60100
+ * @return {!proto.clarifai.api.Pipeline} returns this
60101
+ */
60102
+ proto.clarifai.api.Pipeline.prototype.setModifiedAt = function (value) {
60103
+ return jspb.Message.setWrapperField(this, 11, value);
60104
+ };
60105
+ /**
60106
+ * Clears the message field making it undefined.
60107
+ * @return {!proto.clarifai.api.Pipeline} returns this
60108
+ */
60109
+ proto.clarifai.api.Pipeline.prototype.clearModifiedAt = function () {
60110
+ return this.setModifiedAt(undefined);
60111
+ };
60112
+ /**
60113
+ * Returns whether this field is set.
60114
+ * @return {boolean}
60115
+ */
60116
+ proto.clarifai.api.Pipeline.prototype.hasModifiedAt = function () {
60117
+ return jspb.Message.getField(this, 11) != null;
60118
+ };
60119
+ if (jspb.Message.GENERATE_TO_OBJECT) {
60120
+ /**
60121
+ * Creates an object representation of this proto.
60122
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
60123
+ * Optional fields that are not set will be set to undefined.
60124
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
60125
+ * For the list of reserved names please see:
60126
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
60127
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60128
+ * JSPB instance for transitional soy proto support:
60129
+ * http://goto/soy-param-migration
60130
+ * @return {!Object}
60131
+ */
60132
+ proto.clarifai.api.PipelineVersion.prototype.toObject = function (opt_includeInstance) {
60133
+ return proto.clarifai.api.PipelineVersion.toObject(opt_includeInstance, this);
60134
+ };
60135
+ /**
60136
+ * Static version of the {@see toObject} method.
60137
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
60138
+ * the JSPB instance for transitional soy proto support:
60139
+ * http://goto/soy-param-migration
60140
+ * @param {!proto.clarifai.api.PipelineVersion} msg The msg instance to transform.
60141
+ * @return {!Object}
60142
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60143
+ */
60144
+ proto.clarifai.api.PipelineVersion.toObject = function (includeInstance, msg) {
60145
+ var f, obj = {
60146
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
60147
+ appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
60148
+ userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
60149
+ orchestrationSpec: (f = msg.getOrchestrationSpec()) && proto.clarifai.api.OrchestrationSpec.toObject(includeInstance, f),
60150
+ pipelineId: jspb.Message.getFieldWithDefault(msg, 5, ""),
60151
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
60152
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
60153
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
60154
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
60155
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
60156
+ };
60157
+ if (includeInstance) {
60158
+ obj.$jspbMessageInstance = msg;
60159
+ }
60160
+ return obj;
60161
+ };
60162
+ }
60163
+ /**
60164
+ * Deserializes binary data (in protobuf wire format).
60165
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
60166
+ * @return {!proto.clarifai.api.PipelineVersion}
60167
+ */
60168
+ proto.clarifai.api.PipelineVersion.deserializeBinary = function (bytes) {
60169
+ var reader = new jspb.BinaryReader(bytes);
60170
+ var msg = new proto.clarifai.api.PipelineVersion;
60171
+ return proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader(msg, reader);
60172
+ };
60173
+ /**
60174
+ * Deserializes binary data (in protobuf wire format) from the
60175
+ * given reader into the given message object.
60176
+ * @param {!proto.clarifai.api.PipelineVersion} msg The message object to deserialize into.
60177
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
60178
+ * @return {!proto.clarifai.api.PipelineVersion}
60179
+ */
60180
+ proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader = function (msg, reader) {
60181
+ while (reader.nextField()) {
60182
+ if (reader.isEndGroup()) {
60183
+ break;
60184
+ }
60185
+ var field = reader.getFieldNumber();
60186
+ switch (field) {
60187
+ case 1:
60188
+ var value = /** @type {string} */ (reader.readString());
60189
+ msg.setId(value);
60190
+ break;
60191
+ case 2:
60192
+ var value = /** @type {string} */ (reader.readString());
60193
+ msg.setAppId(value);
60194
+ break;
60195
+ case 3:
60196
+ var value = /** @type {string} */ (reader.readString());
60197
+ msg.setUserId(value);
60198
+ break;
60199
+ case 4:
60200
+ var value = new proto.clarifai.api.OrchestrationSpec;
60201
+ reader.readMessage(value, proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader);
60202
+ msg.setOrchestrationSpec(value);
60203
+ break;
60204
+ case 5:
60205
+ var value = /** @type {string} */ (reader.readString());
60206
+ msg.setPipelineId(value);
60207
+ break;
60208
+ case 6:
60209
+ var value = /** @type {string} */ (reader.readString());
60210
+ msg.setDescription(value);
60211
+ break;
60212
+ case 7:
60213
+ var value = new proto.clarifai.api.Visibility;
60214
+ reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
60215
+ msg.setVisibility(value);
60216
+ break;
60217
+ case 8:
60218
+ var value = new google_protobuf_struct_pb.Struct;
60219
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
60220
+ msg.setMetadata(value);
60221
+ break;
60222
+ case 9:
60223
+ var value = new google_protobuf_timestamp_pb.Timestamp;
60224
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
60225
+ msg.setCreatedAt(value);
60226
+ break;
60227
+ case 10:
60228
+ var value = new google_protobuf_timestamp_pb.Timestamp;
60229
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
60230
+ msg.setModifiedAt(value);
60231
+ break;
60232
+ default:
60233
+ reader.skipField();
60234
+ break;
60235
+ }
60236
+ }
60237
+ return msg;
60238
+ };
60239
+ /**
60240
+ * Serializes the message to binary data (in protobuf wire format).
60241
+ * @return {!Uint8Array}
60242
+ */
60243
+ proto.clarifai.api.PipelineVersion.prototype.serializeBinary = function () {
60244
+ var writer = new jspb.BinaryWriter();
60245
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter(this, writer);
60246
+ return writer.getResultBuffer();
60247
+ };
60248
+ /**
60249
+ * Serializes the given message to binary data (in protobuf wire
60250
+ * format), writing to the given BinaryWriter.
60251
+ * @param {!proto.clarifai.api.PipelineVersion} message
60252
+ * @param {!jspb.BinaryWriter} writer
60253
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60254
+ */
60255
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter = function (message, writer) {
60256
+ var f = undefined;
60257
+ f = message.getId();
60258
+ if (f.length > 0) {
60259
+ writer.writeString(1, f);
60260
+ }
60261
+ f = message.getAppId();
60262
+ if (f.length > 0) {
60263
+ writer.writeString(2, f);
60264
+ }
60265
+ f = message.getUserId();
60266
+ if (f.length > 0) {
60267
+ writer.writeString(3, f);
60268
+ }
60269
+ f = message.getOrchestrationSpec();
60270
+ if (f != null) {
60271
+ writer.writeMessage(4, f, proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter);
60272
+ }
60273
+ f = message.getPipelineId();
60274
+ if (f.length > 0) {
60275
+ writer.writeString(5, f);
60276
+ }
60277
+ f = message.getDescription();
60278
+ if (f.length > 0) {
60279
+ writer.writeString(6, f);
60280
+ }
60281
+ f = message.getVisibility();
60282
+ if (f != null) {
60283
+ writer.writeMessage(7, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
60284
+ }
60285
+ f = message.getMetadata();
60286
+ if (f != null) {
60287
+ writer.writeMessage(8, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
60288
+ }
60289
+ f = message.getCreatedAt();
60290
+ if (f != null) {
60291
+ writer.writeMessage(9, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
60292
+ }
60293
+ f = message.getModifiedAt();
60294
+ if (f != null) {
60295
+ writer.writeMessage(10, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
60296
+ }
60297
+ };
60298
+ /**
60299
+ * optional string id = 1;
60300
+ * @return {string}
60301
+ */
60302
+ proto.clarifai.api.PipelineVersion.prototype.getId = function () {
60303
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
60304
+ };
60305
+ /**
60306
+ * @param {string} value
60307
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60308
+ */
60309
+ proto.clarifai.api.PipelineVersion.prototype.setId = function (value) {
60310
+ return jspb.Message.setProto3StringField(this, 1, value);
60311
+ };
60312
+ /**
60313
+ * optional string app_id = 2;
60314
+ * @return {string}
60315
+ */
60316
+ proto.clarifai.api.PipelineVersion.prototype.getAppId = function () {
60317
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
60318
+ };
60319
+ /**
60320
+ * @param {string} value
60321
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60322
+ */
60323
+ proto.clarifai.api.PipelineVersion.prototype.setAppId = function (value) {
60324
+ return jspb.Message.setProto3StringField(this, 2, value);
60325
+ };
60326
+ /**
60327
+ * optional string user_id = 3;
60328
+ * @return {string}
60329
+ */
60330
+ proto.clarifai.api.PipelineVersion.prototype.getUserId = function () {
60331
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
60332
+ };
60333
+ /**
60334
+ * @param {string} value
60335
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60336
+ */
60337
+ proto.clarifai.api.PipelineVersion.prototype.setUserId = function (value) {
60338
+ return jspb.Message.setProto3StringField(this, 3, value);
60339
+ };
60340
+ /**
60341
+ * optional OrchestrationSpec orchestration_spec = 4;
60342
+ * @return {?proto.clarifai.api.OrchestrationSpec}
60343
+ */
60344
+ proto.clarifai.api.PipelineVersion.prototype.getOrchestrationSpec = function () {
60345
+ return /** @type{?proto.clarifai.api.OrchestrationSpec} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationSpec, 4));
60346
+ };
60347
+ /**
60348
+ * @param {?proto.clarifai.api.OrchestrationSpec|undefined} value
60349
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60350
+ */
60351
+ proto.clarifai.api.PipelineVersion.prototype.setOrchestrationSpec = function (value) {
60352
+ return jspb.Message.setWrapperField(this, 4, value);
60353
+ };
60354
+ /**
60355
+ * Clears the message field making it undefined.
60356
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60357
+ */
60358
+ proto.clarifai.api.PipelineVersion.prototype.clearOrchestrationSpec = function () {
60359
+ return this.setOrchestrationSpec(undefined);
60360
+ };
60361
+ /**
60362
+ * Returns whether this field is set.
60363
+ * @return {boolean}
60364
+ */
60365
+ proto.clarifai.api.PipelineVersion.prototype.hasOrchestrationSpec = function () {
60366
+ return jspb.Message.getField(this, 4) != null;
60367
+ };
60368
+ /**
60369
+ * optional string pipeline_id = 5;
60370
+ * @return {string}
60371
+ */
60372
+ proto.clarifai.api.PipelineVersion.prototype.getPipelineId = function () {
60373
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
60374
+ };
60375
+ /**
60376
+ * @param {string} value
60377
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60378
+ */
60379
+ proto.clarifai.api.PipelineVersion.prototype.setPipelineId = function (value) {
60380
+ return jspb.Message.setProto3StringField(this, 5, value);
60381
+ };
60382
+ /**
60383
+ * optional string description = 6;
60384
+ * @return {string}
60385
+ */
60386
+ proto.clarifai.api.PipelineVersion.prototype.getDescription = function () {
60387
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
60388
+ };
60389
+ /**
60390
+ * @param {string} value
60391
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60392
+ */
60393
+ proto.clarifai.api.PipelineVersion.prototype.setDescription = function (value) {
60394
+ return jspb.Message.setProto3StringField(this, 6, value);
60395
+ };
60396
+ /**
60397
+ * optional Visibility visibility = 7;
60398
+ * @return {?proto.clarifai.api.Visibility}
60399
+ */
60400
+ proto.clarifai.api.PipelineVersion.prototype.getVisibility = function () {
60401
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7));
60402
+ };
60403
+ /**
60404
+ * @param {?proto.clarifai.api.Visibility|undefined} value
60405
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60406
+ */
60407
+ proto.clarifai.api.PipelineVersion.prototype.setVisibility = function (value) {
60408
+ return jspb.Message.setWrapperField(this, 7, value);
60409
+ };
60410
+ /**
60411
+ * Clears the message field making it undefined.
60412
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60413
+ */
60414
+ proto.clarifai.api.PipelineVersion.prototype.clearVisibility = function () {
60415
+ return this.setVisibility(undefined);
60416
+ };
60417
+ /**
60418
+ * Returns whether this field is set.
60419
+ * @return {boolean}
60420
+ */
60421
+ proto.clarifai.api.PipelineVersion.prototype.hasVisibility = function () {
60422
+ return jspb.Message.getField(this, 7) != null;
60423
+ };
60424
+ /**
60425
+ * optional google.protobuf.Struct metadata = 8;
60426
+ * @return {?proto.google.protobuf.Struct}
60427
+ */
60428
+ proto.clarifai.api.PipelineVersion.prototype.getMetadata = function () {
60429
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8));
60430
+ };
60431
+ /**
60432
+ * @param {?proto.google.protobuf.Struct|undefined} value
60433
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60434
+ */
60435
+ proto.clarifai.api.PipelineVersion.prototype.setMetadata = function (value) {
60436
+ return jspb.Message.setWrapperField(this, 8, value);
60437
+ };
60438
+ /**
60439
+ * Clears the message field making it undefined.
60440
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60441
+ */
60442
+ proto.clarifai.api.PipelineVersion.prototype.clearMetadata = function () {
60443
+ return this.setMetadata(undefined);
60444
+ };
60445
+ /**
60446
+ * Returns whether this field is set.
60447
+ * @return {boolean}
60448
+ */
60449
+ proto.clarifai.api.PipelineVersion.prototype.hasMetadata = function () {
60450
+ return jspb.Message.getField(this, 8) != null;
60451
+ };
60452
+ /**
60453
+ * optional google.protobuf.Timestamp created_at = 9;
60454
+ * @return {?proto.google.protobuf.Timestamp}
60455
+ */
60456
+ proto.clarifai.api.PipelineVersion.prototype.getCreatedAt = function () {
60457
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
60458
+ };
60459
+ /**
60460
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
60461
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60462
+ */
60463
+ proto.clarifai.api.PipelineVersion.prototype.setCreatedAt = function (value) {
60464
+ return jspb.Message.setWrapperField(this, 9, value);
60465
+ };
60466
+ /**
60467
+ * Clears the message field making it undefined.
60468
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60469
+ */
60470
+ proto.clarifai.api.PipelineVersion.prototype.clearCreatedAt = function () {
60471
+ return this.setCreatedAt(undefined);
60472
+ };
60473
+ /**
60474
+ * Returns whether this field is set.
60475
+ * @return {boolean}
60476
+ */
60477
+ proto.clarifai.api.PipelineVersion.prototype.hasCreatedAt = function () {
60478
+ return jspb.Message.getField(this, 9) != null;
60479
+ };
60480
+ /**
60481
+ * optional google.protobuf.Timestamp modified_at = 10;
60482
+ * @return {?proto.google.protobuf.Timestamp}
60483
+ */
60484
+ proto.clarifai.api.PipelineVersion.prototype.getModifiedAt = function () {
60485
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
60486
+ };
60487
+ /**
60488
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
60489
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60490
+ */
60491
+ proto.clarifai.api.PipelineVersion.prototype.setModifiedAt = function (value) {
60492
+ return jspb.Message.setWrapperField(this, 10, value);
60493
+ };
60494
+ /**
60495
+ * Clears the message field making it undefined.
60496
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
60497
+ */
60498
+ proto.clarifai.api.PipelineVersion.prototype.clearModifiedAt = function () {
60499
+ return this.setModifiedAt(undefined);
60500
+ };
60501
+ /**
60502
+ * Returns whether this field is set.
60503
+ * @return {boolean}
60504
+ */
60505
+ proto.clarifai.api.PipelineVersion.prototype.hasModifiedAt = function () {
60506
+ return jspb.Message.getField(this, 10) != null;
60507
+ };
60508
+ /**
60509
+ * Oneof group definitions for this message. Each group defines the field
60510
+ * numbers belonging to that group. When of these fields' value is set, all
60511
+ * other fields in the group are cleared. During deserialization, if multiple
60512
+ * fields are encountered for a group, only the last value seen will be kept.
60513
+ * @private {!Array<!Array<number>>}
60514
+ * @const
60515
+ */
60516
+ proto.clarifai.api.OrchestrationStatus.oneofGroups_ = [[1]];
60517
+ /**
60518
+ * @enum {number}
60519
+ */
60520
+ proto.clarifai.api.OrchestrationStatus.StatusDetailsCase = {
60521
+ STATUS_DETAILS_NOT_SET: 0,
60522
+ ARGO_STATUS: 1
60523
+ };
60524
+ /**
60525
+ * @return {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase}
60526
+ */
60527
+ proto.clarifai.api.OrchestrationStatus.prototype.getStatusDetailsCase = function () {
60528
+ return /** @type {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0]));
60529
+ };
60530
+ if (jspb.Message.GENERATE_TO_OBJECT) {
60531
+ /**
60532
+ * Creates an object representation of this proto.
60533
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
60534
+ * Optional fields that are not set will be set to undefined.
60535
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
60536
+ * For the list of reserved names please see:
60537
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
60538
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60539
+ * JSPB instance for transitional soy proto support:
60540
+ * http://goto/soy-param-migration
60541
+ * @return {!Object}
60542
+ */
60543
+ proto.clarifai.api.OrchestrationStatus.prototype.toObject = function (opt_includeInstance) {
60544
+ return proto.clarifai.api.OrchestrationStatus.toObject(opt_includeInstance, this);
60545
+ };
60546
+ /**
60547
+ * Static version of the {@see toObject} method.
60548
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
60549
+ * the JSPB instance for transitional soy proto support:
60550
+ * http://goto/soy-param-migration
60551
+ * @param {!proto.clarifai.api.OrchestrationStatus} msg The msg instance to transform.
60552
+ * @return {!Object}
60553
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60554
+ */
60555
+ proto.clarifai.api.OrchestrationStatus.toObject = function (includeInstance, msg) {
60556
+ var f, obj = {
60557
+ argoStatus: (f = msg.getArgoStatus()) && proto.clarifai.api.ArgoOrchestrationStatus.toObject(includeInstance, f),
60558
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
60559
+ };
60560
+ if (includeInstance) {
60561
+ obj.$jspbMessageInstance = msg;
60562
+ }
60563
+ return obj;
60564
+ };
60565
+ }
60566
+ /**
60567
+ * Deserializes binary data (in protobuf wire format).
60568
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
60569
+ * @return {!proto.clarifai.api.OrchestrationStatus}
60570
+ */
60571
+ proto.clarifai.api.OrchestrationStatus.deserializeBinary = function (bytes) {
60572
+ var reader = new jspb.BinaryReader(bytes);
60573
+ var msg = new proto.clarifai.api.OrchestrationStatus;
60574
+ return proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader(msg, reader);
60575
+ };
60576
+ /**
60577
+ * Deserializes binary data (in protobuf wire format) from the
60578
+ * given reader into the given message object.
60579
+ * @param {!proto.clarifai.api.OrchestrationStatus} msg The message object to deserialize into.
60580
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
60581
+ * @return {!proto.clarifai.api.OrchestrationStatus}
60582
+ */
60583
+ proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader = function (msg, reader) {
60584
+ while (reader.nextField()) {
60585
+ if (reader.isEndGroup()) {
60586
+ break;
60587
+ }
60588
+ var field = reader.getFieldNumber();
60589
+ switch (field) {
60590
+ case 1:
60591
+ var value = new proto.clarifai.api.ArgoOrchestrationStatus;
60592
+ reader.readMessage(value, proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader);
60593
+ msg.setArgoStatus(value);
60594
+ break;
60595
+ case 2:
60596
+ var value = new proto_clarifai_api_status_status_pb.Status;
60597
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
60598
+ msg.setStatus(value);
60599
+ break;
60600
+ default:
60601
+ reader.skipField();
60602
+ break;
60603
+ }
60604
+ }
60605
+ return msg;
60606
+ };
60607
+ /**
60608
+ * Serializes the message to binary data (in protobuf wire format).
60609
+ * @return {!Uint8Array}
60610
+ */
60611
+ proto.clarifai.api.OrchestrationStatus.prototype.serializeBinary = function () {
60612
+ var writer = new jspb.BinaryWriter();
60613
+ proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter(this, writer);
60614
+ return writer.getResultBuffer();
60615
+ };
60616
+ /**
60617
+ * Serializes the given message to binary data (in protobuf wire
60618
+ * format), writing to the given BinaryWriter.
60619
+ * @param {!proto.clarifai.api.OrchestrationStatus} message
60620
+ * @param {!jspb.BinaryWriter} writer
60621
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60622
+ */
60623
+ proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter = function (message, writer) {
60624
+ var f = undefined;
60625
+ f = message.getArgoStatus();
60626
+ if (f != null) {
60627
+ writer.writeMessage(1, f, proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter);
60628
+ }
60629
+ f = message.getStatus();
60630
+ if (f != null) {
60631
+ writer.writeMessage(2, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
60632
+ }
60633
+ };
60634
+ /**
60635
+ * optional ArgoOrchestrationStatus argo_status = 1;
60636
+ * @return {?proto.clarifai.api.ArgoOrchestrationStatus}
60637
+ */
60638
+ proto.clarifai.api.OrchestrationStatus.prototype.getArgoStatus = function () {
60639
+ return /** @type{?proto.clarifai.api.ArgoOrchestrationStatus} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationStatus, 1));
60640
+ };
60641
+ /**
60642
+ * @param {?proto.clarifai.api.ArgoOrchestrationStatus|undefined} value
60643
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
60644
+ */
60645
+ proto.clarifai.api.OrchestrationStatus.prototype.setArgoStatus = function (value) {
60646
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0], value);
60647
+ };
60648
+ /**
60649
+ * Clears the message field making it undefined.
60650
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
60651
+ */
60652
+ proto.clarifai.api.OrchestrationStatus.prototype.clearArgoStatus = function () {
60653
+ return this.setArgoStatus(undefined);
60654
+ };
60655
+ /**
60656
+ * Returns whether this field is set.
60657
+ * @return {boolean}
60658
+ */
60659
+ proto.clarifai.api.OrchestrationStatus.prototype.hasArgoStatus = function () {
60660
+ return jspb.Message.getField(this, 1) != null;
60661
+ };
60662
+ /**
60663
+ * optional status.Status status = 2;
60664
+ * @return {?proto.clarifai.api.status.Status}
60665
+ */
60666
+ proto.clarifai.api.OrchestrationStatus.prototype.getStatus = function () {
60667
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
60668
+ };
60669
+ /**
60670
+ * @param {?proto.clarifai.api.status.Status|undefined} value
60671
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
60672
+ */
60673
+ proto.clarifai.api.OrchestrationStatus.prototype.setStatus = function (value) {
60674
+ return jspb.Message.setWrapperField(this, 2, value);
60675
+ };
60676
+ /**
60677
+ * Clears the message field making it undefined.
60678
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
60679
+ */
60680
+ proto.clarifai.api.OrchestrationStatus.prototype.clearStatus = function () {
60681
+ return this.setStatus(undefined);
60682
+ };
60683
+ /**
60684
+ * Returns whether this field is set.
60685
+ * @return {boolean}
60686
+ */
60687
+ proto.clarifai.api.OrchestrationStatus.prototype.hasStatus = function () {
60688
+ return jspb.Message.getField(this, 2) != null;
60689
+ };
60690
+ if (jspb.Message.GENERATE_TO_OBJECT) {
60691
+ /**
60692
+ * Creates an object representation of this proto.
60693
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
60694
+ * Optional fields that are not set will be set to undefined.
60695
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
60696
+ * For the list of reserved names please see:
60697
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
60698
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60699
+ * JSPB instance for transitional soy proto support:
60700
+ * http://goto/soy-param-migration
60701
+ * @return {!Object}
60702
+ */
60703
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.toObject = function (opt_includeInstance) {
60704
+ return proto.clarifai.api.ArgoOrchestrationStatus.toObject(opt_includeInstance, this);
60705
+ };
60706
+ /**
60707
+ * Static version of the {@see toObject} method.
60708
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
60709
+ * the JSPB instance for transitional soy proto support:
60710
+ * http://goto/soy-param-migration
60711
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The msg instance to transform.
60712
+ * @return {!Object}
60713
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60714
+ */
60715
+ proto.clarifai.api.ArgoOrchestrationStatus.toObject = function (includeInstance, msg) {
60716
+ var f, obj = {
60717
+ status: msg.getStatus_asB64()
60718
+ };
60719
+ if (includeInstance) {
60720
+ obj.$jspbMessageInstance = msg;
60721
+ }
60722
+ return obj;
60723
+ };
60724
+ }
60725
+ /**
60726
+ * Deserializes binary data (in protobuf wire format).
60727
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
60728
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus}
60729
+ */
60730
+ proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinary = function (bytes) {
60731
+ var reader = new jspb.BinaryReader(bytes);
60732
+ var msg = new proto.clarifai.api.ArgoOrchestrationStatus;
60733
+ return proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader(msg, reader);
60734
+ };
60735
+ /**
60736
+ * Deserializes binary data (in protobuf wire format) from the
60737
+ * given reader into the given message object.
60738
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The message object to deserialize into.
60739
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
60740
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus}
60741
+ */
60742
+ proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader = function (msg, reader) {
60743
+ while (reader.nextField()) {
60744
+ if (reader.isEndGroup()) {
60745
+ break;
60746
+ }
60747
+ var field = reader.getFieldNumber();
60748
+ switch (field) {
60749
+ case 1:
60750
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
60751
+ msg.setStatus(value);
60752
+ break;
60753
+ default:
60754
+ reader.skipField();
60755
+ break;
60756
+ }
60757
+ }
60758
+ return msg;
60759
+ };
60760
+ /**
60761
+ * Serializes the message to binary data (in protobuf wire format).
60762
+ * @return {!Uint8Array}
60763
+ */
60764
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.serializeBinary = function () {
60765
+ var writer = new jspb.BinaryWriter();
60766
+ proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter(this, writer);
60767
+ return writer.getResultBuffer();
60768
+ };
60769
+ /**
60770
+ * Serializes the given message to binary data (in protobuf wire
60771
+ * format), writing to the given BinaryWriter.
60772
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} message
60773
+ * @param {!jspb.BinaryWriter} writer
60774
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60775
+ */
60776
+ proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter = function (message, writer) {
60777
+ var f = undefined;
60778
+ f = message.getStatus_asU8();
60779
+ if (f.length > 0) {
60780
+ writer.writeBytes(1, f);
60781
+ }
60782
+ };
60783
+ /**
60784
+ * optional bytes status = 1;
60785
+ * @return {string}
60786
+ */
60787
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus = function () {
60788
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
60789
+ };
60790
+ /**
60791
+ * optional bytes status = 1;
60792
+ * This is a type-conversion wrapper around `getStatus()`
60793
+ * @return {string}
60794
+ */
60795
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus_asB64 = function () {
60796
+ return /** @type {string} */ (jspb.Message.bytesAsB64(this.getStatus()));
60797
+ };
60798
+ /**
60799
+ * optional bytes status = 1;
60800
+ * Note that Uint8Array is not supported on all browsers.
60801
+ * @see http://caniuse.com/Uint8Array
60802
+ * This is a type-conversion wrapper around `getStatus()`
60803
+ * @return {!Uint8Array}
60804
+ */
60805
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus_asU8 = function () {
60806
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getStatus()));
60807
+ };
60808
+ /**
60809
+ * @param {!(string|Uint8Array)} value
60810
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus} returns this
60811
+ */
60812
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.setStatus = function (value) {
60813
+ return jspb.Message.setProto3BytesField(this, 1, value);
60814
+ };
60815
+ /**
60816
+ * List of repeated fields within this message type.
60817
+ * @private {!Array<number>}
60818
+ * @const
60819
+ */
60820
+ proto.clarifai.api.PipelineRun.repeatedFields_ = [3];
60821
+ if (jspb.Message.GENERATE_TO_OBJECT) {
60822
+ /**
60823
+ * Creates an object representation of this proto.
60824
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
60825
+ * Optional fields that are not set will be set to undefined.
60826
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
60827
+ * For the list of reserved names please see:
60828
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
60829
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60830
+ * JSPB instance for transitional soy proto support:
60831
+ * http://goto/soy-param-migration
60832
+ * @return {!Object}
60833
+ */
60834
+ proto.clarifai.api.PipelineRun.prototype.toObject = function (opt_includeInstance) {
60835
+ return proto.clarifai.api.PipelineRun.toObject(opt_includeInstance, this);
60836
+ };
60837
+ /**
60838
+ * Static version of the {@see toObject} method.
60839
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
60840
+ * the JSPB instance for transitional soy proto support:
60841
+ * http://goto/soy-param-migration
60842
+ * @param {!proto.clarifai.api.PipelineRun} msg The msg instance to transform.
60843
+ * @return {!Object}
60844
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60845
+ */
60846
+ proto.clarifai.api.PipelineRun.toObject = function (includeInstance, msg) {
60847
+ var f, obj = {
60848
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
60849
+ pipelineVersion: (f = msg.getPipelineVersion()) && proto.clarifai.api.PipelineVersion.toObject(includeInstance, f),
60850
+ nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto.clarifai.api.Nodepool.toObject, includeInstance),
60851
+ orchestrationStatus: (f = msg.getOrchestrationStatus()) && proto.clarifai.api.OrchestrationStatus.toObject(includeInstance, f)
60852
+ };
60853
+ if (includeInstance) {
60854
+ obj.$jspbMessageInstance = msg;
60855
+ }
60856
+ return obj;
60857
+ };
60858
+ }
60859
+ /**
60860
+ * Deserializes binary data (in protobuf wire format).
60861
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
60862
+ * @return {!proto.clarifai.api.PipelineRun}
60863
+ */
60864
+ proto.clarifai.api.PipelineRun.deserializeBinary = function (bytes) {
60865
+ var reader = new jspb.BinaryReader(bytes);
60866
+ var msg = new proto.clarifai.api.PipelineRun;
60867
+ return proto.clarifai.api.PipelineRun.deserializeBinaryFromReader(msg, reader);
60868
+ };
60869
+ /**
60870
+ * Deserializes binary data (in protobuf wire format) from the
60871
+ * given reader into the given message object.
60872
+ * @param {!proto.clarifai.api.PipelineRun} msg The message object to deserialize into.
60873
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
60874
+ * @return {!proto.clarifai.api.PipelineRun}
60875
+ */
60876
+ proto.clarifai.api.PipelineRun.deserializeBinaryFromReader = function (msg, reader) {
60877
+ while (reader.nextField()) {
60878
+ if (reader.isEndGroup()) {
60879
+ break;
60880
+ }
60881
+ var field = reader.getFieldNumber();
60882
+ switch (field) {
60883
+ case 1:
60884
+ var value = /** @type {string} */ (reader.readString());
60885
+ msg.setId(value);
60886
+ break;
60887
+ case 2:
60888
+ var value = new proto.clarifai.api.PipelineVersion;
60889
+ reader.readMessage(value, proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader);
60890
+ msg.setPipelineVersion(value);
60891
+ break;
60892
+ case 3:
60893
+ var value = new proto.clarifai.api.Nodepool;
60894
+ reader.readMessage(value, proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
60895
+ msg.addNodepools(value);
60896
+ break;
60897
+ case 4:
60898
+ var value = new proto.clarifai.api.OrchestrationStatus;
60899
+ reader.readMessage(value, proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader);
60900
+ msg.setOrchestrationStatus(value);
60901
+ break;
60902
+ default:
60903
+ reader.skipField();
60904
+ break;
60905
+ }
60906
+ }
60907
+ return msg;
60908
+ };
60909
+ /**
60910
+ * Serializes the message to binary data (in protobuf wire format).
60911
+ * @return {!Uint8Array}
60912
+ */
60913
+ proto.clarifai.api.PipelineRun.prototype.serializeBinary = function () {
60914
+ var writer = new jspb.BinaryWriter();
60915
+ proto.clarifai.api.PipelineRun.serializeBinaryToWriter(this, writer);
60916
+ return writer.getResultBuffer();
60917
+ };
60918
+ /**
60919
+ * Serializes the given message to binary data (in protobuf wire
60920
+ * format), writing to the given BinaryWriter.
60921
+ * @param {!proto.clarifai.api.PipelineRun} message
60922
+ * @param {!jspb.BinaryWriter} writer
60923
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60924
+ */
60925
+ proto.clarifai.api.PipelineRun.serializeBinaryToWriter = function (message, writer) {
60926
+ var f = undefined;
60927
+ f = message.getId();
60928
+ if (f.length > 0) {
60929
+ writer.writeString(1, f);
60930
+ }
60931
+ f = message.getPipelineVersion();
60932
+ if (f != null) {
60933
+ writer.writeMessage(2, f, proto.clarifai.api.PipelineVersion.serializeBinaryToWriter);
60934
+ }
60935
+ f = message.getNodepoolsList();
60936
+ if (f.length > 0) {
60937
+ writer.writeRepeatedMessage(3, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
60938
+ }
60939
+ f = message.getOrchestrationStatus();
60940
+ if (f != null) {
60941
+ writer.writeMessage(4, f, proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter);
60942
+ }
60943
+ };
60944
+ /**
60945
+ * optional string id = 1;
60946
+ * @return {string}
60947
+ */
60948
+ proto.clarifai.api.PipelineRun.prototype.getId = function () {
60949
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
60950
+ };
60951
+ /**
60952
+ * @param {string} value
60953
+ * @return {!proto.clarifai.api.PipelineRun} returns this
60954
+ */
60955
+ proto.clarifai.api.PipelineRun.prototype.setId = function (value) {
60956
+ return jspb.Message.setProto3StringField(this, 1, value);
60957
+ };
60958
+ /**
60959
+ * optional PipelineVersion pipeline_version = 2;
60960
+ * @return {?proto.clarifai.api.PipelineVersion}
60961
+ */
60962
+ proto.clarifai.api.PipelineRun.prototype.getPipelineVersion = function () {
60963
+ return /** @type{?proto.clarifai.api.PipelineVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.PipelineVersion, 2));
60964
+ };
60965
+ /**
60966
+ * @param {?proto.clarifai.api.PipelineVersion|undefined} value
60967
+ * @return {!proto.clarifai.api.PipelineRun} returns this
60968
+ */
60969
+ proto.clarifai.api.PipelineRun.prototype.setPipelineVersion = function (value) {
60970
+ return jspb.Message.setWrapperField(this, 2, value);
60971
+ };
60972
+ /**
60973
+ * Clears the message field making it undefined.
60974
+ * @return {!proto.clarifai.api.PipelineRun} returns this
60975
+ */
60976
+ proto.clarifai.api.PipelineRun.prototype.clearPipelineVersion = function () {
60977
+ return this.setPipelineVersion(undefined);
60978
+ };
60979
+ /**
60980
+ * Returns whether this field is set.
60981
+ * @return {boolean}
60982
+ */
60983
+ proto.clarifai.api.PipelineRun.prototype.hasPipelineVersion = function () {
60984
+ return jspb.Message.getField(this, 2) != null;
60985
+ };
60986
+ /**
60987
+ * repeated Nodepool nodepools = 3;
60988
+ * @return {!Array<!proto.clarifai.api.Nodepool>}
60989
+ */
60990
+ proto.clarifai.api.PipelineRun.prototype.getNodepoolsList = function () {
60991
+ return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Nodepool, 3));
60992
+ };
60993
+ /**
60994
+ * @param {!Array<!proto.clarifai.api.Nodepool>} value
60995
+ * @return {!proto.clarifai.api.PipelineRun} returns this
60996
+ */
60997
+ proto.clarifai.api.PipelineRun.prototype.setNodepoolsList = function (value) {
60998
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
60999
+ };
61000
+ /**
61001
+ * @param {!proto.clarifai.api.Nodepool=} opt_value
61002
+ * @param {number=} opt_index
61003
+ * @return {!proto.clarifai.api.Nodepool}
61004
+ */
61005
+ proto.clarifai.api.PipelineRun.prototype.addNodepools = function (opt_value, opt_index) {
61006
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Nodepool, opt_index);
61007
+ };
61008
+ /**
61009
+ * Clears the list making it empty but non-null.
61010
+ * @return {!proto.clarifai.api.PipelineRun} returns this
61011
+ */
61012
+ proto.clarifai.api.PipelineRun.prototype.clearNodepoolsList = function () {
61013
+ return this.setNodepoolsList([]);
61014
+ };
61015
+ /**
61016
+ * optional OrchestrationStatus orchestration_status = 4;
61017
+ * @return {?proto.clarifai.api.OrchestrationStatus}
61018
+ */
61019
+ proto.clarifai.api.PipelineRun.prototype.getOrchestrationStatus = function () {
61020
+ return /** @type{?proto.clarifai.api.OrchestrationStatus} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationStatus, 4));
61021
+ };
61022
+ /**
61023
+ * @param {?proto.clarifai.api.OrchestrationStatus|undefined} value
61024
+ * @return {!proto.clarifai.api.PipelineRun} returns this
61025
+ */
61026
+ proto.clarifai.api.PipelineRun.prototype.setOrchestrationStatus = function (value) {
61027
+ return jspb.Message.setWrapperField(this, 4, value);
61028
+ };
61029
+ /**
61030
+ * Clears the message field making it undefined.
61031
+ * @return {!proto.clarifai.api.PipelineRun} returns this
61032
+ */
61033
+ proto.clarifai.api.PipelineRun.prototype.clearOrchestrationStatus = function () {
61034
+ return this.setOrchestrationStatus(undefined);
61035
+ };
61036
+ /**
61037
+ * Returns whether this field is set.
61038
+ * @return {boolean}
61039
+ */
61040
+ proto.clarifai.api.PipelineRun.prototype.hasOrchestrationStatus = function () {
61041
+ return jspb.Message.getField(this, 4) != null;
61042
+ };
58842
61043
  /**
58843
61044
  * @enum {number}
58844
61045
  */
@@ -59048,6 +61249,18 @@ proto.clarifai.api.EventType = {
59048
61249
  MODULE_DELETE: 202,
59049
61250
  MODULE_VERSION_CREATE: 203,
59050
61251
  MODULE_VERSION_UPDATE: 204,
59051
- MODULE_VERSION_DELETE: 205
61252
+ MODULE_VERSION_DELETE: 205,
61253
+ WORKFLOW_CREATE: 400,
61254
+ WORKFLOW_UPDATE: 401,
61255
+ WORKFLOW_DELETE: 402,
61256
+ WORKFLOW_VERSION_CREATE: 403,
61257
+ WORKFLOW_VERSION_UPDATE: 404,
61258
+ WORKFLOW_VERSION_DELETE: 405,
61259
+ APPLICATION_CREATE: 600,
61260
+ APPLICATION_UPDATE: 601,
61261
+ APPLICATION_DELETE: 602,
61262
+ COLLABORATOR_ADD: 700,
61263
+ COLLABORATOR_UPDATE: 701,
61264
+ COLLABORATOR_REMOVE: 702
59052
61265
  };
59053
61266
  goog.object.extend(exports, proto.clarifai.api);