public static final class Scheduling.Builder extends GeneratedMessageV3.Builder<Scheduling.Builder> implements SchedulingOrBuilder
All parameters related to queuing and scheduling of custom jobs.
Protobuf type google.cloud.aiplatform.v1.Scheduling
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public Scheduling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Scheduling build()
public Scheduling buildPartial()
public Scheduling.Builder clear()
Overrides
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 Scheduling.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Scheduling.Builder clearMaxWaitDuration()
Optional. This is the maximum time a user will wait in the QRM queue for
resources. Default is 1 day
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
public Scheduling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Scheduling.Builder clearRestartJobOnWorkerRestart()
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 Scheduling.Builder clearTimeout()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
public Scheduling.Builder clone()
Overrides
public Scheduling getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
Returns |
---|
Type | Description |
boolean | The disableRetries.
|
public Duration getMaxWaitDuration()
Optional. This is the maximum time a user will wait in the QRM queue for
resources. Default is 1 day
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
Duration | The maxWaitDuration.
|
public Duration.Builder getMaxWaitDurationBuilder()
Optional. This is the maximum time a user will wait in the QRM queue for
resources. Default is 1 day
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
public DurationOrBuilder getMaxWaitDurationOrBuilder()
Optional. This is the maximum time a user will wait in the QRM queue for
resources. Default is 1 day
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
public boolean getRestartJobOnWorkerRestart()
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 |
---|
Type | Description |
boolean | The restartJobOnWorkerRestart.
|
public Duration getTimeout()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
Returns |
---|
Type | Description |
Duration | The timeout.
|
public Duration.Builder getTimeoutBuilder()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
public DurationOrBuilder getTimeoutOrBuilder()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
public boolean hasMaxWaitDuration()
Optional. This is the maximum time a user will wait in the QRM queue for
resources. Default is 1 day
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
boolean | Whether the maxWaitDuration field is set.
|
public boolean hasTimeout()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
Returns |
---|
Type | Description |
boolean | Whether the timeout field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Scheduling.Builder mergeFrom(Scheduling other)
public Scheduling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Scheduling.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public Scheduling.Builder mergeMaxWaitDuration(Duration value)
Optional. This is the maximum time a user will wait in the QRM queue for
resources. Default is 1 day
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
public Scheduling.Builder mergeTimeout(Duration value)
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
public final Scheduling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public 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];
Parameter |
---|
Name | Description |
value | boolean
The disableRetries to set.
|
public Scheduling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Scheduling.Builder setMaxWaitDuration(Duration value)
Optional. This is the maximum time a user will wait in the QRM queue for
resources. Default is 1 day
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
public Scheduling.Builder setMaxWaitDuration(Duration.Builder builderForValue)
Optional. This is the maximum time a user will wait in the QRM queue for
resources. Default is 1 day
.google.protobuf.Duration max_wait_duration = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
builderForValue | Builder
|
public Scheduling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public Scheduling.Builder setRestartJobOnWorkerRestart(boolean value)
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;
Parameter |
---|
Name | Description |
value | boolean
The restartJobOnWorkerRestart to set.
|
public Scheduling.Builder setTimeout(Duration value)
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
public Scheduling.Builder setTimeout(Duration.Builder builderForValue)
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
Parameter |
---|
Name | Description |
builderForValue | Builder
|
public final Scheduling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides