public static final class Scheduling.Builder extends com.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder> implements SchedulingOrBuilder
All parameters related to queuing and scheduling of custom jobs.Protobuf type
google.cloud.aiplatform.v1.Scheduling| Modifier and Type | Method and Description |
|---|---|
Scheduling |
build() |
Scheduling |
buildPartial() |
Scheduling.Builder |
clear() |
Scheduling.Builder |
clearDisableRetries()
Optional.
|
Scheduling.Builder |
clearMaxWaitDuration()
Optional.
|
Scheduling.Builder |
clearRestartJobOnWorkerRestart()
Optional.
|
Scheduling.Builder |
clearStrategy()
Optional.
|
Scheduling.Builder |
clearTimeout()
Optional.
|
Scheduling |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisableRetries()
Optional.
|
com.google.protobuf.Duration |
getMaxWaitDuration()
Optional.
|
com.google.protobuf.Duration.Builder |
getMaxWaitDurationBuilder()
Optional.
|
com.google.protobuf.DurationOrBuilder |
getMaxWaitDurationOrBuilder()
Optional.
|
boolean |
getRestartJobOnWorkerRestart()
Optional.
|
Scheduling.Strategy |
getStrategy()
Optional.
|
int |
getStrategyValue()
Optional.
|
com.google.protobuf.Duration |
getTimeout()
Optional.
|
com.google.protobuf.Duration.Builder |
getTimeoutBuilder()
Optional.
|
com.google.protobuf.DurationOrBuilder |
getTimeoutOrBuilder()
Optional.
|
boolean |
hasMaxWaitDuration()
Optional.
|
boolean |
hasTimeout()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Scheduling.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Scheduling.Builder |
mergeFrom(com.google.protobuf.Message other) |
Scheduling.Builder |
mergeFrom(Scheduling other) |
Scheduling.Builder |
mergeMaxWaitDuration(com.google.protobuf.Duration value)
Optional.
|
Scheduling.Builder |
mergeTimeout(com.google.protobuf.Duration value)
Optional.
|
Scheduling.Builder |
setDisableRetries(boolean value)
Optional.
|
Scheduling.Builder |
setMaxWaitDuration(com.google.protobuf.Duration.Builder builderForValue)
Optional.
|
Scheduling.Builder |
setMaxWaitDuration(com.google.protobuf.Duration value)
Optional.
|
Scheduling.Builder |
setRestartJobOnWorkerRestart(boolean value)
Optional.
|
Scheduling.Builder |
setStrategy(Scheduling.Strategy value)
Optional.
|
Scheduling.Builder |
setStrategyValue(int value)
Optional.
|
Scheduling.Builder |
setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Optional.
|
Scheduling.Builder |
setTimeout(com.google.protobuf.Duration value)
Optional.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>public Scheduling.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>public Scheduling getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Scheduling build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Scheduling buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Scheduling.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>public Scheduling.Builder mergeFrom(Scheduling other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>public Scheduling.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>IOExceptionpublic boolean hasTimeout()
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;hasTimeout in interface SchedulingOrBuilderpublic com.google.protobuf.Duration getTimeout()
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;getTimeout in interface SchedulingOrBuilderpublic Scheduling.Builder setTimeout(com.google.protobuf.Duration value)
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;public Scheduling.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;public Scheduling.Builder mergeTimeout(com.google.protobuf.Duration value)
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;public Scheduling.Builder clearTimeout()
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;public com.google.protobuf.Duration.Builder getTimeoutBuilder()
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;getTimeoutOrBuilder in interface SchedulingOrBuilderpublic boolean getRestartJobOnWorkerRestart()
Optional. Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.
bool restart_job_on_worker_restart = 3;getRestartJobOnWorkerRestart in interface SchedulingOrBuilderpublic Scheduling.Builder setRestartJobOnWorkerRestart(boolean value)
Optional. Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.
bool restart_job_on_worker_restart = 3;value - The restartJobOnWorkerRestart to set.public Scheduling.Builder clearRestartJobOnWorkerRestart()
Optional. Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.
bool restart_job_on_worker_restart = 3;public int getStrategyValue()
Optional. This determines which type of scheduling strategy to use.
.google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL];
getStrategyValue in interface SchedulingOrBuilderpublic Scheduling.Builder setStrategyValue(int value)
Optional. This determines which type of scheduling strategy to use.
.google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for strategy to set.public Scheduling.Strategy getStrategy()
Optional. This determines which type of scheduling strategy to use.
.google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL];
getStrategy in interface SchedulingOrBuilderpublic Scheduling.Builder setStrategy(Scheduling.Strategy value)
Optional. This determines which type of scheduling strategy to use.
.google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL];
value - The strategy to set.public Scheduling.Builder clearStrategy()
Optional. This determines which type of scheduling strategy to use.
.google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL];
public boolean getDisableRetries()
Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false.
bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL];getDisableRetries in interface SchedulingOrBuilderpublic Scheduling.Builder setDisableRetries(boolean value)
Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false.
bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL];value - The disableRetries to set.public Scheduling.Builder clearDisableRetries()
Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false.
bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL];public boolean hasMaxWaitDuration()
Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
hasMaxWaitDuration in interface SchedulingOrBuilderpublic com.google.protobuf.Duration getMaxWaitDuration()
Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
getMaxWaitDuration in interface SchedulingOrBuilderpublic Scheduling.Builder setMaxWaitDuration(com.google.protobuf.Duration value)
Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
public Scheduling.Builder setMaxWaitDuration(com.google.protobuf.Duration.Builder builderForValue)
Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
public Scheduling.Builder mergeMaxWaitDuration(com.google.protobuf.Duration value)
Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
public Scheduling.Builder clearMaxWaitDuration()
Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.Duration.Builder getMaxWaitDurationBuilder()
Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.DurationOrBuilder getMaxWaitDurationOrBuilder()
Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
getMaxWaitDurationOrBuilder in interface SchedulingOrBuilderCopyright © 2026 Google LLC. All rights reserved.