Class BatchJob

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.BatchJob

public abstract class BatchJob extends JsonSerializable
Config for batches.create return value.
  • Constructor Details

    • BatchJob

      public BatchJob()
  • Method Details

    • name

      public abstract Optional<String> name()
      The resource name of the BatchJob. Output only.".
    • displayName

      public abstract Optional<String> displayName()
      The display name of the BatchJob.
    • state

      public abstract Optional<JobState> state()
      The state of the BatchJob.
    • error

      public abstract Optional<JobError> error()
      Output only. Only populated when the job's state is JOB_STATE_FAILED or JOB_STATE_CANCELLED.
    • createTime

      public abstract Optional<Instant> createTime()
      The time when the BatchJob was created.
    • startTime

      public abstract Optional<Instant> startTime()
      Output only. Time when the Job for the first time entered the `JOB_STATE_RUNNING` state.
    • endTime

      public abstract Optional<Instant> endTime()
      The time when the BatchJob was completed.
    • updateTime

      public abstract Optional<Instant> updateTime()
      The time when the BatchJob was last updated.
    • model

      public abstract Optional<String> model()
      The name of the model that produces the predictions via the BatchJob.
    • src

      public abstract Optional<BatchJobSource> src()
      Configuration for the input data.
    • dest

      public abstract Optional<BatchJobDestination> dest()
      Configuration for the output data.
    • builder

      public static BatchJob.Builder builder()
      Instantiates a builder for BatchJob.
    • toBuilder

      public abstract BatchJob.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static BatchJob fromJson(String jsonString)
      Deserializes a JSON string to a BatchJob object.