GetJobResult constructor

const GetJobResult({
  1. required String createTime,
  2. required String endTime,
  3. required String errorMessage,
  4. required String etag,
  5. required String jobId,
  6. required String jobPosition,
  7. required Map<String, String> labels,
  8. required GoogleCloudMlV1PredictionInputResponse predictionInput,
  9. required GoogleCloudMlV1PredictionOutputResponse predictionOutput,
  10. required String startTime,
  11. required String state,
  12. required GoogleCloudMlV1TrainingInputResponse trainingInput,
  13. required GoogleCloudMlV1TrainingOutputResponse trainingOutput,
})

Creates a new GetJobResult. createTime When the job was created. endTime When the job processing was completed. errorMessage The details of a failure or a cancellation. etag etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a job from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform job updates in order to avoid race conditions: An etag is returned in the response to GetJob, and systems are expected to put that etag in the request to UpdateJob to ensure that their change will be applied to the same version of the job. jobId The user-specified id of the job. jobPosition It's only effect when the job is in QUEUED state. If it's positive, it indicates the job's position in the job scheduler. It's 0 when the job is already scheduled. labels Optional. One or more labels that you can add, to organize your jobs. Each label is a key-value pair, where both the key and the value are arbitrary strings that you supply. For more information, see the documentation on using labels. predictionInput Input parameters to create a prediction job. predictionOutput The current prediction job result. startTime When the job processing was started. state The detailed state of a job. trainingInput Input parameters to create a training job. trainingOutput The current training job result.

Implementation

const GetJobResult({
  required this.createTime,
  required this.endTime,
  required this.errorMessage,
  required this.etag,
  required this.jobId,
  required this.jobPosition,
  required this.labels,
  required this.predictionInput,
  required this.predictionOutput,
  required this.startTime,
  required this.state,
  required this.trainingInput,
  required this.trainingOutput,
});