Class BatchJob.Builder

java.lang.Object
com.google.genai.types.BatchJob.Builder
Enclosing class:
BatchJob

public abstract static class BatchJob.Builder extends Object
Builder for BatchJob.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      public abstract BatchJob.Builder name(String name)
      Setter for name.

      name: The resource name of the BatchJob. Output only.".

    • displayName

      public abstract BatchJob.Builder displayName(String displayName)
      Setter for displayName.

      displayName: The display name of the BatchJob.

    • state

      public abstract BatchJob.Builder state(JobState state)
      Setter for state.

      state: The state of the BatchJob.

    • state

      @CanIgnoreReturnValue public BatchJob.Builder state(JobState.Known knownType)
      Setter for state given a known enum.

      state: The state of the BatchJob.

    • state

      @CanIgnoreReturnValue public BatchJob.Builder state(String state)
      Setter for state given a string.

      state: The state of the BatchJob.

    • error

      public abstract BatchJob.Builder error(JobError error)
      Setter for error.

      error: Output only. Only populated when the job's state is JOB_STATE_FAILED or JOB_STATE_CANCELLED.

    • error

      public BatchJob.Builder error(JobError.Builder errorBuilder)
      Setter for error builder.

      error: Output only. Only populated when the job's state is JOB_STATE_FAILED or JOB_STATE_CANCELLED.

    • createTime

      public abstract BatchJob.Builder createTime(Instant createTime)
      Setter for createTime.

      createTime: The time when the BatchJob was created.

    • startTime

      public abstract BatchJob.Builder startTime(Instant startTime)
      Setter for startTime.

      startTime: Output only. Time when the Job for the first time entered the `JOB_STATE_RUNNING` state.

    • endTime

      public abstract BatchJob.Builder endTime(Instant endTime)
      Setter for endTime.

      endTime: The time when the BatchJob was completed.

    • updateTime

      public abstract BatchJob.Builder updateTime(Instant updateTime)
      Setter for updateTime.

      updateTime: The time when the BatchJob was last updated.

    • model

      public abstract BatchJob.Builder model(String model)
      Setter for model.

      model: The name of the model that produces the predictions via the BatchJob.

    • src

      public abstract BatchJob.Builder src(BatchJobSource src)
      Setter for src.

      src: Configuration for the input data.

    • src

      public BatchJob.Builder src(BatchJobSource.Builder srcBuilder)
      Setter for src builder.

      src: Configuration for the input data.

    • dest

      public abstract BatchJob.Builder dest(BatchJobDestination dest)
      Setter for dest.

      dest: Configuration for the output data.

    • dest

      public BatchJob.Builder dest(BatchJobDestination.Builder destBuilder)
      Setter for dest builder.

      dest: Configuration for the output data.

    • build

      public abstract BatchJob build()