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.
@@ -56,6 +56,8 @@ goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
56
56
  goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
57
57
  goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
58
58
  goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
59
+ goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationSpec', null, global);
60
+ goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationStatus', null, global);
59
61
  goog.exportSymbol('proto.clarifai.api.Audio', null, global);
60
62
  goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
61
63
  goog.exportSymbol('proto.clarifai.api.AuditLogEntry', null, global);
@@ -97,6 +99,7 @@ goog.exportSymbol('proto.clarifai.api.ConfusionMatrix', null, global);
97
99
  goog.exportSymbol('proto.clarifai.api.ConfusionMatrixEntry', null, global);
98
100
  goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrix', null, global);
99
101
  goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrixEntry', null, global);
102
+ goog.exportSymbol('proto.clarifai.api.CpuMetrics', null, global);
100
103
  goog.exportSymbol('proto.clarifai.api.Data', null, global);
101
104
  goog.exportSymbol('proto.clarifai.api.DataSourceCredentials', null, global);
102
105
  goog.exportSymbol('proto.clarifai.api.DataSourceCredentials.CredentialsCase', null, global);
@@ -132,6 +135,7 @@ goog.exportSymbol('proto.clarifai.api.EndpointDeps', null, global);
132
135
  goog.exportSymbol('proto.clarifai.api.EvalInfo', null, global);
133
136
  goog.exportSymbol('proto.clarifai.api.EvalMetrics', null, global);
134
137
  goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
138
+ goog.exportSymbol('proto.clarifai.api.EvaluationMetricValue', null, global);
135
139
  goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
136
140
  goog.exportSymbol('proto.clarifai.api.EventType', null, global);
137
141
  goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
@@ -181,8 +185,11 @@ goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
181
185
  goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
182
186
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
183
187
  goog.exportSymbol('proto.clarifai.api.Mask', null, global);
188
+ goog.exportSymbol('proto.clarifai.api.MetricValue', null, global);
189
+ goog.exportSymbol('proto.clarifai.api.MetricValue.MetricValueCase', null, global);
184
190
  goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
185
191
  goog.exportSymbol('proto.clarifai.api.Model', null, global);
192
+ goog.exportSymbol('proto.clarifai.api.Model.BillingType', null, global);
186
193
  goog.exportSymbol('proto.clarifai.api.Model.Source', null, global);
187
194
  goog.exportSymbol('proto.clarifai.api.ModelLayerInfo', null, global);
188
195
  goog.exportSymbol('proto.clarifai.api.ModelPredictConfig', null, global);
@@ -210,6 +217,10 @@ goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
210
217
  goog.exportSymbol('proto.clarifai.api.Operation', null, global);
211
218
  goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
212
219
  goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
220
+ goog.exportSymbol('proto.clarifai.api.OrchestrationSpec', null, global);
221
+ goog.exportSymbol('proto.clarifai.api.OrchestrationSpec.OrchestrationCase', null, global);
222
+ goog.exportSymbol('proto.clarifai.api.OrchestrationStatus', null, global);
223
+ goog.exportSymbol('proto.clarifai.api.OrchestrationStatus.StatusDetailsCase', null, global);
213
224
  goog.exportSymbol('proto.clarifai.api.Output', null, global);
214
225
  goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
215
226
  goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global);
@@ -219,6 +230,8 @@ goog.exportSymbol('proto.clarifai.api.Part', null, global);
219
230
  goog.exportSymbol('proto.clarifai.api.Password', null, global);
220
231
  goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global);
221
232
  goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
233
+ goog.exportSymbol('proto.clarifai.api.PipelineVersion', null, global);
234
+ goog.exportSymbol('proto.clarifai.api.PipelineVersionRun', null, global);
222
235
  goog.exportSymbol('proto.clarifai.api.Point', null, global);
223
236
  goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
224
237
  goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
@@ -302,11 +315,14 @@ goog.exportSymbol('proto.clarifai.api.W3C', null, global);
302
315
  goog.exportSymbol('proto.clarifai.api.Worker', null, global);
303
316
  goog.exportSymbol('proto.clarifai.api.Worker.WorkerCase', null, global);
304
317
  goog.exportSymbol('proto.clarifai.api.Workflow', null, global);
318
+ goog.exportSymbol('proto.clarifai.api.WorkflowEvaluationResult', null, global);
319
+ goog.exportSymbol('proto.clarifai.api.WorkflowEvaluationResultSummary', null, global);
305
320
  goog.exportSymbol('proto.clarifai.api.WorkflowModelUseCase', null, global);
306
321
  goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
307
322
  goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
308
323
  goog.exportSymbol('proto.clarifai.api.WorkflowState', null, global);
309
324
  goog.exportSymbol('proto.clarifai.api.WorkflowVersion', null, global);
325
+ goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluation', null, global);
310
326
  goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric', null, global);
311
327
  goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType', null, global);
312
328
  goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType', null, global);
@@ -4974,6 +4990,27 @@ if (goog.DEBUG && !COMPILED) {
4974
4990
  */
4975
4991
  proto.clarifai.api.GpuMetrics.displayName = 'proto.clarifai.api.GpuMetrics';
4976
4992
  }
4993
+ /**
4994
+ * Generated by JsPbCodeGenerator.
4995
+ * @param {Array=} opt_data Optional initial data array, typically from a
4996
+ * server response, or constructed directly in Javascript. The array is used
4997
+ * in place and becomes part of the constructed object. It is not cloned.
4998
+ * If no data is provided, the constructed object will be empty, but still
4999
+ * valid.
5000
+ * @extends {jspb.Message}
5001
+ * @constructor
5002
+ */
5003
+ proto.clarifai.api.CpuMetrics = function (opt_data) {
5004
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5005
+ };
5006
+ goog.inherits(proto.clarifai.api.CpuMetrics, jspb.Message);
5007
+ if (goog.DEBUG && !COMPILED) {
5008
+ /**
5009
+ * @public
5010
+ * @override
5011
+ */
5012
+ proto.clarifai.api.CpuMetrics.displayName = 'proto.clarifai.api.CpuMetrics';
5013
+ }
4977
5014
  /**
4978
5015
  * Generated by JsPbCodeGenerator.
4979
5016
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5016,6 +5053,237 @@ if (goog.DEBUG && !COMPILED) {
5016
5053
  */
5017
5054
  proto.clarifai.api.ComputeSourceMetadata.displayName = 'proto.clarifai.api.ComputeSourceMetadata';
5018
5055
  }
5056
+ /**
5057
+ * Generated by JsPbCodeGenerator.
5058
+ * @param {Array=} opt_data Optional initial data array, typically from a
5059
+ * server response, or constructed directly in Javascript. The array is used
5060
+ * in place and becomes part of the constructed object. It is not cloned.
5061
+ * If no data is provided, the constructed object will be empty, but still
5062
+ * valid.
5063
+ * @extends {jspb.Message}
5064
+ * @constructor
5065
+ */
5066
+ proto.clarifai.api.WorkflowVersionEvaluation = function (opt_data) {
5067
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5068
+ };
5069
+ goog.inherits(proto.clarifai.api.WorkflowVersionEvaluation, jspb.Message);
5070
+ if (goog.DEBUG && !COMPILED) {
5071
+ /**
5072
+ * @public
5073
+ * @override
5074
+ */
5075
+ proto.clarifai.api.WorkflowVersionEvaluation.displayName = 'proto.clarifai.api.WorkflowVersionEvaluation';
5076
+ }
5077
+ /**
5078
+ * Generated by JsPbCodeGenerator.
5079
+ * @param {Array=} opt_data Optional initial data array, typically from a
5080
+ * server response, or constructed directly in Javascript. The array is used
5081
+ * in place and becomes part of the constructed object. It is not cloned.
5082
+ * If no data is provided, the constructed object will be empty, but still
5083
+ * valid.
5084
+ * @extends {jspb.Message}
5085
+ * @constructor
5086
+ */
5087
+ proto.clarifai.api.WorkflowEvaluationResult = function (opt_data) {
5088
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5089
+ };
5090
+ goog.inherits(proto.clarifai.api.WorkflowEvaluationResult, jspb.Message);
5091
+ if (goog.DEBUG && !COMPILED) {
5092
+ /**
5093
+ * @public
5094
+ * @override
5095
+ */
5096
+ proto.clarifai.api.WorkflowEvaluationResult.displayName = 'proto.clarifai.api.WorkflowEvaluationResult';
5097
+ }
5098
+ /**
5099
+ * Generated by JsPbCodeGenerator.
5100
+ * @param {Array=} opt_data Optional initial data array, typically from a
5101
+ * server response, or constructed directly in Javascript. The array is used
5102
+ * in place and becomes part of the constructed object. It is not cloned.
5103
+ * If no data is provided, the constructed object will be empty, but still
5104
+ * valid.
5105
+ * @extends {jspb.Message}
5106
+ * @constructor
5107
+ */
5108
+ proto.clarifai.api.WorkflowEvaluationResultSummary = function (opt_data) {
5109
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.WorkflowEvaluationResultSummary.repeatedFields_, null);
5110
+ };
5111
+ goog.inherits(proto.clarifai.api.WorkflowEvaluationResultSummary, jspb.Message);
5112
+ if (goog.DEBUG && !COMPILED) {
5113
+ /**
5114
+ * @public
5115
+ * @override
5116
+ */
5117
+ proto.clarifai.api.WorkflowEvaluationResultSummary.displayName = 'proto.clarifai.api.WorkflowEvaluationResultSummary';
5118
+ }
5119
+ /**
5120
+ * Generated by JsPbCodeGenerator.
5121
+ * @param {Array=} opt_data Optional initial data array, typically from a
5122
+ * server response, or constructed directly in Javascript. The array is used
5123
+ * in place and becomes part of the constructed object. It is not cloned.
5124
+ * If no data is provided, the constructed object will be empty, but still
5125
+ * valid.
5126
+ * @extends {jspb.Message}
5127
+ * @constructor
5128
+ */
5129
+ proto.clarifai.api.EvaluationMetricValue = function (opt_data) {
5130
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5131
+ };
5132
+ goog.inherits(proto.clarifai.api.EvaluationMetricValue, jspb.Message);
5133
+ if (goog.DEBUG && !COMPILED) {
5134
+ /**
5135
+ * @public
5136
+ * @override
5137
+ */
5138
+ proto.clarifai.api.EvaluationMetricValue.displayName = 'proto.clarifai.api.EvaluationMetricValue';
5139
+ }
5140
+ /**
5141
+ * Generated by JsPbCodeGenerator.
5142
+ * @param {Array=} opt_data Optional initial data array, typically from a
5143
+ * server response, or constructed directly in Javascript. The array is used
5144
+ * in place and becomes part of the constructed object. It is not cloned.
5145
+ * If no data is provided, the constructed object will be empty, but still
5146
+ * valid.
5147
+ * @extends {jspb.Message}
5148
+ * @constructor
5149
+ */
5150
+ proto.clarifai.api.MetricValue = function (opt_data) {
5151
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.MetricValue.oneofGroups_);
5152
+ };
5153
+ goog.inherits(proto.clarifai.api.MetricValue, jspb.Message);
5154
+ if (goog.DEBUG && !COMPILED) {
5155
+ /**
5156
+ * @public
5157
+ * @override
5158
+ */
5159
+ proto.clarifai.api.MetricValue.displayName = 'proto.clarifai.api.MetricValue';
5160
+ }
5161
+ /**
5162
+ * Generated by JsPbCodeGenerator.
5163
+ * @param {Array=} opt_data Optional initial data array, typically from a
5164
+ * server response, or constructed directly in Javascript. The array is used
5165
+ * in place and becomes part of the constructed object. It is not cloned.
5166
+ * If no data is provided, the constructed object will be empty, but still
5167
+ * valid.
5168
+ * @extends {jspb.Message}
5169
+ * @constructor
5170
+ */
5171
+ proto.clarifai.api.ArgoOrchestrationSpec = function (opt_data) {
5172
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5173
+ };
5174
+ goog.inherits(proto.clarifai.api.ArgoOrchestrationSpec, jspb.Message);
5175
+ if (goog.DEBUG && !COMPILED) {
5176
+ /**
5177
+ * @public
5178
+ * @override
5179
+ */
5180
+ proto.clarifai.api.ArgoOrchestrationSpec.displayName = 'proto.clarifai.api.ArgoOrchestrationSpec';
5181
+ }
5182
+ /**
5183
+ * Generated by JsPbCodeGenerator.
5184
+ * @param {Array=} opt_data Optional initial data array, typically from a
5185
+ * server response, or constructed directly in Javascript. The array is used
5186
+ * in place and becomes part of the constructed object. It is not cloned.
5187
+ * If no data is provided, the constructed object will be empty, but still
5188
+ * valid.
5189
+ * @extends {jspb.Message}
5190
+ * @constructor
5191
+ */
5192
+ proto.clarifai.api.OrchestrationSpec = function (opt_data) {
5193
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationSpec.oneofGroups_);
5194
+ };
5195
+ goog.inherits(proto.clarifai.api.OrchestrationSpec, jspb.Message);
5196
+ if (goog.DEBUG && !COMPILED) {
5197
+ /**
5198
+ * @public
5199
+ * @override
5200
+ */
5201
+ proto.clarifai.api.OrchestrationSpec.displayName = 'proto.clarifai.api.OrchestrationSpec';
5202
+ }
5203
+ /**
5204
+ * Generated by JsPbCodeGenerator.
5205
+ * @param {Array=} opt_data Optional initial data array, typically from a
5206
+ * server response, or constructed directly in Javascript. The array is used
5207
+ * in place and becomes part of the constructed object. It is not cloned.
5208
+ * If no data is provided, the constructed object will be empty, but still
5209
+ * valid.
5210
+ * @extends {jspb.Message}
5211
+ * @constructor
5212
+ */
5213
+ proto.clarifai.api.PipelineVersion = function (opt_data) {
5214
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5215
+ };
5216
+ goog.inherits(proto.clarifai.api.PipelineVersion, jspb.Message);
5217
+ if (goog.DEBUG && !COMPILED) {
5218
+ /**
5219
+ * @public
5220
+ * @override
5221
+ */
5222
+ proto.clarifai.api.PipelineVersion.displayName = 'proto.clarifai.api.PipelineVersion';
5223
+ }
5224
+ /**
5225
+ * Generated by JsPbCodeGenerator.
5226
+ * @param {Array=} opt_data Optional initial data array, typically from a
5227
+ * server response, or constructed directly in Javascript. The array is used
5228
+ * in place and becomes part of the constructed object. It is not cloned.
5229
+ * If no data is provided, the constructed object will be empty, but still
5230
+ * valid.
5231
+ * @extends {jspb.Message}
5232
+ * @constructor
5233
+ */
5234
+ proto.clarifai.api.OrchestrationStatus = function (opt_data) {
5235
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationStatus.oneofGroups_);
5236
+ };
5237
+ goog.inherits(proto.clarifai.api.OrchestrationStatus, jspb.Message);
5238
+ if (goog.DEBUG && !COMPILED) {
5239
+ /**
5240
+ * @public
5241
+ * @override
5242
+ */
5243
+ proto.clarifai.api.OrchestrationStatus.displayName = 'proto.clarifai.api.OrchestrationStatus';
5244
+ }
5245
+ /**
5246
+ * Generated by JsPbCodeGenerator.
5247
+ * @param {Array=} opt_data Optional initial data array, typically from a
5248
+ * server response, or constructed directly in Javascript. The array is used
5249
+ * in place and becomes part of the constructed object. It is not cloned.
5250
+ * If no data is provided, the constructed object will be empty, but still
5251
+ * valid.
5252
+ * @extends {jspb.Message}
5253
+ * @constructor
5254
+ */
5255
+ proto.clarifai.api.ArgoOrchestrationStatus = function (opt_data) {
5256
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5257
+ };
5258
+ goog.inherits(proto.clarifai.api.ArgoOrchestrationStatus, jspb.Message);
5259
+ if (goog.DEBUG && !COMPILED) {
5260
+ /**
5261
+ * @public
5262
+ * @override
5263
+ */
5264
+ proto.clarifai.api.ArgoOrchestrationStatus.displayName = 'proto.clarifai.api.ArgoOrchestrationStatus';
5265
+ }
5266
+ /**
5267
+ * Generated by JsPbCodeGenerator.
5268
+ * @param {Array=} opt_data Optional initial data array, typically from a
5269
+ * server response, or constructed directly in Javascript. The array is used
5270
+ * in place and becomes part of the constructed object. It is not cloned.
5271
+ * If no data is provided, the constructed object will be empty, but still
5272
+ * valid.
5273
+ * @extends {jspb.Message}
5274
+ * @constructor
5275
+ */
5276
+ proto.clarifai.api.PipelineVersionRun = function (opt_data) {
5277
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PipelineVersionRun.repeatedFields_, null);
5278
+ };
5279
+ goog.inherits(proto.clarifai.api.PipelineVersionRun, jspb.Message);
5280
+ if (goog.DEBUG && !COMPILED) {
5281
+ /**
5282
+ * @public
5283
+ * @override
5284
+ */
5285
+ proto.clarifai.api.PipelineVersionRun.displayName = 'proto.clarifai.api.PipelineVersionRun';
5286
+ }
5019
5287
  if (jspb.Message.GENERATE_TO_OBJECT) {
5020
5288
  /**
5021
5289
  * Creates an object representation of this proto.
@@ -20670,7 +20938,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
20670
20938
  source: jspb.Message.getFieldWithDefault(msg, 36, 0),
20671
20939
  creator: jspb.Message.getFieldWithDefault(msg, 37, ""),
20672
20940
  versionCount: jspb.Message.getFieldWithDefault(msg, 38, 0),
20673
- usesTokens: jspb.Message.getBooleanFieldWithDefault(msg, 39, false)
20941
+ billingType: jspb.Message.getFieldWithDefault(msg, 40, 0)
20674
20942
  };
20675
20943
  if (includeInstance) {
20676
20944
  obj.$jspbMessageInstance = msg;
@@ -20838,9 +21106,9 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function (msg, reader) {
20838
21106
  var value = /** @type {number} */ (reader.readInt32());
20839
21107
  msg.setVersionCount(value);
20840
21108
  break;
20841
- case 39:
20842
- var value = /** @type {boolean} */ (reader.readBool());
20843
- msg.setUsesTokens(value);
21109
+ case 40:
21110
+ var value = /** @type {!proto.clarifai.api.Model.BillingType} */ (reader.readEnum());
21111
+ msg.setBillingType(value);
20844
21112
  break;
20845
21113
  default:
20846
21114
  reader.skipField();
@@ -20991,9 +21259,9 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function (message, writer) {
20991
21259
  if (f !== 0) {
20992
21260
  writer.writeInt32(38, f);
20993
21261
  }
20994
- f = message.getUsesTokens();
20995
- if (f) {
20996
- writer.writeBool(39, f);
21262
+ f = message.getBillingType();
21263
+ if (f !== 0.0) {
21264
+ writer.writeEnum(40, f);
20997
21265
  }
20998
21266
  };
20999
21267
  /**
@@ -21004,6 +21272,14 @@ proto.clarifai.api.Model.Source = {
21004
21272
  HOSTED: 1,
21005
21273
  WRAPPED: 2
21006
21274
  };
21275
+ /**
21276
+ * @enum {number}
21277
+ */
21278
+ proto.clarifai.api.Model.BillingType = {
21279
+ UNKNOWN: 0,
21280
+ TOKENS: 1,
21281
+ OPS: 2
21282
+ };
21007
21283
  /**
21008
21284
  * optional string id = 1;
21009
21285
  * @return {string}
@@ -21668,18 +21944,18 @@ proto.clarifai.api.Model.prototype.setVersionCount = function (value) {
21668
21944
  return jspb.Message.setProto3IntField(this, 38, value);
21669
21945
  };
21670
21946
  /**
21671
- * optional bool uses_tokens = 39;
21672
- * @return {boolean}
21947
+ * optional BillingType billing_type = 40;
21948
+ * @return {!proto.clarifai.api.Model.BillingType}
21673
21949
  */
21674
- proto.clarifai.api.Model.prototype.getUsesTokens = function () {
21675
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 39, false));
21950
+ proto.clarifai.api.Model.prototype.getBillingType = function () {
21951
+ return /** @type {!proto.clarifai.api.Model.BillingType} */ (jspb.Message.getFieldWithDefault(this, 40, 0));
21676
21952
  };
21677
21953
  /**
21678
- * @param {boolean} value
21954
+ * @param {!proto.clarifai.api.Model.BillingType} value
21679
21955
  * @return {!proto.clarifai.api.Model} returns this
21680
21956
  */
21681
- proto.clarifai.api.Model.prototype.setUsesTokens = function (value) {
21682
- return jspb.Message.setProto3BooleanField(this, 39, value);
21957
+ proto.clarifai.api.Model.prototype.setBillingType = function (value) {
21958
+ return jspb.Message.setProto3EnumField(this, 40, value);
21683
21959
  };
21684
21960
  if (jspb.Message.GENERATE_TO_OBJECT) {
21685
21961
  /**
@@ -43769,7 +44045,7 @@ proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = functio
43769
44045
  * @private {!Array<number>}
43770
44046
  * @const
43771
44047
  */
43772
- proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3];
44048
+ proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3, 4, 5];
43773
44049
  if (jspb.Message.GENERATE_TO_OBJECT) {
43774
44050
  /**
43775
44051
  * Creates an object representation of this proto.
@@ -43798,8 +44074,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
43798
44074
  proto.clarifai.api.TaskReviewMetrics.toObject = function (includeInstance, msg) {
43799
44075
  var f, obj = {
43800
44076
  inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
44077
+ inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0),
43801
44078
  inputsCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
43802
- inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
44079
+ inputsReviewableCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
44080
+ inputsPercentEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
43803
44081
  };
43804
44082
  if (includeInstance) {
43805
44083
  obj.$jspbMessageInstance = msg;
@@ -43835,15 +44113,27 @@ proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function (msg
43835
44113
  var value = /** @type {number} */ (reader.readUint64());
43836
44114
  msg.setInputsCountEstimated(value);
43837
44115
  break;
44116
+ case 2:
44117
+ var value = /** @type {number} */ (reader.readUint32());
44118
+ msg.setInputsPercentEstimated(value);
44119
+ break;
43838
44120
  case 3:
43839
44121
  var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
43840
44122
  for (var i = 0; i < values.length; i++) {
43841
44123
  msg.addInputsCountEstimatedPerReviewer(values[i]);
43842
44124
  }
43843
44125
  break;
43844
- case 2:
43845
- var value = /** @type {number} */ (reader.readUint32());
43846
- msg.setInputsPercentEstimated(value);
44126
+ case 4:
44127
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
44128
+ for (var i = 0; i < values.length; i++) {
44129
+ msg.addInputsReviewableCountEstimatedPerReviewer(values[i]);
44130
+ }
44131
+ break;
44132
+ case 5:
44133
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
44134
+ for (var i = 0; i < values.length; i++) {
44135
+ msg.addInputsPercentEstimatedPerReviewer(values[i]);
44136
+ }
43847
44137
  break;
43848
44138
  default:
43849
44139
  reader.skipField();
@@ -43874,13 +44164,21 @@ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function (message
43874
44164
  if (f !== 0) {
43875
44165
  writer.writeUint64(1, f);
43876
44166
  }
44167
+ f = message.getInputsPercentEstimated();
44168
+ if (f !== 0) {
44169
+ writer.writeUint32(2, f);
44170
+ }
43877
44171
  f = message.getInputsCountEstimatedPerReviewerList();
43878
44172
  if (f.length > 0) {
43879
44173
  writer.writePackedUint64(3, f);
43880
44174
  }
43881
- f = message.getInputsPercentEstimated();
43882
- if (f !== 0) {
43883
- writer.writeUint32(2, f);
44175
+ f = message.getInputsReviewableCountEstimatedPerReviewerList();
44176
+ if (f.length > 0) {
44177
+ writer.writePackedUint64(4, f);
44178
+ }
44179
+ f = message.getInputsPercentEstimatedPerReviewerList();
44180
+ if (f.length > 0) {
44181
+ writer.writePackedUint32(5, f);
43884
44182
  }
43885
44183
  };
43886
44184
  /**
@@ -43897,6 +44195,20 @@ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimated = functio
43897
44195
  proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = function (value) {
43898
44196
  return jspb.Message.setProto3IntField(this, 1, value);
43899
44197
  };
44198
+ /**
44199
+ * optional uint32 inputs_percent_estimated = 2;
44200
+ * @return {number}
44201
+ */
44202
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = function () {
44203
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
44204
+ };
44205
+ /**
44206
+ * @param {number} value
44207
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
44208
+ */
44209
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function (value) {
44210
+ return jspb.Message.setProto3IntField(this, 2, value);
44211
+ };
43900
44212
  /**
43901
44213
  * repeated uint64 inputs_count_estimated_per_reviewer = 3;
43902
44214
  * @return {!Array<number>}
@@ -43927,18 +44239,62 @@ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsCountEstimatedPerRevie
43927
44239
  return this.setInputsCountEstimatedPerReviewerList([]);
43928
44240
  };
43929
44241
  /**
43930
- * optional uint32 inputs_percent_estimated = 2;
43931
- * @return {number}
44242
+ * repeated uint64 inputs_reviewable_count_estimated_per_reviewer = 4;
44243
+ * @return {!Array<number>}
43932
44244
  */
43933
- proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = function () {
43934
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
44245
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsReviewableCountEstimatedPerReviewerList = function () {
44246
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
44247
+ };
44248
+ /**
44249
+ * @param {!Array<number>} value
44250
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
44251
+ */
44252
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsReviewableCountEstimatedPerReviewerList = function (value) {
44253
+ return jspb.Message.setField(this, 4, value || []);
43935
44254
  };
43936
44255
  /**
43937
44256
  * @param {number} value
44257
+ * @param {number=} opt_index
43938
44258
  * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
43939
44259
  */
43940
- proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function (value) {
43941
- return jspb.Message.setProto3IntField(this, 2, value);
44260
+ proto.clarifai.api.TaskReviewMetrics.prototype.addInputsReviewableCountEstimatedPerReviewer = function (value, opt_index) {
44261
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
44262
+ };
44263
+ /**
44264
+ * Clears the list making it empty but non-null.
44265
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
44266
+ */
44267
+ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsReviewableCountEstimatedPerReviewerList = function () {
44268
+ return this.setInputsReviewableCountEstimatedPerReviewerList([]);
44269
+ };
44270
+ /**
44271
+ * repeated uint32 inputs_percent_estimated_per_reviewer = 5;
44272
+ * @return {!Array<number>}
44273
+ */
44274
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimatedPerReviewerList = function () {
44275
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
44276
+ };
44277
+ /**
44278
+ * @param {!Array<number>} value
44279
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
44280
+ */
44281
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimatedPerReviewerList = function (value) {
44282
+ return jspb.Message.setField(this, 5, value || []);
44283
+ };
44284
+ /**
44285
+ * @param {number} value
44286
+ * @param {number=} opt_index
44287
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
44288
+ */
44289
+ proto.clarifai.api.TaskReviewMetrics.prototype.addInputsPercentEstimatedPerReviewer = function (value, opt_index) {
44290
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
44291
+ };
44292
+ /**
44293
+ * Clears the list making it empty but non-null.
44294
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
44295
+ */
44296
+ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsPercentEstimatedPerReviewerList = function () {
44297
+ return this.setInputsPercentEstimatedPerReviewerList([]);
43942
44298
  };
43943
44299
  if (jspb.Message.GENERATE_TO_OBJECT) {
43944
44300
  /**
@@ -56487,7 +56843,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
56487
56843
  trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
56488
56844
  scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
56489
56845
  scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
56490
- disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
56846
+ disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
56847
+ scaleToZeroDelaySeconds: jspb.Message.getFieldWithDefault(msg, 8, 0)
56491
56848
  };
56492
56849
  if (includeInstance) {
56493
56850
  obj.$jspbMessageInstance = msg;
@@ -56543,6 +56900,10 @@ proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function (msg,
56543
56900
  var value = /** @type {boolean} */ (reader.readBool());
56544
56901
  msg.setDisablePacking(value);
56545
56902
  break;
56903
+ case 8:
56904
+ var value = /** @type {number} */ (reader.readUint32());
56905
+ msg.setScaleToZeroDelaySeconds(value);
56906
+ break;
56546
56907
  default:
56547
56908
  reader.skipField();
56548
56909
  break;
@@ -56592,6 +56953,10 @@ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function (message,
56592
56953
  if (f) {
56593
56954
  writer.writeBool(7, f);
56594
56955
  }
56956
+ f = message.getScaleToZeroDelaySeconds();
56957
+ if (f !== 0) {
56958
+ writer.writeUint32(8, f);
56959
+ }
56595
56960
  };
56596
56961
  /**
56597
56962
  * optional uint32 min_replicas = 1;
@@ -56677,6 +57042,20 @@ proto.clarifai.api.AutoscaleConfig.prototype.getDisablePacking = function () {
56677
57042
  proto.clarifai.api.AutoscaleConfig.prototype.setDisablePacking = function (value) {
56678
57043
  return jspb.Message.setProto3BooleanField(this, 7, value);
56679
57044
  };
57045
+ /**
57046
+ * optional uint32 scale_to_zero_delay_seconds = 8;
57047
+ * @return {number}
57048
+ */
57049
+ proto.clarifai.api.AutoscaleConfig.prototype.getScaleToZeroDelaySeconds = function () {
57050
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
57051
+ };
57052
+ /**
57053
+ * @param {number} value
57054
+ * @return {!proto.clarifai.api.AutoscaleConfig} returns this
57055
+ */
57056
+ proto.clarifai.api.AutoscaleConfig.prototype.setScaleToZeroDelaySeconds = function (value) {
57057
+ return jspb.Message.setProto3IntField(this, 8, value);
57058
+ };
56680
57059
  /**
56681
57060
  * List of repeated fields within this message type.
56682
57061
  * @private {!Array<number>}
@@ -59160,7 +59539,7 @@ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVers
59160
59539
  * @private {!Array<number>}
59161
59540
  * @const
59162
59541
  */
59163
- proto.clarifai.api.ComputePlaneMetrics.repeatedFields_ = [10];
59542
+ proto.clarifai.api.ComputePlaneMetrics.repeatedFields_ = [10, 12];
59164
59543
  if (jspb.Message.GENERATE_TO_OBJECT) {
59165
59544
  /**
59166
59545
  * Creates an object representation of this proto.
@@ -59198,7 +59577,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
59198
59577
  timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
59199
59578
  eventType: jspb.Message.getFieldWithDefault(msg, 9, ""),
59200
59579
  gpuMetricsList: jspb.Message.toObjectList(msg.getGpuMetricsList(), proto.clarifai.api.GpuMetrics.toObject, includeInstance),
59201
- hostname: jspb.Message.getFieldWithDefault(msg, 11, "")
59580
+ hostname: jspb.Message.getFieldWithDefault(msg, 11, ""),
59581
+ cpuMetricsList: jspb.Message.toObjectList(msg.getCpuMetricsList(), proto.clarifai.api.CpuMetrics.toObject, includeInstance)
59202
59582
  };
59203
59583
  if (includeInstance) {
59204
59584
  obj.$jspbMessageInstance = msg;
@@ -59277,6 +59657,11 @@ proto.clarifai.api.ComputePlaneMetrics.deserializeBinaryFromReader = function (m
59277
59657
  var value = /** @type {string} */ (reader.readString());
59278
59658
  msg.setHostname(value);
59279
59659
  break;
59660
+ case 12:
59661
+ var value = new proto.clarifai.api.CpuMetrics;
59662
+ reader.readMessage(value, proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader);
59663
+ msg.addCpuMetrics(value);
59664
+ break;
59280
59665
  default:
59281
59666
  reader.skipField();
59282
59667
  break;
@@ -59346,6 +59731,10 @@ proto.clarifai.api.ComputePlaneMetrics.serializeBinaryToWriter = function (messa
59346
59731
  if (f.length > 0) {
59347
59732
  writer.writeString(11, f);
59348
59733
  }
59734
+ f = message.getCpuMetricsList();
59735
+ if (f.length > 0) {
59736
+ writer.writeRepeatedMessage(12, f, proto.clarifai.api.CpuMetrics.serializeBinaryToWriter);
59737
+ }
59349
59738
  };
59350
59739
  /**
59351
59740
  * optional ComputeSourceMetadata meta = 1;
@@ -59544,6 +59933,35 @@ proto.clarifai.api.ComputePlaneMetrics.prototype.getHostname = function () {
59544
59933
  proto.clarifai.api.ComputePlaneMetrics.prototype.setHostname = function (value) {
59545
59934
  return jspb.Message.setProto3StringField(this, 11, value);
59546
59935
  };
59936
+ /**
59937
+ * repeated CpuMetrics cpu_metrics = 12;
59938
+ * @return {!Array<!proto.clarifai.api.CpuMetrics>}
59939
+ */
59940
+ proto.clarifai.api.ComputePlaneMetrics.prototype.getCpuMetricsList = function () {
59941
+ return /** @type{!Array<!proto.clarifai.api.CpuMetrics>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.CpuMetrics, 12));
59942
+ };
59943
+ /**
59944
+ * @param {!Array<!proto.clarifai.api.CpuMetrics>} value
59945
+ * @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
59946
+ */
59947
+ proto.clarifai.api.ComputePlaneMetrics.prototype.setCpuMetricsList = function (value) {
59948
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
59949
+ };
59950
+ /**
59951
+ * @param {!proto.clarifai.api.CpuMetrics=} opt_value
59952
+ * @param {number=} opt_index
59953
+ * @return {!proto.clarifai.api.CpuMetrics}
59954
+ */
59955
+ proto.clarifai.api.ComputePlaneMetrics.prototype.addCpuMetrics = function (opt_value, opt_index) {
59956
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.CpuMetrics, opt_index);
59957
+ };
59958
+ /**
59959
+ * Clears the list making it empty but non-null.
59960
+ * @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
59961
+ */
59962
+ proto.clarifai.api.ComputePlaneMetrics.prototype.clearCpuMetricsList = function () {
59963
+ return this.setCpuMetricsList([]);
59964
+ };
59547
59965
  if (jspb.Message.GENERATE_TO_OBJECT) {
59548
59966
  /**
59549
59967
  * Creates an object representation of this proto.
@@ -59743,6 +60161,220 @@ proto.clarifai.api.GpuMetrics.prototype.getMemoryUtilizationPct = function () {
59743
60161
  proto.clarifai.api.GpuMetrics.prototype.setMemoryUtilizationPct = function (value) {
59744
60162
  return jspb.Message.setProto3FloatField(this, 5, value);
59745
60163
  };
60164
+ if (jspb.Message.GENERATE_TO_OBJECT) {
60165
+ /**
60166
+ * Creates an object representation of this proto.
60167
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
60168
+ * Optional fields that are not set will be set to undefined.
60169
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
60170
+ * For the list of reserved names please see:
60171
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
60172
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60173
+ * JSPB instance for transitional soy proto support:
60174
+ * http://goto/soy-param-migration
60175
+ * @return {!Object}
60176
+ */
60177
+ proto.clarifai.api.CpuMetrics.prototype.toObject = function (opt_includeInstance) {
60178
+ return proto.clarifai.api.CpuMetrics.toObject(opt_includeInstance, this);
60179
+ };
60180
+ /**
60181
+ * Static version of the {@see toObject} method.
60182
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
60183
+ * the JSPB instance for transitional soy proto support:
60184
+ * http://goto/soy-param-migration
60185
+ * @param {!proto.clarifai.api.CpuMetrics} msg The msg instance to transform.
60186
+ * @return {!Object}
60187
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60188
+ */
60189
+ proto.clarifai.api.CpuMetrics.toObject = function (includeInstance, msg) {
60190
+ var f, obj = {
60191
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
60192
+ cpuUtilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
60193
+ memoryUtilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
60194
+ millicores: jspb.Message.getFieldWithDefault(msg, 4, 0),
60195
+ memoryBytes: jspb.Message.getFieldWithDefault(msg, 5, 0)
60196
+ };
60197
+ if (includeInstance) {
60198
+ obj.$jspbMessageInstance = msg;
60199
+ }
60200
+ return obj;
60201
+ };
60202
+ }
60203
+ /**
60204
+ * Deserializes binary data (in protobuf wire format).
60205
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
60206
+ * @return {!proto.clarifai.api.CpuMetrics}
60207
+ */
60208
+ proto.clarifai.api.CpuMetrics.deserializeBinary = function (bytes) {
60209
+ var reader = new jspb.BinaryReader(bytes);
60210
+ var msg = new proto.clarifai.api.CpuMetrics;
60211
+ return proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader(msg, reader);
60212
+ };
60213
+ /**
60214
+ * Deserializes binary data (in protobuf wire format) from the
60215
+ * given reader into the given message object.
60216
+ * @param {!proto.clarifai.api.CpuMetrics} msg The message object to deserialize into.
60217
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
60218
+ * @return {!proto.clarifai.api.CpuMetrics}
60219
+ */
60220
+ proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader = function (msg, reader) {
60221
+ while (reader.nextField()) {
60222
+ if (reader.isEndGroup()) {
60223
+ break;
60224
+ }
60225
+ var field = reader.getFieldNumber();
60226
+ switch (field) {
60227
+ case 1:
60228
+ var value = new google_protobuf_timestamp_pb.Timestamp;
60229
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
60230
+ msg.setTimestamp(value);
60231
+ break;
60232
+ case 2:
60233
+ var value = /** @type {number} */ (reader.readFloat());
60234
+ msg.setCpuUtilizationPct(value);
60235
+ break;
60236
+ case 3:
60237
+ var value = /** @type {number} */ (reader.readFloat());
60238
+ msg.setMemoryUtilizationPct(value);
60239
+ break;
60240
+ case 4:
60241
+ var value = /** @type {number} */ (reader.readInt64());
60242
+ msg.setMillicores(value);
60243
+ break;
60244
+ case 5:
60245
+ var value = /** @type {number} */ (reader.readInt64());
60246
+ msg.setMemoryBytes(value);
60247
+ break;
60248
+ default:
60249
+ reader.skipField();
60250
+ break;
60251
+ }
60252
+ }
60253
+ return msg;
60254
+ };
60255
+ /**
60256
+ * Serializes the message to binary data (in protobuf wire format).
60257
+ * @return {!Uint8Array}
60258
+ */
60259
+ proto.clarifai.api.CpuMetrics.prototype.serializeBinary = function () {
60260
+ var writer = new jspb.BinaryWriter();
60261
+ proto.clarifai.api.CpuMetrics.serializeBinaryToWriter(this, writer);
60262
+ return writer.getResultBuffer();
60263
+ };
60264
+ /**
60265
+ * Serializes the given message to binary data (in protobuf wire
60266
+ * format), writing to the given BinaryWriter.
60267
+ * @param {!proto.clarifai.api.CpuMetrics} message
60268
+ * @param {!jspb.BinaryWriter} writer
60269
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60270
+ */
60271
+ proto.clarifai.api.CpuMetrics.serializeBinaryToWriter = function (message, writer) {
60272
+ var f = undefined;
60273
+ f = message.getTimestamp();
60274
+ if (f != null) {
60275
+ writer.writeMessage(1, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
60276
+ }
60277
+ f = message.getCpuUtilizationPct();
60278
+ if (f !== 0.0) {
60279
+ writer.writeFloat(2, f);
60280
+ }
60281
+ f = message.getMemoryUtilizationPct();
60282
+ if (f !== 0.0) {
60283
+ writer.writeFloat(3, f);
60284
+ }
60285
+ f = message.getMillicores();
60286
+ if (f !== 0) {
60287
+ writer.writeInt64(4, f);
60288
+ }
60289
+ f = message.getMemoryBytes();
60290
+ if (f !== 0) {
60291
+ writer.writeInt64(5, f);
60292
+ }
60293
+ };
60294
+ /**
60295
+ * optional google.protobuf.Timestamp timestamp = 1;
60296
+ * @return {?proto.google.protobuf.Timestamp}
60297
+ */
60298
+ proto.clarifai.api.CpuMetrics.prototype.getTimestamp = function () {
60299
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
60300
+ };
60301
+ /**
60302
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
60303
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
60304
+ */
60305
+ proto.clarifai.api.CpuMetrics.prototype.setTimestamp = function (value) {
60306
+ return jspb.Message.setWrapperField(this, 1, value);
60307
+ };
60308
+ /**
60309
+ * Clears the message field making it undefined.
60310
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
60311
+ */
60312
+ proto.clarifai.api.CpuMetrics.prototype.clearTimestamp = function () {
60313
+ return this.setTimestamp(undefined);
60314
+ };
60315
+ /**
60316
+ * Returns whether this field is set.
60317
+ * @return {boolean}
60318
+ */
60319
+ proto.clarifai.api.CpuMetrics.prototype.hasTimestamp = function () {
60320
+ return jspb.Message.getField(this, 1) != null;
60321
+ };
60322
+ /**
60323
+ * optional float cpu_utilization_pct = 2;
60324
+ * @return {number}
60325
+ */
60326
+ proto.clarifai.api.CpuMetrics.prototype.getCpuUtilizationPct = function () {
60327
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
60328
+ };
60329
+ /**
60330
+ * @param {number} value
60331
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
60332
+ */
60333
+ proto.clarifai.api.CpuMetrics.prototype.setCpuUtilizationPct = function (value) {
60334
+ return jspb.Message.setProto3FloatField(this, 2, value);
60335
+ };
60336
+ /**
60337
+ * optional float memory_utilization_pct = 3;
60338
+ * @return {number}
60339
+ */
60340
+ proto.clarifai.api.CpuMetrics.prototype.getMemoryUtilizationPct = function () {
60341
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
60342
+ };
60343
+ /**
60344
+ * @param {number} value
60345
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
60346
+ */
60347
+ proto.clarifai.api.CpuMetrics.prototype.setMemoryUtilizationPct = function (value) {
60348
+ return jspb.Message.setProto3FloatField(this, 3, value);
60349
+ };
60350
+ /**
60351
+ * optional int64 millicores = 4;
60352
+ * @return {number}
60353
+ */
60354
+ proto.clarifai.api.CpuMetrics.prototype.getMillicores = function () {
60355
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
60356
+ };
60357
+ /**
60358
+ * @param {number} value
60359
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
60360
+ */
60361
+ proto.clarifai.api.CpuMetrics.prototype.setMillicores = function (value) {
60362
+ return jspb.Message.setProto3IntField(this, 4, value);
60363
+ };
60364
+ /**
60365
+ * optional int64 memory_bytes = 5;
60366
+ * @return {number}
60367
+ */
60368
+ proto.clarifai.api.CpuMetrics.prototype.getMemoryBytes = function () {
60369
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
60370
+ };
60371
+ /**
60372
+ * @param {number} value
60373
+ * @return {!proto.clarifai.api.CpuMetrics} returns this
60374
+ */
60375
+ proto.clarifai.api.CpuMetrics.prototype.setMemoryBytes = function (value) {
60376
+ return jspb.Message.setProto3IntField(this, 5, value);
60377
+ };
59746
60378
  if (jspb.Message.GENERATE_TO_OBJECT) {
59747
60379
  /**
59748
60380
  * Creates an object representation of this proto.
@@ -59967,7 +60599,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
59967
60599
  workflowId: jspb.Message.getFieldWithDefault(msg, 4, ""),
59968
60600
  computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
59969
60601
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
59970
- runnerId: jspb.Message.getFieldWithDefault(msg, 8, "")
60602
+ runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
60603
+ pipelineId: jspb.Message.getFieldWithDefault(msg, 9, ""),
60604
+ pipelineVersionId: jspb.Message.getFieldWithDefault(msg, 10, ""),
60605
+ pipelineVersionRunId: jspb.Message.getFieldWithDefault(msg, 11, "")
59971
60606
  };
59972
60607
  if (includeInstance) {
59973
60608
  obj.$jspbMessageInstance = msg;
@@ -60028,6 +60663,18 @@ proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader = function
60028
60663
  var value = /** @type {string} */ (reader.readString());
60029
60664
  msg.setRunnerId(value);
60030
60665
  break;
60666
+ case 9:
60667
+ var value = /** @type {string} */ (reader.readString());
60668
+ msg.setPipelineId(value);
60669
+ break;
60670
+ case 10:
60671
+ var value = /** @type {string} */ (reader.readString());
60672
+ msg.setPipelineVersionId(value);
60673
+ break;
60674
+ case 11:
60675
+ var value = /** @type {string} */ (reader.readString());
60676
+ msg.setPipelineVersionRunId(value);
60677
+ break;
60031
60678
  default:
60032
60679
  reader.skipField();
60033
60680
  break;
@@ -60081,6 +60728,18 @@ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter = function (mes
60081
60728
  if (f.length > 0) {
60082
60729
  writer.writeString(8, f);
60083
60730
  }
60731
+ f = message.getPipelineId();
60732
+ if (f.length > 0) {
60733
+ writer.writeString(9, f);
60734
+ }
60735
+ f = message.getPipelineVersionId();
60736
+ if (f.length > 0) {
60737
+ writer.writeString(10, f);
60738
+ }
60739
+ f = message.getPipelineVersionRunId();
60740
+ if (f.length > 0) {
60741
+ writer.writeString(11, f);
60742
+ }
60084
60743
  };
60085
60744
  /**
60086
60745
  * optional UserAppIDSet user_app_id = 1;
@@ -60194,6 +60853,2360 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.getRunnerId = function () {
60194
60853
  proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function (value) {
60195
60854
  return jspb.Message.setProto3StringField(this, 8, value);
60196
60855
  };
60856
+ /**
60857
+ * optional string pipeline_id = 9;
60858
+ * @return {string}
60859
+ */
60860
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineId = function () {
60861
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
60862
+ };
60863
+ /**
60864
+ * @param {string} value
60865
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
60866
+ */
60867
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineId = function (value) {
60868
+ return jspb.Message.setProto3StringField(this, 9, value);
60869
+ };
60870
+ /**
60871
+ * optional string pipeline_version_id = 10;
60872
+ * @return {string}
60873
+ */
60874
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineVersionId = function () {
60875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
60876
+ };
60877
+ /**
60878
+ * @param {string} value
60879
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
60880
+ */
60881
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineVersionId = function (value) {
60882
+ return jspb.Message.setProto3StringField(this, 10, value);
60883
+ };
60884
+ /**
60885
+ * optional string pipeline_version_run_id = 11;
60886
+ * @return {string}
60887
+ */
60888
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineVersionRunId = function () {
60889
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
60890
+ };
60891
+ /**
60892
+ * @param {string} value
60893
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
60894
+ */
60895
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineVersionRunId = function (value) {
60896
+ return jspb.Message.setProto3StringField(this, 11, value);
60897
+ };
60898
+ if (jspb.Message.GENERATE_TO_OBJECT) {
60899
+ /**
60900
+ * Creates an object representation of this proto.
60901
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
60902
+ * Optional fields that are not set will be set to undefined.
60903
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
60904
+ * For the list of reserved names please see:
60905
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
60906
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60907
+ * JSPB instance for transitional soy proto support:
60908
+ * http://goto/soy-param-migration
60909
+ * @return {!Object}
60910
+ */
60911
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.toObject = function (opt_includeInstance) {
60912
+ return proto.clarifai.api.WorkflowVersionEvaluation.toObject(opt_includeInstance, this);
60913
+ };
60914
+ /**
60915
+ * Static version of the {@see toObject} method.
60916
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
60917
+ * the JSPB instance for transitional soy proto support:
60918
+ * http://goto/soy-param-migration
60919
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluation} msg The msg instance to transform.
60920
+ * @return {!Object}
60921
+ * @suppress {unusedLocalVariables} f is only used for nested messages
60922
+ */
60923
+ proto.clarifai.api.WorkflowVersionEvaluation.toObject = function (includeInstance, msg) {
60924
+ var f, obj = {
60925
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
60926
+ workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""),
60927
+ workflowVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
60928
+ groundTruthDatasetId: jspb.Message.getFieldWithDefault(msg, 4, ""),
60929
+ groundTruthDatasetVersionId: jspb.Message.getFieldWithDefault(msg, 5, ""),
60930
+ predictionsDatasetId: jspb.Message.getFieldWithDefault(msg, 6, ""),
60931
+ predictionsDatasetVersionId: jspb.Message.getFieldWithDefault(msg, 7, ""),
60932
+ evaluationTemplateId: jspb.Message.getFieldWithDefault(msg, 8, ""),
60933
+ workflowEvaluationResult: (f = msg.getWorkflowEvaluationResult()) && proto.clarifai.api.WorkflowEvaluationResult.toObject(includeInstance, f),
60934
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
60935
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
60936
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
60937
+ };
60938
+ if (includeInstance) {
60939
+ obj.$jspbMessageInstance = msg;
60940
+ }
60941
+ return obj;
60942
+ };
60943
+ }
60944
+ /**
60945
+ * Deserializes binary data (in protobuf wire format).
60946
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
60947
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation}
60948
+ */
60949
+ proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinary = function (bytes) {
60950
+ var reader = new jspb.BinaryReader(bytes);
60951
+ var msg = new proto.clarifai.api.WorkflowVersionEvaluation;
60952
+ return proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinaryFromReader(msg, reader);
60953
+ };
60954
+ /**
60955
+ * Deserializes binary data (in protobuf wire format) from the
60956
+ * given reader into the given message object.
60957
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluation} msg The message object to deserialize into.
60958
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
60959
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation}
60960
+ */
60961
+ proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinaryFromReader = function (msg, reader) {
60962
+ while (reader.nextField()) {
60963
+ if (reader.isEndGroup()) {
60964
+ break;
60965
+ }
60966
+ var field = reader.getFieldNumber();
60967
+ switch (field) {
60968
+ case 1:
60969
+ var value = /** @type {string} */ (reader.readString());
60970
+ msg.setId(value);
60971
+ break;
60972
+ case 2:
60973
+ var value = /** @type {string} */ (reader.readString());
60974
+ msg.setWorkflowId(value);
60975
+ break;
60976
+ case 3:
60977
+ var value = /** @type {string} */ (reader.readString());
60978
+ msg.setWorkflowVersionId(value);
60979
+ break;
60980
+ case 4:
60981
+ var value = /** @type {string} */ (reader.readString());
60982
+ msg.setGroundTruthDatasetId(value);
60983
+ break;
60984
+ case 5:
60985
+ var value = /** @type {string} */ (reader.readString());
60986
+ msg.setGroundTruthDatasetVersionId(value);
60987
+ break;
60988
+ case 6:
60989
+ var value = /** @type {string} */ (reader.readString());
60990
+ msg.setPredictionsDatasetId(value);
60991
+ break;
60992
+ case 7:
60993
+ var value = /** @type {string} */ (reader.readString());
60994
+ msg.setPredictionsDatasetVersionId(value);
60995
+ break;
60996
+ case 8:
60997
+ var value = /** @type {string} */ (reader.readString());
60998
+ msg.setEvaluationTemplateId(value);
60999
+ break;
61000
+ case 9:
61001
+ var value = new proto.clarifai.api.WorkflowEvaluationResult;
61002
+ reader.readMessage(value, proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader);
61003
+ msg.setWorkflowEvaluationResult(value);
61004
+ break;
61005
+ case 10:
61006
+ var value = new proto_clarifai_api_status_status_pb.Status;
61007
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
61008
+ msg.setStatus(value);
61009
+ break;
61010
+ case 11:
61011
+ var value = new google_protobuf_timestamp_pb.Timestamp;
61012
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
61013
+ msg.setCreatedAt(value);
61014
+ break;
61015
+ case 12:
61016
+ var value = new google_protobuf_timestamp_pb.Timestamp;
61017
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
61018
+ msg.setModifiedAt(value);
61019
+ break;
61020
+ default:
61021
+ reader.skipField();
61022
+ break;
61023
+ }
61024
+ }
61025
+ return msg;
61026
+ };
61027
+ /**
61028
+ * Serializes the message to binary data (in protobuf wire format).
61029
+ * @return {!Uint8Array}
61030
+ */
61031
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.serializeBinary = function () {
61032
+ var writer = new jspb.BinaryWriter();
61033
+ proto.clarifai.api.WorkflowVersionEvaluation.serializeBinaryToWriter(this, writer);
61034
+ return writer.getResultBuffer();
61035
+ };
61036
+ /**
61037
+ * Serializes the given message to binary data (in protobuf wire
61038
+ * format), writing to the given BinaryWriter.
61039
+ * @param {!proto.clarifai.api.WorkflowVersionEvaluation} message
61040
+ * @param {!jspb.BinaryWriter} writer
61041
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61042
+ */
61043
+ proto.clarifai.api.WorkflowVersionEvaluation.serializeBinaryToWriter = function (message, writer) {
61044
+ var f = undefined;
61045
+ f = message.getId();
61046
+ if (f.length > 0) {
61047
+ writer.writeString(1, f);
61048
+ }
61049
+ f = message.getWorkflowId();
61050
+ if (f.length > 0) {
61051
+ writer.writeString(2, f);
61052
+ }
61053
+ f = message.getWorkflowVersionId();
61054
+ if (f.length > 0) {
61055
+ writer.writeString(3, f);
61056
+ }
61057
+ f = message.getGroundTruthDatasetId();
61058
+ if (f.length > 0) {
61059
+ writer.writeString(4, f);
61060
+ }
61061
+ f = message.getGroundTruthDatasetVersionId();
61062
+ if (f.length > 0) {
61063
+ writer.writeString(5, f);
61064
+ }
61065
+ f = message.getPredictionsDatasetId();
61066
+ if (f.length > 0) {
61067
+ writer.writeString(6, f);
61068
+ }
61069
+ f = message.getPredictionsDatasetVersionId();
61070
+ if (f.length > 0) {
61071
+ writer.writeString(7, f);
61072
+ }
61073
+ f = message.getEvaluationTemplateId();
61074
+ if (f.length > 0) {
61075
+ writer.writeString(8, f);
61076
+ }
61077
+ f = message.getWorkflowEvaluationResult();
61078
+ if (f != null) {
61079
+ writer.writeMessage(9, f, proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter);
61080
+ }
61081
+ f = message.getStatus();
61082
+ if (f != null) {
61083
+ writer.writeMessage(10, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
61084
+ }
61085
+ f = message.getCreatedAt();
61086
+ if (f != null) {
61087
+ writer.writeMessage(11, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
61088
+ }
61089
+ f = message.getModifiedAt();
61090
+ if (f != null) {
61091
+ writer.writeMessage(12, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
61092
+ }
61093
+ };
61094
+ /**
61095
+ * optional string id = 1;
61096
+ * @return {string}
61097
+ */
61098
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getId = function () {
61099
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
61100
+ };
61101
+ /**
61102
+ * @param {string} value
61103
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61104
+ */
61105
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setId = function (value) {
61106
+ return jspb.Message.setProto3StringField(this, 1, value);
61107
+ };
61108
+ /**
61109
+ * optional string workflow_id = 2;
61110
+ * @return {string}
61111
+ */
61112
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowId = function () {
61113
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
61114
+ };
61115
+ /**
61116
+ * @param {string} value
61117
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61118
+ */
61119
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowId = function (value) {
61120
+ return jspb.Message.setProto3StringField(this, 2, value);
61121
+ };
61122
+ /**
61123
+ * optional string workflow_version_id = 3;
61124
+ * @return {string}
61125
+ */
61126
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowVersionId = function () {
61127
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
61128
+ };
61129
+ /**
61130
+ * @param {string} value
61131
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61132
+ */
61133
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowVersionId = function (value) {
61134
+ return jspb.Message.setProto3StringField(this, 3, value);
61135
+ };
61136
+ /**
61137
+ * optional string ground_truth_dataset_id = 4;
61138
+ * @return {string}
61139
+ */
61140
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getGroundTruthDatasetId = function () {
61141
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
61142
+ };
61143
+ /**
61144
+ * @param {string} value
61145
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61146
+ */
61147
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setGroundTruthDatasetId = function (value) {
61148
+ return jspb.Message.setProto3StringField(this, 4, value);
61149
+ };
61150
+ /**
61151
+ * optional string ground_truth_dataset_version_id = 5;
61152
+ * @return {string}
61153
+ */
61154
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getGroundTruthDatasetVersionId = function () {
61155
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
61156
+ };
61157
+ /**
61158
+ * @param {string} value
61159
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61160
+ */
61161
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setGroundTruthDatasetVersionId = function (value) {
61162
+ return jspb.Message.setProto3StringField(this, 5, value);
61163
+ };
61164
+ /**
61165
+ * optional string predictions_dataset_id = 6;
61166
+ * @return {string}
61167
+ */
61168
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getPredictionsDatasetId = function () {
61169
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
61170
+ };
61171
+ /**
61172
+ * @param {string} value
61173
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61174
+ */
61175
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setPredictionsDatasetId = function (value) {
61176
+ return jspb.Message.setProto3StringField(this, 6, value);
61177
+ };
61178
+ /**
61179
+ * optional string predictions_dataset_version_id = 7;
61180
+ * @return {string}
61181
+ */
61182
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getPredictionsDatasetVersionId = function () {
61183
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
61184
+ };
61185
+ /**
61186
+ * @param {string} value
61187
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61188
+ */
61189
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setPredictionsDatasetVersionId = function (value) {
61190
+ return jspb.Message.setProto3StringField(this, 7, value);
61191
+ };
61192
+ /**
61193
+ * optional string evaluation_template_id = 8;
61194
+ * @return {string}
61195
+ */
61196
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getEvaluationTemplateId = function () {
61197
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
61198
+ };
61199
+ /**
61200
+ * @param {string} value
61201
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61202
+ */
61203
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setEvaluationTemplateId = function (value) {
61204
+ return jspb.Message.setProto3StringField(this, 8, value);
61205
+ };
61206
+ /**
61207
+ * optional WorkflowEvaluationResult workflow_evaluation_result = 9;
61208
+ * @return {?proto.clarifai.api.WorkflowEvaluationResult}
61209
+ */
61210
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowEvaluationResult = function () {
61211
+ return /** @type{?proto.clarifai.api.WorkflowEvaluationResult} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowEvaluationResult, 9));
61212
+ };
61213
+ /**
61214
+ * @param {?proto.clarifai.api.WorkflowEvaluationResult|undefined} value
61215
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61216
+ */
61217
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowEvaluationResult = function (value) {
61218
+ return jspb.Message.setWrapperField(this, 9, value);
61219
+ };
61220
+ /**
61221
+ * Clears the message field making it undefined.
61222
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61223
+ */
61224
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearWorkflowEvaluationResult = function () {
61225
+ return this.setWorkflowEvaluationResult(undefined);
61226
+ };
61227
+ /**
61228
+ * Returns whether this field is set.
61229
+ * @return {boolean}
61230
+ */
61231
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasWorkflowEvaluationResult = function () {
61232
+ return jspb.Message.getField(this, 9) != null;
61233
+ };
61234
+ /**
61235
+ * optional status.Status status = 10;
61236
+ * @return {?proto.clarifai.api.status.Status}
61237
+ */
61238
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getStatus = function () {
61239
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 10));
61240
+ };
61241
+ /**
61242
+ * @param {?proto.clarifai.api.status.Status|undefined} value
61243
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61244
+ */
61245
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setStatus = function (value) {
61246
+ return jspb.Message.setWrapperField(this, 10, value);
61247
+ };
61248
+ /**
61249
+ * Clears the message field making it undefined.
61250
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61251
+ */
61252
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearStatus = function () {
61253
+ return this.setStatus(undefined);
61254
+ };
61255
+ /**
61256
+ * Returns whether this field is set.
61257
+ * @return {boolean}
61258
+ */
61259
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasStatus = function () {
61260
+ return jspb.Message.getField(this, 10) != null;
61261
+ };
61262
+ /**
61263
+ * optional google.protobuf.Timestamp created_at = 11;
61264
+ * @return {?proto.google.protobuf.Timestamp}
61265
+ */
61266
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getCreatedAt = function () {
61267
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
61268
+ };
61269
+ /**
61270
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
61271
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61272
+ */
61273
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setCreatedAt = function (value) {
61274
+ return jspb.Message.setWrapperField(this, 11, value);
61275
+ };
61276
+ /**
61277
+ * Clears the message field making it undefined.
61278
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61279
+ */
61280
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearCreatedAt = function () {
61281
+ return this.setCreatedAt(undefined);
61282
+ };
61283
+ /**
61284
+ * Returns whether this field is set.
61285
+ * @return {boolean}
61286
+ */
61287
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasCreatedAt = function () {
61288
+ return jspb.Message.getField(this, 11) != null;
61289
+ };
61290
+ /**
61291
+ * optional google.protobuf.Timestamp modified_at = 12;
61292
+ * @return {?proto.google.protobuf.Timestamp}
61293
+ */
61294
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.getModifiedAt = function () {
61295
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
61296
+ };
61297
+ /**
61298
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
61299
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61300
+ */
61301
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.setModifiedAt = function (value) {
61302
+ return jspb.Message.setWrapperField(this, 12, value);
61303
+ };
61304
+ /**
61305
+ * Clears the message field making it undefined.
61306
+ * @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
61307
+ */
61308
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearModifiedAt = function () {
61309
+ return this.setModifiedAt(undefined);
61310
+ };
61311
+ /**
61312
+ * Returns whether this field is set.
61313
+ * @return {boolean}
61314
+ */
61315
+ proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasModifiedAt = function () {
61316
+ return jspb.Message.getField(this, 12) != null;
61317
+ };
61318
+ if (jspb.Message.GENERATE_TO_OBJECT) {
61319
+ /**
61320
+ * Creates an object representation of this proto.
61321
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
61322
+ * Optional fields that are not set will be set to undefined.
61323
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
61324
+ * For the list of reserved names please see:
61325
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
61326
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
61327
+ * JSPB instance for transitional soy proto support:
61328
+ * http://goto/soy-param-migration
61329
+ * @return {!Object}
61330
+ */
61331
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.toObject = function (opt_includeInstance) {
61332
+ return proto.clarifai.api.WorkflowEvaluationResult.toObject(opt_includeInstance, this);
61333
+ };
61334
+ /**
61335
+ * Static version of the {@see toObject} method.
61336
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
61337
+ * the JSPB instance for transitional soy proto support:
61338
+ * http://goto/soy-param-migration
61339
+ * @param {!proto.clarifai.api.WorkflowEvaluationResult} msg The msg instance to transform.
61340
+ * @return {!Object}
61341
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61342
+ */
61343
+ proto.clarifai.api.WorkflowEvaluationResult.toObject = function (includeInstance, msg) {
61344
+ var f, obj = {
61345
+ summary: (f = msg.getSummary()) && proto.clarifai.api.WorkflowEvaluationResultSummary.toObject(includeInstance, f)
61346
+ };
61347
+ if (includeInstance) {
61348
+ obj.$jspbMessageInstance = msg;
61349
+ }
61350
+ return obj;
61351
+ };
61352
+ }
61353
+ /**
61354
+ * Deserializes binary data (in protobuf wire format).
61355
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
61356
+ * @return {!proto.clarifai.api.WorkflowEvaluationResult}
61357
+ */
61358
+ proto.clarifai.api.WorkflowEvaluationResult.deserializeBinary = function (bytes) {
61359
+ var reader = new jspb.BinaryReader(bytes);
61360
+ var msg = new proto.clarifai.api.WorkflowEvaluationResult;
61361
+ return proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader(msg, reader);
61362
+ };
61363
+ /**
61364
+ * Deserializes binary data (in protobuf wire format) from the
61365
+ * given reader into the given message object.
61366
+ * @param {!proto.clarifai.api.WorkflowEvaluationResult} msg The message object to deserialize into.
61367
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
61368
+ * @return {!proto.clarifai.api.WorkflowEvaluationResult}
61369
+ */
61370
+ proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader = function (msg, reader) {
61371
+ while (reader.nextField()) {
61372
+ if (reader.isEndGroup()) {
61373
+ break;
61374
+ }
61375
+ var field = reader.getFieldNumber();
61376
+ switch (field) {
61377
+ case 1:
61378
+ var value = new proto.clarifai.api.WorkflowEvaluationResultSummary;
61379
+ reader.readMessage(value, proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader);
61380
+ msg.setSummary(value);
61381
+ break;
61382
+ default:
61383
+ reader.skipField();
61384
+ break;
61385
+ }
61386
+ }
61387
+ return msg;
61388
+ };
61389
+ /**
61390
+ * Serializes the message to binary data (in protobuf wire format).
61391
+ * @return {!Uint8Array}
61392
+ */
61393
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.serializeBinary = function () {
61394
+ var writer = new jspb.BinaryWriter();
61395
+ proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter(this, writer);
61396
+ return writer.getResultBuffer();
61397
+ };
61398
+ /**
61399
+ * Serializes the given message to binary data (in protobuf wire
61400
+ * format), writing to the given BinaryWriter.
61401
+ * @param {!proto.clarifai.api.WorkflowEvaluationResult} message
61402
+ * @param {!jspb.BinaryWriter} writer
61403
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61404
+ */
61405
+ proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter = function (message, writer) {
61406
+ var f = undefined;
61407
+ f = message.getSummary();
61408
+ if (f != null) {
61409
+ writer.writeMessage(1, f, proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter);
61410
+ }
61411
+ };
61412
+ /**
61413
+ * optional WorkflowEvaluationResultSummary summary = 1;
61414
+ * @return {?proto.clarifai.api.WorkflowEvaluationResultSummary}
61415
+ */
61416
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.getSummary = function () {
61417
+ return /** @type{?proto.clarifai.api.WorkflowEvaluationResultSummary} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowEvaluationResultSummary, 1));
61418
+ };
61419
+ /**
61420
+ * @param {?proto.clarifai.api.WorkflowEvaluationResultSummary|undefined} value
61421
+ * @return {!proto.clarifai.api.WorkflowEvaluationResult} returns this
61422
+ */
61423
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.setSummary = function (value) {
61424
+ return jspb.Message.setWrapperField(this, 1, value);
61425
+ };
61426
+ /**
61427
+ * Clears the message field making it undefined.
61428
+ * @return {!proto.clarifai.api.WorkflowEvaluationResult} returns this
61429
+ */
61430
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.clearSummary = function () {
61431
+ return this.setSummary(undefined);
61432
+ };
61433
+ /**
61434
+ * Returns whether this field is set.
61435
+ * @return {boolean}
61436
+ */
61437
+ proto.clarifai.api.WorkflowEvaluationResult.prototype.hasSummary = function () {
61438
+ return jspb.Message.getField(this, 1) != null;
61439
+ };
61440
+ /**
61441
+ * List of repeated fields within this message type.
61442
+ * @private {!Array<number>}
61443
+ * @const
61444
+ */
61445
+ proto.clarifai.api.WorkflowEvaluationResultSummary.repeatedFields_ = [2];
61446
+ if (jspb.Message.GENERATE_TO_OBJECT) {
61447
+ /**
61448
+ * Creates an object representation of this proto.
61449
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
61450
+ * Optional fields that are not set will be set to undefined.
61451
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
61452
+ * For the list of reserved names please see:
61453
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
61454
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
61455
+ * JSPB instance for transitional soy proto support:
61456
+ * http://goto/soy-param-migration
61457
+ * @return {!Object}
61458
+ */
61459
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.toObject = function (opt_includeInstance) {
61460
+ return proto.clarifai.api.WorkflowEvaluationResultSummary.toObject(opt_includeInstance, this);
61461
+ };
61462
+ /**
61463
+ * Static version of the {@see toObject} method.
61464
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
61465
+ * the JSPB instance for transitional soy proto support:
61466
+ * http://goto/soy-param-migration
61467
+ * @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} msg The msg instance to transform.
61468
+ * @return {!Object}
61469
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61470
+ */
61471
+ proto.clarifai.api.WorkflowEvaluationResultSummary.toObject = function (includeInstance, msg) {
61472
+ var f, obj = {
61473
+ evaluationMetricValuesList: jspb.Message.toObjectList(msg.getEvaluationMetricValuesList(), proto.clarifai.api.EvaluationMetricValue.toObject, includeInstance)
61474
+ };
61475
+ if (includeInstance) {
61476
+ obj.$jspbMessageInstance = msg;
61477
+ }
61478
+ return obj;
61479
+ };
61480
+ }
61481
+ /**
61482
+ * Deserializes binary data (in protobuf wire format).
61483
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
61484
+ * @return {!proto.clarifai.api.WorkflowEvaluationResultSummary}
61485
+ */
61486
+ proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinary = function (bytes) {
61487
+ var reader = new jspb.BinaryReader(bytes);
61488
+ var msg = new proto.clarifai.api.WorkflowEvaluationResultSummary;
61489
+ return proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader(msg, reader);
61490
+ };
61491
+ /**
61492
+ * Deserializes binary data (in protobuf wire format) from the
61493
+ * given reader into the given message object.
61494
+ * @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} msg The message object to deserialize into.
61495
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
61496
+ * @return {!proto.clarifai.api.WorkflowEvaluationResultSummary}
61497
+ */
61498
+ proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader = function (msg, reader) {
61499
+ while (reader.nextField()) {
61500
+ if (reader.isEndGroup()) {
61501
+ break;
61502
+ }
61503
+ var field = reader.getFieldNumber();
61504
+ switch (field) {
61505
+ case 2:
61506
+ var value = new proto.clarifai.api.EvaluationMetricValue;
61507
+ reader.readMessage(value, proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader);
61508
+ msg.addEvaluationMetricValues(value);
61509
+ break;
61510
+ default:
61511
+ reader.skipField();
61512
+ break;
61513
+ }
61514
+ }
61515
+ return msg;
61516
+ };
61517
+ /**
61518
+ * Serializes the message to binary data (in protobuf wire format).
61519
+ * @return {!Uint8Array}
61520
+ */
61521
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.serializeBinary = function () {
61522
+ var writer = new jspb.BinaryWriter();
61523
+ proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter(this, writer);
61524
+ return writer.getResultBuffer();
61525
+ };
61526
+ /**
61527
+ * Serializes the given message to binary data (in protobuf wire
61528
+ * format), writing to the given BinaryWriter.
61529
+ * @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} message
61530
+ * @param {!jspb.BinaryWriter} writer
61531
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61532
+ */
61533
+ proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter = function (message, writer) {
61534
+ var f = undefined;
61535
+ f = message.getEvaluationMetricValuesList();
61536
+ if (f.length > 0) {
61537
+ writer.writeRepeatedMessage(2, f, proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter);
61538
+ }
61539
+ };
61540
+ /**
61541
+ * repeated EvaluationMetricValue evaluation_metric_values = 2;
61542
+ * @return {!Array<!proto.clarifai.api.EvaluationMetricValue>}
61543
+ */
61544
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.getEvaluationMetricValuesList = function () {
61545
+ return /** @type{!Array<!proto.clarifai.api.EvaluationMetricValue>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.EvaluationMetricValue, 2));
61546
+ };
61547
+ /**
61548
+ * @param {!Array<!proto.clarifai.api.EvaluationMetricValue>} value
61549
+ * @return {!proto.clarifai.api.WorkflowEvaluationResultSummary} returns this
61550
+ */
61551
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.setEvaluationMetricValuesList = function (value) {
61552
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
61553
+ };
61554
+ /**
61555
+ * @param {!proto.clarifai.api.EvaluationMetricValue=} opt_value
61556
+ * @param {number=} opt_index
61557
+ * @return {!proto.clarifai.api.EvaluationMetricValue}
61558
+ */
61559
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.addEvaluationMetricValues = function (opt_value, opt_index) {
61560
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.EvaluationMetricValue, opt_index);
61561
+ };
61562
+ /**
61563
+ * Clears the list making it empty but non-null.
61564
+ * @return {!proto.clarifai.api.WorkflowEvaluationResultSummary} returns this
61565
+ */
61566
+ proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.clearEvaluationMetricValuesList = function () {
61567
+ return this.setEvaluationMetricValuesList([]);
61568
+ };
61569
+ if (jspb.Message.GENERATE_TO_OBJECT) {
61570
+ /**
61571
+ * Creates an object representation of this proto.
61572
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
61573
+ * Optional fields that are not set will be set to undefined.
61574
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
61575
+ * For the list of reserved names please see:
61576
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
61577
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
61578
+ * JSPB instance for transitional soy proto support:
61579
+ * http://goto/soy-param-migration
61580
+ * @return {!Object}
61581
+ */
61582
+ proto.clarifai.api.EvaluationMetricValue.prototype.toObject = function (opt_includeInstance) {
61583
+ return proto.clarifai.api.EvaluationMetricValue.toObject(opt_includeInstance, this);
61584
+ };
61585
+ /**
61586
+ * Static version of the {@see toObject} method.
61587
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
61588
+ * the JSPB instance for transitional soy proto support:
61589
+ * http://goto/soy-param-migration
61590
+ * @param {!proto.clarifai.api.EvaluationMetricValue} msg The msg instance to transform.
61591
+ * @return {!Object}
61592
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61593
+ */
61594
+ proto.clarifai.api.EvaluationMetricValue.toObject = function (includeInstance, msg) {
61595
+ var f, obj = {
61596
+ evaluationMetricId: jspb.Message.getFieldWithDefault(msg, 1, ""),
61597
+ metricValue: (f = msg.getMetricValue()) && proto.clarifai.api.MetricValue.toObject(includeInstance, f),
61598
+ explanation: jspb.Message.getFieldWithDefault(msg, 3, ""),
61599
+ perConceptValuesMap: (f = msg.getPerConceptValuesMap()) ? f.toObject(includeInstance, proto.clarifai.api.MetricValue.toObject) : []
61600
+ };
61601
+ if (includeInstance) {
61602
+ obj.$jspbMessageInstance = msg;
61603
+ }
61604
+ return obj;
61605
+ };
61606
+ }
61607
+ /**
61608
+ * Deserializes binary data (in protobuf wire format).
61609
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
61610
+ * @return {!proto.clarifai.api.EvaluationMetricValue}
61611
+ */
61612
+ proto.clarifai.api.EvaluationMetricValue.deserializeBinary = function (bytes) {
61613
+ var reader = new jspb.BinaryReader(bytes);
61614
+ var msg = new proto.clarifai.api.EvaluationMetricValue;
61615
+ return proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader(msg, reader);
61616
+ };
61617
+ /**
61618
+ * Deserializes binary data (in protobuf wire format) from the
61619
+ * given reader into the given message object.
61620
+ * @param {!proto.clarifai.api.EvaluationMetricValue} msg The message object to deserialize into.
61621
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
61622
+ * @return {!proto.clarifai.api.EvaluationMetricValue}
61623
+ */
61624
+ proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader = function (msg, reader) {
61625
+ while (reader.nextField()) {
61626
+ if (reader.isEndGroup()) {
61627
+ break;
61628
+ }
61629
+ var field = reader.getFieldNumber();
61630
+ switch (field) {
61631
+ case 1:
61632
+ var value = /** @type {string} */ (reader.readString());
61633
+ msg.setEvaluationMetricId(value);
61634
+ break;
61635
+ case 2:
61636
+ var value = new proto.clarifai.api.MetricValue;
61637
+ reader.readMessage(value, proto.clarifai.api.MetricValue.deserializeBinaryFromReader);
61638
+ msg.setMetricValue(value);
61639
+ break;
61640
+ case 3:
61641
+ var value = /** @type {string} */ (reader.readString());
61642
+ msg.setExplanation(value);
61643
+ break;
61644
+ case 4:
61645
+ var value = msg.getPerConceptValuesMap();
61646
+ reader.readMessage(value, function (message, reader) {
61647
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.MetricValue.deserializeBinaryFromReader, "", new proto.clarifai.api.MetricValue());
61648
+ });
61649
+ break;
61650
+ default:
61651
+ reader.skipField();
61652
+ break;
61653
+ }
61654
+ }
61655
+ return msg;
61656
+ };
61657
+ /**
61658
+ * Serializes the message to binary data (in protobuf wire format).
61659
+ * @return {!Uint8Array}
61660
+ */
61661
+ proto.clarifai.api.EvaluationMetricValue.prototype.serializeBinary = function () {
61662
+ var writer = new jspb.BinaryWriter();
61663
+ proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter(this, writer);
61664
+ return writer.getResultBuffer();
61665
+ };
61666
+ /**
61667
+ * Serializes the given message to binary data (in protobuf wire
61668
+ * format), writing to the given BinaryWriter.
61669
+ * @param {!proto.clarifai.api.EvaluationMetricValue} message
61670
+ * @param {!jspb.BinaryWriter} writer
61671
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61672
+ */
61673
+ proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter = function (message, writer) {
61674
+ var f = undefined;
61675
+ f = message.getEvaluationMetricId();
61676
+ if (f.length > 0) {
61677
+ writer.writeString(1, f);
61678
+ }
61679
+ f = message.getMetricValue();
61680
+ if (f != null) {
61681
+ writer.writeMessage(2, f, proto.clarifai.api.MetricValue.serializeBinaryToWriter);
61682
+ }
61683
+ f = message.getExplanation();
61684
+ if (f.length > 0) {
61685
+ writer.writeString(3, f);
61686
+ }
61687
+ f = message.getPerConceptValuesMap(true);
61688
+ if (f && f.getLength() > 0) {
61689
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.MetricValue.serializeBinaryToWriter);
61690
+ }
61691
+ };
61692
+ /**
61693
+ * optional string evaluation_metric_id = 1;
61694
+ * @return {string}
61695
+ */
61696
+ proto.clarifai.api.EvaluationMetricValue.prototype.getEvaluationMetricId = function () {
61697
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
61698
+ };
61699
+ /**
61700
+ * @param {string} value
61701
+ * @return {!proto.clarifai.api.EvaluationMetricValue} returns this
61702
+ */
61703
+ proto.clarifai.api.EvaluationMetricValue.prototype.setEvaluationMetricId = function (value) {
61704
+ return jspb.Message.setProto3StringField(this, 1, value);
61705
+ };
61706
+ /**
61707
+ * optional MetricValue metric_value = 2;
61708
+ * @return {?proto.clarifai.api.MetricValue}
61709
+ */
61710
+ proto.clarifai.api.EvaluationMetricValue.prototype.getMetricValue = function () {
61711
+ return /** @type{?proto.clarifai.api.MetricValue} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.MetricValue, 2));
61712
+ };
61713
+ /**
61714
+ * @param {?proto.clarifai.api.MetricValue|undefined} value
61715
+ * @return {!proto.clarifai.api.EvaluationMetricValue} returns this
61716
+ */
61717
+ proto.clarifai.api.EvaluationMetricValue.prototype.setMetricValue = function (value) {
61718
+ return jspb.Message.setWrapperField(this, 2, value);
61719
+ };
61720
+ /**
61721
+ * Clears the message field making it undefined.
61722
+ * @return {!proto.clarifai.api.EvaluationMetricValue} returns this
61723
+ */
61724
+ proto.clarifai.api.EvaluationMetricValue.prototype.clearMetricValue = function () {
61725
+ return this.setMetricValue(undefined);
61726
+ };
61727
+ /**
61728
+ * Returns whether this field is set.
61729
+ * @return {boolean}
61730
+ */
61731
+ proto.clarifai.api.EvaluationMetricValue.prototype.hasMetricValue = function () {
61732
+ return jspb.Message.getField(this, 2) != null;
61733
+ };
61734
+ /**
61735
+ * optional string explanation = 3;
61736
+ * @return {string}
61737
+ */
61738
+ proto.clarifai.api.EvaluationMetricValue.prototype.getExplanation = function () {
61739
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
61740
+ };
61741
+ /**
61742
+ * @param {string} value
61743
+ * @return {!proto.clarifai.api.EvaluationMetricValue} returns this
61744
+ */
61745
+ proto.clarifai.api.EvaluationMetricValue.prototype.setExplanation = function (value) {
61746
+ return jspb.Message.setProto3StringField(this, 3, value);
61747
+ };
61748
+ /**
61749
+ * map<string, MetricValue> per_concept_values = 4;
61750
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
61751
+ * empty, instead returning `undefined`
61752
+ * @return {!jspb.Map<string,!proto.clarifai.api.MetricValue>}
61753
+ */
61754
+ proto.clarifai.api.EvaluationMetricValue.prototype.getPerConceptValuesMap = function (opt_noLazyCreate) {
61755
+ return /** @type {!jspb.Map<string,!proto.clarifai.api.MetricValue>} */ (jspb.Message.getMapField(this, 4, opt_noLazyCreate, proto.clarifai.api.MetricValue));
61756
+ };
61757
+ /**
61758
+ * Clears values from the map. The map will be non-null.
61759
+ * @return {!proto.clarifai.api.EvaluationMetricValue} returns this
61760
+ */
61761
+ proto.clarifai.api.EvaluationMetricValue.prototype.clearPerConceptValuesMap = function () {
61762
+ this.getPerConceptValuesMap().clear();
61763
+ return this;
61764
+ };
61765
+ /**
61766
+ * Oneof group definitions for this message. Each group defines the field
61767
+ * numbers belonging to that group. When of these fields' value is set, all
61768
+ * other fields in the group are cleared. During deserialization, if multiple
61769
+ * fields are encountered for a group, only the last value seen will be kept.
61770
+ * @private {!Array<!Array<number>>}
61771
+ * @const
61772
+ */
61773
+ proto.clarifai.api.MetricValue.oneofGroups_ = [[1, 2, 3]];
61774
+ /**
61775
+ * @enum {number}
61776
+ */
61777
+ proto.clarifai.api.MetricValue.MetricValueCase = {
61778
+ METRIC_VALUE_NOT_SET: 0,
61779
+ STRING_VALUE: 1,
61780
+ FLOAT_VALUE: 2,
61781
+ INT_VALUE: 3
61782
+ };
61783
+ /**
61784
+ * @return {proto.clarifai.api.MetricValue.MetricValueCase}
61785
+ */
61786
+ proto.clarifai.api.MetricValue.prototype.getMetricValueCase = function () {
61787
+ return /** @type {proto.clarifai.api.MetricValue.MetricValueCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.MetricValue.oneofGroups_[0]));
61788
+ };
61789
+ if (jspb.Message.GENERATE_TO_OBJECT) {
61790
+ /**
61791
+ * Creates an object representation of this proto.
61792
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
61793
+ * Optional fields that are not set will be set to undefined.
61794
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
61795
+ * For the list of reserved names please see:
61796
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
61797
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
61798
+ * JSPB instance for transitional soy proto support:
61799
+ * http://goto/soy-param-migration
61800
+ * @return {!Object}
61801
+ */
61802
+ proto.clarifai.api.MetricValue.prototype.toObject = function (opt_includeInstance) {
61803
+ return proto.clarifai.api.MetricValue.toObject(opt_includeInstance, this);
61804
+ };
61805
+ /**
61806
+ * Static version of the {@see toObject} method.
61807
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
61808
+ * the JSPB instance for transitional soy proto support:
61809
+ * http://goto/soy-param-migration
61810
+ * @param {!proto.clarifai.api.MetricValue} msg The msg instance to transform.
61811
+ * @return {!Object}
61812
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61813
+ */
61814
+ proto.clarifai.api.MetricValue.toObject = function (includeInstance, msg) {
61815
+ var f, obj = {
61816
+ stringValue: jspb.Message.getFieldWithDefault(msg, 1, ""),
61817
+ floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
61818
+ intValue: jspb.Message.getFieldWithDefault(msg, 3, 0)
61819
+ };
61820
+ if (includeInstance) {
61821
+ obj.$jspbMessageInstance = msg;
61822
+ }
61823
+ return obj;
61824
+ };
61825
+ }
61826
+ /**
61827
+ * Deserializes binary data (in protobuf wire format).
61828
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
61829
+ * @return {!proto.clarifai.api.MetricValue}
61830
+ */
61831
+ proto.clarifai.api.MetricValue.deserializeBinary = function (bytes) {
61832
+ var reader = new jspb.BinaryReader(bytes);
61833
+ var msg = new proto.clarifai.api.MetricValue;
61834
+ return proto.clarifai.api.MetricValue.deserializeBinaryFromReader(msg, reader);
61835
+ };
61836
+ /**
61837
+ * Deserializes binary data (in protobuf wire format) from the
61838
+ * given reader into the given message object.
61839
+ * @param {!proto.clarifai.api.MetricValue} msg The message object to deserialize into.
61840
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
61841
+ * @return {!proto.clarifai.api.MetricValue}
61842
+ */
61843
+ proto.clarifai.api.MetricValue.deserializeBinaryFromReader = function (msg, reader) {
61844
+ while (reader.nextField()) {
61845
+ if (reader.isEndGroup()) {
61846
+ break;
61847
+ }
61848
+ var field = reader.getFieldNumber();
61849
+ switch (field) {
61850
+ case 1:
61851
+ var value = /** @type {string} */ (reader.readString());
61852
+ msg.setStringValue(value);
61853
+ break;
61854
+ case 2:
61855
+ var value = /** @type {number} */ (reader.readFloat());
61856
+ msg.setFloatValue(value);
61857
+ break;
61858
+ case 3:
61859
+ var value = /** @type {number} */ (reader.readInt32());
61860
+ msg.setIntValue(value);
61861
+ break;
61862
+ default:
61863
+ reader.skipField();
61864
+ break;
61865
+ }
61866
+ }
61867
+ return msg;
61868
+ };
61869
+ /**
61870
+ * Serializes the message to binary data (in protobuf wire format).
61871
+ * @return {!Uint8Array}
61872
+ */
61873
+ proto.clarifai.api.MetricValue.prototype.serializeBinary = function () {
61874
+ var writer = new jspb.BinaryWriter();
61875
+ proto.clarifai.api.MetricValue.serializeBinaryToWriter(this, writer);
61876
+ return writer.getResultBuffer();
61877
+ };
61878
+ /**
61879
+ * Serializes the given message to binary data (in protobuf wire
61880
+ * format), writing to the given BinaryWriter.
61881
+ * @param {!proto.clarifai.api.MetricValue} message
61882
+ * @param {!jspb.BinaryWriter} writer
61883
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61884
+ */
61885
+ proto.clarifai.api.MetricValue.serializeBinaryToWriter = function (message, writer) {
61886
+ var f = undefined;
61887
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
61888
+ if (f != null) {
61889
+ writer.writeString(1, f);
61890
+ }
61891
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
61892
+ if (f != null) {
61893
+ writer.writeFloat(2, f);
61894
+ }
61895
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
61896
+ if (f != null) {
61897
+ writer.writeInt32(3, f);
61898
+ }
61899
+ };
61900
+ /**
61901
+ * optional string string_value = 1;
61902
+ * @return {string}
61903
+ */
61904
+ proto.clarifai.api.MetricValue.prototype.getStringValue = function () {
61905
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
61906
+ };
61907
+ /**
61908
+ * @param {string} value
61909
+ * @return {!proto.clarifai.api.MetricValue} returns this
61910
+ */
61911
+ proto.clarifai.api.MetricValue.prototype.setStringValue = function (value) {
61912
+ return jspb.Message.setOneofField(this, 1, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
61913
+ };
61914
+ /**
61915
+ * Clears the field making it undefined.
61916
+ * @return {!proto.clarifai.api.MetricValue} returns this
61917
+ */
61918
+ proto.clarifai.api.MetricValue.prototype.clearStringValue = function () {
61919
+ return jspb.Message.setOneofField(this, 1, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
61920
+ };
61921
+ /**
61922
+ * Returns whether this field is set.
61923
+ * @return {boolean}
61924
+ */
61925
+ proto.clarifai.api.MetricValue.prototype.hasStringValue = function () {
61926
+ return jspb.Message.getField(this, 1) != null;
61927
+ };
61928
+ /**
61929
+ * optional float float_value = 2;
61930
+ * @return {number}
61931
+ */
61932
+ proto.clarifai.api.MetricValue.prototype.getFloatValue = function () {
61933
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
61934
+ };
61935
+ /**
61936
+ * @param {number} value
61937
+ * @return {!proto.clarifai.api.MetricValue} returns this
61938
+ */
61939
+ proto.clarifai.api.MetricValue.prototype.setFloatValue = function (value) {
61940
+ return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
61941
+ };
61942
+ /**
61943
+ * Clears the field making it undefined.
61944
+ * @return {!proto.clarifai.api.MetricValue} returns this
61945
+ */
61946
+ proto.clarifai.api.MetricValue.prototype.clearFloatValue = function () {
61947
+ return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
61948
+ };
61949
+ /**
61950
+ * Returns whether this field is set.
61951
+ * @return {boolean}
61952
+ */
61953
+ proto.clarifai.api.MetricValue.prototype.hasFloatValue = function () {
61954
+ return jspb.Message.getField(this, 2) != null;
61955
+ };
61956
+ /**
61957
+ * optional int32 int_value = 3;
61958
+ * @return {number}
61959
+ */
61960
+ proto.clarifai.api.MetricValue.prototype.getIntValue = function () {
61961
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
61962
+ };
61963
+ /**
61964
+ * @param {number} value
61965
+ * @return {!proto.clarifai.api.MetricValue} returns this
61966
+ */
61967
+ proto.clarifai.api.MetricValue.prototype.setIntValue = function (value) {
61968
+ return jspb.Message.setOneofField(this, 3, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
61969
+ };
61970
+ /**
61971
+ * Clears the field making it undefined.
61972
+ * @return {!proto.clarifai.api.MetricValue} returns this
61973
+ */
61974
+ proto.clarifai.api.MetricValue.prototype.clearIntValue = function () {
61975
+ return jspb.Message.setOneofField(this, 3, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
61976
+ };
61977
+ /**
61978
+ * Returns whether this field is set.
61979
+ * @return {boolean}
61980
+ */
61981
+ proto.clarifai.api.MetricValue.prototype.hasIntValue = function () {
61982
+ return jspb.Message.getField(this, 3) != null;
61983
+ };
61984
+ if (jspb.Message.GENERATE_TO_OBJECT) {
61985
+ /**
61986
+ * Creates an object representation of this proto.
61987
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
61988
+ * Optional fields that are not set will be set to undefined.
61989
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
61990
+ * For the list of reserved names please see:
61991
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
61992
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
61993
+ * JSPB instance for transitional soy proto support:
61994
+ * http://goto/soy-param-migration
61995
+ * @return {!Object}
61996
+ */
61997
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.toObject = function (opt_includeInstance) {
61998
+ return proto.clarifai.api.ArgoOrchestrationSpec.toObject(opt_includeInstance, this);
61999
+ };
62000
+ /**
62001
+ * Static version of the {@see toObject} method.
62002
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
62003
+ * the JSPB instance for transitional soy proto support:
62004
+ * http://goto/soy-param-migration
62005
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The msg instance to transform.
62006
+ * @return {!Object}
62007
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62008
+ */
62009
+ proto.clarifai.api.ArgoOrchestrationSpec.toObject = function (includeInstance, msg) {
62010
+ var f, obj = {
62011
+ apiVersion: jspb.Message.getFieldWithDefault(msg, 2, ""),
62012
+ specJson: jspb.Message.getFieldWithDefault(msg, 3, "")
62013
+ };
62014
+ if (includeInstance) {
62015
+ obj.$jspbMessageInstance = msg;
62016
+ }
62017
+ return obj;
62018
+ };
62019
+ }
62020
+ /**
62021
+ * Deserializes binary data (in protobuf wire format).
62022
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
62023
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec}
62024
+ */
62025
+ proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinary = function (bytes) {
62026
+ var reader = new jspb.BinaryReader(bytes);
62027
+ var msg = new proto.clarifai.api.ArgoOrchestrationSpec;
62028
+ return proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader(msg, reader);
62029
+ };
62030
+ /**
62031
+ * Deserializes binary data (in protobuf wire format) from the
62032
+ * given reader into the given message object.
62033
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The message object to deserialize into.
62034
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
62035
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec}
62036
+ */
62037
+ proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader = function (msg, reader) {
62038
+ while (reader.nextField()) {
62039
+ if (reader.isEndGroup()) {
62040
+ break;
62041
+ }
62042
+ var field = reader.getFieldNumber();
62043
+ switch (field) {
62044
+ case 2:
62045
+ var value = /** @type {string} */ (reader.readString());
62046
+ msg.setApiVersion(value);
62047
+ break;
62048
+ case 3:
62049
+ var value = /** @type {string} */ (reader.readString());
62050
+ msg.setSpecJson(value);
62051
+ break;
62052
+ default:
62053
+ reader.skipField();
62054
+ break;
62055
+ }
62056
+ }
62057
+ return msg;
62058
+ };
62059
+ /**
62060
+ * Serializes the message to binary data (in protobuf wire format).
62061
+ * @return {!Uint8Array}
62062
+ */
62063
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.serializeBinary = function () {
62064
+ var writer = new jspb.BinaryWriter();
62065
+ proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter(this, writer);
62066
+ return writer.getResultBuffer();
62067
+ };
62068
+ /**
62069
+ * Serializes the given message to binary data (in protobuf wire
62070
+ * format), writing to the given BinaryWriter.
62071
+ * @param {!proto.clarifai.api.ArgoOrchestrationSpec} message
62072
+ * @param {!jspb.BinaryWriter} writer
62073
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62074
+ */
62075
+ proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter = function (message, writer) {
62076
+ var f = undefined;
62077
+ f = message.getApiVersion();
62078
+ if (f.length > 0) {
62079
+ writer.writeString(2, f);
62080
+ }
62081
+ f = message.getSpecJson();
62082
+ if (f.length > 0) {
62083
+ writer.writeString(3, f);
62084
+ }
62085
+ };
62086
+ /**
62087
+ * optional string api_version = 2;
62088
+ * @return {string}
62089
+ */
62090
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.getApiVersion = function () {
62091
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
62092
+ };
62093
+ /**
62094
+ * @param {string} value
62095
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
62096
+ */
62097
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.setApiVersion = function (value) {
62098
+ return jspb.Message.setProto3StringField(this, 2, value);
62099
+ };
62100
+ /**
62101
+ * optional string spec_json = 3;
62102
+ * @return {string}
62103
+ */
62104
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.getSpecJson = function () {
62105
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
62106
+ };
62107
+ /**
62108
+ * @param {string} value
62109
+ * @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
62110
+ */
62111
+ proto.clarifai.api.ArgoOrchestrationSpec.prototype.setSpecJson = function (value) {
62112
+ return jspb.Message.setProto3StringField(this, 3, value);
62113
+ };
62114
+ /**
62115
+ * Oneof group definitions for this message. Each group defines the field
62116
+ * numbers belonging to that group. When of these fields' value is set, all
62117
+ * other fields in the group are cleared. During deserialization, if multiple
62118
+ * fields are encountered for a group, only the last value seen will be kept.
62119
+ * @private {!Array<!Array<number>>}
62120
+ * @const
62121
+ */
62122
+ proto.clarifai.api.OrchestrationSpec.oneofGroups_ = [[1]];
62123
+ /**
62124
+ * @enum {number}
62125
+ */
62126
+ proto.clarifai.api.OrchestrationSpec.OrchestrationCase = {
62127
+ ORCHESTRATION_NOT_SET: 0,
62128
+ ARGO_ORCHESTRATION_SPEC: 1
62129
+ };
62130
+ /**
62131
+ * @return {proto.clarifai.api.OrchestrationSpec.OrchestrationCase}
62132
+ */
62133
+ proto.clarifai.api.OrchestrationSpec.prototype.getOrchestrationCase = function () {
62134
+ return /** @type {proto.clarifai.api.OrchestrationSpec.OrchestrationCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0]));
62135
+ };
62136
+ if (jspb.Message.GENERATE_TO_OBJECT) {
62137
+ /**
62138
+ * Creates an object representation of this proto.
62139
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
62140
+ * Optional fields that are not set will be set to undefined.
62141
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
62142
+ * For the list of reserved names please see:
62143
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
62144
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
62145
+ * JSPB instance for transitional soy proto support:
62146
+ * http://goto/soy-param-migration
62147
+ * @return {!Object}
62148
+ */
62149
+ proto.clarifai.api.OrchestrationSpec.prototype.toObject = function (opt_includeInstance) {
62150
+ return proto.clarifai.api.OrchestrationSpec.toObject(opt_includeInstance, this);
62151
+ };
62152
+ /**
62153
+ * Static version of the {@see toObject} method.
62154
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
62155
+ * the JSPB instance for transitional soy proto support:
62156
+ * http://goto/soy-param-migration
62157
+ * @param {!proto.clarifai.api.OrchestrationSpec} msg The msg instance to transform.
62158
+ * @return {!Object}
62159
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62160
+ */
62161
+ proto.clarifai.api.OrchestrationSpec.toObject = function (includeInstance, msg) {
62162
+ var f, obj = {
62163
+ argoOrchestrationSpec: (f = msg.getArgoOrchestrationSpec()) && proto.clarifai.api.ArgoOrchestrationSpec.toObject(includeInstance, f)
62164
+ };
62165
+ if (includeInstance) {
62166
+ obj.$jspbMessageInstance = msg;
62167
+ }
62168
+ return obj;
62169
+ };
62170
+ }
62171
+ /**
62172
+ * Deserializes binary data (in protobuf wire format).
62173
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
62174
+ * @return {!proto.clarifai.api.OrchestrationSpec}
62175
+ */
62176
+ proto.clarifai.api.OrchestrationSpec.deserializeBinary = function (bytes) {
62177
+ var reader = new jspb.BinaryReader(bytes);
62178
+ var msg = new proto.clarifai.api.OrchestrationSpec;
62179
+ return proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader(msg, reader);
62180
+ };
62181
+ /**
62182
+ * Deserializes binary data (in protobuf wire format) from the
62183
+ * given reader into the given message object.
62184
+ * @param {!proto.clarifai.api.OrchestrationSpec} msg The message object to deserialize into.
62185
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
62186
+ * @return {!proto.clarifai.api.OrchestrationSpec}
62187
+ */
62188
+ proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader = function (msg, reader) {
62189
+ while (reader.nextField()) {
62190
+ if (reader.isEndGroup()) {
62191
+ break;
62192
+ }
62193
+ var field = reader.getFieldNumber();
62194
+ switch (field) {
62195
+ case 1:
62196
+ var value = new proto.clarifai.api.ArgoOrchestrationSpec;
62197
+ reader.readMessage(value, proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader);
62198
+ msg.setArgoOrchestrationSpec(value);
62199
+ break;
62200
+ default:
62201
+ reader.skipField();
62202
+ break;
62203
+ }
62204
+ }
62205
+ return msg;
62206
+ };
62207
+ /**
62208
+ * Serializes the message to binary data (in protobuf wire format).
62209
+ * @return {!Uint8Array}
62210
+ */
62211
+ proto.clarifai.api.OrchestrationSpec.prototype.serializeBinary = function () {
62212
+ var writer = new jspb.BinaryWriter();
62213
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter(this, writer);
62214
+ return writer.getResultBuffer();
62215
+ };
62216
+ /**
62217
+ * Serializes the given message to binary data (in protobuf wire
62218
+ * format), writing to the given BinaryWriter.
62219
+ * @param {!proto.clarifai.api.OrchestrationSpec} message
62220
+ * @param {!jspb.BinaryWriter} writer
62221
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62222
+ */
62223
+ proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter = function (message, writer) {
62224
+ var f = undefined;
62225
+ f = message.getArgoOrchestrationSpec();
62226
+ if (f != null) {
62227
+ writer.writeMessage(1, f, proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter);
62228
+ }
62229
+ };
62230
+ /**
62231
+ * optional ArgoOrchestrationSpec argo_orchestration_spec = 1;
62232
+ * @return {?proto.clarifai.api.ArgoOrchestrationSpec}
62233
+ */
62234
+ proto.clarifai.api.OrchestrationSpec.prototype.getArgoOrchestrationSpec = function () {
62235
+ return /** @type{?proto.clarifai.api.ArgoOrchestrationSpec} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationSpec, 1));
62236
+ };
62237
+ /**
62238
+ * @param {?proto.clarifai.api.ArgoOrchestrationSpec|undefined} value
62239
+ * @return {!proto.clarifai.api.OrchestrationSpec} returns this
62240
+ */
62241
+ proto.clarifai.api.OrchestrationSpec.prototype.setArgoOrchestrationSpec = function (value) {
62242
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0], value);
62243
+ };
62244
+ /**
62245
+ * Clears the message field making it undefined.
62246
+ * @return {!proto.clarifai.api.OrchestrationSpec} returns this
62247
+ */
62248
+ proto.clarifai.api.OrchestrationSpec.prototype.clearArgoOrchestrationSpec = function () {
62249
+ return this.setArgoOrchestrationSpec(undefined);
62250
+ };
62251
+ /**
62252
+ * Returns whether this field is set.
62253
+ * @return {boolean}
62254
+ */
62255
+ proto.clarifai.api.OrchestrationSpec.prototype.hasArgoOrchestrationSpec = function () {
62256
+ return jspb.Message.getField(this, 1) != null;
62257
+ };
62258
+ if (jspb.Message.GENERATE_TO_OBJECT) {
62259
+ /**
62260
+ * Creates an object representation of this proto.
62261
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
62262
+ * Optional fields that are not set will be set to undefined.
62263
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
62264
+ * For the list of reserved names please see:
62265
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
62266
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
62267
+ * JSPB instance for transitional soy proto support:
62268
+ * http://goto/soy-param-migration
62269
+ * @return {!Object}
62270
+ */
62271
+ proto.clarifai.api.PipelineVersion.prototype.toObject = function (opt_includeInstance) {
62272
+ return proto.clarifai.api.PipelineVersion.toObject(opt_includeInstance, this);
62273
+ };
62274
+ /**
62275
+ * Static version of the {@see toObject} method.
62276
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
62277
+ * the JSPB instance for transitional soy proto support:
62278
+ * http://goto/soy-param-migration
62279
+ * @param {!proto.clarifai.api.PipelineVersion} msg The msg instance to transform.
62280
+ * @return {!Object}
62281
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62282
+ */
62283
+ proto.clarifai.api.PipelineVersion.toObject = function (includeInstance, msg) {
62284
+ var f, obj = {
62285
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
62286
+ appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
62287
+ userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
62288
+ orchestrationSpec: (f = msg.getOrchestrationSpec()) && proto.clarifai.api.OrchestrationSpec.toObject(includeInstance, f),
62289
+ pipelineId: jspb.Message.getFieldWithDefault(msg, 5, ""),
62290
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
62291
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
62292
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
62293
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
62294
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
62295
+ };
62296
+ if (includeInstance) {
62297
+ obj.$jspbMessageInstance = msg;
62298
+ }
62299
+ return obj;
62300
+ };
62301
+ }
62302
+ /**
62303
+ * Deserializes binary data (in protobuf wire format).
62304
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
62305
+ * @return {!proto.clarifai.api.PipelineVersion}
62306
+ */
62307
+ proto.clarifai.api.PipelineVersion.deserializeBinary = function (bytes) {
62308
+ var reader = new jspb.BinaryReader(bytes);
62309
+ var msg = new proto.clarifai.api.PipelineVersion;
62310
+ return proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader(msg, reader);
62311
+ };
62312
+ /**
62313
+ * Deserializes binary data (in protobuf wire format) from the
62314
+ * given reader into the given message object.
62315
+ * @param {!proto.clarifai.api.PipelineVersion} msg The message object to deserialize into.
62316
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
62317
+ * @return {!proto.clarifai.api.PipelineVersion}
62318
+ */
62319
+ proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader = function (msg, reader) {
62320
+ while (reader.nextField()) {
62321
+ if (reader.isEndGroup()) {
62322
+ break;
62323
+ }
62324
+ var field = reader.getFieldNumber();
62325
+ switch (field) {
62326
+ case 1:
62327
+ var value = /** @type {string} */ (reader.readString());
62328
+ msg.setId(value);
62329
+ break;
62330
+ case 2:
62331
+ var value = /** @type {string} */ (reader.readString());
62332
+ msg.setAppId(value);
62333
+ break;
62334
+ case 3:
62335
+ var value = /** @type {string} */ (reader.readString());
62336
+ msg.setUserId(value);
62337
+ break;
62338
+ case 4:
62339
+ var value = new proto.clarifai.api.OrchestrationSpec;
62340
+ reader.readMessage(value, proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader);
62341
+ msg.setOrchestrationSpec(value);
62342
+ break;
62343
+ case 5:
62344
+ var value = /** @type {string} */ (reader.readString());
62345
+ msg.setPipelineId(value);
62346
+ break;
62347
+ case 6:
62348
+ var value = /** @type {string} */ (reader.readString());
62349
+ msg.setDescription(value);
62350
+ break;
62351
+ case 7:
62352
+ var value = new proto.clarifai.api.Visibility;
62353
+ reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
62354
+ msg.setVisibility(value);
62355
+ break;
62356
+ case 8:
62357
+ var value = new google_protobuf_struct_pb.Struct;
62358
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
62359
+ msg.setMetadata(value);
62360
+ break;
62361
+ case 9:
62362
+ var value = new google_protobuf_timestamp_pb.Timestamp;
62363
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
62364
+ msg.setCreatedAt(value);
62365
+ break;
62366
+ case 10:
62367
+ var value = new google_protobuf_timestamp_pb.Timestamp;
62368
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
62369
+ msg.setModifiedAt(value);
62370
+ break;
62371
+ default:
62372
+ reader.skipField();
62373
+ break;
62374
+ }
62375
+ }
62376
+ return msg;
62377
+ };
62378
+ /**
62379
+ * Serializes the message to binary data (in protobuf wire format).
62380
+ * @return {!Uint8Array}
62381
+ */
62382
+ proto.clarifai.api.PipelineVersion.prototype.serializeBinary = function () {
62383
+ var writer = new jspb.BinaryWriter();
62384
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter(this, writer);
62385
+ return writer.getResultBuffer();
62386
+ };
62387
+ /**
62388
+ * Serializes the given message to binary data (in protobuf wire
62389
+ * format), writing to the given BinaryWriter.
62390
+ * @param {!proto.clarifai.api.PipelineVersion} message
62391
+ * @param {!jspb.BinaryWriter} writer
62392
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62393
+ */
62394
+ proto.clarifai.api.PipelineVersion.serializeBinaryToWriter = function (message, writer) {
62395
+ var f = undefined;
62396
+ f = message.getId();
62397
+ if (f.length > 0) {
62398
+ writer.writeString(1, f);
62399
+ }
62400
+ f = message.getAppId();
62401
+ if (f.length > 0) {
62402
+ writer.writeString(2, f);
62403
+ }
62404
+ f = message.getUserId();
62405
+ if (f.length > 0) {
62406
+ writer.writeString(3, f);
62407
+ }
62408
+ f = message.getOrchestrationSpec();
62409
+ if (f != null) {
62410
+ writer.writeMessage(4, f, proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter);
62411
+ }
62412
+ f = message.getPipelineId();
62413
+ if (f.length > 0) {
62414
+ writer.writeString(5, f);
62415
+ }
62416
+ f = message.getDescription();
62417
+ if (f.length > 0) {
62418
+ writer.writeString(6, f);
62419
+ }
62420
+ f = message.getVisibility();
62421
+ if (f != null) {
62422
+ writer.writeMessage(7, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
62423
+ }
62424
+ f = message.getMetadata();
62425
+ if (f != null) {
62426
+ writer.writeMessage(8, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
62427
+ }
62428
+ f = message.getCreatedAt();
62429
+ if (f != null) {
62430
+ writer.writeMessage(9, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
62431
+ }
62432
+ f = message.getModifiedAt();
62433
+ if (f != null) {
62434
+ writer.writeMessage(10, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
62435
+ }
62436
+ };
62437
+ /**
62438
+ * optional string id = 1;
62439
+ * @return {string}
62440
+ */
62441
+ proto.clarifai.api.PipelineVersion.prototype.getId = function () {
62442
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
62443
+ };
62444
+ /**
62445
+ * @param {string} value
62446
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62447
+ */
62448
+ proto.clarifai.api.PipelineVersion.prototype.setId = function (value) {
62449
+ return jspb.Message.setProto3StringField(this, 1, value);
62450
+ };
62451
+ /**
62452
+ * optional string app_id = 2;
62453
+ * @return {string}
62454
+ */
62455
+ proto.clarifai.api.PipelineVersion.prototype.getAppId = function () {
62456
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
62457
+ };
62458
+ /**
62459
+ * @param {string} value
62460
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62461
+ */
62462
+ proto.clarifai.api.PipelineVersion.prototype.setAppId = function (value) {
62463
+ return jspb.Message.setProto3StringField(this, 2, value);
62464
+ };
62465
+ /**
62466
+ * optional string user_id = 3;
62467
+ * @return {string}
62468
+ */
62469
+ proto.clarifai.api.PipelineVersion.prototype.getUserId = function () {
62470
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
62471
+ };
62472
+ /**
62473
+ * @param {string} value
62474
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62475
+ */
62476
+ proto.clarifai.api.PipelineVersion.prototype.setUserId = function (value) {
62477
+ return jspb.Message.setProto3StringField(this, 3, value);
62478
+ };
62479
+ /**
62480
+ * optional OrchestrationSpec orchestration_spec = 4;
62481
+ * @return {?proto.clarifai.api.OrchestrationSpec}
62482
+ */
62483
+ proto.clarifai.api.PipelineVersion.prototype.getOrchestrationSpec = function () {
62484
+ return /** @type{?proto.clarifai.api.OrchestrationSpec} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationSpec, 4));
62485
+ };
62486
+ /**
62487
+ * @param {?proto.clarifai.api.OrchestrationSpec|undefined} value
62488
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62489
+ */
62490
+ proto.clarifai.api.PipelineVersion.prototype.setOrchestrationSpec = function (value) {
62491
+ return jspb.Message.setWrapperField(this, 4, value);
62492
+ };
62493
+ /**
62494
+ * Clears the message field making it undefined.
62495
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62496
+ */
62497
+ proto.clarifai.api.PipelineVersion.prototype.clearOrchestrationSpec = function () {
62498
+ return this.setOrchestrationSpec(undefined);
62499
+ };
62500
+ /**
62501
+ * Returns whether this field is set.
62502
+ * @return {boolean}
62503
+ */
62504
+ proto.clarifai.api.PipelineVersion.prototype.hasOrchestrationSpec = function () {
62505
+ return jspb.Message.getField(this, 4) != null;
62506
+ };
62507
+ /**
62508
+ * optional string pipeline_id = 5;
62509
+ * @return {string}
62510
+ */
62511
+ proto.clarifai.api.PipelineVersion.prototype.getPipelineId = function () {
62512
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
62513
+ };
62514
+ /**
62515
+ * @param {string} value
62516
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62517
+ */
62518
+ proto.clarifai.api.PipelineVersion.prototype.setPipelineId = function (value) {
62519
+ return jspb.Message.setProto3StringField(this, 5, value);
62520
+ };
62521
+ /**
62522
+ * optional string description = 6;
62523
+ * @return {string}
62524
+ */
62525
+ proto.clarifai.api.PipelineVersion.prototype.getDescription = function () {
62526
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
62527
+ };
62528
+ /**
62529
+ * @param {string} value
62530
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62531
+ */
62532
+ proto.clarifai.api.PipelineVersion.prototype.setDescription = function (value) {
62533
+ return jspb.Message.setProto3StringField(this, 6, value);
62534
+ };
62535
+ /**
62536
+ * optional Visibility visibility = 7;
62537
+ * @return {?proto.clarifai.api.Visibility}
62538
+ */
62539
+ proto.clarifai.api.PipelineVersion.prototype.getVisibility = function () {
62540
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7));
62541
+ };
62542
+ /**
62543
+ * @param {?proto.clarifai.api.Visibility|undefined} value
62544
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62545
+ */
62546
+ proto.clarifai.api.PipelineVersion.prototype.setVisibility = function (value) {
62547
+ return jspb.Message.setWrapperField(this, 7, value);
62548
+ };
62549
+ /**
62550
+ * Clears the message field making it undefined.
62551
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62552
+ */
62553
+ proto.clarifai.api.PipelineVersion.prototype.clearVisibility = function () {
62554
+ return this.setVisibility(undefined);
62555
+ };
62556
+ /**
62557
+ * Returns whether this field is set.
62558
+ * @return {boolean}
62559
+ */
62560
+ proto.clarifai.api.PipelineVersion.prototype.hasVisibility = function () {
62561
+ return jspb.Message.getField(this, 7) != null;
62562
+ };
62563
+ /**
62564
+ * optional google.protobuf.Struct metadata = 8;
62565
+ * @return {?proto.google.protobuf.Struct}
62566
+ */
62567
+ proto.clarifai.api.PipelineVersion.prototype.getMetadata = function () {
62568
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8));
62569
+ };
62570
+ /**
62571
+ * @param {?proto.google.protobuf.Struct|undefined} value
62572
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62573
+ */
62574
+ proto.clarifai.api.PipelineVersion.prototype.setMetadata = function (value) {
62575
+ return jspb.Message.setWrapperField(this, 8, value);
62576
+ };
62577
+ /**
62578
+ * Clears the message field making it undefined.
62579
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62580
+ */
62581
+ proto.clarifai.api.PipelineVersion.prototype.clearMetadata = function () {
62582
+ return this.setMetadata(undefined);
62583
+ };
62584
+ /**
62585
+ * Returns whether this field is set.
62586
+ * @return {boolean}
62587
+ */
62588
+ proto.clarifai.api.PipelineVersion.prototype.hasMetadata = function () {
62589
+ return jspb.Message.getField(this, 8) != null;
62590
+ };
62591
+ /**
62592
+ * optional google.protobuf.Timestamp created_at = 9;
62593
+ * @return {?proto.google.protobuf.Timestamp}
62594
+ */
62595
+ proto.clarifai.api.PipelineVersion.prototype.getCreatedAt = function () {
62596
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
62597
+ };
62598
+ /**
62599
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
62600
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62601
+ */
62602
+ proto.clarifai.api.PipelineVersion.prototype.setCreatedAt = function (value) {
62603
+ return jspb.Message.setWrapperField(this, 9, value);
62604
+ };
62605
+ /**
62606
+ * Clears the message field making it undefined.
62607
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62608
+ */
62609
+ proto.clarifai.api.PipelineVersion.prototype.clearCreatedAt = function () {
62610
+ return this.setCreatedAt(undefined);
62611
+ };
62612
+ /**
62613
+ * Returns whether this field is set.
62614
+ * @return {boolean}
62615
+ */
62616
+ proto.clarifai.api.PipelineVersion.prototype.hasCreatedAt = function () {
62617
+ return jspb.Message.getField(this, 9) != null;
62618
+ };
62619
+ /**
62620
+ * optional google.protobuf.Timestamp modified_at = 10;
62621
+ * @return {?proto.google.protobuf.Timestamp}
62622
+ */
62623
+ proto.clarifai.api.PipelineVersion.prototype.getModifiedAt = function () {
62624
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
62625
+ };
62626
+ /**
62627
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
62628
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62629
+ */
62630
+ proto.clarifai.api.PipelineVersion.prototype.setModifiedAt = function (value) {
62631
+ return jspb.Message.setWrapperField(this, 10, value);
62632
+ };
62633
+ /**
62634
+ * Clears the message field making it undefined.
62635
+ * @return {!proto.clarifai.api.PipelineVersion} returns this
62636
+ */
62637
+ proto.clarifai.api.PipelineVersion.prototype.clearModifiedAt = function () {
62638
+ return this.setModifiedAt(undefined);
62639
+ };
62640
+ /**
62641
+ * Returns whether this field is set.
62642
+ * @return {boolean}
62643
+ */
62644
+ proto.clarifai.api.PipelineVersion.prototype.hasModifiedAt = function () {
62645
+ return jspb.Message.getField(this, 10) != null;
62646
+ };
62647
+ /**
62648
+ * Oneof group definitions for this message. Each group defines the field
62649
+ * numbers belonging to that group. When of these fields' value is set, all
62650
+ * other fields in the group are cleared. During deserialization, if multiple
62651
+ * fields are encountered for a group, only the last value seen will be kept.
62652
+ * @private {!Array<!Array<number>>}
62653
+ * @const
62654
+ */
62655
+ proto.clarifai.api.OrchestrationStatus.oneofGroups_ = [[1]];
62656
+ /**
62657
+ * @enum {number}
62658
+ */
62659
+ proto.clarifai.api.OrchestrationStatus.StatusDetailsCase = {
62660
+ STATUS_DETAILS_NOT_SET: 0,
62661
+ ARGO_STATUS: 1
62662
+ };
62663
+ /**
62664
+ * @return {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase}
62665
+ */
62666
+ proto.clarifai.api.OrchestrationStatus.prototype.getStatusDetailsCase = function () {
62667
+ return /** @type {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0]));
62668
+ };
62669
+ if (jspb.Message.GENERATE_TO_OBJECT) {
62670
+ /**
62671
+ * Creates an object representation of this proto.
62672
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
62673
+ * Optional fields that are not set will be set to undefined.
62674
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
62675
+ * For the list of reserved names please see:
62676
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
62677
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
62678
+ * JSPB instance for transitional soy proto support:
62679
+ * http://goto/soy-param-migration
62680
+ * @return {!Object}
62681
+ */
62682
+ proto.clarifai.api.OrchestrationStatus.prototype.toObject = function (opt_includeInstance) {
62683
+ return proto.clarifai.api.OrchestrationStatus.toObject(opt_includeInstance, this);
62684
+ };
62685
+ /**
62686
+ * Static version of the {@see toObject} method.
62687
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
62688
+ * the JSPB instance for transitional soy proto support:
62689
+ * http://goto/soy-param-migration
62690
+ * @param {!proto.clarifai.api.OrchestrationStatus} msg The msg instance to transform.
62691
+ * @return {!Object}
62692
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62693
+ */
62694
+ proto.clarifai.api.OrchestrationStatus.toObject = function (includeInstance, msg) {
62695
+ var f, obj = {
62696
+ argoStatus: (f = msg.getArgoStatus()) && proto.clarifai.api.ArgoOrchestrationStatus.toObject(includeInstance, f),
62697
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
62698
+ };
62699
+ if (includeInstance) {
62700
+ obj.$jspbMessageInstance = msg;
62701
+ }
62702
+ return obj;
62703
+ };
62704
+ }
62705
+ /**
62706
+ * Deserializes binary data (in protobuf wire format).
62707
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
62708
+ * @return {!proto.clarifai.api.OrchestrationStatus}
62709
+ */
62710
+ proto.clarifai.api.OrchestrationStatus.deserializeBinary = function (bytes) {
62711
+ var reader = new jspb.BinaryReader(bytes);
62712
+ var msg = new proto.clarifai.api.OrchestrationStatus;
62713
+ return proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader(msg, reader);
62714
+ };
62715
+ /**
62716
+ * Deserializes binary data (in protobuf wire format) from the
62717
+ * given reader into the given message object.
62718
+ * @param {!proto.clarifai.api.OrchestrationStatus} msg The message object to deserialize into.
62719
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
62720
+ * @return {!proto.clarifai.api.OrchestrationStatus}
62721
+ */
62722
+ proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader = function (msg, reader) {
62723
+ while (reader.nextField()) {
62724
+ if (reader.isEndGroup()) {
62725
+ break;
62726
+ }
62727
+ var field = reader.getFieldNumber();
62728
+ switch (field) {
62729
+ case 1:
62730
+ var value = new proto.clarifai.api.ArgoOrchestrationStatus;
62731
+ reader.readMessage(value, proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader);
62732
+ msg.setArgoStatus(value);
62733
+ break;
62734
+ case 2:
62735
+ var value = new proto_clarifai_api_status_status_pb.Status;
62736
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
62737
+ msg.setStatus(value);
62738
+ break;
62739
+ default:
62740
+ reader.skipField();
62741
+ break;
62742
+ }
62743
+ }
62744
+ return msg;
62745
+ };
62746
+ /**
62747
+ * Serializes the message to binary data (in protobuf wire format).
62748
+ * @return {!Uint8Array}
62749
+ */
62750
+ proto.clarifai.api.OrchestrationStatus.prototype.serializeBinary = function () {
62751
+ var writer = new jspb.BinaryWriter();
62752
+ proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter(this, writer);
62753
+ return writer.getResultBuffer();
62754
+ };
62755
+ /**
62756
+ * Serializes the given message to binary data (in protobuf wire
62757
+ * format), writing to the given BinaryWriter.
62758
+ * @param {!proto.clarifai.api.OrchestrationStatus} message
62759
+ * @param {!jspb.BinaryWriter} writer
62760
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62761
+ */
62762
+ proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter = function (message, writer) {
62763
+ var f = undefined;
62764
+ f = message.getArgoStatus();
62765
+ if (f != null) {
62766
+ writer.writeMessage(1, f, proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter);
62767
+ }
62768
+ f = message.getStatus();
62769
+ if (f != null) {
62770
+ writer.writeMessage(2, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
62771
+ }
62772
+ };
62773
+ /**
62774
+ * optional ArgoOrchestrationStatus argo_status = 1;
62775
+ * @return {?proto.clarifai.api.ArgoOrchestrationStatus}
62776
+ */
62777
+ proto.clarifai.api.OrchestrationStatus.prototype.getArgoStatus = function () {
62778
+ return /** @type{?proto.clarifai.api.ArgoOrchestrationStatus} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationStatus, 1));
62779
+ };
62780
+ /**
62781
+ * @param {?proto.clarifai.api.ArgoOrchestrationStatus|undefined} value
62782
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
62783
+ */
62784
+ proto.clarifai.api.OrchestrationStatus.prototype.setArgoStatus = function (value) {
62785
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0], value);
62786
+ };
62787
+ /**
62788
+ * Clears the message field making it undefined.
62789
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
62790
+ */
62791
+ proto.clarifai.api.OrchestrationStatus.prototype.clearArgoStatus = function () {
62792
+ return this.setArgoStatus(undefined);
62793
+ };
62794
+ /**
62795
+ * Returns whether this field is set.
62796
+ * @return {boolean}
62797
+ */
62798
+ proto.clarifai.api.OrchestrationStatus.prototype.hasArgoStatus = function () {
62799
+ return jspb.Message.getField(this, 1) != null;
62800
+ };
62801
+ /**
62802
+ * optional status.Status status = 2;
62803
+ * @return {?proto.clarifai.api.status.Status}
62804
+ */
62805
+ proto.clarifai.api.OrchestrationStatus.prototype.getStatus = function () {
62806
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
62807
+ };
62808
+ /**
62809
+ * @param {?proto.clarifai.api.status.Status|undefined} value
62810
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
62811
+ */
62812
+ proto.clarifai.api.OrchestrationStatus.prototype.setStatus = function (value) {
62813
+ return jspb.Message.setWrapperField(this, 2, value);
62814
+ };
62815
+ /**
62816
+ * Clears the message field making it undefined.
62817
+ * @return {!proto.clarifai.api.OrchestrationStatus} returns this
62818
+ */
62819
+ proto.clarifai.api.OrchestrationStatus.prototype.clearStatus = function () {
62820
+ return this.setStatus(undefined);
62821
+ };
62822
+ /**
62823
+ * Returns whether this field is set.
62824
+ * @return {boolean}
62825
+ */
62826
+ proto.clarifai.api.OrchestrationStatus.prototype.hasStatus = function () {
62827
+ return jspb.Message.getField(this, 2) != null;
62828
+ };
62829
+ if (jspb.Message.GENERATE_TO_OBJECT) {
62830
+ /**
62831
+ * Creates an object representation of this proto.
62832
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
62833
+ * Optional fields that are not set will be set to undefined.
62834
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
62835
+ * For the list of reserved names please see:
62836
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
62837
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
62838
+ * JSPB instance for transitional soy proto support:
62839
+ * http://goto/soy-param-migration
62840
+ * @return {!Object}
62841
+ */
62842
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.toObject = function (opt_includeInstance) {
62843
+ return proto.clarifai.api.ArgoOrchestrationStatus.toObject(opt_includeInstance, this);
62844
+ };
62845
+ /**
62846
+ * Static version of the {@see toObject} method.
62847
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
62848
+ * the JSPB instance for transitional soy proto support:
62849
+ * http://goto/soy-param-migration
62850
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The msg instance to transform.
62851
+ * @return {!Object}
62852
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62853
+ */
62854
+ proto.clarifai.api.ArgoOrchestrationStatus.toObject = function (includeInstance, msg) {
62855
+ var f, obj = {
62856
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
62857
+ };
62858
+ if (includeInstance) {
62859
+ obj.$jspbMessageInstance = msg;
62860
+ }
62861
+ return obj;
62862
+ };
62863
+ }
62864
+ /**
62865
+ * Deserializes binary data (in protobuf wire format).
62866
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
62867
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus}
62868
+ */
62869
+ proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinary = function (bytes) {
62870
+ var reader = new jspb.BinaryReader(bytes);
62871
+ var msg = new proto.clarifai.api.ArgoOrchestrationStatus;
62872
+ return proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader(msg, reader);
62873
+ };
62874
+ /**
62875
+ * Deserializes binary data (in protobuf wire format) from the
62876
+ * given reader into the given message object.
62877
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The message object to deserialize into.
62878
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
62879
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus}
62880
+ */
62881
+ proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader = function (msg, reader) {
62882
+ while (reader.nextField()) {
62883
+ if (reader.isEndGroup()) {
62884
+ break;
62885
+ }
62886
+ var field = reader.getFieldNumber();
62887
+ switch (field) {
62888
+ case 1:
62889
+ var value = /** @type {string} */ (reader.readString());
62890
+ msg.setStatus(value);
62891
+ break;
62892
+ default:
62893
+ reader.skipField();
62894
+ break;
62895
+ }
62896
+ }
62897
+ return msg;
62898
+ };
62899
+ /**
62900
+ * Serializes the message to binary data (in protobuf wire format).
62901
+ * @return {!Uint8Array}
62902
+ */
62903
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.serializeBinary = function () {
62904
+ var writer = new jspb.BinaryWriter();
62905
+ proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter(this, writer);
62906
+ return writer.getResultBuffer();
62907
+ };
62908
+ /**
62909
+ * Serializes the given message to binary data (in protobuf wire
62910
+ * format), writing to the given BinaryWriter.
62911
+ * @param {!proto.clarifai.api.ArgoOrchestrationStatus} message
62912
+ * @param {!jspb.BinaryWriter} writer
62913
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62914
+ */
62915
+ proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter = function (message, writer) {
62916
+ var f = undefined;
62917
+ f = message.getStatus();
62918
+ if (f.length > 0) {
62919
+ writer.writeString(1, f);
62920
+ }
62921
+ };
62922
+ /**
62923
+ * optional string status = 1;
62924
+ * @return {string}
62925
+ */
62926
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus = function () {
62927
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
62928
+ };
62929
+ /**
62930
+ * @param {string} value
62931
+ * @return {!proto.clarifai.api.ArgoOrchestrationStatus} returns this
62932
+ */
62933
+ proto.clarifai.api.ArgoOrchestrationStatus.prototype.setStatus = function (value) {
62934
+ return jspb.Message.setProto3StringField(this, 1, value);
62935
+ };
62936
+ /**
62937
+ * List of repeated fields within this message type.
62938
+ * @private {!Array<number>}
62939
+ * @const
62940
+ */
62941
+ proto.clarifai.api.PipelineVersionRun.repeatedFields_ = [3];
62942
+ if (jspb.Message.GENERATE_TO_OBJECT) {
62943
+ /**
62944
+ * Creates an object representation of this proto.
62945
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
62946
+ * Optional fields that are not set will be set to undefined.
62947
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
62948
+ * For the list of reserved names please see:
62949
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
62950
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
62951
+ * JSPB instance for transitional soy proto support:
62952
+ * http://goto/soy-param-migration
62953
+ * @return {!Object}
62954
+ */
62955
+ proto.clarifai.api.PipelineVersionRun.prototype.toObject = function (opt_includeInstance) {
62956
+ return proto.clarifai.api.PipelineVersionRun.toObject(opt_includeInstance, this);
62957
+ };
62958
+ /**
62959
+ * Static version of the {@see toObject} method.
62960
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
62961
+ * the JSPB instance for transitional soy proto support:
62962
+ * http://goto/soy-param-migration
62963
+ * @param {!proto.clarifai.api.PipelineVersionRun} msg The msg instance to transform.
62964
+ * @return {!Object}
62965
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62966
+ */
62967
+ proto.clarifai.api.PipelineVersionRun.toObject = function (includeInstance, msg) {
62968
+ var f, obj = {
62969
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
62970
+ pipelineVersion: (f = msg.getPipelineVersion()) && proto.clarifai.api.PipelineVersion.toObject(includeInstance, f),
62971
+ nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto.clarifai.api.Nodepool.toObject, includeInstance),
62972
+ orchestrationStatus: (f = msg.getOrchestrationStatus()) && proto.clarifai.api.OrchestrationStatus.toObject(includeInstance, f),
62973
+ userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
62974
+ appId: jspb.Message.getFieldWithDefault(msg, 6, "")
62975
+ };
62976
+ if (includeInstance) {
62977
+ obj.$jspbMessageInstance = msg;
62978
+ }
62979
+ return obj;
62980
+ };
62981
+ }
62982
+ /**
62983
+ * Deserializes binary data (in protobuf wire format).
62984
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
62985
+ * @return {!proto.clarifai.api.PipelineVersionRun}
62986
+ */
62987
+ proto.clarifai.api.PipelineVersionRun.deserializeBinary = function (bytes) {
62988
+ var reader = new jspb.BinaryReader(bytes);
62989
+ var msg = new proto.clarifai.api.PipelineVersionRun;
62990
+ return proto.clarifai.api.PipelineVersionRun.deserializeBinaryFromReader(msg, reader);
62991
+ };
62992
+ /**
62993
+ * Deserializes binary data (in protobuf wire format) from the
62994
+ * given reader into the given message object.
62995
+ * @param {!proto.clarifai.api.PipelineVersionRun} msg The message object to deserialize into.
62996
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
62997
+ * @return {!proto.clarifai.api.PipelineVersionRun}
62998
+ */
62999
+ proto.clarifai.api.PipelineVersionRun.deserializeBinaryFromReader = function (msg, reader) {
63000
+ while (reader.nextField()) {
63001
+ if (reader.isEndGroup()) {
63002
+ break;
63003
+ }
63004
+ var field = reader.getFieldNumber();
63005
+ switch (field) {
63006
+ case 1:
63007
+ var value = /** @type {string} */ (reader.readString());
63008
+ msg.setId(value);
63009
+ break;
63010
+ case 2:
63011
+ var value = new proto.clarifai.api.PipelineVersion;
63012
+ reader.readMessage(value, proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader);
63013
+ msg.setPipelineVersion(value);
63014
+ break;
63015
+ case 3:
63016
+ var value = new proto.clarifai.api.Nodepool;
63017
+ reader.readMessage(value, proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
63018
+ msg.addNodepools(value);
63019
+ break;
63020
+ case 4:
63021
+ var value = new proto.clarifai.api.OrchestrationStatus;
63022
+ reader.readMessage(value, proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader);
63023
+ msg.setOrchestrationStatus(value);
63024
+ break;
63025
+ case 5:
63026
+ var value = /** @type {string} */ (reader.readString());
63027
+ msg.setUserId(value);
63028
+ break;
63029
+ case 6:
63030
+ var value = /** @type {string} */ (reader.readString());
63031
+ msg.setAppId(value);
63032
+ break;
63033
+ default:
63034
+ reader.skipField();
63035
+ break;
63036
+ }
63037
+ }
63038
+ return msg;
63039
+ };
63040
+ /**
63041
+ * Serializes the message to binary data (in protobuf wire format).
63042
+ * @return {!Uint8Array}
63043
+ */
63044
+ proto.clarifai.api.PipelineVersionRun.prototype.serializeBinary = function () {
63045
+ var writer = new jspb.BinaryWriter();
63046
+ proto.clarifai.api.PipelineVersionRun.serializeBinaryToWriter(this, writer);
63047
+ return writer.getResultBuffer();
63048
+ };
63049
+ /**
63050
+ * Serializes the given message to binary data (in protobuf wire
63051
+ * format), writing to the given BinaryWriter.
63052
+ * @param {!proto.clarifai.api.PipelineVersionRun} message
63053
+ * @param {!jspb.BinaryWriter} writer
63054
+ * @suppress {unusedLocalVariables} f is only used for nested messages
63055
+ */
63056
+ proto.clarifai.api.PipelineVersionRun.serializeBinaryToWriter = function (message, writer) {
63057
+ var f = undefined;
63058
+ f = message.getId();
63059
+ if (f.length > 0) {
63060
+ writer.writeString(1, f);
63061
+ }
63062
+ f = message.getPipelineVersion();
63063
+ if (f != null) {
63064
+ writer.writeMessage(2, f, proto.clarifai.api.PipelineVersion.serializeBinaryToWriter);
63065
+ }
63066
+ f = message.getNodepoolsList();
63067
+ if (f.length > 0) {
63068
+ writer.writeRepeatedMessage(3, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
63069
+ }
63070
+ f = message.getOrchestrationStatus();
63071
+ if (f != null) {
63072
+ writer.writeMessage(4, f, proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter);
63073
+ }
63074
+ f = message.getUserId();
63075
+ if (f.length > 0) {
63076
+ writer.writeString(5, f);
63077
+ }
63078
+ f = message.getAppId();
63079
+ if (f.length > 0) {
63080
+ writer.writeString(6, f);
63081
+ }
63082
+ };
63083
+ /**
63084
+ * optional string id = 1;
63085
+ * @return {string}
63086
+ */
63087
+ proto.clarifai.api.PipelineVersionRun.prototype.getId = function () {
63088
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
63089
+ };
63090
+ /**
63091
+ * @param {string} value
63092
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
63093
+ */
63094
+ proto.clarifai.api.PipelineVersionRun.prototype.setId = function (value) {
63095
+ return jspb.Message.setProto3StringField(this, 1, value);
63096
+ };
63097
+ /**
63098
+ * optional PipelineVersion pipeline_version = 2;
63099
+ * @return {?proto.clarifai.api.PipelineVersion}
63100
+ */
63101
+ proto.clarifai.api.PipelineVersionRun.prototype.getPipelineVersion = function () {
63102
+ return /** @type{?proto.clarifai.api.PipelineVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.PipelineVersion, 2));
63103
+ };
63104
+ /**
63105
+ * @param {?proto.clarifai.api.PipelineVersion|undefined} value
63106
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
63107
+ */
63108
+ proto.clarifai.api.PipelineVersionRun.prototype.setPipelineVersion = function (value) {
63109
+ return jspb.Message.setWrapperField(this, 2, value);
63110
+ };
63111
+ /**
63112
+ * Clears the message field making it undefined.
63113
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
63114
+ */
63115
+ proto.clarifai.api.PipelineVersionRun.prototype.clearPipelineVersion = function () {
63116
+ return this.setPipelineVersion(undefined);
63117
+ };
63118
+ /**
63119
+ * Returns whether this field is set.
63120
+ * @return {boolean}
63121
+ */
63122
+ proto.clarifai.api.PipelineVersionRun.prototype.hasPipelineVersion = function () {
63123
+ return jspb.Message.getField(this, 2) != null;
63124
+ };
63125
+ /**
63126
+ * repeated Nodepool nodepools = 3;
63127
+ * @return {!Array<!proto.clarifai.api.Nodepool>}
63128
+ */
63129
+ proto.clarifai.api.PipelineVersionRun.prototype.getNodepoolsList = function () {
63130
+ return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Nodepool, 3));
63131
+ };
63132
+ /**
63133
+ * @param {!Array<!proto.clarifai.api.Nodepool>} value
63134
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
63135
+ */
63136
+ proto.clarifai.api.PipelineVersionRun.prototype.setNodepoolsList = function (value) {
63137
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
63138
+ };
63139
+ /**
63140
+ * @param {!proto.clarifai.api.Nodepool=} opt_value
63141
+ * @param {number=} opt_index
63142
+ * @return {!proto.clarifai.api.Nodepool}
63143
+ */
63144
+ proto.clarifai.api.PipelineVersionRun.prototype.addNodepools = function (opt_value, opt_index) {
63145
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Nodepool, opt_index);
63146
+ };
63147
+ /**
63148
+ * Clears the list making it empty but non-null.
63149
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
63150
+ */
63151
+ proto.clarifai.api.PipelineVersionRun.prototype.clearNodepoolsList = function () {
63152
+ return this.setNodepoolsList([]);
63153
+ };
63154
+ /**
63155
+ * optional OrchestrationStatus orchestration_status = 4;
63156
+ * @return {?proto.clarifai.api.OrchestrationStatus}
63157
+ */
63158
+ proto.clarifai.api.PipelineVersionRun.prototype.getOrchestrationStatus = function () {
63159
+ return /** @type{?proto.clarifai.api.OrchestrationStatus} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationStatus, 4));
63160
+ };
63161
+ /**
63162
+ * @param {?proto.clarifai.api.OrchestrationStatus|undefined} value
63163
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
63164
+ */
63165
+ proto.clarifai.api.PipelineVersionRun.prototype.setOrchestrationStatus = function (value) {
63166
+ return jspb.Message.setWrapperField(this, 4, value);
63167
+ };
63168
+ /**
63169
+ * Clears the message field making it undefined.
63170
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
63171
+ */
63172
+ proto.clarifai.api.PipelineVersionRun.prototype.clearOrchestrationStatus = function () {
63173
+ return this.setOrchestrationStatus(undefined);
63174
+ };
63175
+ /**
63176
+ * Returns whether this field is set.
63177
+ * @return {boolean}
63178
+ */
63179
+ proto.clarifai.api.PipelineVersionRun.prototype.hasOrchestrationStatus = function () {
63180
+ return jspb.Message.getField(this, 4) != null;
63181
+ };
63182
+ /**
63183
+ * optional string user_id = 5;
63184
+ * @return {string}
63185
+ */
63186
+ proto.clarifai.api.PipelineVersionRun.prototype.getUserId = function () {
63187
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
63188
+ };
63189
+ /**
63190
+ * @param {string} value
63191
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
63192
+ */
63193
+ proto.clarifai.api.PipelineVersionRun.prototype.setUserId = function (value) {
63194
+ return jspb.Message.setProto3StringField(this, 5, value);
63195
+ };
63196
+ /**
63197
+ * optional string app_id = 6;
63198
+ * @return {string}
63199
+ */
63200
+ proto.clarifai.api.PipelineVersionRun.prototype.getAppId = function () {
63201
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
63202
+ };
63203
+ /**
63204
+ * @param {string} value
63205
+ * @return {!proto.clarifai.api.PipelineVersionRun} returns this
63206
+ */
63207
+ proto.clarifai.api.PipelineVersionRun.prototype.setAppId = function (value) {
63208
+ return jspb.Message.setProto3StringField(this, 6, value);
63209
+ };
60197
63210
  /**
60198
63211
  * @enum {number}
60199
63212
  */