clarifai-web-grpc 11.1.3 → 11.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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);
@@ -99,6 +101,7 @@ goog.exportSymbol('proto.clarifai.api.ConfusionMatrix', null, global);
99
101
  goog.exportSymbol('proto.clarifai.api.ConfusionMatrixEntry', null, global);
100
102
  goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrix', null, global);
101
103
  goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrixEntry', null, global);
104
+ goog.exportSymbol('proto.clarifai.api.CpuMetrics', null, global);
102
105
  goog.exportSymbol('proto.clarifai.api.Data', null, global);
103
106
  goog.exportSymbol('proto.clarifai.api.DataSourceCredentials', null, global);
104
107
  goog.exportSymbol('proto.clarifai.api.DataSourceCredentials.CredentialsCase', null, global);
@@ -134,6 +137,7 @@ goog.exportSymbol('proto.clarifai.api.EndpointDeps', null, global);
134
137
  goog.exportSymbol('proto.clarifai.api.EvalInfo', null, global);
135
138
  goog.exportSymbol('proto.clarifai.api.EvalMetrics', null, global);
136
139
  goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
140
+ goog.exportSymbol('proto.clarifai.api.EvaluationMetricValue', null, global);
137
141
  goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
138
142
  goog.exportSymbol('proto.clarifai.api.EventType', null, global);
139
143
  goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
@@ -183,8 +187,11 @@ goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
183
187
  goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
184
188
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
185
189
  goog.exportSymbol('proto.clarifai.api.Mask', null, global);
190
+ goog.exportSymbol('proto.clarifai.api.MetricValue', null, global);
191
+ goog.exportSymbol('proto.clarifai.api.MetricValue.MetricValueCase', null, global);
186
192
  goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
187
193
  goog.exportSymbol('proto.clarifai.api.Model', null, global);
194
+ goog.exportSymbol('proto.clarifai.api.Model.BillingType', null, global);
188
195
  goog.exportSymbol('proto.clarifai.api.Model.Source', null, global);
189
196
  goog.exportSymbol('proto.clarifai.api.ModelLayerInfo', null, global);
190
197
  goog.exportSymbol('proto.clarifai.api.ModelPredictConfig', null, global);
@@ -212,6 +219,10 @@ goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
212
219
  goog.exportSymbol('proto.clarifai.api.Operation', null, global);
213
220
  goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
214
221
  goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
222
+ goog.exportSymbol('proto.clarifai.api.OrchestrationSpec', null, global);
223
+ goog.exportSymbol('proto.clarifai.api.OrchestrationSpec.OrchestrationCase', null, global);
224
+ goog.exportSymbol('proto.clarifai.api.OrchestrationStatus', null, global);
225
+ goog.exportSymbol('proto.clarifai.api.OrchestrationStatus.StatusDetailsCase', null, global);
215
226
  goog.exportSymbol('proto.clarifai.api.Output', null, global);
216
227
  goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
217
228
  goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global);
@@ -221,6 +232,8 @@ goog.exportSymbol('proto.clarifai.api.Part', null, global);
221
232
  goog.exportSymbol('proto.clarifai.api.Password', null, global);
222
233
  goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global);
223
234
  goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
235
+ goog.exportSymbol('proto.clarifai.api.PipelineVersion', null, global);
236
+ goog.exportSymbol('proto.clarifai.api.PipelineVersionRun', null, global);
224
237
  goog.exportSymbol('proto.clarifai.api.Point', null, global);
225
238
  goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
226
239
  goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
@@ -304,11 +317,14 @@ goog.exportSymbol('proto.clarifai.api.W3C', null, global);
304
317
  goog.exportSymbol('proto.clarifai.api.Worker', null, global);
305
318
  goog.exportSymbol('proto.clarifai.api.Worker.WorkerCase', null, global);
306
319
  goog.exportSymbol('proto.clarifai.api.Workflow', null, global);
320
+ goog.exportSymbol('proto.clarifai.api.WorkflowEvaluationResult', null, global);
321
+ goog.exportSymbol('proto.clarifai.api.WorkflowEvaluationResultSummary', null, global);
307
322
  goog.exportSymbol('proto.clarifai.api.WorkflowModelUseCase', null, global);
308
323
  goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
309
324
  goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
310
325
  goog.exportSymbol('proto.clarifai.api.WorkflowState', null, global);
311
326
  goog.exportSymbol('proto.clarifai.api.WorkflowVersion', null, global);
327
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluation', null, global);
312
328
  goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric', null, global);
313
329
  goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType', null, global);
314
330
  goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType', null, global);
@@ -4976,6 +4992,27 @@ if (goog.DEBUG && !COMPILED) {
4976
4992
  */
4977
4993
  proto.clarifai.api.GpuMetrics.displayName = 'proto.clarifai.api.GpuMetrics';
4978
4994
  }
4995
+ /**
4996
+ * Generated by JsPbCodeGenerator.
4997
+ * @param {Array=} opt_data Optional initial data array, typically from a
4998
+ * server response, or constructed directly in Javascript. The array is used
4999
+ * in place and becomes part of the constructed object. It is not cloned.
5000
+ * If no data is provided, the constructed object will be empty, but still
5001
+ * valid.
5002
+ * @extends {jspb.Message}
5003
+ * @constructor
5004
+ */
5005
+ proto.clarifai.api.CpuMetrics = function(opt_data) {
5006
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5007
+ };
5008
+ goog.inherits(proto.clarifai.api.CpuMetrics, jspb.Message);
5009
+ if (goog.DEBUG && !COMPILED) {
5010
+ /**
5011
+ * @public
5012
+ * @override
5013
+ */
5014
+ proto.clarifai.api.CpuMetrics.displayName = 'proto.clarifai.api.CpuMetrics';
5015
+ }
4979
5016
  /**
4980
5017
  * Generated by JsPbCodeGenerator.
4981
5018
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5018,6 +5055,237 @@ if (goog.DEBUG && !COMPILED) {
5018
5055
  */
5019
5056
  proto.clarifai.api.ComputeSourceMetadata.displayName = 'proto.clarifai.api.ComputeSourceMetadata';
5020
5057
  }
5058
+ /**
5059
+ * Generated by JsPbCodeGenerator.
5060
+ * @param {Array=} opt_data Optional initial data array, typically from a
5061
+ * server response, or constructed directly in Javascript. The array is used
5062
+ * in place and becomes part of the constructed object. It is not cloned.
5063
+ * If no data is provided, the constructed object will be empty, but still
5064
+ * valid.
5065
+ * @extends {jspb.Message}
5066
+ * @constructor
5067
+ */
5068
+ proto.clarifai.api.WorkflowVersionEvaluation = function(opt_data) {
5069
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5070
+ };
5071
+ goog.inherits(proto.clarifai.api.WorkflowVersionEvaluation, jspb.Message);
5072
+ if (goog.DEBUG && !COMPILED) {
5073
+ /**
5074
+ * @public
5075
+ * @override
5076
+ */
5077
+ proto.clarifai.api.WorkflowVersionEvaluation.displayName = 'proto.clarifai.api.WorkflowVersionEvaluation';
5078
+ }
5079
+ /**
5080
+ * Generated by JsPbCodeGenerator.
5081
+ * @param {Array=} opt_data Optional initial data array, typically from a
5082
+ * server response, or constructed directly in Javascript. The array is used
5083
+ * in place and becomes part of the constructed object. It is not cloned.
5084
+ * If no data is provided, the constructed object will be empty, but still
5085
+ * valid.
5086
+ * @extends {jspb.Message}
5087
+ * @constructor
5088
+ */
5089
+ proto.clarifai.api.WorkflowEvaluationResult = function(opt_data) {
5090
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5091
+ };
5092
+ goog.inherits(proto.clarifai.api.WorkflowEvaluationResult, jspb.Message);
5093
+ if (goog.DEBUG && !COMPILED) {
5094
+ /**
5095
+ * @public
5096
+ * @override
5097
+ */
5098
+ proto.clarifai.api.WorkflowEvaluationResult.displayName = 'proto.clarifai.api.WorkflowEvaluationResult';
5099
+ }
5100
+ /**
5101
+ * Generated by JsPbCodeGenerator.
5102
+ * @param {Array=} opt_data Optional initial data array, typically from a
5103
+ * server response, or constructed directly in Javascript. The array is used
5104
+ * in place and becomes part of the constructed object. It is not cloned.
5105
+ * If no data is provided, the constructed object will be empty, but still
5106
+ * valid.
5107
+ * @extends {jspb.Message}
5108
+ * @constructor
5109
+ */
5110
+ proto.clarifai.api.WorkflowEvaluationResultSummary = function(opt_data) {
5111
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.WorkflowEvaluationResultSummary.repeatedFields_, null);
5112
+ };
5113
+ goog.inherits(proto.clarifai.api.WorkflowEvaluationResultSummary, jspb.Message);
5114
+ if (goog.DEBUG && !COMPILED) {
5115
+ /**
5116
+ * @public
5117
+ * @override
5118
+ */
5119
+ proto.clarifai.api.WorkflowEvaluationResultSummary.displayName = 'proto.clarifai.api.WorkflowEvaluationResultSummary';
5120
+ }
5121
+ /**
5122
+ * Generated by JsPbCodeGenerator.
5123
+ * @param {Array=} opt_data Optional initial data array, typically from a
5124
+ * server response, or constructed directly in Javascript. The array is used
5125
+ * in place and becomes part of the constructed object. It is not cloned.
5126
+ * If no data is provided, the constructed object will be empty, but still
5127
+ * valid.
5128
+ * @extends {jspb.Message}
5129
+ * @constructor
5130
+ */
5131
+ proto.clarifai.api.EvaluationMetricValue = function(opt_data) {
5132
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5133
+ };
5134
+ goog.inherits(proto.clarifai.api.EvaluationMetricValue, jspb.Message);
5135
+ if (goog.DEBUG && !COMPILED) {
5136
+ /**
5137
+ * @public
5138
+ * @override
5139
+ */
5140
+ proto.clarifai.api.EvaluationMetricValue.displayName = 'proto.clarifai.api.EvaluationMetricValue';
5141
+ }
5142
+ /**
5143
+ * Generated by JsPbCodeGenerator.
5144
+ * @param {Array=} opt_data Optional initial data array, typically from a
5145
+ * server response, or constructed directly in Javascript. The array is used
5146
+ * in place and becomes part of the constructed object. It is not cloned.
5147
+ * If no data is provided, the constructed object will be empty, but still
5148
+ * valid.
5149
+ * @extends {jspb.Message}
5150
+ * @constructor
5151
+ */
5152
+ proto.clarifai.api.MetricValue = function(opt_data) {
5153
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.MetricValue.oneofGroups_);
5154
+ };
5155
+ goog.inherits(proto.clarifai.api.MetricValue, jspb.Message);
5156
+ if (goog.DEBUG && !COMPILED) {
5157
+ /**
5158
+ * @public
5159
+ * @override
5160
+ */
5161
+ proto.clarifai.api.MetricValue.displayName = 'proto.clarifai.api.MetricValue';
5162
+ }
5163
+ /**
5164
+ * Generated by JsPbCodeGenerator.
5165
+ * @param {Array=} opt_data Optional initial data array, typically from a
5166
+ * server response, or constructed directly in Javascript. The array is used
5167
+ * in place and becomes part of the constructed object. It is not cloned.
5168
+ * If no data is provided, the constructed object will be empty, but still
5169
+ * valid.
5170
+ * @extends {jspb.Message}
5171
+ * @constructor
5172
+ */
5173
+ proto.clarifai.api.ArgoOrchestrationSpec = function(opt_data) {
5174
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5175
+ };
5176
+ goog.inherits(proto.clarifai.api.ArgoOrchestrationSpec, jspb.Message);
5177
+ if (goog.DEBUG && !COMPILED) {
5178
+ /**
5179
+ * @public
5180
+ * @override
5181
+ */
5182
+ proto.clarifai.api.ArgoOrchestrationSpec.displayName = 'proto.clarifai.api.ArgoOrchestrationSpec';
5183
+ }
5184
+ /**
5185
+ * Generated by JsPbCodeGenerator.
5186
+ * @param {Array=} opt_data Optional initial data array, typically from a
5187
+ * server response, or constructed directly in Javascript. The array is used
5188
+ * in place and becomes part of the constructed object. It is not cloned.
5189
+ * If no data is provided, the constructed object will be empty, but still
5190
+ * valid.
5191
+ * @extends {jspb.Message}
5192
+ * @constructor
5193
+ */
5194
+ proto.clarifai.api.OrchestrationSpec = function(opt_data) {
5195
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationSpec.oneofGroups_);
5196
+ };
5197
+ goog.inherits(proto.clarifai.api.OrchestrationSpec, jspb.Message);
5198
+ if (goog.DEBUG && !COMPILED) {
5199
+ /**
5200
+ * @public
5201
+ * @override
5202
+ */
5203
+ proto.clarifai.api.OrchestrationSpec.displayName = 'proto.clarifai.api.OrchestrationSpec';
5204
+ }
5205
+ /**
5206
+ * Generated by JsPbCodeGenerator.
5207
+ * @param {Array=} opt_data Optional initial data array, typically from a
5208
+ * server response, or constructed directly in Javascript. The array is used
5209
+ * in place and becomes part of the constructed object. It is not cloned.
5210
+ * If no data is provided, the constructed object will be empty, but still
5211
+ * valid.
5212
+ * @extends {jspb.Message}
5213
+ * @constructor
5214
+ */
5215
+ proto.clarifai.api.PipelineVersion = function(opt_data) {
5216
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5217
+ };
5218
+ goog.inherits(proto.clarifai.api.PipelineVersion, jspb.Message);
5219
+ if (goog.DEBUG && !COMPILED) {
5220
+ /**
5221
+ * @public
5222
+ * @override
5223
+ */
5224
+ proto.clarifai.api.PipelineVersion.displayName = 'proto.clarifai.api.PipelineVersion';
5225
+ }
5226
+ /**
5227
+ * Generated by JsPbCodeGenerator.
5228
+ * @param {Array=} opt_data Optional initial data array, typically from a
5229
+ * server response, or constructed directly in Javascript. The array is used
5230
+ * in place and becomes part of the constructed object. It is not cloned.
5231
+ * If no data is provided, the constructed object will be empty, but still
5232
+ * valid.
5233
+ * @extends {jspb.Message}
5234
+ * @constructor
5235
+ */
5236
+ proto.clarifai.api.OrchestrationStatus = function(opt_data) {
5237
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationStatus.oneofGroups_);
5238
+ };
5239
+ goog.inherits(proto.clarifai.api.OrchestrationStatus, jspb.Message);
5240
+ if (goog.DEBUG && !COMPILED) {
5241
+ /**
5242
+ * @public
5243
+ * @override
5244
+ */
5245
+ proto.clarifai.api.OrchestrationStatus.displayName = 'proto.clarifai.api.OrchestrationStatus';
5246
+ }
5247
+ /**
5248
+ * Generated by JsPbCodeGenerator.
5249
+ * @param {Array=} opt_data Optional initial data array, typically from a
5250
+ * server response, or constructed directly in Javascript. The array is used
5251
+ * in place and becomes part of the constructed object. It is not cloned.
5252
+ * If no data is provided, the constructed object will be empty, but still
5253
+ * valid.
5254
+ * @extends {jspb.Message}
5255
+ * @constructor
5256
+ */
5257
+ proto.clarifai.api.ArgoOrchestrationStatus = function(opt_data) {
5258
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5259
+ };
5260
+ goog.inherits(proto.clarifai.api.ArgoOrchestrationStatus, jspb.Message);
5261
+ if (goog.DEBUG && !COMPILED) {
5262
+ /**
5263
+ * @public
5264
+ * @override
5265
+ */
5266
+ proto.clarifai.api.ArgoOrchestrationStatus.displayName = 'proto.clarifai.api.ArgoOrchestrationStatus';
5267
+ }
5268
+ /**
5269
+ * Generated by JsPbCodeGenerator.
5270
+ * @param {Array=} opt_data Optional initial data array, typically from a
5271
+ * server response, or constructed directly in Javascript. The array is used
5272
+ * in place and becomes part of the constructed object. It is not cloned.
5273
+ * If no data is provided, the constructed object will be empty, but still
5274
+ * valid.
5275
+ * @extends {jspb.Message}
5276
+ * @constructor
5277
+ */
5278
+ proto.clarifai.api.PipelineVersionRun = function(opt_data) {
5279
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PipelineVersionRun.repeatedFields_, null);
5280
+ };
5281
+ goog.inherits(proto.clarifai.api.PipelineVersionRun, jspb.Message);
5282
+ if (goog.DEBUG && !COMPILED) {
5283
+ /**
5284
+ * @public
5285
+ * @override
5286
+ */
5287
+ proto.clarifai.api.PipelineVersionRun.displayName = 'proto.clarifai.api.PipelineVersionRun';
5288
+ }
5021
5289
 
5022
5290
 
5023
5291
 
@@ -24993,7 +25261,7 @@ proto.clarifai.api.Model.toObject = function(includeInstance, msg) {
24993
25261
  source: jspb.Message.getFieldWithDefault(msg, 36, 0),
24994
25262
  creator: jspb.Message.getFieldWithDefault(msg, 37, ""),
24995
25263
  versionCount: jspb.Message.getFieldWithDefault(msg, 38, 0),
24996
- usesTokens: jspb.Message.getBooleanFieldWithDefault(msg, 39, false)
25264
+ billingType: jspb.Message.getFieldWithDefault(msg, 40, 0)
24997
25265
  };
24998
25266
 
24999
25267
  if (includeInstance) {
@@ -25166,9 +25434,9 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) {
25166
25434
  var value = /** @type {number} */ (reader.readInt32());
25167
25435
  msg.setVersionCount(value);
25168
25436
  break;
25169
- case 39:
25170
- var value = /** @type {boolean} */ (reader.readBool());
25171
- msg.setUsesTokens(value);
25437
+ case 40:
25438
+ var value = /** @type {!proto.clarifai.api.Model.BillingType} */ (reader.readEnum());
25439
+ msg.setBillingType(value);
25172
25440
  break;
25173
25441
  default:
25174
25442
  reader.skipField();
@@ -25428,10 +25696,10 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function(message, writer) {
25428
25696
  f
25429
25697
  );
25430
25698
  }
25431
- f = message.getUsesTokens();
25432
- if (f) {
25433
- writer.writeBool(
25434
- 39,
25699
+ f = message.getBillingType();
25700
+ if (f !== 0.0) {
25701
+ writer.writeEnum(
25702
+ 40,
25435
25703
  f
25436
25704
  );
25437
25705
  }
@@ -25447,6 +25715,15 @@ proto.clarifai.api.Model.Source = {
25447
25715
  WRAPPED: 2
25448
25716
  };
25449
25717
 
25718
+ /**
25719
+ * @enum {number}
25720
+ */
25721
+ proto.clarifai.api.Model.BillingType = {
25722
+ UNKNOWN: 0,
25723
+ TOKENS: 1,
25724
+ OPS: 2
25725
+ };
25726
+
25450
25727
  /**
25451
25728
  * optional string id = 1;
25452
25729
  * @return {string}
@@ -26311,20 +26588,20 @@ proto.clarifai.api.Model.prototype.setVersionCount = function(value) {
26311
26588
 
26312
26589
 
26313
26590
  /**
26314
- * optional bool uses_tokens = 39;
26315
- * @return {boolean}
26591
+ * optional BillingType billing_type = 40;
26592
+ * @return {!proto.clarifai.api.Model.BillingType}
26316
26593
  */
26317
- proto.clarifai.api.Model.prototype.getUsesTokens = function() {
26318
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 39, false));
26594
+ proto.clarifai.api.Model.prototype.getBillingType = function() {
26595
+ return /** @type {!proto.clarifai.api.Model.BillingType} */ (jspb.Message.getFieldWithDefault(this, 40, 0));
26319
26596
  };
26320
26597
 
26321
26598
 
26322
26599
  /**
26323
- * @param {boolean} value
26600
+ * @param {!proto.clarifai.api.Model.BillingType} value
26324
26601
  * @return {!proto.clarifai.api.Model} returns this
26325
26602
  */
26326
- proto.clarifai.api.Model.prototype.setUsesTokens = function(value) {
26327
- return jspb.Message.setProto3BooleanField(this, 39, value);
26603
+ proto.clarifai.api.Model.prototype.setBillingType = function(value) {
26604
+ return jspb.Message.setProto3EnumField(this, 40, value);
26328
26605
  };
26329
26606
 
26330
26607
 
@@ -54532,7 +54809,7 @@ proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = functio
54532
54809
  * @private {!Array<number>}
54533
54810
  * @const
54534
54811
  */
54535
- proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3];
54812
+ proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3,4,5];
54536
54813
 
54537
54814
 
54538
54815
 
@@ -54566,8 +54843,10 @@ proto.clarifai.api.TaskReviewMetrics.prototype.toObject = function(opt_includeIn
54566
54843
  proto.clarifai.api.TaskReviewMetrics.toObject = function(includeInstance, msg) {
54567
54844
  var f, obj = {
54568
54845
  inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
54846
+ inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0),
54569
54847
  inputsCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
54570
- inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
54848
+ inputsReviewableCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
54849
+ inputsPercentEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
54571
54850
  };
54572
54851
 
54573
54852
  if (includeInstance) {
@@ -54608,15 +54887,27 @@ proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function(msg,
54608
54887
  var value = /** @type {number} */ (reader.readUint64());
54609
54888
  msg.setInputsCountEstimated(value);
54610
54889
  break;
54890
+ case 2:
54891
+ var value = /** @type {number} */ (reader.readUint32());
54892
+ msg.setInputsPercentEstimated(value);
54893
+ break;
54611
54894
  case 3:
54612
54895
  var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
54613
54896
  for (var i = 0; i < values.length; i++) {
54614
54897
  msg.addInputsCountEstimatedPerReviewer(values[i]);
54615
54898
  }
54616
54899
  break;
54617
- case 2:
54618
- var value = /** @type {number} */ (reader.readUint32());
54619
- msg.setInputsPercentEstimated(value);
54900
+ case 4:
54901
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
54902
+ for (var i = 0; i < values.length; i++) {
54903
+ msg.addInputsReviewableCountEstimatedPerReviewer(values[i]);
54904
+ }
54905
+ break;
54906
+ case 5:
54907
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
54908
+ for (var i = 0; i < values.length; i++) {
54909
+ msg.addInputsPercentEstimatedPerReviewer(values[i]);
54910
+ }
54620
54911
  break;
54621
54912
  default:
54622
54913
  reader.skipField();
@@ -54654,6 +54945,13 @@ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function(message,
54654
54945
  f
54655
54946
  );
54656
54947
  }
54948
+ f = message.getInputsPercentEstimated();
54949
+ if (f !== 0) {
54950
+ writer.writeUint32(
54951
+ 2,
54952
+ f
54953
+ );
54954
+ }
54657
54955
  f = message.getInputsCountEstimatedPerReviewerList();
54658
54956
  if (f.length > 0) {
54659
54957
  writer.writePackedUint64(
@@ -54661,10 +54959,17 @@ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function(message,
54661
54959
  f
54662
54960
  );
54663
54961
  }
54664
- f = message.getInputsPercentEstimated();
54665
- if (f !== 0) {
54666
- writer.writeUint32(
54667
- 2,
54962
+ f = message.getInputsReviewableCountEstimatedPerReviewerList();
54963
+ if (f.length > 0) {
54964
+ writer.writePackedUint64(
54965
+ 4,
54966
+ f
54967
+ );
54968
+ }
54969
+ f = message.getInputsPercentEstimatedPerReviewerList();
54970
+ if (f.length > 0) {
54971
+ writer.writePackedUint32(
54972
+ 5,
54668
54973
  f
54669
54974
  );
54670
54975
  }
@@ -54689,6 +54994,24 @@ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = functio
54689
54994
  };
54690
54995
 
54691
54996
 
54997
+ /**
54998
+ * optional uint32 inputs_percent_estimated = 2;
54999
+ * @return {number}
55000
+ */
55001
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = function() {
55002
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
55003
+ };
55004
+
55005
+
55006
+ /**
55007
+ * @param {number} value
55008
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
55009
+ */
55010
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function(value) {
55011
+ return jspb.Message.setProto3IntField(this, 2, value);
55012
+ };
55013
+
55014
+
54692
55015
  /**
54693
55016
  * repeated uint64 inputs_count_estimated_per_reviewer = 3;
54694
55017
  * @return {!Array<number>}
@@ -54727,20 +55050,76 @@ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsCountEstimatedPerRevie
54727
55050
 
54728
55051
 
54729
55052
  /**
54730
- * optional uint32 inputs_percent_estimated = 2;
54731
- * @return {number}
55053
+ * repeated uint64 inputs_reviewable_count_estimated_per_reviewer = 4;
55054
+ * @return {!Array<number>}
54732
55055
  */
54733
- proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = function() {
54734
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
55056
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsReviewableCountEstimatedPerReviewerList = function() {
55057
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
55058
+ };
55059
+
55060
+
55061
+ /**
55062
+ * @param {!Array<number>} value
55063
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
55064
+ */
55065
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsReviewableCountEstimatedPerReviewerList = function(value) {
55066
+ return jspb.Message.setField(this, 4, value || []);
54735
55067
  };
54736
55068
 
54737
55069
 
54738
55070
  /**
54739
55071
  * @param {number} value
55072
+ * @param {number=} opt_index
54740
55073
  * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
54741
55074
  */
54742
- proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function(value) {
54743
- return jspb.Message.setProto3IntField(this, 2, value);
55075
+ proto.clarifai.api.TaskReviewMetrics.prototype.addInputsReviewableCountEstimatedPerReviewer = function(value, opt_index) {
55076
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
55077
+ };
55078
+
55079
+
55080
+ /**
55081
+ * Clears the list making it empty but non-null.
55082
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
55083
+ */
55084
+ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsReviewableCountEstimatedPerReviewerList = function() {
55085
+ return this.setInputsReviewableCountEstimatedPerReviewerList([]);
55086
+ };
55087
+
55088
+
55089
+ /**
55090
+ * repeated uint32 inputs_percent_estimated_per_reviewer = 5;
55091
+ * @return {!Array<number>}
55092
+ */
55093
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimatedPerReviewerList = function() {
55094
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
55095
+ };
55096
+
55097
+
55098
+ /**
55099
+ * @param {!Array<number>} value
55100
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
55101
+ */
55102
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimatedPerReviewerList = function(value) {
55103
+ return jspb.Message.setField(this, 5, value || []);
55104
+ };
55105
+
55106
+
55107
+ /**
55108
+ * @param {number} value
55109
+ * @param {number=} opt_index
55110
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
55111
+ */
55112
+ proto.clarifai.api.TaskReviewMetrics.prototype.addInputsPercentEstimatedPerReviewer = function(value, opt_index) {
55113
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
55114
+ };
55115
+
55116
+
55117
+ /**
55118
+ * Clears the list making it empty but non-null.
55119
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
55120
+ */
55121
+ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsPercentEstimatedPerReviewerList = function() {
55122
+ return this.setInputsPercentEstimatedPerReviewerList([]);
54744
55123
  };
54745
55124
 
54746
55125
 
@@ -70655,7 +71034,8 @@ proto.clarifai.api.AutoscaleConfig.toObject = function(includeInstance, msg) {
70655
71034
  trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
70656
71035
  scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
70657
71036
  scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
70658
- disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
71037
+ disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
71038
+ scaleToZeroDelaySeconds: jspb.Message.getFieldWithDefault(msg, 8, 0)
70659
71039
  };
70660
71040
 
70661
71041
  if (includeInstance) {
@@ -70716,6 +71096,10 @@ proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function(msg, r
70716
71096
  var value = /** @type {boolean} */ (reader.readBool());
70717
71097
  msg.setDisablePacking(value);
70718
71098
  break;
71099
+ case 8:
71100
+ var value = /** @type {number} */ (reader.readUint32());
71101
+ msg.setScaleToZeroDelaySeconds(value);
71102
+ break;
70719
71103
  default:
70720
71104
  reader.skipField();
70721
71105
  break;
@@ -70787,6 +71171,13 @@ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function(message, w
70787
71171
  f
70788
71172
  );
70789
71173
  }
71174
+ f = message.getScaleToZeroDelaySeconds();
71175
+ if (f !== 0) {
71176
+ writer.writeUint32(
71177
+ 8,
71178
+ f
71179
+ );
71180
+ }
70790
71181
  };
70791
71182
 
70792
71183
 
@@ -70898,6 +71289,24 @@ proto.clarifai.api.AutoscaleConfig.prototype.setDisablePacking = function(value)
70898
71289
  };
70899
71290
 
70900
71291
 
71292
+ /**
71293
+ * optional uint32 scale_to_zero_delay_seconds = 8;
71294
+ * @return {number}
71295
+ */
71296
+ proto.clarifai.api.AutoscaleConfig.prototype.getScaleToZeroDelaySeconds = function() {
71297
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
71298
+ };
71299
+
71300
+
71301
+ /**
71302
+ * @param {number} value
71303
+ * @return {!proto.clarifai.api.AutoscaleConfig} returns this
71304
+ */
71305
+ proto.clarifai.api.AutoscaleConfig.prototype.setScaleToZeroDelaySeconds = function(value) {
71306
+ return jspb.Message.setProto3IntField(this, 8, value);
71307
+ };
71308
+
71309
+
70901
71310
 
70902
71311
  /**
70903
71312
  * List of repeated fields within this message type.
@@ -74083,7 +74492,7 @@ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVers
74083
74492
  * @private {!Array<number>}
74084
74493
  * @const
74085
74494
  */
74086
- proto.clarifai.api.ComputePlaneMetrics.repeatedFields_ = [10];
74495
+ proto.clarifai.api.ComputePlaneMetrics.repeatedFields_ = [10,12];
74087
74496
 
74088
74497
 
74089
74498
 
@@ -74127,7 +74536,9 @@ proto.clarifai.api.ComputePlaneMetrics.toObject = function(includeInstance, msg)
74127
74536
  eventType: jspb.Message.getFieldWithDefault(msg, 9, ""),
74128
74537
  gpuMetricsList: jspb.Message.toObjectList(msg.getGpuMetricsList(),
74129
74538
  proto.clarifai.api.GpuMetrics.toObject, includeInstance),
74130
- hostname: jspb.Message.getFieldWithDefault(msg, 11, "")
74539
+ hostname: jspb.Message.getFieldWithDefault(msg, 11, ""),
74540
+ cpuMetricsList: jspb.Message.toObjectList(msg.getCpuMetricsList(),
74541
+ proto.clarifai.api.CpuMetrics.toObject, includeInstance)
74131
74542
  };
74132
74543
 
74133
74544
  if (includeInstance) {
@@ -74211,6 +74622,11 @@ proto.clarifai.api.ComputePlaneMetrics.deserializeBinaryFromReader = function(ms
74211
74622
  var value = /** @type {string} */ (reader.readString());
74212
74623
  msg.setHostname(value);
74213
74624
  break;
74625
+ case 12:
74626
+ var value = new proto.clarifai.api.CpuMetrics;
74627
+ reader.readMessage(value,proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader);
74628
+ msg.addCpuMetrics(value);
74629
+ break;
74214
74630
  default:
74215
74631
  reader.skipField();
74216
74632
  break;
@@ -74320,6 +74736,14 @@ proto.clarifai.api.ComputePlaneMetrics.serializeBinaryToWriter = function(messag
74320
74736
  f
74321
74737
  );
74322
74738
  }
74739
+ f = message.getCpuMetricsList();
74740
+ if (f.length > 0) {
74741
+ writer.writeRepeatedMessage(
74742
+ 12,
74743
+ f,
74744
+ proto.clarifai.api.CpuMetrics.serializeBinaryToWriter
74745
+ );
74746
+ }
74323
74747
  };
74324
74748
 
74325
74749
 
@@ -74579,6 +75003,44 @@ proto.clarifai.api.ComputePlaneMetrics.prototype.setHostname = function(value) {
74579
75003
  };
74580
75004
 
74581
75005
 
75006
+ /**
75007
+ * repeated CpuMetrics cpu_metrics = 12;
75008
+ * @return {!Array<!proto.clarifai.api.CpuMetrics>}
75009
+ */
75010
+ proto.clarifai.api.ComputePlaneMetrics.prototype.getCpuMetricsList = function() {
75011
+ return /** @type{!Array<!proto.clarifai.api.CpuMetrics>} */ (
75012
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.CpuMetrics, 12));
75013
+ };
75014
+
75015
+
75016
+ /**
75017
+ * @param {!Array<!proto.clarifai.api.CpuMetrics>} value
75018
+ * @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
75019
+ */
75020
+ proto.clarifai.api.ComputePlaneMetrics.prototype.setCpuMetricsList = function(value) {
75021
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
75022
+ };
75023
+
75024
+
75025
+ /**
75026
+ * @param {!proto.clarifai.api.CpuMetrics=} opt_value
75027
+ * @param {number=} opt_index
75028
+ * @return {!proto.clarifai.api.CpuMetrics}
75029
+ */
75030
+ proto.clarifai.api.ComputePlaneMetrics.prototype.addCpuMetrics = function(opt_value, opt_index) {
75031
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.CpuMetrics, opt_index);
75032
+ };
75033
+
75034
+
75035
+ /**
75036
+ * Clears the list making it empty but non-null.
75037
+ * @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
75038
+ */
75039
+ proto.clarifai.api.ComputePlaneMetrics.prototype.clearCpuMetricsList = function() {
75040
+ return this.setCpuMetricsList([]);
75041
+ };
75042
+
75043
+
74582
75044
 
74583
75045
 
74584
75046
 
@@ -74832,6 +75294,277 @@ proto.clarifai.api.GpuMetrics.prototype.setMemoryUtilizationPct = function(value
74832
75294
 
74833
75295
 
74834
75296
 
75297
+ if (jspb.Message.GENERATE_TO_OBJECT) {
75298
+ /**
75299
+ * Creates an object representation of this proto.
75300
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
75301
+ * Optional fields that are not set will be set to undefined.
75302
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
75303
+ * For the list of reserved names please see:
75304
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
75305
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
75306
+ * JSPB instance for transitional soy proto support:
75307
+ * http://goto/soy-param-migration
75308
+ * @return {!Object}
75309
+ */
75310
+ proto.clarifai.api.CpuMetrics.prototype.toObject = function(opt_includeInstance) {
75311
+ return proto.clarifai.api.CpuMetrics.toObject(opt_includeInstance, this);
75312
+ };
75313
+
75314
+
75315
+ /**
75316
+ * Static version of the {@see toObject} method.
75317
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
75318
+ * the JSPB instance for transitional soy proto support:
75319
+ * http://goto/soy-param-migration
75320
+ * @param {!proto.clarifai.api.CpuMetrics} msg The msg instance to transform.
75321
+ * @return {!Object}
75322
+ * @suppress {unusedLocalVariables} f is only used for nested messages
75323
+ */
75324
+ proto.clarifai.api.CpuMetrics.toObject = function(includeInstance, msg) {
75325
+ var f, obj = {
75326
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
75327
+ cpuUtilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
75328
+ memoryUtilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
75329
+ millicores: jspb.Message.getFieldWithDefault(msg, 4, 0),
75330
+ memoryBytes: jspb.Message.getFieldWithDefault(msg, 5, 0)
75331
+ };
75332
+
75333
+ if (includeInstance) {
75334
+ obj.$jspbMessageInstance = msg;
75335
+ }
75336
+ return obj;
75337
+ };
75338
+ }
75339
+
75340
+
75341
+ /**
75342
+ * Deserializes binary data (in protobuf wire format).
75343
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
75344
+ * @return {!proto.clarifai.api.CpuMetrics}
75345
+ */
75346
+ proto.clarifai.api.CpuMetrics.deserializeBinary = function(bytes) {
75347
+ var reader = new jspb.BinaryReader(bytes);
75348
+ var msg = new proto.clarifai.api.CpuMetrics;
75349
+ return proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader(msg, reader);
75350
+ };
75351
+
75352
+
75353
+ /**
75354
+ * Deserializes binary data (in protobuf wire format) from the
75355
+ * given reader into the given message object.
75356
+ * @param {!proto.clarifai.api.CpuMetrics} msg The message object to deserialize into.
75357
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
75358
+ * @return {!proto.clarifai.api.CpuMetrics}
75359
+ */
75360
+ proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader = function(msg, reader) {
75361
+ while (reader.nextField()) {
75362
+ if (reader.isEndGroup()) {
75363
+ break;
75364
+ }
75365
+ var field = reader.getFieldNumber();
75366
+ switch (field) {
75367
+ case 1:
75368
+ var value = new google_protobuf_timestamp_pb.Timestamp;
75369
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
75370
+ msg.setTimestamp(value);
75371
+ break;
75372
+ case 2:
75373
+ var value = /** @type {number} */ (reader.readFloat());
75374
+ msg.setCpuUtilizationPct(value);
75375
+ break;
75376
+ case 3:
75377
+ var value = /** @type {number} */ (reader.readFloat());
75378
+ msg.setMemoryUtilizationPct(value);
75379
+ break;
75380
+ case 4:
75381
+ var value = /** @type {number} */ (reader.readInt64());
75382
+ msg.setMillicores(value);
75383
+ break;
75384
+ case 5:
75385
+ var value = /** @type {number} */ (reader.readInt64());
75386
+ msg.setMemoryBytes(value);
75387
+ break;
75388
+ default:
75389
+ reader.skipField();
75390
+ break;
75391
+ }
75392
+ }
75393
+ return msg;
75394
+ };
75395
+
75396
+
75397
+ /**
75398
+ * Serializes the message to binary data (in protobuf wire format).
75399
+ * @return {!Uint8Array}
75400
+ */
75401
+ proto.clarifai.api.CpuMetrics.prototype.serializeBinary = function() {
75402
+ var writer = new jspb.BinaryWriter();
75403
+ proto.clarifai.api.CpuMetrics.serializeBinaryToWriter(this, writer);
75404
+ return writer.getResultBuffer();
75405
+ };
75406
+
75407
+
75408
+ /**
75409
+ * Serializes the given message to binary data (in protobuf wire
75410
+ * format), writing to the given BinaryWriter.
75411
+ * @param {!proto.clarifai.api.CpuMetrics} message
75412
+ * @param {!jspb.BinaryWriter} writer
75413
+ * @suppress {unusedLocalVariables} f is only used for nested messages
75414
+ */
75415
+ proto.clarifai.api.CpuMetrics.serializeBinaryToWriter = function(message, writer) {
75416
+ var f = undefined;
75417
+ f = message.getTimestamp();
75418
+ if (f != null) {
75419
+ writer.writeMessage(
75420
+ 1,
75421
+ f,
75422
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
75423
+ );
75424
+ }
75425
+ f = message.getCpuUtilizationPct();
75426
+ if (f !== 0.0) {
75427
+ writer.writeFloat(
75428
+ 2,
75429
+ f
75430
+ );
75431
+ }
75432
+ f = message.getMemoryUtilizationPct();
75433
+ if (f !== 0.0) {
75434
+ writer.writeFloat(
75435
+ 3,
75436
+ f
75437
+ );
75438
+ }
75439
+ f = message.getMillicores();
75440
+ if (f !== 0) {
75441
+ writer.writeInt64(
75442
+ 4,
75443
+ f
75444
+ );
75445
+ }
75446
+ f = message.getMemoryBytes();
75447
+ if (f !== 0) {
75448
+ writer.writeInt64(
75449
+ 5,
75450
+ f
75451
+ );
75452
+ }
75453
+ };
75454
+
75455
+
75456
+ /**
75457
+ * optional google.protobuf.Timestamp timestamp = 1;
75458
+ * @return {?proto.google.protobuf.Timestamp}
75459
+ */
75460
+ proto.clarifai.api.CpuMetrics.prototype.getTimestamp = function() {
75461
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
75462
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
75463
+ };
75464
+
75465
+
75466
+ /**
75467
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
75468
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
75469
+ */
75470
+ proto.clarifai.api.CpuMetrics.prototype.setTimestamp = function(value) {
75471
+ return jspb.Message.setWrapperField(this, 1, value);
75472
+ };
75473
+
75474
+
75475
+ /**
75476
+ * Clears the message field making it undefined.
75477
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
75478
+ */
75479
+ proto.clarifai.api.CpuMetrics.prototype.clearTimestamp = function() {
75480
+ return this.setTimestamp(undefined);
75481
+ };
75482
+
75483
+
75484
+ /**
75485
+ * Returns whether this field is set.
75486
+ * @return {boolean}
75487
+ */
75488
+ proto.clarifai.api.CpuMetrics.prototype.hasTimestamp = function() {
75489
+ return jspb.Message.getField(this, 1) != null;
75490
+ };
75491
+
75492
+
75493
+ /**
75494
+ * optional float cpu_utilization_pct = 2;
75495
+ * @return {number}
75496
+ */
75497
+ proto.clarifai.api.CpuMetrics.prototype.getCpuUtilizationPct = function() {
75498
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
75499
+ };
75500
+
75501
+
75502
+ /**
75503
+ * @param {number} value
75504
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
75505
+ */
75506
+ proto.clarifai.api.CpuMetrics.prototype.setCpuUtilizationPct = function(value) {
75507
+ return jspb.Message.setProto3FloatField(this, 2, value);
75508
+ };
75509
+
75510
+
75511
+ /**
75512
+ * optional float memory_utilization_pct = 3;
75513
+ * @return {number}
75514
+ */
75515
+ proto.clarifai.api.CpuMetrics.prototype.getMemoryUtilizationPct = function() {
75516
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
75517
+ };
75518
+
75519
+
75520
+ /**
75521
+ * @param {number} value
75522
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
75523
+ */
75524
+ proto.clarifai.api.CpuMetrics.prototype.setMemoryUtilizationPct = function(value) {
75525
+ return jspb.Message.setProto3FloatField(this, 3, value);
75526
+ };
75527
+
75528
+
75529
+ /**
75530
+ * optional int64 millicores = 4;
75531
+ * @return {number}
75532
+ */
75533
+ proto.clarifai.api.CpuMetrics.prototype.getMillicores = function() {
75534
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
75535
+ };
75536
+
75537
+
75538
+ /**
75539
+ * @param {number} value
75540
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
75541
+ */
75542
+ proto.clarifai.api.CpuMetrics.prototype.setMillicores = function(value) {
75543
+ return jspb.Message.setProto3IntField(this, 4, value);
75544
+ };
75545
+
75546
+
75547
+ /**
75548
+ * optional int64 memory_bytes = 5;
75549
+ * @return {number}
75550
+ */
75551
+ proto.clarifai.api.CpuMetrics.prototype.getMemoryBytes = function() {
75552
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
75553
+ };
75554
+
75555
+
75556
+ /**
75557
+ * @param {number} value
75558
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
75559
+ */
75560
+ proto.clarifai.api.CpuMetrics.prototype.setMemoryBytes = function(value) {
75561
+ return jspb.Message.setProto3IntField(this, 5, value);
75562
+ };
75563
+
75564
+
75565
+
75566
+
75567
+
74835
75568
  if (jspb.Message.GENERATE_TO_OBJECT) {
74836
75569
  /**
74837
75570
  * Creates an object representation of this proto.
@@ -75108,7 +75841,10 @@ proto.clarifai.api.ComputeSourceMetadata.toObject = function(includeInstance, ms
75108
75841
  workflowId: jspb.Message.getFieldWithDefault(msg, 4, ""),
75109
75842
  computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
75110
75843
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
75111
- runnerId: jspb.Message.getFieldWithDefault(msg, 8, "")
75844
+ runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
75845
+ pipelineId: jspb.Message.getFieldWithDefault(msg, 9, ""),
75846
+ pipelineVersionId: jspb.Message.getFieldWithDefault(msg, 10, ""),
75847
+ pipelineVersionRunId: jspb.Message.getFieldWithDefault(msg, 11, "")
75112
75848
  };
75113
75849
 
75114
75850
  if (includeInstance) {
@@ -75174,6 +75910,18 @@ proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader = function(
75174
75910
  var value = /** @type {string} */ (reader.readString());
75175
75911
  msg.setRunnerId(value);
75176
75912
  break;
75913
+ case 9:
75914
+ var value = /** @type {string} */ (reader.readString());
75915
+ msg.setPipelineId(value);
75916
+ break;
75917
+ case 10:
75918
+ var value = /** @type {string} */ (reader.readString());
75919
+ msg.setPipelineVersionId(value);
75920
+ break;
75921
+ case 11:
75922
+ var value = /** @type {string} */ (reader.readString());
75923
+ msg.setPipelineVersionRunId(value);
75924
+ break;
75177
75925
  default:
75178
75926
  reader.skipField();
75179
75927
  break;
@@ -75253,6 +76001,27 @@ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter = function(mess
75253
76001
  f
75254
76002
  );
75255
76003
  }
76004
+ f = message.getPipelineId();
76005
+ if (f.length > 0) {
76006
+ writer.writeString(
76007
+ 9,
76008
+ f
76009
+ );
76010
+ }
76011
+ f = message.getPipelineVersionId();
76012
+ if (f.length > 0) {
76013
+ writer.writeString(
76014
+ 10,
76015
+ f
76016
+ );
76017
+ }
76018
+ f = message.getPipelineVersionRunId();
76019
+ if (f.length > 0) {
76020
+ writer.writeString(
76021
+ 11,
76022
+ f
76023
+ );
76024
+ }
75256
76025
  };
75257
76026
 
75258
76027
 
@@ -75401,6 +76170,2981 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function(value)
75401
76170
  };
75402
76171
 
75403
76172
 
76173
+ /**
76174
+ * optional string pipeline_id = 9;
76175
+ * @return {string}
76176
+ */
76177
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineId = function() {
76178
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
76179
+ };
76180
+
76181
+
76182
+ /**
76183
+ * @param {string} value
76184
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
76185
+ */
76186
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineId = function(value) {
76187
+ return jspb.Message.setProto3StringField(this, 9, value);
76188
+ };
76189
+
76190
+
76191
+ /**
76192
+ * optional string pipeline_version_id = 10;
76193
+ * @return {string}
76194
+ */
76195
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineVersionId = function() {
76196
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
76197
+ };
76198
+
76199
+
76200
+ /**
76201
+ * @param {string} value
76202
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
76203
+ */
76204
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineVersionId = function(value) {
76205
+ return jspb.Message.setProto3StringField(this, 10, value);
76206
+ };
76207
+
76208
+
76209
+ /**
76210
+ * optional string pipeline_version_run_id = 11;
76211
+ * @return {string}
76212
+ */
76213
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineVersionRunId = function() {
76214
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
76215
+ };
76216
+
76217
+
76218
+ /**
76219
+ * @param {string} value
76220
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
76221
+ */
76222
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineVersionRunId = function(value) {
76223
+ return jspb.Message.setProto3StringField(this, 11, value);
76224
+ };
76225
+
76226
+
76227
+
76228
+
76229
+
76230
+ if (jspb.Message.GENERATE_TO_OBJECT) {
76231
+ /**
76232
+ * Creates an object representation of this proto.
76233
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
76234
+ * Optional fields that are not set will be set to undefined.
76235
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
76236
+ * For the list of reserved names please see:
76237
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
76238
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
76239
+ * JSPB instance for transitional soy proto support:
76240
+ * http://goto/soy-param-migration
76241
+ * @return {!Object}
76242
+ */
76243
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.toObject = function(opt_includeInstance) {
76244
+ return proto.clarifai.api.WorkflowVersionEvaluation.toObject(opt_includeInstance, this);
76245
+ };
76246
+
76247
+
76248
+ /**
76249
+ * Static version of the {@see toObject} method.
76250
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
76251
+ * the JSPB instance for transitional soy proto support:
76252
+ * http://goto/soy-param-migration
76253
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluation} msg The msg instance to transform.
76254
+ * @return {!Object}
76255
+ * @suppress {unusedLocalVariables} f is only used for nested messages
76256
+ */
76257
+ proto.clarifai.api.WorkflowVersionEvaluation.toObject = function(includeInstance, msg) {
76258
+ var f, obj = {
76259
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
76260
+ workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""),
76261
+ workflowVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
76262
+ groundTruthDatasetId: jspb.Message.getFieldWithDefault(msg, 4, ""),
76263
+ groundTruthDatasetVersionId: jspb.Message.getFieldWithDefault(msg, 5, ""),
76264
+ predictionsDatasetId: jspb.Message.getFieldWithDefault(msg, 6, ""),
76265
+ predictionsDatasetVersionId: jspb.Message.getFieldWithDefault(msg, 7, ""),
76266
+ evaluationTemplateId: jspb.Message.getFieldWithDefault(msg, 8, ""),
76267
+ workflowEvaluationResult: (f = msg.getWorkflowEvaluationResult()) && proto.clarifai.api.WorkflowEvaluationResult.toObject(includeInstance, f),
76268
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
76269
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
76270
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
76271
+ };
76272
+
76273
+ if (includeInstance) {
76274
+ obj.$jspbMessageInstance = msg;
76275
+ }
76276
+ return obj;
76277
+ };
76278
+ }
76279
+
76280
+
76281
+ /**
76282
+ * Deserializes binary data (in protobuf wire format).
76283
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
76284
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation}
76285
+ */
76286
+ proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinary = function(bytes) {
76287
+ var reader = new jspb.BinaryReader(bytes);
76288
+ var msg = new proto.clarifai.api.WorkflowVersionEvaluation;
76289
+ return proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinaryFromReader(msg, reader);
76290
+ };
76291
+
76292
+
76293
+ /**
76294
+ * Deserializes binary data (in protobuf wire format) from the
76295
+ * given reader into the given message object.
76296
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluation} msg The message object to deserialize into.
76297
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
76298
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation}
76299
+ */
76300
+ proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinaryFromReader = function(msg, reader) {
76301
+ while (reader.nextField()) {
76302
+ if (reader.isEndGroup()) {
76303
+ break;
76304
+ }
76305
+ var field = reader.getFieldNumber();
76306
+ switch (field) {
76307
+ case 1:
76308
+ var value = /** @type {string} */ (reader.readString());
76309
+ msg.setId(value);
76310
+ break;
76311
+ case 2:
76312
+ var value = /** @type {string} */ (reader.readString());
76313
+ msg.setWorkflowId(value);
76314
+ break;
76315
+ case 3:
76316
+ var value = /** @type {string} */ (reader.readString());
76317
+ msg.setWorkflowVersionId(value);
76318
+ break;
76319
+ case 4:
76320
+ var value = /** @type {string} */ (reader.readString());
76321
+ msg.setGroundTruthDatasetId(value);
76322
+ break;
76323
+ case 5:
76324
+ var value = /** @type {string} */ (reader.readString());
76325
+ msg.setGroundTruthDatasetVersionId(value);
76326
+ break;
76327
+ case 6:
76328
+ var value = /** @type {string} */ (reader.readString());
76329
+ msg.setPredictionsDatasetId(value);
76330
+ break;
76331
+ case 7:
76332
+ var value = /** @type {string} */ (reader.readString());
76333
+ msg.setPredictionsDatasetVersionId(value);
76334
+ break;
76335
+ case 8:
76336
+ var value = /** @type {string} */ (reader.readString());
76337
+ msg.setEvaluationTemplateId(value);
76338
+ break;
76339
+ case 9:
76340
+ var value = new proto.clarifai.api.WorkflowEvaluationResult;
76341
+ reader.readMessage(value,proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader);
76342
+ msg.setWorkflowEvaluationResult(value);
76343
+ break;
76344
+ case 10:
76345
+ var value = new proto_clarifai_api_status_status_pb.Status;
76346
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
76347
+ msg.setStatus(value);
76348
+ break;
76349
+ case 11:
76350
+ var value = new google_protobuf_timestamp_pb.Timestamp;
76351
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
76352
+ msg.setCreatedAt(value);
76353
+ break;
76354
+ case 12:
76355
+ var value = new google_protobuf_timestamp_pb.Timestamp;
76356
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
76357
+ msg.setModifiedAt(value);
76358
+ break;
76359
+ default:
76360
+ reader.skipField();
76361
+ break;
76362
+ }
76363
+ }
76364
+ return msg;
76365
+ };
76366
+
76367
+
76368
+ /**
76369
+ * Serializes the message to binary data (in protobuf wire format).
76370
+ * @return {!Uint8Array}
76371
+ */
76372
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.serializeBinary = function() {
76373
+ var writer = new jspb.BinaryWriter();
76374
+ proto.clarifai.api.WorkflowVersionEvaluation.serializeBinaryToWriter(this, writer);
76375
+ return writer.getResultBuffer();
76376
+ };
76377
+
76378
+
76379
+ /**
76380
+ * Serializes the given message to binary data (in protobuf wire
76381
+ * format), writing to the given BinaryWriter.
76382
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluation} message
76383
+ * @param {!jspb.BinaryWriter} writer
76384
+ * @suppress {unusedLocalVariables} f is only used for nested messages
76385
+ */
76386
+ proto.clarifai.api.WorkflowVersionEvaluation.serializeBinaryToWriter = function(message, writer) {
76387
+ var f = undefined;
76388
+ f = message.getId();
76389
+ if (f.length > 0) {
76390
+ writer.writeString(
76391
+ 1,
76392
+ f
76393
+ );
76394
+ }
76395
+ f = message.getWorkflowId();
76396
+ if (f.length > 0) {
76397
+ writer.writeString(
76398
+ 2,
76399
+ f
76400
+ );
76401
+ }
76402
+ f = message.getWorkflowVersionId();
76403
+ if (f.length > 0) {
76404
+ writer.writeString(
76405
+ 3,
76406
+ f
76407
+ );
76408
+ }
76409
+ f = message.getGroundTruthDatasetId();
76410
+ if (f.length > 0) {
76411
+ writer.writeString(
76412
+ 4,
76413
+ f
76414
+ );
76415
+ }
76416
+ f = message.getGroundTruthDatasetVersionId();
76417
+ if (f.length > 0) {
76418
+ writer.writeString(
76419
+ 5,
76420
+ f
76421
+ );
76422
+ }
76423
+ f = message.getPredictionsDatasetId();
76424
+ if (f.length > 0) {
76425
+ writer.writeString(
76426
+ 6,
76427
+ f
76428
+ );
76429
+ }
76430
+ f = message.getPredictionsDatasetVersionId();
76431
+ if (f.length > 0) {
76432
+ writer.writeString(
76433
+ 7,
76434
+ f
76435
+ );
76436
+ }
76437
+ f = message.getEvaluationTemplateId();
76438
+ if (f.length > 0) {
76439
+ writer.writeString(
76440
+ 8,
76441
+ f
76442
+ );
76443
+ }
76444
+ f = message.getWorkflowEvaluationResult();
76445
+ if (f != null) {
76446
+ writer.writeMessage(
76447
+ 9,
76448
+ f,
76449
+ proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter
76450
+ );
76451
+ }
76452
+ f = message.getStatus();
76453
+ if (f != null) {
76454
+ writer.writeMessage(
76455
+ 10,
76456
+ f,
76457
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
76458
+ );
76459
+ }
76460
+ f = message.getCreatedAt();
76461
+ if (f != null) {
76462
+ writer.writeMessage(
76463
+ 11,
76464
+ f,
76465
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
76466
+ );
76467
+ }
76468
+ f = message.getModifiedAt();
76469
+ if (f != null) {
76470
+ writer.writeMessage(
76471
+ 12,
76472
+ f,
76473
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
76474
+ );
76475
+ }
76476
+ };
76477
+
76478
+
76479
+ /**
76480
+ * optional string id = 1;
76481
+ * @return {string}
76482
+ */
76483
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getId = function() {
76484
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
76485
+ };
76486
+
76487
+
76488
+ /**
76489
+ * @param {string} value
76490
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76491
+ */
76492
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setId = function(value) {
76493
+ return jspb.Message.setProto3StringField(this, 1, value);
76494
+ };
76495
+
76496
+
76497
+ /**
76498
+ * optional string workflow_id = 2;
76499
+ * @return {string}
76500
+ */
76501
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowId = function() {
76502
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
76503
+ };
76504
+
76505
+
76506
+ /**
76507
+ * @param {string} value
76508
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76509
+ */
76510
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowId = function(value) {
76511
+ return jspb.Message.setProto3StringField(this, 2, value);
76512
+ };
76513
+
76514
+
76515
+ /**
76516
+ * optional string workflow_version_id = 3;
76517
+ * @return {string}
76518
+ */
76519
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowVersionId = function() {
76520
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
76521
+ };
76522
+
76523
+
76524
+ /**
76525
+ * @param {string} value
76526
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76527
+ */
76528
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowVersionId = function(value) {
76529
+ return jspb.Message.setProto3StringField(this, 3, value);
76530
+ };
76531
+
76532
+
76533
+ /**
76534
+ * optional string ground_truth_dataset_id = 4;
76535
+ * @return {string}
76536
+ */
76537
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getGroundTruthDatasetId = function() {
76538
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
76539
+ };
76540
+
76541
+
76542
+ /**
76543
+ * @param {string} value
76544
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76545
+ */
76546
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setGroundTruthDatasetId = function(value) {
76547
+ return jspb.Message.setProto3StringField(this, 4, value);
76548
+ };
76549
+
76550
+
76551
+ /**
76552
+ * optional string ground_truth_dataset_version_id = 5;
76553
+ * @return {string}
76554
+ */
76555
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getGroundTruthDatasetVersionId = function() {
76556
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
76557
+ };
76558
+
76559
+
76560
+ /**
76561
+ * @param {string} value
76562
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76563
+ */
76564
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setGroundTruthDatasetVersionId = function(value) {
76565
+ return jspb.Message.setProto3StringField(this, 5, value);
76566
+ };
76567
+
76568
+
76569
+ /**
76570
+ * optional string predictions_dataset_id = 6;
76571
+ * @return {string}
76572
+ */
76573
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getPredictionsDatasetId = function() {
76574
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
76575
+ };
76576
+
76577
+
76578
+ /**
76579
+ * @param {string} value
76580
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76581
+ */
76582
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setPredictionsDatasetId = function(value) {
76583
+ return jspb.Message.setProto3StringField(this, 6, value);
76584
+ };
76585
+
76586
+
76587
+ /**
76588
+ * optional string predictions_dataset_version_id = 7;
76589
+ * @return {string}
76590
+ */
76591
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getPredictionsDatasetVersionId = function() {
76592
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
76593
+ };
76594
+
76595
+
76596
+ /**
76597
+ * @param {string} value
76598
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76599
+ */
76600
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setPredictionsDatasetVersionId = function(value) {
76601
+ return jspb.Message.setProto3StringField(this, 7, value);
76602
+ };
76603
+
76604
+
76605
+ /**
76606
+ * optional string evaluation_template_id = 8;
76607
+ * @return {string}
76608
+ */
76609
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getEvaluationTemplateId = function() {
76610
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
76611
+ };
76612
+
76613
+
76614
+ /**
76615
+ * @param {string} value
76616
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76617
+ */
76618
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setEvaluationTemplateId = function(value) {
76619
+ return jspb.Message.setProto3StringField(this, 8, value);
76620
+ };
76621
+
76622
+
76623
+ /**
76624
+ * optional WorkflowEvaluationResult workflow_evaluation_result = 9;
76625
+ * @return {?proto.clarifai.api.WorkflowEvaluationResult}
76626
+ */
76627
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowEvaluationResult = function() {
76628
+ return /** @type{?proto.clarifai.api.WorkflowEvaluationResult} */ (
76629
+ jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowEvaluationResult, 9));
76630
+ };
76631
+
76632
+
76633
+ /**
76634
+ * @param {?proto.clarifai.api.WorkflowEvaluationResult|undefined} value
76635
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76636
+ */
76637
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowEvaluationResult = function(value) {
76638
+ return jspb.Message.setWrapperField(this, 9, value);
76639
+ };
76640
+
76641
+
76642
+ /**
76643
+ * Clears the message field making it undefined.
76644
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76645
+ */
76646
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearWorkflowEvaluationResult = function() {
76647
+ return this.setWorkflowEvaluationResult(undefined);
76648
+ };
76649
+
76650
+
76651
+ /**
76652
+ * Returns whether this field is set.
76653
+ * @return {boolean}
76654
+ */
76655
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasWorkflowEvaluationResult = function() {
76656
+ return jspb.Message.getField(this, 9) != null;
76657
+ };
76658
+
76659
+
76660
+ /**
76661
+ * optional status.Status status = 10;
76662
+ * @return {?proto.clarifai.api.status.Status}
76663
+ */
76664
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getStatus = function() {
76665
+ return /** @type{?proto.clarifai.api.status.Status} */ (
76666
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 10));
76667
+ };
76668
+
76669
+
76670
+ /**
76671
+ * @param {?proto.clarifai.api.status.Status|undefined} value
76672
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76673
+ */
76674
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setStatus = function(value) {
76675
+ return jspb.Message.setWrapperField(this, 10, value);
76676
+ };
76677
+
76678
+
76679
+ /**
76680
+ * Clears the message field making it undefined.
76681
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76682
+ */
76683
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearStatus = function() {
76684
+ return this.setStatus(undefined);
76685
+ };
76686
+
76687
+
76688
+ /**
76689
+ * Returns whether this field is set.
76690
+ * @return {boolean}
76691
+ */
76692
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasStatus = function() {
76693
+ return jspb.Message.getField(this, 10) != null;
76694
+ };
76695
+
76696
+
76697
+ /**
76698
+ * optional google.protobuf.Timestamp created_at = 11;
76699
+ * @return {?proto.google.protobuf.Timestamp}
76700
+ */
76701
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getCreatedAt = function() {
76702
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
76703
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
76704
+ };
76705
+
76706
+
76707
+ /**
76708
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
76709
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76710
+ */
76711
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setCreatedAt = function(value) {
76712
+ return jspb.Message.setWrapperField(this, 11, value);
76713
+ };
76714
+
76715
+
76716
+ /**
76717
+ * Clears the message field making it undefined.
76718
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76719
+ */
76720
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearCreatedAt = function() {
76721
+ return this.setCreatedAt(undefined);
76722
+ };
76723
+
76724
+
76725
+ /**
76726
+ * Returns whether this field is set.
76727
+ * @return {boolean}
76728
+ */
76729
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasCreatedAt = function() {
76730
+ return jspb.Message.getField(this, 11) != null;
76731
+ };
76732
+
76733
+
76734
+ /**
76735
+ * optional google.protobuf.Timestamp modified_at = 12;
76736
+ * @return {?proto.google.protobuf.Timestamp}
76737
+ */
76738
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getModifiedAt = function() {
76739
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
76740
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
76741
+ };
76742
+
76743
+
76744
+ /**
76745
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
76746
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76747
+ */
76748
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setModifiedAt = function(value) {
76749
+ return jspb.Message.setWrapperField(this, 12, value);
76750
+ };
76751
+
76752
+
76753
+ /**
76754
+ * Clears the message field making it undefined.
76755
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
76756
+ */
76757
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearModifiedAt = function() {
76758
+ return this.setModifiedAt(undefined);
76759
+ };
76760
+
76761
+
76762
+ /**
76763
+ * Returns whether this field is set.
76764
+ * @return {boolean}
76765
+ */
76766
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasModifiedAt = function() {
76767
+ return jspb.Message.getField(this, 12) != null;
76768
+ };
76769
+
76770
+
76771
+
76772
+
76773
+
76774
+ if (jspb.Message.GENERATE_TO_OBJECT) {
76775
+ /**
76776
+ * Creates an object representation of this proto.
76777
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
76778
+ * Optional fields that are not set will be set to undefined.
76779
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
76780
+ * For the list of reserved names please see:
76781
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
76782
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
76783
+ * JSPB instance for transitional soy proto support:
76784
+ * http://goto/soy-param-migration
76785
+ * @return {!Object}
76786
+ */
76787
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.toObject = function(opt_includeInstance) {
76788
+ return proto.clarifai.api.WorkflowEvaluationResult.toObject(opt_includeInstance, this);
76789
+ };
76790
+
76791
+
76792
+ /**
76793
+ * Static version of the {@see toObject} method.
76794
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
76795
+ * the JSPB instance for transitional soy proto support:
76796
+ * http://goto/soy-param-migration
76797
+ * @param {!proto.clarifai.api.WorkflowEvaluationResult} msg The msg instance to transform.
76798
+ * @return {!Object}
76799
+ * @suppress {unusedLocalVariables} f is only used for nested messages
76800
+ */
76801
+ proto.clarifai.api.WorkflowEvaluationResult.toObject = function(includeInstance, msg) {
76802
+ var f, obj = {
76803
+ summary: (f = msg.getSummary()) && proto.clarifai.api.WorkflowEvaluationResultSummary.toObject(includeInstance, f)
76804
+ };
76805
+
76806
+ if (includeInstance) {
76807
+ obj.$jspbMessageInstance = msg;
76808
+ }
76809
+ return obj;
76810
+ };
76811
+ }
76812
+
76813
+
76814
+ /**
76815
+ * Deserializes binary data (in protobuf wire format).
76816
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
76817
+ * @return {!proto.clarifai.api.WorkflowEvaluationResult}
76818
+ */
76819
+ proto.clarifai.api.WorkflowEvaluationResult.deserializeBinary = function(bytes) {
76820
+ var reader = new jspb.BinaryReader(bytes);
76821
+ var msg = new proto.clarifai.api.WorkflowEvaluationResult;
76822
+ return proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader(msg, reader);
76823
+ };
76824
+
76825
+
76826
+ /**
76827
+ * Deserializes binary data (in protobuf wire format) from the
76828
+ * given reader into the given message object.
76829
+ * @param {!proto.clarifai.api.WorkflowEvaluationResult} msg The message object to deserialize into.
76830
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
76831
+ * @return {!proto.clarifai.api.WorkflowEvaluationResult}
76832
+ */
76833
+ proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader = function(msg, reader) {
76834
+ while (reader.nextField()) {
76835
+ if (reader.isEndGroup()) {
76836
+ break;
76837
+ }
76838
+ var field = reader.getFieldNumber();
76839
+ switch (field) {
76840
+ case 1:
76841
+ var value = new proto.clarifai.api.WorkflowEvaluationResultSummary;
76842
+ reader.readMessage(value,proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader);
76843
+ msg.setSummary(value);
76844
+ break;
76845
+ default:
76846
+ reader.skipField();
76847
+ break;
76848
+ }
76849
+ }
76850
+ return msg;
76851
+ };
76852
+
76853
+
76854
+ /**
76855
+ * Serializes the message to binary data (in protobuf wire format).
76856
+ * @return {!Uint8Array}
76857
+ */
76858
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.serializeBinary = function() {
76859
+ var writer = new jspb.BinaryWriter();
76860
+ proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter(this, writer);
76861
+ return writer.getResultBuffer();
76862
+ };
76863
+
76864
+
76865
+ /**
76866
+ * Serializes the given message to binary data (in protobuf wire
76867
+ * format), writing to the given BinaryWriter.
76868
+ * @param {!proto.clarifai.api.WorkflowEvaluationResult} message
76869
+ * @param {!jspb.BinaryWriter} writer
76870
+ * @suppress {unusedLocalVariables} f is only used for nested messages
76871
+ */
76872
+ proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter = function(message, writer) {
76873
+ var f = undefined;
76874
+ f = message.getSummary();
76875
+ if (f != null) {
76876
+ writer.writeMessage(
76877
+ 1,
76878
+ f,
76879
+ proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter
76880
+ );
76881
+ }
76882
+ };
76883
+
76884
+
76885
+ /**
76886
+ * optional WorkflowEvaluationResultSummary summary = 1;
76887
+ * @return {?proto.clarifai.api.WorkflowEvaluationResultSummary}
76888
+ */
76889
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.getSummary = function() {
76890
+ return /** @type{?proto.clarifai.api.WorkflowEvaluationResultSummary} */ (
76891
+ jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowEvaluationResultSummary, 1));
76892
+ };
76893
+
76894
+
76895
+ /**
76896
+ * @param {?proto.clarifai.api.WorkflowEvaluationResultSummary|undefined} value
76897
+ * @return {!proto.clarifai.api.WorkflowEvaluationResult} returns this
76898
+ */
76899
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.setSummary = function(value) {
76900
+ return jspb.Message.setWrapperField(this, 1, value);
76901
+ };
76902
+
76903
+
76904
+ /**
76905
+ * Clears the message field making it undefined.
76906
+ * @return {!proto.clarifai.api.WorkflowEvaluationResult} returns this
76907
+ */
76908
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.clearSummary = function() {
76909
+ return this.setSummary(undefined);
76910
+ };
76911
+
76912
+
76913
+ /**
76914
+ * Returns whether this field is set.
76915
+ * @return {boolean}
76916
+ */
76917
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.hasSummary = function() {
76918
+ return jspb.Message.getField(this, 1) != null;
76919
+ };
76920
+
76921
+
76922
+
76923
+ /**
76924
+ * List of repeated fields within this message type.
76925
+ * @private {!Array<number>}
76926
+ * @const
76927
+ */
76928
+ proto.clarifai.api.WorkflowEvaluationResultSummary.repeatedFields_ = [2];
76929
+
76930
+
76931
+
76932
+ if (jspb.Message.GENERATE_TO_OBJECT) {
76933
+ /**
76934
+ * Creates an object representation of this proto.
76935
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
76936
+ * Optional fields that are not set will be set to undefined.
76937
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
76938
+ * For the list of reserved names please see:
76939
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
76940
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
76941
+ * JSPB instance for transitional soy proto support:
76942
+ * http://goto/soy-param-migration
76943
+ * @return {!Object}
76944
+ */
76945
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.toObject = function(opt_includeInstance) {
76946
+ return proto.clarifai.api.WorkflowEvaluationResultSummary.toObject(opt_includeInstance, this);
76947
+ };
76948
+
76949
+
76950
+ /**
76951
+ * Static version of the {@see toObject} method.
76952
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
76953
+ * the JSPB instance for transitional soy proto support:
76954
+ * http://goto/soy-param-migration
76955
+ * @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} msg The msg instance to transform.
76956
+ * @return {!Object}
76957
+ * @suppress {unusedLocalVariables} f is only used for nested messages
76958
+ */
76959
+ proto.clarifai.api.WorkflowEvaluationResultSummary.toObject = function(includeInstance, msg) {
76960
+ var f, obj = {
76961
+ evaluationMetricValuesList: jspb.Message.toObjectList(msg.getEvaluationMetricValuesList(),
76962
+ proto.clarifai.api.EvaluationMetricValue.toObject, includeInstance)
76963
+ };
76964
+
76965
+ if (includeInstance) {
76966
+ obj.$jspbMessageInstance = msg;
76967
+ }
76968
+ return obj;
76969
+ };
76970
+ }
76971
+
76972
+
76973
+ /**
76974
+ * Deserializes binary data (in protobuf wire format).
76975
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
76976
+ * @return {!proto.clarifai.api.WorkflowEvaluationResultSummary}
76977
+ */
76978
+ proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinary = function(bytes) {
76979
+ var reader = new jspb.BinaryReader(bytes);
76980
+ var msg = new proto.clarifai.api.WorkflowEvaluationResultSummary;
76981
+ return proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader(msg, reader);
76982
+ };
76983
+
76984
+
76985
+ /**
76986
+ * Deserializes binary data (in protobuf wire format) from the
76987
+ * given reader into the given message object.
76988
+ * @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} msg The message object to deserialize into.
76989
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
76990
+ * @return {!proto.clarifai.api.WorkflowEvaluationResultSummary}
76991
+ */
76992
+ proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader = function(msg, reader) {
76993
+ while (reader.nextField()) {
76994
+ if (reader.isEndGroup()) {
76995
+ break;
76996
+ }
76997
+ var field = reader.getFieldNumber();
76998
+ switch (field) {
76999
+ case 2:
77000
+ var value = new proto.clarifai.api.EvaluationMetricValue;
77001
+ reader.readMessage(value,proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader);
77002
+ msg.addEvaluationMetricValues(value);
77003
+ break;
77004
+ default:
77005
+ reader.skipField();
77006
+ break;
77007
+ }
77008
+ }
77009
+ return msg;
77010
+ };
77011
+
77012
+
77013
+ /**
77014
+ * Serializes the message to binary data (in protobuf wire format).
77015
+ * @return {!Uint8Array}
77016
+ */
77017
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.serializeBinary = function() {
77018
+ var writer = new jspb.BinaryWriter();
77019
+ proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter(this, writer);
77020
+ return writer.getResultBuffer();
77021
+ };
77022
+
77023
+
77024
+ /**
77025
+ * Serializes the given message to binary data (in protobuf wire
77026
+ * format), writing to the given BinaryWriter.
77027
+ * @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} message
77028
+ * @param {!jspb.BinaryWriter} writer
77029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77030
+ */
77031
+ proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter = function(message, writer) {
77032
+ var f = undefined;
77033
+ f = message.getEvaluationMetricValuesList();
77034
+ if (f.length > 0) {
77035
+ writer.writeRepeatedMessage(
77036
+ 2,
77037
+ f,
77038
+ proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter
77039
+ );
77040
+ }
77041
+ };
77042
+
77043
+
77044
+ /**
77045
+ * repeated EvaluationMetricValue evaluation_metric_values = 2;
77046
+ * @return {!Array<!proto.clarifai.api.EvaluationMetricValue>}
77047
+ */
77048
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.getEvaluationMetricValuesList = function() {
77049
+ return /** @type{!Array<!proto.clarifai.api.EvaluationMetricValue>} */ (
77050
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.EvaluationMetricValue, 2));
77051
+ };
77052
+
77053
+
77054
+ /**
77055
+ * @param {!Array<!proto.clarifai.api.EvaluationMetricValue>} value
77056
+ * @return {!proto.clarifai.api.WorkflowEvaluationResultSummary} returns this
77057
+ */
77058
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.setEvaluationMetricValuesList = function(value) {
77059
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
77060
+ };
77061
+
77062
+
77063
+ /**
77064
+ * @param {!proto.clarifai.api.EvaluationMetricValue=} opt_value
77065
+ * @param {number=} opt_index
77066
+ * @return {!proto.clarifai.api.EvaluationMetricValue}
77067
+ */
77068
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.addEvaluationMetricValues = function(opt_value, opt_index) {
77069
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.EvaluationMetricValue, opt_index);
77070
+ };
77071
+
77072
+
77073
+ /**
77074
+ * Clears the list making it empty but non-null.
77075
+ * @return {!proto.clarifai.api.WorkflowEvaluationResultSummary} returns this
77076
+ */
77077
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.clearEvaluationMetricValuesList = function() {
77078
+ return this.setEvaluationMetricValuesList([]);
77079
+ };
77080
+
77081
+
77082
+
77083
+
77084
+
77085
+ if (jspb.Message.GENERATE_TO_OBJECT) {
77086
+ /**
77087
+ * Creates an object representation of this proto.
77088
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
77089
+ * Optional fields that are not set will be set to undefined.
77090
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77091
+ * For the list of reserved names please see:
77092
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
77093
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
77094
+ * JSPB instance for transitional soy proto support:
77095
+ * http://goto/soy-param-migration
77096
+ * @return {!Object}
77097
+ */
77098
+ proto.clarifai.api.EvaluationMetricValue.prototype.toObject = function(opt_includeInstance) {
77099
+ return proto.clarifai.api.EvaluationMetricValue.toObject(opt_includeInstance, this);
77100
+ };
77101
+
77102
+
77103
+ /**
77104
+ * Static version of the {@see toObject} method.
77105
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
77106
+ * the JSPB instance for transitional soy proto support:
77107
+ * http://goto/soy-param-migration
77108
+ * @param {!proto.clarifai.api.EvaluationMetricValue} msg The msg instance to transform.
77109
+ * @return {!Object}
77110
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77111
+ */
77112
+ proto.clarifai.api.EvaluationMetricValue.toObject = function(includeInstance, msg) {
77113
+ var f, obj = {
77114
+ evaluationMetricId: jspb.Message.getFieldWithDefault(msg, 1, ""),
77115
+ metricValue: (f = msg.getMetricValue()) && proto.clarifai.api.MetricValue.toObject(includeInstance, f),
77116
+ explanation: jspb.Message.getFieldWithDefault(msg, 3, ""),
77117
+ perConceptValuesMap: (f = msg.getPerConceptValuesMap()) ? f.toObject(includeInstance, proto.clarifai.api.MetricValue.toObject) : []
77118
+ };
77119
+
77120
+ if (includeInstance) {
77121
+ obj.$jspbMessageInstance = msg;
77122
+ }
77123
+ return obj;
77124
+ };
77125
+ }
77126
+
77127
+
77128
+ /**
77129
+ * Deserializes binary data (in protobuf wire format).
77130
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
77131
+ * @return {!proto.clarifai.api.EvaluationMetricValue}
77132
+ */
77133
+ proto.clarifai.api.EvaluationMetricValue.deserializeBinary = function(bytes) {
77134
+ var reader = new jspb.BinaryReader(bytes);
77135
+ var msg = new proto.clarifai.api.EvaluationMetricValue;
77136
+ return proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader(msg, reader);
77137
+ };
77138
+
77139
+
77140
+ /**
77141
+ * Deserializes binary data (in protobuf wire format) from the
77142
+ * given reader into the given message object.
77143
+ * @param {!proto.clarifai.api.EvaluationMetricValue} msg The message object to deserialize into.
77144
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
77145
+ * @return {!proto.clarifai.api.EvaluationMetricValue}
77146
+ */
77147
+ proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader = function(msg, reader) {
77148
+ while (reader.nextField()) {
77149
+ if (reader.isEndGroup()) {
77150
+ break;
77151
+ }
77152
+ var field = reader.getFieldNumber();
77153
+ switch (field) {
77154
+ case 1:
77155
+ var value = /** @type {string} */ (reader.readString());
77156
+ msg.setEvaluationMetricId(value);
77157
+ break;
77158
+ case 2:
77159
+ var value = new proto.clarifai.api.MetricValue;
77160
+ reader.readMessage(value,proto.clarifai.api.MetricValue.deserializeBinaryFromReader);
77161
+ msg.setMetricValue(value);
77162
+ break;
77163
+ case 3:
77164
+ var value = /** @type {string} */ (reader.readString());
77165
+ msg.setExplanation(value);
77166
+ break;
77167
+ case 4:
77168
+ var value = msg.getPerConceptValuesMap();
77169
+ reader.readMessage(value, function(message, reader) {
77170
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.MetricValue.deserializeBinaryFromReader, "", new proto.clarifai.api.MetricValue());
77171
+ });
77172
+ break;
77173
+ default:
77174
+ reader.skipField();
77175
+ break;
77176
+ }
77177
+ }
77178
+ return msg;
77179
+ };
77180
+
77181
+
77182
+ /**
77183
+ * Serializes the message to binary data (in protobuf wire format).
77184
+ * @return {!Uint8Array}
77185
+ */
77186
+ proto.clarifai.api.EvaluationMetricValue.prototype.serializeBinary = function() {
77187
+ var writer = new jspb.BinaryWriter();
77188
+ proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter(this, writer);
77189
+ return writer.getResultBuffer();
77190
+ };
77191
+
77192
+
77193
+ /**
77194
+ * Serializes the given message to binary data (in protobuf wire
77195
+ * format), writing to the given BinaryWriter.
77196
+ * @param {!proto.clarifai.api.EvaluationMetricValue} message
77197
+ * @param {!jspb.BinaryWriter} writer
77198
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77199
+ */
77200
+ proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter = function(message, writer) {
77201
+ var f = undefined;
77202
+ f = message.getEvaluationMetricId();
77203
+ if (f.length > 0) {
77204
+ writer.writeString(
77205
+ 1,
77206
+ f
77207
+ );
77208
+ }
77209
+ f = message.getMetricValue();
77210
+ if (f != null) {
77211
+ writer.writeMessage(
77212
+ 2,
77213
+ f,
77214
+ proto.clarifai.api.MetricValue.serializeBinaryToWriter
77215
+ );
77216
+ }
77217
+ f = message.getExplanation();
77218
+ if (f.length > 0) {
77219
+ writer.writeString(
77220
+ 3,
77221
+ f
77222
+ );
77223
+ }
77224
+ f = message.getPerConceptValuesMap(true);
77225
+ if (f && f.getLength() > 0) {
77226
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.MetricValue.serializeBinaryToWriter);
77227
+ }
77228
+ };
77229
+
77230
+
77231
+ /**
77232
+ * optional string evaluation_metric_id = 1;
77233
+ * @return {string}
77234
+ */
77235
+ proto.clarifai.api.EvaluationMetricValue.prototype.getEvaluationMetricId = function() {
77236
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
77237
+ };
77238
+
77239
+
77240
+ /**
77241
+ * @param {string} value
77242
+ * @return {!proto.clarifai.api.EvaluationMetricValue} returns this
77243
+ */
77244
+ proto.clarifai.api.EvaluationMetricValue.prototype.setEvaluationMetricId = function(value) {
77245
+ return jspb.Message.setProto3StringField(this, 1, value);
77246
+ };
77247
+
77248
+
77249
+ /**
77250
+ * optional MetricValue metric_value = 2;
77251
+ * @return {?proto.clarifai.api.MetricValue}
77252
+ */
77253
+ proto.clarifai.api.EvaluationMetricValue.prototype.getMetricValue = function() {
77254
+ return /** @type{?proto.clarifai.api.MetricValue} */ (
77255
+ jspb.Message.getWrapperField(this, proto.clarifai.api.MetricValue, 2));
77256
+ };
77257
+
77258
+
77259
+ /**
77260
+ * @param {?proto.clarifai.api.MetricValue|undefined} value
77261
+ * @return {!proto.clarifai.api.EvaluationMetricValue} returns this
77262
+ */
77263
+ proto.clarifai.api.EvaluationMetricValue.prototype.setMetricValue = function(value) {
77264
+ return jspb.Message.setWrapperField(this, 2, value);
77265
+ };
77266
+
77267
+
77268
+ /**
77269
+ * Clears the message field making it undefined.
77270
+ * @return {!proto.clarifai.api.EvaluationMetricValue} returns this
77271
+ */
77272
+ proto.clarifai.api.EvaluationMetricValue.prototype.clearMetricValue = function() {
77273
+ return this.setMetricValue(undefined);
77274
+ };
77275
+
77276
+
77277
+ /**
77278
+ * Returns whether this field is set.
77279
+ * @return {boolean}
77280
+ */
77281
+ proto.clarifai.api.EvaluationMetricValue.prototype.hasMetricValue = function() {
77282
+ return jspb.Message.getField(this, 2) != null;
77283
+ };
77284
+
77285
+
77286
+ /**
77287
+ * optional string explanation = 3;
77288
+ * @return {string}
77289
+ */
77290
+ proto.clarifai.api.EvaluationMetricValue.prototype.getExplanation = function() {
77291
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
77292
+ };
77293
+
77294
+
77295
+ /**
77296
+ * @param {string} value
77297
+ * @return {!proto.clarifai.api.EvaluationMetricValue} returns this
77298
+ */
77299
+ proto.clarifai.api.EvaluationMetricValue.prototype.setExplanation = function(value) {
77300
+ return jspb.Message.setProto3StringField(this, 3, value);
77301
+ };
77302
+
77303
+
77304
+ /**
77305
+ * map<string, MetricValue> per_concept_values = 4;
77306
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
77307
+ * empty, instead returning `undefined`
77308
+ * @return {!jspb.Map<string,!proto.clarifai.api.MetricValue>}
77309
+ */
77310
+ proto.clarifai.api.EvaluationMetricValue.prototype.getPerConceptValuesMap = function(opt_noLazyCreate) {
77311
+ return /** @type {!jspb.Map<string,!proto.clarifai.api.MetricValue>} */ (
77312
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
77313
+ proto.clarifai.api.MetricValue));
77314
+ };
77315
+
77316
+
77317
+ /**
77318
+ * Clears values from the map. The map will be non-null.
77319
+ * @return {!proto.clarifai.api.EvaluationMetricValue} returns this
77320
+ */
77321
+ proto.clarifai.api.EvaluationMetricValue.prototype.clearPerConceptValuesMap = function() {
77322
+ this.getPerConceptValuesMap().clear();
77323
+ return this;
77324
+ };
77325
+
77326
+
77327
+
77328
+ /**
77329
+ * Oneof group definitions for this message. Each group defines the field
77330
+ * numbers belonging to that group. When of these fields' value is set, all
77331
+ * other fields in the group are cleared. During deserialization, if multiple
77332
+ * fields are encountered for a group, only the last value seen will be kept.
77333
+ * @private {!Array<!Array<number>>}
77334
+ * @const
77335
+ */
77336
+ proto.clarifai.api.MetricValue.oneofGroups_ = [[1,2,3]];
77337
+
77338
+ /**
77339
+ * @enum {number}
77340
+ */
77341
+ proto.clarifai.api.MetricValue.MetricValueCase = {
77342
+ METRIC_VALUE_NOT_SET: 0,
77343
+ STRING_VALUE: 1,
77344
+ FLOAT_VALUE: 2,
77345
+ INT_VALUE: 3
77346
+ };
77347
+
77348
+ /**
77349
+ * @return {proto.clarifai.api.MetricValue.MetricValueCase}
77350
+ */
77351
+ proto.clarifai.api.MetricValue.prototype.getMetricValueCase = function() {
77352
+ return /** @type {proto.clarifai.api.MetricValue.MetricValueCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.MetricValue.oneofGroups_[0]));
77353
+ };
77354
+
77355
+
77356
+
77357
+ if (jspb.Message.GENERATE_TO_OBJECT) {
77358
+ /**
77359
+ * Creates an object representation of this proto.
77360
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
77361
+ * Optional fields that are not set will be set to undefined.
77362
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77363
+ * For the list of reserved names please see:
77364
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
77365
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
77366
+ * JSPB instance for transitional soy proto support:
77367
+ * http://goto/soy-param-migration
77368
+ * @return {!Object}
77369
+ */
77370
+ proto.clarifai.api.MetricValue.prototype.toObject = function(opt_includeInstance) {
77371
+ return proto.clarifai.api.MetricValue.toObject(opt_includeInstance, this);
77372
+ };
77373
+
77374
+
77375
+ /**
77376
+ * Static version of the {@see toObject} method.
77377
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
77378
+ * the JSPB instance for transitional soy proto support:
77379
+ * http://goto/soy-param-migration
77380
+ * @param {!proto.clarifai.api.MetricValue} msg The msg instance to transform.
77381
+ * @return {!Object}
77382
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77383
+ */
77384
+ proto.clarifai.api.MetricValue.toObject = function(includeInstance, msg) {
77385
+ var f, obj = {
77386
+ stringValue: jspb.Message.getFieldWithDefault(msg, 1, ""),
77387
+ floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
77388
+ intValue: jspb.Message.getFieldWithDefault(msg, 3, 0)
77389
+ };
77390
+
77391
+ if (includeInstance) {
77392
+ obj.$jspbMessageInstance = msg;
77393
+ }
77394
+ return obj;
77395
+ };
77396
+ }
77397
+
77398
+
77399
+ /**
77400
+ * Deserializes binary data (in protobuf wire format).
77401
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
77402
+ * @return {!proto.clarifai.api.MetricValue}
77403
+ */
77404
+ proto.clarifai.api.MetricValue.deserializeBinary = function(bytes) {
77405
+ var reader = new jspb.BinaryReader(bytes);
77406
+ var msg = new proto.clarifai.api.MetricValue;
77407
+ return proto.clarifai.api.MetricValue.deserializeBinaryFromReader(msg, reader);
77408
+ };
77409
+
77410
+
77411
+ /**
77412
+ * Deserializes binary data (in protobuf wire format) from the
77413
+ * given reader into the given message object.
77414
+ * @param {!proto.clarifai.api.MetricValue} msg The message object to deserialize into.
77415
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
77416
+ * @return {!proto.clarifai.api.MetricValue}
77417
+ */
77418
+ proto.clarifai.api.MetricValue.deserializeBinaryFromReader = function(msg, reader) {
77419
+ while (reader.nextField()) {
77420
+ if (reader.isEndGroup()) {
77421
+ break;
77422
+ }
77423
+ var field = reader.getFieldNumber();
77424
+ switch (field) {
77425
+ case 1:
77426
+ var value = /** @type {string} */ (reader.readString());
77427
+ msg.setStringValue(value);
77428
+ break;
77429
+ case 2:
77430
+ var value = /** @type {number} */ (reader.readFloat());
77431
+ msg.setFloatValue(value);
77432
+ break;
77433
+ case 3:
77434
+ var value = /** @type {number} */ (reader.readInt32());
77435
+ msg.setIntValue(value);
77436
+ break;
77437
+ default:
77438
+ reader.skipField();
77439
+ break;
77440
+ }
77441
+ }
77442
+ return msg;
77443
+ };
77444
+
77445
+
77446
+ /**
77447
+ * Serializes the message to binary data (in protobuf wire format).
77448
+ * @return {!Uint8Array}
77449
+ */
77450
+ proto.clarifai.api.MetricValue.prototype.serializeBinary = function() {
77451
+ var writer = new jspb.BinaryWriter();
77452
+ proto.clarifai.api.MetricValue.serializeBinaryToWriter(this, writer);
77453
+ return writer.getResultBuffer();
77454
+ };
77455
+
77456
+
77457
+ /**
77458
+ * Serializes the given message to binary data (in protobuf wire
77459
+ * format), writing to the given BinaryWriter.
77460
+ * @param {!proto.clarifai.api.MetricValue} message
77461
+ * @param {!jspb.BinaryWriter} writer
77462
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77463
+ */
77464
+ proto.clarifai.api.MetricValue.serializeBinaryToWriter = function(message, writer) {
77465
+ var f = undefined;
77466
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
77467
+ if (f != null) {
77468
+ writer.writeString(
77469
+ 1,
77470
+ f
77471
+ );
77472
+ }
77473
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
77474
+ if (f != null) {
77475
+ writer.writeFloat(
77476
+ 2,
77477
+ f
77478
+ );
77479
+ }
77480
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
77481
+ if (f != null) {
77482
+ writer.writeInt32(
77483
+ 3,
77484
+ f
77485
+ );
77486
+ }
77487
+ };
77488
+
77489
+
77490
+ /**
77491
+ * optional string string_value = 1;
77492
+ * @return {string}
77493
+ */
77494
+ proto.clarifai.api.MetricValue.prototype.getStringValue = function() {
77495
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
77496
+ };
77497
+
77498
+
77499
+ /**
77500
+ * @param {string} value
77501
+ * @return {!proto.clarifai.api.MetricValue} returns this
77502
+ */
77503
+ proto.clarifai.api.MetricValue.prototype.setStringValue = function(value) {
77504
+ return jspb.Message.setOneofField(this, 1, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
77505
+ };
77506
+
77507
+
77508
+ /**
77509
+ * Clears the field making it undefined.
77510
+ * @return {!proto.clarifai.api.MetricValue} returns this
77511
+ */
77512
+ proto.clarifai.api.MetricValue.prototype.clearStringValue = function() {
77513
+ return jspb.Message.setOneofField(this, 1, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
77514
+ };
77515
+
77516
+
77517
+ /**
77518
+ * Returns whether this field is set.
77519
+ * @return {boolean}
77520
+ */
77521
+ proto.clarifai.api.MetricValue.prototype.hasStringValue = function() {
77522
+ return jspb.Message.getField(this, 1) != null;
77523
+ };
77524
+
77525
+
77526
+ /**
77527
+ * optional float float_value = 2;
77528
+ * @return {number}
77529
+ */
77530
+ proto.clarifai.api.MetricValue.prototype.getFloatValue = function() {
77531
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
77532
+ };
77533
+
77534
+
77535
+ /**
77536
+ * @param {number} value
77537
+ * @return {!proto.clarifai.api.MetricValue} returns this
77538
+ */
77539
+ proto.clarifai.api.MetricValue.prototype.setFloatValue = function(value) {
77540
+ return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
77541
+ };
77542
+
77543
+
77544
+ /**
77545
+ * Clears the field making it undefined.
77546
+ * @return {!proto.clarifai.api.MetricValue} returns this
77547
+ */
77548
+ proto.clarifai.api.MetricValue.prototype.clearFloatValue = function() {
77549
+ return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
77550
+ };
77551
+
77552
+
77553
+ /**
77554
+ * Returns whether this field is set.
77555
+ * @return {boolean}
77556
+ */
77557
+ proto.clarifai.api.MetricValue.prototype.hasFloatValue = function() {
77558
+ return jspb.Message.getField(this, 2) != null;
77559
+ };
77560
+
77561
+
77562
+ /**
77563
+ * optional int32 int_value = 3;
77564
+ * @return {number}
77565
+ */
77566
+ proto.clarifai.api.MetricValue.prototype.getIntValue = function() {
77567
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
77568
+ };
77569
+
77570
+
77571
+ /**
77572
+ * @param {number} value
77573
+ * @return {!proto.clarifai.api.MetricValue} returns this
77574
+ */
77575
+ proto.clarifai.api.MetricValue.prototype.setIntValue = function(value) {
77576
+ return jspb.Message.setOneofField(this, 3, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
77577
+ };
77578
+
77579
+
77580
+ /**
77581
+ * Clears the field making it undefined.
77582
+ * @return {!proto.clarifai.api.MetricValue} returns this
77583
+ */
77584
+ proto.clarifai.api.MetricValue.prototype.clearIntValue = function() {
77585
+ return jspb.Message.setOneofField(this, 3, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
77586
+ };
77587
+
77588
+
77589
+ /**
77590
+ * Returns whether this field is set.
77591
+ * @return {boolean}
77592
+ */
77593
+ proto.clarifai.api.MetricValue.prototype.hasIntValue = function() {
77594
+ return jspb.Message.getField(this, 3) != null;
77595
+ };
77596
+
77597
+
77598
+
77599
+
77600
+
77601
+ if (jspb.Message.GENERATE_TO_OBJECT) {
77602
+ /**
77603
+ * Creates an object representation of this proto.
77604
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
77605
+ * Optional fields that are not set will be set to undefined.
77606
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77607
+ * For the list of reserved names please see:
77608
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
77609
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
77610
+ * JSPB instance for transitional soy proto support:
77611
+ * http://goto/soy-param-migration
77612
+ * @return {!Object}
77613
+ */
77614
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.toObject = function(opt_includeInstance) {
77615
+ return proto.clarifai.api.ArgoOrchestrationSpec.toObject(opt_includeInstance, this);
77616
+ };
77617
+
77618
+
77619
+ /**
77620
+ * Static version of the {@see toObject} method.
77621
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
77622
+ * the JSPB instance for transitional soy proto support:
77623
+ * http://goto/soy-param-migration
77624
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The msg instance to transform.
77625
+ * @return {!Object}
77626
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77627
+ */
77628
+ proto.clarifai.api.ArgoOrchestrationSpec.toObject = function(includeInstance, msg) {
77629
+ var f, obj = {
77630
+ apiVersion: jspb.Message.getFieldWithDefault(msg, 2, ""),
77631
+ specJson: jspb.Message.getFieldWithDefault(msg, 3, "")
77632
+ };
77633
+
77634
+ if (includeInstance) {
77635
+ obj.$jspbMessageInstance = msg;
77636
+ }
77637
+ return obj;
77638
+ };
77639
+ }
77640
+
77641
+
77642
+ /**
77643
+ * Deserializes binary data (in protobuf wire format).
77644
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
77645
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec}
77646
+ */
77647
+ proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinary = function(bytes) {
77648
+ var reader = new jspb.BinaryReader(bytes);
77649
+ var msg = new proto.clarifai.api.ArgoOrchestrationSpec;
77650
+ return proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader(msg, reader);
77651
+ };
77652
+
77653
+
77654
+ /**
77655
+ * Deserializes binary data (in protobuf wire format) from the
77656
+ * given reader into the given message object.
77657
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The message object to deserialize into.
77658
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
77659
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec}
77660
+ */
77661
+ proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader = function(msg, reader) {
77662
+ while (reader.nextField()) {
77663
+ if (reader.isEndGroup()) {
77664
+ break;
77665
+ }
77666
+ var field = reader.getFieldNumber();
77667
+ switch (field) {
77668
+ case 2:
77669
+ var value = /** @type {string} */ (reader.readString());
77670
+ msg.setApiVersion(value);
77671
+ break;
77672
+ case 3:
77673
+ var value = /** @type {string} */ (reader.readString());
77674
+ msg.setSpecJson(value);
77675
+ break;
77676
+ default:
77677
+ reader.skipField();
77678
+ break;
77679
+ }
77680
+ }
77681
+ return msg;
77682
+ };
77683
+
77684
+
77685
+ /**
77686
+ * Serializes the message to binary data (in protobuf wire format).
77687
+ * @return {!Uint8Array}
77688
+ */
77689
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.serializeBinary = function() {
77690
+ var writer = new jspb.BinaryWriter();
77691
+ proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter(this, writer);
77692
+ return writer.getResultBuffer();
77693
+ };
77694
+
77695
+
77696
+ /**
77697
+ * Serializes the given message to binary data (in protobuf wire
77698
+ * format), writing to the given BinaryWriter.
77699
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} message
77700
+ * @param {!jspb.BinaryWriter} writer
77701
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77702
+ */
77703
+ proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter = function(message, writer) {
77704
+ var f = undefined;
77705
+ f = message.getApiVersion();
77706
+ if (f.length > 0) {
77707
+ writer.writeString(
77708
+ 2,
77709
+ f
77710
+ );
77711
+ }
77712
+ f = message.getSpecJson();
77713
+ if (f.length > 0) {
77714
+ writer.writeString(
77715
+ 3,
77716
+ f
77717
+ );
77718
+ }
77719
+ };
77720
+
77721
+
77722
+ /**
77723
+ * optional string api_version = 2;
77724
+ * @return {string}
77725
+ */
77726
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.getApiVersion = function() {
77727
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
77728
+ };
77729
+
77730
+
77731
+ /**
77732
+ * @param {string} value
77733
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
77734
+ */
77735
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.setApiVersion = function(value) {
77736
+ return jspb.Message.setProto3StringField(this, 2, value);
77737
+ };
77738
+
77739
+
77740
+ /**
77741
+ * optional string spec_json = 3;
77742
+ * @return {string}
77743
+ */
77744
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.getSpecJson = function() {
77745
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
77746
+ };
77747
+
77748
+
77749
+ /**
77750
+ * @param {string} value
77751
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
77752
+ */
77753
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.setSpecJson = function(value) {
77754
+ return jspb.Message.setProto3StringField(this, 3, value);
77755
+ };
77756
+
77757
+
77758
+
77759
+ /**
77760
+ * Oneof group definitions for this message. Each group defines the field
77761
+ * numbers belonging to that group. When of these fields' value is set, all
77762
+ * other fields in the group are cleared. During deserialization, if multiple
77763
+ * fields are encountered for a group, only the last value seen will be kept.
77764
+ * @private {!Array<!Array<number>>}
77765
+ * @const
77766
+ */
77767
+ proto.clarifai.api.OrchestrationSpec.oneofGroups_ = [[1]];
77768
+
77769
+ /**
77770
+ * @enum {number}
77771
+ */
77772
+ proto.clarifai.api.OrchestrationSpec.OrchestrationCase = {
77773
+ ORCHESTRATION_NOT_SET: 0,
77774
+ ARGO_ORCHESTRATION_SPEC: 1
77775
+ };
77776
+
77777
+ /**
77778
+ * @return {proto.clarifai.api.OrchestrationSpec.OrchestrationCase}
77779
+ */
77780
+ proto.clarifai.api.OrchestrationSpec.prototype.getOrchestrationCase = function() {
77781
+ return /** @type {proto.clarifai.api.OrchestrationSpec.OrchestrationCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0]));
77782
+ };
77783
+
77784
+
77785
+
77786
+ if (jspb.Message.GENERATE_TO_OBJECT) {
77787
+ /**
77788
+ * Creates an object representation of this proto.
77789
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
77790
+ * Optional fields that are not set will be set to undefined.
77791
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77792
+ * For the list of reserved names please see:
77793
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
77794
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
77795
+ * JSPB instance for transitional soy proto support:
77796
+ * http://goto/soy-param-migration
77797
+ * @return {!Object}
77798
+ */
77799
+ proto.clarifai.api.OrchestrationSpec.prototype.toObject = function(opt_includeInstance) {
77800
+ return proto.clarifai.api.OrchestrationSpec.toObject(opt_includeInstance, this);
77801
+ };
77802
+
77803
+
77804
+ /**
77805
+ * Static version of the {@see toObject} method.
77806
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
77807
+ * the JSPB instance for transitional soy proto support:
77808
+ * http://goto/soy-param-migration
77809
+ * @param {!proto.clarifai.api.OrchestrationSpec} msg The msg instance to transform.
77810
+ * @return {!Object}
77811
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77812
+ */
77813
+ proto.clarifai.api.OrchestrationSpec.toObject = function(includeInstance, msg) {
77814
+ var f, obj = {
77815
+ argoOrchestrationSpec: (f = msg.getArgoOrchestrationSpec()) && proto.clarifai.api.ArgoOrchestrationSpec.toObject(includeInstance, f)
77816
+ };
77817
+
77818
+ if (includeInstance) {
77819
+ obj.$jspbMessageInstance = msg;
77820
+ }
77821
+ return obj;
77822
+ };
77823
+ }
77824
+
77825
+
77826
+ /**
77827
+ * Deserializes binary data (in protobuf wire format).
77828
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
77829
+ * @return {!proto.clarifai.api.OrchestrationSpec}
77830
+ */
77831
+ proto.clarifai.api.OrchestrationSpec.deserializeBinary = function(bytes) {
77832
+ var reader = new jspb.BinaryReader(bytes);
77833
+ var msg = new proto.clarifai.api.OrchestrationSpec;
77834
+ return proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader(msg, reader);
77835
+ };
77836
+
77837
+
77838
+ /**
77839
+ * Deserializes binary data (in protobuf wire format) from the
77840
+ * given reader into the given message object.
77841
+ * @param {!proto.clarifai.api.OrchestrationSpec} msg The message object to deserialize into.
77842
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
77843
+ * @return {!proto.clarifai.api.OrchestrationSpec}
77844
+ */
77845
+ proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader = function(msg, reader) {
77846
+ while (reader.nextField()) {
77847
+ if (reader.isEndGroup()) {
77848
+ break;
77849
+ }
77850
+ var field = reader.getFieldNumber();
77851
+ switch (field) {
77852
+ case 1:
77853
+ var value = new proto.clarifai.api.ArgoOrchestrationSpec;
77854
+ reader.readMessage(value,proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader);
77855
+ msg.setArgoOrchestrationSpec(value);
77856
+ break;
77857
+ default:
77858
+ reader.skipField();
77859
+ break;
77860
+ }
77861
+ }
77862
+ return msg;
77863
+ };
77864
+
77865
+
77866
+ /**
77867
+ * Serializes the message to binary data (in protobuf wire format).
77868
+ * @return {!Uint8Array}
77869
+ */
77870
+ proto.clarifai.api.OrchestrationSpec.prototype.serializeBinary = function() {
77871
+ var writer = new jspb.BinaryWriter();
77872
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter(this, writer);
77873
+ return writer.getResultBuffer();
77874
+ };
77875
+
77876
+
77877
+ /**
77878
+ * Serializes the given message to binary data (in protobuf wire
77879
+ * format), writing to the given BinaryWriter.
77880
+ * @param {!proto.clarifai.api.OrchestrationSpec} message
77881
+ * @param {!jspb.BinaryWriter} writer
77882
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77883
+ */
77884
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter = function(message, writer) {
77885
+ var f = undefined;
77886
+ f = message.getArgoOrchestrationSpec();
77887
+ if (f != null) {
77888
+ writer.writeMessage(
77889
+ 1,
77890
+ f,
77891
+ proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter
77892
+ );
77893
+ }
77894
+ };
77895
+
77896
+
77897
+ /**
77898
+ * optional ArgoOrchestrationSpec argo_orchestration_spec = 1;
77899
+ * @return {?proto.clarifai.api.ArgoOrchestrationSpec}
77900
+ */
77901
+ proto.clarifai.api.OrchestrationSpec.prototype.getArgoOrchestrationSpec = function() {
77902
+ return /** @type{?proto.clarifai.api.ArgoOrchestrationSpec} */ (
77903
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationSpec, 1));
77904
+ };
77905
+
77906
+
77907
+ /**
77908
+ * @param {?proto.clarifai.api.ArgoOrchestrationSpec|undefined} value
77909
+ * @return {!proto.clarifai.api.OrchestrationSpec} returns this
77910
+ */
77911
+ proto.clarifai.api.OrchestrationSpec.prototype.setArgoOrchestrationSpec = function(value) {
77912
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0], value);
77913
+ };
77914
+
77915
+
77916
+ /**
77917
+ * Clears the message field making it undefined.
77918
+ * @return {!proto.clarifai.api.OrchestrationSpec} returns this
77919
+ */
77920
+ proto.clarifai.api.OrchestrationSpec.prototype.clearArgoOrchestrationSpec = function() {
77921
+ return this.setArgoOrchestrationSpec(undefined);
77922
+ };
77923
+
77924
+
77925
+ /**
77926
+ * Returns whether this field is set.
77927
+ * @return {boolean}
77928
+ */
77929
+ proto.clarifai.api.OrchestrationSpec.prototype.hasArgoOrchestrationSpec = function() {
77930
+ return jspb.Message.getField(this, 1) != null;
77931
+ };
77932
+
77933
+
77934
+
77935
+
77936
+
77937
+ if (jspb.Message.GENERATE_TO_OBJECT) {
77938
+ /**
77939
+ * Creates an object representation of this proto.
77940
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
77941
+ * Optional fields that are not set will be set to undefined.
77942
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77943
+ * For the list of reserved names please see:
77944
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
77945
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
77946
+ * JSPB instance for transitional soy proto support:
77947
+ * http://goto/soy-param-migration
77948
+ * @return {!Object}
77949
+ */
77950
+ proto.clarifai.api.PipelineVersion.prototype.toObject = function(opt_includeInstance) {
77951
+ return proto.clarifai.api.PipelineVersion.toObject(opt_includeInstance, this);
77952
+ };
77953
+
77954
+
77955
+ /**
77956
+ * Static version of the {@see toObject} method.
77957
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
77958
+ * the JSPB instance for transitional soy proto support:
77959
+ * http://goto/soy-param-migration
77960
+ * @param {!proto.clarifai.api.PipelineVersion} msg The msg instance to transform.
77961
+ * @return {!Object}
77962
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77963
+ */
77964
+ proto.clarifai.api.PipelineVersion.toObject = function(includeInstance, msg) {
77965
+ var f, obj = {
77966
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
77967
+ appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
77968
+ userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
77969
+ orchestrationSpec: (f = msg.getOrchestrationSpec()) && proto.clarifai.api.OrchestrationSpec.toObject(includeInstance, f),
77970
+ pipelineId: jspb.Message.getFieldWithDefault(msg, 5, ""),
77971
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
77972
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
77973
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
77974
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
77975
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
77976
+ };
77977
+
77978
+ if (includeInstance) {
77979
+ obj.$jspbMessageInstance = msg;
77980
+ }
77981
+ return obj;
77982
+ };
77983
+ }
77984
+
77985
+
77986
+ /**
77987
+ * Deserializes binary data (in protobuf wire format).
77988
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
77989
+ * @return {!proto.clarifai.api.PipelineVersion}
77990
+ */
77991
+ proto.clarifai.api.PipelineVersion.deserializeBinary = function(bytes) {
77992
+ var reader = new jspb.BinaryReader(bytes);
77993
+ var msg = new proto.clarifai.api.PipelineVersion;
77994
+ return proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader(msg, reader);
77995
+ };
77996
+
77997
+
77998
+ /**
77999
+ * Deserializes binary data (in protobuf wire format) from the
78000
+ * given reader into the given message object.
78001
+ * @param {!proto.clarifai.api.PipelineVersion} msg The message object to deserialize into.
78002
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
78003
+ * @return {!proto.clarifai.api.PipelineVersion}
78004
+ */
78005
+ proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader = function(msg, reader) {
78006
+ while (reader.nextField()) {
78007
+ if (reader.isEndGroup()) {
78008
+ break;
78009
+ }
78010
+ var field = reader.getFieldNumber();
78011
+ switch (field) {
78012
+ case 1:
78013
+ var value = /** @type {string} */ (reader.readString());
78014
+ msg.setId(value);
78015
+ break;
78016
+ case 2:
78017
+ var value = /** @type {string} */ (reader.readString());
78018
+ msg.setAppId(value);
78019
+ break;
78020
+ case 3:
78021
+ var value = /** @type {string} */ (reader.readString());
78022
+ msg.setUserId(value);
78023
+ break;
78024
+ case 4:
78025
+ var value = new proto.clarifai.api.OrchestrationSpec;
78026
+ reader.readMessage(value,proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader);
78027
+ msg.setOrchestrationSpec(value);
78028
+ break;
78029
+ case 5:
78030
+ var value = /** @type {string} */ (reader.readString());
78031
+ msg.setPipelineId(value);
78032
+ break;
78033
+ case 6:
78034
+ var value = /** @type {string} */ (reader.readString());
78035
+ msg.setDescription(value);
78036
+ break;
78037
+ case 7:
78038
+ var value = new proto.clarifai.api.Visibility;
78039
+ reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader);
78040
+ msg.setVisibility(value);
78041
+ break;
78042
+ case 8:
78043
+ var value = new google_protobuf_struct_pb.Struct;
78044
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
78045
+ msg.setMetadata(value);
78046
+ break;
78047
+ case 9:
78048
+ var value = new google_protobuf_timestamp_pb.Timestamp;
78049
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
78050
+ msg.setCreatedAt(value);
78051
+ break;
78052
+ case 10:
78053
+ var value = new google_protobuf_timestamp_pb.Timestamp;
78054
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
78055
+ msg.setModifiedAt(value);
78056
+ break;
78057
+ default:
78058
+ reader.skipField();
78059
+ break;
78060
+ }
78061
+ }
78062
+ return msg;
78063
+ };
78064
+
78065
+
78066
+ /**
78067
+ * Serializes the message to binary data (in protobuf wire format).
78068
+ * @return {!Uint8Array}
78069
+ */
78070
+ proto.clarifai.api.PipelineVersion.prototype.serializeBinary = function() {
78071
+ var writer = new jspb.BinaryWriter();
78072
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter(this, writer);
78073
+ return writer.getResultBuffer();
78074
+ };
78075
+
78076
+
78077
+ /**
78078
+ * Serializes the given message to binary data (in protobuf wire
78079
+ * format), writing to the given BinaryWriter.
78080
+ * @param {!proto.clarifai.api.PipelineVersion} message
78081
+ * @param {!jspb.BinaryWriter} writer
78082
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78083
+ */
78084
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter = function(message, writer) {
78085
+ var f = undefined;
78086
+ f = message.getId();
78087
+ if (f.length > 0) {
78088
+ writer.writeString(
78089
+ 1,
78090
+ f
78091
+ );
78092
+ }
78093
+ f = message.getAppId();
78094
+ if (f.length > 0) {
78095
+ writer.writeString(
78096
+ 2,
78097
+ f
78098
+ );
78099
+ }
78100
+ f = message.getUserId();
78101
+ if (f.length > 0) {
78102
+ writer.writeString(
78103
+ 3,
78104
+ f
78105
+ );
78106
+ }
78107
+ f = message.getOrchestrationSpec();
78108
+ if (f != null) {
78109
+ writer.writeMessage(
78110
+ 4,
78111
+ f,
78112
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter
78113
+ );
78114
+ }
78115
+ f = message.getPipelineId();
78116
+ if (f.length > 0) {
78117
+ writer.writeString(
78118
+ 5,
78119
+ f
78120
+ );
78121
+ }
78122
+ f = message.getDescription();
78123
+ if (f.length > 0) {
78124
+ writer.writeString(
78125
+ 6,
78126
+ f
78127
+ );
78128
+ }
78129
+ f = message.getVisibility();
78130
+ if (f != null) {
78131
+ writer.writeMessage(
78132
+ 7,
78133
+ f,
78134
+ proto.clarifai.api.Visibility.serializeBinaryToWriter
78135
+ );
78136
+ }
78137
+ f = message.getMetadata();
78138
+ if (f != null) {
78139
+ writer.writeMessage(
78140
+ 8,
78141
+ f,
78142
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
78143
+ );
78144
+ }
78145
+ f = message.getCreatedAt();
78146
+ if (f != null) {
78147
+ writer.writeMessage(
78148
+ 9,
78149
+ f,
78150
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
78151
+ );
78152
+ }
78153
+ f = message.getModifiedAt();
78154
+ if (f != null) {
78155
+ writer.writeMessage(
78156
+ 10,
78157
+ f,
78158
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
78159
+ );
78160
+ }
78161
+ };
78162
+
78163
+
78164
+ /**
78165
+ * optional string id = 1;
78166
+ * @return {string}
78167
+ */
78168
+ proto.clarifai.api.PipelineVersion.prototype.getId = function() {
78169
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
78170
+ };
78171
+
78172
+
78173
+ /**
78174
+ * @param {string} value
78175
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78176
+ */
78177
+ proto.clarifai.api.PipelineVersion.prototype.setId = function(value) {
78178
+ return jspb.Message.setProto3StringField(this, 1, value);
78179
+ };
78180
+
78181
+
78182
+ /**
78183
+ * optional string app_id = 2;
78184
+ * @return {string}
78185
+ */
78186
+ proto.clarifai.api.PipelineVersion.prototype.getAppId = function() {
78187
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
78188
+ };
78189
+
78190
+
78191
+ /**
78192
+ * @param {string} value
78193
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78194
+ */
78195
+ proto.clarifai.api.PipelineVersion.prototype.setAppId = function(value) {
78196
+ return jspb.Message.setProto3StringField(this, 2, value);
78197
+ };
78198
+
78199
+
78200
+ /**
78201
+ * optional string user_id = 3;
78202
+ * @return {string}
78203
+ */
78204
+ proto.clarifai.api.PipelineVersion.prototype.getUserId = function() {
78205
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
78206
+ };
78207
+
78208
+
78209
+ /**
78210
+ * @param {string} value
78211
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78212
+ */
78213
+ proto.clarifai.api.PipelineVersion.prototype.setUserId = function(value) {
78214
+ return jspb.Message.setProto3StringField(this, 3, value);
78215
+ };
78216
+
78217
+
78218
+ /**
78219
+ * optional OrchestrationSpec orchestration_spec = 4;
78220
+ * @return {?proto.clarifai.api.OrchestrationSpec}
78221
+ */
78222
+ proto.clarifai.api.PipelineVersion.prototype.getOrchestrationSpec = function() {
78223
+ return /** @type{?proto.clarifai.api.OrchestrationSpec} */ (
78224
+ jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationSpec, 4));
78225
+ };
78226
+
78227
+
78228
+ /**
78229
+ * @param {?proto.clarifai.api.OrchestrationSpec|undefined} value
78230
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78231
+ */
78232
+ proto.clarifai.api.PipelineVersion.prototype.setOrchestrationSpec = function(value) {
78233
+ return jspb.Message.setWrapperField(this, 4, value);
78234
+ };
78235
+
78236
+
78237
+ /**
78238
+ * Clears the message field making it undefined.
78239
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78240
+ */
78241
+ proto.clarifai.api.PipelineVersion.prototype.clearOrchestrationSpec = function() {
78242
+ return this.setOrchestrationSpec(undefined);
78243
+ };
78244
+
78245
+
78246
+ /**
78247
+ * Returns whether this field is set.
78248
+ * @return {boolean}
78249
+ */
78250
+ proto.clarifai.api.PipelineVersion.prototype.hasOrchestrationSpec = function() {
78251
+ return jspb.Message.getField(this, 4) != null;
78252
+ };
78253
+
78254
+
78255
+ /**
78256
+ * optional string pipeline_id = 5;
78257
+ * @return {string}
78258
+ */
78259
+ proto.clarifai.api.PipelineVersion.prototype.getPipelineId = function() {
78260
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
78261
+ };
78262
+
78263
+
78264
+ /**
78265
+ * @param {string} value
78266
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78267
+ */
78268
+ proto.clarifai.api.PipelineVersion.prototype.setPipelineId = function(value) {
78269
+ return jspb.Message.setProto3StringField(this, 5, value);
78270
+ };
78271
+
78272
+
78273
+ /**
78274
+ * optional string description = 6;
78275
+ * @return {string}
78276
+ */
78277
+ proto.clarifai.api.PipelineVersion.prototype.getDescription = function() {
78278
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
78279
+ };
78280
+
78281
+
78282
+ /**
78283
+ * @param {string} value
78284
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78285
+ */
78286
+ proto.clarifai.api.PipelineVersion.prototype.setDescription = function(value) {
78287
+ return jspb.Message.setProto3StringField(this, 6, value);
78288
+ };
78289
+
78290
+
78291
+ /**
78292
+ * optional Visibility visibility = 7;
78293
+ * @return {?proto.clarifai.api.Visibility}
78294
+ */
78295
+ proto.clarifai.api.PipelineVersion.prototype.getVisibility = function() {
78296
+ return /** @type{?proto.clarifai.api.Visibility} */ (
78297
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7));
78298
+ };
78299
+
78300
+
78301
+ /**
78302
+ * @param {?proto.clarifai.api.Visibility|undefined} value
78303
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78304
+ */
78305
+ proto.clarifai.api.PipelineVersion.prototype.setVisibility = function(value) {
78306
+ return jspb.Message.setWrapperField(this, 7, value);
78307
+ };
78308
+
78309
+
78310
+ /**
78311
+ * Clears the message field making it undefined.
78312
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78313
+ */
78314
+ proto.clarifai.api.PipelineVersion.prototype.clearVisibility = function() {
78315
+ return this.setVisibility(undefined);
78316
+ };
78317
+
78318
+
78319
+ /**
78320
+ * Returns whether this field is set.
78321
+ * @return {boolean}
78322
+ */
78323
+ proto.clarifai.api.PipelineVersion.prototype.hasVisibility = function() {
78324
+ return jspb.Message.getField(this, 7) != null;
78325
+ };
78326
+
78327
+
78328
+ /**
78329
+ * optional google.protobuf.Struct metadata = 8;
78330
+ * @return {?proto.google.protobuf.Struct}
78331
+ */
78332
+ proto.clarifai.api.PipelineVersion.prototype.getMetadata = function() {
78333
+ return /** @type{?proto.google.protobuf.Struct} */ (
78334
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8));
78335
+ };
78336
+
78337
+
78338
+ /**
78339
+ * @param {?proto.google.protobuf.Struct|undefined} value
78340
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78341
+ */
78342
+ proto.clarifai.api.PipelineVersion.prototype.setMetadata = function(value) {
78343
+ return jspb.Message.setWrapperField(this, 8, value);
78344
+ };
78345
+
78346
+
78347
+ /**
78348
+ * Clears the message field making it undefined.
78349
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78350
+ */
78351
+ proto.clarifai.api.PipelineVersion.prototype.clearMetadata = function() {
78352
+ return this.setMetadata(undefined);
78353
+ };
78354
+
78355
+
78356
+ /**
78357
+ * Returns whether this field is set.
78358
+ * @return {boolean}
78359
+ */
78360
+ proto.clarifai.api.PipelineVersion.prototype.hasMetadata = function() {
78361
+ return jspb.Message.getField(this, 8) != null;
78362
+ };
78363
+
78364
+
78365
+ /**
78366
+ * optional google.protobuf.Timestamp created_at = 9;
78367
+ * @return {?proto.google.protobuf.Timestamp}
78368
+ */
78369
+ proto.clarifai.api.PipelineVersion.prototype.getCreatedAt = function() {
78370
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
78371
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
78372
+ };
78373
+
78374
+
78375
+ /**
78376
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
78377
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78378
+ */
78379
+ proto.clarifai.api.PipelineVersion.prototype.setCreatedAt = function(value) {
78380
+ return jspb.Message.setWrapperField(this, 9, value);
78381
+ };
78382
+
78383
+
78384
+ /**
78385
+ * Clears the message field making it undefined.
78386
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78387
+ */
78388
+ proto.clarifai.api.PipelineVersion.prototype.clearCreatedAt = function() {
78389
+ return this.setCreatedAt(undefined);
78390
+ };
78391
+
78392
+
78393
+ /**
78394
+ * Returns whether this field is set.
78395
+ * @return {boolean}
78396
+ */
78397
+ proto.clarifai.api.PipelineVersion.prototype.hasCreatedAt = function() {
78398
+ return jspb.Message.getField(this, 9) != null;
78399
+ };
78400
+
78401
+
78402
+ /**
78403
+ * optional google.protobuf.Timestamp modified_at = 10;
78404
+ * @return {?proto.google.protobuf.Timestamp}
78405
+ */
78406
+ proto.clarifai.api.PipelineVersion.prototype.getModifiedAt = function() {
78407
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
78408
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
78409
+ };
78410
+
78411
+
78412
+ /**
78413
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
78414
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78415
+ */
78416
+ proto.clarifai.api.PipelineVersion.prototype.setModifiedAt = function(value) {
78417
+ return jspb.Message.setWrapperField(this, 10, value);
78418
+ };
78419
+
78420
+
78421
+ /**
78422
+ * Clears the message field making it undefined.
78423
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
78424
+ */
78425
+ proto.clarifai.api.PipelineVersion.prototype.clearModifiedAt = function() {
78426
+ return this.setModifiedAt(undefined);
78427
+ };
78428
+
78429
+
78430
+ /**
78431
+ * Returns whether this field is set.
78432
+ * @return {boolean}
78433
+ */
78434
+ proto.clarifai.api.PipelineVersion.prototype.hasModifiedAt = function() {
78435
+ return jspb.Message.getField(this, 10) != null;
78436
+ };
78437
+
78438
+
78439
+
78440
+ /**
78441
+ * Oneof group definitions for this message. Each group defines the field
78442
+ * numbers belonging to that group. When of these fields' value is set, all
78443
+ * other fields in the group are cleared. During deserialization, if multiple
78444
+ * fields are encountered for a group, only the last value seen will be kept.
78445
+ * @private {!Array<!Array<number>>}
78446
+ * @const
78447
+ */
78448
+ proto.clarifai.api.OrchestrationStatus.oneofGroups_ = [[1]];
78449
+
78450
+ /**
78451
+ * @enum {number}
78452
+ */
78453
+ proto.clarifai.api.OrchestrationStatus.StatusDetailsCase = {
78454
+ STATUS_DETAILS_NOT_SET: 0,
78455
+ ARGO_STATUS: 1
78456
+ };
78457
+
78458
+ /**
78459
+ * @return {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase}
78460
+ */
78461
+ proto.clarifai.api.OrchestrationStatus.prototype.getStatusDetailsCase = function() {
78462
+ return /** @type {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0]));
78463
+ };
78464
+
78465
+
78466
+
78467
+ if (jspb.Message.GENERATE_TO_OBJECT) {
78468
+ /**
78469
+ * Creates an object representation of this proto.
78470
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
78471
+ * Optional fields that are not set will be set to undefined.
78472
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
78473
+ * For the list of reserved names please see:
78474
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
78475
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
78476
+ * JSPB instance for transitional soy proto support:
78477
+ * http://goto/soy-param-migration
78478
+ * @return {!Object}
78479
+ */
78480
+ proto.clarifai.api.OrchestrationStatus.prototype.toObject = function(opt_includeInstance) {
78481
+ return proto.clarifai.api.OrchestrationStatus.toObject(opt_includeInstance, this);
78482
+ };
78483
+
78484
+
78485
+ /**
78486
+ * Static version of the {@see toObject} method.
78487
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
78488
+ * the JSPB instance for transitional soy proto support:
78489
+ * http://goto/soy-param-migration
78490
+ * @param {!proto.clarifai.api.OrchestrationStatus} msg The msg instance to transform.
78491
+ * @return {!Object}
78492
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78493
+ */
78494
+ proto.clarifai.api.OrchestrationStatus.toObject = function(includeInstance, msg) {
78495
+ var f, obj = {
78496
+ argoStatus: (f = msg.getArgoStatus()) && proto.clarifai.api.ArgoOrchestrationStatus.toObject(includeInstance, f),
78497
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
78498
+ };
78499
+
78500
+ if (includeInstance) {
78501
+ obj.$jspbMessageInstance = msg;
78502
+ }
78503
+ return obj;
78504
+ };
78505
+ }
78506
+
78507
+
78508
+ /**
78509
+ * Deserializes binary data (in protobuf wire format).
78510
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
78511
+ * @return {!proto.clarifai.api.OrchestrationStatus}
78512
+ */
78513
+ proto.clarifai.api.OrchestrationStatus.deserializeBinary = function(bytes) {
78514
+ var reader = new jspb.BinaryReader(bytes);
78515
+ var msg = new proto.clarifai.api.OrchestrationStatus;
78516
+ return proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader(msg, reader);
78517
+ };
78518
+
78519
+
78520
+ /**
78521
+ * Deserializes binary data (in protobuf wire format) from the
78522
+ * given reader into the given message object.
78523
+ * @param {!proto.clarifai.api.OrchestrationStatus} msg The message object to deserialize into.
78524
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
78525
+ * @return {!proto.clarifai.api.OrchestrationStatus}
78526
+ */
78527
+ proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader = function(msg, reader) {
78528
+ while (reader.nextField()) {
78529
+ if (reader.isEndGroup()) {
78530
+ break;
78531
+ }
78532
+ var field = reader.getFieldNumber();
78533
+ switch (field) {
78534
+ case 1:
78535
+ var value = new proto.clarifai.api.ArgoOrchestrationStatus;
78536
+ reader.readMessage(value,proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader);
78537
+ msg.setArgoStatus(value);
78538
+ break;
78539
+ case 2:
78540
+ var value = new proto_clarifai_api_status_status_pb.Status;
78541
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
78542
+ msg.setStatus(value);
78543
+ break;
78544
+ default:
78545
+ reader.skipField();
78546
+ break;
78547
+ }
78548
+ }
78549
+ return msg;
78550
+ };
78551
+
78552
+
78553
+ /**
78554
+ * Serializes the message to binary data (in protobuf wire format).
78555
+ * @return {!Uint8Array}
78556
+ */
78557
+ proto.clarifai.api.OrchestrationStatus.prototype.serializeBinary = function() {
78558
+ var writer = new jspb.BinaryWriter();
78559
+ proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter(this, writer);
78560
+ return writer.getResultBuffer();
78561
+ };
78562
+
78563
+
78564
+ /**
78565
+ * Serializes the given message to binary data (in protobuf wire
78566
+ * format), writing to the given BinaryWriter.
78567
+ * @param {!proto.clarifai.api.OrchestrationStatus} message
78568
+ * @param {!jspb.BinaryWriter} writer
78569
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78570
+ */
78571
+ proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter = function(message, writer) {
78572
+ var f = undefined;
78573
+ f = message.getArgoStatus();
78574
+ if (f != null) {
78575
+ writer.writeMessage(
78576
+ 1,
78577
+ f,
78578
+ proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter
78579
+ );
78580
+ }
78581
+ f = message.getStatus();
78582
+ if (f != null) {
78583
+ writer.writeMessage(
78584
+ 2,
78585
+ f,
78586
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
78587
+ );
78588
+ }
78589
+ };
78590
+
78591
+
78592
+ /**
78593
+ * optional ArgoOrchestrationStatus argo_status = 1;
78594
+ * @return {?proto.clarifai.api.ArgoOrchestrationStatus}
78595
+ */
78596
+ proto.clarifai.api.OrchestrationStatus.prototype.getArgoStatus = function() {
78597
+ return /** @type{?proto.clarifai.api.ArgoOrchestrationStatus} */ (
78598
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationStatus, 1));
78599
+ };
78600
+
78601
+
78602
+ /**
78603
+ * @param {?proto.clarifai.api.ArgoOrchestrationStatus|undefined} value
78604
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
78605
+ */
78606
+ proto.clarifai.api.OrchestrationStatus.prototype.setArgoStatus = function(value) {
78607
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0], value);
78608
+ };
78609
+
78610
+
78611
+ /**
78612
+ * Clears the message field making it undefined.
78613
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
78614
+ */
78615
+ proto.clarifai.api.OrchestrationStatus.prototype.clearArgoStatus = function() {
78616
+ return this.setArgoStatus(undefined);
78617
+ };
78618
+
78619
+
78620
+ /**
78621
+ * Returns whether this field is set.
78622
+ * @return {boolean}
78623
+ */
78624
+ proto.clarifai.api.OrchestrationStatus.prototype.hasArgoStatus = function() {
78625
+ return jspb.Message.getField(this, 1) != null;
78626
+ };
78627
+
78628
+
78629
+ /**
78630
+ * optional status.Status status = 2;
78631
+ * @return {?proto.clarifai.api.status.Status}
78632
+ */
78633
+ proto.clarifai.api.OrchestrationStatus.prototype.getStatus = function() {
78634
+ return /** @type{?proto.clarifai.api.status.Status} */ (
78635
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
78636
+ };
78637
+
78638
+
78639
+ /**
78640
+ * @param {?proto.clarifai.api.status.Status|undefined} value
78641
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
78642
+ */
78643
+ proto.clarifai.api.OrchestrationStatus.prototype.setStatus = function(value) {
78644
+ return jspb.Message.setWrapperField(this, 2, value);
78645
+ };
78646
+
78647
+
78648
+ /**
78649
+ * Clears the message field making it undefined.
78650
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
78651
+ */
78652
+ proto.clarifai.api.OrchestrationStatus.prototype.clearStatus = function() {
78653
+ return this.setStatus(undefined);
78654
+ };
78655
+
78656
+
78657
+ /**
78658
+ * Returns whether this field is set.
78659
+ * @return {boolean}
78660
+ */
78661
+ proto.clarifai.api.OrchestrationStatus.prototype.hasStatus = function() {
78662
+ return jspb.Message.getField(this, 2) != null;
78663
+ };
78664
+
78665
+
78666
+
78667
+
78668
+
78669
+ if (jspb.Message.GENERATE_TO_OBJECT) {
78670
+ /**
78671
+ * Creates an object representation of this proto.
78672
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
78673
+ * Optional fields that are not set will be set to undefined.
78674
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
78675
+ * For the list of reserved names please see:
78676
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
78677
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
78678
+ * JSPB instance for transitional soy proto support:
78679
+ * http://goto/soy-param-migration
78680
+ * @return {!Object}
78681
+ */
78682
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.toObject = function(opt_includeInstance) {
78683
+ return proto.clarifai.api.ArgoOrchestrationStatus.toObject(opt_includeInstance, this);
78684
+ };
78685
+
78686
+
78687
+ /**
78688
+ * Static version of the {@see toObject} method.
78689
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
78690
+ * the JSPB instance for transitional soy proto support:
78691
+ * http://goto/soy-param-migration
78692
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The msg instance to transform.
78693
+ * @return {!Object}
78694
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78695
+ */
78696
+ proto.clarifai.api.ArgoOrchestrationStatus.toObject = function(includeInstance, msg) {
78697
+ var f, obj = {
78698
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
78699
+ };
78700
+
78701
+ if (includeInstance) {
78702
+ obj.$jspbMessageInstance = msg;
78703
+ }
78704
+ return obj;
78705
+ };
78706
+ }
78707
+
78708
+
78709
+ /**
78710
+ * Deserializes binary data (in protobuf wire format).
78711
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
78712
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus}
78713
+ */
78714
+ proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinary = function(bytes) {
78715
+ var reader = new jspb.BinaryReader(bytes);
78716
+ var msg = new proto.clarifai.api.ArgoOrchestrationStatus;
78717
+ return proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader(msg, reader);
78718
+ };
78719
+
78720
+
78721
+ /**
78722
+ * Deserializes binary data (in protobuf wire format) from the
78723
+ * given reader into the given message object.
78724
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The message object to deserialize into.
78725
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
78726
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus}
78727
+ */
78728
+ proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader = function(msg, reader) {
78729
+ while (reader.nextField()) {
78730
+ if (reader.isEndGroup()) {
78731
+ break;
78732
+ }
78733
+ var field = reader.getFieldNumber();
78734
+ switch (field) {
78735
+ case 1:
78736
+ var value = /** @type {string} */ (reader.readString());
78737
+ msg.setStatus(value);
78738
+ break;
78739
+ default:
78740
+ reader.skipField();
78741
+ break;
78742
+ }
78743
+ }
78744
+ return msg;
78745
+ };
78746
+
78747
+
78748
+ /**
78749
+ * Serializes the message to binary data (in protobuf wire format).
78750
+ * @return {!Uint8Array}
78751
+ */
78752
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.serializeBinary = function() {
78753
+ var writer = new jspb.BinaryWriter();
78754
+ proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter(this, writer);
78755
+ return writer.getResultBuffer();
78756
+ };
78757
+
78758
+
78759
+ /**
78760
+ * Serializes the given message to binary data (in protobuf wire
78761
+ * format), writing to the given BinaryWriter.
78762
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} message
78763
+ * @param {!jspb.BinaryWriter} writer
78764
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78765
+ */
78766
+ proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter = function(message, writer) {
78767
+ var f = undefined;
78768
+ f = message.getStatus();
78769
+ if (f.length > 0) {
78770
+ writer.writeString(
78771
+ 1,
78772
+ f
78773
+ );
78774
+ }
78775
+ };
78776
+
78777
+
78778
+ /**
78779
+ * optional string status = 1;
78780
+ * @return {string}
78781
+ */
78782
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus = function() {
78783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
78784
+ };
78785
+
78786
+
78787
+ /**
78788
+ * @param {string} value
78789
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus} returns this
78790
+ */
78791
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.setStatus = function(value) {
78792
+ return jspb.Message.setProto3StringField(this, 1, value);
78793
+ };
78794
+
78795
+
78796
+
78797
+ /**
78798
+ * List of repeated fields within this message type.
78799
+ * @private {!Array<number>}
78800
+ * @const
78801
+ */
78802
+ proto.clarifai.api.PipelineVersionRun.repeatedFields_ = [3];
78803
+
78804
+
78805
+
78806
+ if (jspb.Message.GENERATE_TO_OBJECT) {
78807
+ /**
78808
+ * Creates an object representation of this proto.
78809
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
78810
+ * Optional fields that are not set will be set to undefined.
78811
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
78812
+ * For the list of reserved names please see:
78813
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
78814
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
78815
+ * JSPB instance for transitional soy proto support:
78816
+ * http://goto/soy-param-migration
78817
+ * @return {!Object}
78818
+ */
78819
+ proto.clarifai.api.PipelineVersionRun.prototype.toObject = function(opt_includeInstance) {
78820
+ return proto.clarifai.api.PipelineVersionRun.toObject(opt_includeInstance, this);
78821
+ };
78822
+
78823
+
78824
+ /**
78825
+ * Static version of the {@see toObject} method.
78826
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
78827
+ * the JSPB instance for transitional soy proto support:
78828
+ * http://goto/soy-param-migration
78829
+ * @param {!proto.clarifai.api.PipelineVersionRun} msg The msg instance to transform.
78830
+ * @return {!Object}
78831
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78832
+ */
78833
+ proto.clarifai.api.PipelineVersionRun.toObject = function(includeInstance, msg) {
78834
+ var f, obj = {
78835
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
78836
+ pipelineVersion: (f = msg.getPipelineVersion()) && proto.clarifai.api.PipelineVersion.toObject(includeInstance, f),
78837
+ nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(),
78838
+ proto.clarifai.api.Nodepool.toObject, includeInstance),
78839
+ orchestrationStatus: (f = msg.getOrchestrationStatus()) && proto.clarifai.api.OrchestrationStatus.toObject(includeInstance, f),
78840
+ userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
78841
+ appId: jspb.Message.getFieldWithDefault(msg, 6, "")
78842
+ };
78843
+
78844
+ if (includeInstance) {
78845
+ obj.$jspbMessageInstance = msg;
78846
+ }
78847
+ return obj;
78848
+ };
78849
+ }
78850
+
78851
+
78852
+ /**
78853
+ * Deserializes binary data (in protobuf wire format).
78854
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
78855
+ * @return {!proto.clarifai.api.PipelineVersionRun}
78856
+ */
78857
+ proto.clarifai.api.PipelineVersionRun.deserializeBinary = function(bytes) {
78858
+ var reader = new jspb.BinaryReader(bytes);
78859
+ var msg = new proto.clarifai.api.PipelineVersionRun;
78860
+ return proto.clarifai.api.PipelineVersionRun.deserializeBinaryFromReader(msg, reader);
78861
+ };
78862
+
78863
+
78864
+ /**
78865
+ * Deserializes binary data (in protobuf wire format) from the
78866
+ * given reader into the given message object.
78867
+ * @param {!proto.clarifai.api.PipelineVersionRun} msg The message object to deserialize into.
78868
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
78869
+ * @return {!proto.clarifai.api.PipelineVersionRun}
78870
+ */
78871
+ proto.clarifai.api.PipelineVersionRun.deserializeBinaryFromReader = function(msg, reader) {
78872
+ while (reader.nextField()) {
78873
+ if (reader.isEndGroup()) {
78874
+ break;
78875
+ }
78876
+ var field = reader.getFieldNumber();
78877
+ switch (field) {
78878
+ case 1:
78879
+ var value = /** @type {string} */ (reader.readString());
78880
+ msg.setId(value);
78881
+ break;
78882
+ case 2:
78883
+ var value = new proto.clarifai.api.PipelineVersion;
78884
+ reader.readMessage(value,proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader);
78885
+ msg.setPipelineVersion(value);
78886
+ break;
78887
+ case 3:
78888
+ var value = new proto.clarifai.api.Nodepool;
78889
+ reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
78890
+ msg.addNodepools(value);
78891
+ break;
78892
+ case 4:
78893
+ var value = new proto.clarifai.api.OrchestrationStatus;
78894
+ reader.readMessage(value,proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader);
78895
+ msg.setOrchestrationStatus(value);
78896
+ break;
78897
+ case 5:
78898
+ var value = /** @type {string} */ (reader.readString());
78899
+ msg.setUserId(value);
78900
+ break;
78901
+ case 6:
78902
+ var value = /** @type {string} */ (reader.readString());
78903
+ msg.setAppId(value);
78904
+ break;
78905
+ default:
78906
+ reader.skipField();
78907
+ break;
78908
+ }
78909
+ }
78910
+ return msg;
78911
+ };
78912
+
78913
+
78914
+ /**
78915
+ * Serializes the message to binary data (in protobuf wire format).
78916
+ * @return {!Uint8Array}
78917
+ */
78918
+ proto.clarifai.api.PipelineVersionRun.prototype.serializeBinary = function() {
78919
+ var writer = new jspb.BinaryWriter();
78920
+ proto.clarifai.api.PipelineVersionRun.serializeBinaryToWriter(this, writer);
78921
+ return writer.getResultBuffer();
78922
+ };
78923
+
78924
+
78925
+ /**
78926
+ * Serializes the given message to binary data (in protobuf wire
78927
+ * format), writing to the given BinaryWriter.
78928
+ * @param {!proto.clarifai.api.PipelineVersionRun} message
78929
+ * @param {!jspb.BinaryWriter} writer
78930
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78931
+ */
78932
+ proto.clarifai.api.PipelineVersionRun.serializeBinaryToWriter = function(message, writer) {
78933
+ var f = undefined;
78934
+ f = message.getId();
78935
+ if (f.length > 0) {
78936
+ writer.writeString(
78937
+ 1,
78938
+ f
78939
+ );
78940
+ }
78941
+ f = message.getPipelineVersion();
78942
+ if (f != null) {
78943
+ writer.writeMessage(
78944
+ 2,
78945
+ f,
78946
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter
78947
+ );
78948
+ }
78949
+ f = message.getNodepoolsList();
78950
+ if (f.length > 0) {
78951
+ writer.writeRepeatedMessage(
78952
+ 3,
78953
+ f,
78954
+ proto.clarifai.api.Nodepool.serializeBinaryToWriter
78955
+ );
78956
+ }
78957
+ f = message.getOrchestrationStatus();
78958
+ if (f != null) {
78959
+ writer.writeMessage(
78960
+ 4,
78961
+ f,
78962
+ proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter
78963
+ );
78964
+ }
78965
+ f = message.getUserId();
78966
+ if (f.length > 0) {
78967
+ writer.writeString(
78968
+ 5,
78969
+ f
78970
+ );
78971
+ }
78972
+ f = message.getAppId();
78973
+ if (f.length > 0) {
78974
+ writer.writeString(
78975
+ 6,
78976
+ f
78977
+ );
78978
+ }
78979
+ };
78980
+
78981
+
78982
+ /**
78983
+ * optional string id = 1;
78984
+ * @return {string}
78985
+ */
78986
+ proto.clarifai.api.PipelineVersionRun.prototype.getId = function() {
78987
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
78988
+ };
78989
+
78990
+
78991
+ /**
78992
+ * @param {string} value
78993
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
78994
+ */
78995
+ proto.clarifai.api.PipelineVersionRun.prototype.setId = function(value) {
78996
+ return jspb.Message.setProto3StringField(this, 1, value);
78997
+ };
78998
+
78999
+
79000
+ /**
79001
+ * optional PipelineVersion pipeline_version = 2;
79002
+ * @return {?proto.clarifai.api.PipelineVersion}
79003
+ */
79004
+ proto.clarifai.api.PipelineVersionRun.prototype.getPipelineVersion = function() {
79005
+ return /** @type{?proto.clarifai.api.PipelineVersion} */ (
79006
+ jspb.Message.getWrapperField(this, proto.clarifai.api.PipelineVersion, 2));
79007
+ };
79008
+
79009
+
79010
+ /**
79011
+ * @param {?proto.clarifai.api.PipelineVersion|undefined} value
79012
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
79013
+ */
79014
+ proto.clarifai.api.PipelineVersionRun.prototype.setPipelineVersion = function(value) {
79015
+ return jspb.Message.setWrapperField(this, 2, value);
79016
+ };
79017
+
79018
+
79019
+ /**
79020
+ * Clears the message field making it undefined.
79021
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
79022
+ */
79023
+ proto.clarifai.api.PipelineVersionRun.prototype.clearPipelineVersion = function() {
79024
+ return this.setPipelineVersion(undefined);
79025
+ };
79026
+
79027
+
79028
+ /**
79029
+ * Returns whether this field is set.
79030
+ * @return {boolean}
79031
+ */
79032
+ proto.clarifai.api.PipelineVersionRun.prototype.hasPipelineVersion = function() {
79033
+ return jspb.Message.getField(this, 2) != null;
79034
+ };
79035
+
79036
+
79037
+ /**
79038
+ * repeated Nodepool nodepools = 3;
79039
+ * @return {!Array<!proto.clarifai.api.Nodepool>}
79040
+ */
79041
+ proto.clarifai.api.PipelineVersionRun.prototype.getNodepoolsList = function() {
79042
+ return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (
79043
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Nodepool, 3));
79044
+ };
79045
+
79046
+
79047
+ /**
79048
+ * @param {!Array<!proto.clarifai.api.Nodepool>} value
79049
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
79050
+ */
79051
+ proto.clarifai.api.PipelineVersionRun.prototype.setNodepoolsList = function(value) {
79052
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
79053
+ };
79054
+
79055
+
79056
+ /**
79057
+ * @param {!proto.clarifai.api.Nodepool=} opt_value
79058
+ * @param {number=} opt_index
79059
+ * @return {!proto.clarifai.api.Nodepool}
79060
+ */
79061
+ proto.clarifai.api.PipelineVersionRun.prototype.addNodepools = function(opt_value, opt_index) {
79062
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Nodepool, opt_index);
79063
+ };
79064
+
79065
+
79066
+ /**
79067
+ * Clears the list making it empty but non-null.
79068
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
79069
+ */
79070
+ proto.clarifai.api.PipelineVersionRun.prototype.clearNodepoolsList = function() {
79071
+ return this.setNodepoolsList([]);
79072
+ };
79073
+
79074
+
79075
+ /**
79076
+ * optional OrchestrationStatus orchestration_status = 4;
79077
+ * @return {?proto.clarifai.api.OrchestrationStatus}
79078
+ */
79079
+ proto.clarifai.api.PipelineVersionRun.prototype.getOrchestrationStatus = function() {
79080
+ return /** @type{?proto.clarifai.api.OrchestrationStatus} */ (
79081
+ jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationStatus, 4));
79082
+ };
79083
+
79084
+
79085
+ /**
79086
+ * @param {?proto.clarifai.api.OrchestrationStatus|undefined} value
79087
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
79088
+ */
79089
+ proto.clarifai.api.PipelineVersionRun.prototype.setOrchestrationStatus = function(value) {
79090
+ return jspb.Message.setWrapperField(this, 4, value);
79091
+ };
79092
+
79093
+
79094
+ /**
79095
+ * Clears the message field making it undefined.
79096
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
79097
+ */
79098
+ proto.clarifai.api.PipelineVersionRun.prototype.clearOrchestrationStatus = function() {
79099
+ return this.setOrchestrationStatus(undefined);
79100
+ };
79101
+
79102
+
79103
+ /**
79104
+ * Returns whether this field is set.
79105
+ * @return {boolean}
79106
+ */
79107
+ proto.clarifai.api.PipelineVersionRun.prototype.hasOrchestrationStatus = function() {
79108
+ return jspb.Message.getField(this, 4) != null;
79109
+ };
79110
+
79111
+
79112
+ /**
79113
+ * optional string user_id = 5;
79114
+ * @return {string}
79115
+ */
79116
+ proto.clarifai.api.PipelineVersionRun.prototype.getUserId = function() {
79117
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
79118
+ };
79119
+
79120
+
79121
+ /**
79122
+ * @param {string} value
79123
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
79124
+ */
79125
+ proto.clarifai.api.PipelineVersionRun.prototype.setUserId = function(value) {
79126
+ return jspb.Message.setProto3StringField(this, 5, value);
79127
+ };
79128
+
79129
+
79130
+ /**
79131
+ * optional string app_id = 6;
79132
+ * @return {string}
79133
+ */
79134
+ proto.clarifai.api.PipelineVersionRun.prototype.getAppId = function() {
79135
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
79136
+ };
79137
+
79138
+
79139
+ /**
79140
+ * @param {string} value
79141
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
79142
+ */
79143
+ proto.clarifai.api.PipelineVersionRun.prototype.setAppId = function(value) {
79144
+ return jspb.Message.setProto3StringField(this, 6, value);
79145
+ };
79146
+
79147
+
75404
79148
  /**
75405
79149
  * @enum {number}
75406
79150
  */