Class BatchJob.Builder
-
- All Implemented Interfaces:
public abstract class BatchJob.BuilderBuilder for BatchJob.
-
-
Constructor Summary
Constructors Constructor Description BatchJob.Builder()
-
Method Summary
Modifier and Type Method Description abstract BatchJob.Buildername(String name)Setter for name. BatchJob.BuilderclearName()Clears the value of name field. abstract BatchJob.BuilderdisplayName(String displayName)Setter for displayName. BatchJob.BuilderclearDisplayName()Clears the value of displayName field. abstract BatchJob.Builderstate(JobState state)Setter for state. BatchJob.BuilderclearState()Clears the value of state field. BatchJob.Builderstate(JobState.Known knownType)Setter for state given a known enum. BatchJob.Builderstate(String state)Setter for state given a string. abstract BatchJob.Buildererror(JobError error)Setter for error. BatchJob.Buildererror(JobError.Builder errorBuilder)Setter for error builder. BatchJob.BuilderclearError()Clears the value of error field. abstract BatchJob.BuildercreateTime(Instant createTime)Setter for createTime. BatchJob.BuilderclearCreateTime()Clears the value of createTime field. abstract BatchJob.BuilderstartTime(Instant startTime)Setter for startTime. BatchJob.BuilderclearStartTime()Clears the value of startTime field. abstract BatchJob.BuilderendTime(Instant endTime)Setter for endTime. BatchJob.BuilderclearEndTime()Clears the value of endTime field. abstract BatchJob.BuilderupdateTime(Instant updateTime)Setter for updateTime. BatchJob.BuilderclearUpdateTime()Clears the value of updateTime field. abstract BatchJob.Buildermodel(String model)Setter for model. BatchJob.BuilderclearModel()Clears the value of model field. abstract BatchJob.Buildersrc(BatchJobSource src)Setter for src. BatchJob.Buildersrc(BatchJobSource.Builder srcBuilder)Setter for src builder. BatchJob.BuilderclearSrc()Clears the value of src field. abstract BatchJob.Builderdest(BatchJobDestination dest)Setter for dest. BatchJob.Builderdest(BatchJobDestination.Builder destBuilder)Setter for dest builder. BatchJob.BuilderclearDest()Clears the value of dest field. abstract BatchJob.BuildercompletionStats(CompletionStats completionStats)Setter for completionStats. BatchJob.BuildercompletionStats(CompletionStats.Builder completionStatsBuilder)Setter for completionStats builder. BatchJob.BuilderclearCompletionStats()Clears the value of completionStats field. abstract BatchJobbuild()-
-
Method Detail
-
name
abstract BatchJob.Builder name(String name)
Setter for name.
name: The resource name of the BatchJob. Output only.".
-
clearName
@CanIgnoreReturnValue() BatchJob.Builder clearName()
Clears the value of name field.
-
displayName
abstract BatchJob.Builder displayName(String displayName)
Setter for displayName.
displayName: The display name of the BatchJob.
-
clearDisplayName
@CanIgnoreReturnValue() BatchJob.Builder clearDisplayName()
Clears the value of displayName field.
-
state
abstract BatchJob.Builder state(JobState state)
Setter for state.
state: The state of the BatchJob.
-
clearState
@CanIgnoreReturnValue() BatchJob.Builder clearState()
Clears the value of state field.
-
state
@CanIgnoreReturnValue() BatchJob.Builder state(JobState.Known knownType)
Setter for state given a known enum.
state: The state of the BatchJob.
-
state
@CanIgnoreReturnValue() BatchJob.Builder state(String state)
Setter for state given a string.
state: The state of the BatchJob.
-
error
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
@CanIgnoreReturnValue() 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.
-
clearError
@CanIgnoreReturnValue() BatchJob.Builder clearError()
Clears the value of error field.
-
createTime
abstract BatchJob.Builder createTime(Instant createTime)
Setter for createTime.
createTime: The time when the BatchJob was created.
-
clearCreateTime
@CanIgnoreReturnValue() BatchJob.Builder clearCreateTime()
Clears the value of createTime field.
-
startTime
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.
-
clearStartTime
@CanIgnoreReturnValue() BatchJob.Builder clearStartTime()
Clears the value of startTime field.
-
endTime
abstract BatchJob.Builder endTime(Instant endTime)
Setter for endTime.
endTime: The time when the BatchJob was completed. This field is for Gemini Enterprise Agent Platform only.
-
clearEndTime
@CanIgnoreReturnValue() BatchJob.Builder clearEndTime()
Clears the value of endTime field.
-
updateTime
abstract BatchJob.Builder updateTime(Instant updateTime)
Setter for updateTime.
updateTime: The time when the BatchJob was last updated.
-
clearUpdateTime
@CanIgnoreReturnValue() BatchJob.Builder clearUpdateTime()
Clears the value of updateTime field.
-
model
abstract BatchJob.Builder model(String model)
Setter for model.
model: The name of the model that produces the predictions via the BatchJob.
-
clearModel
@CanIgnoreReturnValue() BatchJob.Builder clearModel()
Clears the value of model field.
-
src
abstract BatchJob.Builder src(BatchJobSource src)
Setter for src.
src: Configuration for the input data. This field is for Gemini Enterprise Agent Platform only.
-
src
@CanIgnoreReturnValue() BatchJob.Builder src(BatchJobSource.Builder srcBuilder)
Setter for src builder.
src: Configuration for the input data. This field is for Gemini Enterprise Agent Platform only.
-
clearSrc
@CanIgnoreReturnValue() BatchJob.Builder clearSrc()
Clears the value of src field.
-
dest
abstract BatchJob.Builder dest(BatchJobDestination dest)
Setter for dest.
dest: Configuration for the output data.
-
dest
@CanIgnoreReturnValue() BatchJob.Builder dest(BatchJobDestination.Builder destBuilder)
Setter for dest builder.
dest: Configuration for the output data.
-
clearDest
@CanIgnoreReturnValue() BatchJob.Builder clearDest()
Clears the value of dest field.
-
completionStats
abstract BatchJob.Builder completionStats(CompletionStats completionStats)
Setter for completionStats.
completionStats: Statistics on completed and failed prediction instances. This field is for Gemini Enterprise Agent Platform only.
-
completionStats
@CanIgnoreReturnValue() BatchJob.Builder completionStats(CompletionStats.Builder completionStatsBuilder)
Setter for completionStats builder.
completionStats: Statistics on completed and failed prediction instances. This field is for Gemini Enterprise Agent Platform only.
-
clearCompletionStats
@CanIgnoreReturnValue() BatchJob.Builder clearCompletionStats()
Clears the value of completionStats field.
-
-
-
-