Class SpotConfig (0.38.0)

public final class SpotConfig extends GeneratedMessageV3 implements SpotConfigOrBuilder

SpotConfig has configuration info for Spot node.

Protobuf type google.cloud.gkemulticloud.v1.SpotConfig

Implements

SpotConfigOrBuilder

Static Fields

INSTANCE_TYPES_FIELD_NUMBER

public static final int INSTANCE_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SpotConfig getDefaultInstance()
Returns
TypeDescription
SpotConfig

getDescriptor()

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

newBuilder()

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

newBuilder(SpotConfig prototype)

public static SpotConfig.Builder newBuilder(SpotConfig prototype)
Parameter
NameDescription
prototypeSpotConfig
Returns
TypeDescription
SpotConfig.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SpotConfig getDefaultInstanceForType()
Returns
TypeDescription
SpotConfig

getInstanceTypes(int index)

public String getInstanceTypes(int index)

Required. A list of instance types for creating spot node pool.

repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The instanceTypes at the given index.

getInstanceTypesBytes(int index)

public ByteString getInstanceTypesBytes(int index)

Required. A list of instance types for creating spot node pool.

repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the instanceTypes at the given index.

getInstanceTypesCount()

public int getInstanceTypesCount()

Required. A list of instance types for creating spot node pool.

repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of instanceTypes.

getInstanceTypesList()

public ProtocolStringList getInstanceTypesList()

Required. A list of instance types for creating spot node pool.

repeated string instance_types = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the instanceTypes.

getParserForType()

public Parser<SpotConfig> getParserForType()
Returns
TypeDescription
Parser<SpotConfig>
Overrides

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 SpotConfig.Builder newBuilderForType()
Returns
TypeDescription
SpotConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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