clarifai-web-grpc 11.1.2 → 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 +2772 -4
- 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 +2772 -4
- 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 +425 -0
- package/proto/clarifai/api/resources_pb.js +3444 -4
- 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
|
@@ -58,6 +58,8 @@ goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
|
|
|
58
58
|
goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
|
|
59
59
|
goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
|
|
60
60
|
goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
|
|
61
|
+
goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationSpec', null, global);
|
|
62
|
+
goog.exportSymbol('proto.clarifai.api.ArgoOrchestrationStatus', null, global);
|
|
61
63
|
goog.exportSymbol('proto.clarifai.api.Audio', null, global);
|
|
62
64
|
goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
|
|
63
65
|
goog.exportSymbol('proto.clarifai.api.AuditLogEntry', null, global);
|
|
@@ -134,6 +136,7 @@ goog.exportSymbol('proto.clarifai.api.EndpointDeps', null, global);
|
|
|
134
136
|
goog.exportSymbol('proto.clarifai.api.EvalInfo', null, global);
|
|
135
137
|
goog.exportSymbol('proto.clarifai.api.EvalMetrics', null, global);
|
|
136
138
|
goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
|
|
139
|
+
goog.exportSymbol('proto.clarifai.api.EvaluationMetricValue', null, global);
|
|
137
140
|
goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
|
|
138
141
|
goog.exportSymbol('proto.clarifai.api.EventType', null, global);
|
|
139
142
|
goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
|
|
@@ -183,8 +186,11 @@ goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
|
|
|
183
186
|
goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
|
|
184
187
|
goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
|
|
185
188
|
goog.exportSymbol('proto.clarifai.api.Mask', null, global);
|
|
189
|
+
goog.exportSymbol('proto.clarifai.api.MetricValue', null, global);
|
|
190
|
+
goog.exportSymbol('proto.clarifai.api.MetricValue.MetricValueCase', null, global);
|
|
186
191
|
goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
|
|
187
192
|
goog.exportSymbol('proto.clarifai.api.Model', null, global);
|
|
193
|
+
goog.exportSymbol('proto.clarifai.api.Model.BillingType', null, global);
|
|
188
194
|
goog.exportSymbol('proto.clarifai.api.Model.Source', null, global);
|
|
189
195
|
goog.exportSymbol('proto.clarifai.api.ModelLayerInfo', null, global);
|
|
190
196
|
goog.exportSymbol('proto.clarifai.api.ModelPredictConfig', null, global);
|
|
@@ -212,6 +218,10 @@ goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
|
|
|
212
218
|
goog.exportSymbol('proto.clarifai.api.Operation', null, global);
|
|
213
219
|
goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
|
|
214
220
|
goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
|
|
221
|
+
goog.exportSymbol('proto.clarifai.api.OrchestrationSpec', null, global);
|
|
222
|
+
goog.exportSymbol('proto.clarifai.api.OrchestrationSpec.OrchestrationCase', null, global);
|
|
223
|
+
goog.exportSymbol('proto.clarifai.api.OrchestrationStatus', null, global);
|
|
224
|
+
goog.exportSymbol('proto.clarifai.api.OrchestrationStatus.StatusDetailsCase', null, global);
|
|
215
225
|
goog.exportSymbol('proto.clarifai.api.Output', null, global);
|
|
216
226
|
goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
|
|
217
227
|
goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global);
|
|
@@ -221,6 +231,8 @@ goog.exportSymbol('proto.clarifai.api.Part', null, global);
|
|
|
221
231
|
goog.exportSymbol('proto.clarifai.api.Password', null, global);
|
|
222
232
|
goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global);
|
|
223
233
|
goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
|
|
234
|
+
goog.exportSymbol('proto.clarifai.api.PipelineVersion', null, global);
|
|
235
|
+
goog.exportSymbol('proto.clarifai.api.PipelineVersionRun', null, global);
|
|
224
236
|
goog.exportSymbol('proto.clarifai.api.Point', null, global);
|
|
225
237
|
goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
|
|
226
238
|
goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
|
|
@@ -304,11 +316,14 @@ goog.exportSymbol('proto.clarifai.api.W3C', null, global);
|
|
|
304
316
|
goog.exportSymbol('proto.clarifai.api.Worker', null, global);
|
|
305
317
|
goog.exportSymbol('proto.clarifai.api.Worker.WorkerCase', null, global);
|
|
306
318
|
goog.exportSymbol('proto.clarifai.api.Workflow', null, global);
|
|
319
|
+
goog.exportSymbol('proto.clarifai.api.WorkflowEvaluationResult', null, global);
|
|
320
|
+
goog.exportSymbol('proto.clarifai.api.WorkflowEvaluationResultSummary', null, global);
|
|
307
321
|
goog.exportSymbol('proto.clarifai.api.WorkflowModelUseCase', null, global);
|
|
308
322
|
goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
|
|
309
323
|
goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
|
|
310
324
|
goog.exportSymbol('proto.clarifai.api.WorkflowState', null, global);
|
|
311
325
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersion', null, global);
|
|
326
|
+
goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluation', null, global);
|
|
312
327
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric', null, global);
|
|
313
328
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.DataType', null, global);
|
|
314
329
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersionEvaluationMetric.VisualisationType', null, global);
|
|
@@ -5018,6 +5033,237 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5018
5033
|
*/
|
|
5019
5034
|
proto.clarifai.api.ComputeSourceMetadata.displayName = 'proto.clarifai.api.ComputeSourceMetadata';
|
|
5020
5035
|
}
|
|
5036
|
+
/**
|
|
5037
|
+
* Generated by JsPbCodeGenerator.
|
|
5038
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5039
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5040
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5041
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5042
|
+
* valid.
|
|
5043
|
+
* @extends {jspb.Message}
|
|
5044
|
+
* @constructor
|
|
5045
|
+
*/
|
|
5046
|
+
proto.clarifai.api.WorkflowVersionEvaluation = function(opt_data) {
|
|
5047
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5048
|
+
};
|
|
5049
|
+
goog.inherits(proto.clarifai.api.WorkflowVersionEvaluation, jspb.Message);
|
|
5050
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5051
|
+
/**
|
|
5052
|
+
* @public
|
|
5053
|
+
* @override
|
|
5054
|
+
*/
|
|
5055
|
+
proto.clarifai.api.WorkflowVersionEvaluation.displayName = 'proto.clarifai.api.WorkflowVersionEvaluation';
|
|
5056
|
+
}
|
|
5057
|
+
/**
|
|
5058
|
+
* Generated by JsPbCodeGenerator.
|
|
5059
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5060
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5061
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5062
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5063
|
+
* valid.
|
|
5064
|
+
* @extends {jspb.Message}
|
|
5065
|
+
* @constructor
|
|
5066
|
+
*/
|
|
5067
|
+
proto.clarifai.api.WorkflowEvaluationResult = function(opt_data) {
|
|
5068
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5069
|
+
};
|
|
5070
|
+
goog.inherits(proto.clarifai.api.WorkflowEvaluationResult, jspb.Message);
|
|
5071
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5072
|
+
/**
|
|
5073
|
+
* @public
|
|
5074
|
+
* @override
|
|
5075
|
+
*/
|
|
5076
|
+
proto.clarifai.api.WorkflowEvaluationResult.displayName = 'proto.clarifai.api.WorkflowEvaluationResult';
|
|
5077
|
+
}
|
|
5078
|
+
/**
|
|
5079
|
+
* Generated by JsPbCodeGenerator.
|
|
5080
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5081
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5082
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5083
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5084
|
+
* valid.
|
|
5085
|
+
* @extends {jspb.Message}
|
|
5086
|
+
* @constructor
|
|
5087
|
+
*/
|
|
5088
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary = function(opt_data) {
|
|
5089
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.WorkflowEvaluationResultSummary.repeatedFields_, null);
|
|
5090
|
+
};
|
|
5091
|
+
goog.inherits(proto.clarifai.api.WorkflowEvaluationResultSummary, jspb.Message);
|
|
5092
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5093
|
+
/**
|
|
5094
|
+
* @public
|
|
5095
|
+
* @override
|
|
5096
|
+
*/
|
|
5097
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.displayName = 'proto.clarifai.api.WorkflowEvaluationResultSummary';
|
|
5098
|
+
}
|
|
5099
|
+
/**
|
|
5100
|
+
* Generated by JsPbCodeGenerator.
|
|
5101
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5102
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5103
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5104
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5105
|
+
* valid.
|
|
5106
|
+
* @extends {jspb.Message}
|
|
5107
|
+
* @constructor
|
|
5108
|
+
*/
|
|
5109
|
+
proto.clarifai.api.EvaluationMetricValue = function(opt_data) {
|
|
5110
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5111
|
+
};
|
|
5112
|
+
goog.inherits(proto.clarifai.api.EvaluationMetricValue, jspb.Message);
|
|
5113
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5114
|
+
/**
|
|
5115
|
+
* @public
|
|
5116
|
+
* @override
|
|
5117
|
+
*/
|
|
5118
|
+
proto.clarifai.api.EvaluationMetricValue.displayName = 'proto.clarifai.api.EvaluationMetricValue';
|
|
5119
|
+
}
|
|
5120
|
+
/**
|
|
5121
|
+
* Generated by JsPbCodeGenerator.
|
|
5122
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5123
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5124
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5125
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5126
|
+
* valid.
|
|
5127
|
+
* @extends {jspb.Message}
|
|
5128
|
+
* @constructor
|
|
5129
|
+
*/
|
|
5130
|
+
proto.clarifai.api.MetricValue = function(opt_data) {
|
|
5131
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.MetricValue.oneofGroups_);
|
|
5132
|
+
};
|
|
5133
|
+
goog.inherits(proto.clarifai.api.MetricValue, jspb.Message);
|
|
5134
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5135
|
+
/**
|
|
5136
|
+
* @public
|
|
5137
|
+
* @override
|
|
5138
|
+
*/
|
|
5139
|
+
proto.clarifai.api.MetricValue.displayName = 'proto.clarifai.api.MetricValue';
|
|
5140
|
+
}
|
|
5141
|
+
/**
|
|
5142
|
+
* Generated by JsPbCodeGenerator.
|
|
5143
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5144
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5145
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5146
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5147
|
+
* valid.
|
|
5148
|
+
* @extends {jspb.Message}
|
|
5149
|
+
* @constructor
|
|
5150
|
+
*/
|
|
5151
|
+
proto.clarifai.api.ArgoOrchestrationSpec = function(opt_data) {
|
|
5152
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5153
|
+
};
|
|
5154
|
+
goog.inherits(proto.clarifai.api.ArgoOrchestrationSpec, jspb.Message);
|
|
5155
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5156
|
+
/**
|
|
5157
|
+
* @public
|
|
5158
|
+
* @override
|
|
5159
|
+
*/
|
|
5160
|
+
proto.clarifai.api.ArgoOrchestrationSpec.displayName = 'proto.clarifai.api.ArgoOrchestrationSpec';
|
|
5161
|
+
}
|
|
5162
|
+
/**
|
|
5163
|
+
* Generated by JsPbCodeGenerator.
|
|
5164
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5165
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5166
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5167
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5168
|
+
* valid.
|
|
5169
|
+
* @extends {jspb.Message}
|
|
5170
|
+
* @constructor
|
|
5171
|
+
*/
|
|
5172
|
+
proto.clarifai.api.OrchestrationSpec = function(opt_data) {
|
|
5173
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationSpec.oneofGroups_);
|
|
5174
|
+
};
|
|
5175
|
+
goog.inherits(proto.clarifai.api.OrchestrationSpec, jspb.Message);
|
|
5176
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5177
|
+
/**
|
|
5178
|
+
* @public
|
|
5179
|
+
* @override
|
|
5180
|
+
*/
|
|
5181
|
+
proto.clarifai.api.OrchestrationSpec.displayName = 'proto.clarifai.api.OrchestrationSpec';
|
|
5182
|
+
}
|
|
5183
|
+
/**
|
|
5184
|
+
* Generated by JsPbCodeGenerator.
|
|
5185
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5186
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5187
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5188
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5189
|
+
* valid.
|
|
5190
|
+
* @extends {jspb.Message}
|
|
5191
|
+
* @constructor
|
|
5192
|
+
*/
|
|
5193
|
+
proto.clarifai.api.PipelineVersion = function(opt_data) {
|
|
5194
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5195
|
+
};
|
|
5196
|
+
goog.inherits(proto.clarifai.api.PipelineVersion, jspb.Message);
|
|
5197
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5198
|
+
/**
|
|
5199
|
+
* @public
|
|
5200
|
+
* @override
|
|
5201
|
+
*/
|
|
5202
|
+
proto.clarifai.api.PipelineVersion.displayName = 'proto.clarifai.api.PipelineVersion';
|
|
5203
|
+
}
|
|
5204
|
+
/**
|
|
5205
|
+
* Generated by JsPbCodeGenerator.
|
|
5206
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5207
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5208
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5209
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5210
|
+
* valid.
|
|
5211
|
+
* @extends {jspb.Message}
|
|
5212
|
+
* @constructor
|
|
5213
|
+
*/
|
|
5214
|
+
proto.clarifai.api.OrchestrationStatus = function(opt_data) {
|
|
5215
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.OrchestrationStatus.oneofGroups_);
|
|
5216
|
+
};
|
|
5217
|
+
goog.inherits(proto.clarifai.api.OrchestrationStatus, jspb.Message);
|
|
5218
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5219
|
+
/**
|
|
5220
|
+
* @public
|
|
5221
|
+
* @override
|
|
5222
|
+
*/
|
|
5223
|
+
proto.clarifai.api.OrchestrationStatus.displayName = 'proto.clarifai.api.OrchestrationStatus';
|
|
5224
|
+
}
|
|
5225
|
+
/**
|
|
5226
|
+
* Generated by JsPbCodeGenerator.
|
|
5227
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5228
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5229
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5230
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5231
|
+
* valid.
|
|
5232
|
+
* @extends {jspb.Message}
|
|
5233
|
+
* @constructor
|
|
5234
|
+
*/
|
|
5235
|
+
proto.clarifai.api.ArgoOrchestrationStatus = function(opt_data) {
|
|
5236
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5237
|
+
};
|
|
5238
|
+
goog.inherits(proto.clarifai.api.ArgoOrchestrationStatus, jspb.Message);
|
|
5239
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5240
|
+
/**
|
|
5241
|
+
* @public
|
|
5242
|
+
* @override
|
|
5243
|
+
*/
|
|
5244
|
+
proto.clarifai.api.ArgoOrchestrationStatus.displayName = 'proto.clarifai.api.ArgoOrchestrationStatus';
|
|
5245
|
+
}
|
|
5246
|
+
/**
|
|
5247
|
+
* Generated by JsPbCodeGenerator.
|
|
5248
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5249
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5250
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5251
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5252
|
+
* valid.
|
|
5253
|
+
* @extends {jspb.Message}
|
|
5254
|
+
* @constructor
|
|
5255
|
+
*/
|
|
5256
|
+
proto.clarifai.api.PipelineVersionRun = function(opt_data) {
|
|
5257
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PipelineVersionRun.repeatedFields_, null);
|
|
5258
|
+
};
|
|
5259
|
+
goog.inherits(proto.clarifai.api.PipelineVersionRun, jspb.Message);
|
|
5260
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5261
|
+
/**
|
|
5262
|
+
* @public
|
|
5263
|
+
* @override
|
|
5264
|
+
*/
|
|
5265
|
+
proto.clarifai.api.PipelineVersionRun.displayName = 'proto.clarifai.api.PipelineVersionRun';
|
|
5266
|
+
}
|
|
5021
5267
|
|
|
5022
5268
|
|
|
5023
5269
|
|
|
@@ -13258,7 +13504,12 @@ proto.clarifai.api.Data.toObject = function(includeInstance, msg) {
|
|
|
13258
13504
|
proto.clarifai.api.Image.toObject, includeInstance),
|
|
13259
13505
|
partsList: jspb.Message.toObjectList(msg.getPartsList(),
|
|
13260
13506
|
proto.clarifai.api.Part.toObject, includeInstance),
|
|
13261
|
-
ndarray: (f = msg.getNdarray()) && proto.clarifai.api.NDArray.toObject(includeInstance, f)
|
|
13507
|
+
ndarray: (f = msg.getNdarray()) && proto.clarifai.api.NDArray.toObject(includeInstance, f),
|
|
13508
|
+
intValue: jspb.Message.getFieldWithDefault(msg, 21, 0),
|
|
13509
|
+
floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 22, 0.0),
|
|
13510
|
+
bytesValue: msg.getBytesValue_asB64(),
|
|
13511
|
+
boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
|
|
13512
|
+
stringValue: jspb.Message.getFieldWithDefault(msg, 25, "")
|
|
13262
13513
|
};
|
|
13263
13514
|
|
|
13264
13515
|
if (includeInstance) {
|
|
@@ -13385,6 +13636,26 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
13385
13636
|
reader.readMessage(value,proto.clarifai.api.NDArray.deserializeBinaryFromReader);
|
|
13386
13637
|
msg.setNdarray(value);
|
|
13387
13638
|
break;
|
|
13639
|
+
case 21:
|
|
13640
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
13641
|
+
msg.setIntValue(value);
|
|
13642
|
+
break;
|
|
13643
|
+
case 22:
|
|
13644
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
13645
|
+
msg.setFloatValue(value);
|
|
13646
|
+
break;
|
|
13647
|
+
case 23:
|
|
13648
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
13649
|
+
msg.setBytesValue(value);
|
|
13650
|
+
break;
|
|
13651
|
+
case 24:
|
|
13652
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
13653
|
+
msg.setBoolValue(value);
|
|
13654
|
+
break;
|
|
13655
|
+
case 25:
|
|
13656
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13657
|
+
msg.setStringValue(value);
|
|
13658
|
+
break;
|
|
13388
13659
|
default:
|
|
13389
13660
|
reader.skipField();
|
|
13390
13661
|
break;
|
|
@@ -13558,6 +13829,41 @@ proto.clarifai.api.Data.serializeBinaryToWriter = function(message, writer) {
|
|
|
13558
13829
|
proto.clarifai.api.NDArray.serializeBinaryToWriter
|
|
13559
13830
|
);
|
|
13560
13831
|
}
|
|
13832
|
+
f = message.getIntValue();
|
|
13833
|
+
if (f !== 0) {
|
|
13834
|
+
writer.writeInt64(
|
|
13835
|
+
21,
|
|
13836
|
+
f
|
|
13837
|
+
);
|
|
13838
|
+
}
|
|
13839
|
+
f = message.getFloatValue();
|
|
13840
|
+
if (f !== 0.0) {
|
|
13841
|
+
writer.writeDouble(
|
|
13842
|
+
22,
|
|
13843
|
+
f
|
|
13844
|
+
);
|
|
13845
|
+
}
|
|
13846
|
+
f = message.getBytesValue_asU8();
|
|
13847
|
+
if (f.length > 0) {
|
|
13848
|
+
writer.writeBytes(
|
|
13849
|
+
23,
|
|
13850
|
+
f
|
|
13851
|
+
);
|
|
13852
|
+
}
|
|
13853
|
+
f = message.getBoolValue();
|
|
13854
|
+
if (f) {
|
|
13855
|
+
writer.writeBool(
|
|
13856
|
+
24,
|
|
13857
|
+
f
|
|
13858
|
+
);
|
|
13859
|
+
}
|
|
13860
|
+
f = message.getStringValue();
|
|
13861
|
+
if (f.length > 0) {
|
|
13862
|
+
writer.writeString(
|
|
13863
|
+
25,
|
|
13864
|
+
f
|
|
13865
|
+
);
|
|
13866
|
+
}
|
|
13561
13867
|
};
|
|
13562
13868
|
|
|
13563
13869
|
|
|
@@ -14238,6 +14544,120 @@ proto.clarifai.api.Data.prototype.hasNdarray = function() {
|
|
|
14238
14544
|
};
|
|
14239
14545
|
|
|
14240
14546
|
|
|
14547
|
+
/**
|
|
14548
|
+
* optional int64 int_value = 21;
|
|
14549
|
+
* @return {number}
|
|
14550
|
+
*/
|
|
14551
|
+
proto.clarifai.api.Data.prototype.getIntValue = function() {
|
|
14552
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
|
|
14553
|
+
};
|
|
14554
|
+
|
|
14555
|
+
|
|
14556
|
+
/**
|
|
14557
|
+
* @param {number} value
|
|
14558
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
14559
|
+
*/
|
|
14560
|
+
proto.clarifai.api.Data.prototype.setIntValue = function(value) {
|
|
14561
|
+
return jspb.Message.setProto3IntField(this, 21, value);
|
|
14562
|
+
};
|
|
14563
|
+
|
|
14564
|
+
|
|
14565
|
+
/**
|
|
14566
|
+
* optional double float_value = 22;
|
|
14567
|
+
* @return {number}
|
|
14568
|
+
*/
|
|
14569
|
+
proto.clarifai.api.Data.prototype.getFloatValue = function() {
|
|
14570
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 22, 0.0));
|
|
14571
|
+
};
|
|
14572
|
+
|
|
14573
|
+
|
|
14574
|
+
/**
|
|
14575
|
+
* @param {number} value
|
|
14576
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
14577
|
+
*/
|
|
14578
|
+
proto.clarifai.api.Data.prototype.setFloatValue = function(value) {
|
|
14579
|
+
return jspb.Message.setProto3FloatField(this, 22, value);
|
|
14580
|
+
};
|
|
14581
|
+
|
|
14582
|
+
|
|
14583
|
+
/**
|
|
14584
|
+
* optional bytes bytes_value = 23;
|
|
14585
|
+
* @return {string}
|
|
14586
|
+
*/
|
|
14587
|
+
proto.clarifai.api.Data.prototype.getBytesValue = function() {
|
|
14588
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
|
|
14589
|
+
};
|
|
14590
|
+
|
|
14591
|
+
|
|
14592
|
+
/**
|
|
14593
|
+
* optional bytes bytes_value = 23;
|
|
14594
|
+
* This is a type-conversion wrapper around `getBytesValue()`
|
|
14595
|
+
* @return {string}
|
|
14596
|
+
*/
|
|
14597
|
+
proto.clarifai.api.Data.prototype.getBytesValue_asB64 = function() {
|
|
14598
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
14599
|
+
this.getBytesValue()));
|
|
14600
|
+
};
|
|
14601
|
+
|
|
14602
|
+
|
|
14603
|
+
/**
|
|
14604
|
+
* optional bytes bytes_value = 23;
|
|
14605
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
14606
|
+
* @see http://caniuse.com/Uint8Array
|
|
14607
|
+
* This is a type-conversion wrapper around `getBytesValue()`
|
|
14608
|
+
* @return {!Uint8Array}
|
|
14609
|
+
*/
|
|
14610
|
+
proto.clarifai.api.Data.prototype.getBytesValue_asU8 = function() {
|
|
14611
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
14612
|
+
this.getBytesValue()));
|
|
14613
|
+
};
|
|
14614
|
+
|
|
14615
|
+
|
|
14616
|
+
/**
|
|
14617
|
+
* @param {!(string|Uint8Array)} value
|
|
14618
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
14619
|
+
*/
|
|
14620
|
+
proto.clarifai.api.Data.prototype.setBytesValue = function(value) {
|
|
14621
|
+
return jspb.Message.setProto3BytesField(this, 23, value);
|
|
14622
|
+
};
|
|
14623
|
+
|
|
14624
|
+
|
|
14625
|
+
/**
|
|
14626
|
+
* optional bool bool_value = 24;
|
|
14627
|
+
* @return {boolean}
|
|
14628
|
+
*/
|
|
14629
|
+
proto.clarifai.api.Data.prototype.getBoolValue = function() {
|
|
14630
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false));
|
|
14631
|
+
};
|
|
14632
|
+
|
|
14633
|
+
|
|
14634
|
+
/**
|
|
14635
|
+
* @param {boolean} value
|
|
14636
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
14637
|
+
*/
|
|
14638
|
+
proto.clarifai.api.Data.prototype.setBoolValue = function(value) {
|
|
14639
|
+
return jspb.Message.setProto3BooleanField(this, 24, value);
|
|
14640
|
+
};
|
|
14641
|
+
|
|
14642
|
+
|
|
14643
|
+
/**
|
|
14644
|
+
* optional string string_value = 25;
|
|
14645
|
+
* @return {string}
|
|
14646
|
+
*/
|
|
14647
|
+
proto.clarifai.api.Data.prototype.getStringValue = function() {
|
|
14648
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
|
|
14649
|
+
};
|
|
14650
|
+
|
|
14651
|
+
|
|
14652
|
+
/**
|
|
14653
|
+
* @param {string} value
|
|
14654
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
14655
|
+
*/
|
|
14656
|
+
proto.clarifai.api.Data.prototype.setStringValue = function(value) {
|
|
14657
|
+
return jspb.Message.setProto3StringField(this, 25, value);
|
|
14658
|
+
};
|
|
14659
|
+
|
|
14660
|
+
|
|
14241
14661
|
|
|
14242
14662
|
|
|
14243
14663
|
|
|
@@ -14270,7 +14690,8 @@ proto.clarifai.api.Part.prototype.toObject = function(opt_includeInstance) {
|
|
|
14270
14690
|
*/
|
|
14271
14691
|
proto.clarifai.api.Part.toObject = function(includeInstance, msg) {
|
|
14272
14692
|
var f, obj = {
|
|
14273
|
-
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f)
|
|
14693
|
+
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f),
|
|
14694
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
14274
14695
|
};
|
|
14275
14696
|
|
|
14276
14697
|
if (includeInstance) {
|
|
@@ -14312,6 +14733,10 @@ proto.clarifai.api.Part.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
14312
14733
|
reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader);
|
|
14313
14734
|
msg.setData(value);
|
|
14314
14735
|
break;
|
|
14736
|
+
case 2:
|
|
14737
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14738
|
+
msg.setId(value);
|
|
14739
|
+
break;
|
|
14315
14740
|
default:
|
|
14316
14741
|
reader.skipField();
|
|
14317
14742
|
break;
|
|
@@ -14349,6 +14774,13 @@ proto.clarifai.api.Part.serializeBinaryToWriter = function(message, writer) {
|
|
|
14349
14774
|
proto.clarifai.api.Data.serializeBinaryToWriter
|
|
14350
14775
|
);
|
|
14351
14776
|
}
|
|
14777
|
+
f = message.getId();
|
|
14778
|
+
if (f.length > 0) {
|
|
14779
|
+
writer.writeString(
|
|
14780
|
+
2,
|
|
14781
|
+
f
|
|
14782
|
+
);
|
|
14783
|
+
}
|
|
14352
14784
|
};
|
|
14353
14785
|
|
|
14354
14786
|
|
|
@@ -14389,6 +14821,24 @@ proto.clarifai.api.Part.prototype.hasData = function() {
|
|
|
14389
14821
|
};
|
|
14390
14822
|
|
|
14391
14823
|
|
|
14824
|
+
/**
|
|
14825
|
+
* optional string id = 2;
|
|
14826
|
+
* @return {string}
|
|
14827
|
+
*/
|
|
14828
|
+
proto.clarifai.api.Part.prototype.getId = function() {
|
|
14829
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
14830
|
+
};
|
|
14831
|
+
|
|
14832
|
+
|
|
14833
|
+
/**
|
|
14834
|
+
* @param {string} value
|
|
14835
|
+
* @return {!proto.clarifai.api.Part} returns this
|
|
14836
|
+
*/
|
|
14837
|
+
proto.clarifai.api.Part.prototype.setId = function(value) {
|
|
14838
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
14839
|
+
};
|
|
14840
|
+
|
|
14841
|
+
|
|
14392
14842
|
|
|
14393
14843
|
|
|
14394
14844
|
|
|
@@ -24788,7 +25238,8 @@ proto.clarifai.api.Model.toObject = function(includeInstance, msg) {
|
|
|
24788
25238
|
licenseType: jspb.Message.getFieldWithDefault(msg, 35, 0),
|
|
24789
25239
|
source: jspb.Message.getFieldWithDefault(msg, 36, 0),
|
|
24790
25240
|
creator: jspb.Message.getFieldWithDefault(msg, 37, ""),
|
|
24791
|
-
versionCount: jspb.Message.getFieldWithDefault(msg, 38, 0)
|
|
25241
|
+
versionCount: jspb.Message.getFieldWithDefault(msg, 38, 0),
|
|
25242
|
+
billingType: jspb.Message.getFieldWithDefault(msg, 40, 0)
|
|
24792
25243
|
};
|
|
24793
25244
|
|
|
24794
25245
|
if (includeInstance) {
|
|
@@ -24961,6 +25412,10 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
24961
25412
|
var value = /** @type {number} */ (reader.readInt32());
|
|
24962
25413
|
msg.setVersionCount(value);
|
|
24963
25414
|
break;
|
|
25415
|
+
case 40:
|
|
25416
|
+
var value = /** @type {!proto.clarifai.api.Model.BillingType} */ (reader.readEnum());
|
|
25417
|
+
msg.setBillingType(value);
|
|
25418
|
+
break;
|
|
24964
25419
|
default:
|
|
24965
25420
|
reader.skipField();
|
|
24966
25421
|
break;
|
|
@@ -25219,6 +25674,13 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function(message, writer) {
|
|
|
25219
25674
|
f
|
|
25220
25675
|
);
|
|
25221
25676
|
}
|
|
25677
|
+
f = message.getBillingType();
|
|
25678
|
+
if (f !== 0.0) {
|
|
25679
|
+
writer.writeEnum(
|
|
25680
|
+
40,
|
|
25681
|
+
f
|
|
25682
|
+
);
|
|
25683
|
+
}
|
|
25222
25684
|
};
|
|
25223
25685
|
|
|
25224
25686
|
|
|
@@ -25231,6 +25693,15 @@ proto.clarifai.api.Model.Source = {
|
|
|
25231
25693
|
WRAPPED: 2
|
|
25232
25694
|
};
|
|
25233
25695
|
|
|
25696
|
+
/**
|
|
25697
|
+
* @enum {number}
|
|
25698
|
+
*/
|
|
25699
|
+
proto.clarifai.api.Model.BillingType = {
|
|
25700
|
+
UNKNOWN: 0,
|
|
25701
|
+
TOKENS: 1,
|
|
25702
|
+
OPS: 2
|
|
25703
|
+
};
|
|
25704
|
+
|
|
25234
25705
|
/**
|
|
25235
25706
|
* optional string id = 1;
|
|
25236
25707
|
* @return {string}
|
|
@@ -26094,6 +26565,24 @@ proto.clarifai.api.Model.prototype.setVersionCount = function(value) {
|
|
|
26094
26565
|
};
|
|
26095
26566
|
|
|
26096
26567
|
|
|
26568
|
+
/**
|
|
26569
|
+
* optional BillingType billing_type = 40;
|
|
26570
|
+
* @return {!proto.clarifai.api.Model.BillingType}
|
|
26571
|
+
*/
|
|
26572
|
+
proto.clarifai.api.Model.prototype.getBillingType = function() {
|
|
26573
|
+
return /** @type {!proto.clarifai.api.Model.BillingType} */ (jspb.Message.getFieldWithDefault(this, 40, 0));
|
|
26574
|
+
};
|
|
26575
|
+
|
|
26576
|
+
|
|
26577
|
+
/**
|
|
26578
|
+
* @param {!proto.clarifai.api.Model.BillingType} value
|
|
26579
|
+
* @return {!proto.clarifai.api.Model} returns this
|
|
26580
|
+
*/
|
|
26581
|
+
proto.clarifai.api.Model.prototype.setBillingType = function(value) {
|
|
26582
|
+
return jspb.Message.setProto3EnumField(this, 40, value);
|
|
26583
|
+
};
|
|
26584
|
+
|
|
26585
|
+
|
|
26097
26586
|
|
|
26098
26587
|
|
|
26099
26588
|
|
|
@@ -70421,7 +70910,8 @@ proto.clarifai.api.AutoscaleConfig.toObject = function(includeInstance, msg) {
|
|
|
70421
70910
|
trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
70422
70911
|
scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
70423
70912
|
scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
70424
|
-
disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
70913
|
+
disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
70914
|
+
scaleToZeroDelaySeconds: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
70425
70915
|
};
|
|
70426
70916
|
|
|
70427
70917
|
if (includeInstance) {
|
|
@@ -70482,6 +70972,10 @@ proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function(msg, r
|
|
|
70482
70972
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
70483
70973
|
msg.setDisablePacking(value);
|
|
70484
70974
|
break;
|
|
70975
|
+
case 8:
|
|
70976
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
70977
|
+
msg.setScaleToZeroDelaySeconds(value);
|
|
70978
|
+
break;
|
|
70485
70979
|
default:
|
|
70486
70980
|
reader.skipField();
|
|
70487
70981
|
break;
|
|
@@ -70553,6 +71047,13 @@ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function(message, w
|
|
|
70553
71047
|
f
|
|
70554
71048
|
);
|
|
70555
71049
|
}
|
|
71050
|
+
f = message.getScaleToZeroDelaySeconds();
|
|
71051
|
+
if (f !== 0) {
|
|
71052
|
+
writer.writeUint32(
|
|
71053
|
+
8,
|
|
71054
|
+
f
|
|
71055
|
+
);
|
|
71056
|
+
}
|
|
70556
71057
|
};
|
|
70557
71058
|
|
|
70558
71059
|
|
|
@@ -70664,6 +71165,24 @@ proto.clarifai.api.AutoscaleConfig.prototype.setDisablePacking = function(value)
|
|
|
70664
71165
|
};
|
|
70665
71166
|
|
|
70666
71167
|
|
|
71168
|
+
/**
|
|
71169
|
+
* optional uint32 scale_to_zero_delay_seconds = 8;
|
|
71170
|
+
* @return {number}
|
|
71171
|
+
*/
|
|
71172
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getScaleToZeroDelaySeconds = function() {
|
|
71173
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
71174
|
+
};
|
|
71175
|
+
|
|
71176
|
+
|
|
71177
|
+
/**
|
|
71178
|
+
* @param {number} value
|
|
71179
|
+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
71180
|
+
*/
|
|
71181
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setScaleToZeroDelaySeconds = function(value) {
|
|
71182
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
71183
|
+
};
|
|
71184
|
+
|
|
71185
|
+
|
|
70667
71186
|
|
|
70668
71187
|
/**
|
|
70669
71188
|
* List of repeated fields within this message type.
|
|
@@ -75167,6 +75686,2927 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function(value)
|
|
|
75167
75686
|
};
|
|
75168
75687
|
|
|
75169
75688
|
|
|
75689
|
+
|
|
75690
|
+
|
|
75691
|
+
|
|
75692
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
75693
|
+
/**
|
|
75694
|
+
* Creates an object representation of this proto.
|
|
75695
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
75696
|
+
* Optional fields that are not set will be set to undefined.
|
|
75697
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
75698
|
+
* For the list of reserved names please see:
|
|
75699
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
75700
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
75701
|
+
* JSPB instance for transitional soy proto support:
|
|
75702
|
+
* http://goto/soy-param-migration
|
|
75703
|
+
* @return {!Object}
|
|
75704
|
+
*/
|
|
75705
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.toObject = function(opt_includeInstance) {
|
|
75706
|
+
return proto.clarifai.api.WorkflowVersionEvaluation.toObject(opt_includeInstance, this);
|
|
75707
|
+
};
|
|
75708
|
+
|
|
75709
|
+
|
|
75710
|
+
/**
|
|
75711
|
+
* Static version of the {@see toObject} method.
|
|
75712
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
75713
|
+
* the JSPB instance for transitional soy proto support:
|
|
75714
|
+
* http://goto/soy-param-migration
|
|
75715
|
+
* @param {!proto.clarifai.api.WorkflowVersionEvaluation} msg The msg instance to transform.
|
|
75716
|
+
* @return {!Object}
|
|
75717
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
75718
|
+
*/
|
|
75719
|
+
proto.clarifai.api.WorkflowVersionEvaluation.toObject = function(includeInstance, msg) {
|
|
75720
|
+
var f, obj = {
|
|
75721
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
75722
|
+
workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
75723
|
+
workflowVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
75724
|
+
groundTruthDatasetId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
75725
|
+
groundTruthDatasetVersionId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
75726
|
+
predictionsDatasetId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
75727
|
+
predictionsDatasetVersionId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
75728
|
+
evaluationTemplateId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
75729
|
+
workflowEvaluationResult: (f = msg.getWorkflowEvaluationResult()) && proto.clarifai.api.WorkflowEvaluationResult.toObject(includeInstance, f),
|
|
75730
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
75731
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
75732
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
75733
|
+
};
|
|
75734
|
+
|
|
75735
|
+
if (includeInstance) {
|
|
75736
|
+
obj.$jspbMessageInstance = msg;
|
|
75737
|
+
}
|
|
75738
|
+
return obj;
|
|
75739
|
+
};
|
|
75740
|
+
}
|
|
75741
|
+
|
|
75742
|
+
|
|
75743
|
+
/**
|
|
75744
|
+
* Deserializes binary data (in protobuf wire format).
|
|
75745
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
75746
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation}
|
|
75747
|
+
*/
|
|
75748
|
+
proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinary = function(bytes) {
|
|
75749
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
75750
|
+
var msg = new proto.clarifai.api.WorkflowVersionEvaluation;
|
|
75751
|
+
return proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinaryFromReader(msg, reader);
|
|
75752
|
+
};
|
|
75753
|
+
|
|
75754
|
+
|
|
75755
|
+
/**
|
|
75756
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
75757
|
+
* given reader into the given message object.
|
|
75758
|
+
* @param {!proto.clarifai.api.WorkflowVersionEvaluation} msg The message object to deserialize into.
|
|
75759
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
75760
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation}
|
|
75761
|
+
*/
|
|
75762
|
+
proto.clarifai.api.WorkflowVersionEvaluation.deserializeBinaryFromReader = function(msg, reader) {
|
|
75763
|
+
while (reader.nextField()) {
|
|
75764
|
+
if (reader.isEndGroup()) {
|
|
75765
|
+
break;
|
|
75766
|
+
}
|
|
75767
|
+
var field = reader.getFieldNumber();
|
|
75768
|
+
switch (field) {
|
|
75769
|
+
case 1:
|
|
75770
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75771
|
+
msg.setId(value);
|
|
75772
|
+
break;
|
|
75773
|
+
case 2:
|
|
75774
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75775
|
+
msg.setWorkflowId(value);
|
|
75776
|
+
break;
|
|
75777
|
+
case 3:
|
|
75778
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75779
|
+
msg.setWorkflowVersionId(value);
|
|
75780
|
+
break;
|
|
75781
|
+
case 4:
|
|
75782
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75783
|
+
msg.setGroundTruthDatasetId(value);
|
|
75784
|
+
break;
|
|
75785
|
+
case 5:
|
|
75786
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75787
|
+
msg.setGroundTruthDatasetVersionId(value);
|
|
75788
|
+
break;
|
|
75789
|
+
case 6:
|
|
75790
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75791
|
+
msg.setPredictionsDatasetId(value);
|
|
75792
|
+
break;
|
|
75793
|
+
case 7:
|
|
75794
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75795
|
+
msg.setPredictionsDatasetVersionId(value);
|
|
75796
|
+
break;
|
|
75797
|
+
case 8:
|
|
75798
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75799
|
+
msg.setEvaluationTemplateId(value);
|
|
75800
|
+
break;
|
|
75801
|
+
case 9:
|
|
75802
|
+
var value = new proto.clarifai.api.WorkflowEvaluationResult;
|
|
75803
|
+
reader.readMessage(value,proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader);
|
|
75804
|
+
msg.setWorkflowEvaluationResult(value);
|
|
75805
|
+
break;
|
|
75806
|
+
case 10:
|
|
75807
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
75808
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
75809
|
+
msg.setStatus(value);
|
|
75810
|
+
break;
|
|
75811
|
+
case 11:
|
|
75812
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
75813
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
75814
|
+
msg.setCreatedAt(value);
|
|
75815
|
+
break;
|
|
75816
|
+
case 12:
|
|
75817
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
75818
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
75819
|
+
msg.setModifiedAt(value);
|
|
75820
|
+
break;
|
|
75821
|
+
default:
|
|
75822
|
+
reader.skipField();
|
|
75823
|
+
break;
|
|
75824
|
+
}
|
|
75825
|
+
}
|
|
75826
|
+
return msg;
|
|
75827
|
+
};
|
|
75828
|
+
|
|
75829
|
+
|
|
75830
|
+
/**
|
|
75831
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
75832
|
+
* @return {!Uint8Array}
|
|
75833
|
+
*/
|
|
75834
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.serializeBinary = function() {
|
|
75835
|
+
var writer = new jspb.BinaryWriter();
|
|
75836
|
+
proto.clarifai.api.WorkflowVersionEvaluation.serializeBinaryToWriter(this, writer);
|
|
75837
|
+
return writer.getResultBuffer();
|
|
75838
|
+
};
|
|
75839
|
+
|
|
75840
|
+
|
|
75841
|
+
/**
|
|
75842
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
75843
|
+
* format), writing to the given BinaryWriter.
|
|
75844
|
+
* @param {!proto.clarifai.api.WorkflowVersionEvaluation} message
|
|
75845
|
+
* @param {!jspb.BinaryWriter} writer
|
|
75846
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
75847
|
+
*/
|
|
75848
|
+
proto.clarifai.api.WorkflowVersionEvaluation.serializeBinaryToWriter = function(message, writer) {
|
|
75849
|
+
var f = undefined;
|
|
75850
|
+
f = message.getId();
|
|
75851
|
+
if (f.length > 0) {
|
|
75852
|
+
writer.writeString(
|
|
75853
|
+
1,
|
|
75854
|
+
f
|
|
75855
|
+
);
|
|
75856
|
+
}
|
|
75857
|
+
f = message.getWorkflowId();
|
|
75858
|
+
if (f.length > 0) {
|
|
75859
|
+
writer.writeString(
|
|
75860
|
+
2,
|
|
75861
|
+
f
|
|
75862
|
+
);
|
|
75863
|
+
}
|
|
75864
|
+
f = message.getWorkflowVersionId();
|
|
75865
|
+
if (f.length > 0) {
|
|
75866
|
+
writer.writeString(
|
|
75867
|
+
3,
|
|
75868
|
+
f
|
|
75869
|
+
);
|
|
75870
|
+
}
|
|
75871
|
+
f = message.getGroundTruthDatasetId();
|
|
75872
|
+
if (f.length > 0) {
|
|
75873
|
+
writer.writeString(
|
|
75874
|
+
4,
|
|
75875
|
+
f
|
|
75876
|
+
);
|
|
75877
|
+
}
|
|
75878
|
+
f = message.getGroundTruthDatasetVersionId();
|
|
75879
|
+
if (f.length > 0) {
|
|
75880
|
+
writer.writeString(
|
|
75881
|
+
5,
|
|
75882
|
+
f
|
|
75883
|
+
);
|
|
75884
|
+
}
|
|
75885
|
+
f = message.getPredictionsDatasetId();
|
|
75886
|
+
if (f.length > 0) {
|
|
75887
|
+
writer.writeString(
|
|
75888
|
+
6,
|
|
75889
|
+
f
|
|
75890
|
+
);
|
|
75891
|
+
}
|
|
75892
|
+
f = message.getPredictionsDatasetVersionId();
|
|
75893
|
+
if (f.length > 0) {
|
|
75894
|
+
writer.writeString(
|
|
75895
|
+
7,
|
|
75896
|
+
f
|
|
75897
|
+
);
|
|
75898
|
+
}
|
|
75899
|
+
f = message.getEvaluationTemplateId();
|
|
75900
|
+
if (f.length > 0) {
|
|
75901
|
+
writer.writeString(
|
|
75902
|
+
8,
|
|
75903
|
+
f
|
|
75904
|
+
);
|
|
75905
|
+
}
|
|
75906
|
+
f = message.getWorkflowEvaluationResult();
|
|
75907
|
+
if (f != null) {
|
|
75908
|
+
writer.writeMessage(
|
|
75909
|
+
9,
|
|
75910
|
+
f,
|
|
75911
|
+
proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter
|
|
75912
|
+
);
|
|
75913
|
+
}
|
|
75914
|
+
f = message.getStatus();
|
|
75915
|
+
if (f != null) {
|
|
75916
|
+
writer.writeMessage(
|
|
75917
|
+
10,
|
|
75918
|
+
f,
|
|
75919
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
75920
|
+
);
|
|
75921
|
+
}
|
|
75922
|
+
f = message.getCreatedAt();
|
|
75923
|
+
if (f != null) {
|
|
75924
|
+
writer.writeMessage(
|
|
75925
|
+
11,
|
|
75926
|
+
f,
|
|
75927
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
75928
|
+
);
|
|
75929
|
+
}
|
|
75930
|
+
f = message.getModifiedAt();
|
|
75931
|
+
if (f != null) {
|
|
75932
|
+
writer.writeMessage(
|
|
75933
|
+
12,
|
|
75934
|
+
f,
|
|
75935
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
75936
|
+
);
|
|
75937
|
+
}
|
|
75938
|
+
};
|
|
75939
|
+
|
|
75940
|
+
|
|
75941
|
+
/**
|
|
75942
|
+
* optional string id = 1;
|
|
75943
|
+
* @return {string}
|
|
75944
|
+
*/
|
|
75945
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getId = function() {
|
|
75946
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
75947
|
+
};
|
|
75948
|
+
|
|
75949
|
+
|
|
75950
|
+
/**
|
|
75951
|
+
* @param {string} value
|
|
75952
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
75953
|
+
*/
|
|
75954
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setId = function(value) {
|
|
75955
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
75956
|
+
};
|
|
75957
|
+
|
|
75958
|
+
|
|
75959
|
+
/**
|
|
75960
|
+
* optional string workflow_id = 2;
|
|
75961
|
+
* @return {string}
|
|
75962
|
+
*/
|
|
75963
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowId = function() {
|
|
75964
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
75965
|
+
};
|
|
75966
|
+
|
|
75967
|
+
|
|
75968
|
+
/**
|
|
75969
|
+
* @param {string} value
|
|
75970
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
75971
|
+
*/
|
|
75972
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowId = function(value) {
|
|
75973
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
75974
|
+
};
|
|
75975
|
+
|
|
75976
|
+
|
|
75977
|
+
/**
|
|
75978
|
+
* optional string workflow_version_id = 3;
|
|
75979
|
+
* @return {string}
|
|
75980
|
+
*/
|
|
75981
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowVersionId = function() {
|
|
75982
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
75983
|
+
};
|
|
75984
|
+
|
|
75985
|
+
|
|
75986
|
+
/**
|
|
75987
|
+
* @param {string} value
|
|
75988
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
75989
|
+
*/
|
|
75990
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowVersionId = function(value) {
|
|
75991
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
75992
|
+
};
|
|
75993
|
+
|
|
75994
|
+
|
|
75995
|
+
/**
|
|
75996
|
+
* optional string ground_truth_dataset_id = 4;
|
|
75997
|
+
* @return {string}
|
|
75998
|
+
*/
|
|
75999
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getGroundTruthDatasetId = function() {
|
|
76000
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
76001
|
+
};
|
|
76002
|
+
|
|
76003
|
+
|
|
76004
|
+
/**
|
|
76005
|
+
* @param {string} value
|
|
76006
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76007
|
+
*/
|
|
76008
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setGroundTruthDatasetId = function(value) {
|
|
76009
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
76010
|
+
};
|
|
76011
|
+
|
|
76012
|
+
|
|
76013
|
+
/**
|
|
76014
|
+
* optional string ground_truth_dataset_version_id = 5;
|
|
76015
|
+
* @return {string}
|
|
76016
|
+
*/
|
|
76017
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getGroundTruthDatasetVersionId = function() {
|
|
76018
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
76019
|
+
};
|
|
76020
|
+
|
|
76021
|
+
|
|
76022
|
+
/**
|
|
76023
|
+
* @param {string} value
|
|
76024
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76025
|
+
*/
|
|
76026
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setGroundTruthDatasetVersionId = function(value) {
|
|
76027
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
76028
|
+
};
|
|
76029
|
+
|
|
76030
|
+
|
|
76031
|
+
/**
|
|
76032
|
+
* optional string predictions_dataset_id = 6;
|
|
76033
|
+
* @return {string}
|
|
76034
|
+
*/
|
|
76035
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getPredictionsDatasetId = function() {
|
|
76036
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
76037
|
+
};
|
|
76038
|
+
|
|
76039
|
+
|
|
76040
|
+
/**
|
|
76041
|
+
* @param {string} value
|
|
76042
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76043
|
+
*/
|
|
76044
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setPredictionsDatasetId = function(value) {
|
|
76045
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
76046
|
+
};
|
|
76047
|
+
|
|
76048
|
+
|
|
76049
|
+
/**
|
|
76050
|
+
* optional string predictions_dataset_version_id = 7;
|
|
76051
|
+
* @return {string}
|
|
76052
|
+
*/
|
|
76053
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getPredictionsDatasetVersionId = function() {
|
|
76054
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
76055
|
+
};
|
|
76056
|
+
|
|
76057
|
+
|
|
76058
|
+
/**
|
|
76059
|
+
* @param {string} value
|
|
76060
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76061
|
+
*/
|
|
76062
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setPredictionsDatasetVersionId = function(value) {
|
|
76063
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
76064
|
+
};
|
|
76065
|
+
|
|
76066
|
+
|
|
76067
|
+
/**
|
|
76068
|
+
* optional string evaluation_template_id = 8;
|
|
76069
|
+
* @return {string}
|
|
76070
|
+
*/
|
|
76071
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getEvaluationTemplateId = function() {
|
|
76072
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
76073
|
+
};
|
|
76074
|
+
|
|
76075
|
+
|
|
76076
|
+
/**
|
|
76077
|
+
* @param {string} value
|
|
76078
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76079
|
+
*/
|
|
76080
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setEvaluationTemplateId = function(value) {
|
|
76081
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
76082
|
+
};
|
|
76083
|
+
|
|
76084
|
+
|
|
76085
|
+
/**
|
|
76086
|
+
* optional WorkflowEvaluationResult workflow_evaluation_result = 9;
|
|
76087
|
+
* @return {?proto.clarifai.api.WorkflowEvaluationResult}
|
|
76088
|
+
*/
|
|
76089
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getWorkflowEvaluationResult = function() {
|
|
76090
|
+
return /** @type{?proto.clarifai.api.WorkflowEvaluationResult} */ (
|
|
76091
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowEvaluationResult, 9));
|
|
76092
|
+
};
|
|
76093
|
+
|
|
76094
|
+
|
|
76095
|
+
/**
|
|
76096
|
+
* @param {?proto.clarifai.api.WorkflowEvaluationResult|undefined} value
|
|
76097
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76098
|
+
*/
|
|
76099
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setWorkflowEvaluationResult = function(value) {
|
|
76100
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
76101
|
+
};
|
|
76102
|
+
|
|
76103
|
+
|
|
76104
|
+
/**
|
|
76105
|
+
* Clears the message field making it undefined.
|
|
76106
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76107
|
+
*/
|
|
76108
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearWorkflowEvaluationResult = function() {
|
|
76109
|
+
return this.setWorkflowEvaluationResult(undefined);
|
|
76110
|
+
};
|
|
76111
|
+
|
|
76112
|
+
|
|
76113
|
+
/**
|
|
76114
|
+
* Returns whether this field is set.
|
|
76115
|
+
* @return {boolean}
|
|
76116
|
+
*/
|
|
76117
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasWorkflowEvaluationResult = function() {
|
|
76118
|
+
return jspb.Message.getField(this, 9) != null;
|
|
76119
|
+
};
|
|
76120
|
+
|
|
76121
|
+
|
|
76122
|
+
/**
|
|
76123
|
+
* optional status.Status status = 10;
|
|
76124
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
76125
|
+
*/
|
|
76126
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getStatus = function() {
|
|
76127
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
76128
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 10));
|
|
76129
|
+
};
|
|
76130
|
+
|
|
76131
|
+
|
|
76132
|
+
/**
|
|
76133
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
76134
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76135
|
+
*/
|
|
76136
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setStatus = function(value) {
|
|
76137
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
76138
|
+
};
|
|
76139
|
+
|
|
76140
|
+
|
|
76141
|
+
/**
|
|
76142
|
+
* Clears the message field making it undefined.
|
|
76143
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76144
|
+
*/
|
|
76145
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearStatus = function() {
|
|
76146
|
+
return this.setStatus(undefined);
|
|
76147
|
+
};
|
|
76148
|
+
|
|
76149
|
+
|
|
76150
|
+
/**
|
|
76151
|
+
* Returns whether this field is set.
|
|
76152
|
+
* @return {boolean}
|
|
76153
|
+
*/
|
|
76154
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasStatus = function() {
|
|
76155
|
+
return jspb.Message.getField(this, 10) != null;
|
|
76156
|
+
};
|
|
76157
|
+
|
|
76158
|
+
|
|
76159
|
+
/**
|
|
76160
|
+
* optional google.protobuf.Timestamp created_at = 11;
|
|
76161
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
76162
|
+
*/
|
|
76163
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getCreatedAt = function() {
|
|
76164
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
76165
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
|
|
76166
|
+
};
|
|
76167
|
+
|
|
76168
|
+
|
|
76169
|
+
/**
|
|
76170
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
76171
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76172
|
+
*/
|
|
76173
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setCreatedAt = function(value) {
|
|
76174
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
76175
|
+
};
|
|
76176
|
+
|
|
76177
|
+
|
|
76178
|
+
/**
|
|
76179
|
+
* Clears the message field making it undefined.
|
|
76180
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76181
|
+
*/
|
|
76182
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearCreatedAt = function() {
|
|
76183
|
+
return this.setCreatedAt(undefined);
|
|
76184
|
+
};
|
|
76185
|
+
|
|
76186
|
+
|
|
76187
|
+
/**
|
|
76188
|
+
* Returns whether this field is set.
|
|
76189
|
+
* @return {boolean}
|
|
76190
|
+
*/
|
|
76191
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasCreatedAt = function() {
|
|
76192
|
+
return jspb.Message.getField(this, 11) != null;
|
|
76193
|
+
};
|
|
76194
|
+
|
|
76195
|
+
|
|
76196
|
+
/**
|
|
76197
|
+
* optional google.protobuf.Timestamp modified_at = 12;
|
|
76198
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
76199
|
+
*/
|
|
76200
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.getModifiedAt = function() {
|
|
76201
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
76202
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
|
|
76203
|
+
};
|
|
76204
|
+
|
|
76205
|
+
|
|
76206
|
+
/**
|
|
76207
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
76208
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76209
|
+
*/
|
|
76210
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.setModifiedAt = function(value) {
|
|
76211
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
76212
|
+
};
|
|
76213
|
+
|
|
76214
|
+
|
|
76215
|
+
/**
|
|
76216
|
+
* Clears the message field making it undefined.
|
|
76217
|
+
* @return {!proto.clarifai.api.WorkflowVersionEvaluation} returns this
|
|
76218
|
+
*/
|
|
76219
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.clearModifiedAt = function() {
|
|
76220
|
+
return this.setModifiedAt(undefined);
|
|
76221
|
+
};
|
|
76222
|
+
|
|
76223
|
+
|
|
76224
|
+
/**
|
|
76225
|
+
* Returns whether this field is set.
|
|
76226
|
+
* @return {boolean}
|
|
76227
|
+
*/
|
|
76228
|
+
proto.clarifai.api.WorkflowVersionEvaluation.prototype.hasModifiedAt = function() {
|
|
76229
|
+
return jspb.Message.getField(this, 12) != null;
|
|
76230
|
+
};
|
|
76231
|
+
|
|
76232
|
+
|
|
76233
|
+
|
|
76234
|
+
|
|
76235
|
+
|
|
76236
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
76237
|
+
/**
|
|
76238
|
+
* Creates an object representation of this proto.
|
|
76239
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
76240
|
+
* Optional fields that are not set will be set to undefined.
|
|
76241
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
76242
|
+
* For the list of reserved names please see:
|
|
76243
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
76244
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
76245
|
+
* JSPB instance for transitional soy proto support:
|
|
76246
|
+
* http://goto/soy-param-migration
|
|
76247
|
+
* @return {!Object}
|
|
76248
|
+
*/
|
|
76249
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.toObject = function(opt_includeInstance) {
|
|
76250
|
+
return proto.clarifai.api.WorkflowEvaluationResult.toObject(opt_includeInstance, this);
|
|
76251
|
+
};
|
|
76252
|
+
|
|
76253
|
+
|
|
76254
|
+
/**
|
|
76255
|
+
* Static version of the {@see toObject} method.
|
|
76256
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
76257
|
+
* the JSPB instance for transitional soy proto support:
|
|
76258
|
+
* http://goto/soy-param-migration
|
|
76259
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResult} msg The msg instance to transform.
|
|
76260
|
+
* @return {!Object}
|
|
76261
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
76262
|
+
*/
|
|
76263
|
+
proto.clarifai.api.WorkflowEvaluationResult.toObject = function(includeInstance, msg) {
|
|
76264
|
+
var f, obj = {
|
|
76265
|
+
summary: (f = msg.getSummary()) && proto.clarifai.api.WorkflowEvaluationResultSummary.toObject(includeInstance, f)
|
|
76266
|
+
};
|
|
76267
|
+
|
|
76268
|
+
if (includeInstance) {
|
|
76269
|
+
obj.$jspbMessageInstance = msg;
|
|
76270
|
+
}
|
|
76271
|
+
return obj;
|
|
76272
|
+
};
|
|
76273
|
+
}
|
|
76274
|
+
|
|
76275
|
+
|
|
76276
|
+
/**
|
|
76277
|
+
* Deserializes binary data (in protobuf wire format).
|
|
76278
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
76279
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResult}
|
|
76280
|
+
*/
|
|
76281
|
+
proto.clarifai.api.WorkflowEvaluationResult.deserializeBinary = function(bytes) {
|
|
76282
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
76283
|
+
var msg = new proto.clarifai.api.WorkflowEvaluationResult;
|
|
76284
|
+
return proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader(msg, reader);
|
|
76285
|
+
};
|
|
76286
|
+
|
|
76287
|
+
|
|
76288
|
+
/**
|
|
76289
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
76290
|
+
* given reader into the given message object.
|
|
76291
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResult} msg The message object to deserialize into.
|
|
76292
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
76293
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResult}
|
|
76294
|
+
*/
|
|
76295
|
+
proto.clarifai.api.WorkflowEvaluationResult.deserializeBinaryFromReader = function(msg, reader) {
|
|
76296
|
+
while (reader.nextField()) {
|
|
76297
|
+
if (reader.isEndGroup()) {
|
|
76298
|
+
break;
|
|
76299
|
+
}
|
|
76300
|
+
var field = reader.getFieldNumber();
|
|
76301
|
+
switch (field) {
|
|
76302
|
+
case 1:
|
|
76303
|
+
var value = new proto.clarifai.api.WorkflowEvaluationResultSummary;
|
|
76304
|
+
reader.readMessage(value,proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader);
|
|
76305
|
+
msg.setSummary(value);
|
|
76306
|
+
break;
|
|
76307
|
+
default:
|
|
76308
|
+
reader.skipField();
|
|
76309
|
+
break;
|
|
76310
|
+
}
|
|
76311
|
+
}
|
|
76312
|
+
return msg;
|
|
76313
|
+
};
|
|
76314
|
+
|
|
76315
|
+
|
|
76316
|
+
/**
|
|
76317
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
76318
|
+
* @return {!Uint8Array}
|
|
76319
|
+
*/
|
|
76320
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.serializeBinary = function() {
|
|
76321
|
+
var writer = new jspb.BinaryWriter();
|
|
76322
|
+
proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter(this, writer);
|
|
76323
|
+
return writer.getResultBuffer();
|
|
76324
|
+
};
|
|
76325
|
+
|
|
76326
|
+
|
|
76327
|
+
/**
|
|
76328
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
76329
|
+
* format), writing to the given BinaryWriter.
|
|
76330
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResult} message
|
|
76331
|
+
* @param {!jspb.BinaryWriter} writer
|
|
76332
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
76333
|
+
*/
|
|
76334
|
+
proto.clarifai.api.WorkflowEvaluationResult.serializeBinaryToWriter = function(message, writer) {
|
|
76335
|
+
var f = undefined;
|
|
76336
|
+
f = message.getSummary();
|
|
76337
|
+
if (f != null) {
|
|
76338
|
+
writer.writeMessage(
|
|
76339
|
+
1,
|
|
76340
|
+
f,
|
|
76341
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter
|
|
76342
|
+
);
|
|
76343
|
+
}
|
|
76344
|
+
};
|
|
76345
|
+
|
|
76346
|
+
|
|
76347
|
+
/**
|
|
76348
|
+
* optional WorkflowEvaluationResultSummary summary = 1;
|
|
76349
|
+
* @return {?proto.clarifai.api.WorkflowEvaluationResultSummary}
|
|
76350
|
+
*/
|
|
76351
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.getSummary = function() {
|
|
76352
|
+
return /** @type{?proto.clarifai.api.WorkflowEvaluationResultSummary} */ (
|
|
76353
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowEvaluationResultSummary, 1));
|
|
76354
|
+
};
|
|
76355
|
+
|
|
76356
|
+
|
|
76357
|
+
/**
|
|
76358
|
+
* @param {?proto.clarifai.api.WorkflowEvaluationResultSummary|undefined} value
|
|
76359
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResult} returns this
|
|
76360
|
+
*/
|
|
76361
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.setSummary = function(value) {
|
|
76362
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
76363
|
+
};
|
|
76364
|
+
|
|
76365
|
+
|
|
76366
|
+
/**
|
|
76367
|
+
* Clears the message field making it undefined.
|
|
76368
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResult} returns this
|
|
76369
|
+
*/
|
|
76370
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.clearSummary = function() {
|
|
76371
|
+
return this.setSummary(undefined);
|
|
76372
|
+
};
|
|
76373
|
+
|
|
76374
|
+
|
|
76375
|
+
/**
|
|
76376
|
+
* Returns whether this field is set.
|
|
76377
|
+
* @return {boolean}
|
|
76378
|
+
*/
|
|
76379
|
+
proto.clarifai.api.WorkflowEvaluationResult.prototype.hasSummary = function() {
|
|
76380
|
+
return jspb.Message.getField(this, 1) != null;
|
|
76381
|
+
};
|
|
76382
|
+
|
|
76383
|
+
|
|
76384
|
+
|
|
76385
|
+
/**
|
|
76386
|
+
* List of repeated fields within this message type.
|
|
76387
|
+
* @private {!Array<number>}
|
|
76388
|
+
* @const
|
|
76389
|
+
*/
|
|
76390
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.repeatedFields_ = [2];
|
|
76391
|
+
|
|
76392
|
+
|
|
76393
|
+
|
|
76394
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
76395
|
+
/**
|
|
76396
|
+
* Creates an object representation of this proto.
|
|
76397
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
76398
|
+
* Optional fields that are not set will be set to undefined.
|
|
76399
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
76400
|
+
* For the list of reserved names please see:
|
|
76401
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
76402
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
76403
|
+
* JSPB instance for transitional soy proto support:
|
|
76404
|
+
* http://goto/soy-param-migration
|
|
76405
|
+
* @return {!Object}
|
|
76406
|
+
*/
|
|
76407
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.toObject = function(opt_includeInstance) {
|
|
76408
|
+
return proto.clarifai.api.WorkflowEvaluationResultSummary.toObject(opt_includeInstance, this);
|
|
76409
|
+
};
|
|
76410
|
+
|
|
76411
|
+
|
|
76412
|
+
/**
|
|
76413
|
+
* Static version of the {@see toObject} method.
|
|
76414
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
76415
|
+
* the JSPB instance for transitional soy proto support:
|
|
76416
|
+
* http://goto/soy-param-migration
|
|
76417
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} msg The msg instance to transform.
|
|
76418
|
+
* @return {!Object}
|
|
76419
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
76420
|
+
*/
|
|
76421
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.toObject = function(includeInstance, msg) {
|
|
76422
|
+
var f, obj = {
|
|
76423
|
+
evaluationMetricValuesList: jspb.Message.toObjectList(msg.getEvaluationMetricValuesList(),
|
|
76424
|
+
proto.clarifai.api.EvaluationMetricValue.toObject, includeInstance)
|
|
76425
|
+
};
|
|
76426
|
+
|
|
76427
|
+
if (includeInstance) {
|
|
76428
|
+
obj.$jspbMessageInstance = msg;
|
|
76429
|
+
}
|
|
76430
|
+
return obj;
|
|
76431
|
+
};
|
|
76432
|
+
}
|
|
76433
|
+
|
|
76434
|
+
|
|
76435
|
+
/**
|
|
76436
|
+
* Deserializes binary data (in protobuf wire format).
|
|
76437
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
76438
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResultSummary}
|
|
76439
|
+
*/
|
|
76440
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinary = function(bytes) {
|
|
76441
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
76442
|
+
var msg = new proto.clarifai.api.WorkflowEvaluationResultSummary;
|
|
76443
|
+
return proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader(msg, reader);
|
|
76444
|
+
};
|
|
76445
|
+
|
|
76446
|
+
|
|
76447
|
+
/**
|
|
76448
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
76449
|
+
* given reader into the given message object.
|
|
76450
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} msg The message object to deserialize into.
|
|
76451
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
76452
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResultSummary}
|
|
76453
|
+
*/
|
|
76454
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.deserializeBinaryFromReader = function(msg, reader) {
|
|
76455
|
+
while (reader.nextField()) {
|
|
76456
|
+
if (reader.isEndGroup()) {
|
|
76457
|
+
break;
|
|
76458
|
+
}
|
|
76459
|
+
var field = reader.getFieldNumber();
|
|
76460
|
+
switch (field) {
|
|
76461
|
+
case 2:
|
|
76462
|
+
var value = new proto.clarifai.api.EvaluationMetricValue;
|
|
76463
|
+
reader.readMessage(value,proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader);
|
|
76464
|
+
msg.addEvaluationMetricValues(value);
|
|
76465
|
+
break;
|
|
76466
|
+
default:
|
|
76467
|
+
reader.skipField();
|
|
76468
|
+
break;
|
|
76469
|
+
}
|
|
76470
|
+
}
|
|
76471
|
+
return msg;
|
|
76472
|
+
};
|
|
76473
|
+
|
|
76474
|
+
|
|
76475
|
+
/**
|
|
76476
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
76477
|
+
* @return {!Uint8Array}
|
|
76478
|
+
*/
|
|
76479
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.serializeBinary = function() {
|
|
76480
|
+
var writer = new jspb.BinaryWriter();
|
|
76481
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter(this, writer);
|
|
76482
|
+
return writer.getResultBuffer();
|
|
76483
|
+
};
|
|
76484
|
+
|
|
76485
|
+
|
|
76486
|
+
/**
|
|
76487
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
76488
|
+
* format), writing to the given BinaryWriter.
|
|
76489
|
+
* @param {!proto.clarifai.api.WorkflowEvaluationResultSummary} message
|
|
76490
|
+
* @param {!jspb.BinaryWriter} writer
|
|
76491
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
76492
|
+
*/
|
|
76493
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.serializeBinaryToWriter = function(message, writer) {
|
|
76494
|
+
var f = undefined;
|
|
76495
|
+
f = message.getEvaluationMetricValuesList();
|
|
76496
|
+
if (f.length > 0) {
|
|
76497
|
+
writer.writeRepeatedMessage(
|
|
76498
|
+
2,
|
|
76499
|
+
f,
|
|
76500
|
+
proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter
|
|
76501
|
+
);
|
|
76502
|
+
}
|
|
76503
|
+
};
|
|
76504
|
+
|
|
76505
|
+
|
|
76506
|
+
/**
|
|
76507
|
+
* repeated EvaluationMetricValue evaluation_metric_values = 2;
|
|
76508
|
+
* @return {!Array<!proto.clarifai.api.EvaluationMetricValue>}
|
|
76509
|
+
*/
|
|
76510
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.getEvaluationMetricValuesList = function() {
|
|
76511
|
+
return /** @type{!Array<!proto.clarifai.api.EvaluationMetricValue>} */ (
|
|
76512
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.EvaluationMetricValue, 2));
|
|
76513
|
+
};
|
|
76514
|
+
|
|
76515
|
+
|
|
76516
|
+
/**
|
|
76517
|
+
* @param {!Array<!proto.clarifai.api.EvaluationMetricValue>} value
|
|
76518
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResultSummary} returns this
|
|
76519
|
+
*/
|
|
76520
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.setEvaluationMetricValuesList = function(value) {
|
|
76521
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
76522
|
+
};
|
|
76523
|
+
|
|
76524
|
+
|
|
76525
|
+
/**
|
|
76526
|
+
* @param {!proto.clarifai.api.EvaluationMetricValue=} opt_value
|
|
76527
|
+
* @param {number=} opt_index
|
|
76528
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue}
|
|
76529
|
+
*/
|
|
76530
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.addEvaluationMetricValues = function(opt_value, opt_index) {
|
|
76531
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.EvaluationMetricValue, opt_index);
|
|
76532
|
+
};
|
|
76533
|
+
|
|
76534
|
+
|
|
76535
|
+
/**
|
|
76536
|
+
* Clears the list making it empty but non-null.
|
|
76537
|
+
* @return {!proto.clarifai.api.WorkflowEvaluationResultSummary} returns this
|
|
76538
|
+
*/
|
|
76539
|
+
proto.clarifai.api.WorkflowEvaluationResultSummary.prototype.clearEvaluationMetricValuesList = function() {
|
|
76540
|
+
return this.setEvaluationMetricValuesList([]);
|
|
76541
|
+
};
|
|
76542
|
+
|
|
76543
|
+
|
|
76544
|
+
|
|
76545
|
+
|
|
76546
|
+
|
|
76547
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
76548
|
+
/**
|
|
76549
|
+
* Creates an object representation of this proto.
|
|
76550
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
76551
|
+
* Optional fields that are not set will be set to undefined.
|
|
76552
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
76553
|
+
* For the list of reserved names please see:
|
|
76554
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
76555
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
76556
|
+
* JSPB instance for transitional soy proto support:
|
|
76557
|
+
* http://goto/soy-param-migration
|
|
76558
|
+
* @return {!Object}
|
|
76559
|
+
*/
|
|
76560
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.toObject = function(opt_includeInstance) {
|
|
76561
|
+
return proto.clarifai.api.EvaluationMetricValue.toObject(opt_includeInstance, this);
|
|
76562
|
+
};
|
|
76563
|
+
|
|
76564
|
+
|
|
76565
|
+
/**
|
|
76566
|
+
* Static version of the {@see toObject} method.
|
|
76567
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
76568
|
+
* the JSPB instance for transitional soy proto support:
|
|
76569
|
+
* http://goto/soy-param-migration
|
|
76570
|
+
* @param {!proto.clarifai.api.EvaluationMetricValue} msg The msg instance to transform.
|
|
76571
|
+
* @return {!Object}
|
|
76572
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
76573
|
+
*/
|
|
76574
|
+
proto.clarifai.api.EvaluationMetricValue.toObject = function(includeInstance, msg) {
|
|
76575
|
+
var f, obj = {
|
|
76576
|
+
evaluationMetricId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
76577
|
+
metricValue: (f = msg.getMetricValue()) && proto.clarifai.api.MetricValue.toObject(includeInstance, f),
|
|
76578
|
+
explanation: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
76579
|
+
perConceptValuesMap: (f = msg.getPerConceptValuesMap()) ? f.toObject(includeInstance, proto.clarifai.api.MetricValue.toObject) : []
|
|
76580
|
+
};
|
|
76581
|
+
|
|
76582
|
+
if (includeInstance) {
|
|
76583
|
+
obj.$jspbMessageInstance = msg;
|
|
76584
|
+
}
|
|
76585
|
+
return obj;
|
|
76586
|
+
};
|
|
76587
|
+
}
|
|
76588
|
+
|
|
76589
|
+
|
|
76590
|
+
/**
|
|
76591
|
+
* Deserializes binary data (in protobuf wire format).
|
|
76592
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
76593
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue}
|
|
76594
|
+
*/
|
|
76595
|
+
proto.clarifai.api.EvaluationMetricValue.deserializeBinary = function(bytes) {
|
|
76596
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
76597
|
+
var msg = new proto.clarifai.api.EvaluationMetricValue;
|
|
76598
|
+
return proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader(msg, reader);
|
|
76599
|
+
};
|
|
76600
|
+
|
|
76601
|
+
|
|
76602
|
+
/**
|
|
76603
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
76604
|
+
* given reader into the given message object.
|
|
76605
|
+
* @param {!proto.clarifai.api.EvaluationMetricValue} msg The message object to deserialize into.
|
|
76606
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
76607
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue}
|
|
76608
|
+
*/
|
|
76609
|
+
proto.clarifai.api.EvaluationMetricValue.deserializeBinaryFromReader = function(msg, reader) {
|
|
76610
|
+
while (reader.nextField()) {
|
|
76611
|
+
if (reader.isEndGroup()) {
|
|
76612
|
+
break;
|
|
76613
|
+
}
|
|
76614
|
+
var field = reader.getFieldNumber();
|
|
76615
|
+
switch (field) {
|
|
76616
|
+
case 1:
|
|
76617
|
+
var value = /** @type {string} */ (reader.readString());
|
|
76618
|
+
msg.setEvaluationMetricId(value);
|
|
76619
|
+
break;
|
|
76620
|
+
case 2:
|
|
76621
|
+
var value = new proto.clarifai.api.MetricValue;
|
|
76622
|
+
reader.readMessage(value,proto.clarifai.api.MetricValue.deserializeBinaryFromReader);
|
|
76623
|
+
msg.setMetricValue(value);
|
|
76624
|
+
break;
|
|
76625
|
+
case 3:
|
|
76626
|
+
var value = /** @type {string} */ (reader.readString());
|
|
76627
|
+
msg.setExplanation(value);
|
|
76628
|
+
break;
|
|
76629
|
+
case 4:
|
|
76630
|
+
var value = msg.getPerConceptValuesMap();
|
|
76631
|
+
reader.readMessage(value, function(message, reader) {
|
|
76632
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.MetricValue.deserializeBinaryFromReader, "", new proto.clarifai.api.MetricValue());
|
|
76633
|
+
});
|
|
76634
|
+
break;
|
|
76635
|
+
default:
|
|
76636
|
+
reader.skipField();
|
|
76637
|
+
break;
|
|
76638
|
+
}
|
|
76639
|
+
}
|
|
76640
|
+
return msg;
|
|
76641
|
+
};
|
|
76642
|
+
|
|
76643
|
+
|
|
76644
|
+
/**
|
|
76645
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
76646
|
+
* @return {!Uint8Array}
|
|
76647
|
+
*/
|
|
76648
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.serializeBinary = function() {
|
|
76649
|
+
var writer = new jspb.BinaryWriter();
|
|
76650
|
+
proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter(this, writer);
|
|
76651
|
+
return writer.getResultBuffer();
|
|
76652
|
+
};
|
|
76653
|
+
|
|
76654
|
+
|
|
76655
|
+
/**
|
|
76656
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
76657
|
+
* format), writing to the given BinaryWriter.
|
|
76658
|
+
* @param {!proto.clarifai.api.EvaluationMetricValue} message
|
|
76659
|
+
* @param {!jspb.BinaryWriter} writer
|
|
76660
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
76661
|
+
*/
|
|
76662
|
+
proto.clarifai.api.EvaluationMetricValue.serializeBinaryToWriter = function(message, writer) {
|
|
76663
|
+
var f = undefined;
|
|
76664
|
+
f = message.getEvaluationMetricId();
|
|
76665
|
+
if (f.length > 0) {
|
|
76666
|
+
writer.writeString(
|
|
76667
|
+
1,
|
|
76668
|
+
f
|
|
76669
|
+
);
|
|
76670
|
+
}
|
|
76671
|
+
f = message.getMetricValue();
|
|
76672
|
+
if (f != null) {
|
|
76673
|
+
writer.writeMessage(
|
|
76674
|
+
2,
|
|
76675
|
+
f,
|
|
76676
|
+
proto.clarifai.api.MetricValue.serializeBinaryToWriter
|
|
76677
|
+
);
|
|
76678
|
+
}
|
|
76679
|
+
f = message.getExplanation();
|
|
76680
|
+
if (f.length > 0) {
|
|
76681
|
+
writer.writeString(
|
|
76682
|
+
3,
|
|
76683
|
+
f
|
|
76684
|
+
);
|
|
76685
|
+
}
|
|
76686
|
+
f = message.getPerConceptValuesMap(true);
|
|
76687
|
+
if (f && f.getLength() > 0) {
|
|
76688
|
+
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.MetricValue.serializeBinaryToWriter);
|
|
76689
|
+
}
|
|
76690
|
+
};
|
|
76691
|
+
|
|
76692
|
+
|
|
76693
|
+
/**
|
|
76694
|
+
* optional string evaluation_metric_id = 1;
|
|
76695
|
+
* @return {string}
|
|
76696
|
+
*/
|
|
76697
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.getEvaluationMetricId = function() {
|
|
76698
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
76699
|
+
};
|
|
76700
|
+
|
|
76701
|
+
|
|
76702
|
+
/**
|
|
76703
|
+
* @param {string} value
|
|
76704
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue} returns this
|
|
76705
|
+
*/
|
|
76706
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.setEvaluationMetricId = function(value) {
|
|
76707
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
76708
|
+
};
|
|
76709
|
+
|
|
76710
|
+
|
|
76711
|
+
/**
|
|
76712
|
+
* optional MetricValue metric_value = 2;
|
|
76713
|
+
* @return {?proto.clarifai.api.MetricValue}
|
|
76714
|
+
*/
|
|
76715
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.getMetricValue = function() {
|
|
76716
|
+
return /** @type{?proto.clarifai.api.MetricValue} */ (
|
|
76717
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.MetricValue, 2));
|
|
76718
|
+
};
|
|
76719
|
+
|
|
76720
|
+
|
|
76721
|
+
/**
|
|
76722
|
+
* @param {?proto.clarifai.api.MetricValue|undefined} value
|
|
76723
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue} returns this
|
|
76724
|
+
*/
|
|
76725
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.setMetricValue = function(value) {
|
|
76726
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
76727
|
+
};
|
|
76728
|
+
|
|
76729
|
+
|
|
76730
|
+
/**
|
|
76731
|
+
* Clears the message field making it undefined.
|
|
76732
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue} returns this
|
|
76733
|
+
*/
|
|
76734
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.clearMetricValue = function() {
|
|
76735
|
+
return this.setMetricValue(undefined);
|
|
76736
|
+
};
|
|
76737
|
+
|
|
76738
|
+
|
|
76739
|
+
/**
|
|
76740
|
+
* Returns whether this field is set.
|
|
76741
|
+
* @return {boolean}
|
|
76742
|
+
*/
|
|
76743
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.hasMetricValue = function() {
|
|
76744
|
+
return jspb.Message.getField(this, 2) != null;
|
|
76745
|
+
};
|
|
76746
|
+
|
|
76747
|
+
|
|
76748
|
+
/**
|
|
76749
|
+
* optional string explanation = 3;
|
|
76750
|
+
* @return {string}
|
|
76751
|
+
*/
|
|
76752
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.getExplanation = function() {
|
|
76753
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
76754
|
+
};
|
|
76755
|
+
|
|
76756
|
+
|
|
76757
|
+
/**
|
|
76758
|
+
* @param {string} value
|
|
76759
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue} returns this
|
|
76760
|
+
*/
|
|
76761
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.setExplanation = function(value) {
|
|
76762
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
76763
|
+
};
|
|
76764
|
+
|
|
76765
|
+
|
|
76766
|
+
/**
|
|
76767
|
+
* map<string, MetricValue> per_concept_values = 4;
|
|
76768
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
76769
|
+
* empty, instead returning `undefined`
|
|
76770
|
+
* @return {!jspb.Map<string,!proto.clarifai.api.MetricValue>}
|
|
76771
|
+
*/
|
|
76772
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.getPerConceptValuesMap = function(opt_noLazyCreate) {
|
|
76773
|
+
return /** @type {!jspb.Map<string,!proto.clarifai.api.MetricValue>} */ (
|
|
76774
|
+
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
|
|
76775
|
+
proto.clarifai.api.MetricValue));
|
|
76776
|
+
};
|
|
76777
|
+
|
|
76778
|
+
|
|
76779
|
+
/**
|
|
76780
|
+
* Clears values from the map. The map will be non-null.
|
|
76781
|
+
* @return {!proto.clarifai.api.EvaluationMetricValue} returns this
|
|
76782
|
+
*/
|
|
76783
|
+
proto.clarifai.api.EvaluationMetricValue.prototype.clearPerConceptValuesMap = function() {
|
|
76784
|
+
this.getPerConceptValuesMap().clear();
|
|
76785
|
+
return this;
|
|
76786
|
+
};
|
|
76787
|
+
|
|
76788
|
+
|
|
76789
|
+
|
|
76790
|
+
/**
|
|
76791
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
76792
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
76793
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
76794
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
76795
|
+
* @private {!Array<!Array<number>>}
|
|
76796
|
+
* @const
|
|
76797
|
+
*/
|
|
76798
|
+
proto.clarifai.api.MetricValue.oneofGroups_ = [[1,2,3]];
|
|
76799
|
+
|
|
76800
|
+
/**
|
|
76801
|
+
* @enum {number}
|
|
76802
|
+
*/
|
|
76803
|
+
proto.clarifai.api.MetricValue.MetricValueCase = {
|
|
76804
|
+
METRIC_VALUE_NOT_SET: 0,
|
|
76805
|
+
STRING_VALUE: 1,
|
|
76806
|
+
FLOAT_VALUE: 2,
|
|
76807
|
+
INT_VALUE: 3
|
|
76808
|
+
};
|
|
76809
|
+
|
|
76810
|
+
/**
|
|
76811
|
+
* @return {proto.clarifai.api.MetricValue.MetricValueCase}
|
|
76812
|
+
*/
|
|
76813
|
+
proto.clarifai.api.MetricValue.prototype.getMetricValueCase = function() {
|
|
76814
|
+
return /** @type {proto.clarifai.api.MetricValue.MetricValueCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.MetricValue.oneofGroups_[0]));
|
|
76815
|
+
};
|
|
76816
|
+
|
|
76817
|
+
|
|
76818
|
+
|
|
76819
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
76820
|
+
/**
|
|
76821
|
+
* Creates an object representation of this proto.
|
|
76822
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
76823
|
+
* Optional fields that are not set will be set to undefined.
|
|
76824
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
76825
|
+
* For the list of reserved names please see:
|
|
76826
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
76827
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
76828
|
+
* JSPB instance for transitional soy proto support:
|
|
76829
|
+
* http://goto/soy-param-migration
|
|
76830
|
+
* @return {!Object}
|
|
76831
|
+
*/
|
|
76832
|
+
proto.clarifai.api.MetricValue.prototype.toObject = function(opt_includeInstance) {
|
|
76833
|
+
return proto.clarifai.api.MetricValue.toObject(opt_includeInstance, this);
|
|
76834
|
+
};
|
|
76835
|
+
|
|
76836
|
+
|
|
76837
|
+
/**
|
|
76838
|
+
* Static version of the {@see toObject} method.
|
|
76839
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
76840
|
+
* the JSPB instance for transitional soy proto support:
|
|
76841
|
+
* http://goto/soy-param-migration
|
|
76842
|
+
* @param {!proto.clarifai.api.MetricValue} msg The msg instance to transform.
|
|
76843
|
+
* @return {!Object}
|
|
76844
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
76845
|
+
*/
|
|
76846
|
+
proto.clarifai.api.MetricValue.toObject = function(includeInstance, msg) {
|
|
76847
|
+
var f, obj = {
|
|
76848
|
+
stringValue: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
76849
|
+
floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
76850
|
+
intValue: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
76851
|
+
};
|
|
76852
|
+
|
|
76853
|
+
if (includeInstance) {
|
|
76854
|
+
obj.$jspbMessageInstance = msg;
|
|
76855
|
+
}
|
|
76856
|
+
return obj;
|
|
76857
|
+
};
|
|
76858
|
+
}
|
|
76859
|
+
|
|
76860
|
+
|
|
76861
|
+
/**
|
|
76862
|
+
* Deserializes binary data (in protobuf wire format).
|
|
76863
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
76864
|
+
* @return {!proto.clarifai.api.MetricValue}
|
|
76865
|
+
*/
|
|
76866
|
+
proto.clarifai.api.MetricValue.deserializeBinary = function(bytes) {
|
|
76867
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
76868
|
+
var msg = new proto.clarifai.api.MetricValue;
|
|
76869
|
+
return proto.clarifai.api.MetricValue.deserializeBinaryFromReader(msg, reader);
|
|
76870
|
+
};
|
|
76871
|
+
|
|
76872
|
+
|
|
76873
|
+
/**
|
|
76874
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
76875
|
+
* given reader into the given message object.
|
|
76876
|
+
* @param {!proto.clarifai.api.MetricValue} msg The message object to deserialize into.
|
|
76877
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
76878
|
+
* @return {!proto.clarifai.api.MetricValue}
|
|
76879
|
+
*/
|
|
76880
|
+
proto.clarifai.api.MetricValue.deserializeBinaryFromReader = function(msg, reader) {
|
|
76881
|
+
while (reader.nextField()) {
|
|
76882
|
+
if (reader.isEndGroup()) {
|
|
76883
|
+
break;
|
|
76884
|
+
}
|
|
76885
|
+
var field = reader.getFieldNumber();
|
|
76886
|
+
switch (field) {
|
|
76887
|
+
case 1:
|
|
76888
|
+
var value = /** @type {string} */ (reader.readString());
|
|
76889
|
+
msg.setStringValue(value);
|
|
76890
|
+
break;
|
|
76891
|
+
case 2:
|
|
76892
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
76893
|
+
msg.setFloatValue(value);
|
|
76894
|
+
break;
|
|
76895
|
+
case 3:
|
|
76896
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
76897
|
+
msg.setIntValue(value);
|
|
76898
|
+
break;
|
|
76899
|
+
default:
|
|
76900
|
+
reader.skipField();
|
|
76901
|
+
break;
|
|
76902
|
+
}
|
|
76903
|
+
}
|
|
76904
|
+
return msg;
|
|
76905
|
+
};
|
|
76906
|
+
|
|
76907
|
+
|
|
76908
|
+
/**
|
|
76909
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
76910
|
+
* @return {!Uint8Array}
|
|
76911
|
+
*/
|
|
76912
|
+
proto.clarifai.api.MetricValue.prototype.serializeBinary = function() {
|
|
76913
|
+
var writer = new jspb.BinaryWriter();
|
|
76914
|
+
proto.clarifai.api.MetricValue.serializeBinaryToWriter(this, writer);
|
|
76915
|
+
return writer.getResultBuffer();
|
|
76916
|
+
};
|
|
76917
|
+
|
|
76918
|
+
|
|
76919
|
+
/**
|
|
76920
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
76921
|
+
* format), writing to the given BinaryWriter.
|
|
76922
|
+
* @param {!proto.clarifai.api.MetricValue} message
|
|
76923
|
+
* @param {!jspb.BinaryWriter} writer
|
|
76924
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
76925
|
+
*/
|
|
76926
|
+
proto.clarifai.api.MetricValue.serializeBinaryToWriter = function(message, writer) {
|
|
76927
|
+
var f = undefined;
|
|
76928
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
76929
|
+
if (f != null) {
|
|
76930
|
+
writer.writeString(
|
|
76931
|
+
1,
|
|
76932
|
+
f
|
|
76933
|
+
);
|
|
76934
|
+
}
|
|
76935
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
76936
|
+
if (f != null) {
|
|
76937
|
+
writer.writeFloat(
|
|
76938
|
+
2,
|
|
76939
|
+
f
|
|
76940
|
+
);
|
|
76941
|
+
}
|
|
76942
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
76943
|
+
if (f != null) {
|
|
76944
|
+
writer.writeInt32(
|
|
76945
|
+
3,
|
|
76946
|
+
f
|
|
76947
|
+
);
|
|
76948
|
+
}
|
|
76949
|
+
};
|
|
76950
|
+
|
|
76951
|
+
|
|
76952
|
+
/**
|
|
76953
|
+
* optional string string_value = 1;
|
|
76954
|
+
* @return {string}
|
|
76955
|
+
*/
|
|
76956
|
+
proto.clarifai.api.MetricValue.prototype.getStringValue = function() {
|
|
76957
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
76958
|
+
};
|
|
76959
|
+
|
|
76960
|
+
|
|
76961
|
+
/**
|
|
76962
|
+
* @param {string} value
|
|
76963
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
76964
|
+
*/
|
|
76965
|
+
proto.clarifai.api.MetricValue.prototype.setStringValue = function(value) {
|
|
76966
|
+
return jspb.Message.setOneofField(this, 1, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
|
|
76967
|
+
};
|
|
76968
|
+
|
|
76969
|
+
|
|
76970
|
+
/**
|
|
76971
|
+
* Clears the field making it undefined.
|
|
76972
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
76973
|
+
*/
|
|
76974
|
+
proto.clarifai.api.MetricValue.prototype.clearStringValue = function() {
|
|
76975
|
+
return jspb.Message.setOneofField(this, 1, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
|
|
76976
|
+
};
|
|
76977
|
+
|
|
76978
|
+
|
|
76979
|
+
/**
|
|
76980
|
+
* Returns whether this field is set.
|
|
76981
|
+
* @return {boolean}
|
|
76982
|
+
*/
|
|
76983
|
+
proto.clarifai.api.MetricValue.prototype.hasStringValue = function() {
|
|
76984
|
+
return jspb.Message.getField(this, 1) != null;
|
|
76985
|
+
};
|
|
76986
|
+
|
|
76987
|
+
|
|
76988
|
+
/**
|
|
76989
|
+
* optional float float_value = 2;
|
|
76990
|
+
* @return {number}
|
|
76991
|
+
*/
|
|
76992
|
+
proto.clarifai.api.MetricValue.prototype.getFloatValue = function() {
|
|
76993
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
76994
|
+
};
|
|
76995
|
+
|
|
76996
|
+
|
|
76997
|
+
/**
|
|
76998
|
+
* @param {number} value
|
|
76999
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
77000
|
+
*/
|
|
77001
|
+
proto.clarifai.api.MetricValue.prototype.setFloatValue = function(value) {
|
|
77002
|
+
return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
|
|
77003
|
+
};
|
|
77004
|
+
|
|
77005
|
+
|
|
77006
|
+
/**
|
|
77007
|
+
* Clears the field making it undefined.
|
|
77008
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
77009
|
+
*/
|
|
77010
|
+
proto.clarifai.api.MetricValue.prototype.clearFloatValue = function() {
|
|
77011
|
+
return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
|
|
77012
|
+
};
|
|
77013
|
+
|
|
77014
|
+
|
|
77015
|
+
/**
|
|
77016
|
+
* Returns whether this field is set.
|
|
77017
|
+
* @return {boolean}
|
|
77018
|
+
*/
|
|
77019
|
+
proto.clarifai.api.MetricValue.prototype.hasFloatValue = function() {
|
|
77020
|
+
return jspb.Message.getField(this, 2) != null;
|
|
77021
|
+
};
|
|
77022
|
+
|
|
77023
|
+
|
|
77024
|
+
/**
|
|
77025
|
+
* optional int32 int_value = 3;
|
|
77026
|
+
* @return {number}
|
|
77027
|
+
*/
|
|
77028
|
+
proto.clarifai.api.MetricValue.prototype.getIntValue = function() {
|
|
77029
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
77030
|
+
};
|
|
77031
|
+
|
|
77032
|
+
|
|
77033
|
+
/**
|
|
77034
|
+
* @param {number} value
|
|
77035
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
77036
|
+
*/
|
|
77037
|
+
proto.clarifai.api.MetricValue.prototype.setIntValue = function(value) {
|
|
77038
|
+
return jspb.Message.setOneofField(this, 3, proto.clarifai.api.MetricValue.oneofGroups_[0], value);
|
|
77039
|
+
};
|
|
77040
|
+
|
|
77041
|
+
|
|
77042
|
+
/**
|
|
77043
|
+
* Clears the field making it undefined.
|
|
77044
|
+
* @return {!proto.clarifai.api.MetricValue} returns this
|
|
77045
|
+
*/
|
|
77046
|
+
proto.clarifai.api.MetricValue.prototype.clearIntValue = function() {
|
|
77047
|
+
return jspb.Message.setOneofField(this, 3, proto.clarifai.api.MetricValue.oneofGroups_[0], undefined);
|
|
77048
|
+
};
|
|
77049
|
+
|
|
77050
|
+
|
|
77051
|
+
/**
|
|
77052
|
+
* Returns whether this field is set.
|
|
77053
|
+
* @return {boolean}
|
|
77054
|
+
*/
|
|
77055
|
+
proto.clarifai.api.MetricValue.prototype.hasIntValue = function() {
|
|
77056
|
+
return jspb.Message.getField(this, 3) != null;
|
|
77057
|
+
};
|
|
77058
|
+
|
|
77059
|
+
|
|
77060
|
+
|
|
77061
|
+
|
|
77062
|
+
|
|
77063
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
77064
|
+
/**
|
|
77065
|
+
* Creates an object representation of this proto.
|
|
77066
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
77067
|
+
* Optional fields that are not set will be set to undefined.
|
|
77068
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
77069
|
+
* For the list of reserved names please see:
|
|
77070
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
77071
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
77072
|
+
* JSPB instance for transitional soy proto support:
|
|
77073
|
+
* http://goto/soy-param-migration
|
|
77074
|
+
* @return {!Object}
|
|
77075
|
+
*/
|
|
77076
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.toObject = function(opt_includeInstance) {
|
|
77077
|
+
return proto.clarifai.api.ArgoOrchestrationSpec.toObject(opt_includeInstance, this);
|
|
77078
|
+
};
|
|
77079
|
+
|
|
77080
|
+
|
|
77081
|
+
/**
|
|
77082
|
+
* Static version of the {@see toObject} method.
|
|
77083
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
77084
|
+
* the JSPB instance for transitional soy proto support:
|
|
77085
|
+
* http://goto/soy-param-migration
|
|
77086
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The msg instance to transform.
|
|
77087
|
+
* @return {!Object}
|
|
77088
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77089
|
+
*/
|
|
77090
|
+
proto.clarifai.api.ArgoOrchestrationSpec.toObject = function(includeInstance, msg) {
|
|
77091
|
+
var f, obj = {
|
|
77092
|
+
apiVersion: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
77093
|
+
specJson: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
77094
|
+
};
|
|
77095
|
+
|
|
77096
|
+
if (includeInstance) {
|
|
77097
|
+
obj.$jspbMessageInstance = msg;
|
|
77098
|
+
}
|
|
77099
|
+
return obj;
|
|
77100
|
+
};
|
|
77101
|
+
}
|
|
77102
|
+
|
|
77103
|
+
|
|
77104
|
+
/**
|
|
77105
|
+
* Deserializes binary data (in protobuf wire format).
|
|
77106
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
77107
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationSpec}
|
|
77108
|
+
*/
|
|
77109
|
+
proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinary = function(bytes) {
|
|
77110
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
77111
|
+
var msg = new proto.clarifai.api.ArgoOrchestrationSpec;
|
|
77112
|
+
return proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader(msg, reader);
|
|
77113
|
+
};
|
|
77114
|
+
|
|
77115
|
+
|
|
77116
|
+
/**
|
|
77117
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
77118
|
+
* given reader into the given message object.
|
|
77119
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationSpec} msg The message object to deserialize into.
|
|
77120
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
77121
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationSpec}
|
|
77122
|
+
*/
|
|
77123
|
+
proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader = function(msg, reader) {
|
|
77124
|
+
while (reader.nextField()) {
|
|
77125
|
+
if (reader.isEndGroup()) {
|
|
77126
|
+
break;
|
|
77127
|
+
}
|
|
77128
|
+
var field = reader.getFieldNumber();
|
|
77129
|
+
switch (field) {
|
|
77130
|
+
case 2:
|
|
77131
|
+
var value = /** @type {string} */ (reader.readString());
|
|
77132
|
+
msg.setApiVersion(value);
|
|
77133
|
+
break;
|
|
77134
|
+
case 3:
|
|
77135
|
+
var value = /** @type {string} */ (reader.readString());
|
|
77136
|
+
msg.setSpecJson(value);
|
|
77137
|
+
break;
|
|
77138
|
+
default:
|
|
77139
|
+
reader.skipField();
|
|
77140
|
+
break;
|
|
77141
|
+
}
|
|
77142
|
+
}
|
|
77143
|
+
return msg;
|
|
77144
|
+
};
|
|
77145
|
+
|
|
77146
|
+
|
|
77147
|
+
/**
|
|
77148
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
77149
|
+
* @return {!Uint8Array}
|
|
77150
|
+
*/
|
|
77151
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.serializeBinary = function() {
|
|
77152
|
+
var writer = new jspb.BinaryWriter();
|
|
77153
|
+
proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter(this, writer);
|
|
77154
|
+
return writer.getResultBuffer();
|
|
77155
|
+
};
|
|
77156
|
+
|
|
77157
|
+
|
|
77158
|
+
/**
|
|
77159
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
77160
|
+
* format), writing to the given BinaryWriter.
|
|
77161
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationSpec} message
|
|
77162
|
+
* @param {!jspb.BinaryWriter} writer
|
|
77163
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77164
|
+
*/
|
|
77165
|
+
proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter = function(message, writer) {
|
|
77166
|
+
var f = undefined;
|
|
77167
|
+
f = message.getApiVersion();
|
|
77168
|
+
if (f.length > 0) {
|
|
77169
|
+
writer.writeString(
|
|
77170
|
+
2,
|
|
77171
|
+
f
|
|
77172
|
+
);
|
|
77173
|
+
}
|
|
77174
|
+
f = message.getSpecJson();
|
|
77175
|
+
if (f.length > 0) {
|
|
77176
|
+
writer.writeString(
|
|
77177
|
+
3,
|
|
77178
|
+
f
|
|
77179
|
+
);
|
|
77180
|
+
}
|
|
77181
|
+
};
|
|
77182
|
+
|
|
77183
|
+
|
|
77184
|
+
/**
|
|
77185
|
+
* optional string api_version = 2;
|
|
77186
|
+
* @return {string}
|
|
77187
|
+
*/
|
|
77188
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.getApiVersion = function() {
|
|
77189
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
77190
|
+
};
|
|
77191
|
+
|
|
77192
|
+
|
|
77193
|
+
/**
|
|
77194
|
+
* @param {string} value
|
|
77195
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
|
|
77196
|
+
*/
|
|
77197
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.setApiVersion = function(value) {
|
|
77198
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
77199
|
+
};
|
|
77200
|
+
|
|
77201
|
+
|
|
77202
|
+
/**
|
|
77203
|
+
* optional string spec_json = 3;
|
|
77204
|
+
* @return {string}
|
|
77205
|
+
*/
|
|
77206
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.getSpecJson = function() {
|
|
77207
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
77208
|
+
};
|
|
77209
|
+
|
|
77210
|
+
|
|
77211
|
+
/**
|
|
77212
|
+
* @param {string} value
|
|
77213
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationSpec} returns this
|
|
77214
|
+
*/
|
|
77215
|
+
proto.clarifai.api.ArgoOrchestrationSpec.prototype.setSpecJson = function(value) {
|
|
77216
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
77217
|
+
};
|
|
77218
|
+
|
|
77219
|
+
|
|
77220
|
+
|
|
77221
|
+
/**
|
|
77222
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
77223
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
77224
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
77225
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
77226
|
+
* @private {!Array<!Array<number>>}
|
|
77227
|
+
* @const
|
|
77228
|
+
*/
|
|
77229
|
+
proto.clarifai.api.OrchestrationSpec.oneofGroups_ = [[1]];
|
|
77230
|
+
|
|
77231
|
+
/**
|
|
77232
|
+
* @enum {number}
|
|
77233
|
+
*/
|
|
77234
|
+
proto.clarifai.api.OrchestrationSpec.OrchestrationCase = {
|
|
77235
|
+
ORCHESTRATION_NOT_SET: 0,
|
|
77236
|
+
ARGO_ORCHESTRATION_SPEC: 1
|
|
77237
|
+
};
|
|
77238
|
+
|
|
77239
|
+
/**
|
|
77240
|
+
* @return {proto.clarifai.api.OrchestrationSpec.OrchestrationCase}
|
|
77241
|
+
*/
|
|
77242
|
+
proto.clarifai.api.OrchestrationSpec.prototype.getOrchestrationCase = function() {
|
|
77243
|
+
return /** @type {proto.clarifai.api.OrchestrationSpec.OrchestrationCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0]));
|
|
77244
|
+
};
|
|
77245
|
+
|
|
77246
|
+
|
|
77247
|
+
|
|
77248
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
77249
|
+
/**
|
|
77250
|
+
* Creates an object representation of this proto.
|
|
77251
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
77252
|
+
* Optional fields that are not set will be set to undefined.
|
|
77253
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
77254
|
+
* For the list of reserved names please see:
|
|
77255
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
77256
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
77257
|
+
* JSPB instance for transitional soy proto support:
|
|
77258
|
+
* http://goto/soy-param-migration
|
|
77259
|
+
* @return {!Object}
|
|
77260
|
+
*/
|
|
77261
|
+
proto.clarifai.api.OrchestrationSpec.prototype.toObject = function(opt_includeInstance) {
|
|
77262
|
+
return proto.clarifai.api.OrchestrationSpec.toObject(opt_includeInstance, this);
|
|
77263
|
+
};
|
|
77264
|
+
|
|
77265
|
+
|
|
77266
|
+
/**
|
|
77267
|
+
* Static version of the {@see toObject} method.
|
|
77268
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
77269
|
+
* the JSPB instance for transitional soy proto support:
|
|
77270
|
+
* http://goto/soy-param-migration
|
|
77271
|
+
* @param {!proto.clarifai.api.OrchestrationSpec} msg The msg instance to transform.
|
|
77272
|
+
* @return {!Object}
|
|
77273
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77274
|
+
*/
|
|
77275
|
+
proto.clarifai.api.OrchestrationSpec.toObject = function(includeInstance, msg) {
|
|
77276
|
+
var f, obj = {
|
|
77277
|
+
argoOrchestrationSpec: (f = msg.getArgoOrchestrationSpec()) && proto.clarifai.api.ArgoOrchestrationSpec.toObject(includeInstance, f)
|
|
77278
|
+
};
|
|
77279
|
+
|
|
77280
|
+
if (includeInstance) {
|
|
77281
|
+
obj.$jspbMessageInstance = msg;
|
|
77282
|
+
}
|
|
77283
|
+
return obj;
|
|
77284
|
+
};
|
|
77285
|
+
}
|
|
77286
|
+
|
|
77287
|
+
|
|
77288
|
+
/**
|
|
77289
|
+
* Deserializes binary data (in protobuf wire format).
|
|
77290
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
77291
|
+
* @return {!proto.clarifai.api.OrchestrationSpec}
|
|
77292
|
+
*/
|
|
77293
|
+
proto.clarifai.api.OrchestrationSpec.deserializeBinary = function(bytes) {
|
|
77294
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
77295
|
+
var msg = new proto.clarifai.api.OrchestrationSpec;
|
|
77296
|
+
return proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader(msg, reader);
|
|
77297
|
+
};
|
|
77298
|
+
|
|
77299
|
+
|
|
77300
|
+
/**
|
|
77301
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
77302
|
+
* given reader into the given message object.
|
|
77303
|
+
* @param {!proto.clarifai.api.OrchestrationSpec} msg The message object to deserialize into.
|
|
77304
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
77305
|
+
* @return {!proto.clarifai.api.OrchestrationSpec}
|
|
77306
|
+
*/
|
|
77307
|
+
proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader = function(msg, reader) {
|
|
77308
|
+
while (reader.nextField()) {
|
|
77309
|
+
if (reader.isEndGroup()) {
|
|
77310
|
+
break;
|
|
77311
|
+
}
|
|
77312
|
+
var field = reader.getFieldNumber();
|
|
77313
|
+
switch (field) {
|
|
77314
|
+
case 1:
|
|
77315
|
+
var value = new proto.clarifai.api.ArgoOrchestrationSpec;
|
|
77316
|
+
reader.readMessage(value,proto.clarifai.api.ArgoOrchestrationSpec.deserializeBinaryFromReader);
|
|
77317
|
+
msg.setArgoOrchestrationSpec(value);
|
|
77318
|
+
break;
|
|
77319
|
+
default:
|
|
77320
|
+
reader.skipField();
|
|
77321
|
+
break;
|
|
77322
|
+
}
|
|
77323
|
+
}
|
|
77324
|
+
return msg;
|
|
77325
|
+
};
|
|
77326
|
+
|
|
77327
|
+
|
|
77328
|
+
/**
|
|
77329
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
77330
|
+
* @return {!Uint8Array}
|
|
77331
|
+
*/
|
|
77332
|
+
proto.clarifai.api.OrchestrationSpec.prototype.serializeBinary = function() {
|
|
77333
|
+
var writer = new jspb.BinaryWriter();
|
|
77334
|
+
proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter(this, writer);
|
|
77335
|
+
return writer.getResultBuffer();
|
|
77336
|
+
};
|
|
77337
|
+
|
|
77338
|
+
|
|
77339
|
+
/**
|
|
77340
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
77341
|
+
* format), writing to the given BinaryWriter.
|
|
77342
|
+
* @param {!proto.clarifai.api.OrchestrationSpec} message
|
|
77343
|
+
* @param {!jspb.BinaryWriter} writer
|
|
77344
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77345
|
+
*/
|
|
77346
|
+
proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter = function(message, writer) {
|
|
77347
|
+
var f = undefined;
|
|
77348
|
+
f = message.getArgoOrchestrationSpec();
|
|
77349
|
+
if (f != null) {
|
|
77350
|
+
writer.writeMessage(
|
|
77351
|
+
1,
|
|
77352
|
+
f,
|
|
77353
|
+
proto.clarifai.api.ArgoOrchestrationSpec.serializeBinaryToWriter
|
|
77354
|
+
);
|
|
77355
|
+
}
|
|
77356
|
+
};
|
|
77357
|
+
|
|
77358
|
+
|
|
77359
|
+
/**
|
|
77360
|
+
* optional ArgoOrchestrationSpec argo_orchestration_spec = 1;
|
|
77361
|
+
* @return {?proto.clarifai.api.ArgoOrchestrationSpec}
|
|
77362
|
+
*/
|
|
77363
|
+
proto.clarifai.api.OrchestrationSpec.prototype.getArgoOrchestrationSpec = function() {
|
|
77364
|
+
return /** @type{?proto.clarifai.api.ArgoOrchestrationSpec} */ (
|
|
77365
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationSpec, 1));
|
|
77366
|
+
};
|
|
77367
|
+
|
|
77368
|
+
|
|
77369
|
+
/**
|
|
77370
|
+
* @param {?proto.clarifai.api.ArgoOrchestrationSpec|undefined} value
|
|
77371
|
+
* @return {!proto.clarifai.api.OrchestrationSpec} returns this
|
|
77372
|
+
*/
|
|
77373
|
+
proto.clarifai.api.OrchestrationSpec.prototype.setArgoOrchestrationSpec = function(value) {
|
|
77374
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationSpec.oneofGroups_[0], value);
|
|
77375
|
+
};
|
|
77376
|
+
|
|
77377
|
+
|
|
77378
|
+
/**
|
|
77379
|
+
* Clears the message field making it undefined.
|
|
77380
|
+
* @return {!proto.clarifai.api.OrchestrationSpec} returns this
|
|
77381
|
+
*/
|
|
77382
|
+
proto.clarifai.api.OrchestrationSpec.prototype.clearArgoOrchestrationSpec = function() {
|
|
77383
|
+
return this.setArgoOrchestrationSpec(undefined);
|
|
77384
|
+
};
|
|
77385
|
+
|
|
77386
|
+
|
|
77387
|
+
/**
|
|
77388
|
+
* Returns whether this field is set.
|
|
77389
|
+
* @return {boolean}
|
|
77390
|
+
*/
|
|
77391
|
+
proto.clarifai.api.OrchestrationSpec.prototype.hasArgoOrchestrationSpec = function() {
|
|
77392
|
+
return jspb.Message.getField(this, 1) != null;
|
|
77393
|
+
};
|
|
77394
|
+
|
|
77395
|
+
|
|
77396
|
+
|
|
77397
|
+
|
|
77398
|
+
|
|
77399
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
77400
|
+
/**
|
|
77401
|
+
* Creates an object representation of this proto.
|
|
77402
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
77403
|
+
* Optional fields that are not set will be set to undefined.
|
|
77404
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
77405
|
+
* For the list of reserved names please see:
|
|
77406
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
77407
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
77408
|
+
* JSPB instance for transitional soy proto support:
|
|
77409
|
+
* http://goto/soy-param-migration
|
|
77410
|
+
* @return {!Object}
|
|
77411
|
+
*/
|
|
77412
|
+
proto.clarifai.api.PipelineVersion.prototype.toObject = function(opt_includeInstance) {
|
|
77413
|
+
return proto.clarifai.api.PipelineVersion.toObject(opt_includeInstance, this);
|
|
77414
|
+
};
|
|
77415
|
+
|
|
77416
|
+
|
|
77417
|
+
/**
|
|
77418
|
+
* Static version of the {@see toObject} method.
|
|
77419
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
77420
|
+
* the JSPB instance for transitional soy proto support:
|
|
77421
|
+
* http://goto/soy-param-migration
|
|
77422
|
+
* @param {!proto.clarifai.api.PipelineVersion} msg The msg instance to transform.
|
|
77423
|
+
* @return {!Object}
|
|
77424
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77425
|
+
*/
|
|
77426
|
+
proto.clarifai.api.PipelineVersion.toObject = function(includeInstance, msg) {
|
|
77427
|
+
var f, obj = {
|
|
77428
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
77429
|
+
appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
77430
|
+
userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
77431
|
+
orchestrationSpec: (f = msg.getOrchestrationSpec()) && proto.clarifai.api.OrchestrationSpec.toObject(includeInstance, f),
|
|
77432
|
+
pipelineId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
77433
|
+
description: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
77434
|
+
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
77435
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
77436
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
77437
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
77438
|
+
};
|
|
77439
|
+
|
|
77440
|
+
if (includeInstance) {
|
|
77441
|
+
obj.$jspbMessageInstance = msg;
|
|
77442
|
+
}
|
|
77443
|
+
return obj;
|
|
77444
|
+
};
|
|
77445
|
+
}
|
|
77446
|
+
|
|
77447
|
+
|
|
77448
|
+
/**
|
|
77449
|
+
* Deserializes binary data (in protobuf wire format).
|
|
77450
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
77451
|
+
* @return {!proto.clarifai.api.PipelineVersion}
|
|
77452
|
+
*/
|
|
77453
|
+
proto.clarifai.api.PipelineVersion.deserializeBinary = function(bytes) {
|
|
77454
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
77455
|
+
var msg = new proto.clarifai.api.PipelineVersion;
|
|
77456
|
+
return proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader(msg, reader);
|
|
77457
|
+
};
|
|
77458
|
+
|
|
77459
|
+
|
|
77460
|
+
/**
|
|
77461
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
77462
|
+
* given reader into the given message object.
|
|
77463
|
+
* @param {!proto.clarifai.api.PipelineVersion} msg The message object to deserialize into.
|
|
77464
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
77465
|
+
* @return {!proto.clarifai.api.PipelineVersion}
|
|
77466
|
+
*/
|
|
77467
|
+
proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader = function(msg, reader) {
|
|
77468
|
+
while (reader.nextField()) {
|
|
77469
|
+
if (reader.isEndGroup()) {
|
|
77470
|
+
break;
|
|
77471
|
+
}
|
|
77472
|
+
var field = reader.getFieldNumber();
|
|
77473
|
+
switch (field) {
|
|
77474
|
+
case 1:
|
|
77475
|
+
var value = /** @type {string} */ (reader.readString());
|
|
77476
|
+
msg.setId(value);
|
|
77477
|
+
break;
|
|
77478
|
+
case 2:
|
|
77479
|
+
var value = /** @type {string} */ (reader.readString());
|
|
77480
|
+
msg.setAppId(value);
|
|
77481
|
+
break;
|
|
77482
|
+
case 3:
|
|
77483
|
+
var value = /** @type {string} */ (reader.readString());
|
|
77484
|
+
msg.setUserId(value);
|
|
77485
|
+
break;
|
|
77486
|
+
case 4:
|
|
77487
|
+
var value = new proto.clarifai.api.OrchestrationSpec;
|
|
77488
|
+
reader.readMessage(value,proto.clarifai.api.OrchestrationSpec.deserializeBinaryFromReader);
|
|
77489
|
+
msg.setOrchestrationSpec(value);
|
|
77490
|
+
break;
|
|
77491
|
+
case 5:
|
|
77492
|
+
var value = /** @type {string} */ (reader.readString());
|
|
77493
|
+
msg.setPipelineId(value);
|
|
77494
|
+
break;
|
|
77495
|
+
case 6:
|
|
77496
|
+
var value = /** @type {string} */ (reader.readString());
|
|
77497
|
+
msg.setDescription(value);
|
|
77498
|
+
break;
|
|
77499
|
+
case 7:
|
|
77500
|
+
var value = new proto.clarifai.api.Visibility;
|
|
77501
|
+
reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader);
|
|
77502
|
+
msg.setVisibility(value);
|
|
77503
|
+
break;
|
|
77504
|
+
case 8:
|
|
77505
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
77506
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
77507
|
+
msg.setMetadata(value);
|
|
77508
|
+
break;
|
|
77509
|
+
case 9:
|
|
77510
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
77511
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
77512
|
+
msg.setCreatedAt(value);
|
|
77513
|
+
break;
|
|
77514
|
+
case 10:
|
|
77515
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
77516
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
77517
|
+
msg.setModifiedAt(value);
|
|
77518
|
+
break;
|
|
77519
|
+
default:
|
|
77520
|
+
reader.skipField();
|
|
77521
|
+
break;
|
|
77522
|
+
}
|
|
77523
|
+
}
|
|
77524
|
+
return msg;
|
|
77525
|
+
};
|
|
77526
|
+
|
|
77527
|
+
|
|
77528
|
+
/**
|
|
77529
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
77530
|
+
* @return {!Uint8Array}
|
|
77531
|
+
*/
|
|
77532
|
+
proto.clarifai.api.PipelineVersion.prototype.serializeBinary = function() {
|
|
77533
|
+
var writer = new jspb.BinaryWriter();
|
|
77534
|
+
proto.clarifai.api.PipelineVersion.serializeBinaryToWriter(this, writer);
|
|
77535
|
+
return writer.getResultBuffer();
|
|
77536
|
+
};
|
|
77537
|
+
|
|
77538
|
+
|
|
77539
|
+
/**
|
|
77540
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
77541
|
+
* format), writing to the given BinaryWriter.
|
|
77542
|
+
* @param {!proto.clarifai.api.PipelineVersion} message
|
|
77543
|
+
* @param {!jspb.BinaryWriter} writer
|
|
77544
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77545
|
+
*/
|
|
77546
|
+
proto.clarifai.api.PipelineVersion.serializeBinaryToWriter = function(message, writer) {
|
|
77547
|
+
var f = undefined;
|
|
77548
|
+
f = message.getId();
|
|
77549
|
+
if (f.length > 0) {
|
|
77550
|
+
writer.writeString(
|
|
77551
|
+
1,
|
|
77552
|
+
f
|
|
77553
|
+
);
|
|
77554
|
+
}
|
|
77555
|
+
f = message.getAppId();
|
|
77556
|
+
if (f.length > 0) {
|
|
77557
|
+
writer.writeString(
|
|
77558
|
+
2,
|
|
77559
|
+
f
|
|
77560
|
+
);
|
|
77561
|
+
}
|
|
77562
|
+
f = message.getUserId();
|
|
77563
|
+
if (f.length > 0) {
|
|
77564
|
+
writer.writeString(
|
|
77565
|
+
3,
|
|
77566
|
+
f
|
|
77567
|
+
);
|
|
77568
|
+
}
|
|
77569
|
+
f = message.getOrchestrationSpec();
|
|
77570
|
+
if (f != null) {
|
|
77571
|
+
writer.writeMessage(
|
|
77572
|
+
4,
|
|
77573
|
+
f,
|
|
77574
|
+
proto.clarifai.api.OrchestrationSpec.serializeBinaryToWriter
|
|
77575
|
+
);
|
|
77576
|
+
}
|
|
77577
|
+
f = message.getPipelineId();
|
|
77578
|
+
if (f.length > 0) {
|
|
77579
|
+
writer.writeString(
|
|
77580
|
+
5,
|
|
77581
|
+
f
|
|
77582
|
+
);
|
|
77583
|
+
}
|
|
77584
|
+
f = message.getDescription();
|
|
77585
|
+
if (f.length > 0) {
|
|
77586
|
+
writer.writeString(
|
|
77587
|
+
6,
|
|
77588
|
+
f
|
|
77589
|
+
);
|
|
77590
|
+
}
|
|
77591
|
+
f = message.getVisibility();
|
|
77592
|
+
if (f != null) {
|
|
77593
|
+
writer.writeMessage(
|
|
77594
|
+
7,
|
|
77595
|
+
f,
|
|
77596
|
+
proto.clarifai.api.Visibility.serializeBinaryToWriter
|
|
77597
|
+
);
|
|
77598
|
+
}
|
|
77599
|
+
f = message.getMetadata();
|
|
77600
|
+
if (f != null) {
|
|
77601
|
+
writer.writeMessage(
|
|
77602
|
+
8,
|
|
77603
|
+
f,
|
|
77604
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
77605
|
+
);
|
|
77606
|
+
}
|
|
77607
|
+
f = message.getCreatedAt();
|
|
77608
|
+
if (f != null) {
|
|
77609
|
+
writer.writeMessage(
|
|
77610
|
+
9,
|
|
77611
|
+
f,
|
|
77612
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
77613
|
+
);
|
|
77614
|
+
}
|
|
77615
|
+
f = message.getModifiedAt();
|
|
77616
|
+
if (f != null) {
|
|
77617
|
+
writer.writeMessage(
|
|
77618
|
+
10,
|
|
77619
|
+
f,
|
|
77620
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
77621
|
+
);
|
|
77622
|
+
}
|
|
77623
|
+
};
|
|
77624
|
+
|
|
77625
|
+
|
|
77626
|
+
/**
|
|
77627
|
+
* optional string id = 1;
|
|
77628
|
+
* @return {string}
|
|
77629
|
+
*/
|
|
77630
|
+
proto.clarifai.api.PipelineVersion.prototype.getId = function() {
|
|
77631
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
77632
|
+
};
|
|
77633
|
+
|
|
77634
|
+
|
|
77635
|
+
/**
|
|
77636
|
+
* @param {string} value
|
|
77637
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77638
|
+
*/
|
|
77639
|
+
proto.clarifai.api.PipelineVersion.prototype.setId = function(value) {
|
|
77640
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
77641
|
+
};
|
|
77642
|
+
|
|
77643
|
+
|
|
77644
|
+
/**
|
|
77645
|
+
* optional string app_id = 2;
|
|
77646
|
+
* @return {string}
|
|
77647
|
+
*/
|
|
77648
|
+
proto.clarifai.api.PipelineVersion.prototype.getAppId = function() {
|
|
77649
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
77650
|
+
};
|
|
77651
|
+
|
|
77652
|
+
|
|
77653
|
+
/**
|
|
77654
|
+
* @param {string} value
|
|
77655
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77656
|
+
*/
|
|
77657
|
+
proto.clarifai.api.PipelineVersion.prototype.setAppId = function(value) {
|
|
77658
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
77659
|
+
};
|
|
77660
|
+
|
|
77661
|
+
|
|
77662
|
+
/**
|
|
77663
|
+
* optional string user_id = 3;
|
|
77664
|
+
* @return {string}
|
|
77665
|
+
*/
|
|
77666
|
+
proto.clarifai.api.PipelineVersion.prototype.getUserId = function() {
|
|
77667
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
77668
|
+
};
|
|
77669
|
+
|
|
77670
|
+
|
|
77671
|
+
/**
|
|
77672
|
+
* @param {string} value
|
|
77673
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77674
|
+
*/
|
|
77675
|
+
proto.clarifai.api.PipelineVersion.prototype.setUserId = function(value) {
|
|
77676
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
77677
|
+
};
|
|
77678
|
+
|
|
77679
|
+
|
|
77680
|
+
/**
|
|
77681
|
+
* optional OrchestrationSpec orchestration_spec = 4;
|
|
77682
|
+
* @return {?proto.clarifai.api.OrchestrationSpec}
|
|
77683
|
+
*/
|
|
77684
|
+
proto.clarifai.api.PipelineVersion.prototype.getOrchestrationSpec = function() {
|
|
77685
|
+
return /** @type{?proto.clarifai.api.OrchestrationSpec} */ (
|
|
77686
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationSpec, 4));
|
|
77687
|
+
};
|
|
77688
|
+
|
|
77689
|
+
|
|
77690
|
+
/**
|
|
77691
|
+
* @param {?proto.clarifai.api.OrchestrationSpec|undefined} value
|
|
77692
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77693
|
+
*/
|
|
77694
|
+
proto.clarifai.api.PipelineVersion.prototype.setOrchestrationSpec = function(value) {
|
|
77695
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
77696
|
+
};
|
|
77697
|
+
|
|
77698
|
+
|
|
77699
|
+
/**
|
|
77700
|
+
* Clears the message field making it undefined.
|
|
77701
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77702
|
+
*/
|
|
77703
|
+
proto.clarifai.api.PipelineVersion.prototype.clearOrchestrationSpec = function() {
|
|
77704
|
+
return this.setOrchestrationSpec(undefined);
|
|
77705
|
+
};
|
|
77706
|
+
|
|
77707
|
+
|
|
77708
|
+
/**
|
|
77709
|
+
* Returns whether this field is set.
|
|
77710
|
+
* @return {boolean}
|
|
77711
|
+
*/
|
|
77712
|
+
proto.clarifai.api.PipelineVersion.prototype.hasOrchestrationSpec = function() {
|
|
77713
|
+
return jspb.Message.getField(this, 4) != null;
|
|
77714
|
+
};
|
|
77715
|
+
|
|
77716
|
+
|
|
77717
|
+
/**
|
|
77718
|
+
* optional string pipeline_id = 5;
|
|
77719
|
+
* @return {string}
|
|
77720
|
+
*/
|
|
77721
|
+
proto.clarifai.api.PipelineVersion.prototype.getPipelineId = function() {
|
|
77722
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
77723
|
+
};
|
|
77724
|
+
|
|
77725
|
+
|
|
77726
|
+
/**
|
|
77727
|
+
* @param {string} value
|
|
77728
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77729
|
+
*/
|
|
77730
|
+
proto.clarifai.api.PipelineVersion.prototype.setPipelineId = function(value) {
|
|
77731
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
77732
|
+
};
|
|
77733
|
+
|
|
77734
|
+
|
|
77735
|
+
/**
|
|
77736
|
+
* optional string description = 6;
|
|
77737
|
+
* @return {string}
|
|
77738
|
+
*/
|
|
77739
|
+
proto.clarifai.api.PipelineVersion.prototype.getDescription = function() {
|
|
77740
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
77741
|
+
};
|
|
77742
|
+
|
|
77743
|
+
|
|
77744
|
+
/**
|
|
77745
|
+
* @param {string} value
|
|
77746
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77747
|
+
*/
|
|
77748
|
+
proto.clarifai.api.PipelineVersion.prototype.setDescription = function(value) {
|
|
77749
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
77750
|
+
};
|
|
77751
|
+
|
|
77752
|
+
|
|
77753
|
+
/**
|
|
77754
|
+
* optional Visibility visibility = 7;
|
|
77755
|
+
* @return {?proto.clarifai.api.Visibility}
|
|
77756
|
+
*/
|
|
77757
|
+
proto.clarifai.api.PipelineVersion.prototype.getVisibility = function() {
|
|
77758
|
+
return /** @type{?proto.clarifai.api.Visibility} */ (
|
|
77759
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7));
|
|
77760
|
+
};
|
|
77761
|
+
|
|
77762
|
+
|
|
77763
|
+
/**
|
|
77764
|
+
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
77765
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77766
|
+
*/
|
|
77767
|
+
proto.clarifai.api.PipelineVersion.prototype.setVisibility = function(value) {
|
|
77768
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
77769
|
+
};
|
|
77770
|
+
|
|
77771
|
+
|
|
77772
|
+
/**
|
|
77773
|
+
* Clears the message field making it undefined.
|
|
77774
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77775
|
+
*/
|
|
77776
|
+
proto.clarifai.api.PipelineVersion.prototype.clearVisibility = function() {
|
|
77777
|
+
return this.setVisibility(undefined);
|
|
77778
|
+
};
|
|
77779
|
+
|
|
77780
|
+
|
|
77781
|
+
/**
|
|
77782
|
+
* Returns whether this field is set.
|
|
77783
|
+
* @return {boolean}
|
|
77784
|
+
*/
|
|
77785
|
+
proto.clarifai.api.PipelineVersion.prototype.hasVisibility = function() {
|
|
77786
|
+
return jspb.Message.getField(this, 7) != null;
|
|
77787
|
+
};
|
|
77788
|
+
|
|
77789
|
+
|
|
77790
|
+
/**
|
|
77791
|
+
* optional google.protobuf.Struct metadata = 8;
|
|
77792
|
+
* @return {?proto.google.protobuf.Struct}
|
|
77793
|
+
*/
|
|
77794
|
+
proto.clarifai.api.PipelineVersion.prototype.getMetadata = function() {
|
|
77795
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
77796
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8));
|
|
77797
|
+
};
|
|
77798
|
+
|
|
77799
|
+
|
|
77800
|
+
/**
|
|
77801
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
77802
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77803
|
+
*/
|
|
77804
|
+
proto.clarifai.api.PipelineVersion.prototype.setMetadata = function(value) {
|
|
77805
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
77806
|
+
};
|
|
77807
|
+
|
|
77808
|
+
|
|
77809
|
+
/**
|
|
77810
|
+
* Clears the message field making it undefined.
|
|
77811
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77812
|
+
*/
|
|
77813
|
+
proto.clarifai.api.PipelineVersion.prototype.clearMetadata = function() {
|
|
77814
|
+
return this.setMetadata(undefined);
|
|
77815
|
+
};
|
|
77816
|
+
|
|
77817
|
+
|
|
77818
|
+
/**
|
|
77819
|
+
* Returns whether this field is set.
|
|
77820
|
+
* @return {boolean}
|
|
77821
|
+
*/
|
|
77822
|
+
proto.clarifai.api.PipelineVersion.prototype.hasMetadata = function() {
|
|
77823
|
+
return jspb.Message.getField(this, 8) != null;
|
|
77824
|
+
};
|
|
77825
|
+
|
|
77826
|
+
|
|
77827
|
+
/**
|
|
77828
|
+
* optional google.protobuf.Timestamp created_at = 9;
|
|
77829
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
77830
|
+
*/
|
|
77831
|
+
proto.clarifai.api.PipelineVersion.prototype.getCreatedAt = function() {
|
|
77832
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
77833
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
|
|
77834
|
+
};
|
|
77835
|
+
|
|
77836
|
+
|
|
77837
|
+
/**
|
|
77838
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
77839
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77840
|
+
*/
|
|
77841
|
+
proto.clarifai.api.PipelineVersion.prototype.setCreatedAt = function(value) {
|
|
77842
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
77843
|
+
};
|
|
77844
|
+
|
|
77845
|
+
|
|
77846
|
+
/**
|
|
77847
|
+
* Clears the message field making it undefined.
|
|
77848
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77849
|
+
*/
|
|
77850
|
+
proto.clarifai.api.PipelineVersion.prototype.clearCreatedAt = function() {
|
|
77851
|
+
return this.setCreatedAt(undefined);
|
|
77852
|
+
};
|
|
77853
|
+
|
|
77854
|
+
|
|
77855
|
+
/**
|
|
77856
|
+
* Returns whether this field is set.
|
|
77857
|
+
* @return {boolean}
|
|
77858
|
+
*/
|
|
77859
|
+
proto.clarifai.api.PipelineVersion.prototype.hasCreatedAt = function() {
|
|
77860
|
+
return jspb.Message.getField(this, 9) != null;
|
|
77861
|
+
};
|
|
77862
|
+
|
|
77863
|
+
|
|
77864
|
+
/**
|
|
77865
|
+
* optional google.protobuf.Timestamp modified_at = 10;
|
|
77866
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
77867
|
+
*/
|
|
77868
|
+
proto.clarifai.api.PipelineVersion.prototype.getModifiedAt = function() {
|
|
77869
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
77870
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
|
|
77871
|
+
};
|
|
77872
|
+
|
|
77873
|
+
|
|
77874
|
+
/**
|
|
77875
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
77876
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77877
|
+
*/
|
|
77878
|
+
proto.clarifai.api.PipelineVersion.prototype.setModifiedAt = function(value) {
|
|
77879
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
77880
|
+
};
|
|
77881
|
+
|
|
77882
|
+
|
|
77883
|
+
/**
|
|
77884
|
+
* Clears the message field making it undefined.
|
|
77885
|
+
* @return {!proto.clarifai.api.PipelineVersion} returns this
|
|
77886
|
+
*/
|
|
77887
|
+
proto.clarifai.api.PipelineVersion.prototype.clearModifiedAt = function() {
|
|
77888
|
+
return this.setModifiedAt(undefined);
|
|
77889
|
+
};
|
|
77890
|
+
|
|
77891
|
+
|
|
77892
|
+
/**
|
|
77893
|
+
* Returns whether this field is set.
|
|
77894
|
+
* @return {boolean}
|
|
77895
|
+
*/
|
|
77896
|
+
proto.clarifai.api.PipelineVersion.prototype.hasModifiedAt = function() {
|
|
77897
|
+
return jspb.Message.getField(this, 10) != null;
|
|
77898
|
+
};
|
|
77899
|
+
|
|
77900
|
+
|
|
77901
|
+
|
|
77902
|
+
/**
|
|
77903
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
77904
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
77905
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
77906
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
77907
|
+
* @private {!Array<!Array<number>>}
|
|
77908
|
+
* @const
|
|
77909
|
+
*/
|
|
77910
|
+
proto.clarifai.api.OrchestrationStatus.oneofGroups_ = [[1]];
|
|
77911
|
+
|
|
77912
|
+
/**
|
|
77913
|
+
* @enum {number}
|
|
77914
|
+
*/
|
|
77915
|
+
proto.clarifai.api.OrchestrationStatus.StatusDetailsCase = {
|
|
77916
|
+
STATUS_DETAILS_NOT_SET: 0,
|
|
77917
|
+
ARGO_STATUS: 1
|
|
77918
|
+
};
|
|
77919
|
+
|
|
77920
|
+
/**
|
|
77921
|
+
* @return {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase}
|
|
77922
|
+
*/
|
|
77923
|
+
proto.clarifai.api.OrchestrationStatus.prototype.getStatusDetailsCase = function() {
|
|
77924
|
+
return /** @type {proto.clarifai.api.OrchestrationStatus.StatusDetailsCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0]));
|
|
77925
|
+
};
|
|
77926
|
+
|
|
77927
|
+
|
|
77928
|
+
|
|
77929
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
77930
|
+
/**
|
|
77931
|
+
* Creates an object representation of this proto.
|
|
77932
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
77933
|
+
* Optional fields that are not set will be set to undefined.
|
|
77934
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
77935
|
+
* For the list of reserved names please see:
|
|
77936
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
77937
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
77938
|
+
* JSPB instance for transitional soy proto support:
|
|
77939
|
+
* http://goto/soy-param-migration
|
|
77940
|
+
* @return {!Object}
|
|
77941
|
+
*/
|
|
77942
|
+
proto.clarifai.api.OrchestrationStatus.prototype.toObject = function(opt_includeInstance) {
|
|
77943
|
+
return proto.clarifai.api.OrchestrationStatus.toObject(opt_includeInstance, this);
|
|
77944
|
+
};
|
|
77945
|
+
|
|
77946
|
+
|
|
77947
|
+
/**
|
|
77948
|
+
* Static version of the {@see toObject} method.
|
|
77949
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
77950
|
+
* the JSPB instance for transitional soy proto support:
|
|
77951
|
+
* http://goto/soy-param-migration
|
|
77952
|
+
* @param {!proto.clarifai.api.OrchestrationStatus} msg The msg instance to transform.
|
|
77953
|
+
* @return {!Object}
|
|
77954
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77955
|
+
*/
|
|
77956
|
+
proto.clarifai.api.OrchestrationStatus.toObject = function(includeInstance, msg) {
|
|
77957
|
+
var f, obj = {
|
|
77958
|
+
argoStatus: (f = msg.getArgoStatus()) && proto.clarifai.api.ArgoOrchestrationStatus.toObject(includeInstance, f),
|
|
77959
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
77960
|
+
};
|
|
77961
|
+
|
|
77962
|
+
if (includeInstance) {
|
|
77963
|
+
obj.$jspbMessageInstance = msg;
|
|
77964
|
+
}
|
|
77965
|
+
return obj;
|
|
77966
|
+
};
|
|
77967
|
+
}
|
|
77968
|
+
|
|
77969
|
+
|
|
77970
|
+
/**
|
|
77971
|
+
* Deserializes binary data (in protobuf wire format).
|
|
77972
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
77973
|
+
* @return {!proto.clarifai.api.OrchestrationStatus}
|
|
77974
|
+
*/
|
|
77975
|
+
proto.clarifai.api.OrchestrationStatus.deserializeBinary = function(bytes) {
|
|
77976
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
77977
|
+
var msg = new proto.clarifai.api.OrchestrationStatus;
|
|
77978
|
+
return proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader(msg, reader);
|
|
77979
|
+
};
|
|
77980
|
+
|
|
77981
|
+
|
|
77982
|
+
/**
|
|
77983
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
77984
|
+
* given reader into the given message object.
|
|
77985
|
+
* @param {!proto.clarifai.api.OrchestrationStatus} msg The message object to deserialize into.
|
|
77986
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
77987
|
+
* @return {!proto.clarifai.api.OrchestrationStatus}
|
|
77988
|
+
*/
|
|
77989
|
+
proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
77990
|
+
while (reader.nextField()) {
|
|
77991
|
+
if (reader.isEndGroup()) {
|
|
77992
|
+
break;
|
|
77993
|
+
}
|
|
77994
|
+
var field = reader.getFieldNumber();
|
|
77995
|
+
switch (field) {
|
|
77996
|
+
case 1:
|
|
77997
|
+
var value = new proto.clarifai.api.ArgoOrchestrationStatus;
|
|
77998
|
+
reader.readMessage(value,proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader);
|
|
77999
|
+
msg.setArgoStatus(value);
|
|
78000
|
+
break;
|
|
78001
|
+
case 2:
|
|
78002
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
78003
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
78004
|
+
msg.setStatus(value);
|
|
78005
|
+
break;
|
|
78006
|
+
default:
|
|
78007
|
+
reader.skipField();
|
|
78008
|
+
break;
|
|
78009
|
+
}
|
|
78010
|
+
}
|
|
78011
|
+
return msg;
|
|
78012
|
+
};
|
|
78013
|
+
|
|
78014
|
+
|
|
78015
|
+
/**
|
|
78016
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
78017
|
+
* @return {!Uint8Array}
|
|
78018
|
+
*/
|
|
78019
|
+
proto.clarifai.api.OrchestrationStatus.prototype.serializeBinary = function() {
|
|
78020
|
+
var writer = new jspb.BinaryWriter();
|
|
78021
|
+
proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter(this, writer);
|
|
78022
|
+
return writer.getResultBuffer();
|
|
78023
|
+
};
|
|
78024
|
+
|
|
78025
|
+
|
|
78026
|
+
/**
|
|
78027
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
78028
|
+
* format), writing to the given BinaryWriter.
|
|
78029
|
+
* @param {!proto.clarifai.api.OrchestrationStatus} message
|
|
78030
|
+
* @param {!jspb.BinaryWriter} writer
|
|
78031
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
78032
|
+
*/
|
|
78033
|
+
proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter = function(message, writer) {
|
|
78034
|
+
var f = undefined;
|
|
78035
|
+
f = message.getArgoStatus();
|
|
78036
|
+
if (f != null) {
|
|
78037
|
+
writer.writeMessage(
|
|
78038
|
+
1,
|
|
78039
|
+
f,
|
|
78040
|
+
proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter
|
|
78041
|
+
);
|
|
78042
|
+
}
|
|
78043
|
+
f = message.getStatus();
|
|
78044
|
+
if (f != null) {
|
|
78045
|
+
writer.writeMessage(
|
|
78046
|
+
2,
|
|
78047
|
+
f,
|
|
78048
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
78049
|
+
);
|
|
78050
|
+
}
|
|
78051
|
+
};
|
|
78052
|
+
|
|
78053
|
+
|
|
78054
|
+
/**
|
|
78055
|
+
* optional ArgoOrchestrationStatus argo_status = 1;
|
|
78056
|
+
* @return {?proto.clarifai.api.ArgoOrchestrationStatus}
|
|
78057
|
+
*/
|
|
78058
|
+
proto.clarifai.api.OrchestrationStatus.prototype.getArgoStatus = function() {
|
|
78059
|
+
return /** @type{?proto.clarifai.api.ArgoOrchestrationStatus} */ (
|
|
78060
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ArgoOrchestrationStatus, 1));
|
|
78061
|
+
};
|
|
78062
|
+
|
|
78063
|
+
|
|
78064
|
+
/**
|
|
78065
|
+
* @param {?proto.clarifai.api.ArgoOrchestrationStatus|undefined} value
|
|
78066
|
+
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
78067
|
+
*/
|
|
78068
|
+
proto.clarifai.api.OrchestrationStatus.prototype.setArgoStatus = function(value) {
|
|
78069
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.OrchestrationStatus.oneofGroups_[0], value);
|
|
78070
|
+
};
|
|
78071
|
+
|
|
78072
|
+
|
|
78073
|
+
/**
|
|
78074
|
+
* Clears the message field making it undefined.
|
|
78075
|
+
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
78076
|
+
*/
|
|
78077
|
+
proto.clarifai.api.OrchestrationStatus.prototype.clearArgoStatus = function() {
|
|
78078
|
+
return this.setArgoStatus(undefined);
|
|
78079
|
+
};
|
|
78080
|
+
|
|
78081
|
+
|
|
78082
|
+
/**
|
|
78083
|
+
* Returns whether this field is set.
|
|
78084
|
+
* @return {boolean}
|
|
78085
|
+
*/
|
|
78086
|
+
proto.clarifai.api.OrchestrationStatus.prototype.hasArgoStatus = function() {
|
|
78087
|
+
return jspb.Message.getField(this, 1) != null;
|
|
78088
|
+
};
|
|
78089
|
+
|
|
78090
|
+
|
|
78091
|
+
/**
|
|
78092
|
+
* optional status.Status status = 2;
|
|
78093
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
78094
|
+
*/
|
|
78095
|
+
proto.clarifai.api.OrchestrationStatus.prototype.getStatus = function() {
|
|
78096
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
78097
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
|
|
78098
|
+
};
|
|
78099
|
+
|
|
78100
|
+
|
|
78101
|
+
/**
|
|
78102
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
78103
|
+
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
78104
|
+
*/
|
|
78105
|
+
proto.clarifai.api.OrchestrationStatus.prototype.setStatus = function(value) {
|
|
78106
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
78107
|
+
};
|
|
78108
|
+
|
|
78109
|
+
|
|
78110
|
+
/**
|
|
78111
|
+
* Clears the message field making it undefined.
|
|
78112
|
+
* @return {!proto.clarifai.api.OrchestrationStatus} returns this
|
|
78113
|
+
*/
|
|
78114
|
+
proto.clarifai.api.OrchestrationStatus.prototype.clearStatus = function() {
|
|
78115
|
+
return this.setStatus(undefined);
|
|
78116
|
+
};
|
|
78117
|
+
|
|
78118
|
+
|
|
78119
|
+
/**
|
|
78120
|
+
* Returns whether this field is set.
|
|
78121
|
+
* @return {boolean}
|
|
78122
|
+
*/
|
|
78123
|
+
proto.clarifai.api.OrchestrationStatus.prototype.hasStatus = function() {
|
|
78124
|
+
return jspb.Message.getField(this, 2) != null;
|
|
78125
|
+
};
|
|
78126
|
+
|
|
78127
|
+
|
|
78128
|
+
|
|
78129
|
+
|
|
78130
|
+
|
|
78131
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
78132
|
+
/**
|
|
78133
|
+
* Creates an object representation of this proto.
|
|
78134
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
78135
|
+
* Optional fields that are not set will be set to undefined.
|
|
78136
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
78137
|
+
* For the list of reserved names please see:
|
|
78138
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
78139
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
78140
|
+
* JSPB instance for transitional soy proto support:
|
|
78141
|
+
* http://goto/soy-param-migration
|
|
78142
|
+
* @return {!Object}
|
|
78143
|
+
*/
|
|
78144
|
+
proto.clarifai.api.ArgoOrchestrationStatus.prototype.toObject = function(opt_includeInstance) {
|
|
78145
|
+
return proto.clarifai.api.ArgoOrchestrationStatus.toObject(opt_includeInstance, this);
|
|
78146
|
+
};
|
|
78147
|
+
|
|
78148
|
+
|
|
78149
|
+
/**
|
|
78150
|
+
* Static version of the {@see toObject} method.
|
|
78151
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
78152
|
+
* the JSPB instance for transitional soy proto support:
|
|
78153
|
+
* http://goto/soy-param-migration
|
|
78154
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The msg instance to transform.
|
|
78155
|
+
* @return {!Object}
|
|
78156
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
78157
|
+
*/
|
|
78158
|
+
proto.clarifai.api.ArgoOrchestrationStatus.toObject = function(includeInstance, msg) {
|
|
78159
|
+
var f, obj = {
|
|
78160
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
78161
|
+
};
|
|
78162
|
+
|
|
78163
|
+
if (includeInstance) {
|
|
78164
|
+
obj.$jspbMessageInstance = msg;
|
|
78165
|
+
}
|
|
78166
|
+
return obj;
|
|
78167
|
+
};
|
|
78168
|
+
}
|
|
78169
|
+
|
|
78170
|
+
|
|
78171
|
+
/**
|
|
78172
|
+
* Deserializes binary data (in protobuf wire format).
|
|
78173
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
78174
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationStatus}
|
|
78175
|
+
*/
|
|
78176
|
+
proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinary = function(bytes) {
|
|
78177
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
78178
|
+
var msg = new proto.clarifai.api.ArgoOrchestrationStatus;
|
|
78179
|
+
return proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader(msg, reader);
|
|
78180
|
+
};
|
|
78181
|
+
|
|
78182
|
+
|
|
78183
|
+
/**
|
|
78184
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
78185
|
+
* given reader into the given message object.
|
|
78186
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationStatus} msg The message object to deserialize into.
|
|
78187
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
78188
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationStatus}
|
|
78189
|
+
*/
|
|
78190
|
+
proto.clarifai.api.ArgoOrchestrationStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
78191
|
+
while (reader.nextField()) {
|
|
78192
|
+
if (reader.isEndGroup()) {
|
|
78193
|
+
break;
|
|
78194
|
+
}
|
|
78195
|
+
var field = reader.getFieldNumber();
|
|
78196
|
+
switch (field) {
|
|
78197
|
+
case 1:
|
|
78198
|
+
var value = /** @type {string} */ (reader.readString());
|
|
78199
|
+
msg.setStatus(value);
|
|
78200
|
+
break;
|
|
78201
|
+
default:
|
|
78202
|
+
reader.skipField();
|
|
78203
|
+
break;
|
|
78204
|
+
}
|
|
78205
|
+
}
|
|
78206
|
+
return msg;
|
|
78207
|
+
};
|
|
78208
|
+
|
|
78209
|
+
|
|
78210
|
+
/**
|
|
78211
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
78212
|
+
* @return {!Uint8Array}
|
|
78213
|
+
*/
|
|
78214
|
+
proto.clarifai.api.ArgoOrchestrationStatus.prototype.serializeBinary = function() {
|
|
78215
|
+
var writer = new jspb.BinaryWriter();
|
|
78216
|
+
proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter(this, writer);
|
|
78217
|
+
return writer.getResultBuffer();
|
|
78218
|
+
};
|
|
78219
|
+
|
|
78220
|
+
|
|
78221
|
+
/**
|
|
78222
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
78223
|
+
* format), writing to the given BinaryWriter.
|
|
78224
|
+
* @param {!proto.clarifai.api.ArgoOrchestrationStatus} message
|
|
78225
|
+
* @param {!jspb.BinaryWriter} writer
|
|
78226
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
78227
|
+
*/
|
|
78228
|
+
proto.clarifai.api.ArgoOrchestrationStatus.serializeBinaryToWriter = function(message, writer) {
|
|
78229
|
+
var f = undefined;
|
|
78230
|
+
f = message.getStatus();
|
|
78231
|
+
if (f.length > 0) {
|
|
78232
|
+
writer.writeString(
|
|
78233
|
+
1,
|
|
78234
|
+
f
|
|
78235
|
+
);
|
|
78236
|
+
}
|
|
78237
|
+
};
|
|
78238
|
+
|
|
78239
|
+
|
|
78240
|
+
/**
|
|
78241
|
+
* optional string status = 1;
|
|
78242
|
+
* @return {string}
|
|
78243
|
+
*/
|
|
78244
|
+
proto.clarifai.api.ArgoOrchestrationStatus.prototype.getStatus = function() {
|
|
78245
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
78246
|
+
};
|
|
78247
|
+
|
|
78248
|
+
|
|
78249
|
+
/**
|
|
78250
|
+
* @param {string} value
|
|
78251
|
+
* @return {!proto.clarifai.api.ArgoOrchestrationStatus} returns this
|
|
78252
|
+
*/
|
|
78253
|
+
proto.clarifai.api.ArgoOrchestrationStatus.prototype.setStatus = function(value) {
|
|
78254
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
78255
|
+
};
|
|
78256
|
+
|
|
78257
|
+
|
|
78258
|
+
|
|
78259
|
+
/**
|
|
78260
|
+
* List of repeated fields within this message type.
|
|
78261
|
+
* @private {!Array<number>}
|
|
78262
|
+
* @const
|
|
78263
|
+
*/
|
|
78264
|
+
proto.clarifai.api.PipelineVersionRun.repeatedFields_ = [3];
|
|
78265
|
+
|
|
78266
|
+
|
|
78267
|
+
|
|
78268
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
78269
|
+
/**
|
|
78270
|
+
* Creates an object representation of this proto.
|
|
78271
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
78272
|
+
* Optional fields that are not set will be set to undefined.
|
|
78273
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
78274
|
+
* For the list of reserved names please see:
|
|
78275
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
78276
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
78277
|
+
* JSPB instance for transitional soy proto support:
|
|
78278
|
+
* http://goto/soy-param-migration
|
|
78279
|
+
* @return {!Object}
|
|
78280
|
+
*/
|
|
78281
|
+
proto.clarifai.api.PipelineVersionRun.prototype.toObject = function(opt_includeInstance) {
|
|
78282
|
+
return proto.clarifai.api.PipelineVersionRun.toObject(opt_includeInstance, this);
|
|
78283
|
+
};
|
|
78284
|
+
|
|
78285
|
+
|
|
78286
|
+
/**
|
|
78287
|
+
* Static version of the {@see toObject} method.
|
|
78288
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
78289
|
+
* the JSPB instance for transitional soy proto support:
|
|
78290
|
+
* http://goto/soy-param-migration
|
|
78291
|
+
* @param {!proto.clarifai.api.PipelineVersionRun} msg The msg instance to transform.
|
|
78292
|
+
* @return {!Object}
|
|
78293
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
78294
|
+
*/
|
|
78295
|
+
proto.clarifai.api.PipelineVersionRun.toObject = function(includeInstance, msg) {
|
|
78296
|
+
var f, obj = {
|
|
78297
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
78298
|
+
pipelineVersion: (f = msg.getPipelineVersion()) && proto.clarifai.api.PipelineVersion.toObject(includeInstance, f),
|
|
78299
|
+
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(),
|
|
78300
|
+
proto.clarifai.api.Nodepool.toObject, includeInstance),
|
|
78301
|
+
orchestrationStatus: (f = msg.getOrchestrationStatus()) && proto.clarifai.api.OrchestrationStatus.toObject(includeInstance, f),
|
|
78302
|
+
userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
78303
|
+
appId: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
78304
|
+
};
|
|
78305
|
+
|
|
78306
|
+
if (includeInstance) {
|
|
78307
|
+
obj.$jspbMessageInstance = msg;
|
|
78308
|
+
}
|
|
78309
|
+
return obj;
|
|
78310
|
+
};
|
|
78311
|
+
}
|
|
78312
|
+
|
|
78313
|
+
|
|
78314
|
+
/**
|
|
78315
|
+
* Deserializes binary data (in protobuf wire format).
|
|
78316
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
78317
|
+
* @return {!proto.clarifai.api.PipelineVersionRun}
|
|
78318
|
+
*/
|
|
78319
|
+
proto.clarifai.api.PipelineVersionRun.deserializeBinary = function(bytes) {
|
|
78320
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
78321
|
+
var msg = new proto.clarifai.api.PipelineVersionRun;
|
|
78322
|
+
return proto.clarifai.api.PipelineVersionRun.deserializeBinaryFromReader(msg, reader);
|
|
78323
|
+
};
|
|
78324
|
+
|
|
78325
|
+
|
|
78326
|
+
/**
|
|
78327
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
78328
|
+
* given reader into the given message object.
|
|
78329
|
+
* @param {!proto.clarifai.api.PipelineVersionRun} msg The message object to deserialize into.
|
|
78330
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
78331
|
+
* @return {!proto.clarifai.api.PipelineVersionRun}
|
|
78332
|
+
*/
|
|
78333
|
+
proto.clarifai.api.PipelineVersionRun.deserializeBinaryFromReader = function(msg, reader) {
|
|
78334
|
+
while (reader.nextField()) {
|
|
78335
|
+
if (reader.isEndGroup()) {
|
|
78336
|
+
break;
|
|
78337
|
+
}
|
|
78338
|
+
var field = reader.getFieldNumber();
|
|
78339
|
+
switch (field) {
|
|
78340
|
+
case 1:
|
|
78341
|
+
var value = /** @type {string} */ (reader.readString());
|
|
78342
|
+
msg.setId(value);
|
|
78343
|
+
break;
|
|
78344
|
+
case 2:
|
|
78345
|
+
var value = new proto.clarifai.api.PipelineVersion;
|
|
78346
|
+
reader.readMessage(value,proto.clarifai.api.PipelineVersion.deserializeBinaryFromReader);
|
|
78347
|
+
msg.setPipelineVersion(value);
|
|
78348
|
+
break;
|
|
78349
|
+
case 3:
|
|
78350
|
+
var value = new proto.clarifai.api.Nodepool;
|
|
78351
|
+
reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
78352
|
+
msg.addNodepools(value);
|
|
78353
|
+
break;
|
|
78354
|
+
case 4:
|
|
78355
|
+
var value = new proto.clarifai.api.OrchestrationStatus;
|
|
78356
|
+
reader.readMessage(value,proto.clarifai.api.OrchestrationStatus.deserializeBinaryFromReader);
|
|
78357
|
+
msg.setOrchestrationStatus(value);
|
|
78358
|
+
break;
|
|
78359
|
+
case 5:
|
|
78360
|
+
var value = /** @type {string} */ (reader.readString());
|
|
78361
|
+
msg.setUserId(value);
|
|
78362
|
+
break;
|
|
78363
|
+
case 6:
|
|
78364
|
+
var value = /** @type {string} */ (reader.readString());
|
|
78365
|
+
msg.setAppId(value);
|
|
78366
|
+
break;
|
|
78367
|
+
default:
|
|
78368
|
+
reader.skipField();
|
|
78369
|
+
break;
|
|
78370
|
+
}
|
|
78371
|
+
}
|
|
78372
|
+
return msg;
|
|
78373
|
+
};
|
|
78374
|
+
|
|
78375
|
+
|
|
78376
|
+
/**
|
|
78377
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
78378
|
+
* @return {!Uint8Array}
|
|
78379
|
+
*/
|
|
78380
|
+
proto.clarifai.api.PipelineVersionRun.prototype.serializeBinary = function() {
|
|
78381
|
+
var writer = new jspb.BinaryWriter();
|
|
78382
|
+
proto.clarifai.api.PipelineVersionRun.serializeBinaryToWriter(this, writer);
|
|
78383
|
+
return writer.getResultBuffer();
|
|
78384
|
+
};
|
|
78385
|
+
|
|
78386
|
+
|
|
78387
|
+
/**
|
|
78388
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
78389
|
+
* format), writing to the given BinaryWriter.
|
|
78390
|
+
* @param {!proto.clarifai.api.PipelineVersionRun} message
|
|
78391
|
+
* @param {!jspb.BinaryWriter} writer
|
|
78392
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
78393
|
+
*/
|
|
78394
|
+
proto.clarifai.api.PipelineVersionRun.serializeBinaryToWriter = function(message, writer) {
|
|
78395
|
+
var f = undefined;
|
|
78396
|
+
f = message.getId();
|
|
78397
|
+
if (f.length > 0) {
|
|
78398
|
+
writer.writeString(
|
|
78399
|
+
1,
|
|
78400
|
+
f
|
|
78401
|
+
);
|
|
78402
|
+
}
|
|
78403
|
+
f = message.getPipelineVersion();
|
|
78404
|
+
if (f != null) {
|
|
78405
|
+
writer.writeMessage(
|
|
78406
|
+
2,
|
|
78407
|
+
f,
|
|
78408
|
+
proto.clarifai.api.PipelineVersion.serializeBinaryToWriter
|
|
78409
|
+
);
|
|
78410
|
+
}
|
|
78411
|
+
f = message.getNodepoolsList();
|
|
78412
|
+
if (f.length > 0) {
|
|
78413
|
+
writer.writeRepeatedMessage(
|
|
78414
|
+
3,
|
|
78415
|
+
f,
|
|
78416
|
+
proto.clarifai.api.Nodepool.serializeBinaryToWriter
|
|
78417
|
+
);
|
|
78418
|
+
}
|
|
78419
|
+
f = message.getOrchestrationStatus();
|
|
78420
|
+
if (f != null) {
|
|
78421
|
+
writer.writeMessage(
|
|
78422
|
+
4,
|
|
78423
|
+
f,
|
|
78424
|
+
proto.clarifai.api.OrchestrationStatus.serializeBinaryToWriter
|
|
78425
|
+
);
|
|
78426
|
+
}
|
|
78427
|
+
f = message.getUserId();
|
|
78428
|
+
if (f.length > 0) {
|
|
78429
|
+
writer.writeString(
|
|
78430
|
+
5,
|
|
78431
|
+
f
|
|
78432
|
+
);
|
|
78433
|
+
}
|
|
78434
|
+
f = message.getAppId();
|
|
78435
|
+
if (f.length > 0) {
|
|
78436
|
+
writer.writeString(
|
|
78437
|
+
6,
|
|
78438
|
+
f
|
|
78439
|
+
);
|
|
78440
|
+
}
|
|
78441
|
+
};
|
|
78442
|
+
|
|
78443
|
+
|
|
78444
|
+
/**
|
|
78445
|
+
* optional string id = 1;
|
|
78446
|
+
* @return {string}
|
|
78447
|
+
*/
|
|
78448
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getId = function() {
|
|
78449
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
78450
|
+
};
|
|
78451
|
+
|
|
78452
|
+
|
|
78453
|
+
/**
|
|
78454
|
+
* @param {string} value
|
|
78455
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
78456
|
+
*/
|
|
78457
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setId = function(value) {
|
|
78458
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
78459
|
+
};
|
|
78460
|
+
|
|
78461
|
+
|
|
78462
|
+
/**
|
|
78463
|
+
* optional PipelineVersion pipeline_version = 2;
|
|
78464
|
+
* @return {?proto.clarifai.api.PipelineVersion}
|
|
78465
|
+
*/
|
|
78466
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getPipelineVersion = function() {
|
|
78467
|
+
return /** @type{?proto.clarifai.api.PipelineVersion} */ (
|
|
78468
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.PipelineVersion, 2));
|
|
78469
|
+
};
|
|
78470
|
+
|
|
78471
|
+
|
|
78472
|
+
/**
|
|
78473
|
+
* @param {?proto.clarifai.api.PipelineVersion|undefined} value
|
|
78474
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
78475
|
+
*/
|
|
78476
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setPipelineVersion = function(value) {
|
|
78477
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
78478
|
+
};
|
|
78479
|
+
|
|
78480
|
+
|
|
78481
|
+
/**
|
|
78482
|
+
* Clears the message field making it undefined.
|
|
78483
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
78484
|
+
*/
|
|
78485
|
+
proto.clarifai.api.PipelineVersionRun.prototype.clearPipelineVersion = function() {
|
|
78486
|
+
return this.setPipelineVersion(undefined);
|
|
78487
|
+
};
|
|
78488
|
+
|
|
78489
|
+
|
|
78490
|
+
/**
|
|
78491
|
+
* Returns whether this field is set.
|
|
78492
|
+
* @return {boolean}
|
|
78493
|
+
*/
|
|
78494
|
+
proto.clarifai.api.PipelineVersionRun.prototype.hasPipelineVersion = function() {
|
|
78495
|
+
return jspb.Message.getField(this, 2) != null;
|
|
78496
|
+
};
|
|
78497
|
+
|
|
78498
|
+
|
|
78499
|
+
/**
|
|
78500
|
+
* repeated Nodepool nodepools = 3;
|
|
78501
|
+
* @return {!Array<!proto.clarifai.api.Nodepool>}
|
|
78502
|
+
*/
|
|
78503
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getNodepoolsList = function() {
|
|
78504
|
+
return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (
|
|
78505
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Nodepool, 3));
|
|
78506
|
+
};
|
|
78507
|
+
|
|
78508
|
+
|
|
78509
|
+
/**
|
|
78510
|
+
* @param {!Array<!proto.clarifai.api.Nodepool>} value
|
|
78511
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
78512
|
+
*/
|
|
78513
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setNodepoolsList = function(value) {
|
|
78514
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
78515
|
+
};
|
|
78516
|
+
|
|
78517
|
+
|
|
78518
|
+
/**
|
|
78519
|
+
* @param {!proto.clarifai.api.Nodepool=} opt_value
|
|
78520
|
+
* @param {number=} opt_index
|
|
78521
|
+
* @return {!proto.clarifai.api.Nodepool}
|
|
78522
|
+
*/
|
|
78523
|
+
proto.clarifai.api.PipelineVersionRun.prototype.addNodepools = function(opt_value, opt_index) {
|
|
78524
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Nodepool, opt_index);
|
|
78525
|
+
};
|
|
78526
|
+
|
|
78527
|
+
|
|
78528
|
+
/**
|
|
78529
|
+
* Clears the list making it empty but non-null.
|
|
78530
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
78531
|
+
*/
|
|
78532
|
+
proto.clarifai.api.PipelineVersionRun.prototype.clearNodepoolsList = function() {
|
|
78533
|
+
return this.setNodepoolsList([]);
|
|
78534
|
+
};
|
|
78535
|
+
|
|
78536
|
+
|
|
78537
|
+
/**
|
|
78538
|
+
* optional OrchestrationStatus orchestration_status = 4;
|
|
78539
|
+
* @return {?proto.clarifai.api.OrchestrationStatus}
|
|
78540
|
+
*/
|
|
78541
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getOrchestrationStatus = function() {
|
|
78542
|
+
return /** @type{?proto.clarifai.api.OrchestrationStatus} */ (
|
|
78543
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.OrchestrationStatus, 4));
|
|
78544
|
+
};
|
|
78545
|
+
|
|
78546
|
+
|
|
78547
|
+
/**
|
|
78548
|
+
* @param {?proto.clarifai.api.OrchestrationStatus|undefined} value
|
|
78549
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
78550
|
+
*/
|
|
78551
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setOrchestrationStatus = function(value) {
|
|
78552
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
78553
|
+
};
|
|
78554
|
+
|
|
78555
|
+
|
|
78556
|
+
/**
|
|
78557
|
+
* Clears the message field making it undefined.
|
|
78558
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
78559
|
+
*/
|
|
78560
|
+
proto.clarifai.api.PipelineVersionRun.prototype.clearOrchestrationStatus = function() {
|
|
78561
|
+
return this.setOrchestrationStatus(undefined);
|
|
78562
|
+
};
|
|
78563
|
+
|
|
78564
|
+
|
|
78565
|
+
/**
|
|
78566
|
+
* Returns whether this field is set.
|
|
78567
|
+
* @return {boolean}
|
|
78568
|
+
*/
|
|
78569
|
+
proto.clarifai.api.PipelineVersionRun.prototype.hasOrchestrationStatus = function() {
|
|
78570
|
+
return jspb.Message.getField(this, 4) != null;
|
|
78571
|
+
};
|
|
78572
|
+
|
|
78573
|
+
|
|
78574
|
+
/**
|
|
78575
|
+
* optional string user_id = 5;
|
|
78576
|
+
* @return {string}
|
|
78577
|
+
*/
|
|
78578
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getUserId = function() {
|
|
78579
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
78580
|
+
};
|
|
78581
|
+
|
|
78582
|
+
|
|
78583
|
+
/**
|
|
78584
|
+
* @param {string} value
|
|
78585
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
78586
|
+
*/
|
|
78587
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setUserId = function(value) {
|
|
78588
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
78589
|
+
};
|
|
78590
|
+
|
|
78591
|
+
|
|
78592
|
+
/**
|
|
78593
|
+
* optional string app_id = 6;
|
|
78594
|
+
* @return {string}
|
|
78595
|
+
*/
|
|
78596
|
+
proto.clarifai.api.PipelineVersionRun.prototype.getAppId = function() {
|
|
78597
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
78598
|
+
};
|
|
78599
|
+
|
|
78600
|
+
|
|
78601
|
+
/**
|
|
78602
|
+
* @param {string} value
|
|
78603
|
+
* @return {!proto.clarifai.api.PipelineVersionRun} returns this
|
|
78604
|
+
*/
|
|
78605
|
+
proto.clarifai.api.PipelineVersionRun.prototype.setAppId = function(value) {
|
|
78606
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
78607
|
+
};
|
|
78608
|
+
|
|
78609
|
+
|
|
75170
78610
|
/**
|
|
75171
78611
|
* @enum {number}
|
|
75172
78612
|
*/
|