Class SchedulingConfig (2.20.0)

public final class SchedulingConfig extends GeneratedMessageV3 implements SchedulingConfigOrBuilder

Sets the scheduling options for this node.

Protobuf type google.cloud.tpu.v2alpha1.SchedulingConfig

Static Fields

PREEMPTIBLE_FIELD_NUMBER

public static final int PREEMPTIBLE_FIELD_NUMBER
Field Value
TypeDescription
int

RESERVED_FIELD_NUMBER

public static final int RESERVED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SchedulingConfig getDefaultInstance()
Returns
TypeDescription
SchedulingConfig

getDescriptor()

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

newBuilder()

public static SchedulingConfig.Builder newBuilder()
Returns
TypeDescription
SchedulingConfig.Builder

newBuilder(SchedulingConfig prototype)

public static SchedulingConfig.Builder newBuilder(SchedulingConfig prototype)
Parameter
NameDescription
prototypeSchedulingConfig
Returns
TypeDescription
SchedulingConfig.Builder

parseDelimitedFrom(InputStream input)

public static SchedulingConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SchedulingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SchedulingConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SchedulingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SchedulingConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SchedulingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SchedulingConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SchedulingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SchedulingConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SchedulingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SchedulingConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SchedulingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SchedulingConfig> parser()
Returns
TypeDescription
Parser<SchedulingConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SchedulingConfig getDefaultInstanceForType()
Returns
TypeDescription
SchedulingConfig

getParserForType()

public Parser<SchedulingConfig> getParserForType()
Returns
TypeDescription
Parser<SchedulingConfig>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SchedulingConfig.Builder newBuilderForType()
Returns
TypeDescription
SchedulingConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SchedulingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SchedulingConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SchedulingConfig.Builder toBuilder()
Returns
TypeDescription
SchedulingConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException