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.
@@ -58,6 +58,8 @@ goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
58
58
  goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
59
59
  goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
60
60
  goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
61
+ goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationSpec', null, global);
62
+ goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationStatus', null, global);
61
63
  goog.exportSymbol('proto.clarifai.api.Audio', null, global);
62
64
  goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
63
65
  goog.exportSymbol('proto.clarifai.api.AuditLogEntry', null, global);
@@ -72,6 +74,7 @@ goog.exportSymbol('proto.clarifai.api.BookmarkOrigin.BookmarkType', null, global
72
74
  goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global);
73
75
  goog.exportSymbol('proto.clarifai.api.BuildInfo', null, global);
74
76
  goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global);
77
+ goog.exportSymbol('proto.clarifai.api.BulkOperation.AnnotationSourceCase', null, global);
75
78
  goog.exportSymbol('proto.clarifai.api.BulkOperation.InputSourceCase', null, global);
76
79
  goog.exportSymbol('proto.clarifai.api.CloudProvider', null, global);
77
80
  goog.exportSymbol('proto.clarifai.api.Cluster', null, global);
@@ -117,6 +120,7 @@ goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroup', null, global)
117
120
  goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroupType', null, global);
118
121
  goog.exportSymbol('proto.clarifai.api.DatasetVersionProcessingInfo', null, global);
119
122
  goog.exportSymbol('proto.clarifai.api.DatasetVersionRequestOrigin', null, global);
123
+ goog.exportSymbol('proto.clarifai.api.DeleteAnnotations', null, global);
120
124
  goog.exportSymbol('proto.clarifai.api.DeleteConcepts', null, global);
121
125
  goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global);
122
126
  goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global);
@@ -206,7 +210,12 @@ goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, glob
206
210
  goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
207
211
  goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
208
212
  goog.exportSymbol('proto.clarifai.api.Operation', null, global);
213
+ goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
209
214
  goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
215
+ goog.exportSymbol('proto.clarifai.api.OrchestrationSpec', null, global);
216
+ goog.exportSymbol('proto.clarifai.api.OrchestrationSpec.OrchestrationCase', null, global);
217
+ goog.exportSymbol('proto.clarifai.api.OrchestrationStatus', null, global);
218
+ goog.exportSymbol('proto.clarifai.api.OrchestrationStatus.StatusDetailsCase', null, global);
210
219
  goog.exportSymbol('proto.clarifai.api.Output', null, global);
211
220
  goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
212
221
  goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global);
@@ -216,6 +225,9 @@ goog.exportSymbol('proto.clarifai.api.Part', null, global);
216
225
  goog.exportSymbol('proto.clarifai.api.Password', null, global);
217
226
  goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global);
218
227
  goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
228
+ goog.exportSymbol('proto.clarifai.api.Pipeline', null, global);
229
+ goog.exportSymbol('proto.clarifai.api.PipelineRun', null, global);
230
+ goog.exportSymbol('proto.clarifai.api.PipelineVersion', null, global);
219
231
  goog.exportSymbol('proto.clarifai.api.Point', null, global);
220
232
  goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
221
233
  goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
@@ -3512,7 +3524,7 @@ if (goog.DEBUG && !COMPILED) {
3512
3524
  * @constructor
3513
3525
  */
3514
3526
  proto.clarifai.api.TaskReviewMetrics = function(opt_data) {
3515
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3527
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.TaskReviewMetrics.repeatedFields_, null);
3516
3528
  };
3517
3529
  goog.inherits(proto.clarifai.api.TaskReviewMetrics, jspb.Message);
3518
3530
  if (goog.DEBUG && !COMPILED) {
@@ -4299,6 +4311,27 @@ if (goog.DEBUG && !COMPILED) {
4299
4311
  */
4300
4312
  proto.clarifai.api.DatasetSplit.displayName = 'proto.clarifai.api.DatasetSplit';
4301
4313
  }
4314
+ /**
4315
+ * Generated by JsPbCodeGenerator.
4316
+ * @param {Array=} opt_data Optional initial data array, typically from a
4317
+ * server response, or constructed directly in Javascript. The array is used
4318
+ * in place and becomes part of the constructed object. It is not cloned.
4319
+ * If no data is provided, the constructed object will be empty, but still
4320
+ * valid.
4321
+ * @extends {jspb.Message}
4322
+ * @constructor
4323
+ */
4324
+ proto.clarifai.api.DeleteAnnotations = function(opt_data) {
4325
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4326
+ };
4327
+ goog.inherits(proto.clarifai.api.DeleteAnnotations, jspb.Message);
4328
+ if (goog.DEBUG && !COMPILED) {
4329
+ /**
4330
+ * @public
4331
+ * @override
4332
+ */
4333
+ proto.clarifai.api.DeleteAnnotations.displayName = 'proto.clarifai.api.DeleteAnnotations';
4334
+ }
4302
4335
  /**
4303
4336
  * Generated by JsPbCodeGenerator.
4304
4337
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4950,6 +4983,153 @@ if (goog.DEBUG && !COMPILED) {
4950
4983
  */
4951
4984
  proto.clarifai.api.ComputeSourceMetadata.displayName = 'proto.clarifai.api.ComputeSourceMetadata';
4952
4985
  }
4986
+ /**
4987
+ * Generated by JsPbCodeGenerator.
4988
+ * @param {Array=} opt_data Optional initial data array, typically from a
4989
+ * server response, or constructed directly in Javascript. The array is used
4990
+ * in place and becomes part of the constructed object. It is not cloned.
4991
+ * If no data is provided, the constructed object will be empty, but still
4992
+ * valid.
4993
+ * @extends {jspb.Message}
4994
+ * @constructor
4995
+ */
4996
+ proto.clarifai.api.ArgoOrchestrationSpec = function(opt_data) {
4997
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4998
+ };
4999
+ goog.inherits(proto.clarifai.api.ArgoOrchestrationSpec, jspb.Message);
5000
+ if (goog.DEBUG && !COMPILED) {
5001
+ /**
5002
+ * @public
5003
+ * @override
5004
+ */
5005
+ proto.clarifai.api.ArgoOrchestrationSpec.displayName = 'proto.clarifai.api.ArgoOrchestrationSpec';
5006
+ }
5007
+ /**
5008
+ * Generated by JsPbCodeGenerator.
5009
+ * @param {Array=} opt_data Optional initial data array, typically from a
5010
+ * server response, or constructed directly in Javascript. The array is used
5011
+ * in place and becomes part of the constructed object. It is not cloned.
5012
+ * If no data is provided, the constructed object will be empty, but still
5013
+ * valid.
5014
+ * @extends {jspb.Message}
5015
+ * @constructor
5016
+ */
5017
+ proto.clarifai.api.OrchestrationSpec = function(opt_data) {
5018
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationSpec.oneofGroups_);
5019
+ };
5020
+ goog.inherits(proto.clarifai.api.OrchestrationSpec, jspb.Message);
5021
+ if (goog.DEBUG && !COMPILED) {
5022
+ /**
5023
+ * @public
5024
+ * @override
5025
+ */
5026
+ proto.clarifai.api.OrchestrationSpec.displayName = 'proto.clarifai.api.OrchestrationSpec';
5027
+ }
5028
+ /**
5029
+ * Generated by JsPbCodeGenerator.
5030
+ * @param {Array=} opt_data Optional initial data array, typically from a
5031
+ * server response, or constructed directly in Javascript. The array is used
5032
+ * in place and becomes part of the constructed object. It is not cloned.
5033
+ * If no data is provided, the constructed object will be empty, but still
5034
+ * valid.
5035
+ * @extends {jspb.Message}
5036
+ * @constructor
5037
+ */
5038
+ proto.clarifai.api.Pipeline = function(opt_data) {
5039
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5040
+ };
5041
+ goog.inherits(proto.clarifai.api.Pipeline, jspb.Message);
5042
+ if (goog.DEBUG && !COMPILED) {
5043
+ /**
5044
+ * @public
5045
+ * @override
5046
+ */
5047
+ proto.clarifai.api.Pipeline.displayName = 'proto.clarifai.api.Pipeline';
5048
+ }
5049
+ /**
5050
+ * Generated by JsPbCodeGenerator.
5051
+ * @param {Array=} opt_data Optional initial data array, typically from a
5052
+ * server response, or constructed directly in Javascript. The array is used
5053
+ * in place and becomes part of the constructed object. It is not cloned.
5054
+ * If no data is provided, the constructed object will be empty, but still
5055
+ * valid.
5056
+ * @extends {jspb.Message}
5057
+ * @constructor
5058
+ */
5059
+ proto.clarifai.api.PipelineVersion = function(opt_data) {
5060
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5061
+ };
5062
+ goog.inherits(proto.clarifai.api.PipelineVersion, jspb.Message);
5063
+ if (goog.DEBUG && !COMPILED) {
5064
+ /**
5065
+ * @public
5066
+ * @override
5067
+ */
5068
+ proto.clarifai.api.PipelineVersion.displayName = 'proto.clarifai.api.PipelineVersion';
5069
+ }
5070
+ /**
5071
+ * Generated by JsPbCodeGenerator.
5072
+ * @param {Array=} opt_data Optional initial data array, typically from a
5073
+ * server response, or constructed directly in Javascript. The array is used
5074
+ * in place and becomes part of the constructed object. It is not cloned.
5075
+ * If no data is provided, the constructed object will be empty, but still
5076
+ * valid.
5077
+ * @extends {jspb.Message}
5078
+ * @constructor
5079
+ */
5080
+ proto.clarifai.api.OrchestrationStatus = function(opt_data) {
5081
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationStatus.oneofGroups_);
5082
+ };
5083
+ goog.inherits(proto.clarifai.api.OrchestrationStatus, jspb.Message);
5084
+ if (goog.DEBUG && !COMPILED) {
5085
+ /**
5086
+ * @public
5087
+ * @override
5088
+ */
5089
+ proto.clarifai.api.OrchestrationStatus.displayName = 'proto.clarifai.api.OrchestrationStatus';
5090
+ }
5091
+ /**
5092
+ * Generated by JsPbCodeGenerator.
5093
+ * @param {Array=} opt_data Optional initial data array, typically from a
5094
+ * server response, or constructed directly in Javascript. The array is used
5095
+ * in place and becomes part of the constructed object. It is not cloned.
5096
+ * If no data is provided, the constructed object will be empty, but still
5097
+ * valid.
5098
+ * @extends {jspb.Message}
5099
+ * @constructor
5100
+ */
5101
+ proto.clarifai.api.ArgoOrchestrationStatus = function(opt_data) {
5102
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5103
+ };
5104
+ goog.inherits(proto.clarifai.api.ArgoOrchestrationStatus, jspb.Message);
5105
+ if (goog.DEBUG && !COMPILED) {
5106
+ /**
5107
+ * @public
5108
+ * @override
5109
+ */
5110
+ proto.clarifai.api.ArgoOrchestrationStatus.displayName = 'proto.clarifai.api.ArgoOrchestrationStatus';
5111
+ }
5112
+ /**
5113
+ * Generated by JsPbCodeGenerator.
5114
+ * @param {Array=} opt_data Optional initial data array, typically from a
5115
+ * server response, or constructed directly in Javascript. The array is used
5116
+ * in place and becomes part of the constructed object. It is not cloned.
5117
+ * If no data is provided, the constructed object will be empty, but still
5118
+ * valid.
5119
+ * @extends {jspb.Message}
5120
+ * @constructor
5121
+ */
5122
+ proto.clarifai.api.PipelineRun = function(opt_data) {
5123
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PipelineRun.repeatedFields_, null);
5124
+ };
5125
+ goog.inherits(proto.clarifai.api.PipelineRun, jspb.Message);
5126
+ if (goog.DEBUG && !COMPILED) {
5127
+ /**
5128
+ * @public
5129
+ * @override
5130
+ */
5131
+ proto.clarifai.api.PipelineRun.displayName = 'proto.clarifai.api.PipelineRun';
5132
+ }
4953
5133
 
4954
5134
 
4955
5135
 
@@ -17812,7 +17992,8 @@ proto.clarifai.api.Image.toObject = function(includeInstance, msg) {
17812
17992
  allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
17813
17993
  hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f),
17814
17994
  imageInfo: (f = msg.getImageInfo()) && proto.clarifai.api.ImageInfo.toObject(includeInstance, f),
17815
- hostedImageInfoMap: (f = msg.getHostedImageInfoMap()) ? f.toObject(includeInstance, proto.clarifai.api.ImageInfo.toObject) : []
17995
+ hostedImageInfoMap: (f = msg.getHostedImageInfoMap()) ? f.toObject(includeInstance, proto.clarifai.api.ImageInfo.toObject) : [],
17996
+ decodedBytes: msg.getDecodedBytes_asB64()
17816
17997
  };
17817
17998
 
17818
17999
  if (includeInstance) {
@@ -17877,6 +18058,10 @@ proto.clarifai.api.Image.deserializeBinaryFromReader = function(msg, reader) {
17877
18058
  jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.ImageInfo.deserializeBinaryFromReader, "", new proto.clarifai.api.ImageInfo());
17878
18059
  });
17879
18060
  break;
18061
+ case 8:
18062
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
18063
+ msg.setDecodedBytes(value);
18064
+ break;
17880
18065
  default:
17881
18066
  reader.skipField();
17882
18067
  break;
@@ -17947,6 +18132,13 @@ proto.clarifai.api.Image.serializeBinaryToWriter = function(message, writer) {
17947
18132
  if (f && f.getLength() > 0) {
17948
18133
  f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.ImageInfo.serializeBinaryToWriter);
17949
18134
  }
18135
+ f = message.getDecodedBytes_asU8();
18136
+ if (f.length > 0) {
18137
+ writer.writeBytes(
18138
+ 8,
18139
+ f
18140
+ );
18141
+ }
17950
18142
  };
17951
18143
 
17952
18144
 
@@ -18125,6 +18317,48 @@ proto.clarifai.api.Image.prototype.clearHostedImageInfoMap = function() {
18125
18317
  };
18126
18318
 
18127
18319
 
18320
+ /**
18321
+ * optional bytes decoded_bytes = 8;
18322
+ * @return {string}
18323
+ */
18324
+ proto.clarifai.api.Image.prototype.getDecodedBytes = function() {
18325
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
18326
+ };
18327
+
18328
+
18329
+ /**
18330
+ * optional bytes decoded_bytes = 8;
18331
+ * This is a type-conversion wrapper around `getDecodedBytes()`
18332
+ * @return {string}
18333
+ */
18334
+ proto.clarifai.api.Image.prototype.getDecodedBytes_asB64 = function() {
18335
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
18336
+ this.getDecodedBytes()));
18337
+ };
18338
+
18339
+
18340
+ /**
18341
+ * optional bytes decoded_bytes = 8;
18342
+ * Note that Uint8Array is not supported on all browsers.
18343
+ * @see http://caniuse.com/Uint8Array
18344
+ * This is a type-conversion wrapper around `getDecodedBytes()`
18345
+ * @return {!Uint8Array}
18346
+ */
18347
+ proto.clarifai.api.Image.prototype.getDecodedBytes_asU8 = function() {
18348
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
18349
+ this.getDecodedBytes()));
18350
+ };
18351
+
18352
+
18353
+ /**
18354
+ * @param {!(string|Uint8Array)} value
18355
+ * @return {!proto.clarifai.api.Image} returns this
18356
+ */
18357
+ proto.clarifai.api.Image.prototype.setDecodedBytes = function(value) {
18358
+ return jspb.Message.setProto3BytesField(this, 8, value);
18359
+ };
18360
+
18361
+
18128
18362
 
18129
18363
 
18130
18364
 
@@ -18160,7 +18394,8 @@ proto.clarifai.api.ImageInfo.toObject = function(includeInstance, msg) {
18160
18394
  width: jspb.Message.getFieldWithDefault(msg, 1, 0),
18161
18395
  height: jspb.Message.getFieldWithDefault(msg, 2, 0),
18162
18396
  format: jspb.Message.getFieldWithDefault(msg, 3, ""),
18163
- colorMode: jspb.Message.getFieldWithDefault(msg, 4, "")
18397
+ colorMode: jspb.Message.getFieldWithDefault(msg, 4, ""),
18398
+ mode: jspb.Message.getFieldWithDefault(msg, 5, "")
18164
18399
  };
18165
18400
 
18166
18401
  if (includeInstance) {
@@ -18213,6 +18448,10 @@ proto.clarifai.api.ImageInfo.deserializeBinaryFromReader = function(msg, reader)
18213
18448
  var value = /** @type {string} */ (reader.readString());
18214
18449
  msg.setColorMode(value);
18215
18450
  break;
18451
+ case 5:
18452
+ var value = /** @type {string} */ (reader.readString());
18453
+ msg.setMode(value);
18454
+ break;
18216
18455
  default:
18217
18456
  reader.skipField();
18218
18457
  break;
@@ -18270,6 +18509,13 @@ proto.clarifai.api.ImageInfo.serializeBinaryToWriter = function(message, writer)
18270
18509
  f
18271
18510
  );
18272
18511
  }
18512
+ f = message.getMode();
18513
+ if (f.length > 0) {
18514
+ writer.writeString(
18515
+ 5,
18516
+ f
18517
+ );
18518
+ }
18273
18519
  };
18274
18520
 
18275
18521
 
@@ -18345,6 +18591,24 @@ proto.clarifai.api.ImageInfo.prototype.setColorMode = function(value) {
18345
18591
  };
18346
18592
 
18347
18593
 
18594
+ /**
18595
+ * optional string mode = 5;
18596
+ * @return {string}
18597
+ */
18598
+ proto.clarifai.api.ImageInfo.prototype.getMode = function() {
18599
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
18600
+ };
18601
+
18602
+
18603
+ /**
18604
+ * @param {string} value
18605
+ * @return {!proto.clarifai.api.ImageInfo} returns this
18606
+ */
18607
+ proto.clarifai.api.ImageInfo.prototype.setMode = function(value) {
18608
+ return jspb.Message.setProto3StringField(this, 5, value);
18609
+ };
18610
+
18611
+
18348
18612
 
18349
18613
  /**
18350
18614
  * List of repeated fields within this message type.
@@ -54081,6 +54345,13 @@ proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = functio
54081
54345
 
54082
54346
 
54083
54347
 
54348
+ /**
54349
+ * List of repeated fields within this message type.
54350
+ * @private {!Array<number>}
54351
+ * @const
54352
+ */
54353
+ proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3];
54354
+
54084
54355
 
54085
54356
 
54086
54357
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -54113,6 +54384,7 @@ proto.clarifai.api.TaskReviewMetrics.prototype.toObject = function(opt_includeIn
54113
54384
  proto.clarifai.api.TaskReviewMetrics.toObject = function(includeInstance, msg) {
54114
54385
  var f, obj = {
54115
54386
  inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
54387
+ inputsCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
54116
54388
  inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
54117
54389
  };
54118
54390
 
@@ -54154,6 +54426,12 @@ proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function(msg,
54154
54426
  var value = /** @type {number} */ (reader.readUint64());
54155
54427
  msg.setInputsCountEstimated(value);
54156
54428
  break;
54429
+ case 3:
54430
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
54431
+ for (var i = 0; i < values.length; i++) {
54432
+ msg.addInputsCountEstimatedPerReviewer(values[i]);
54433
+ }
54434
+ break;
54157
54435
  case 2:
54158
54436
  var value = /** @type {number} */ (reader.readUint32());
54159
54437
  msg.setInputsPercentEstimated(value);
@@ -54194,6 +54472,13 @@ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function(message,
54194
54472
  f
54195
54473
  );
54196
54474
  }
54475
+ f = message.getInputsCountEstimatedPerReviewerList();
54476
+ if (f.length > 0) {
54477
+ writer.writePackedUint64(
54478
+ 3,
54479
+ f
54480
+ );
54481
+ }
54197
54482
  f = message.getInputsPercentEstimated();
54198
54483
  if (f !== 0) {
54199
54484
  writer.writeUint32(
@@ -54222,6 +54507,43 @@ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = functio
54222
54507
  };
54223
54508
 
54224
54509
 
54510
+ /**
54511
+ * repeated uint64 inputs_count_estimated_per_reviewer = 3;
54512
+ * @return {!Array<number>}
54513
+ */
54514
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimatedPerReviewerList = function() {
54515
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
54516
+ };
54517
+
54518
+
54519
+ /**
54520
+ * @param {!Array<number>} value
54521
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
54522
+ */
54523
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimatedPerReviewerList = function(value) {
54524
+ return jspb.Message.setField(this, 3, value || []);
54525
+ };
54526
+
54527
+
54528
+ /**
54529
+ * @param {number} value
54530
+ * @param {number=} opt_index
54531
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
54532
+ */
54533
+ proto.clarifai.api.TaskReviewMetrics.prototype.addInputsCountEstimatedPerReviewer = function(value, opt_index) {
54534
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
54535
+ };
54536
+
54537
+
54538
+ /**
54539
+ * Clears the list making it empty but non-null.
54540
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
54541
+ */
54542
+ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsCountEstimatedPerReviewerList = function() {
54543
+ return this.setInputsCountEstimatedPerReviewerList([]);
54544
+ };
54545
+
54546
+
54225
54547
  /**
54226
54548
  * optional uint32 inputs_percent_estimated = 2;
54227
54549
  * @return {number}
@@ -60438,7 +60760,7 @@ proto.clarifai.api.InstalledModuleVersion.prototype.setKeyId = function(value) {
60438
60760
  * @private {!Array<!Array<number>>}
60439
60761
  * @const
60440
60762
  */
60441
- proto.clarifai.api.BulkOperation.oneofGroups_ = [[2,10,11]];
60763
+ proto.clarifai.api.BulkOperation.oneofGroups_ = [[2,10,11],[12]];
60442
60764
 
60443
60765
  /**
60444
60766
  * @enum {number}
@@ -60457,6 +60779,21 @@ proto.clarifai.api.BulkOperation.prototype.getInputSourceCase = function() {
60457
60779
  return /** @type {proto.clarifai.api.BulkOperation.InputSourceCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.BulkOperation.oneofGroups_[0]));
60458
60780
  };
60459
60781
 
60782
+ /**
60783
+ * @enum {number}
60784
+ */
60785
+ proto.clarifai.api.BulkOperation.AnnotationSourceCase = {
60786
+ ANNOTATION_SOURCE_NOT_SET: 0,
60787
+ ANNOTATION_SEARCH: 12
60788
+ };
60789
+
60790
+ /**
60791
+ * @return {proto.clarifai.api.BulkOperation.AnnotationSourceCase}
60792
+ */
60793
+ proto.clarifai.api.BulkOperation.prototype.getAnnotationSourceCase = function() {
60794
+ return /** @type {proto.clarifai.api.BulkOperation.AnnotationSourceCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.BulkOperation.oneofGroups_[1]));
60795
+ };
60796
+
60460
60797
 
60461
60798
 
60462
60799
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -60492,6 +60829,7 @@ proto.clarifai.api.BulkOperation.toObject = function(includeInstance, msg) {
60492
60829
  inputIds: (f = msg.getInputIds()) && proto.clarifai.api.InputIDs.toObject(includeInstance, f),
60493
60830
  search: (f = msg.getSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f),
60494
60831
  dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f),
60832
+ annotationSearch: (f = msg.getAnnotationSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f),
60495
60833
  operation: (f = msg.getOperation()) && proto.clarifai.api.Operation.toObject(includeInstance, f),
60496
60834
  appId: jspb.Message.getFieldWithDefault(msg, 4, ""),
60497
60835
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
@@ -60554,6 +60892,11 @@ proto.clarifai.api.BulkOperation.deserializeBinaryFromReader = function(msg, rea
60554
60892
  reader.readMessage(value,proto.clarifai.api.Dataset.deserializeBinaryFromReader);
60555
60893
  msg.setDataset(value);
60556
60894
  break;
60895
+ case 12:
60896
+ var value = new proto.clarifai.api.Search;
60897
+ reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader);
60898
+ msg.setAnnotationSearch(value);
60899
+ break;
60557
60900
  case 3:
60558
60901
  var value = new proto.clarifai.api.Operation;
60559
60902
  reader.readMessage(value,proto.clarifai.api.Operation.deserializeBinaryFromReader);
@@ -60647,6 +60990,14 @@ proto.clarifai.api.BulkOperation.serializeBinaryToWriter = function(message, wri
60647
60990
  proto.clarifai.api.Dataset.serializeBinaryToWriter
60648
60991
  );
60649
60992
  }
60993
+ f = message.getAnnotationSearch();
60994
+ if (f != null) {
60995
+ writer.writeMessage(
60996
+ 12,
60997
+ f,
60998
+ proto.clarifai.api.Search.serializeBinaryToWriter
60999
+ );
61000
+ }
60650
61001
  f = message.getOperation();
60651
61002
  if (f != null) {
60652
61003
  writer.writeMessage(
@@ -60833,6 +61184,43 @@ proto.clarifai.api.BulkOperation.prototype.hasDataset = function() {
60833
61184
  };
60834
61185
 
60835
61186
 
61187
+ /**
61188
+ * optional Search annotation_search = 12;
61189
+ * @return {?proto.clarifai.api.Search}
61190
+ */
61191
+ proto.clarifai.api.BulkOperation.prototype.getAnnotationSearch = function() {
61192
+ return /** @type{?proto.clarifai.api.Search} */ (
61193
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 12));
61194
+ };
61195
+
61196
+
61197
+ /**
61198
+ * @param {?proto.clarifai.api.Search|undefined} value
61199
+ * @return {!proto.clarifai.api.BulkOperation} returns this
61200
+ */
61201
+ proto.clarifai.api.BulkOperation.prototype.setAnnotationSearch = function(value) {
61202
+ return jspb.Message.setOneofWrapperField(this, 12, proto.clarifai.api.BulkOperation.oneofGroups_[1], value);
61203
+ };
61204
+
61205
+
61206
+ /**
61207
+ * Clears the message field making it undefined.
61208
+ * @return {!proto.clarifai.api.BulkOperation} returns this
61209
+ */
61210
+ proto.clarifai.api.BulkOperation.prototype.clearAnnotationSearch = function() {
61211
+ return this.setAnnotationSearch(undefined);
61212
+ };
61213
+
61214
+
61215
+ /**
61216
+ * Returns whether this field is set.
61217
+ * @return {boolean}
61218
+ */
61219
+ proto.clarifai.api.BulkOperation.prototype.hasAnnotationSearch = function() {
61220
+ return jspb.Message.getField(this, 12) != null;
61221
+ };
61222
+
61223
+
60836
61224
  /**
60837
61225
  * optional Operation operation = 3;
60838
61226
  * @return {?proto.clarifai.api.Operation}
@@ -61379,7 +61767,7 @@ proto.clarifai.api.Progress.prototype.setLastProcessedId = function(value) {
61379
61767
  * @private {!Array<!Array<number>>}
61380
61768
  * @const
61381
61769
  */
61382
- proto.clarifai.api.Operation.oneofGroups_ = [[1,2,3,4,5,6,7,8,9]];
61770
+ proto.clarifai.api.Operation.oneofGroups_ = [[1,2,3,4,5,6,7,8,9],[10]];
61383
61771
 
61384
61772
  /**
61385
61773
  * @enum {number}
@@ -61404,6 +61792,21 @@ proto.clarifai.api.Operation.prototype.getOperationCase = function() {
61404
61792
  return /** @type {proto.clarifai.api.Operation.OperationCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Operation.oneofGroups_[0]));
61405
61793
  };
61406
61794
 
61795
+ /**
61796
+ * @enum {number}
61797
+ */
61798
+ proto.clarifai.api.Operation.AnnotationOperationCase = {
61799
+ ANNOTATION_OPERATION_NOT_SET: 0,
61800
+ DELETE_ANNOTATIONS: 10
61801
+ };
61802
+
61803
+ /**
61804
+ * @return {proto.clarifai.api.Operation.AnnotationOperationCase}
61805
+ */
61806
+ proto.clarifai.api.Operation.prototype.getAnnotationOperationCase = function() {
61807
+ return /** @type {proto.clarifai.api.Operation.AnnotationOperationCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Operation.oneofGroups_[1]));
61808
+ };
61809
+
61407
61810
 
61408
61811
 
61409
61812
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -61443,7 +61846,8 @@ proto.clarifai.api.Operation.toObject = function(includeInstance, msg) {
61443
61846
  deleteGeo: (f = msg.getDeleteGeo()) && proto.clarifai.api.DeleteGeo.toObject(includeInstance, f),
61444
61847
  deleteFromDataset: (f = msg.getDeleteFromDataset()) && proto.clarifai.api.DeleteFromDataset.toObject(includeInstance, f),
61445
61848
  addToDataset: (f = msg.getAddToDataset()) && proto.clarifai.api.AddToDataset.toObject(includeInstance, f),
61446
- splitIntoDatasets: (f = msg.getSplitIntoDatasets()) && proto.clarifai.api.SplitIntoDatasets.toObject(includeInstance, f)
61849
+ splitIntoDatasets: (f = msg.getSplitIntoDatasets()) && proto.clarifai.api.SplitIntoDatasets.toObject(includeInstance, f),
61850
+ deleteAnnotations: (f = msg.getDeleteAnnotations()) && proto.clarifai.api.DeleteAnnotations.toObject(includeInstance, f)
61447
61851
  };
61448
61852
 
61449
61853
  if (includeInstance) {
@@ -61525,6 +61929,11 @@ proto.clarifai.api.Operation.deserializeBinaryFromReader = function(msg, reader)
61525
61929
  reader.readMessage(value,proto.clarifai.api.SplitIntoDatasets.deserializeBinaryFromReader);
61526
61930
  msg.setSplitIntoDatasets(value);
61527
61931
  break;
61932
+ case 10:
61933
+ var value = new proto.clarifai.api.DeleteAnnotations;
61934
+ reader.readMessage(value,proto.clarifai.api.DeleteAnnotations.deserializeBinaryFromReader);
61935
+ msg.setDeleteAnnotations(value);
61936
+ break;
61528
61937
  default:
61529
61938
  reader.skipField();
61530
61939
  break;
@@ -61626,6 +62035,14 @@ proto.clarifai.api.Operation.serializeBinaryToWriter = function(message, writer)
61626
62035
  proto.clarifai.api.SplitIntoDatasets.serializeBinaryToWriter
61627
62036
  );
61628
62037
  }
62038
+ f = message.getDeleteAnnotations();
62039
+ if (f != null) {
62040
+ writer.writeMessage(
62041
+ 10,
62042
+ f,
62043
+ proto.clarifai.api.DeleteAnnotations.serializeBinaryToWriter
62044
+ );
62045
+ }
61629
62046
  };
61630
62047
 
61631
62048
 
@@ -61962,6 +62379,43 @@ proto.clarifai.api.Operation.prototype.hasSplitIntoDatasets = function() {
61962
62379
  };
61963
62380
 
61964
62381
 
62382
+ /**
62383
+ * optional DeleteAnnotations delete_annotations = 10;
62384
+ * @return {?proto.clarifai.api.DeleteAnnotations}
62385
+ */
62386
+ proto.clarifai.api.Operation.prototype.getDeleteAnnotations = function() {
62387
+ return /** @type{?proto.clarifai.api.DeleteAnnotations} */ (
62388
+ jspb.Message.getWrapperField(this, proto.clarifai.api.DeleteAnnotations, 10));
62389
+ };
62390
+
62391
+
62392
+ /**
62393
+ * @param {?proto.clarifai.api.DeleteAnnotations|undefined} value
62394
+ * @return {!proto.clarifai.api.Operation} returns this
62395
+ */
62396
+ proto.clarifai.api.Operation.prototype.setDeleteAnnotations = function(value) {
62397
+ return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.Operation.oneofGroups_[1], value);
62398
+ };
62399
+
62400
+
62401
+ /**
62402
+ * Clears the message field making it undefined.
62403
+ * @return {!proto.clarifai.api.Operation} returns this
62404
+ */
62405
+ proto.clarifai.api.Operation.prototype.clearDeleteAnnotations = function() {
62406
+ return this.setDeleteAnnotations(undefined);
62407
+ };
62408
+
62409
+
62410
+ /**
62411
+ * Returns whether this field is set.
62412
+ * @return {boolean}
62413
+ */
62414
+ proto.clarifai.api.Operation.prototype.hasDeleteAnnotations = function() {
62415
+ return jspb.Message.getField(this, 10) != null;
62416
+ };
62417
+
62418
+
61965
62419
 
61966
62420
  /**
61967
62421
  * List of repeated fields within this message type.
@@ -63568,6 +64022,107 @@ proto.clarifai.api.DatasetSplit.prototype.hasPercentage = function() {
63568
64022
 
63569
64023
 
63570
64024
 
64025
+
64026
+
64027
+ if (jspb.Message.GENERATE_TO_OBJECT) {
64028
+ /**
64029
+ * Creates an object representation of this proto.
64030
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64031
+ * Optional fields that are not set will be set to undefined.
64032
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
64033
+ * For the list of reserved names please see:
64034
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
64035
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64036
+ * JSPB instance for transitional soy proto support:
64037
+ * http://goto/soy-param-migration
64038
+ * @return {!Object}
64039
+ */
64040
+ proto.clarifai.api.DeleteAnnotations.prototype.toObject = function(opt_includeInstance) {
64041
+ return proto.clarifai.api.DeleteAnnotations.toObject(opt_includeInstance, this);
64042
+ };
64043
+
64044
+
64045
+ /**
64046
+ * Static version of the {@see toObject} method.
64047
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64048
+ * the JSPB instance for transitional soy proto support:
64049
+ * http://goto/soy-param-migration
64050
+ * @param {!proto.clarifai.api.DeleteAnnotations} msg The msg instance to transform.
64051
+ * @return {!Object}
64052
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64053
+ */
64054
+ proto.clarifai.api.DeleteAnnotations.toObject = function(includeInstance, msg) {
64055
+ var f, obj = {
64056
+
64057
+ };
64058
+
64059
+ if (includeInstance) {
64060
+ obj.$jspbMessageInstance = msg;
64061
+ }
64062
+ return obj;
64063
+ };
64064
+ }
64065
+
64066
+
64067
+ /**
64068
+ * Deserializes binary data (in protobuf wire format).
64069
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
64070
+ * @return {!proto.clarifai.api.DeleteAnnotations}
64071
+ */
64072
+ proto.clarifai.api.DeleteAnnotations.deserializeBinary = function(bytes) {
64073
+ var reader = new jspb.BinaryReader(bytes);
64074
+ var msg = new proto.clarifai.api.DeleteAnnotations;
64075
+ return proto.clarifai.api.DeleteAnnotations.deserializeBinaryFromReader(msg, reader);
64076
+ };
64077
+
64078
+
64079
+ /**
64080
+ * Deserializes binary data (in protobuf wire format) from the
64081
+ * given reader into the given message object.
64082
+ * @param {!proto.clarifai.api.DeleteAnnotations} msg The message object to deserialize into.
64083
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
64084
+ * @return {!proto.clarifai.api.DeleteAnnotations}
64085
+ */
64086
+ proto.clarifai.api.DeleteAnnotations.deserializeBinaryFromReader = function(msg, reader) {
64087
+ while (reader.nextField()) {
64088
+ if (reader.isEndGroup()) {
64089
+ break;
64090
+ }
64091
+ var field = reader.getFieldNumber();
64092
+ switch (field) {
64093
+ default:
64094
+ reader.skipField();
64095
+ break;
64096
+ }
64097
+ }
64098
+ return msg;
64099
+ };
64100
+
64101
+
64102
+ /**
64103
+ * Serializes the message to binary data (in protobuf wire format).
64104
+ * @return {!Uint8Array}
64105
+ */
64106
+ proto.clarifai.api.DeleteAnnotations.prototype.serializeBinary = function() {
64107
+ var writer = new jspb.BinaryWriter();
64108
+ proto.clarifai.api.DeleteAnnotations.serializeBinaryToWriter(this, writer);
64109
+ return writer.getResultBuffer();
64110
+ };
64111
+
64112
+
64113
+ /**
64114
+ * Serializes the given message to binary data (in protobuf wire
64115
+ * format), writing to the given BinaryWriter.
64116
+ * @param {!proto.clarifai.api.DeleteAnnotations} message
64117
+ * @param {!jspb.BinaryWriter} writer
64118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64119
+ */
64120
+ proto.clarifai.api.DeleteAnnotations.serializeBinaryToWriter = function(message, writer) {
64121
+ var f = undefined;
64122
+ };
64123
+
64124
+
64125
+
63571
64126
  /**
63572
64127
  * List of repeated fields within this message type.
63573
64128
  * @private {!Array<number>}
@@ -71205,7 +71760,7 @@ proto.clarifai.api.ProcessingInfo.prototype.setProcessingId = function(value) {
71205
71760
  * @private {!Array<!Array<number>>}
71206
71761
  * @const
71207
71762
  */
71208
- proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1,2,3,4,5,6]];
71763
+ proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1,2,3,4,5,6,7,8]];
71209
71764
 
71210
71765
  /**
71211
71766
  * @enum {number}
@@ -71217,7 +71772,9 @@ proto.clarifai.api.AuditLogTarget.TargetCase = {
71217
71772
  TEAM: 3,
71218
71773
  APP: 4,
71219
71774
  MODULE: 5,
71220
- MODULE_VERSION: 6
71775
+ MODULE_VERSION: 6,
71776
+ WORKFLOW: 7,
71777
+ WORKFLOW_VERSION: 8
71221
71778
  };
71222
71779
 
71223
71780
  /**
@@ -71263,7 +71820,9 @@ proto.clarifai.api.AuditLogTarget.toObject = function(includeInstance, msg) {
71263
71820
  team: (f = msg.getTeam()) && proto.clarifai.api.Team.toObject(includeInstance, f),
71264
71821
  app: (f = msg.getApp()) && proto.clarifai.api.App.toObject(includeInstance, f),
71265
71822
  module: (f = msg.getModule()) && proto.clarifai.api.Module.toObject(includeInstance, f),
71266
- moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f)
71823
+ moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f),
71824
+ workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
71825
+ workflowVersion: (f = msg.getWorkflowVersion()) && proto.clarifai.api.WorkflowVersion.toObject(includeInstance, f)
71267
71826
  };
71268
71827
 
71269
71828
  if (includeInstance) {
@@ -71330,6 +71889,16 @@ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function(msg, re
71330
71889
  reader.readMessage(value,proto.clarifai.api.ModuleVersion.deserializeBinaryFromReader);
71331
71890
  msg.setModuleVersion(value);
71332
71891
  break;
71892
+ case 7:
71893
+ var value = new proto.clarifai.api.Workflow;
71894
+ reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
71895
+ msg.setWorkflow(value);
71896
+ break;
71897
+ case 8:
71898
+ var value = new proto.clarifai.api.WorkflowVersion;
71899
+ reader.readMessage(value,proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader);
71900
+ msg.setWorkflowVersion(value);
71901
+ break;
71333
71902
  default:
71334
71903
  reader.skipField();
71335
71904
  break;
@@ -71407,6 +71976,22 @@ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function(message, wr
71407
71976
  proto.clarifai.api.ModuleVersion.serializeBinaryToWriter
71408
71977
  );
71409
71978
  }
71979
+ f = message.getWorkflow();
71980
+ if (f != null) {
71981
+ writer.writeMessage(
71982
+ 7,
71983
+ f,
71984
+ proto.clarifai.api.Workflow.serializeBinaryToWriter
71985
+ );
71986
+ }
71987
+ f = message.getWorkflowVersion();
71988
+ if (f != null) {
71989
+ writer.writeMessage(
71990
+ 8,
71991
+ f,
71992
+ proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter
71993
+ );
71994
+ }
71410
71995
  };
71411
71996
 
71412
71997
 
@@ -71632,6 +72217,80 @@ proto.clarifai.api.AuditLogTarget.prototype.hasModuleVersion = function() {
71632
72217
  };
71633
72218
 
71634
72219
 
72220
+ /**
72221
+ * optional Workflow workflow = 7;
72222
+ * @return {?proto.clarifai.api.Workflow}
72223
+ */
72224
+ proto.clarifai.api.AuditLogTarget.prototype.getWorkflow = function() {
72225
+ return /** @type{?proto.clarifai.api.Workflow} */ (
72226
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 7));
72227
+ };
72228
+
72229
+
72230
+ /**
72231
+ * @param {?proto.clarifai.api.Workflow|undefined} value
72232
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
72233
+ */
72234
+ proto.clarifai.api.AuditLogTarget.prototype.setWorkflow = function(value) {
72235
+ return jspb.Message.setOneofWrapperField(this, 7, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
72236
+ };
72237
+
72238
+
72239
+ /**
72240
+ * Clears the message field making it undefined.
72241
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
72242
+ */
72243
+ proto.clarifai.api.AuditLogTarget.prototype.clearWorkflow = function() {
72244
+ return this.setWorkflow(undefined);
72245
+ };
72246
+
72247
+
72248
+ /**
72249
+ * Returns whether this field is set.
72250
+ * @return {boolean}
72251
+ */
72252
+ proto.clarifai.api.AuditLogTarget.prototype.hasWorkflow = function() {
72253
+ return jspb.Message.getField(this, 7) != null;
72254
+ };
72255
+
72256
+
72257
+ /**
72258
+ * optional WorkflowVersion workflow_version = 8;
72259
+ * @return {?proto.clarifai.api.WorkflowVersion}
72260
+ */
72261
+ proto.clarifai.api.AuditLogTarget.prototype.getWorkflowVersion = function() {
72262
+ return /** @type{?proto.clarifai.api.WorkflowVersion} */ (
72263
+ jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowVersion, 8));
72264
+ };
72265
+
72266
+
72267
+ /**
72268
+ * @param {?proto.clarifai.api.WorkflowVersion|undefined} value
72269
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
72270
+ */
72271
+ proto.clarifai.api.AuditLogTarget.prototype.setWorkflowVersion = function(value) {
72272
+ return jspb.Message.setOneofWrapperField(this, 8, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
72273
+ };
72274
+
72275
+
72276
+ /**
72277
+ * Clears the message field making it undefined.
72278
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
72279
+ */
72280
+ proto.clarifai.api.AuditLogTarget.prototype.clearWorkflowVersion = function() {
72281
+ return this.setWorkflowVersion(undefined);
72282
+ };
72283
+
72284
+
72285
+ /**
72286
+ * Returns whether this field is set.
72287
+ * @return {boolean}
72288
+ */
72289
+ proto.clarifai.api.AuditLogTarget.prototype.hasWorkflowVersion = function() {
72290
+ return jspb.Message.getField(this, 8) != null;
72291
+ };
72292
+
72293
+
71635
72294
 
71636
72295
  /**
71637
72296
  * List of repeated fields within this message type.
@@ -73674,6 +74333,2106 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function(value)
73674
74333
  };
73675
74334
 
73676
74335
 
74336
+
74337
+
74338
+
74339
+ if (jspb.Message.GENERATE_TO_OBJECT) {
74340
+ /**
74341
+ * Creates an object representation of this proto.
74342
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
74343
+ * Optional fields that are not set will be set to undefined.
74344
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
74345
+ * For the list of reserved names please see:
74346
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
74347
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
74348
+ * JSPB instance for transitional soy proto support:
74349
+ * http://goto/soy-param-migration
74350
+ * @return {!Object}
74351
+ */
74352
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.toObject = function(opt_includeInstance) {
74353
+ return proto.clarifai.api.ArgoOrchestrationSpec.toObject(opt_includeInstance, this);
74354
+ };
74355
+
74356
+
74357
+ /**
74358
+ * Static version of the {@see toObject} method.
74359
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
74360
+ * the JSPB instance for transitional soy proto support:
74361
+ * http://goto/soy-param-migration
74362
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The msg instance to transform.
74363
+ * @return {!Object}
74364
+ * @suppress {unusedLocalVariables} f is only used for nested messages
74365
+ */
74366
+ proto.clarifai.api.ArgoOrchestrationSpec.toObject = function(includeInstance, msg) {
74367
+ var f, obj = {
74368
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
74369
+ apiVersion: jspb.Message.getFieldWithDefault(msg, 2, ""),
74370
+ specJson: jspb.Message.getFieldWithDefault(msg, 3, "")
74371
+ };
74372
+
74373
+ if (includeInstance) {
74374
+ obj.$jspbMessageInstance = msg;
74375
+ }
74376
+ return obj;
74377
+ };
74378
+ }
74379
+
74380
+
74381
+ /**
74382
+ * Deserializes binary data (in protobuf wire format).
74383
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
74384
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec}
74385
+ */
74386
+ proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinary = function(bytes) {
74387
+ var reader = new jspb.BinaryReader(bytes);
74388
+ var msg = new proto.clarifai.api.ArgoOrchestrationSpec;
74389
+ return proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader(msg, reader);
74390
+ };
74391
+
74392
+
74393
+ /**
74394
+ * Deserializes binary data (in protobuf wire format) from the
74395
+ * given reader into the given message object.
74396
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The message object to deserialize into.
74397
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
74398
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec}
74399
+ */
74400
+ proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader = function(msg, reader) {
74401
+ while (reader.nextField()) {
74402
+ if (reader.isEndGroup()) {
74403
+ break;
74404
+ }
74405
+ var field = reader.getFieldNumber();
74406
+ switch (field) {
74407
+ case 1:
74408
+ var value = /** @type {string} */ (reader.readString());
74409
+ msg.setId(value);
74410
+ break;
74411
+ case 2:
74412
+ var value = /** @type {string} */ (reader.readString());
74413
+ msg.setApiVersion(value);
74414
+ break;
74415
+ case 3:
74416
+ var value = /** @type {string} */ (reader.readString());
74417
+ msg.setSpecJson(value);
74418
+ break;
74419
+ default:
74420
+ reader.skipField();
74421
+ break;
74422
+ }
74423
+ }
74424
+ return msg;
74425
+ };
74426
+
74427
+
74428
+ /**
74429
+ * Serializes the message to binary data (in protobuf wire format).
74430
+ * @return {!Uint8Array}
74431
+ */
74432
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.serializeBinary = function() {
74433
+ var writer = new jspb.BinaryWriter();
74434
+ proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter(this, writer);
74435
+ return writer.getResultBuffer();
74436
+ };
74437
+
74438
+
74439
+ /**
74440
+ * Serializes the given message to binary data (in protobuf wire
74441
+ * format), writing to the given BinaryWriter.
74442
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} message
74443
+ * @param {!jspb.BinaryWriter} writer
74444
+ * @suppress {unusedLocalVariables} f is only used for nested messages
74445
+ */
74446
+ proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter = function(message, writer) {
74447
+ var f = undefined;
74448
+ f = message.getId();
74449
+ if (f.length > 0) {
74450
+ writer.writeString(
74451
+ 1,
74452
+ f
74453
+ );
74454
+ }
74455
+ f = message.getApiVersion();
74456
+ if (f.length > 0) {
74457
+ writer.writeString(
74458
+ 2,
74459
+ f
74460
+ );
74461
+ }
74462
+ f = message.getSpecJson();
74463
+ if (f.length > 0) {
74464
+ writer.writeString(
74465
+ 3,
74466
+ f
74467
+ );
74468
+ }
74469
+ };
74470
+
74471
+
74472
+ /**
74473
+ * optional string id = 1;
74474
+ * @return {string}
74475
+ */
74476
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.getId = function() {
74477
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
74478
+ };
74479
+
74480
+
74481
+ /**
74482
+ * @param {string} value
74483
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
74484
+ */
74485
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.setId = function(value) {
74486
+ return jspb.Message.setProto3StringField(this, 1, value);
74487
+ };
74488
+
74489
+
74490
+ /**
74491
+ * optional string api_version = 2;
74492
+ * @return {string}
74493
+ */
74494
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.getApiVersion = function() {
74495
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
74496
+ };
74497
+
74498
+
74499
+ /**
74500
+ * @param {string} value
74501
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
74502
+ */
74503
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.setApiVersion = function(value) {
74504
+ return jspb.Message.setProto3StringField(this, 2, value);
74505
+ };
74506
+
74507
+
74508
+ /**
74509
+ * optional string spec_json = 3;
74510
+ * @return {string}
74511
+ */
74512
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.getSpecJson = function() {
74513
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
74514
+ };
74515
+
74516
+
74517
+ /**
74518
+ * @param {string} value
74519
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
74520
+ */
74521
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.setSpecJson = function(value) {
74522
+ return jspb.Message.setProto3StringField(this, 3, value);
74523
+ };
74524
+
74525
+
74526
+
74527
+ /**
74528
+ * Oneof group definitions for this message. Each group defines the field
74529
+ * numbers belonging to that group. When of these fields' value is set, all
74530
+ * other fields in the group are cleared. During deserialization, if multiple
74531
+ * fields are encountered for a group, only the last value seen will be kept.
74532
+ * @private {!Array<!Array<number>>}
74533
+ * @const
74534
+ */
74535
+ proto.clarifai.api.OrchestrationSpec.oneofGroups_ = [[1]];
74536
+
74537
+ /**
74538
+ * @enum {number}
74539
+ */
74540
+ proto.clarifai.api.OrchestrationSpec.OrchestrationCase = {
74541
+ ORCHESTRATION_NOT_SET: 0,
74542
+ ARGO_ORCHESTRATION_SPEC: 1
74543
+ };
74544
+
74545
+ /**
74546
+ * @return {proto.clarifai.api.OrchestrationSpec.OrchestrationCase}
74547
+ */
74548
+ proto.clarifai.api.OrchestrationSpec.prototype.getOrchestrationCase = function() {
74549
+ return /** @type {proto.clarifai.api.OrchestrationSpec.OrchestrationCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0]));
74550
+ };
74551
+
74552
+
74553
+
74554
+ if (jspb.Message.GENERATE_TO_OBJECT) {
74555
+ /**
74556
+ * Creates an object representation of this proto.
74557
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
74558
+ * Optional fields that are not set will be set to undefined.
74559
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
74560
+ * For the list of reserved names please see:
74561
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
74562
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
74563
+ * JSPB instance for transitional soy proto support:
74564
+ * http://goto/soy-param-migration
74565
+ * @return {!Object}
74566
+ */
74567
+ proto.clarifai.api.OrchestrationSpec.prototype.toObject = function(opt_includeInstance) {
74568
+ return proto.clarifai.api.OrchestrationSpec.toObject(opt_includeInstance, this);
74569
+ };
74570
+
74571
+
74572
+ /**
74573
+ * Static version of the {@see toObject} method.
74574
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
74575
+ * the JSPB instance for transitional soy proto support:
74576
+ * http://goto/soy-param-migration
74577
+ * @param {!proto.clarifai.api.OrchestrationSpec} msg The msg instance to transform.
74578
+ * @return {!Object}
74579
+ * @suppress {unusedLocalVariables} f is only used for nested messages
74580
+ */
74581
+ proto.clarifai.api.OrchestrationSpec.toObject = function(includeInstance, msg) {
74582
+ var f, obj = {
74583
+ argoOrchestrationSpec: (f = msg.getArgoOrchestrationSpec()) && proto.clarifai.api.ArgoOrchestrationSpec.toObject(includeInstance, f)
74584
+ };
74585
+
74586
+ if (includeInstance) {
74587
+ obj.$jspbMessageInstance = msg;
74588
+ }
74589
+ return obj;
74590
+ };
74591
+ }
74592
+
74593
+
74594
+ /**
74595
+ * Deserializes binary data (in protobuf wire format).
74596
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
74597
+ * @return {!proto.clarifai.api.OrchestrationSpec}
74598
+ */
74599
+ proto.clarifai.api.OrchestrationSpec.deserializeBinary = function(bytes) {
74600
+ var reader = new jspb.BinaryReader(bytes);
74601
+ var msg = new proto.clarifai.api.OrchestrationSpec;
74602
+ return proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader(msg, reader);
74603
+ };
74604
+
74605
+
74606
+ /**
74607
+ * Deserializes binary data (in protobuf wire format) from the
74608
+ * given reader into the given message object.
74609
+ * @param {!proto.clarifai.api.OrchestrationSpec} msg The message object to deserialize into.
74610
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
74611
+ * @return {!proto.clarifai.api.OrchestrationSpec}
74612
+ */
74613
+ proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader = function(msg, reader) {
74614
+ while (reader.nextField()) {
74615
+ if (reader.isEndGroup()) {
74616
+ break;
74617
+ }
74618
+ var field = reader.getFieldNumber();
74619
+ switch (field) {
74620
+ case 1:
74621
+ var value = new proto.clarifai.api.ArgoOrchestrationSpec;
74622
+ reader.readMessage(value,proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader);
74623
+ msg.setArgoOrchestrationSpec(value);
74624
+ break;
74625
+ default:
74626
+ reader.skipField();
74627
+ break;
74628
+ }
74629
+ }
74630
+ return msg;
74631
+ };
74632
+
74633
+
74634
+ /**
74635
+ * Serializes the message to binary data (in protobuf wire format).
74636
+ * @return {!Uint8Array}
74637
+ */
74638
+ proto.clarifai.api.OrchestrationSpec.prototype.serializeBinary = function() {
74639
+ var writer = new jspb.BinaryWriter();
74640
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter(this, writer);
74641
+ return writer.getResultBuffer();
74642
+ };
74643
+
74644
+
74645
+ /**
74646
+ * Serializes the given message to binary data (in protobuf wire
74647
+ * format), writing to the given BinaryWriter.
74648
+ * @param {!proto.clarifai.api.OrchestrationSpec} message
74649
+ * @param {!jspb.BinaryWriter} writer
74650
+ * @suppress {unusedLocalVariables} f is only used for nested messages
74651
+ */
74652
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter = function(message, writer) {
74653
+ var f = undefined;
74654
+ f = message.getArgoOrchestrationSpec();
74655
+ if (f != null) {
74656
+ writer.writeMessage(
74657
+ 1,
74658
+ f,
74659
+ proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter
74660
+ );
74661
+ }
74662
+ };
74663
+
74664
+
74665
+ /**
74666
+ * optional ArgoOrchestrationSpec argo_orchestration_spec = 1;
74667
+ * @return {?proto.clarifai.api.ArgoOrchestrationSpec}
74668
+ */
74669
+ proto.clarifai.api.OrchestrationSpec.prototype.getArgoOrchestrationSpec = function() {
74670
+ return /** @type{?proto.clarifai.api.ArgoOrchestrationSpec} */ (
74671
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationSpec, 1));
74672
+ };
74673
+
74674
+
74675
+ /**
74676
+ * @param {?proto.clarifai.api.ArgoOrchestrationSpec|undefined} value
74677
+ * @return {!proto.clarifai.api.OrchestrationSpec} returns this
74678
+ */
74679
+ proto.clarifai.api.OrchestrationSpec.prototype.setArgoOrchestrationSpec = function(value) {
74680
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0], value);
74681
+ };
74682
+
74683
+
74684
+ /**
74685
+ * Clears the message field making it undefined.
74686
+ * @return {!proto.clarifai.api.OrchestrationSpec} returns this
74687
+ */
74688
+ proto.clarifai.api.OrchestrationSpec.prototype.clearArgoOrchestrationSpec = function() {
74689
+ return this.setArgoOrchestrationSpec(undefined);
74690
+ };
74691
+
74692
+
74693
+ /**
74694
+ * Returns whether this field is set.
74695
+ * @return {boolean}
74696
+ */
74697
+ proto.clarifai.api.OrchestrationSpec.prototype.hasArgoOrchestrationSpec = function() {
74698
+ return jspb.Message.getField(this, 1) != null;
74699
+ };
74700
+
74701
+
74702
+
74703
+
74704
+
74705
+ if (jspb.Message.GENERATE_TO_OBJECT) {
74706
+ /**
74707
+ * Creates an object representation of this proto.
74708
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
74709
+ * Optional fields that are not set will be set to undefined.
74710
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
74711
+ * For the list of reserved names please see:
74712
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
74713
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
74714
+ * JSPB instance for transitional soy proto support:
74715
+ * http://goto/soy-param-migration
74716
+ * @return {!Object}
74717
+ */
74718
+ proto.clarifai.api.Pipeline.prototype.toObject = function(opt_includeInstance) {
74719
+ return proto.clarifai.api.Pipeline.toObject(opt_includeInstance, this);
74720
+ };
74721
+
74722
+
74723
+ /**
74724
+ * Static version of the {@see toObject} method.
74725
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
74726
+ * the JSPB instance for transitional soy proto support:
74727
+ * http://goto/soy-param-migration
74728
+ * @param {!proto.clarifai.api.Pipeline} msg The msg instance to transform.
74729
+ * @return {!Object}
74730
+ * @suppress {unusedLocalVariables} f is only used for nested messages
74731
+ */
74732
+ proto.clarifai.api.Pipeline.toObject = function(includeInstance, msg) {
74733
+ var f, obj = {
74734
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
74735
+ userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
74736
+ appId: jspb.Message.getFieldWithDefault(msg, 3, ""),
74737
+ orchestrationSpec: (f = msg.getOrchestrationSpec()) && proto.clarifai.api.OrchestrationSpec.toObject(includeInstance, f),
74738
+ pipelineVersion: (f = msg.getPipelineVersion()) && proto.clarifai.api.PipelineVersion.toObject(includeInstance, f),
74739
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
74740
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
74741
+ notes: jspb.Message.getFieldWithDefault(msg, 8, ""),
74742
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
74743
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
74744
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
74745
+ };
74746
+
74747
+ if (includeInstance) {
74748
+ obj.$jspbMessageInstance = msg;
74749
+ }
74750
+ return obj;
74751
+ };
74752
+ }
74753
+
74754
+
74755
+ /**
74756
+ * Deserializes binary data (in protobuf wire format).
74757
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
74758
+ * @return {!proto.clarifai.api.Pipeline}
74759
+ */
74760
+ proto.clarifai.api.Pipeline.deserializeBinary = function(bytes) {
74761
+ var reader = new jspb.BinaryReader(bytes);
74762
+ var msg = new proto.clarifai.api.Pipeline;
74763
+ return proto.clarifai.api.Pipeline.deserializeBinaryFromReader(msg, reader);
74764
+ };
74765
+
74766
+
74767
+ /**
74768
+ * Deserializes binary data (in protobuf wire format) from the
74769
+ * given reader into the given message object.
74770
+ * @param {!proto.clarifai.api.Pipeline} msg The message object to deserialize into.
74771
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
74772
+ * @return {!proto.clarifai.api.Pipeline}
74773
+ */
74774
+ proto.clarifai.api.Pipeline.deserializeBinaryFromReader = function(msg, reader) {
74775
+ while (reader.nextField()) {
74776
+ if (reader.isEndGroup()) {
74777
+ break;
74778
+ }
74779
+ var field = reader.getFieldNumber();
74780
+ switch (field) {
74781
+ case 1:
74782
+ var value = /** @type {string} */ (reader.readString());
74783
+ msg.setId(value);
74784
+ break;
74785
+ case 2:
74786
+ var value = /** @type {string} */ (reader.readString());
74787
+ msg.setUserId(value);
74788
+ break;
74789
+ case 3:
74790
+ var value = /** @type {string} */ (reader.readString());
74791
+ msg.setAppId(value);
74792
+ break;
74793
+ case 4:
74794
+ var value = new proto.clarifai.api.OrchestrationSpec;
74795
+ reader.readMessage(value,proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader);
74796
+ msg.setOrchestrationSpec(value);
74797
+ break;
74798
+ case 5:
74799
+ var value = new proto.clarifai.api.PipelineVersion;
74800
+ reader.readMessage(value,proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader);
74801
+ msg.setPipelineVersion(value);
74802
+ break;
74803
+ case 6:
74804
+ var value = /** @type {string} */ (reader.readString());
74805
+ msg.setDescription(value);
74806
+ break;
74807
+ case 7:
74808
+ var value = new proto.clarifai.api.Visibility;
74809
+ reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader);
74810
+ msg.setVisibility(value);
74811
+ break;
74812
+ case 8:
74813
+ var value = /** @type {string} */ (reader.readString());
74814
+ msg.setNotes(value);
74815
+ break;
74816
+ case 9:
74817
+ var value = new google_protobuf_struct_pb.Struct;
74818
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
74819
+ msg.setMetadata(value);
74820
+ break;
74821
+ case 10:
74822
+ var value = new google_protobuf_timestamp_pb.Timestamp;
74823
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
74824
+ msg.setCreatedAt(value);
74825
+ break;
74826
+ case 11:
74827
+ var value = new google_protobuf_timestamp_pb.Timestamp;
74828
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
74829
+ msg.setModifiedAt(value);
74830
+ break;
74831
+ default:
74832
+ reader.skipField();
74833
+ break;
74834
+ }
74835
+ }
74836
+ return msg;
74837
+ };
74838
+
74839
+
74840
+ /**
74841
+ * Serializes the message to binary data (in protobuf wire format).
74842
+ * @return {!Uint8Array}
74843
+ */
74844
+ proto.clarifai.api.Pipeline.prototype.serializeBinary = function() {
74845
+ var writer = new jspb.BinaryWriter();
74846
+ proto.clarifai.api.Pipeline.serializeBinaryToWriter(this, writer);
74847
+ return writer.getResultBuffer();
74848
+ };
74849
+
74850
+
74851
+ /**
74852
+ * Serializes the given message to binary data (in protobuf wire
74853
+ * format), writing to the given BinaryWriter.
74854
+ * @param {!proto.clarifai.api.Pipeline} message
74855
+ * @param {!jspb.BinaryWriter} writer
74856
+ * @suppress {unusedLocalVariables} f is only used for nested messages
74857
+ */
74858
+ proto.clarifai.api.Pipeline.serializeBinaryToWriter = function(message, writer) {
74859
+ var f = undefined;
74860
+ f = message.getId();
74861
+ if (f.length > 0) {
74862
+ writer.writeString(
74863
+ 1,
74864
+ f
74865
+ );
74866
+ }
74867
+ f = message.getUserId();
74868
+ if (f.length > 0) {
74869
+ writer.writeString(
74870
+ 2,
74871
+ f
74872
+ );
74873
+ }
74874
+ f = message.getAppId();
74875
+ if (f.length > 0) {
74876
+ writer.writeString(
74877
+ 3,
74878
+ f
74879
+ );
74880
+ }
74881
+ f = message.getOrchestrationSpec();
74882
+ if (f != null) {
74883
+ writer.writeMessage(
74884
+ 4,
74885
+ f,
74886
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter
74887
+ );
74888
+ }
74889
+ f = message.getPipelineVersion();
74890
+ if (f != null) {
74891
+ writer.writeMessage(
74892
+ 5,
74893
+ f,
74894
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter
74895
+ );
74896
+ }
74897
+ f = message.getDescription();
74898
+ if (f.length > 0) {
74899
+ writer.writeString(
74900
+ 6,
74901
+ f
74902
+ );
74903
+ }
74904
+ f = message.getVisibility();
74905
+ if (f != null) {
74906
+ writer.writeMessage(
74907
+ 7,
74908
+ f,
74909
+ proto.clarifai.api.Visibility.serializeBinaryToWriter
74910
+ );
74911
+ }
74912
+ f = message.getNotes();
74913
+ if (f.length > 0) {
74914
+ writer.writeString(
74915
+ 8,
74916
+ f
74917
+ );
74918
+ }
74919
+ f = message.getMetadata();
74920
+ if (f != null) {
74921
+ writer.writeMessage(
74922
+ 9,
74923
+ f,
74924
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
74925
+ );
74926
+ }
74927
+ f = message.getCreatedAt();
74928
+ if (f != null) {
74929
+ writer.writeMessage(
74930
+ 10,
74931
+ f,
74932
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
74933
+ );
74934
+ }
74935
+ f = message.getModifiedAt();
74936
+ if (f != null) {
74937
+ writer.writeMessage(
74938
+ 11,
74939
+ f,
74940
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
74941
+ );
74942
+ }
74943
+ };
74944
+
74945
+
74946
+ /**
74947
+ * optional string id = 1;
74948
+ * @return {string}
74949
+ */
74950
+ proto.clarifai.api.Pipeline.prototype.getId = function() {
74951
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
74952
+ };
74953
+
74954
+
74955
+ /**
74956
+ * @param {string} value
74957
+ * @return {!proto.clarifai.api.Pipeline} returns this
74958
+ */
74959
+ proto.clarifai.api.Pipeline.prototype.setId = function(value) {
74960
+ return jspb.Message.setProto3StringField(this, 1, value);
74961
+ };
74962
+
74963
+
74964
+ /**
74965
+ * optional string user_id = 2;
74966
+ * @return {string}
74967
+ */
74968
+ proto.clarifai.api.Pipeline.prototype.getUserId = function() {
74969
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
74970
+ };
74971
+
74972
+
74973
+ /**
74974
+ * @param {string} value
74975
+ * @return {!proto.clarifai.api.Pipeline} returns this
74976
+ */
74977
+ proto.clarifai.api.Pipeline.prototype.setUserId = function(value) {
74978
+ return jspb.Message.setProto3StringField(this, 2, value);
74979
+ };
74980
+
74981
+
74982
+ /**
74983
+ * optional string app_id = 3;
74984
+ * @return {string}
74985
+ */
74986
+ proto.clarifai.api.Pipeline.prototype.getAppId = function() {
74987
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
74988
+ };
74989
+
74990
+
74991
+ /**
74992
+ * @param {string} value
74993
+ * @return {!proto.clarifai.api.Pipeline} returns this
74994
+ */
74995
+ proto.clarifai.api.Pipeline.prototype.setAppId = function(value) {
74996
+ return jspb.Message.setProto3StringField(this, 3, value);
74997
+ };
74998
+
74999
+
75000
+ /**
75001
+ * optional OrchestrationSpec orchestration_spec = 4;
75002
+ * @return {?proto.clarifai.api.OrchestrationSpec}
75003
+ */
75004
+ proto.clarifai.api.Pipeline.prototype.getOrchestrationSpec = function() {
75005
+ return /** @type{?proto.clarifai.api.OrchestrationSpec} */ (
75006
+ jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationSpec, 4));
75007
+ };
75008
+
75009
+
75010
+ /**
75011
+ * @param {?proto.clarifai.api.OrchestrationSpec|undefined} value
75012
+ * @return {!proto.clarifai.api.Pipeline} returns this
75013
+ */
75014
+ proto.clarifai.api.Pipeline.prototype.setOrchestrationSpec = function(value) {
75015
+ return jspb.Message.setWrapperField(this, 4, value);
75016
+ };
75017
+
75018
+
75019
+ /**
75020
+ * Clears the message field making it undefined.
75021
+ * @return {!proto.clarifai.api.Pipeline} returns this
75022
+ */
75023
+ proto.clarifai.api.Pipeline.prototype.clearOrchestrationSpec = function() {
75024
+ return this.setOrchestrationSpec(undefined);
75025
+ };
75026
+
75027
+
75028
+ /**
75029
+ * Returns whether this field is set.
75030
+ * @return {boolean}
75031
+ */
75032
+ proto.clarifai.api.Pipeline.prototype.hasOrchestrationSpec = function() {
75033
+ return jspb.Message.getField(this, 4) != null;
75034
+ };
75035
+
75036
+
75037
+ /**
75038
+ * optional PipelineVersion pipeline_version = 5;
75039
+ * @return {?proto.clarifai.api.PipelineVersion}
75040
+ */
75041
+ proto.clarifai.api.Pipeline.prototype.getPipelineVersion = function() {
75042
+ return /** @type{?proto.clarifai.api.PipelineVersion} */ (
75043
+ jspb.Message.getWrapperField(this, proto.clarifai.api.PipelineVersion, 5));
75044
+ };
75045
+
75046
+
75047
+ /**
75048
+ * @param {?proto.clarifai.api.PipelineVersion|undefined} value
75049
+ * @return {!proto.clarifai.api.Pipeline} returns this
75050
+ */
75051
+ proto.clarifai.api.Pipeline.prototype.setPipelineVersion = function(value) {
75052
+ return jspb.Message.setWrapperField(this, 5, value);
75053
+ };
75054
+
75055
+
75056
+ /**
75057
+ * Clears the message field making it undefined.
75058
+ * @return {!proto.clarifai.api.Pipeline} returns this
75059
+ */
75060
+ proto.clarifai.api.Pipeline.prototype.clearPipelineVersion = function() {
75061
+ return this.setPipelineVersion(undefined);
75062
+ };
75063
+
75064
+
75065
+ /**
75066
+ * Returns whether this field is set.
75067
+ * @return {boolean}
75068
+ */
75069
+ proto.clarifai.api.Pipeline.prototype.hasPipelineVersion = function() {
75070
+ return jspb.Message.getField(this, 5) != null;
75071
+ };
75072
+
75073
+
75074
+ /**
75075
+ * optional string description = 6;
75076
+ * @return {string}
75077
+ */
75078
+ proto.clarifai.api.Pipeline.prototype.getDescription = function() {
75079
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
75080
+ };
75081
+
75082
+
75083
+ /**
75084
+ * @param {string} value
75085
+ * @return {!proto.clarifai.api.Pipeline} returns this
75086
+ */
75087
+ proto.clarifai.api.Pipeline.prototype.setDescription = function(value) {
75088
+ return jspb.Message.setProto3StringField(this, 6, value);
75089
+ };
75090
+
75091
+
75092
+ /**
75093
+ * optional Visibility visibility = 7;
75094
+ * @return {?proto.clarifai.api.Visibility}
75095
+ */
75096
+ proto.clarifai.api.Pipeline.prototype.getVisibility = function() {
75097
+ return /** @type{?proto.clarifai.api.Visibility} */ (
75098
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7));
75099
+ };
75100
+
75101
+
75102
+ /**
75103
+ * @param {?proto.clarifai.api.Visibility|undefined} value
75104
+ * @return {!proto.clarifai.api.Pipeline} returns this
75105
+ */
75106
+ proto.clarifai.api.Pipeline.prototype.setVisibility = function(value) {
75107
+ return jspb.Message.setWrapperField(this, 7, value);
75108
+ };
75109
+
75110
+
75111
+ /**
75112
+ * Clears the message field making it undefined.
75113
+ * @return {!proto.clarifai.api.Pipeline} returns this
75114
+ */
75115
+ proto.clarifai.api.Pipeline.prototype.clearVisibility = function() {
75116
+ return this.setVisibility(undefined);
75117
+ };
75118
+
75119
+
75120
+ /**
75121
+ * Returns whether this field is set.
75122
+ * @return {boolean}
75123
+ */
75124
+ proto.clarifai.api.Pipeline.prototype.hasVisibility = function() {
75125
+ return jspb.Message.getField(this, 7) != null;
75126
+ };
75127
+
75128
+
75129
+ /**
75130
+ * optional string notes = 8;
75131
+ * @return {string}
75132
+ */
75133
+ proto.clarifai.api.Pipeline.prototype.getNotes = function() {
75134
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
75135
+ };
75136
+
75137
+
75138
+ /**
75139
+ * @param {string} value
75140
+ * @return {!proto.clarifai.api.Pipeline} returns this
75141
+ */
75142
+ proto.clarifai.api.Pipeline.prototype.setNotes = function(value) {
75143
+ return jspb.Message.setProto3StringField(this, 8, value);
75144
+ };
75145
+
75146
+
75147
+ /**
75148
+ * optional google.protobuf.Struct metadata = 9;
75149
+ * @return {?proto.google.protobuf.Struct}
75150
+ */
75151
+ proto.clarifai.api.Pipeline.prototype.getMetadata = function() {
75152
+ return /** @type{?proto.google.protobuf.Struct} */ (
75153
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 9));
75154
+ };
75155
+
75156
+
75157
+ /**
75158
+ * @param {?proto.google.protobuf.Struct|undefined} value
75159
+ * @return {!proto.clarifai.api.Pipeline} returns this
75160
+ */
75161
+ proto.clarifai.api.Pipeline.prototype.setMetadata = function(value) {
75162
+ return jspb.Message.setWrapperField(this, 9, value);
75163
+ };
75164
+
75165
+
75166
+ /**
75167
+ * Clears the message field making it undefined.
75168
+ * @return {!proto.clarifai.api.Pipeline} returns this
75169
+ */
75170
+ proto.clarifai.api.Pipeline.prototype.clearMetadata = function() {
75171
+ return this.setMetadata(undefined);
75172
+ };
75173
+
75174
+
75175
+ /**
75176
+ * Returns whether this field is set.
75177
+ * @return {boolean}
75178
+ */
75179
+ proto.clarifai.api.Pipeline.prototype.hasMetadata = function() {
75180
+ return jspb.Message.getField(this, 9) != null;
75181
+ };
75182
+
75183
+
75184
+ /**
75185
+ * optional google.protobuf.Timestamp created_at = 10;
75186
+ * @return {?proto.google.protobuf.Timestamp}
75187
+ */
75188
+ proto.clarifai.api.Pipeline.prototype.getCreatedAt = function() {
75189
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
75190
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
75191
+ };
75192
+
75193
+
75194
+ /**
75195
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
75196
+ * @return {!proto.clarifai.api.Pipeline} returns this
75197
+ */
75198
+ proto.clarifai.api.Pipeline.prototype.setCreatedAt = function(value) {
75199
+ return jspb.Message.setWrapperField(this, 10, value);
75200
+ };
75201
+
75202
+
75203
+ /**
75204
+ * Clears the message field making it undefined.
75205
+ * @return {!proto.clarifai.api.Pipeline} returns this
75206
+ */
75207
+ proto.clarifai.api.Pipeline.prototype.clearCreatedAt = function() {
75208
+ return this.setCreatedAt(undefined);
75209
+ };
75210
+
75211
+
75212
+ /**
75213
+ * Returns whether this field is set.
75214
+ * @return {boolean}
75215
+ */
75216
+ proto.clarifai.api.Pipeline.prototype.hasCreatedAt = function() {
75217
+ return jspb.Message.getField(this, 10) != null;
75218
+ };
75219
+
75220
+
75221
+ /**
75222
+ * optional google.protobuf.Timestamp modified_at = 11;
75223
+ * @return {?proto.google.protobuf.Timestamp}
75224
+ */
75225
+ proto.clarifai.api.Pipeline.prototype.getModifiedAt = function() {
75226
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
75227
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
75228
+ };
75229
+
75230
+
75231
+ /**
75232
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
75233
+ * @return {!proto.clarifai.api.Pipeline} returns this
75234
+ */
75235
+ proto.clarifai.api.Pipeline.prototype.setModifiedAt = function(value) {
75236
+ return jspb.Message.setWrapperField(this, 11, value);
75237
+ };
75238
+
75239
+
75240
+ /**
75241
+ * Clears the message field making it undefined.
75242
+ * @return {!proto.clarifai.api.Pipeline} returns this
75243
+ */
75244
+ proto.clarifai.api.Pipeline.prototype.clearModifiedAt = function() {
75245
+ return this.setModifiedAt(undefined);
75246
+ };
75247
+
75248
+
75249
+ /**
75250
+ * Returns whether this field is set.
75251
+ * @return {boolean}
75252
+ */
75253
+ proto.clarifai.api.Pipeline.prototype.hasModifiedAt = function() {
75254
+ return jspb.Message.getField(this, 11) != null;
75255
+ };
75256
+
75257
+
75258
+
75259
+
75260
+
75261
+ if (jspb.Message.GENERATE_TO_OBJECT) {
75262
+ /**
75263
+ * Creates an object representation of this proto.
75264
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
75265
+ * Optional fields that are not set will be set to undefined.
75266
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
75267
+ * For the list of reserved names please see:
75268
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
75269
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
75270
+ * JSPB instance for transitional soy proto support:
75271
+ * http://goto/soy-param-migration
75272
+ * @return {!Object}
75273
+ */
75274
+ proto.clarifai.api.PipelineVersion.prototype.toObject = function(opt_includeInstance) {
75275
+ return proto.clarifai.api.PipelineVersion.toObject(opt_includeInstance, this);
75276
+ };
75277
+
75278
+
75279
+ /**
75280
+ * Static version of the {@see toObject} method.
75281
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
75282
+ * the JSPB instance for transitional soy proto support:
75283
+ * http://goto/soy-param-migration
75284
+ * @param {!proto.clarifai.api.PipelineVersion} msg The msg instance to transform.
75285
+ * @return {!Object}
75286
+ * @suppress {unusedLocalVariables} f is only used for nested messages
75287
+ */
75288
+ proto.clarifai.api.PipelineVersion.toObject = function(includeInstance, msg) {
75289
+ var f, obj = {
75290
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
75291
+ appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
75292
+ userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
75293
+ orchestrationSpec: (f = msg.getOrchestrationSpec()) && proto.clarifai.api.OrchestrationSpec.toObject(includeInstance, f),
75294
+ pipelineId: jspb.Message.getFieldWithDefault(msg, 5, ""),
75295
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
75296
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
75297
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
75298
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
75299
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
75300
+ };
75301
+
75302
+ if (includeInstance) {
75303
+ obj.$jspbMessageInstance = msg;
75304
+ }
75305
+ return obj;
75306
+ };
75307
+ }
75308
+
75309
+
75310
+ /**
75311
+ * Deserializes binary data (in protobuf wire format).
75312
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
75313
+ * @return {!proto.clarifai.api.PipelineVersion}
75314
+ */
75315
+ proto.clarifai.api.PipelineVersion.deserializeBinary = function(bytes) {
75316
+ var reader = new jspb.BinaryReader(bytes);
75317
+ var msg = new proto.clarifai.api.PipelineVersion;
75318
+ return proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader(msg, reader);
75319
+ };
75320
+
75321
+
75322
+ /**
75323
+ * Deserializes binary data (in protobuf wire format) from the
75324
+ * given reader into the given message object.
75325
+ * @param {!proto.clarifai.api.PipelineVersion} msg The message object to deserialize into.
75326
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
75327
+ * @return {!proto.clarifai.api.PipelineVersion}
75328
+ */
75329
+ proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader = function(msg, reader) {
75330
+ while (reader.nextField()) {
75331
+ if (reader.isEndGroup()) {
75332
+ break;
75333
+ }
75334
+ var field = reader.getFieldNumber();
75335
+ switch (field) {
75336
+ case 1:
75337
+ var value = /** @type {string} */ (reader.readString());
75338
+ msg.setId(value);
75339
+ break;
75340
+ case 2:
75341
+ var value = /** @type {string} */ (reader.readString());
75342
+ msg.setAppId(value);
75343
+ break;
75344
+ case 3:
75345
+ var value = /** @type {string} */ (reader.readString());
75346
+ msg.setUserId(value);
75347
+ break;
75348
+ case 4:
75349
+ var value = new proto.clarifai.api.OrchestrationSpec;
75350
+ reader.readMessage(value,proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader);
75351
+ msg.setOrchestrationSpec(value);
75352
+ break;
75353
+ case 5:
75354
+ var value = /** @type {string} */ (reader.readString());
75355
+ msg.setPipelineId(value);
75356
+ break;
75357
+ case 6:
75358
+ var value = /** @type {string} */ (reader.readString());
75359
+ msg.setDescription(value);
75360
+ break;
75361
+ case 7:
75362
+ var value = new proto.clarifai.api.Visibility;
75363
+ reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader);
75364
+ msg.setVisibility(value);
75365
+ break;
75366
+ case 8:
75367
+ var value = new google_protobuf_struct_pb.Struct;
75368
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
75369
+ msg.setMetadata(value);
75370
+ break;
75371
+ case 9:
75372
+ var value = new google_protobuf_timestamp_pb.Timestamp;
75373
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
75374
+ msg.setCreatedAt(value);
75375
+ break;
75376
+ case 10:
75377
+ var value = new google_protobuf_timestamp_pb.Timestamp;
75378
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
75379
+ msg.setModifiedAt(value);
75380
+ break;
75381
+ default:
75382
+ reader.skipField();
75383
+ break;
75384
+ }
75385
+ }
75386
+ return msg;
75387
+ };
75388
+
75389
+
75390
+ /**
75391
+ * Serializes the message to binary data (in protobuf wire format).
75392
+ * @return {!Uint8Array}
75393
+ */
75394
+ proto.clarifai.api.PipelineVersion.prototype.serializeBinary = function() {
75395
+ var writer = new jspb.BinaryWriter();
75396
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter(this, writer);
75397
+ return writer.getResultBuffer();
75398
+ };
75399
+
75400
+
75401
+ /**
75402
+ * Serializes the given message to binary data (in protobuf wire
75403
+ * format), writing to the given BinaryWriter.
75404
+ * @param {!proto.clarifai.api.PipelineVersion} message
75405
+ * @param {!jspb.BinaryWriter} writer
75406
+ * @suppress {unusedLocalVariables} f is only used for nested messages
75407
+ */
75408
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter = function(message, writer) {
75409
+ var f = undefined;
75410
+ f = message.getId();
75411
+ if (f.length > 0) {
75412
+ writer.writeString(
75413
+ 1,
75414
+ f
75415
+ );
75416
+ }
75417
+ f = message.getAppId();
75418
+ if (f.length > 0) {
75419
+ writer.writeString(
75420
+ 2,
75421
+ f
75422
+ );
75423
+ }
75424
+ f = message.getUserId();
75425
+ if (f.length > 0) {
75426
+ writer.writeString(
75427
+ 3,
75428
+ f
75429
+ );
75430
+ }
75431
+ f = message.getOrchestrationSpec();
75432
+ if (f != null) {
75433
+ writer.writeMessage(
75434
+ 4,
75435
+ f,
75436
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter
75437
+ );
75438
+ }
75439
+ f = message.getPipelineId();
75440
+ if (f.length > 0) {
75441
+ writer.writeString(
75442
+ 5,
75443
+ f
75444
+ );
75445
+ }
75446
+ f = message.getDescription();
75447
+ if (f.length > 0) {
75448
+ writer.writeString(
75449
+ 6,
75450
+ f
75451
+ );
75452
+ }
75453
+ f = message.getVisibility();
75454
+ if (f != null) {
75455
+ writer.writeMessage(
75456
+ 7,
75457
+ f,
75458
+ proto.clarifai.api.Visibility.serializeBinaryToWriter
75459
+ );
75460
+ }
75461
+ f = message.getMetadata();
75462
+ if (f != null) {
75463
+ writer.writeMessage(
75464
+ 8,
75465
+ f,
75466
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
75467
+ );
75468
+ }
75469
+ f = message.getCreatedAt();
75470
+ if (f != null) {
75471
+ writer.writeMessage(
75472
+ 9,
75473
+ f,
75474
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
75475
+ );
75476
+ }
75477
+ f = message.getModifiedAt();
75478
+ if (f != null) {
75479
+ writer.writeMessage(
75480
+ 10,
75481
+ f,
75482
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
75483
+ );
75484
+ }
75485
+ };
75486
+
75487
+
75488
+ /**
75489
+ * optional string id = 1;
75490
+ * @return {string}
75491
+ */
75492
+ proto.clarifai.api.PipelineVersion.prototype.getId = function() {
75493
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
75494
+ };
75495
+
75496
+
75497
+ /**
75498
+ * @param {string} value
75499
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75500
+ */
75501
+ proto.clarifai.api.PipelineVersion.prototype.setId = function(value) {
75502
+ return jspb.Message.setProto3StringField(this, 1, value);
75503
+ };
75504
+
75505
+
75506
+ /**
75507
+ * optional string app_id = 2;
75508
+ * @return {string}
75509
+ */
75510
+ proto.clarifai.api.PipelineVersion.prototype.getAppId = function() {
75511
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
75512
+ };
75513
+
75514
+
75515
+ /**
75516
+ * @param {string} value
75517
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75518
+ */
75519
+ proto.clarifai.api.PipelineVersion.prototype.setAppId = function(value) {
75520
+ return jspb.Message.setProto3StringField(this, 2, value);
75521
+ };
75522
+
75523
+
75524
+ /**
75525
+ * optional string user_id = 3;
75526
+ * @return {string}
75527
+ */
75528
+ proto.clarifai.api.PipelineVersion.prototype.getUserId = function() {
75529
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
75530
+ };
75531
+
75532
+
75533
+ /**
75534
+ * @param {string} value
75535
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75536
+ */
75537
+ proto.clarifai.api.PipelineVersion.prototype.setUserId = function(value) {
75538
+ return jspb.Message.setProto3StringField(this, 3, value);
75539
+ };
75540
+
75541
+
75542
+ /**
75543
+ * optional OrchestrationSpec orchestration_spec = 4;
75544
+ * @return {?proto.clarifai.api.OrchestrationSpec}
75545
+ */
75546
+ proto.clarifai.api.PipelineVersion.prototype.getOrchestrationSpec = function() {
75547
+ return /** @type{?proto.clarifai.api.OrchestrationSpec} */ (
75548
+ jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationSpec, 4));
75549
+ };
75550
+
75551
+
75552
+ /**
75553
+ * @param {?proto.clarifai.api.OrchestrationSpec|undefined} value
75554
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75555
+ */
75556
+ proto.clarifai.api.PipelineVersion.prototype.setOrchestrationSpec = function(value) {
75557
+ return jspb.Message.setWrapperField(this, 4, value);
75558
+ };
75559
+
75560
+
75561
+ /**
75562
+ * Clears the message field making it undefined.
75563
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75564
+ */
75565
+ proto.clarifai.api.PipelineVersion.prototype.clearOrchestrationSpec = function() {
75566
+ return this.setOrchestrationSpec(undefined);
75567
+ };
75568
+
75569
+
75570
+ /**
75571
+ * Returns whether this field is set.
75572
+ * @return {boolean}
75573
+ */
75574
+ proto.clarifai.api.PipelineVersion.prototype.hasOrchestrationSpec = function() {
75575
+ return jspb.Message.getField(this, 4) != null;
75576
+ };
75577
+
75578
+
75579
+ /**
75580
+ * optional string pipeline_id = 5;
75581
+ * @return {string}
75582
+ */
75583
+ proto.clarifai.api.PipelineVersion.prototype.getPipelineId = function() {
75584
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
75585
+ };
75586
+
75587
+
75588
+ /**
75589
+ * @param {string} value
75590
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75591
+ */
75592
+ proto.clarifai.api.PipelineVersion.prototype.setPipelineId = function(value) {
75593
+ return jspb.Message.setProto3StringField(this, 5, value);
75594
+ };
75595
+
75596
+
75597
+ /**
75598
+ * optional string description = 6;
75599
+ * @return {string}
75600
+ */
75601
+ proto.clarifai.api.PipelineVersion.prototype.getDescription = function() {
75602
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
75603
+ };
75604
+
75605
+
75606
+ /**
75607
+ * @param {string} value
75608
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75609
+ */
75610
+ proto.clarifai.api.PipelineVersion.prototype.setDescription = function(value) {
75611
+ return jspb.Message.setProto3StringField(this, 6, value);
75612
+ };
75613
+
75614
+
75615
+ /**
75616
+ * optional Visibility visibility = 7;
75617
+ * @return {?proto.clarifai.api.Visibility}
75618
+ */
75619
+ proto.clarifai.api.PipelineVersion.prototype.getVisibility = function() {
75620
+ return /** @type{?proto.clarifai.api.Visibility} */ (
75621
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7));
75622
+ };
75623
+
75624
+
75625
+ /**
75626
+ * @param {?proto.clarifai.api.Visibility|undefined} value
75627
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75628
+ */
75629
+ proto.clarifai.api.PipelineVersion.prototype.setVisibility = function(value) {
75630
+ return jspb.Message.setWrapperField(this, 7, value);
75631
+ };
75632
+
75633
+
75634
+ /**
75635
+ * Clears the message field making it undefined.
75636
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75637
+ */
75638
+ proto.clarifai.api.PipelineVersion.prototype.clearVisibility = function() {
75639
+ return this.setVisibility(undefined);
75640
+ };
75641
+
75642
+
75643
+ /**
75644
+ * Returns whether this field is set.
75645
+ * @return {boolean}
75646
+ */
75647
+ proto.clarifai.api.PipelineVersion.prototype.hasVisibility = function() {
75648
+ return jspb.Message.getField(this, 7) != null;
75649
+ };
75650
+
75651
+
75652
+ /**
75653
+ * optional google.protobuf.Struct metadata = 8;
75654
+ * @return {?proto.google.protobuf.Struct}
75655
+ */
75656
+ proto.clarifai.api.PipelineVersion.prototype.getMetadata = function() {
75657
+ return /** @type{?proto.google.protobuf.Struct} */ (
75658
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8));
75659
+ };
75660
+
75661
+
75662
+ /**
75663
+ * @param {?proto.google.protobuf.Struct|undefined} value
75664
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75665
+ */
75666
+ proto.clarifai.api.PipelineVersion.prototype.setMetadata = function(value) {
75667
+ return jspb.Message.setWrapperField(this, 8, value);
75668
+ };
75669
+
75670
+
75671
+ /**
75672
+ * Clears the message field making it undefined.
75673
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75674
+ */
75675
+ proto.clarifai.api.PipelineVersion.prototype.clearMetadata = function() {
75676
+ return this.setMetadata(undefined);
75677
+ };
75678
+
75679
+
75680
+ /**
75681
+ * Returns whether this field is set.
75682
+ * @return {boolean}
75683
+ */
75684
+ proto.clarifai.api.PipelineVersion.prototype.hasMetadata = function() {
75685
+ return jspb.Message.getField(this, 8) != null;
75686
+ };
75687
+
75688
+
75689
+ /**
75690
+ * optional google.protobuf.Timestamp created_at = 9;
75691
+ * @return {?proto.google.protobuf.Timestamp}
75692
+ */
75693
+ proto.clarifai.api.PipelineVersion.prototype.getCreatedAt = function() {
75694
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
75695
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
75696
+ };
75697
+
75698
+
75699
+ /**
75700
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
75701
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75702
+ */
75703
+ proto.clarifai.api.PipelineVersion.prototype.setCreatedAt = function(value) {
75704
+ return jspb.Message.setWrapperField(this, 9, value);
75705
+ };
75706
+
75707
+
75708
+ /**
75709
+ * Clears the message field making it undefined.
75710
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75711
+ */
75712
+ proto.clarifai.api.PipelineVersion.prototype.clearCreatedAt = function() {
75713
+ return this.setCreatedAt(undefined);
75714
+ };
75715
+
75716
+
75717
+ /**
75718
+ * Returns whether this field is set.
75719
+ * @return {boolean}
75720
+ */
75721
+ proto.clarifai.api.PipelineVersion.prototype.hasCreatedAt = function() {
75722
+ return jspb.Message.getField(this, 9) != null;
75723
+ };
75724
+
75725
+
75726
+ /**
75727
+ * optional google.protobuf.Timestamp modified_at = 10;
75728
+ * @return {?proto.google.protobuf.Timestamp}
75729
+ */
75730
+ proto.clarifai.api.PipelineVersion.prototype.getModifiedAt = function() {
75731
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
75732
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
75733
+ };
75734
+
75735
+
75736
+ /**
75737
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
75738
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75739
+ */
75740
+ proto.clarifai.api.PipelineVersion.prototype.setModifiedAt = function(value) {
75741
+ return jspb.Message.setWrapperField(this, 10, value);
75742
+ };
75743
+
75744
+
75745
+ /**
75746
+ * Clears the message field making it undefined.
75747
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
75748
+ */
75749
+ proto.clarifai.api.PipelineVersion.prototype.clearModifiedAt = function() {
75750
+ return this.setModifiedAt(undefined);
75751
+ };
75752
+
75753
+
75754
+ /**
75755
+ * Returns whether this field is set.
75756
+ * @return {boolean}
75757
+ */
75758
+ proto.clarifai.api.PipelineVersion.prototype.hasModifiedAt = function() {
75759
+ return jspb.Message.getField(this, 10) != null;
75760
+ };
75761
+
75762
+
75763
+
75764
+ /**
75765
+ * Oneof group definitions for this message. Each group defines the field
75766
+ * numbers belonging to that group. When of these fields' value is set, all
75767
+ * other fields in the group are cleared. During deserialization, if multiple
75768
+ * fields are encountered for a group, only the last value seen will be kept.
75769
+ * @private {!Array<!Array<number>>}
75770
+ * @const
75771
+ */
75772
+ proto.clarifai.api.OrchestrationStatus.oneofGroups_ = [[1]];
75773
+
75774
+ /**
75775
+ * @enum {number}
75776
+ */
75777
+ proto.clarifai.api.OrchestrationStatus.StatusDetailsCase = {
75778
+ STATUS_DETAILS_NOT_SET: 0,
75779
+ ARGO_STATUS: 1
75780
+ };
75781
+
75782
+ /**
75783
+ * @return {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase}
75784
+ */
75785
+ proto.clarifai.api.OrchestrationStatus.prototype.getStatusDetailsCase = function() {
75786
+ return /** @type {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0]));
75787
+ };
75788
+
75789
+
75790
+
75791
+ if (jspb.Message.GENERATE_TO_OBJECT) {
75792
+ /**
75793
+ * Creates an object representation of this proto.
75794
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
75795
+ * Optional fields that are not set will be set to undefined.
75796
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
75797
+ * For the list of reserved names please see:
75798
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
75799
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
75800
+ * JSPB instance for transitional soy proto support:
75801
+ * http://goto/soy-param-migration
75802
+ * @return {!Object}
75803
+ */
75804
+ proto.clarifai.api.OrchestrationStatus.prototype.toObject = function(opt_includeInstance) {
75805
+ return proto.clarifai.api.OrchestrationStatus.toObject(opt_includeInstance, this);
75806
+ };
75807
+
75808
+
75809
+ /**
75810
+ * Static version of the {@see toObject} method.
75811
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
75812
+ * the JSPB instance for transitional soy proto support:
75813
+ * http://goto/soy-param-migration
75814
+ * @param {!proto.clarifai.api.OrchestrationStatus} msg The msg instance to transform.
75815
+ * @return {!Object}
75816
+ * @suppress {unusedLocalVariables} f is only used for nested messages
75817
+ */
75818
+ proto.clarifai.api.OrchestrationStatus.toObject = function(includeInstance, msg) {
75819
+ var f, obj = {
75820
+ argoStatus: (f = msg.getArgoStatus()) && proto.clarifai.api.ArgoOrchestrationStatus.toObject(includeInstance, f),
75821
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
75822
+ };
75823
+
75824
+ if (includeInstance) {
75825
+ obj.$jspbMessageInstance = msg;
75826
+ }
75827
+ return obj;
75828
+ };
75829
+ }
75830
+
75831
+
75832
+ /**
75833
+ * Deserializes binary data (in protobuf wire format).
75834
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
75835
+ * @return {!proto.clarifai.api.OrchestrationStatus}
75836
+ */
75837
+ proto.clarifai.api.OrchestrationStatus.deserializeBinary = function(bytes) {
75838
+ var reader = new jspb.BinaryReader(bytes);
75839
+ var msg = new proto.clarifai.api.OrchestrationStatus;
75840
+ return proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader(msg, reader);
75841
+ };
75842
+
75843
+
75844
+ /**
75845
+ * Deserializes binary data (in protobuf wire format) from the
75846
+ * given reader into the given message object.
75847
+ * @param {!proto.clarifai.api.OrchestrationStatus} msg The message object to deserialize into.
75848
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
75849
+ * @return {!proto.clarifai.api.OrchestrationStatus}
75850
+ */
75851
+ proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader = function(msg, reader) {
75852
+ while (reader.nextField()) {
75853
+ if (reader.isEndGroup()) {
75854
+ break;
75855
+ }
75856
+ var field = reader.getFieldNumber();
75857
+ switch (field) {
75858
+ case 1:
75859
+ var value = new proto.clarifai.api.ArgoOrchestrationStatus;
75860
+ reader.readMessage(value,proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader);
75861
+ msg.setArgoStatus(value);
75862
+ break;
75863
+ case 2:
75864
+ var value = new proto_clarifai_api_status_status_pb.Status;
75865
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
75866
+ msg.setStatus(value);
75867
+ break;
75868
+ default:
75869
+ reader.skipField();
75870
+ break;
75871
+ }
75872
+ }
75873
+ return msg;
75874
+ };
75875
+
75876
+
75877
+ /**
75878
+ * Serializes the message to binary data (in protobuf wire format).
75879
+ * @return {!Uint8Array}
75880
+ */
75881
+ proto.clarifai.api.OrchestrationStatus.prototype.serializeBinary = function() {
75882
+ var writer = new jspb.BinaryWriter();
75883
+ proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter(this, writer);
75884
+ return writer.getResultBuffer();
75885
+ };
75886
+
75887
+
75888
+ /**
75889
+ * Serializes the given message to binary data (in protobuf wire
75890
+ * format), writing to the given BinaryWriter.
75891
+ * @param {!proto.clarifai.api.OrchestrationStatus} message
75892
+ * @param {!jspb.BinaryWriter} writer
75893
+ * @suppress {unusedLocalVariables} f is only used for nested messages
75894
+ */
75895
+ proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter = function(message, writer) {
75896
+ var f = undefined;
75897
+ f = message.getArgoStatus();
75898
+ if (f != null) {
75899
+ writer.writeMessage(
75900
+ 1,
75901
+ f,
75902
+ proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter
75903
+ );
75904
+ }
75905
+ f = message.getStatus();
75906
+ if (f != null) {
75907
+ writer.writeMessage(
75908
+ 2,
75909
+ f,
75910
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
75911
+ );
75912
+ }
75913
+ };
75914
+
75915
+
75916
+ /**
75917
+ * optional ArgoOrchestrationStatus argo_status = 1;
75918
+ * @return {?proto.clarifai.api.ArgoOrchestrationStatus}
75919
+ */
75920
+ proto.clarifai.api.OrchestrationStatus.prototype.getArgoStatus = function() {
75921
+ return /** @type{?proto.clarifai.api.ArgoOrchestrationStatus} */ (
75922
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationStatus, 1));
75923
+ };
75924
+
75925
+
75926
+ /**
75927
+ * @param {?proto.clarifai.api.ArgoOrchestrationStatus|undefined} value
75928
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
75929
+ */
75930
+ proto.clarifai.api.OrchestrationStatus.prototype.setArgoStatus = function(value) {
75931
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0], value);
75932
+ };
75933
+
75934
+
75935
+ /**
75936
+ * Clears the message field making it undefined.
75937
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
75938
+ */
75939
+ proto.clarifai.api.OrchestrationStatus.prototype.clearArgoStatus = function() {
75940
+ return this.setArgoStatus(undefined);
75941
+ };
75942
+
75943
+
75944
+ /**
75945
+ * Returns whether this field is set.
75946
+ * @return {boolean}
75947
+ */
75948
+ proto.clarifai.api.OrchestrationStatus.prototype.hasArgoStatus = function() {
75949
+ return jspb.Message.getField(this, 1) != null;
75950
+ };
75951
+
75952
+
75953
+ /**
75954
+ * optional status.Status status = 2;
75955
+ * @return {?proto.clarifai.api.status.Status}
75956
+ */
75957
+ proto.clarifai.api.OrchestrationStatus.prototype.getStatus = function() {
75958
+ return /** @type{?proto.clarifai.api.status.Status} */ (
75959
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
75960
+ };
75961
+
75962
+
75963
+ /**
75964
+ * @param {?proto.clarifai.api.status.Status|undefined} value
75965
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
75966
+ */
75967
+ proto.clarifai.api.OrchestrationStatus.prototype.setStatus = function(value) {
75968
+ return jspb.Message.setWrapperField(this, 2, value);
75969
+ };
75970
+
75971
+
75972
+ /**
75973
+ * Clears the message field making it undefined.
75974
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
75975
+ */
75976
+ proto.clarifai.api.OrchestrationStatus.prototype.clearStatus = function() {
75977
+ return this.setStatus(undefined);
75978
+ };
75979
+
75980
+
75981
+ /**
75982
+ * Returns whether this field is set.
75983
+ * @return {boolean}
75984
+ */
75985
+ proto.clarifai.api.OrchestrationStatus.prototype.hasStatus = function() {
75986
+ return jspb.Message.getField(this, 2) != null;
75987
+ };
75988
+
75989
+
75990
+
75991
+
75992
+
75993
+ if (jspb.Message.GENERATE_TO_OBJECT) {
75994
+ /**
75995
+ * Creates an object representation of this proto.
75996
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
75997
+ * Optional fields that are not set will be set to undefined.
75998
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
75999
+ * For the list of reserved names please see:
76000
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
76001
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
76002
+ * JSPB instance for transitional soy proto support:
76003
+ * http://goto/soy-param-migration
76004
+ * @return {!Object}
76005
+ */
76006
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.toObject = function(opt_includeInstance) {
76007
+ return proto.clarifai.api.ArgoOrchestrationStatus.toObject(opt_includeInstance, this);
76008
+ };
76009
+
76010
+
76011
+ /**
76012
+ * Static version of the {@see toObject} method.
76013
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
76014
+ * the JSPB instance for transitional soy proto support:
76015
+ * http://goto/soy-param-migration
76016
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The msg instance to transform.
76017
+ * @return {!Object}
76018
+ * @suppress {unusedLocalVariables} f is only used for nested messages
76019
+ */
76020
+ proto.clarifai.api.ArgoOrchestrationStatus.toObject = function(includeInstance, msg) {
76021
+ var f, obj = {
76022
+ status: msg.getStatus_asB64()
76023
+ };
76024
+
76025
+ if (includeInstance) {
76026
+ obj.$jspbMessageInstance = msg;
76027
+ }
76028
+ return obj;
76029
+ };
76030
+ }
76031
+
76032
+
76033
+ /**
76034
+ * Deserializes binary data (in protobuf wire format).
76035
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
76036
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus}
76037
+ */
76038
+ proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinary = function(bytes) {
76039
+ var reader = new jspb.BinaryReader(bytes);
76040
+ var msg = new proto.clarifai.api.ArgoOrchestrationStatus;
76041
+ return proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader(msg, reader);
76042
+ };
76043
+
76044
+
76045
+ /**
76046
+ * Deserializes binary data (in protobuf wire format) from the
76047
+ * given reader into the given message object.
76048
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The message object to deserialize into.
76049
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
76050
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus}
76051
+ */
76052
+ proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader = function(msg, reader) {
76053
+ while (reader.nextField()) {
76054
+ if (reader.isEndGroup()) {
76055
+ break;
76056
+ }
76057
+ var field = reader.getFieldNumber();
76058
+ switch (field) {
76059
+ case 1:
76060
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
76061
+ msg.setStatus(value);
76062
+ break;
76063
+ default:
76064
+ reader.skipField();
76065
+ break;
76066
+ }
76067
+ }
76068
+ return msg;
76069
+ };
76070
+
76071
+
76072
+ /**
76073
+ * Serializes the message to binary data (in protobuf wire format).
76074
+ * @return {!Uint8Array}
76075
+ */
76076
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.serializeBinary = function() {
76077
+ var writer = new jspb.BinaryWriter();
76078
+ proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter(this, writer);
76079
+ return writer.getResultBuffer();
76080
+ };
76081
+
76082
+
76083
+ /**
76084
+ * Serializes the given message to binary data (in protobuf wire
76085
+ * format), writing to the given BinaryWriter.
76086
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} message
76087
+ * @param {!jspb.BinaryWriter} writer
76088
+ * @suppress {unusedLocalVariables} f is only used for nested messages
76089
+ */
76090
+ proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter = function(message, writer) {
76091
+ var f = undefined;
76092
+ f = message.getStatus_asU8();
76093
+ if (f.length > 0) {
76094
+ writer.writeBytes(
76095
+ 1,
76096
+ f
76097
+ );
76098
+ }
76099
+ };
76100
+
76101
+
76102
+ /**
76103
+ * optional bytes status = 1;
76104
+ * @return {string}
76105
+ */
76106
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus = function() {
76107
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
76108
+ };
76109
+
76110
+
76111
+ /**
76112
+ * optional bytes status = 1;
76113
+ * This is a type-conversion wrapper around `getStatus()`
76114
+ * @return {string}
76115
+ */
76116
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus_asB64 = function() {
76117
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
76118
+ this.getStatus()));
76119
+ };
76120
+
76121
+
76122
+ /**
76123
+ * optional bytes status = 1;
76124
+ * Note that Uint8Array is not supported on all browsers.
76125
+ * @see http://caniuse.com/Uint8Array
76126
+ * This is a type-conversion wrapper around `getStatus()`
76127
+ * @return {!Uint8Array}
76128
+ */
76129
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus_asU8 = function() {
76130
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
76131
+ this.getStatus()));
76132
+ };
76133
+
76134
+
76135
+ /**
76136
+ * @param {!(string|Uint8Array)} value
76137
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus} returns this
76138
+ */
76139
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.setStatus = function(value) {
76140
+ return jspb.Message.setProto3BytesField(this, 1, value);
76141
+ };
76142
+
76143
+
76144
+
76145
+ /**
76146
+ * List of repeated fields within this message type.
76147
+ * @private {!Array<number>}
76148
+ * @const
76149
+ */
76150
+ proto.clarifai.api.PipelineRun.repeatedFields_ = [3];
76151
+
76152
+
76153
+
76154
+ if (jspb.Message.GENERATE_TO_OBJECT) {
76155
+ /**
76156
+ * Creates an object representation of this proto.
76157
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
76158
+ * Optional fields that are not set will be set to undefined.
76159
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
76160
+ * For the list of reserved names please see:
76161
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
76162
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
76163
+ * JSPB instance for transitional soy proto support:
76164
+ * http://goto/soy-param-migration
76165
+ * @return {!Object}
76166
+ */
76167
+ proto.clarifai.api.PipelineRun.prototype.toObject = function(opt_includeInstance) {
76168
+ return proto.clarifai.api.PipelineRun.toObject(opt_includeInstance, this);
76169
+ };
76170
+
76171
+
76172
+ /**
76173
+ * Static version of the {@see toObject} method.
76174
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
76175
+ * the JSPB instance for transitional soy proto support:
76176
+ * http://goto/soy-param-migration
76177
+ * @param {!proto.clarifai.api.PipelineRun} msg The msg instance to transform.
76178
+ * @return {!Object}
76179
+ * @suppress {unusedLocalVariables} f is only used for nested messages
76180
+ */
76181
+ proto.clarifai.api.PipelineRun.toObject = function(includeInstance, msg) {
76182
+ var f, obj = {
76183
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
76184
+ pipelineVersion: (f = msg.getPipelineVersion()) && proto.clarifai.api.PipelineVersion.toObject(includeInstance, f),
76185
+ nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(),
76186
+ proto.clarifai.api.Nodepool.toObject, includeInstance),
76187
+ orchestrationStatus: (f = msg.getOrchestrationStatus()) && proto.clarifai.api.OrchestrationStatus.toObject(includeInstance, f)
76188
+ };
76189
+
76190
+ if (includeInstance) {
76191
+ obj.$jspbMessageInstance = msg;
76192
+ }
76193
+ return obj;
76194
+ };
76195
+ }
76196
+
76197
+
76198
+ /**
76199
+ * Deserializes binary data (in protobuf wire format).
76200
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
76201
+ * @return {!proto.clarifai.api.PipelineRun}
76202
+ */
76203
+ proto.clarifai.api.PipelineRun.deserializeBinary = function(bytes) {
76204
+ var reader = new jspb.BinaryReader(bytes);
76205
+ var msg = new proto.clarifai.api.PipelineRun;
76206
+ return proto.clarifai.api.PipelineRun.deserializeBinaryFromReader(msg, reader);
76207
+ };
76208
+
76209
+
76210
+ /**
76211
+ * Deserializes binary data (in protobuf wire format) from the
76212
+ * given reader into the given message object.
76213
+ * @param {!proto.clarifai.api.PipelineRun} msg The message object to deserialize into.
76214
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
76215
+ * @return {!proto.clarifai.api.PipelineRun}
76216
+ */
76217
+ proto.clarifai.api.PipelineRun.deserializeBinaryFromReader = function(msg, reader) {
76218
+ while (reader.nextField()) {
76219
+ if (reader.isEndGroup()) {
76220
+ break;
76221
+ }
76222
+ var field = reader.getFieldNumber();
76223
+ switch (field) {
76224
+ case 1:
76225
+ var value = /** @type {string} */ (reader.readString());
76226
+ msg.setId(value);
76227
+ break;
76228
+ case 2:
76229
+ var value = new proto.clarifai.api.PipelineVersion;
76230
+ reader.readMessage(value,proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader);
76231
+ msg.setPipelineVersion(value);
76232
+ break;
76233
+ case 3:
76234
+ var value = new proto.clarifai.api.Nodepool;
76235
+ reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
76236
+ msg.addNodepools(value);
76237
+ break;
76238
+ case 4:
76239
+ var value = new proto.clarifai.api.OrchestrationStatus;
76240
+ reader.readMessage(value,proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader);
76241
+ msg.setOrchestrationStatus(value);
76242
+ break;
76243
+ default:
76244
+ reader.skipField();
76245
+ break;
76246
+ }
76247
+ }
76248
+ return msg;
76249
+ };
76250
+
76251
+
76252
+ /**
76253
+ * Serializes the message to binary data (in protobuf wire format).
76254
+ * @return {!Uint8Array}
76255
+ */
76256
+ proto.clarifai.api.PipelineRun.prototype.serializeBinary = function() {
76257
+ var writer = new jspb.BinaryWriter();
76258
+ proto.clarifai.api.PipelineRun.serializeBinaryToWriter(this, writer);
76259
+ return writer.getResultBuffer();
76260
+ };
76261
+
76262
+
76263
+ /**
76264
+ * Serializes the given message to binary data (in protobuf wire
76265
+ * format), writing to the given BinaryWriter.
76266
+ * @param {!proto.clarifai.api.PipelineRun} message
76267
+ * @param {!jspb.BinaryWriter} writer
76268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
76269
+ */
76270
+ proto.clarifai.api.PipelineRun.serializeBinaryToWriter = function(message, writer) {
76271
+ var f = undefined;
76272
+ f = message.getId();
76273
+ if (f.length > 0) {
76274
+ writer.writeString(
76275
+ 1,
76276
+ f
76277
+ );
76278
+ }
76279
+ f = message.getPipelineVersion();
76280
+ if (f != null) {
76281
+ writer.writeMessage(
76282
+ 2,
76283
+ f,
76284
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter
76285
+ );
76286
+ }
76287
+ f = message.getNodepoolsList();
76288
+ if (f.length > 0) {
76289
+ writer.writeRepeatedMessage(
76290
+ 3,
76291
+ f,
76292
+ proto.clarifai.api.Nodepool.serializeBinaryToWriter
76293
+ );
76294
+ }
76295
+ f = message.getOrchestrationStatus();
76296
+ if (f != null) {
76297
+ writer.writeMessage(
76298
+ 4,
76299
+ f,
76300
+ proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter
76301
+ );
76302
+ }
76303
+ };
76304
+
76305
+
76306
+ /**
76307
+ * optional string id = 1;
76308
+ * @return {string}
76309
+ */
76310
+ proto.clarifai.api.PipelineRun.prototype.getId = function() {
76311
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
76312
+ };
76313
+
76314
+
76315
+ /**
76316
+ * @param {string} value
76317
+ * @return {!proto.clarifai.api.PipelineRun} returns this
76318
+ */
76319
+ proto.clarifai.api.PipelineRun.prototype.setId = function(value) {
76320
+ return jspb.Message.setProto3StringField(this, 1, value);
76321
+ };
76322
+
76323
+
76324
+ /**
76325
+ * optional PipelineVersion pipeline_version = 2;
76326
+ * @return {?proto.clarifai.api.PipelineVersion}
76327
+ */
76328
+ proto.clarifai.api.PipelineRun.prototype.getPipelineVersion = function() {
76329
+ return /** @type{?proto.clarifai.api.PipelineVersion} */ (
76330
+ jspb.Message.getWrapperField(this, proto.clarifai.api.PipelineVersion, 2));
76331
+ };
76332
+
76333
+
76334
+ /**
76335
+ * @param {?proto.clarifai.api.PipelineVersion|undefined} value
76336
+ * @return {!proto.clarifai.api.PipelineRun} returns this
76337
+ */
76338
+ proto.clarifai.api.PipelineRun.prototype.setPipelineVersion = function(value) {
76339
+ return jspb.Message.setWrapperField(this, 2, value);
76340
+ };
76341
+
76342
+
76343
+ /**
76344
+ * Clears the message field making it undefined.
76345
+ * @return {!proto.clarifai.api.PipelineRun} returns this
76346
+ */
76347
+ proto.clarifai.api.PipelineRun.prototype.clearPipelineVersion = function() {
76348
+ return this.setPipelineVersion(undefined);
76349
+ };
76350
+
76351
+
76352
+ /**
76353
+ * Returns whether this field is set.
76354
+ * @return {boolean}
76355
+ */
76356
+ proto.clarifai.api.PipelineRun.prototype.hasPipelineVersion = function() {
76357
+ return jspb.Message.getField(this, 2) != null;
76358
+ };
76359
+
76360
+
76361
+ /**
76362
+ * repeated Nodepool nodepools = 3;
76363
+ * @return {!Array<!proto.clarifai.api.Nodepool>}
76364
+ */
76365
+ proto.clarifai.api.PipelineRun.prototype.getNodepoolsList = function() {
76366
+ return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (
76367
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Nodepool, 3));
76368
+ };
76369
+
76370
+
76371
+ /**
76372
+ * @param {!Array<!proto.clarifai.api.Nodepool>} value
76373
+ * @return {!proto.clarifai.api.PipelineRun} returns this
76374
+ */
76375
+ proto.clarifai.api.PipelineRun.prototype.setNodepoolsList = function(value) {
76376
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
76377
+ };
76378
+
76379
+
76380
+ /**
76381
+ * @param {!proto.clarifai.api.Nodepool=} opt_value
76382
+ * @param {number=} opt_index
76383
+ * @return {!proto.clarifai.api.Nodepool}
76384
+ */
76385
+ proto.clarifai.api.PipelineRun.prototype.addNodepools = function(opt_value, opt_index) {
76386
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Nodepool, opt_index);
76387
+ };
76388
+
76389
+
76390
+ /**
76391
+ * Clears the list making it empty but non-null.
76392
+ * @return {!proto.clarifai.api.PipelineRun} returns this
76393
+ */
76394
+ proto.clarifai.api.PipelineRun.prototype.clearNodepoolsList = function() {
76395
+ return this.setNodepoolsList([]);
76396
+ };
76397
+
76398
+
76399
+ /**
76400
+ * optional OrchestrationStatus orchestration_status = 4;
76401
+ * @return {?proto.clarifai.api.OrchestrationStatus}
76402
+ */
76403
+ proto.clarifai.api.PipelineRun.prototype.getOrchestrationStatus = function() {
76404
+ return /** @type{?proto.clarifai.api.OrchestrationStatus} */ (
76405
+ jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationStatus, 4));
76406
+ };
76407
+
76408
+
76409
+ /**
76410
+ * @param {?proto.clarifai.api.OrchestrationStatus|undefined} value
76411
+ * @return {!proto.clarifai.api.PipelineRun} returns this
76412
+ */
76413
+ proto.clarifai.api.PipelineRun.prototype.setOrchestrationStatus = function(value) {
76414
+ return jspb.Message.setWrapperField(this, 4, value);
76415
+ };
76416
+
76417
+
76418
+ /**
76419
+ * Clears the message field making it undefined.
76420
+ * @return {!proto.clarifai.api.PipelineRun} returns this
76421
+ */
76422
+ proto.clarifai.api.PipelineRun.prototype.clearOrchestrationStatus = function() {
76423
+ return this.setOrchestrationStatus(undefined);
76424
+ };
76425
+
76426
+
76427
+ /**
76428
+ * Returns whether this field is set.
76429
+ * @return {boolean}
76430
+ */
76431
+ proto.clarifai.api.PipelineRun.prototype.hasOrchestrationStatus = function() {
76432
+ return jspb.Message.getField(this, 4) != null;
76433
+ };
76434
+
76435
+
73677
76436
  /**
73678
76437
  * @enum {number}
73679
76438
  */
@@ -73902,7 +76661,19 @@ proto.clarifai.api.EventType = {
73902
76661
  MODULE_DELETE: 202,
73903
76662
  MODULE_VERSION_CREATE: 203,
73904
76663
  MODULE_VERSION_UPDATE: 204,
73905
- MODULE_VERSION_DELETE: 205
76664
+ MODULE_VERSION_DELETE: 205,
76665
+ WORKFLOW_CREATE: 400,
76666
+ WORKFLOW_UPDATE: 401,
76667
+ WORKFLOW_DELETE: 402,
76668
+ WORKFLOW_VERSION_CREATE: 403,
76669
+ WORKFLOW_VERSION_UPDATE: 404,
76670
+ WORKFLOW_VERSION_DELETE: 405,
76671
+ APPLICATION_CREATE: 600,
76672
+ APPLICATION_UPDATE: 601,
76673
+ APPLICATION_DELETE: 602,
76674
+ COLLABORATOR_ADD: 700,
76675
+ COLLABORATOR_UPDATE: 701,
76676
+ COLLABORATOR_REMOVE: 702
73906
76677
  };
73907
76678
 
73908
76679
  goog.object.extend(exports, proto.clarifai.api);