clarifai-web-grpc 11.1.3 → 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +2604 -15
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +210 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +1884 -5
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +3 -2
- package/dist/esm/proto/clarifai/api/resources_pb.js +2604 -15
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +210 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +1884 -5
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +3 -2
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +398 -3
- package/proto/clarifai/api/resources_pb.js +3222 -16
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +60 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +305 -0
- package/proto/clarifai/api/service_pb.d.ts +277 -0
- package/proto/clarifai/api/service_pb.js +2350 -5
- package/proto/clarifai/auth/scope/scope_pb.d.ts +2 -1
- package/proto/clarifai/auth/scope/scope_pb.js +3 -2
|
@@ -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);
|
|
@@ -132,6 +134,7 @@ goog.exportSymbol('proto.clarifai.api.EndpointDeps', null, global);
|
|
|
132
134
|
goog.exportSymbol('proto.clarifai.api.EvalInfo', null, global);
|
|
133
135
|
goog.exportSymbol('proto.clarifai.api.EvalMetrics', null, global);
|
|
134
136
|
goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
|
|
137
|
+
goog.exportSymbol('proto.clarifai.api.EvaluationMetricValue', null, global);
|
|
135
138
|
goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
|
|
136
139
|
goog.exportSymbol('proto.clarifai.api.EventType', null, global);
|
|
137
140
|
goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
|
|
@@ -181,8 +184,11 @@ goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
|
|
|
181
184
|
goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
|
|
182
185
|
goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
|
|
183
186
|
goog.exportSymbol('proto.clarifai.api.Mask', null, global);
|
|
187
|
+
goog.exportSymbol('proto.clarifai.api.MetricValue', null, global);
|
|
188
|
+
goog.exportSymbol('proto.clarifai.api.MetricValue.MetricValueCase', null, global);
|
|
184
189
|
goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
|
|
185
190
|
goog.exportSymbol('proto.clarifai.api.Model', null, global);
|
|
191
|
+
goog.exportSymbol('proto.clarifai.api.Model.BillingType', null, global);
|
|
186
192
|
goog.exportSymbol('proto.clarifai.api.Model.Source', null, global);
|
|
187
193
|
goog.exportSymbol('proto.clarifai.api.ModelLayerInfo', null, global);
|
|
188
194
|
goog.exportSymbol('proto.clarifai.api.ModelPredictConfig', null, global);
|
|
@@ -210,6 +216,10 @@ goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
|
|
|
210
216
|
goog.exportSymbol('proto.clarifai.api.Operation', null, global);
|
|
211
217
|
goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
|
|
212
218
|
goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
|
|
219
|
+
goog.exportSymbol('proto.clarifai.api.OrchestrationSpec', null, global);
|
|
220
|
+
goog.exportSymbol('proto.clarifai.api.OrchestrationSpec.OrchestrationCase', null, global);
|
|
221
|
+
goog.exportSymbol('proto.clarifai.api.OrchestrationStatus', null, global);
|
|
222
|
+
goog.exportSymbol('proto.clarifai.api.OrchestrationStatus.StatusDetailsCase', null, global);
|
|
213
223
|
goog.exportSymbol('proto.clarifai.api.Output', null, global);
|
|
214
224
|
goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
|
|
215
225
|
goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global);
|
|
@@ -219,6 +229,8 @@ goog.exportSymbol('proto.clarifai.api.Part', null, global);
|
|
|
219
229
|
goog.exportSymbol('proto.clarifai.api.Password', null, global);
|
|
220
230
|
goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global);
|
|
221
231
|
goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
|
|
232
|
+
goog.exportSymbol('proto.clarifai.api.PipelineVersion', null, global);
|
|
233
|
+
goog.exportSymbol('proto.clarifai.api.PipelineVersionRun', null, global);
|
|
222
234
|
goog.exportSymbol('proto.clarifai.api.Point', null, global);
|
|
223
235
|
goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
|
|
224
236
|
goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
|
|
@@ -302,11 +314,14 @@ goog.exportSymbol('proto.clarifai.api.W3C', null, global);
|
|
|
302
314
|
goog.exportSymbol('proto.clarifai.api.Worker', null, global);
|
|
303
315
|
goog.exportSymbol('proto.clarifai.api.Worker.WorkerCase', null, global);
|
|
304
316
|
goog.exportSymbol('proto.clarifai.api.Workflow', null, global);
|
|
317
|
+
goog.exportSymbol('proto.clarifai.api.WorkflowEvaluationResult', null, global);
|
|
318
|
+
goog.exportSymbol('proto.clarifai.api.WorkflowEvaluationResultSummary', null, global);
|
|
305
319
|
goog.exportSymbol('proto.clarifai.api.WorkflowModelUseCase', null, global);
|
|
306
320
|
goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
|
|
307
321
|
goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
|
|
308
322
|
goog.exportSymbol('proto.clarifai.api.WorkflowState', null, global);
|
|
309
323
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersion', null, global);
|
|
324
|
+
goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluation', null, global);
|
|
310
325
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric', null, global);
|
|
311
326
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType', null, global);
|
|
312
327
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType', null, global);
|
|
@@ -5016,6 +5031,237 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5016
5031
|
*/
|
|
5017
5032
|
proto.clarifai.api.ComputeSourceMetadata.displayName = 'proto.clarifai.api.ComputeSourceMetadata';
|
|
5018
5033
|
}
|
|
5034
|
+
/**
|
|
5035
|
+
* Generated by JsPbCodeGenerator.
|
|
5036
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5037
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5038
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5039
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5040
|
+
* valid.
|
|
5041
|
+
* @extends {jspb.Message}
|
|
5042
|
+
* @constructor
|
|
5043
|
+
*/
|
|
5044
|
+
proto.clarifai.api.WorkflowVersionEvaluation = function (opt_data) {
|
|
5045
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5046
|
+
};
|
|
5047
|
+
goog.inherits(proto.clarifai.api.WorkflowVersionEvaluation, jspb.Message);
|
|
5048
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5049
|
+
/**
|
|
5050
|
+
* @public
|
|
5051
|
+
* @override
|
|
5052
|
+
*/
|
|
5053
|
+
proto.clarifai.api.WorkflowVersionEvaluation.displayName = 'proto.clarifai.api.WorkflowVersionEvaluation';
|
|
5054
|
+
}
|
|
5055
|
+
/**
|
|
5056
|
+
* Generated by JsPbCodeGenerator.
|
|
5057
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5058
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5059
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5060
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5061
|
+
* valid.
|
|
5062
|
+
* @extends {jspb.Message}
|
|
5063
|
+
* @constructor
|
|
5064
|
+
*/
|
|
5065
|
+
proto.clarifai.api.WorkflowEvaluationResult = function (opt_data) {
|
|
5066
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5067
|
+
};
|
|
5068
|
+
goog.inherits(proto.clarifai.api.WorkflowEvaluationResult, jspb.Message);
|
|
5069
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5070
|
+
/**
|
|
5071
|
+
* @public
|
|
5072
|
+
* @override
|
|
5073
|
+
*/
|
|
5074
|
+
proto.clarifai.api.WorkflowEvaluationResult.displayName = 'proto.clarifai.api.WorkflowEvaluationResult';
|
|
5075
|
+
}
|
|
5076
|
+
/**
|
|
5077
|
+
* Generated by JsPbCodeGenerator.
|
|
5078
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5079
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5080
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5081
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5082
|
+
* valid.
|
|
5083
|
+
* @extends {jspb.Message}
|
|
5084
|
+
* @constructor
|
|
5085
|
+
*/
|
|
5086
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary = function (opt_data) {
|
|
5087
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.WorkflowEvaluationResultSummary.repeatedFields_, null);
|
|
5088
|
+
};
|
|
5089
|
+
goog.inherits(proto.clarifai.api.WorkflowEvaluationResultSummary, jspb.Message);
|
|
5090
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5091
|
+
/**
|
|
5092
|
+
* @public
|
|
5093
|
+
* @override
|
|
5094
|
+
*/
|
|
5095
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.displayName = 'proto.clarifai.api.WorkflowEvaluationResultSummary';
|
|
5096
|
+
}
|
|
5097
|
+
/**
|
|
5098
|
+
* Generated by JsPbCodeGenerator.
|
|
5099
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5100
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5101
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5102
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5103
|
+
* valid.
|
|
5104
|
+
* @extends {jspb.Message}
|
|
5105
|
+
* @constructor
|
|
5106
|
+
*/
|
|
5107
|
+
proto.clarifai.api.EvaluationMetricValue = function (opt_data) {
|
|
5108
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5109
|
+
};
|
|
5110
|
+
goog.inherits(proto.clarifai.api.EvaluationMetricValue, jspb.Message);
|
|
5111
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5112
|
+
/**
|
|
5113
|
+
* @public
|
|
5114
|
+
* @override
|
|
5115
|
+
*/
|
|
5116
|
+
proto.clarifai.api.EvaluationMetricValue.displayName = 'proto.clarifai.api.EvaluationMetricValue';
|
|
5117
|
+
}
|
|
5118
|
+
/**
|
|
5119
|
+
* Generated by JsPbCodeGenerator.
|
|
5120
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5121
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5122
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5123
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5124
|
+
* valid.
|
|
5125
|
+
* @extends {jspb.Message}
|
|
5126
|
+
* @constructor
|
|
5127
|
+
*/
|
|
5128
|
+
proto.clarifai.api.MetricValue = function (opt_data) {
|
|
5129
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.MetricValue.oneofGroups_);
|
|
5130
|
+
};
|
|
5131
|
+
goog.inherits(proto.clarifai.api.MetricValue, jspb.Message);
|
|
5132
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5133
|
+
/**
|
|
5134
|
+
* @public
|
|
5135
|
+
* @override
|
|
5136
|
+
*/
|
|
5137
|
+
proto.clarifai.api.MetricValue.displayName = 'proto.clarifai.api.MetricValue';
|
|
5138
|
+
}
|
|
5139
|
+
/**
|
|
5140
|
+
* Generated by JsPbCodeGenerator.
|
|
5141
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5142
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5143
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5144
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5145
|
+
* valid.
|
|
5146
|
+
* @extends {jspb.Message}
|
|
5147
|
+
* @constructor
|
|
5148
|
+
*/
|
|
5149
|
+
proto.clarifai.api.ArgoOrchestrationSpec = function (opt_data) {
|
|
5150
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5151
|
+
};
|
|
5152
|
+
goog.inherits(proto.clarifai.api.ArgoOrchestrationSpec, jspb.Message);
|
|
5153
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5154
|
+
/**
|
|
5155
|
+
* @public
|
|
5156
|
+
* @override
|
|
5157
|
+
*/
|
|
5158
|
+
proto.clarifai.api.ArgoOrchestrationSpec.displayName = 'proto.clarifai.api.ArgoOrchestrationSpec';
|
|
5159
|
+
}
|
|
5160
|
+
/**
|
|
5161
|
+
* Generated by JsPbCodeGenerator.
|
|
5162
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5163
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5164
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5165
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5166
|
+
* valid.
|
|
5167
|
+
* @extends {jspb.Message}
|
|
5168
|
+
* @constructor
|
|
5169
|
+
*/
|
|
5170
|
+
proto.clarifai.api.OrchestrationSpec = function (opt_data) {
|
|
5171
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationSpec.oneofGroups_);
|
|
5172
|
+
};
|
|
5173
|
+
goog.inherits(proto.clarifai.api.OrchestrationSpec, jspb.Message);
|
|
5174
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5175
|
+
/**
|
|
5176
|
+
* @public
|
|
5177
|
+
* @override
|
|
5178
|
+
*/
|
|
5179
|
+
proto.clarifai.api.OrchestrationSpec.displayName = 'proto.clarifai.api.OrchestrationSpec';
|
|
5180
|
+
}
|
|
5181
|
+
/**
|
|
5182
|
+
* Generated by JsPbCodeGenerator.
|
|
5183
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5184
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5185
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5186
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5187
|
+
* valid.
|
|
5188
|
+
* @extends {jspb.Message}
|
|
5189
|
+
* @constructor
|
|
5190
|
+
*/
|
|
5191
|
+
proto.clarifai.api.PipelineVersion = function (opt_data) {
|
|
5192
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5193
|
+
};
|
|
5194
|
+
goog.inherits(proto.clarifai.api.PipelineVersion, jspb.Message);
|
|
5195
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5196
|
+
/**
|
|
5197
|
+
* @public
|
|
5198
|
+
* @override
|
|
5199
|
+
*/
|
|
5200
|
+
proto.clarifai.api.PipelineVersion.displayName = 'proto.clarifai.api.PipelineVersion';
|
|
5201
|
+
}
|
|
5202
|
+
/**
|
|
5203
|
+
* Generated by JsPbCodeGenerator.
|
|
5204
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5205
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5206
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5207
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5208
|
+
* valid.
|
|
5209
|
+
* @extends {jspb.Message}
|
|
5210
|
+
* @constructor
|
|
5211
|
+
*/
|
|
5212
|
+
proto.clarifai.api.OrchestrationStatus = function (opt_data) {
|
|
5213
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationStatus.oneofGroups_);
|
|
5214
|
+
};
|
|
5215
|
+
goog.inherits(proto.clarifai.api.OrchestrationStatus, jspb.Message);
|
|
5216
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5217
|
+
/**
|
|
5218
|
+
* @public
|
|
5219
|
+
* @override
|
|
5220
|
+
*/
|
|
5221
|
+
proto.clarifai.api.OrchestrationStatus.displayName = 'proto.clarifai.api.OrchestrationStatus';
|
|
5222
|
+
}
|
|
5223
|
+
/**
|
|
5224
|
+
* Generated by JsPbCodeGenerator.
|
|
5225
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5226
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5227
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5228
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5229
|
+
* valid.
|
|
5230
|
+
* @extends {jspb.Message}
|
|
5231
|
+
* @constructor
|
|
5232
|
+
*/
|
|
5233
|
+
proto.clarifai.api.ArgoOrchestrationStatus = function (opt_data) {
|
|
5234
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5235
|
+
};
|
|
5236
|
+
goog.inherits(proto.clarifai.api.ArgoOrchestrationStatus, jspb.Message);
|
|
5237
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5238
|
+
/**
|
|
5239
|
+
* @public
|
|
5240
|
+
* @override
|
|
5241
|
+
*/
|
|
5242
|
+
proto.clarifai.api.ArgoOrchestrationStatus.displayName = 'proto.clarifai.api.ArgoOrchestrationStatus';
|
|
5243
|
+
}
|
|
5244
|
+
/**
|
|
5245
|
+
* Generated by JsPbCodeGenerator.
|
|
5246
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5247
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5248
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5249
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5250
|
+
* valid.
|
|
5251
|
+
* @extends {jspb.Message}
|
|
5252
|
+
* @constructor
|
|
5253
|
+
*/
|
|
5254
|
+
proto.clarifai.api.PipelineVersionRun = function (opt_data) {
|
|
5255
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PipelineVersionRun.repeatedFields_, null);
|
|
5256
|
+
};
|
|
5257
|
+
goog.inherits(proto.clarifai.api.PipelineVersionRun, jspb.Message);
|
|
5258
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5259
|
+
/**
|
|
5260
|
+
* @public
|
|
5261
|
+
* @override
|
|
5262
|
+
*/
|
|
5263
|
+
proto.clarifai.api.PipelineVersionRun.displayName = 'proto.clarifai.api.PipelineVersionRun';
|
|
5264
|
+
}
|
|
5019
5265
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5020
5266
|
/**
|
|
5021
5267
|
* Creates an object representation of this proto.
|
|
@@ -20670,7 +20916,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
20670
20916
|
source: jspb.Message.getFieldWithDefault(msg, 36, 0),
|
|
20671
20917
|
creator: jspb.Message.getFieldWithDefault(msg, 37, ""),
|
|
20672
20918
|
versionCount: jspb.Message.getFieldWithDefault(msg, 38, 0),
|
|
20673
|
-
|
|
20919
|
+
billingType: jspb.Message.getFieldWithDefault(msg, 40, 0)
|
|
20674
20920
|
};
|
|
20675
20921
|
if (includeInstance) {
|
|
20676
20922
|
obj.$jspbMessageInstance = msg;
|
|
@@ -20838,9 +21084,9 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
20838
21084
|
var value = /** @type {number} */ (reader.readInt32());
|
|
20839
21085
|
msg.setVersionCount(value);
|
|
20840
21086
|
break;
|
|
20841
|
-
case
|
|
20842
|
-
var value = /** @type {
|
|
20843
|
-
msg.
|
|
21087
|
+
case 40:
|
|
21088
|
+
var value = /** @type {!proto.clarifai.api.Model.BillingType} */ (reader.readEnum());
|
|
21089
|
+
msg.setBillingType(value);
|
|
20844
21090
|
break;
|
|
20845
21091
|
default:
|
|
20846
21092
|
reader.skipField();
|
|
@@ -20991,9 +21237,9 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function (message, writer) {
|
|
|
20991
21237
|
if (f !== 0) {
|
|
20992
21238
|
writer.writeInt32(38, f);
|
|
20993
21239
|
}
|
|
20994
|
-
f = message.
|
|
20995
|
-
if (f) {
|
|
20996
|
-
writer.
|
|
21240
|
+
f = message.getBillingType();
|
|
21241
|
+
if (f !== 0.0) {
|
|
21242
|
+
writer.writeEnum(40, f);
|
|
20997
21243
|
}
|
|
20998
21244
|
};
|
|
20999
21245
|
/**
|
|
@@ -21004,6 +21250,14 @@ proto.clarifai.api.Model.Source = {
|
|
|
21004
21250
|
HOSTED: 1,
|
|
21005
21251
|
WRAPPED: 2
|
|
21006
21252
|
};
|
|
21253
|
+
/**
|
|
21254
|
+
* @enum {number}
|
|
21255
|
+
*/
|
|
21256
|
+
proto.clarifai.api.Model.BillingType = {
|
|
21257
|
+
UNKNOWN: 0,
|
|
21258
|
+
TOKENS: 1,
|
|
21259
|
+
OPS: 2
|
|
21260
|
+
};
|
|
21007
21261
|
/**
|
|
21008
21262
|
* optional string id = 1;
|
|
21009
21263
|
* @return {string}
|
|
@@ -21668,18 +21922,18 @@ proto.clarifai.api.Model.prototype.setVersionCount = function (value) {
|
|
|
21668
21922
|
return jspb.Message.setProto3IntField(this, 38, value);
|
|
21669
21923
|
};
|
|
21670
21924
|
/**
|
|
21671
|
-
* optional
|
|
21672
|
-
* @return {
|
|
21925
|
+
* optional BillingType billing_type = 40;
|
|
21926
|
+
* @return {!proto.clarifai.api.Model.BillingType}
|
|
21673
21927
|
*/
|
|
21674
|
-
proto.clarifai.api.Model.prototype.
|
|
21675
|
-
return /** @type {
|
|
21928
|
+
proto.clarifai.api.Model.prototype.getBillingType = function () {
|
|
21929
|
+
return /** @type {!proto.clarifai.api.Model.BillingType} */ (jspb.Message.getFieldWithDefault(this, 40, 0));
|
|
21676
21930
|
};
|
|
21677
21931
|
/**
|
|
21678
|
-
* @param {
|
|
21932
|
+
* @param {!proto.clarifai.api.Model.BillingType} value
|
|
21679
21933
|
* @return {!proto.clarifai.api.Model} returns this
|
|
21680
21934
|
*/
|
|
21681
|
-
proto.clarifai.api.Model.prototype.
|
|
21682
|
-
return jspb.Message.
|
|
21935
|
+
proto.clarifai.api.Model.prototype.setBillingType = function (value) {
|
|
21936
|
+
return jspb.Message.setProto3EnumField(this, 40, value);
|
|
21683
21937
|
};
|
|
21684
21938
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
21685
21939
|
/**
|
|
@@ -56487,7 +56741,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
56487
56741
|
trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
56488
56742
|
scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
56489
56743
|
scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
56490
|
-
disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
56744
|
+
disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
56745
|
+
scaleToZeroDelaySeconds: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
56491
56746
|
};
|
|
56492
56747
|
if (includeInstance) {
|
|
56493
56748
|
obj.$jspbMessageInstance = msg;
|
|
@@ -56543,6 +56798,10 @@ proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function (msg,
|
|
|
56543
56798
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
56544
56799
|
msg.setDisablePacking(value);
|
|
56545
56800
|
break;
|
|
56801
|
+
case 8:
|
|
56802
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
56803
|
+
msg.setScaleToZeroDelaySeconds(value);
|
|
56804
|
+
break;
|
|
56546
56805
|
default:
|
|
56547
56806
|
reader.skipField();
|
|
56548
56807
|
break;
|
|
@@ -56592,6 +56851,10 @@ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function (message,
|
|
|
56592
56851
|
if (f) {
|
|
56593
56852
|
writer.writeBool(7, f);
|
|
56594
56853
|
}
|
|
56854
|
+
f = message.getScaleToZeroDelaySeconds();
|
|
56855
|
+
if (f !== 0) {
|
|
56856
|
+
writer.writeUint32(8, f);
|
|
56857
|
+
}
|
|
56595
56858
|
};
|
|
56596
56859
|
/**
|
|
56597
56860
|
* optional uint32 min_replicas = 1;
|
|
@@ -56677,6 +56940,20 @@ proto.clarifai.api.AutoscaleConfig.prototype.getDisablePacking = function () {
|
|
|
56677
56940
|
proto.clarifai.api.AutoscaleConfig.prototype.setDisablePacking = function (value) {
|
|
56678
56941
|
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
56679
56942
|
};
|
|
56943
|
+
/**
|
|
56944
|
+
* optional uint32 scale_to_zero_delay_seconds = 8;
|
|
56945
|
+
* @return {number}
|
|
56946
|
+
*/
|
|
56947
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getScaleToZeroDelaySeconds = function () {
|
|
56948
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
56949
|
+
};
|
|
56950
|
+
/**
|
|
56951
|
+
* @param {number} value
|
|
56952
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
56953
|
+
*/
|
|
56954
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setScaleToZeroDelaySeconds = function (value) {
|
|
56955
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
56956
|
+
};
|
|
56680
56957
|
/**
|
|
56681
56958
|
* List of repeated fields within this message type.
|
|
56682
56959
|
* @private {!Array<number>}
|
|
@@ -60194,6 +60471,2318 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.getRunnerId = function () {
|
|
|
60194
60471
|
proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function (value) {
|
|
60195
60472
|
return jspb.Message.setProto3StringField(this, 8, value);
|
|
60196
60473
|
};
|
|
60474
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60475
|
+
/**
|
|
60476
|
+
* Creates an object representation of this proto.
|
|
60477
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60478
|
+
* Optional fields that are not set will be set to undefined.
|
|
60479
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60480
|
+
* For the list of reserved names please see:
|
|
60481
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60482
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60483
|
+
* JSPB instance for transitional soy proto support:
|
|
60484
|
+
* http://goto/soy-param-migration
|
|
60485
|
+
* @return {!Object}
|
|
60486
|
+
*/
|
|
60487
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.toObject = function (opt_includeInstance) {
|
|
60488
|
+
return proto.clarifai.api.WorkflowVersionEvaluation.toObject(opt_includeInstance, this);
|
|
60489
|
+
};
|
|
60490
|
+
/**
|
|
60491
|
+
* Static version of the {@see toObject} method.
|
|
60492
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60493
|
+
* the JSPB instance for transitional soy proto support:
|
|
60494
|
+
* http://goto/soy-param-migration
|
|
60495
|
+
* @param {!proto.clarifai.api.WorkflowVersionEvaluation} msg The msg instance to transform.
|
|
60496
|
+
* @return {!Object}
|
|
60497
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60498
|
+
*/
|
|
60499
|
+
proto.clarifai.api.WorkflowVersionEvaluation.toObject = function (includeInstance, msg) {
|
|
60500
|
+
var f, obj = {
|
|
60501
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
60502
|
+
workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
60503
|
+
workflowVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
60504
|
+
groundTruthDatasetId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
60505
|
+
groundTruthDatasetVersionId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
60506
|
+
predictionsDatasetId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
60507
|
+
predictionsDatasetVersionId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
60508
|
+
evaluationTemplateId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
60509
|
+
workflowEvaluationResult: (f = msg.getWorkflowEvaluationResult()) && proto.clarifai.api.WorkflowEvaluationResult.toObject(includeInstance, f),
|
|
60510
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
60511
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
60512
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
60513
|
+
};
|
|
60514
|
+
if (includeInstance) {
|
|
60515
|
+
obj.$jspbMessageInstance = msg;
|
|
60516
|
+
}
|
|
60517
|
+
return obj;
|
|
60518
|
+
};
|
|
60519
|
+
}
|
|
60520
|
+
/**
|
|
60521
|
+
* Deserializes binary data (in protobuf wire format).
|
|
60522
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60523
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation}
|
|
60524
|
+
*/
|
|
60525
|
+
proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinary = function (bytes) {
|
|
60526
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
60527
|
+
var msg = new proto.clarifai.api.WorkflowVersionEvaluation;
|
|
60528
|
+
return proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinaryFromReader(msg, reader);
|
|
60529
|
+
};
|
|
60530
|
+
/**
|
|
60531
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
60532
|
+
* given reader into the given message object.
|
|
60533
|
+
* @param {!proto.clarifai.api.WorkflowVersionEvaluation} msg The message object to deserialize into.
|
|
60534
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60535
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation}
|
|
60536
|
+
*/
|
|
60537
|
+
proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinaryFromReader = function (msg, reader) {
|
|
60538
|
+
while (reader.nextField()) {
|
|
60539
|
+
if (reader.isEndGroup()) {
|
|
60540
|
+
break;
|
|
60541
|
+
}
|
|
60542
|
+
var field = reader.getFieldNumber();
|
|
60543
|
+
switch (field) {
|
|
60544
|
+
case 1:
|
|
60545
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60546
|
+
msg.setId(value);
|
|
60547
|
+
break;
|
|
60548
|
+
case 2:
|
|
60549
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60550
|
+
msg.setWorkflowId(value);
|
|
60551
|
+
break;
|
|
60552
|
+
case 3:
|
|
60553
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60554
|
+
msg.setWorkflowVersionId(value);
|
|
60555
|
+
break;
|
|
60556
|
+
case 4:
|
|
60557
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60558
|
+
msg.setGroundTruthDatasetId(value);
|
|
60559
|
+
break;
|
|
60560
|
+
case 5:
|
|
60561
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60562
|
+
msg.setGroundTruthDatasetVersionId(value);
|
|
60563
|
+
break;
|
|
60564
|
+
case 6:
|
|
60565
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60566
|
+
msg.setPredictionsDatasetId(value);
|
|
60567
|
+
break;
|
|
60568
|
+
case 7:
|
|
60569
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60570
|
+
msg.setPredictionsDatasetVersionId(value);
|
|
60571
|
+
break;
|
|
60572
|
+
case 8:
|
|
60573
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60574
|
+
msg.setEvaluationTemplateId(value);
|
|
60575
|
+
break;
|
|
60576
|
+
case 9:
|
|
60577
|
+
var value = new proto.clarifai.api.WorkflowEvaluationResult;
|
|
60578
|
+
reader.readMessage(value, proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader);
|
|
60579
|
+
msg.setWorkflowEvaluationResult(value);
|
|
60580
|
+
break;
|
|
60581
|
+
case 10:
|
|
60582
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
60583
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
60584
|
+
msg.setStatus(value);
|
|
60585
|
+
break;
|
|
60586
|
+
case 11:
|
|
60587
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
60588
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
60589
|
+
msg.setCreatedAt(value);
|
|
60590
|
+
break;
|
|
60591
|
+
case 12:
|
|
60592
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
60593
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
60594
|
+
msg.setModifiedAt(value);
|
|
60595
|
+
break;
|
|
60596
|
+
default:
|
|
60597
|
+
reader.skipField();
|
|
60598
|
+
break;
|
|
60599
|
+
}
|
|
60600
|
+
}
|
|
60601
|
+
return msg;
|
|
60602
|
+
};
|
|
60603
|
+
/**
|
|
60604
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
60605
|
+
* @return {!Uint8Array}
|
|
60606
|
+
*/
|
|
60607
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.serializeBinary = function () {
|
|
60608
|
+
var writer = new jspb.BinaryWriter();
|
|
60609
|
+
proto.clarifai.api.WorkflowVersionEvaluation.serializeBinaryToWriter(this, writer);
|
|
60610
|
+
return writer.getResultBuffer();
|
|
60611
|
+
};
|
|
60612
|
+
/**
|
|
60613
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
60614
|
+
* format), writing to the given BinaryWriter.
|
|
60615
|
+
* @param {!proto.clarifai.api.WorkflowVersionEvaluation} message
|
|
60616
|
+
* @param {!jspb.BinaryWriter} writer
|
|
60617
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60618
|
+
*/
|
|
60619
|
+
proto.clarifai.api.WorkflowVersionEvaluation.serializeBinaryToWriter = function (message, writer) {
|
|
60620
|
+
var f = undefined;
|
|
60621
|
+
f = message.getId();
|
|
60622
|
+
if (f.length > 0) {
|
|
60623
|
+
writer.writeString(1, f);
|
|
60624
|
+
}
|
|
60625
|
+
f = message.getWorkflowId();
|
|
60626
|
+
if (f.length > 0) {
|
|
60627
|
+
writer.writeString(2, f);
|
|
60628
|
+
}
|
|
60629
|
+
f = message.getWorkflowVersionId();
|
|
60630
|
+
if (f.length > 0) {
|
|
60631
|
+
writer.writeString(3, f);
|
|
60632
|
+
}
|
|
60633
|
+
f = message.getGroundTruthDatasetId();
|
|
60634
|
+
if (f.length > 0) {
|
|
60635
|
+
writer.writeString(4, f);
|
|
60636
|
+
}
|
|
60637
|
+
f = message.getGroundTruthDatasetVersionId();
|
|
60638
|
+
if (f.length > 0) {
|
|
60639
|
+
writer.writeString(5, f);
|
|
60640
|
+
}
|
|
60641
|
+
f = message.getPredictionsDatasetId();
|
|
60642
|
+
if (f.length > 0) {
|
|
60643
|
+
writer.writeString(6, f);
|
|
60644
|
+
}
|
|
60645
|
+
f = message.getPredictionsDatasetVersionId();
|
|
60646
|
+
if (f.length > 0) {
|
|
60647
|
+
writer.writeString(7, f);
|
|
60648
|
+
}
|
|
60649
|
+
f = message.getEvaluationTemplateId();
|
|
60650
|
+
if (f.length > 0) {
|
|
60651
|
+
writer.writeString(8, f);
|
|
60652
|
+
}
|
|
60653
|
+
f = message.getWorkflowEvaluationResult();
|
|
60654
|
+
if (f != null) {
|
|
60655
|
+
writer.writeMessage(9, f, proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter);
|
|
60656
|
+
}
|
|
60657
|
+
f = message.getStatus();
|
|
60658
|
+
if (f != null) {
|
|
60659
|
+
writer.writeMessage(10, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
60660
|
+
}
|
|
60661
|
+
f = message.getCreatedAt();
|
|
60662
|
+
if (f != null) {
|
|
60663
|
+
writer.writeMessage(11, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
60664
|
+
}
|
|
60665
|
+
f = message.getModifiedAt();
|
|
60666
|
+
if (f != null) {
|
|
60667
|
+
writer.writeMessage(12, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
60668
|
+
}
|
|
60669
|
+
};
|
|
60670
|
+
/**
|
|
60671
|
+
* optional string id = 1;
|
|
60672
|
+
* @return {string}
|
|
60673
|
+
*/
|
|
60674
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getId = function () {
|
|
60675
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
60676
|
+
};
|
|
60677
|
+
/**
|
|
60678
|
+
* @param {string} value
|
|
60679
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60680
|
+
*/
|
|
60681
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setId = function (value) {
|
|
60682
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
60683
|
+
};
|
|
60684
|
+
/**
|
|
60685
|
+
* optional string workflow_id = 2;
|
|
60686
|
+
* @return {string}
|
|
60687
|
+
*/
|
|
60688
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowId = function () {
|
|
60689
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
60690
|
+
};
|
|
60691
|
+
/**
|
|
60692
|
+
* @param {string} value
|
|
60693
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60694
|
+
*/
|
|
60695
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowId = function (value) {
|
|
60696
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
60697
|
+
};
|
|
60698
|
+
/**
|
|
60699
|
+
* optional string workflow_version_id = 3;
|
|
60700
|
+
* @return {string}
|
|
60701
|
+
*/
|
|
60702
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowVersionId = function () {
|
|
60703
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
60704
|
+
};
|
|
60705
|
+
/**
|
|
60706
|
+
* @param {string} value
|
|
60707
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60708
|
+
*/
|
|
60709
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowVersionId = function (value) {
|
|
60710
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
60711
|
+
};
|
|
60712
|
+
/**
|
|
60713
|
+
* optional string ground_truth_dataset_id = 4;
|
|
60714
|
+
* @return {string}
|
|
60715
|
+
*/
|
|
60716
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getGroundTruthDatasetId = function () {
|
|
60717
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
60718
|
+
};
|
|
60719
|
+
/**
|
|
60720
|
+
* @param {string} value
|
|
60721
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60722
|
+
*/
|
|
60723
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setGroundTruthDatasetId = function (value) {
|
|
60724
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
60725
|
+
};
|
|
60726
|
+
/**
|
|
60727
|
+
* optional string ground_truth_dataset_version_id = 5;
|
|
60728
|
+
* @return {string}
|
|
60729
|
+
*/
|
|
60730
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getGroundTruthDatasetVersionId = function () {
|
|
60731
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
60732
|
+
};
|
|
60733
|
+
/**
|
|
60734
|
+
* @param {string} value
|
|
60735
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60736
|
+
*/
|
|
60737
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setGroundTruthDatasetVersionId = function (value) {
|
|
60738
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
60739
|
+
};
|
|
60740
|
+
/**
|
|
60741
|
+
* optional string predictions_dataset_id = 6;
|
|
60742
|
+
* @return {string}
|
|
60743
|
+
*/
|
|
60744
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getPredictionsDatasetId = function () {
|
|
60745
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
60746
|
+
};
|
|
60747
|
+
/**
|
|
60748
|
+
* @param {string} value
|
|
60749
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60750
|
+
*/
|
|
60751
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setPredictionsDatasetId = function (value) {
|
|
60752
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
60753
|
+
};
|
|
60754
|
+
/**
|
|
60755
|
+
* optional string predictions_dataset_version_id = 7;
|
|
60756
|
+
* @return {string}
|
|
60757
|
+
*/
|
|
60758
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getPredictionsDatasetVersionId = function () {
|
|
60759
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
60760
|
+
};
|
|
60761
|
+
/**
|
|
60762
|
+
* @param {string} value
|
|
60763
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60764
|
+
*/
|
|
60765
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setPredictionsDatasetVersionId = function (value) {
|
|
60766
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
60767
|
+
};
|
|
60768
|
+
/**
|
|
60769
|
+
* optional string evaluation_template_id = 8;
|
|
60770
|
+
* @return {string}
|
|
60771
|
+
*/
|
|
60772
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getEvaluationTemplateId = function () {
|
|
60773
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
60774
|
+
};
|
|
60775
|
+
/**
|
|
60776
|
+
* @param {string} value
|
|
60777
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60778
|
+
*/
|
|
60779
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setEvaluationTemplateId = function (value) {
|
|
60780
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
60781
|
+
};
|
|
60782
|
+
/**
|
|
60783
|
+
* optional WorkflowEvaluationResult workflow_evaluation_result = 9;
|
|
60784
|
+
* @return {?proto.clarifai.api.WorkflowEvaluationResult}
|
|
60785
|
+
*/
|
|
60786
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowEvaluationResult = function () {
|
|
60787
|
+
return /** @type{?proto.clarifai.api.WorkflowEvaluationResult} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowEvaluationResult, 9));
|
|
60788
|
+
};
|
|
60789
|
+
/**
|
|
60790
|
+
* @param {?proto.clarifai.api.WorkflowEvaluationResult|undefined} value
|
|
60791
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60792
|
+
*/
|
|
60793
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowEvaluationResult = function (value) {
|
|
60794
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
60795
|
+
};
|
|
60796
|
+
/**
|
|
60797
|
+
* Clears the message field making it undefined.
|
|
60798
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60799
|
+
*/
|
|
60800
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearWorkflowEvaluationResult = function () {
|
|
60801
|
+
return this.setWorkflowEvaluationResult(undefined);
|
|
60802
|
+
};
|
|
60803
|
+
/**
|
|
60804
|
+
* Returns whether this field is set.
|
|
60805
|
+
* @return {boolean}
|
|
60806
|
+
*/
|
|
60807
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasWorkflowEvaluationResult = function () {
|
|
60808
|
+
return jspb.Message.getField(this, 9) != null;
|
|
60809
|
+
};
|
|
60810
|
+
/**
|
|
60811
|
+
* optional status.Status status = 10;
|
|
60812
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
60813
|
+
*/
|
|
60814
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getStatus = function () {
|
|
60815
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 10));
|
|
60816
|
+
};
|
|
60817
|
+
/**
|
|
60818
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
60819
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60820
|
+
*/
|
|
60821
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setStatus = function (value) {
|
|
60822
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
60823
|
+
};
|
|
60824
|
+
/**
|
|
60825
|
+
* Clears the message field making it undefined.
|
|
60826
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60827
|
+
*/
|
|
60828
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearStatus = function () {
|
|
60829
|
+
return this.setStatus(undefined);
|
|
60830
|
+
};
|
|
60831
|
+
/**
|
|
60832
|
+
* Returns whether this field is set.
|
|
60833
|
+
* @return {boolean}
|
|
60834
|
+
*/
|
|
60835
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasStatus = function () {
|
|
60836
|
+
return jspb.Message.getField(this, 10) != null;
|
|
60837
|
+
};
|
|
60838
|
+
/**
|
|
60839
|
+
* optional google.protobuf.Timestamp created_at = 11;
|
|
60840
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
60841
|
+
*/
|
|
60842
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getCreatedAt = function () {
|
|
60843
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
|
|
60844
|
+
};
|
|
60845
|
+
/**
|
|
60846
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
60847
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60848
|
+
*/
|
|
60849
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setCreatedAt = function (value) {
|
|
60850
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
60851
|
+
};
|
|
60852
|
+
/**
|
|
60853
|
+
* Clears the message field making it undefined.
|
|
60854
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60855
|
+
*/
|
|
60856
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearCreatedAt = function () {
|
|
60857
|
+
return this.setCreatedAt(undefined);
|
|
60858
|
+
};
|
|
60859
|
+
/**
|
|
60860
|
+
* Returns whether this field is set.
|
|
60861
|
+
* @return {boolean}
|
|
60862
|
+
*/
|
|
60863
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasCreatedAt = function () {
|
|
60864
|
+
return jspb.Message.getField(this, 11) != null;
|
|
60865
|
+
};
|
|
60866
|
+
/**
|
|
60867
|
+
* optional google.protobuf.Timestamp modified_at = 12;
|
|
60868
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
60869
|
+
*/
|
|
60870
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getModifiedAt = function () {
|
|
60871
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
|
|
60872
|
+
};
|
|
60873
|
+
/**
|
|
60874
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
60875
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60876
|
+
*/
|
|
60877
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setModifiedAt = function (value) {
|
|
60878
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
60879
|
+
};
|
|
60880
|
+
/**
|
|
60881
|
+
* Clears the message field making it undefined.
|
|
60882
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
60883
|
+
*/
|
|
60884
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearModifiedAt = function () {
|
|
60885
|
+
return this.setModifiedAt(undefined);
|
|
60886
|
+
};
|
|
60887
|
+
/**
|
|
60888
|
+
* Returns whether this field is set.
|
|
60889
|
+
* @return {boolean}
|
|
60890
|
+
*/
|
|
60891
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasModifiedAt = function () {
|
|
60892
|
+
return jspb.Message.getField(this, 12) != null;
|
|
60893
|
+
};
|
|
60894
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60895
|
+
/**
|
|
60896
|
+
* Creates an object representation of this proto.
|
|
60897
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60898
|
+
* Optional fields that are not set will be set to undefined.
|
|
60899
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60900
|
+
* For the list of reserved names please see:
|
|
60901
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60902
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60903
|
+
* JSPB instance for transitional soy proto support:
|
|
60904
|
+
* http://goto/soy-param-migration
|
|
60905
|
+
* @return {!Object}
|
|
60906
|
+
*/
|
|
60907
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.toObject = function (opt_includeInstance) {
|
|
60908
|
+
return proto.clarifai.api.WorkflowEvaluationResult.toObject(opt_includeInstance, this);
|
|
60909
|
+
};
|
|
60910
|
+
/**
|
|
60911
|
+
* Static version of the {@see toObject} method.
|
|
60912
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60913
|
+
* the JSPB instance for transitional soy proto support:
|
|
60914
|
+
* http://goto/soy-param-migration
|
|
60915
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResult} msg The msg instance to transform.
|
|
60916
|
+
* @return {!Object}
|
|
60917
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60918
|
+
*/
|
|
60919
|
+
proto.clarifai.api.WorkflowEvaluationResult.toObject = function (includeInstance, msg) {
|
|
60920
|
+
var f, obj = {
|
|
60921
|
+
summary: (f = msg.getSummary()) && proto.clarifai.api.WorkflowEvaluationResultSummary.toObject(includeInstance, f)
|
|
60922
|
+
};
|
|
60923
|
+
if (includeInstance) {
|
|
60924
|
+
obj.$jspbMessageInstance = msg;
|
|
60925
|
+
}
|
|
60926
|
+
return obj;
|
|
60927
|
+
};
|
|
60928
|
+
}
|
|
60929
|
+
/**
|
|
60930
|
+
* Deserializes binary data (in protobuf wire format).
|
|
60931
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60932
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResult}
|
|
60933
|
+
*/
|
|
60934
|
+
proto.clarifai.api.WorkflowEvaluationResult.deserializeBinary = function (bytes) {
|
|
60935
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
60936
|
+
var msg = new proto.clarifai.api.WorkflowEvaluationResult;
|
|
60937
|
+
return proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader(msg, reader);
|
|
60938
|
+
};
|
|
60939
|
+
/**
|
|
60940
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
60941
|
+
* given reader into the given message object.
|
|
60942
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResult} msg The message object to deserialize into.
|
|
60943
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60944
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResult}
|
|
60945
|
+
*/
|
|
60946
|
+
proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader = function (msg, reader) {
|
|
60947
|
+
while (reader.nextField()) {
|
|
60948
|
+
if (reader.isEndGroup()) {
|
|
60949
|
+
break;
|
|
60950
|
+
}
|
|
60951
|
+
var field = reader.getFieldNumber();
|
|
60952
|
+
switch (field) {
|
|
60953
|
+
case 1:
|
|
60954
|
+
var value = new proto.clarifai.api.WorkflowEvaluationResultSummary;
|
|
60955
|
+
reader.readMessage(value, proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader);
|
|
60956
|
+
msg.setSummary(value);
|
|
60957
|
+
break;
|
|
60958
|
+
default:
|
|
60959
|
+
reader.skipField();
|
|
60960
|
+
break;
|
|
60961
|
+
}
|
|
60962
|
+
}
|
|
60963
|
+
return msg;
|
|
60964
|
+
};
|
|
60965
|
+
/**
|
|
60966
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
60967
|
+
* @return {!Uint8Array}
|
|
60968
|
+
*/
|
|
60969
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.serializeBinary = function () {
|
|
60970
|
+
var writer = new jspb.BinaryWriter();
|
|
60971
|
+
proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter(this, writer);
|
|
60972
|
+
return writer.getResultBuffer();
|
|
60973
|
+
};
|
|
60974
|
+
/**
|
|
60975
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
60976
|
+
* format), writing to the given BinaryWriter.
|
|
60977
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResult} message
|
|
60978
|
+
* @param {!jspb.BinaryWriter} writer
|
|
60979
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60980
|
+
*/
|
|
60981
|
+
proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter = function (message, writer) {
|
|
60982
|
+
var f = undefined;
|
|
60983
|
+
f = message.getSummary();
|
|
60984
|
+
if (f != null) {
|
|
60985
|
+
writer.writeMessage(1, f, proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter);
|
|
60986
|
+
}
|
|
60987
|
+
};
|
|
60988
|
+
/**
|
|
60989
|
+
* optional WorkflowEvaluationResultSummary summary = 1;
|
|
60990
|
+
* @return {?proto.clarifai.api.WorkflowEvaluationResultSummary}
|
|
60991
|
+
*/
|
|
60992
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.getSummary = function () {
|
|
60993
|
+
return /** @type{?proto.clarifai.api.WorkflowEvaluationResultSummary} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowEvaluationResultSummary, 1));
|
|
60994
|
+
};
|
|
60995
|
+
/**
|
|
60996
|
+
* @param {?proto.clarifai.api.WorkflowEvaluationResultSummary|undefined} value
|
|
60997
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResult} returns this
|
|
60998
|
+
*/
|
|
60999
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.setSummary = function (value) {
|
|
61000
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
61001
|
+
};
|
|
61002
|
+
/**
|
|
61003
|
+
* Clears the message field making it undefined.
|
|
61004
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResult} returns this
|
|
61005
|
+
*/
|
|
61006
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.clearSummary = function () {
|
|
61007
|
+
return this.setSummary(undefined);
|
|
61008
|
+
};
|
|
61009
|
+
/**
|
|
61010
|
+
* Returns whether this field is set.
|
|
61011
|
+
* @return {boolean}
|
|
61012
|
+
*/
|
|
61013
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.hasSummary = function () {
|
|
61014
|
+
return jspb.Message.getField(this, 1) != null;
|
|
61015
|
+
};
|
|
61016
|
+
/**
|
|
61017
|
+
* List of repeated fields within this message type.
|
|
61018
|
+
* @private {!Array<number>}
|
|
61019
|
+
* @const
|
|
61020
|
+
*/
|
|
61021
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.repeatedFields_ = [2];
|
|
61022
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
61023
|
+
/**
|
|
61024
|
+
* Creates an object representation of this proto.
|
|
61025
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
61026
|
+
* Optional fields that are not set will be set to undefined.
|
|
61027
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
61028
|
+
* For the list of reserved names please see:
|
|
61029
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
61030
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
61031
|
+
* JSPB instance for transitional soy proto support:
|
|
61032
|
+
* http://goto/soy-param-migration
|
|
61033
|
+
* @return {!Object}
|
|
61034
|
+
*/
|
|
61035
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.toObject = function (opt_includeInstance) {
|
|
61036
|
+
return proto.clarifai.api.WorkflowEvaluationResultSummary.toObject(opt_includeInstance, this);
|
|
61037
|
+
};
|
|
61038
|
+
/**
|
|
61039
|
+
* Static version of the {@see toObject} method.
|
|
61040
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
61041
|
+
* the JSPB instance for transitional soy proto support:
|
|
61042
|
+
* http://goto/soy-param-migration
|
|
61043
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} msg The msg instance to transform.
|
|
61044
|
+
* @return {!Object}
|
|
61045
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61046
|
+
*/
|
|
61047
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.toObject = function (includeInstance, msg) {
|
|
61048
|
+
var f, obj = {
|
|
61049
|
+
evaluationMetricValuesList: jspb.Message.toObjectList(msg.getEvaluationMetricValuesList(), proto.clarifai.api.EvaluationMetricValue.toObject, includeInstance)
|
|
61050
|
+
};
|
|
61051
|
+
if (includeInstance) {
|
|
61052
|
+
obj.$jspbMessageInstance = msg;
|
|
61053
|
+
}
|
|
61054
|
+
return obj;
|
|
61055
|
+
};
|
|
61056
|
+
}
|
|
61057
|
+
/**
|
|
61058
|
+
* Deserializes binary data (in protobuf wire format).
|
|
61059
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
61060
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResultSummary}
|
|
61061
|
+
*/
|
|
61062
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinary = function (bytes) {
|
|
61063
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
61064
|
+
var msg = new proto.clarifai.api.WorkflowEvaluationResultSummary;
|
|
61065
|
+
return proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader(msg, reader);
|
|
61066
|
+
};
|
|
61067
|
+
/**
|
|
61068
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
61069
|
+
* given reader into the given message object.
|
|
61070
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} msg The message object to deserialize into.
|
|
61071
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
61072
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResultSummary}
|
|
61073
|
+
*/
|
|
61074
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader = function (msg, reader) {
|
|
61075
|
+
while (reader.nextField()) {
|
|
61076
|
+
if (reader.isEndGroup()) {
|
|
61077
|
+
break;
|
|
61078
|
+
}
|
|
61079
|
+
var field = reader.getFieldNumber();
|
|
61080
|
+
switch (field) {
|
|
61081
|
+
case 2:
|
|
61082
|
+
var value = new proto.clarifai.api.EvaluationMetricValue;
|
|
61083
|
+
reader.readMessage(value, proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader);
|
|
61084
|
+
msg.addEvaluationMetricValues(value);
|
|
61085
|
+
break;
|
|
61086
|
+
default:
|
|
61087
|
+
reader.skipField();
|
|
61088
|
+
break;
|
|
61089
|
+
}
|
|
61090
|
+
}
|
|
61091
|
+
return msg;
|
|
61092
|
+
};
|
|
61093
|
+
/**
|
|
61094
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
61095
|
+
* @return {!Uint8Array}
|
|
61096
|
+
*/
|
|
61097
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.serializeBinary = function () {
|
|
61098
|
+
var writer = new jspb.BinaryWriter();
|
|
61099
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter(this, writer);
|
|
61100
|
+
return writer.getResultBuffer();
|
|
61101
|
+
};
|
|
61102
|
+
/**
|
|
61103
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
61104
|
+
* format), writing to the given BinaryWriter.
|
|
61105
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} message
|
|
61106
|
+
* @param {!jspb.BinaryWriter} writer
|
|
61107
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61108
|
+
*/
|
|
61109
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter = function (message, writer) {
|
|
61110
|
+
var f = undefined;
|
|
61111
|
+
f = message.getEvaluationMetricValuesList();
|
|
61112
|
+
if (f.length > 0) {
|
|
61113
|
+
writer.writeRepeatedMessage(2, f, proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter);
|
|
61114
|
+
}
|
|
61115
|
+
};
|
|
61116
|
+
/**
|
|
61117
|
+
* repeated EvaluationMetricValue evaluation_metric_values = 2;
|
|
61118
|
+
* @return {!Array<!proto.clarifai.api.EvaluationMetricValue>}
|
|
61119
|
+
*/
|
|
61120
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.getEvaluationMetricValuesList = function () {
|
|
61121
|
+
return /** @type{!Array<!proto.clarifai.api.EvaluationMetricValue>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.EvaluationMetricValue, 2));
|
|
61122
|
+
};
|
|
61123
|
+
/**
|
|
61124
|
+
* @param {!Array<!proto.clarifai.api.EvaluationMetricValue>} value
|
|
61125
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResultSummary} returns this
|
|
61126
|
+
*/
|
|
61127
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.setEvaluationMetricValuesList = function (value) {
|
|
61128
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
61129
|
+
};
|
|
61130
|
+
/**
|
|
61131
|
+
* @param {!proto.clarifai.api.EvaluationMetricValue=} opt_value
|
|
61132
|
+
* @param {number=} opt_index
|
|
61133
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue}
|
|
61134
|
+
*/
|
|
61135
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.addEvaluationMetricValues = function (opt_value, opt_index) {
|
|
61136
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.EvaluationMetricValue, opt_index);
|
|
61137
|
+
};
|
|
61138
|
+
/**
|
|
61139
|
+
* Clears the list making it empty but non-null.
|
|
61140
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResultSummary} returns this
|
|
61141
|
+
*/
|
|
61142
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.clearEvaluationMetricValuesList = function () {
|
|
61143
|
+
return this.setEvaluationMetricValuesList([]);
|
|
61144
|
+
};
|
|
61145
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
61146
|
+
/**
|
|
61147
|
+
* Creates an object representation of this proto.
|
|
61148
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
61149
|
+
* Optional fields that are not set will be set to undefined.
|
|
61150
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
61151
|
+
* For the list of reserved names please see:
|
|
61152
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
61153
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
61154
|
+
* JSPB instance for transitional soy proto support:
|
|
61155
|
+
* http://goto/soy-param-migration
|
|
61156
|
+
* @return {!Object}
|
|
61157
|
+
*/
|
|
61158
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.toObject = function (opt_includeInstance) {
|
|
61159
|
+
return proto.clarifai.api.EvaluationMetricValue.toObject(opt_includeInstance, this);
|
|
61160
|
+
};
|
|
61161
|
+
/**
|
|
61162
|
+
* Static version of the {@see toObject} method.
|
|
61163
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
61164
|
+
* the JSPB instance for transitional soy proto support:
|
|
61165
|
+
* http://goto/soy-param-migration
|
|
61166
|
+
* @param {!proto.clarifai.api.EvaluationMetricValue} msg The msg instance to transform.
|
|
61167
|
+
* @return {!Object}
|
|
61168
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61169
|
+
*/
|
|
61170
|
+
proto.clarifai.api.EvaluationMetricValue.toObject = function (includeInstance, msg) {
|
|
61171
|
+
var f, obj = {
|
|
61172
|
+
evaluationMetricId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
61173
|
+
metricValue: (f = msg.getMetricValue()) && proto.clarifai.api.MetricValue.toObject(includeInstance, f),
|
|
61174
|
+
explanation: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
61175
|
+
perConceptValuesMap: (f = msg.getPerConceptValuesMap()) ? f.toObject(includeInstance, proto.clarifai.api.MetricValue.toObject) : []
|
|
61176
|
+
};
|
|
61177
|
+
if (includeInstance) {
|
|
61178
|
+
obj.$jspbMessageInstance = msg;
|
|
61179
|
+
}
|
|
61180
|
+
return obj;
|
|
61181
|
+
};
|
|
61182
|
+
}
|
|
61183
|
+
/**
|
|
61184
|
+
* Deserializes binary data (in protobuf wire format).
|
|
61185
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
61186
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue}
|
|
61187
|
+
*/
|
|
61188
|
+
proto.clarifai.api.EvaluationMetricValue.deserializeBinary = function (bytes) {
|
|
61189
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
61190
|
+
var msg = new proto.clarifai.api.EvaluationMetricValue;
|
|
61191
|
+
return proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader(msg, reader);
|
|
61192
|
+
};
|
|
61193
|
+
/**
|
|
61194
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
61195
|
+
* given reader into the given message object.
|
|
61196
|
+
* @param {!proto.clarifai.api.EvaluationMetricValue} msg The message object to deserialize into.
|
|
61197
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
61198
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue}
|
|
61199
|
+
*/
|
|
61200
|
+
proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader = function (msg, reader) {
|
|
61201
|
+
while (reader.nextField()) {
|
|
61202
|
+
if (reader.isEndGroup()) {
|
|
61203
|
+
break;
|
|
61204
|
+
}
|
|
61205
|
+
var field = reader.getFieldNumber();
|
|
61206
|
+
switch (field) {
|
|
61207
|
+
case 1:
|
|
61208
|
+
var value = /** @type {string} */ (reader.readString());
|
|
61209
|
+
msg.setEvaluationMetricId(value);
|
|
61210
|
+
break;
|
|
61211
|
+
case 2:
|
|
61212
|
+
var value = new proto.clarifai.api.MetricValue;
|
|
61213
|
+
reader.readMessage(value, proto.clarifai.api.MetricValue.deserializeBinaryFromReader);
|
|
61214
|
+
msg.setMetricValue(value);
|
|
61215
|
+
break;
|
|
61216
|
+
case 3:
|
|
61217
|
+
var value = /** @type {string} */ (reader.readString());
|
|
61218
|
+
msg.setExplanation(value);
|
|
61219
|
+
break;
|
|
61220
|
+
case 4:
|
|
61221
|
+
var value = msg.getPerConceptValuesMap();
|
|
61222
|
+
reader.readMessage(value, function (message, reader) {
|
|
61223
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.MetricValue.deserializeBinaryFromReader, "", new proto.clarifai.api.MetricValue());
|
|
61224
|
+
});
|
|
61225
|
+
break;
|
|
61226
|
+
default:
|
|
61227
|
+
reader.skipField();
|
|
61228
|
+
break;
|
|
61229
|
+
}
|
|
61230
|
+
}
|
|
61231
|
+
return msg;
|
|
61232
|
+
};
|
|
61233
|
+
/**
|
|
61234
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
61235
|
+
* @return {!Uint8Array}
|
|
61236
|
+
*/
|
|
61237
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.serializeBinary = function () {
|
|
61238
|
+
var writer = new jspb.BinaryWriter();
|
|
61239
|
+
proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter(this, writer);
|
|
61240
|
+
return writer.getResultBuffer();
|
|
61241
|
+
};
|
|
61242
|
+
/**
|
|
61243
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
61244
|
+
* format), writing to the given BinaryWriter.
|
|
61245
|
+
* @param {!proto.clarifai.api.EvaluationMetricValue} message
|
|
61246
|
+
* @param {!jspb.BinaryWriter} writer
|
|
61247
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61248
|
+
*/
|
|
61249
|
+
proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter = function (message, writer) {
|
|
61250
|
+
var f = undefined;
|
|
61251
|
+
f = message.getEvaluationMetricId();
|
|
61252
|
+
if (f.length > 0) {
|
|
61253
|
+
writer.writeString(1, f);
|
|
61254
|
+
}
|
|
61255
|
+
f = message.getMetricValue();
|
|
61256
|
+
if (f != null) {
|
|
61257
|
+
writer.writeMessage(2, f, proto.clarifai.api.MetricValue.serializeBinaryToWriter);
|
|
61258
|
+
}
|
|
61259
|
+
f = message.getExplanation();
|
|
61260
|
+
if (f.length > 0) {
|
|
61261
|
+
writer.writeString(3, f);
|
|
61262
|
+
}
|
|
61263
|
+
f = message.getPerConceptValuesMap(true);
|
|
61264
|
+
if (f && f.getLength() > 0) {
|
|
61265
|
+
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.MetricValue.serializeBinaryToWriter);
|
|
61266
|
+
}
|
|
61267
|
+
};
|
|
61268
|
+
/**
|
|
61269
|
+
* optional string evaluation_metric_id = 1;
|
|
61270
|
+
* @return {string}
|
|
61271
|
+
*/
|
|
61272
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.getEvaluationMetricId = function () {
|
|
61273
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
61274
|
+
};
|
|
61275
|
+
/**
|
|
61276
|
+
* @param {string} value
|
|
61277
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue} returns this
|
|
61278
|
+
*/
|
|
61279
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.setEvaluationMetricId = function (value) {
|
|
61280
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
61281
|
+
};
|
|
61282
|
+
/**
|
|
61283
|
+
* optional MetricValue metric_value = 2;
|
|
61284
|
+
* @return {?proto.clarifai.api.MetricValue}
|
|
61285
|
+
*/
|
|
61286
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.getMetricValue = function () {
|
|
61287
|
+
return /** @type{?proto.clarifai.api.MetricValue} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.MetricValue, 2));
|
|
61288
|
+
};
|
|
61289
|
+
/**
|
|
61290
|
+
* @param {?proto.clarifai.api.MetricValue|undefined} value
|
|
61291
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue} returns this
|
|
61292
|
+
*/
|
|
61293
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.setMetricValue = function (value) {
|
|
61294
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
61295
|
+
};
|
|
61296
|
+
/**
|
|
61297
|
+
* Clears the message field making it undefined.
|
|
61298
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue} returns this
|
|
61299
|
+
*/
|
|
61300
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.clearMetricValue = function () {
|
|
61301
|
+
return this.setMetricValue(undefined);
|
|
61302
|
+
};
|
|
61303
|
+
/**
|
|
61304
|
+
* Returns whether this field is set.
|
|
61305
|
+
* @return {boolean}
|
|
61306
|
+
*/
|
|
61307
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.hasMetricValue = function () {
|
|
61308
|
+
return jspb.Message.getField(this, 2) != null;
|
|
61309
|
+
};
|
|
61310
|
+
/**
|
|
61311
|
+
* optional string explanation = 3;
|
|
61312
|
+
* @return {string}
|
|
61313
|
+
*/
|
|
61314
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.getExplanation = function () {
|
|
61315
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
61316
|
+
};
|
|
61317
|
+
/**
|
|
61318
|
+
* @param {string} value
|
|
61319
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue} returns this
|
|
61320
|
+
*/
|
|
61321
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.setExplanation = function (value) {
|
|
61322
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
61323
|
+
};
|
|
61324
|
+
/**
|
|
61325
|
+
* map<string, MetricValue> per_concept_values = 4;
|
|
61326
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
61327
|
+
* empty, instead returning `undefined`
|
|
61328
|
+
* @return {!jspb.Map<string,!proto.clarifai.api.MetricValue>}
|
|
61329
|
+
*/
|
|
61330
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.getPerConceptValuesMap = function (opt_noLazyCreate) {
|
|
61331
|
+
return /** @type {!jspb.Map<string,!proto.clarifai.api.MetricValue>} */ (jspb.Message.getMapField(this, 4, opt_noLazyCreate, proto.clarifai.api.MetricValue));
|
|
61332
|
+
};
|
|
61333
|
+
/**
|
|
61334
|
+
* Clears values from the map. The map will be non-null.
|
|
61335
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue} returns this
|
|
61336
|
+
*/
|
|
61337
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.clearPerConceptValuesMap = function () {
|
|
61338
|
+
this.getPerConceptValuesMap().clear();
|
|
61339
|
+
return this;
|
|
61340
|
+
};
|
|
61341
|
+
/**
|
|
61342
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
61343
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
61344
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
61345
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
61346
|
+
* @private {!Array<!Array<number>>}
|
|
61347
|
+
* @const
|
|
61348
|
+
*/
|
|
61349
|
+
proto.clarifai.api.MetricValue.oneofGroups_ = [[1, 2, 3]];
|
|
61350
|
+
/**
|
|
61351
|
+
* @enum {number}
|
|
61352
|
+
*/
|
|
61353
|
+
proto.clarifai.api.MetricValue.MetricValueCase = {
|
|
61354
|
+
METRIC_VALUE_NOT_SET: 0,
|
|
61355
|
+
STRING_VALUE: 1,
|
|
61356
|
+
FLOAT_VALUE: 2,
|
|
61357
|
+
INT_VALUE: 3
|
|
61358
|
+
};
|
|
61359
|
+
/**
|
|
61360
|
+
* @return {proto.clarifai.api.MetricValue.MetricValueCase}
|
|
61361
|
+
*/
|
|
61362
|
+
proto.clarifai.api.MetricValue.prototype.getMetricValueCase = function () {
|
|
61363
|
+
return /** @type {proto.clarifai.api.MetricValue.MetricValueCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.MetricValue.oneofGroups_[0]));
|
|
61364
|
+
};
|
|
61365
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
61366
|
+
/**
|
|
61367
|
+
* Creates an object representation of this proto.
|
|
61368
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
61369
|
+
* Optional fields that are not set will be set to undefined.
|
|
61370
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
61371
|
+
* For the list of reserved names please see:
|
|
61372
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
61373
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
61374
|
+
* JSPB instance for transitional soy proto support:
|
|
61375
|
+
* http://goto/soy-param-migration
|
|
61376
|
+
* @return {!Object}
|
|
61377
|
+
*/
|
|
61378
|
+
proto.clarifai.api.MetricValue.prototype.toObject = function (opt_includeInstance) {
|
|
61379
|
+
return proto.clarifai.api.MetricValue.toObject(opt_includeInstance, this);
|
|
61380
|
+
};
|
|
61381
|
+
/**
|
|
61382
|
+
* Static version of the {@see toObject} method.
|
|
61383
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
61384
|
+
* the JSPB instance for transitional soy proto support:
|
|
61385
|
+
* http://goto/soy-param-migration
|
|
61386
|
+
* @param {!proto.clarifai.api.MetricValue} msg The msg instance to transform.
|
|
61387
|
+
* @return {!Object}
|
|
61388
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61389
|
+
*/
|
|
61390
|
+
proto.clarifai.api.MetricValue.toObject = function (includeInstance, msg) {
|
|
61391
|
+
var f, obj = {
|
|
61392
|
+
stringValue: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
61393
|
+
floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
61394
|
+
intValue: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
61395
|
+
};
|
|
61396
|
+
if (includeInstance) {
|
|
61397
|
+
obj.$jspbMessageInstance = msg;
|
|
61398
|
+
}
|
|
61399
|
+
return obj;
|
|
61400
|
+
};
|
|
61401
|
+
}
|
|
61402
|
+
/**
|
|
61403
|
+
* Deserializes binary data (in protobuf wire format).
|
|
61404
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
61405
|
+
* @return {!proto.clarifai.api.MetricValue}
|
|
61406
|
+
*/
|
|
61407
|
+
proto.clarifai.api.MetricValue.deserializeBinary = function (bytes) {
|
|
61408
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
61409
|
+
var msg = new proto.clarifai.api.MetricValue;
|
|
61410
|
+
return proto.clarifai.api.MetricValue.deserializeBinaryFromReader(msg, reader);
|
|
61411
|
+
};
|
|
61412
|
+
/**
|
|
61413
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
61414
|
+
* given reader into the given message object.
|
|
61415
|
+
* @param {!proto.clarifai.api.MetricValue} msg The message object to deserialize into.
|
|
61416
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
61417
|
+
* @return {!proto.clarifai.api.MetricValue}
|
|
61418
|
+
*/
|
|
61419
|
+
proto.clarifai.api.MetricValue.deserializeBinaryFromReader = function (msg, reader) {
|
|
61420
|
+
while (reader.nextField()) {
|
|
61421
|
+
if (reader.isEndGroup()) {
|
|
61422
|
+
break;
|
|
61423
|
+
}
|
|
61424
|
+
var field = reader.getFieldNumber();
|
|
61425
|
+
switch (field) {
|
|
61426
|
+
case 1:
|
|
61427
|
+
var value = /** @type {string} */ (reader.readString());
|
|
61428
|
+
msg.setStringValue(value);
|
|
61429
|
+
break;
|
|
61430
|
+
case 2:
|
|
61431
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
61432
|
+
msg.setFloatValue(value);
|
|
61433
|
+
break;
|
|
61434
|
+
case 3:
|
|
61435
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
61436
|
+
msg.setIntValue(value);
|
|
61437
|
+
break;
|
|
61438
|
+
default:
|
|
61439
|
+
reader.skipField();
|
|
61440
|
+
break;
|
|
61441
|
+
}
|
|
61442
|
+
}
|
|
61443
|
+
return msg;
|
|
61444
|
+
};
|
|
61445
|
+
/**
|
|
61446
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
61447
|
+
* @return {!Uint8Array}
|
|
61448
|
+
*/
|
|
61449
|
+
proto.clarifai.api.MetricValue.prototype.serializeBinary = function () {
|
|
61450
|
+
var writer = new jspb.BinaryWriter();
|
|
61451
|
+
proto.clarifai.api.MetricValue.serializeBinaryToWriter(this, writer);
|
|
61452
|
+
return writer.getResultBuffer();
|
|
61453
|
+
};
|
|
61454
|
+
/**
|
|
61455
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
61456
|
+
* format), writing to the given BinaryWriter.
|
|
61457
|
+
* @param {!proto.clarifai.api.MetricValue} message
|
|
61458
|
+
* @param {!jspb.BinaryWriter} writer
|
|
61459
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61460
|
+
*/
|
|
61461
|
+
proto.clarifai.api.MetricValue.serializeBinaryToWriter = function (message, writer) {
|
|
61462
|
+
var f = undefined;
|
|
61463
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
61464
|
+
if (f != null) {
|
|
61465
|
+
writer.writeString(1, f);
|
|
61466
|
+
}
|
|
61467
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
61468
|
+
if (f != null) {
|
|
61469
|
+
writer.writeFloat(2, f);
|
|
61470
|
+
}
|
|
61471
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
61472
|
+
if (f != null) {
|
|
61473
|
+
writer.writeInt32(3, f);
|
|
61474
|
+
}
|
|
61475
|
+
};
|
|
61476
|
+
/**
|
|
61477
|
+
* optional string string_value = 1;
|
|
61478
|
+
* @return {string}
|
|
61479
|
+
*/
|
|
61480
|
+
proto.clarifai.api.MetricValue.prototype.getStringValue = function () {
|
|
61481
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
61482
|
+
};
|
|
61483
|
+
/**
|
|
61484
|
+
* @param {string} value
|
|
61485
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
61486
|
+
*/
|
|
61487
|
+
proto.clarifai.api.MetricValue.prototype.setStringValue = function (value) {
|
|
61488
|
+
return jspb.Message.setOneofField(this, 1, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
|
|
61489
|
+
};
|
|
61490
|
+
/**
|
|
61491
|
+
* Clears the field making it undefined.
|
|
61492
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
61493
|
+
*/
|
|
61494
|
+
proto.clarifai.api.MetricValue.prototype.clearStringValue = function () {
|
|
61495
|
+
return jspb.Message.setOneofField(this, 1, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
|
|
61496
|
+
};
|
|
61497
|
+
/**
|
|
61498
|
+
* Returns whether this field is set.
|
|
61499
|
+
* @return {boolean}
|
|
61500
|
+
*/
|
|
61501
|
+
proto.clarifai.api.MetricValue.prototype.hasStringValue = function () {
|
|
61502
|
+
return jspb.Message.getField(this, 1) != null;
|
|
61503
|
+
};
|
|
61504
|
+
/**
|
|
61505
|
+
* optional float float_value = 2;
|
|
61506
|
+
* @return {number}
|
|
61507
|
+
*/
|
|
61508
|
+
proto.clarifai.api.MetricValue.prototype.getFloatValue = function () {
|
|
61509
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
61510
|
+
};
|
|
61511
|
+
/**
|
|
61512
|
+
* @param {number} value
|
|
61513
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
61514
|
+
*/
|
|
61515
|
+
proto.clarifai.api.MetricValue.prototype.setFloatValue = function (value) {
|
|
61516
|
+
return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
|
|
61517
|
+
};
|
|
61518
|
+
/**
|
|
61519
|
+
* Clears the field making it undefined.
|
|
61520
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
61521
|
+
*/
|
|
61522
|
+
proto.clarifai.api.MetricValue.prototype.clearFloatValue = function () {
|
|
61523
|
+
return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
|
|
61524
|
+
};
|
|
61525
|
+
/**
|
|
61526
|
+
* Returns whether this field is set.
|
|
61527
|
+
* @return {boolean}
|
|
61528
|
+
*/
|
|
61529
|
+
proto.clarifai.api.MetricValue.prototype.hasFloatValue = function () {
|
|
61530
|
+
return jspb.Message.getField(this, 2) != null;
|
|
61531
|
+
};
|
|
61532
|
+
/**
|
|
61533
|
+
* optional int32 int_value = 3;
|
|
61534
|
+
* @return {number}
|
|
61535
|
+
*/
|
|
61536
|
+
proto.clarifai.api.MetricValue.prototype.getIntValue = function () {
|
|
61537
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
61538
|
+
};
|
|
61539
|
+
/**
|
|
61540
|
+
* @param {number} value
|
|
61541
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
61542
|
+
*/
|
|
61543
|
+
proto.clarifai.api.MetricValue.prototype.setIntValue = function (value) {
|
|
61544
|
+
return jspb.Message.setOneofField(this, 3, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
|
|
61545
|
+
};
|
|
61546
|
+
/**
|
|
61547
|
+
* Clears the field making it undefined.
|
|
61548
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
61549
|
+
*/
|
|
61550
|
+
proto.clarifai.api.MetricValue.prototype.clearIntValue = function () {
|
|
61551
|
+
return jspb.Message.setOneofField(this, 3, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
|
|
61552
|
+
};
|
|
61553
|
+
/**
|
|
61554
|
+
* Returns whether this field is set.
|
|
61555
|
+
* @return {boolean}
|
|
61556
|
+
*/
|
|
61557
|
+
proto.clarifai.api.MetricValue.prototype.hasIntValue = function () {
|
|
61558
|
+
return jspb.Message.getField(this, 3) != null;
|
|
61559
|
+
};
|
|
61560
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
61561
|
+
/**
|
|
61562
|
+
* Creates an object representation of this proto.
|
|
61563
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
61564
|
+
* Optional fields that are not set will be set to undefined.
|
|
61565
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
61566
|
+
* For the list of reserved names please see:
|
|
61567
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
61568
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
61569
|
+
* JSPB instance for transitional soy proto support:
|
|
61570
|
+
* http://goto/soy-param-migration
|
|
61571
|
+
* @return {!Object}
|
|
61572
|
+
*/
|
|
61573
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.toObject = function (opt_includeInstance) {
|
|
61574
|
+
return proto.clarifai.api.ArgoOrchestrationSpec.toObject(opt_includeInstance, this);
|
|
61575
|
+
};
|
|
61576
|
+
/**
|
|
61577
|
+
* Static version of the {@see toObject} method.
|
|
61578
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
61579
|
+
* the JSPB instance for transitional soy proto support:
|
|
61580
|
+
* http://goto/soy-param-migration
|
|
61581
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The msg instance to transform.
|
|
61582
|
+
* @return {!Object}
|
|
61583
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61584
|
+
*/
|
|
61585
|
+
proto.clarifai.api.ArgoOrchestrationSpec.toObject = function (includeInstance, msg) {
|
|
61586
|
+
var f, obj = {
|
|
61587
|
+
apiVersion: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
61588
|
+
specJson: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
61589
|
+
};
|
|
61590
|
+
if (includeInstance) {
|
|
61591
|
+
obj.$jspbMessageInstance = msg;
|
|
61592
|
+
}
|
|
61593
|
+
return obj;
|
|
61594
|
+
};
|
|
61595
|
+
}
|
|
61596
|
+
/**
|
|
61597
|
+
* Deserializes binary data (in protobuf wire format).
|
|
61598
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
61599
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationSpec}
|
|
61600
|
+
*/
|
|
61601
|
+
proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinary = function (bytes) {
|
|
61602
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
61603
|
+
var msg = new proto.clarifai.api.ArgoOrchestrationSpec;
|
|
61604
|
+
return proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader(msg, reader);
|
|
61605
|
+
};
|
|
61606
|
+
/**
|
|
61607
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
61608
|
+
* given reader into the given message object.
|
|
61609
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The message object to deserialize into.
|
|
61610
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
61611
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationSpec}
|
|
61612
|
+
*/
|
|
61613
|
+
proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader = function (msg, reader) {
|
|
61614
|
+
while (reader.nextField()) {
|
|
61615
|
+
if (reader.isEndGroup()) {
|
|
61616
|
+
break;
|
|
61617
|
+
}
|
|
61618
|
+
var field = reader.getFieldNumber();
|
|
61619
|
+
switch (field) {
|
|
61620
|
+
case 2:
|
|
61621
|
+
var value = /** @type {string} */ (reader.readString());
|
|
61622
|
+
msg.setApiVersion(value);
|
|
61623
|
+
break;
|
|
61624
|
+
case 3:
|
|
61625
|
+
var value = /** @type {string} */ (reader.readString());
|
|
61626
|
+
msg.setSpecJson(value);
|
|
61627
|
+
break;
|
|
61628
|
+
default:
|
|
61629
|
+
reader.skipField();
|
|
61630
|
+
break;
|
|
61631
|
+
}
|
|
61632
|
+
}
|
|
61633
|
+
return msg;
|
|
61634
|
+
};
|
|
61635
|
+
/**
|
|
61636
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
61637
|
+
* @return {!Uint8Array}
|
|
61638
|
+
*/
|
|
61639
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.serializeBinary = function () {
|
|
61640
|
+
var writer = new jspb.BinaryWriter();
|
|
61641
|
+
proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter(this, writer);
|
|
61642
|
+
return writer.getResultBuffer();
|
|
61643
|
+
};
|
|
61644
|
+
/**
|
|
61645
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
61646
|
+
* format), writing to the given BinaryWriter.
|
|
61647
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationSpec} message
|
|
61648
|
+
* @param {!jspb.BinaryWriter} writer
|
|
61649
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61650
|
+
*/
|
|
61651
|
+
proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter = function (message, writer) {
|
|
61652
|
+
var f = undefined;
|
|
61653
|
+
f = message.getApiVersion();
|
|
61654
|
+
if (f.length > 0) {
|
|
61655
|
+
writer.writeString(2, f);
|
|
61656
|
+
}
|
|
61657
|
+
f = message.getSpecJson();
|
|
61658
|
+
if (f.length > 0) {
|
|
61659
|
+
writer.writeString(3, f);
|
|
61660
|
+
}
|
|
61661
|
+
};
|
|
61662
|
+
/**
|
|
61663
|
+
* optional string api_version = 2;
|
|
61664
|
+
* @return {string}
|
|
61665
|
+
*/
|
|
61666
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.getApiVersion = function () {
|
|
61667
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
61668
|
+
};
|
|
61669
|
+
/**
|
|
61670
|
+
* @param {string} value
|
|
61671
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
|
|
61672
|
+
*/
|
|
61673
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.setApiVersion = function (value) {
|
|
61674
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
61675
|
+
};
|
|
61676
|
+
/**
|
|
61677
|
+
* optional string spec_json = 3;
|
|
61678
|
+
* @return {string}
|
|
61679
|
+
*/
|
|
61680
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.getSpecJson = function () {
|
|
61681
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
61682
|
+
};
|
|
61683
|
+
/**
|
|
61684
|
+
* @param {string} value
|
|
61685
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
|
|
61686
|
+
*/
|
|
61687
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.setSpecJson = function (value) {
|
|
61688
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
61689
|
+
};
|
|
61690
|
+
/**
|
|
61691
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
61692
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
61693
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
61694
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
61695
|
+
* @private {!Array<!Array<number>>}
|
|
61696
|
+
* @const
|
|
61697
|
+
*/
|
|
61698
|
+
proto.clarifai.api.OrchestrationSpec.oneofGroups_ = [[1]];
|
|
61699
|
+
/**
|
|
61700
|
+
* @enum {number}
|
|
61701
|
+
*/
|
|
61702
|
+
proto.clarifai.api.OrchestrationSpec.OrchestrationCase = {
|
|
61703
|
+
ORCHESTRATION_NOT_SET: 0,
|
|
61704
|
+
ARGO_ORCHESTRATION_SPEC: 1
|
|
61705
|
+
};
|
|
61706
|
+
/**
|
|
61707
|
+
* @return {proto.clarifai.api.OrchestrationSpec.OrchestrationCase}
|
|
61708
|
+
*/
|
|
61709
|
+
proto.clarifai.api.OrchestrationSpec.prototype.getOrchestrationCase = function () {
|
|
61710
|
+
return /** @type {proto.clarifai.api.OrchestrationSpec.OrchestrationCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0]));
|
|
61711
|
+
};
|
|
61712
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
61713
|
+
/**
|
|
61714
|
+
* Creates an object representation of this proto.
|
|
61715
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
61716
|
+
* Optional fields that are not set will be set to undefined.
|
|
61717
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
61718
|
+
* For the list of reserved names please see:
|
|
61719
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
61720
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
61721
|
+
* JSPB instance for transitional soy proto support:
|
|
61722
|
+
* http://goto/soy-param-migration
|
|
61723
|
+
* @return {!Object}
|
|
61724
|
+
*/
|
|
61725
|
+
proto.clarifai.api.OrchestrationSpec.prototype.toObject = function (opt_includeInstance) {
|
|
61726
|
+
return proto.clarifai.api.OrchestrationSpec.toObject(opt_includeInstance, this);
|
|
61727
|
+
};
|
|
61728
|
+
/**
|
|
61729
|
+
* Static version of the {@see toObject} method.
|
|
61730
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
61731
|
+
* the JSPB instance for transitional soy proto support:
|
|
61732
|
+
* http://goto/soy-param-migration
|
|
61733
|
+
* @param {!proto.clarifai.api.OrchestrationSpec} msg The msg instance to transform.
|
|
61734
|
+
* @return {!Object}
|
|
61735
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61736
|
+
*/
|
|
61737
|
+
proto.clarifai.api.OrchestrationSpec.toObject = function (includeInstance, msg) {
|
|
61738
|
+
var f, obj = {
|
|
61739
|
+
argoOrchestrationSpec: (f = msg.getArgoOrchestrationSpec()) && proto.clarifai.api.ArgoOrchestrationSpec.toObject(includeInstance, f)
|
|
61740
|
+
};
|
|
61741
|
+
if (includeInstance) {
|
|
61742
|
+
obj.$jspbMessageInstance = msg;
|
|
61743
|
+
}
|
|
61744
|
+
return obj;
|
|
61745
|
+
};
|
|
61746
|
+
}
|
|
61747
|
+
/**
|
|
61748
|
+
* Deserializes binary data (in protobuf wire format).
|
|
61749
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
61750
|
+
* @return {!proto.clarifai.api.OrchestrationSpec}
|
|
61751
|
+
*/
|
|
61752
|
+
proto.clarifai.api.OrchestrationSpec.deserializeBinary = function (bytes) {
|
|
61753
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
61754
|
+
var msg = new proto.clarifai.api.OrchestrationSpec;
|
|
61755
|
+
return proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader(msg, reader);
|
|
61756
|
+
};
|
|
61757
|
+
/**
|
|
61758
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
61759
|
+
* given reader into the given message object.
|
|
61760
|
+
* @param {!proto.clarifai.api.OrchestrationSpec} msg The message object to deserialize into.
|
|
61761
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
61762
|
+
* @return {!proto.clarifai.api.OrchestrationSpec}
|
|
61763
|
+
*/
|
|
61764
|
+
proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader = function (msg, reader) {
|
|
61765
|
+
while (reader.nextField()) {
|
|
61766
|
+
if (reader.isEndGroup()) {
|
|
61767
|
+
break;
|
|
61768
|
+
}
|
|
61769
|
+
var field = reader.getFieldNumber();
|
|
61770
|
+
switch (field) {
|
|
61771
|
+
case 1:
|
|
61772
|
+
var value = new proto.clarifai.api.ArgoOrchestrationSpec;
|
|
61773
|
+
reader.readMessage(value, proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader);
|
|
61774
|
+
msg.setArgoOrchestrationSpec(value);
|
|
61775
|
+
break;
|
|
61776
|
+
default:
|
|
61777
|
+
reader.skipField();
|
|
61778
|
+
break;
|
|
61779
|
+
}
|
|
61780
|
+
}
|
|
61781
|
+
return msg;
|
|
61782
|
+
};
|
|
61783
|
+
/**
|
|
61784
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
61785
|
+
* @return {!Uint8Array}
|
|
61786
|
+
*/
|
|
61787
|
+
proto.clarifai.api.OrchestrationSpec.prototype.serializeBinary = function () {
|
|
61788
|
+
var writer = new jspb.BinaryWriter();
|
|
61789
|
+
proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter(this, writer);
|
|
61790
|
+
return writer.getResultBuffer();
|
|
61791
|
+
};
|
|
61792
|
+
/**
|
|
61793
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
61794
|
+
* format), writing to the given BinaryWriter.
|
|
61795
|
+
* @param {!proto.clarifai.api.OrchestrationSpec} message
|
|
61796
|
+
* @param {!jspb.BinaryWriter} writer
|
|
61797
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61798
|
+
*/
|
|
61799
|
+
proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter = function (message, writer) {
|
|
61800
|
+
var f = undefined;
|
|
61801
|
+
f = message.getArgoOrchestrationSpec();
|
|
61802
|
+
if (f != null) {
|
|
61803
|
+
writer.writeMessage(1, f, proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter);
|
|
61804
|
+
}
|
|
61805
|
+
};
|
|
61806
|
+
/**
|
|
61807
|
+
* optional ArgoOrchestrationSpec argo_orchestration_spec = 1;
|
|
61808
|
+
* @return {?proto.clarifai.api.ArgoOrchestrationSpec}
|
|
61809
|
+
*/
|
|
61810
|
+
proto.clarifai.api.OrchestrationSpec.prototype.getArgoOrchestrationSpec = function () {
|
|
61811
|
+
return /** @type{?proto.clarifai.api.ArgoOrchestrationSpec} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationSpec, 1));
|
|
61812
|
+
};
|
|
61813
|
+
/**
|
|
61814
|
+
* @param {?proto.clarifai.api.ArgoOrchestrationSpec|undefined} value
|
|
61815
|
+
* @return {!proto.clarifai.api.OrchestrationSpec} returns this
|
|
61816
|
+
*/
|
|
61817
|
+
proto.clarifai.api.OrchestrationSpec.prototype.setArgoOrchestrationSpec = function (value) {
|
|
61818
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0], value);
|
|
61819
|
+
};
|
|
61820
|
+
/**
|
|
61821
|
+
* Clears the message field making it undefined.
|
|
61822
|
+
* @return {!proto.clarifai.api.OrchestrationSpec} returns this
|
|
61823
|
+
*/
|
|
61824
|
+
proto.clarifai.api.OrchestrationSpec.prototype.clearArgoOrchestrationSpec = function () {
|
|
61825
|
+
return this.setArgoOrchestrationSpec(undefined);
|
|
61826
|
+
};
|
|
61827
|
+
/**
|
|
61828
|
+
* Returns whether this field is set.
|
|
61829
|
+
* @return {boolean}
|
|
61830
|
+
*/
|
|
61831
|
+
proto.clarifai.api.OrchestrationSpec.prototype.hasArgoOrchestrationSpec = function () {
|
|
61832
|
+
return jspb.Message.getField(this, 1) != null;
|
|
61833
|
+
};
|
|
61834
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
61835
|
+
/**
|
|
61836
|
+
* Creates an object representation of this proto.
|
|
61837
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
61838
|
+
* Optional fields that are not set will be set to undefined.
|
|
61839
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
61840
|
+
* For the list of reserved names please see:
|
|
61841
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
61842
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
61843
|
+
* JSPB instance for transitional soy proto support:
|
|
61844
|
+
* http://goto/soy-param-migration
|
|
61845
|
+
* @return {!Object}
|
|
61846
|
+
*/
|
|
61847
|
+
proto.clarifai.api.PipelineVersion.prototype.toObject = function (opt_includeInstance) {
|
|
61848
|
+
return proto.clarifai.api.PipelineVersion.toObject(opt_includeInstance, this);
|
|
61849
|
+
};
|
|
61850
|
+
/**
|
|
61851
|
+
* Static version of the {@see toObject} method.
|
|
61852
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
61853
|
+
* the JSPB instance for transitional soy proto support:
|
|
61854
|
+
* http://goto/soy-param-migration
|
|
61855
|
+
* @param {!proto.clarifai.api.PipelineVersion} msg The msg instance to transform.
|
|
61856
|
+
* @return {!Object}
|
|
61857
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61858
|
+
*/
|
|
61859
|
+
proto.clarifai.api.PipelineVersion.toObject = function (includeInstance, msg) {
|
|
61860
|
+
var f, obj = {
|
|
61861
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
61862
|
+
appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
61863
|
+
userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
61864
|
+
orchestrationSpec: (f = msg.getOrchestrationSpec()) && proto.clarifai.api.OrchestrationSpec.toObject(includeInstance, f),
|
|
61865
|
+
pipelineId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
61866
|
+
description: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
61867
|
+
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
61868
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
61869
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
61870
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
61871
|
+
};
|
|
61872
|
+
if (includeInstance) {
|
|
61873
|
+
obj.$jspbMessageInstance = msg;
|
|
61874
|
+
}
|
|
61875
|
+
return obj;
|
|
61876
|
+
};
|
|
61877
|
+
}
|
|
61878
|
+
/**
|
|
61879
|
+
* Deserializes binary data (in protobuf wire format).
|
|
61880
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
61881
|
+
* @return {!proto.clarifai.api.PipelineVersion}
|
|
61882
|
+
*/
|
|
61883
|
+
proto.clarifai.api.PipelineVersion.deserializeBinary = function (bytes) {
|
|
61884
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
61885
|
+
var msg = new proto.clarifai.api.PipelineVersion;
|
|
61886
|
+
return proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader(msg, reader);
|
|
61887
|
+
};
|
|
61888
|
+
/**
|
|
61889
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
61890
|
+
* given reader into the given message object.
|
|
61891
|
+
* @param {!proto.clarifai.api.PipelineVersion} msg The message object to deserialize into.
|
|
61892
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
61893
|
+
* @return {!proto.clarifai.api.PipelineVersion}
|
|
61894
|
+
*/
|
|
61895
|
+
proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader = function (msg, reader) {
|
|
61896
|
+
while (reader.nextField()) {
|
|
61897
|
+
if (reader.isEndGroup()) {
|
|
61898
|
+
break;
|
|
61899
|
+
}
|
|
61900
|
+
var field = reader.getFieldNumber();
|
|
61901
|
+
switch (field) {
|
|
61902
|
+
case 1:
|
|
61903
|
+
var value = /** @type {string} */ (reader.readString());
|
|
61904
|
+
msg.setId(value);
|
|
61905
|
+
break;
|
|
61906
|
+
case 2:
|
|
61907
|
+
var value = /** @type {string} */ (reader.readString());
|
|
61908
|
+
msg.setAppId(value);
|
|
61909
|
+
break;
|
|
61910
|
+
case 3:
|
|
61911
|
+
var value = /** @type {string} */ (reader.readString());
|
|
61912
|
+
msg.setUserId(value);
|
|
61913
|
+
break;
|
|
61914
|
+
case 4:
|
|
61915
|
+
var value = new proto.clarifai.api.OrchestrationSpec;
|
|
61916
|
+
reader.readMessage(value, proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader);
|
|
61917
|
+
msg.setOrchestrationSpec(value);
|
|
61918
|
+
break;
|
|
61919
|
+
case 5:
|
|
61920
|
+
var value = /** @type {string} */ (reader.readString());
|
|
61921
|
+
msg.setPipelineId(value);
|
|
61922
|
+
break;
|
|
61923
|
+
case 6:
|
|
61924
|
+
var value = /** @type {string} */ (reader.readString());
|
|
61925
|
+
msg.setDescription(value);
|
|
61926
|
+
break;
|
|
61927
|
+
case 7:
|
|
61928
|
+
var value = new proto.clarifai.api.Visibility;
|
|
61929
|
+
reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
|
|
61930
|
+
msg.setVisibility(value);
|
|
61931
|
+
break;
|
|
61932
|
+
case 8:
|
|
61933
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
61934
|
+
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
61935
|
+
msg.setMetadata(value);
|
|
61936
|
+
break;
|
|
61937
|
+
case 9:
|
|
61938
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
61939
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
61940
|
+
msg.setCreatedAt(value);
|
|
61941
|
+
break;
|
|
61942
|
+
case 10:
|
|
61943
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
61944
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
61945
|
+
msg.setModifiedAt(value);
|
|
61946
|
+
break;
|
|
61947
|
+
default:
|
|
61948
|
+
reader.skipField();
|
|
61949
|
+
break;
|
|
61950
|
+
}
|
|
61951
|
+
}
|
|
61952
|
+
return msg;
|
|
61953
|
+
};
|
|
61954
|
+
/**
|
|
61955
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
61956
|
+
* @return {!Uint8Array}
|
|
61957
|
+
*/
|
|
61958
|
+
proto.clarifai.api.PipelineVersion.prototype.serializeBinary = function () {
|
|
61959
|
+
var writer = new jspb.BinaryWriter();
|
|
61960
|
+
proto.clarifai.api.PipelineVersion.serializeBinaryToWriter(this, writer);
|
|
61961
|
+
return writer.getResultBuffer();
|
|
61962
|
+
};
|
|
61963
|
+
/**
|
|
61964
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
61965
|
+
* format), writing to the given BinaryWriter.
|
|
61966
|
+
* @param {!proto.clarifai.api.PipelineVersion} message
|
|
61967
|
+
* @param {!jspb.BinaryWriter} writer
|
|
61968
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
61969
|
+
*/
|
|
61970
|
+
proto.clarifai.api.PipelineVersion.serializeBinaryToWriter = function (message, writer) {
|
|
61971
|
+
var f = undefined;
|
|
61972
|
+
f = message.getId();
|
|
61973
|
+
if (f.length > 0) {
|
|
61974
|
+
writer.writeString(1, f);
|
|
61975
|
+
}
|
|
61976
|
+
f = message.getAppId();
|
|
61977
|
+
if (f.length > 0) {
|
|
61978
|
+
writer.writeString(2, f);
|
|
61979
|
+
}
|
|
61980
|
+
f = message.getUserId();
|
|
61981
|
+
if (f.length > 0) {
|
|
61982
|
+
writer.writeString(3, f);
|
|
61983
|
+
}
|
|
61984
|
+
f = message.getOrchestrationSpec();
|
|
61985
|
+
if (f != null) {
|
|
61986
|
+
writer.writeMessage(4, f, proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter);
|
|
61987
|
+
}
|
|
61988
|
+
f = message.getPipelineId();
|
|
61989
|
+
if (f.length > 0) {
|
|
61990
|
+
writer.writeString(5, f);
|
|
61991
|
+
}
|
|
61992
|
+
f = message.getDescription();
|
|
61993
|
+
if (f.length > 0) {
|
|
61994
|
+
writer.writeString(6, f);
|
|
61995
|
+
}
|
|
61996
|
+
f = message.getVisibility();
|
|
61997
|
+
if (f != null) {
|
|
61998
|
+
writer.writeMessage(7, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
|
|
61999
|
+
}
|
|
62000
|
+
f = message.getMetadata();
|
|
62001
|
+
if (f != null) {
|
|
62002
|
+
writer.writeMessage(8, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
62003
|
+
}
|
|
62004
|
+
f = message.getCreatedAt();
|
|
62005
|
+
if (f != null) {
|
|
62006
|
+
writer.writeMessage(9, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
62007
|
+
}
|
|
62008
|
+
f = message.getModifiedAt();
|
|
62009
|
+
if (f != null) {
|
|
62010
|
+
writer.writeMessage(10, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
62011
|
+
}
|
|
62012
|
+
};
|
|
62013
|
+
/**
|
|
62014
|
+
* optional string id = 1;
|
|
62015
|
+
* @return {string}
|
|
62016
|
+
*/
|
|
62017
|
+
proto.clarifai.api.PipelineVersion.prototype.getId = function () {
|
|
62018
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
62019
|
+
};
|
|
62020
|
+
/**
|
|
62021
|
+
* @param {string} value
|
|
62022
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62023
|
+
*/
|
|
62024
|
+
proto.clarifai.api.PipelineVersion.prototype.setId = function (value) {
|
|
62025
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
62026
|
+
};
|
|
62027
|
+
/**
|
|
62028
|
+
* optional string app_id = 2;
|
|
62029
|
+
* @return {string}
|
|
62030
|
+
*/
|
|
62031
|
+
proto.clarifai.api.PipelineVersion.prototype.getAppId = function () {
|
|
62032
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
62033
|
+
};
|
|
62034
|
+
/**
|
|
62035
|
+
* @param {string} value
|
|
62036
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62037
|
+
*/
|
|
62038
|
+
proto.clarifai.api.PipelineVersion.prototype.setAppId = function (value) {
|
|
62039
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
62040
|
+
};
|
|
62041
|
+
/**
|
|
62042
|
+
* optional string user_id = 3;
|
|
62043
|
+
* @return {string}
|
|
62044
|
+
*/
|
|
62045
|
+
proto.clarifai.api.PipelineVersion.prototype.getUserId = function () {
|
|
62046
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
62047
|
+
};
|
|
62048
|
+
/**
|
|
62049
|
+
* @param {string} value
|
|
62050
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62051
|
+
*/
|
|
62052
|
+
proto.clarifai.api.PipelineVersion.prototype.setUserId = function (value) {
|
|
62053
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
62054
|
+
};
|
|
62055
|
+
/**
|
|
62056
|
+
* optional OrchestrationSpec orchestration_spec = 4;
|
|
62057
|
+
* @return {?proto.clarifai.api.OrchestrationSpec}
|
|
62058
|
+
*/
|
|
62059
|
+
proto.clarifai.api.PipelineVersion.prototype.getOrchestrationSpec = function () {
|
|
62060
|
+
return /** @type{?proto.clarifai.api.OrchestrationSpec} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationSpec, 4));
|
|
62061
|
+
};
|
|
62062
|
+
/**
|
|
62063
|
+
* @param {?proto.clarifai.api.OrchestrationSpec|undefined} value
|
|
62064
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62065
|
+
*/
|
|
62066
|
+
proto.clarifai.api.PipelineVersion.prototype.setOrchestrationSpec = function (value) {
|
|
62067
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
62068
|
+
};
|
|
62069
|
+
/**
|
|
62070
|
+
* Clears the message field making it undefined.
|
|
62071
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62072
|
+
*/
|
|
62073
|
+
proto.clarifai.api.PipelineVersion.prototype.clearOrchestrationSpec = function () {
|
|
62074
|
+
return this.setOrchestrationSpec(undefined);
|
|
62075
|
+
};
|
|
62076
|
+
/**
|
|
62077
|
+
* Returns whether this field is set.
|
|
62078
|
+
* @return {boolean}
|
|
62079
|
+
*/
|
|
62080
|
+
proto.clarifai.api.PipelineVersion.prototype.hasOrchestrationSpec = function () {
|
|
62081
|
+
return jspb.Message.getField(this, 4) != null;
|
|
62082
|
+
};
|
|
62083
|
+
/**
|
|
62084
|
+
* optional string pipeline_id = 5;
|
|
62085
|
+
* @return {string}
|
|
62086
|
+
*/
|
|
62087
|
+
proto.clarifai.api.PipelineVersion.prototype.getPipelineId = function () {
|
|
62088
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
62089
|
+
};
|
|
62090
|
+
/**
|
|
62091
|
+
* @param {string} value
|
|
62092
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62093
|
+
*/
|
|
62094
|
+
proto.clarifai.api.PipelineVersion.prototype.setPipelineId = function (value) {
|
|
62095
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
62096
|
+
};
|
|
62097
|
+
/**
|
|
62098
|
+
* optional string description = 6;
|
|
62099
|
+
* @return {string}
|
|
62100
|
+
*/
|
|
62101
|
+
proto.clarifai.api.PipelineVersion.prototype.getDescription = function () {
|
|
62102
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
62103
|
+
};
|
|
62104
|
+
/**
|
|
62105
|
+
* @param {string} value
|
|
62106
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62107
|
+
*/
|
|
62108
|
+
proto.clarifai.api.PipelineVersion.prototype.setDescription = function (value) {
|
|
62109
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
62110
|
+
};
|
|
62111
|
+
/**
|
|
62112
|
+
* optional Visibility visibility = 7;
|
|
62113
|
+
* @return {?proto.clarifai.api.Visibility}
|
|
62114
|
+
*/
|
|
62115
|
+
proto.clarifai.api.PipelineVersion.prototype.getVisibility = function () {
|
|
62116
|
+
return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7));
|
|
62117
|
+
};
|
|
62118
|
+
/**
|
|
62119
|
+
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
62120
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62121
|
+
*/
|
|
62122
|
+
proto.clarifai.api.PipelineVersion.prototype.setVisibility = function (value) {
|
|
62123
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
62124
|
+
};
|
|
62125
|
+
/**
|
|
62126
|
+
* Clears the message field making it undefined.
|
|
62127
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62128
|
+
*/
|
|
62129
|
+
proto.clarifai.api.PipelineVersion.prototype.clearVisibility = function () {
|
|
62130
|
+
return this.setVisibility(undefined);
|
|
62131
|
+
};
|
|
62132
|
+
/**
|
|
62133
|
+
* Returns whether this field is set.
|
|
62134
|
+
* @return {boolean}
|
|
62135
|
+
*/
|
|
62136
|
+
proto.clarifai.api.PipelineVersion.prototype.hasVisibility = function () {
|
|
62137
|
+
return jspb.Message.getField(this, 7) != null;
|
|
62138
|
+
};
|
|
62139
|
+
/**
|
|
62140
|
+
* optional google.protobuf.Struct metadata = 8;
|
|
62141
|
+
* @return {?proto.google.protobuf.Struct}
|
|
62142
|
+
*/
|
|
62143
|
+
proto.clarifai.api.PipelineVersion.prototype.getMetadata = function () {
|
|
62144
|
+
return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8));
|
|
62145
|
+
};
|
|
62146
|
+
/**
|
|
62147
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
62148
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62149
|
+
*/
|
|
62150
|
+
proto.clarifai.api.PipelineVersion.prototype.setMetadata = function (value) {
|
|
62151
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
62152
|
+
};
|
|
62153
|
+
/**
|
|
62154
|
+
* Clears the message field making it undefined.
|
|
62155
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62156
|
+
*/
|
|
62157
|
+
proto.clarifai.api.PipelineVersion.prototype.clearMetadata = function () {
|
|
62158
|
+
return this.setMetadata(undefined);
|
|
62159
|
+
};
|
|
62160
|
+
/**
|
|
62161
|
+
* Returns whether this field is set.
|
|
62162
|
+
* @return {boolean}
|
|
62163
|
+
*/
|
|
62164
|
+
proto.clarifai.api.PipelineVersion.prototype.hasMetadata = function () {
|
|
62165
|
+
return jspb.Message.getField(this, 8) != null;
|
|
62166
|
+
};
|
|
62167
|
+
/**
|
|
62168
|
+
* optional google.protobuf.Timestamp created_at = 9;
|
|
62169
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
62170
|
+
*/
|
|
62171
|
+
proto.clarifai.api.PipelineVersion.prototype.getCreatedAt = function () {
|
|
62172
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
|
|
62173
|
+
};
|
|
62174
|
+
/**
|
|
62175
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
62176
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62177
|
+
*/
|
|
62178
|
+
proto.clarifai.api.PipelineVersion.prototype.setCreatedAt = function (value) {
|
|
62179
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
62180
|
+
};
|
|
62181
|
+
/**
|
|
62182
|
+
* Clears the message field making it undefined.
|
|
62183
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62184
|
+
*/
|
|
62185
|
+
proto.clarifai.api.PipelineVersion.prototype.clearCreatedAt = function () {
|
|
62186
|
+
return this.setCreatedAt(undefined);
|
|
62187
|
+
};
|
|
62188
|
+
/**
|
|
62189
|
+
* Returns whether this field is set.
|
|
62190
|
+
* @return {boolean}
|
|
62191
|
+
*/
|
|
62192
|
+
proto.clarifai.api.PipelineVersion.prototype.hasCreatedAt = function () {
|
|
62193
|
+
return jspb.Message.getField(this, 9) != null;
|
|
62194
|
+
};
|
|
62195
|
+
/**
|
|
62196
|
+
* optional google.protobuf.Timestamp modified_at = 10;
|
|
62197
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
62198
|
+
*/
|
|
62199
|
+
proto.clarifai.api.PipelineVersion.prototype.getModifiedAt = function () {
|
|
62200
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
|
|
62201
|
+
};
|
|
62202
|
+
/**
|
|
62203
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
62204
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62205
|
+
*/
|
|
62206
|
+
proto.clarifai.api.PipelineVersion.prototype.setModifiedAt = function (value) {
|
|
62207
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
62208
|
+
};
|
|
62209
|
+
/**
|
|
62210
|
+
* Clears the message field making it undefined.
|
|
62211
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
62212
|
+
*/
|
|
62213
|
+
proto.clarifai.api.PipelineVersion.prototype.clearModifiedAt = function () {
|
|
62214
|
+
return this.setModifiedAt(undefined);
|
|
62215
|
+
};
|
|
62216
|
+
/**
|
|
62217
|
+
* Returns whether this field is set.
|
|
62218
|
+
* @return {boolean}
|
|
62219
|
+
*/
|
|
62220
|
+
proto.clarifai.api.PipelineVersion.prototype.hasModifiedAt = function () {
|
|
62221
|
+
return jspb.Message.getField(this, 10) != null;
|
|
62222
|
+
};
|
|
62223
|
+
/**
|
|
62224
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
62225
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
62226
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
62227
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
62228
|
+
* @private {!Array<!Array<number>>}
|
|
62229
|
+
* @const
|
|
62230
|
+
*/
|
|
62231
|
+
proto.clarifai.api.OrchestrationStatus.oneofGroups_ = [[1]];
|
|
62232
|
+
/**
|
|
62233
|
+
* @enum {number}
|
|
62234
|
+
*/
|
|
62235
|
+
proto.clarifai.api.OrchestrationStatus.StatusDetailsCase = {
|
|
62236
|
+
STATUS_DETAILS_NOT_SET: 0,
|
|
62237
|
+
ARGO_STATUS: 1
|
|
62238
|
+
};
|
|
62239
|
+
/**
|
|
62240
|
+
* @return {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase}
|
|
62241
|
+
*/
|
|
62242
|
+
proto.clarifai.api.OrchestrationStatus.prototype.getStatusDetailsCase = function () {
|
|
62243
|
+
return /** @type {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0]));
|
|
62244
|
+
};
|
|
62245
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
62246
|
+
/**
|
|
62247
|
+
* Creates an object representation of this proto.
|
|
62248
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
62249
|
+
* Optional fields that are not set will be set to undefined.
|
|
62250
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
62251
|
+
* For the list of reserved names please see:
|
|
62252
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
62253
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
62254
|
+
* JSPB instance for transitional soy proto support:
|
|
62255
|
+
* http://goto/soy-param-migration
|
|
62256
|
+
* @return {!Object}
|
|
62257
|
+
*/
|
|
62258
|
+
proto.clarifai.api.OrchestrationStatus.prototype.toObject = function (opt_includeInstance) {
|
|
62259
|
+
return proto.clarifai.api.OrchestrationStatus.toObject(opt_includeInstance, this);
|
|
62260
|
+
};
|
|
62261
|
+
/**
|
|
62262
|
+
* Static version of the {@see toObject} method.
|
|
62263
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
62264
|
+
* the JSPB instance for transitional soy proto support:
|
|
62265
|
+
* http://goto/soy-param-migration
|
|
62266
|
+
* @param {!proto.clarifai.api.OrchestrationStatus} msg The msg instance to transform.
|
|
62267
|
+
* @return {!Object}
|
|
62268
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
62269
|
+
*/
|
|
62270
|
+
proto.clarifai.api.OrchestrationStatus.toObject = function (includeInstance, msg) {
|
|
62271
|
+
var f, obj = {
|
|
62272
|
+
argoStatus: (f = msg.getArgoStatus()) && proto.clarifai.api.ArgoOrchestrationStatus.toObject(includeInstance, f),
|
|
62273
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
62274
|
+
};
|
|
62275
|
+
if (includeInstance) {
|
|
62276
|
+
obj.$jspbMessageInstance = msg;
|
|
62277
|
+
}
|
|
62278
|
+
return obj;
|
|
62279
|
+
};
|
|
62280
|
+
}
|
|
62281
|
+
/**
|
|
62282
|
+
* Deserializes binary data (in protobuf wire format).
|
|
62283
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
62284
|
+
* @return {!proto.clarifai.api.OrchestrationStatus}
|
|
62285
|
+
*/
|
|
62286
|
+
proto.clarifai.api.OrchestrationStatus.deserializeBinary = function (bytes) {
|
|
62287
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
62288
|
+
var msg = new proto.clarifai.api.OrchestrationStatus;
|
|
62289
|
+
return proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader(msg, reader);
|
|
62290
|
+
};
|
|
62291
|
+
/**
|
|
62292
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
62293
|
+
* given reader into the given message object.
|
|
62294
|
+
* @param {!proto.clarifai.api.OrchestrationStatus} msg The message object to deserialize into.
|
|
62295
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
62296
|
+
* @return {!proto.clarifai.api.OrchestrationStatus}
|
|
62297
|
+
*/
|
|
62298
|
+
proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader = function (msg, reader) {
|
|
62299
|
+
while (reader.nextField()) {
|
|
62300
|
+
if (reader.isEndGroup()) {
|
|
62301
|
+
break;
|
|
62302
|
+
}
|
|
62303
|
+
var field = reader.getFieldNumber();
|
|
62304
|
+
switch (field) {
|
|
62305
|
+
case 1:
|
|
62306
|
+
var value = new proto.clarifai.api.ArgoOrchestrationStatus;
|
|
62307
|
+
reader.readMessage(value, proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader);
|
|
62308
|
+
msg.setArgoStatus(value);
|
|
62309
|
+
break;
|
|
62310
|
+
case 2:
|
|
62311
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
62312
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
62313
|
+
msg.setStatus(value);
|
|
62314
|
+
break;
|
|
62315
|
+
default:
|
|
62316
|
+
reader.skipField();
|
|
62317
|
+
break;
|
|
62318
|
+
}
|
|
62319
|
+
}
|
|
62320
|
+
return msg;
|
|
62321
|
+
};
|
|
62322
|
+
/**
|
|
62323
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
62324
|
+
* @return {!Uint8Array}
|
|
62325
|
+
*/
|
|
62326
|
+
proto.clarifai.api.OrchestrationStatus.prototype.serializeBinary = function () {
|
|
62327
|
+
var writer = new jspb.BinaryWriter();
|
|
62328
|
+
proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter(this, writer);
|
|
62329
|
+
return writer.getResultBuffer();
|
|
62330
|
+
};
|
|
62331
|
+
/**
|
|
62332
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
62333
|
+
* format), writing to the given BinaryWriter.
|
|
62334
|
+
* @param {!proto.clarifai.api.OrchestrationStatus} message
|
|
62335
|
+
* @param {!jspb.BinaryWriter} writer
|
|
62336
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
62337
|
+
*/
|
|
62338
|
+
proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter = function (message, writer) {
|
|
62339
|
+
var f = undefined;
|
|
62340
|
+
f = message.getArgoStatus();
|
|
62341
|
+
if (f != null) {
|
|
62342
|
+
writer.writeMessage(1, f, proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter);
|
|
62343
|
+
}
|
|
62344
|
+
f = message.getStatus();
|
|
62345
|
+
if (f != null) {
|
|
62346
|
+
writer.writeMessage(2, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
62347
|
+
}
|
|
62348
|
+
};
|
|
62349
|
+
/**
|
|
62350
|
+
* optional ArgoOrchestrationStatus argo_status = 1;
|
|
62351
|
+
* @return {?proto.clarifai.api.ArgoOrchestrationStatus}
|
|
62352
|
+
*/
|
|
62353
|
+
proto.clarifai.api.OrchestrationStatus.prototype.getArgoStatus = function () {
|
|
62354
|
+
return /** @type{?proto.clarifai.api.ArgoOrchestrationStatus} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationStatus, 1));
|
|
62355
|
+
};
|
|
62356
|
+
/**
|
|
62357
|
+
* @param {?proto.clarifai.api.ArgoOrchestrationStatus|undefined} value
|
|
62358
|
+
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
62359
|
+
*/
|
|
62360
|
+
proto.clarifai.api.OrchestrationStatus.prototype.setArgoStatus = function (value) {
|
|
62361
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0], value);
|
|
62362
|
+
};
|
|
62363
|
+
/**
|
|
62364
|
+
* Clears the message field making it undefined.
|
|
62365
|
+
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
62366
|
+
*/
|
|
62367
|
+
proto.clarifai.api.OrchestrationStatus.prototype.clearArgoStatus = function () {
|
|
62368
|
+
return this.setArgoStatus(undefined);
|
|
62369
|
+
};
|
|
62370
|
+
/**
|
|
62371
|
+
* Returns whether this field is set.
|
|
62372
|
+
* @return {boolean}
|
|
62373
|
+
*/
|
|
62374
|
+
proto.clarifai.api.OrchestrationStatus.prototype.hasArgoStatus = function () {
|
|
62375
|
+
return jspb.Message.getField(this, 1) != null;
|
|
62376
|
+
};
|
|
62377
|
+
/**
|
|
62378
|
+
* optional status.Status status = 2;
|
|
62379
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
62380
|
+
*/
|
|
62381
|
+
proto.clarifai.api.OrchestrationStatus.prototype.getStatus = function () {
|
|
62382
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
|
|
62383
|
+
};
|
|
62384
|
+
/**
|
|
62385
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
62386
|
+
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
62387
|
+
*/
|
|
62388
|
+
proto.clarifai.api.OrchestrationStatus.prototype.setStatus = function (value) {
|
|
62389
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
62390
|
+
};
|
|
62391
|
+
/**
|
|
62392
|
+
* Clears the message field making it undefined.
|
|
62393
|
+
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
62394
|
+
*/
|
|
62395
|
+
proto.clarifai.api.OrchestrationStatus.prototype.clearStatus = function () {
|
|
62396
|
+
return this.setStatus(undefined);
|
|
62397
|
+
};
|
|
62398
|
+
/**
|
|
62399
|
+
* Returns whether this field is set.
|
|
62400
|
+
* @return {boolean}
|
|
62401
|
+
*/
|
|
62402
|
+
proto.clarifai.api.OrchestrationStatus.prototype.hasStatus = function () {
|
|
62403
|
+
return jspb.Message.getField(this, 2) != null;
|
|
62404
|
+
};
|
|
62405
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
62406
|
+
/**
|
|
62407
|
+
* Creates an object representation of this proto.
|
|
62408
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
62409
|
+
* Optional fields that are not set will be set to undefined.
|
|
62410
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
62411
|
+
* For the list of reserved names please see:
|
|
62412
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
62413
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
62414
|
+
* JSPB instance for transitional soy proto support:
|
|
62415
|
+
* http://goto/soy-param-migration
|
|
62416
|
+
* @return {!Object}
|
|
62417
|
+
*/
|
|
62418
|
+
proto.clarifai.api.ArgoOrchestrationStatus.prototype.toObject = function (opt_includeInstance) {
|
|
62419
|
+
return proto.clarifai.api.ArgoOrchestrationStatus.toObject(opt_includeInstance, this);
|
|
62420
|
+
};
|
|
62421
|
+
/**
|
|
62422
|
+
* Static version of the {@see toObject} method.
|
|
62423
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
62424
|
+
* the JSPB instance for transitional soy proto support:
|
|
62425
|
+
* http://goto/soy-param-migration
|
|
62426
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The msg instance to transform.
|
|
62427
|
+
* @return {!Object}
|
|
62428
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
62429
|
+
*/
|
|
62430
|
+
proto.clarifai.api.ArgoOrchestrationStatus.toObject = function (includeInstance, msg) {
|
|
62431
|
+
var f, obj = {
|
|
62432
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
62433
|
+
};
|
|
62434
|
+
if (includeInstance) {
|
|
62435
|
+
obj.$jspbMessageInstance = msg;
|
|
62436
|
+
}
|
|
62437
|
+
return obj;
|
|
62438
|
+
};
|
|
62439
|
+
}
|
|
62440
|
+
/**
|
|
62441
|
+
* Deserializes binary data (in protobuf wire format).
|
|
62442
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
62443
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationStatus}
|
|
62444
|
+
*/
|
|
62445
|
+
proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinary = function (bytes) {
|
|
62446
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
62447
|
+
var msg = new proto.clarifai.api.ArgoOrchestrationStatus;
|
|
62448
|
+
return proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader(msg, reader);
|
|
62449
|
+
};
|
|
62450
|
+
/**
|
|
62451
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
62452
|
+
* given reader into the given message object.
|
|
62453
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The message object to deserialize into.
|
|
62454
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
62455
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationStatus}
|
|
62456
|
+
*/
|
|
62457
|
+
proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader = function (msg, reader) {
|
|
62458
|
+
while (reader.nextField()) {
|
|
62459
|
+
if (reader.isEndGroup()) {
|
|
62460
|
+
break;
|
|
62461
|
+
}
|
|
62462
|
+
var field = reader.getFieldNumber();
|
|
62463
|
+
switch (field) {
|
|
62464
|
+
case 1:
|
|
62465
|
+
var value = /** @type {string} */ (reader.readString());
|
|
62466
|
+
msg.setStatus(value);
|
|
62467
|
+
break;
|
|
62468
|
+
default:
|
|
62469
|
+
reader.skipField();
|
|
62470
|
+
break;
|
|
62471
|
+
}
|
|
62472
|
+
}
|
|
62473
|
+
return msg;
|
|
62474
|
+
};
|
|
62475
|
+
/**
|
|
62476
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
62477
|
+
* @return {!Uint8Array}
|
|
62478
|
+
*/
|
|
62479
|
+
proto.clarifai.api.ArgoOrchestrationStatus.prototype.serializeBinary = function () {
|
|
62480
|
+
var writer = new jspb.BinaryWriter();
|
|
62481
|
+
proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter(this, writer);
|
|
62482
|
+
return writer.getResultBuffer();
|
|
62483
|
+
};
|
|
62484
|
+
/**
|
|
62485
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
62486
|
+
* format), writing to the given BinaryWriter.
|
|
62487
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationStatus} message
|
|
62488
|
+
* @param {!jspb.BinaryWriter} writer
|
|
62489
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
62490
|
+
*/
|
|
62491
|
+
proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter = function (message, writer) {
|
|
62492
|
+
var f = undefined;
|
|
62493
|
+
f = message.getStatus();
|
|
62494
|
+
if (f.length > 0) {
|
|
62495
|
+
writer.writeString(1, f);
|
|
62496
|
+
}
|
|
62497
|
+
};
|
|
62498
|
+
/**
|
|
62499
|
+
* optional string status = 1;
|
|
62500
|
+
* @return {string}
|
|
62501
|
+
*/
|
|
62502
|
+
proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus = function () {
|
|
62503
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
62504
|
+
};
|
|
62505
|
+
/**
|
|
62506
|
+
* @param {string} value
|
|
62507
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationStatus} returns this
|
|
62508
|
+
*/
|
|
62509
|
+
proto.clarifai.api.ArgoOrchestrationStatus.prototype.setStatus = function (value) {
|
|
62510
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
62511
|
+
};
|
|
62512
|
+
/**
|
|
62513
|
+
* List of repeated fields within this message type.
|
|
62514
|
+
* @private {!Array<number>}
|
|
62515
|
+
* @const
|
|
62516
|
+
*/
|
|
62517
|
+
proto.clarifai.api.PipelineVersionRun.repeatedFields_ = [3];
|
|
62518
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
62519
|
+
/**
|
|
62520
|
+
* Creates an object representation of this proto.
|
|
62521
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
62522
|
+
* Optional fields that are not set will be set to undefined.
|
|
62523
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
62524
|
+
* For the list of reserved names please see:
|
|
62525
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
62526
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
62527
|
+
* JSPB instance for transitional soy proto support:
|
|
62528
|
+
* http://goto/soy-param-migration
|
|
62529
|
+
* @return {!Object}
|
|
62530
|
+
*/
|
|
62531
|
+
proto.clarifai.api.PipelineVersionRun.prototype.toObject = function (opt_includeInstance) {
|
|
62532
|
+
return proto.clarifai.api.PipelineVersionRun.toObject(opt_includeInstance, this);
|
|
62533
|
+
};
|
|
62534
|
+
/**
|
|
62535
|
+
* Static version of the {@see toObject} method.
|
|
62536
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
62537
|
+
* the JSPB instance for transitional soy proto support:
|
|
62538
|
+
* http://goto/soy-param-migration
|
|
62539
|
+
* @param {!proto.clarifai.api.PipelineVersionRun} msg The msg instance to transform.
|
|
62540
|
+
* @return {!Object}
|
|
62541
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
62542
|
+
*/
|
|
62543
|
+
proto.clarifai.api.PipelineVersionRun.toObject = function (includeInstance, msg) {
|
|
62544
|
+
var f, obj = {
|
|
62545
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
62546
|
+
pipelineVersion: (f = msg.getPipelineVersion()) && proto.clarifai.api.PipelineVersion.toObject(includeInstance, f),
|
|
62547
|
+
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto.clarifai.api.Nodepool.toObject, includeInstance),
|
|
62548
|
+
orchestrationStatus: (f = msg.getOrchestrationStatus()) && proto.clarifai.api.OrchestrationStatus.toObject(includeInstance, f),
|
|
62549
|
+
userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
62550
|
+
appId: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
62551
|
+
};
|
|
62552
|
+
if (includeInstance) {
|
|
62553
|
+
obj.$jspbMessageInstance = msg;
|
|
62554
|
+
}
|
|
62555
|
+
return obj;
|
|
62556
|
+
};
|
|
62557
|
+
}
|
|
62558
|
+
/**
|
|
62559
|
+
* Deserializes binary data (in protobuf wire format).
|
|
62560
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
62561
|
+
* @return {!proto.clarifai.api.PipelineVersionRun}
|
|
62562
|
+
*/
|
|
62563
|
+
proto.clarifai.api.PipelineVersionRun.deserializeBinary = function (bytes) {
|
|
62564
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
62565
|
+
var msg = new proto.clarifai.api.PipelineVersionRun;
|
|
62566
|
+
return proto.clarifai.api.PipelineVersionRun.deserializeBinaryFromReader(msg, reader);
|
|
62567
|
+
};
|
|
62568
|
+
/**
|
|
62569
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
62570
|
+
* given reader into the given message object.
|
|
62571
|
+
* @param {!proto.clarifai.api.PipelineVersionRun} msg The message object to deserialize into.
|
|
62572
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
62573
|
+
* @return {!proto.clarifai.api.PipelineVersionRun}
|
|
62574
|
+
*/
|
|
62575
|
+
proto.clarifai.api.PipelineVersionRun.deserializeBinaryFromReader = function (msg, reader) {
|
|
62576
|
+
while (reader.nextField()) {
|
|
62577
|
+
if (reader.isEndGroup()) {
|
|
62578
|
+
break;
|
|
62579
|
+
}
|
|
62580
|
+
var field = reader.getFieldNumber();
|
|
62581
|
+
switch (field) {
|
|
62582
|
+
case 1:
|
|
62583
|
+
var value = /** @type {string} */ (reader.readString());
|
|
62584
|
+
msg.setId(value);
|
|
62585
|
+
break;
|
|
62586
|
+
case 2:
|
|
62587
|
+
var value = new proto.clarifai.api.PipelineVersion;
|
|
62588
|
+
reader.readMessage(value, proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader);
|
|
62589
|
+
msg.setPipelineVersion(value);
|
|
62590
|
+
break;
|
|
62591
|
+
case 3:
|
|
62592
|
+
var value = new proto.clarifai.api.Nodepool;
|
|
62593
|
+
reader.readMessage(value, proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
62594
|
+
msg.addNodepools(value);
|
|
62595
|
+
break;
|
|
62596
|
+
case 4:
|
|
62597
|
+
var value = new proto.clarifai.api.OrchestrationStatus;
|
|
62598
|
+
reader.readMessage(value, proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader);
|
|
62599
|
+
msg.setOrchestrationStatus(value);
|
|
62600
|
+
break;
|
|
62601
|
+
case 5:
|
|
62602
|
+
var value = /** @type {string} */ (reader.readString());
|
|
62603
|
+
msg.setUserId(value);
|
|
62604
|
+
break;
|
|
62605
|
+
case 6:
|
|
62606
|
+
var value = /** @type {string} */ (reader.readString());
|
|
62607
|
+
msg.setAppId(value);
|
|
62608
|
+
break;
|
|
62609
|
+
default:
|
|
62610
|
+
reader.skipField();
|
|
62611
|
+
break;
|
|
62612
|
+
}
|
|
62613
|
+
}
|
|
62614
|
+
return msg;
|
|
62615
|
+
};
|
|
62616
|
+
/**
|
|
62617
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
62618
|
+
* @return {!Uint8Array}
|
|
62619
|
+
*/
|
|
62620
|
+
proto.clarifai.api.PipelineVersionRun.prototype.serializeBinary = function () {
|
|
62621
|
+
var writer = new jspb.BinaryWriter();
|
|
62622
|
+
proto.clarifai.api.PipelineVersionRun.serializeBinaryToWriter(this, writer);
|
|
62623
|
+
return writer.getResultBuffer();
|
|
62624
|
+
};
|
|
62625
|
+
/**
|
|
62626
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
62627
|
+
* format), writing to the given BinaryWriter.
|
|
62628
|
+
* @param {!proto.clarifai.api.PipelineVersionRun} message
|
|
62629
|
+
* @param {!jspb.BinaryWriter} writer
|
|
62630
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
62631
|
+
*/
|
|
62632
|
+
proto.clarifai.api.PipelineVersionRun.serializeBinaryToWriter = function (message, writer) {
|
|
62633
|
+
var f = undefined;
|
|
62634
|
+
f = message.getId();
|
|
62635
|
+
if (f.length > 0) {
|
|
62636
|
+
writer.writeString(1, f);
|
|
62637
|
+
}
|
|
62638
|
+
f = message.getPipelineVersion();
|
|
62639
|
+
if (f != null) {
|
|
62640
|
+
writer.writeMessage(2, f, proto.clarifai.api.PipelineVersion.serializeBinaryToWriter);
|
|
62641
|
+
}
|
|
62642
|
+
f = message.getNodepoolsList();
|
|
62643
|
+
if (f.length > 0) {
|
|
62644
|
+
writer.writeRepeatedMessage(3, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
|
|
62645
|
+
}
|
|
62646
|
+
f = message.getOrchestrationStatus();
|
|
62647
|
+
if (f != null) {
|
|
62648
|
+
writer.writeMessage(4, f, proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter);
|
|
62649
|
+
}
|
|
62650
|
+
f = message.getUserId();
|
|
62651
|
+
if (f.length > 0) {
|
|
62652
|
+
writer.writeString(5, f);
|
|
62653
|
+
}
|
|
62654
|
+
f = message.getAppId();
|
|
62655
|
+
if (f.length > 0) {
|
|
62656
|
+
writer.writeString(6, f);
|
|
62657
|
+
}
|
|
62658
|
+
};
|
|
62659
|
+
/**
|
|
62660
|
+
* optional string id = 1;
|
|
62661
|
+
* @return {string}
|
|
62662
|
+
*/
|
|
62663
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getId = function () {
|
|
62664
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
62665
|
+
};
|
|
62666
|
+
/**
|
|
62667
|
+
* @param {string} value
|
|
62668
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
62669
|
+
*/
|
|
62670
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setId = function (value) {
|
|
62671
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
62672
|
+
};
|
|
62673
|
+
/**
|
|
62674
|
+
* optional PipelineVersion pipeline_version = 2;
|
|
62675
|
+
* @return {?proto.clarifai.api.PipelineVersion}
|
|
62676
|
+
*/
|
|
62677
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getPipelineVersion = function () {
|
|
62678
|
+
return /** @type{?proto.clarifai.api.PipelineVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.PipelineVersion, 2));
|
|
62679
|
+
};
|
|
62680
|
+
/**
|
|
62681
|
+
* @param {?proto.clarifai.api.PipelineVersion|undefined} value
|
|
62682
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
62683
|
+
*/
|
|
62684
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setPipelineVersion = function (value) {
|
|
62685
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
62686
|
+
};
|
|
62687
|
+
/**
|
|
62688
|
+
* Clears the message field making it undefined.
|
|
62689
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
62690
|
+
*/
|
|
62691
|
+
proto.clarifai.api.PipelineVersionRun.prototype.clearPipelineVersion = function () {
|
|
62692
|
+
return this.setPipelineVersion(undefined);
|
|
62693
|
+
};
|
|
62694
|
+
/**
|
|
62695
|
+
* Returns whether this field is set.
|
|
62696
|
+
* @return {boolean}
|
|
62697
|
+
*/
|
|
62698
|
+
proto.clarifai.api.PipelineVersionRun.prototype.hasPipelineVersion = function () {
|
|
62699
|
+
return jspb.Message.getField(this, 2) != null;
|
|
62700
|
+
};
|
|
62701
|
+
/**
|
|
62702
|
+
* repeated Nodepool nodepools = 3;
|
|
62703
|
+
* @return {!Array<!proto.clarifai.api.Nodepool>}
|
|
62704
|
+
*/
|
|
62705
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getNodepoolsList = function () {
|
|
62706
|
+
return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Nodepool, 3));
|
|
62707
|
+
};
|
|
62708
|
+
/**
|
|
62709
|
+
* @param {!Array<!proto.clarifai.api.Nodepool>} value
|
|
62710
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
62711
|
+
*/
|
|
62712
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setNodepoolsList = function (value) {
|
|
62713
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
62714
|
+
};
|
|
62715
|
+
/**
|
|
62716
|
+
* @param {!proto.clarifai.api.Nodepool=} opt_value
|
|
62717
|
+
* @param {number=} opt_index
|
|
62718
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
62719
|
+
*/
|
|
62720
|
+
proto.clarifai.api.PipelineVersionRun.prototype.addNodepools = function (opt_value, opt_index) {
|
|
62721
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Nodepool, opt_index);
|
|
62722
|
+
};
|
|
62723
|
+
/**
|
|
62724
|
+
* Clears the list making it empty but non-null.
|
|
62725
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
62726
|
+
*/
|
|
62727
|
+
proto.clarifai.api.PipelineVersionRun.prototype.clearNodepoolsList = function () {
|
|
62728
|
+
return this.setNodepoolsList([]);
|
|
62729
|
+
};
|
|
62730
|
+
/**
|
|
62731
|
+
* optional OrchestrationStatus orchestration_status = 4;
|
|
62732
|
+
* @return {?proto.clarifai.api.OrchestrationStatus}
|
|
62733
|
+
*/
|
|
62734
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getOrchestrationStatus = function () {
|
|
62735
|
+
return /** @type{?proto.clarifai.api.OrchestrationStatus} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationStatus, 4));
|
|
62736
|
+
};
|
|
62737
|
+
/**
|
|
62738
|
+
* @param {?proto.clarifai.api.OrchestrationStatus|undefined} value
|
|
62739
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
62740
|
+
*/
|
|
62741
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setOrchestrationStatus = function (value) {
|
|
62742
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
62743
|
+
};
|
|
62744
|
+
/**
|
|
62745
|
+
* Clears the message field making it undefined.
|
|
62746
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
62747
|
+
*/
|
|
62748
|
+
proto.clarifai.api.PipelineVersionRun.prototype.clearOrchestrationStatus = function () {
|
|
62749
|
+
return this.setOrchestrationStatus(undefined);
|
|
62750
|
+
};
|
|
62751
|
+
/**
|
|
62752
|
+
* Returns whether this field is set.
|
|
62753
|
+
* @return {boolean}
|
|
62754
|
+
*/
|
|
62755
|
+
proto.clarifai.api.PipelineVersionRun.prototype.hasOrchestrationStatus = function () {
|
|
62756
|
+
return jspb.Message.getField(this, 4) != null;
|
|
62757
|
+
};
|
|
62758
|
+
/**
|
|
62759
|
+
* optional string user_id = 5;
|
|
62760
|
+
* @return {string}
|
|
62761
|
+
*/
|
|
62762
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getUserId = function () {
|
|
62763
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
62764
|
+
};
|
|
62765
|
+
/**
|
|
62766
|
+
* @param {string} value
|
|
62767
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
62768
|
+
*/
|
|
62769
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setUserId = function (value) {
|
|
62770
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
62771
|
+
};
|
|
62772
|
+
/**
|
|
62773
|
+
* optional string app_id = 6;
|
|
62774
|
+
* @return {string}
|
|
62775
|
+
*/
|
|
62776
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getAppId = function () {
|
|
62777
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
62778
|
+
};
|
|
62779
|
+
/**
|
|
62780
|
+
* @param {string} value
|
|
62781
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
62782
|
+
*/
|
|
62783
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setAppId = function (value) {
|
|
62784
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
62785
|
+
};
|
|
60197
62786
|
/**
|
|
60198
62787
|
* @enum {number}
|
|
60199
62788
|
*/
|