Class BatchJob
-
- All Implemented Interfaces:
public abstract class BatchJob extends JsonSerializable
Config for batches.create return value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classBatchJob.BuilderBuilder for BatchJob.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description BatchJob()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>name()The resource name of the BatchJob. abstract Optional<String>displayName()The display name of the BatchJob. abstract Optional<JobState>state()The state of the BatchJob. abstract Optional<JobError>error()Output only. abstract Optional<Instant>createTime()The time when the BatchJob was created. abstract Optional<Instant>startTime()Output only. abstract Optional<Instant>endTime()The time when the BatchJob was completed. abstract Optional<Instant>updateTime()The time when the BatchJob was last updated. abstract Optional<String>model()The name of the model that produces the predictions via the BatchJob. abstract Optional<BatchJobSource>src()Configuration for the input data. abstract Optional<BatchJobDestination>dest()Configuration for the output data. abstract Optional<CompletionStats>completionStats()Statistics on completed and failed prediction instances. static BatchJob.Builderbuilder()Instantiates a builder for BatchJob. abstract BatchJob.BuildertoBuilder()Creates a builder with the same values as this instance. static BatchJobfromJson(String jsonString)Deserializes a JSON string to a BatchJob object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
displayName
abstract Optional<String> displayName()
The display name of the BatchJob.
-
error
abstract Optional<JobError> error()
Output only. Only populated when the job's state is JOB_STATE_FAILED or JOB_STATE_CANCELLED.
-
createTime
abstract Optional<Instant> createTime()
The time when the BatchJob was created.
-
startTime
abstract Optional<Instant> startTime()
Output only. Time when the Job for the first time entered the `JOB_STATE_RUNNING` state.
-
endTime
abstract Optional<Instant> endTime()
The time when the BatchJob was completed. This field is for Gemini Enterprise Agent Platform only.
-
updateTime
abstract Optional<Instant> updateTime()
The time when the BatchJob was last updated.
-
model
abstract Optional<String> model()
The name of the model that produces the predictions via the BatchJob.
-
src
abstract Optional<BatchJobSource> src()
Configuration for the input data. This field is for Gemini Enterprise Agent Platform only.
-
dest
abstract Optional<BatchJobDestination> dest()
Configuration for the output data.
-
completionStats
abstract Optional<CompletionStats> completionStats()
Statistics on completed and failed prediction instances. This field is for Gemini Enterprise Agent Platform only.
-
builder
static BatchJob.Builder builder()
Instantiates a builder for BatchJob.
-
toBuilder
abstract BatchJob.Builder toBuilder()
Creates a builder with the same values as this instance.
-
-
-
-