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
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Scheduling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Scheduling build()
Returns
public Scheduling buildPartial()
Returns
public Scheduling.Builder clear()
Returns
Overrides
public Scheduling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Scheduling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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;
Returns
public Scheduling.Builder clearTimeout()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
Returns
public Scheduling.Builder clone()
Returns
Overrides
public Scheduling getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
public Duration.Builder getTimeoutBuilder()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
Returns
public DurationOrBuilder getTimeoutOrBuilder()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
Returns
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()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Scheduling.Builder mergeFrom(Scheduling other)
Parameter
Returns
public Scheduling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Scheduling.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public Scheduling.Builder mergeTimeout(Duration value)
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
Parameter
Returns
public final Scheduling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Scheduling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Scheduling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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.
|
Returns
public Scheduling.Builder setTimeout(Duration value)
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
Parameter
Returns
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
|
Returns
public final Scheduling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides