Class SchedulingConfig.Builder (2.7.0)

public static final class SchedulingConfig.Builder extends GeneratedMessageV3.Builder<SchedulingConfig.Builder> implements SchedulingConfigOrBuilder

Sets the scheduling options for this node.

Protobuf type google.cloud.tpu.v2alpha1.SchedulingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SchedulingConfig build()
Returns
TypeDescription
SchedulingConfig

buildPartial()

public SchedulingConfig buildPartial()
Returns
TypeDescription
SchedulingConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreemptible()

public SchedulingConfig.Builder clearPreemptible()

Defines whether the node is preemptible.

bool preemptible = 1;

Returns
TypeDescription
SchedulingConfig.Builder

This builder for chaining.

clearReserved()

public SchedulingConfig.Builder clearReserved()

Whether the node is created under a reservation.

bool reserved = 2;

Returns
TypeDescription
SchedulingConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SchedulingConfig getDefaultInstanceForType()
Returns
TypeDescription
SchedulingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPreemptible()

public boolean getPreemptible()

Defines whether the node is preemptible.

bool preemptible = 1;

Returns
TypeDescription
boolean

The preemptible.

getReserved()

public boolean getReserved()

Whether the node is created under a reservation.

bool reserved = 2;

Returns
TypeDescription
boolean

The reserved.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SchedulingConfig other)

public SchedulingConfig.Builder mergeFrom(SchedulingConfig other)
Parameter
NameDescription
otherSchedulingConfig
Returns
TypeDescription
SchedulingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPreemptible(boolean value)

public SchedulingConfig.Builder setPreemptible(boolean value)

Defines whether the node is preemptible.

bool preemptible = 1;

Parameter
NameDescription
valueboolean

The preemptible to set.

Returns
TypeDescription
SchedulingConfig.Builder

This builder for chaining.

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

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

setReserved(boolean value)

public SchedulingConfig.Builder setReserved(boolean value)

Whether the node is created under a reservation.

bool reserved = 2;

Parameter
NameDescription
valueboolean

The reserved to set.

Returns
TypeDescription
SchedulingConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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