Class Scheduling.Builder (3.18.0)

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.v1beta1.Scheduling

Implements

SchedulingOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Scheduling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Scheduling.Builder
Overrides

build()

public Scheduling build()
Returns
TypeDescription
Scheduling

buildPartial()

public Scheduling buildPartial()
Returns
TypeDescription
Scheduling

clear()

public Scheduling.Builder clear()
Returns
TypeDescription
Scheduling.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Scheduling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Scheduling.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Scheduling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Scheduling.Builder
Overrides

clearRestartJobOnWorkerRestart()

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
TypeDescription
Scheduling.Builder

This builder for chaining.

clearTimeout()

public Scheduling.Builder clearTimeout()

The maximum job running time. The default is 7 days.

.google.protobuf.Duration timeout = 1;

Returns
TypeDescription
Scheduling.Builder

clone()

public Scheduling.Builder clone()
Returns
TypeDescription
Scheduling.Builder
Overrides

getDefaultInstanceForType()

public Scheduling getDefaultInstanceForType()
Returns
TypeDescription
Scheduling

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRestartJobOnWorkerRestart()

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
TypeDescription
boolean

The restartJobOnWorkerRestart.

getTimeout()

public Duration getTimeout()

The maximum job running time. The default is 7 days.

.google.protobuf.Duration timeout = 1;

Returns
TypeDescription
Duration

The timeout.

getTimeoutBuilder()

public Duration.Builder getTimeoutBuilder()

The maximum job running time. The default is 7 days.

.google.protobuf.Duration timeout = 1;

Returns
TypeDescription
Builder

getTimeoutOrBuilder()

public DurationOrBuilder getTimeoutOrBuilder()

The maximum job running time. The default is 7 days.

.google.protobuf.Duration timeout = 1;

Returns
TypeDescription
DurationOrBuilder

hasTimeout()

public boolean hasTimeout()

The maximum job running time. The default is 7 days.

.google.protobuf.Duration timeout = 1;

Returns
TypeDescription
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Scheduling other)

public Scheduling.Builder mergeFrom(Scheduling other)
Parameter
NameDescription
otherScheduling
Returns
TypeDescription
Scheduling.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Scheduling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Scheduling.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Scheduling.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Scheduling.Builder
Overrides

mergeTimeout(Duration value)

public Scheduling.Builder mergeTimeout(Duration value)

The maximum job running time. The default is 7 days.

.google.protobuf.Duration timeout = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Scheduling.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Scheduling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Scheduling.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Scheduling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Scheduling.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Scheduling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Scheduling.Builder
Overrides

setRestartJobOnWorkerRestart(boolean value)

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
NameDescription
valueboolean

The restartJobOnWorkerRestart to set.

Returns
TypeDescription
Scheduling.Builder

This builder for chaining.

setTimeout(Duration value)

public Scheduling.Builder setTimeout(Duration value)

The maximum job running time. The default is 7 days.

.google.protobuf.Duration timeout = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Scheduling.Builder

setTimeout(Duration.Builder builderForValue)

public Scheduling.Builder setTimeout(Duration.Builder builderForValue)

The maximum job running time. The default is 7 days.

.google.protobuf.Duration timeout = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Scheduling.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Scheduling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Scheduling.Builder
Overrides