Package com.google.cloud.aiplatform.v1
Class Scheduling.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
com.google.cloud.aiplatform.v1.Scheduling.Builder
- All Implemented Interfaces:
SchedulingOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Scheduling
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.booleanOptional.Optional.intOptional.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Scheduling other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxWaitDuration(com.google.protobuf.Duration value) Optional.mergeTimeout(com.google.protobuf.Duration value) Optional.setDisableRetries(boolean value) Optional.setMaxWaitDuration(com.google.protobuf.Duration value) Optional.setMaxWaitDuration(com.google.protobuf.Duration.Builder builderForValue) Optional.setRestartJobOnWorkerRestart(boolean value) Optional.setStrategy(Scheduling.Strategy value) Optional.setStrategyValue(int value) Optional.setTimeout(com.google.protobuf.Duration value) Optional.setTimeout(com.google.protobuf.Duration.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Scheduling.Builder>
-
mergeFrom
public Scheduling.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Scheduling.Builder>- Throws:
IOException
-
hasTimeout
public boolean hasTimeout()Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;- Specified by:
hasTimeoutin interfaceSchedulingOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;- Specified by:
getTimeoutin interfaceSchedulingOrBuilder- Returns:
- The timeout.
-
setTimeout
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1; -
setTimeout
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1; -
mergeTimeout
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1; -
clearTimeout
Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1; -
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1; -
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()Optional. The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;- Specified by:
getTimeoutOrBuilderin interfaceSchedulingOrBuilder
-
getRestartJobOnWorkerRestart
public 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;- Specified by:
getRestartJobOnWorkerRestartin interfaceSchedulingOrBuilder- Returns:
- The restartJobOnWorkerRestart.
-
setRestartJobOnWorkerRestart
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;- Parameters:
value- The restartJobOnWorkerRestart to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getStrategyValue
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];- Specified by:
getStrategyValuein interfaceSchedulingOrBuilder- Returns:
- The enum numeric value on the wire for strategy.
-
setStrategyValue
Optional. This determines which type of scheduling strategy to use.
.google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for strategy to set.- Returns:
- This builder for chaining.
-
getStrategy
Optional. This determines which type of scheduling strategy to use.
.google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStrategyin interfaceSchedulingOrBuilder- Returns:
- The strategy.
-
setStrategy
Optional. This determines which type of scheduling strategy to use.
.google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The strategy to set.- Returns:
- This builder for chaining.
-
clearStrategy
Optional. This determines which type of scheduling strategy to use.
.google.cloud.aiplatform.v1.Scheduling.Strategy strategy = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getDisableRetries
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];- Specified by:
getDisableRetriesin interfaceSchedulingOrBuilder- Returns:
- The disableRetries.
-
setDisableRetries
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];- Parameters:
value- The disableRetries to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
hasMaxWaitDuration
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];- Specified by:
hasMaxWaitDurationin interfaceSchedulingOrBuilder- Returns:
- Whether the maxWaitDuration field is set.
-
getMaxWaitDuration
public 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];- Specified by:
getMaxWaitDurationin interfaceSchedulingOrBuilder- Returns:
- The maxWaitDuration.
-
setMaxWaitDuration
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]; -
setMaxWaitDuration
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]; -
mergeMaxWaitDuration
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]; -
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]; -
getMaxWaitDurationBuilder
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]; -
getMaxWaitDurationOrBuilder
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];- Specified by:
getMaxWaitDurationOrBuilderin interfaceSchedulingOrBuilder
-