Class Allocation.SpecificSKUAllocation.AllocatedInstanceProperties (0.1.0)

public static final class Allocation.SpecificSKUAllocation.AllocatedInstanceProperties extends GeneratedMessageV3 implements Allocation.SpecificSKUAllocation.AllocatedInstancePropertiesOrBuilder

Properties of the SKU instances being reserved.

Protobuf type google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Allocation.SpecificSKUAllocation.AllocatedInstanceProperties

Static Fields

GUEST_ACCELERATOR_FIELD_NUMBER

public static final int GUEST_ACCELERATOR_FIELD_NUMBER
Field Value
Type Description
int

LOCAL_SSD_FIELD_NUMBER

public static final int LOCAL_SSD_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MIN_CPU_PLATFORM_FIELD_NUMBER

public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties getDefaultInstance()
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder newBuilder()
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder

newBuilder(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties prototype)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder newBuilder(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties prototype)
Parameter
Name Description
prototype Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder

parseDelimitedFrom(InputStream input)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Allocation.SpecificSKUAllocation.AllocatedInstanceProperties> parser()
Returns
Type Description
Parser<AllocatedInstanceProperties>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties getDefaultInstanceForType()
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties

getGuestAccelerator(int index)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig getGuestAccelerator(int index)

Specifies accelerator type and count.

repeated .google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig guest_accelerator = 2;

Parameter
Name Description
index int
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig

getGuestAcceleratorCount()

public int getGuestAcceleratorCount()

Specifies accelerator type and count.

repeated .google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig guest_accelerator = 2;

Returns
Type Description
int

getGuestAcceleratorList()

public List<Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig> getGuestAcceleratorList()

Specifies accelerator type and count.

repeated .google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig guest_accelerator = 2;

Returns
Type Description
List<AcceleratorConfig>

getGuestAcceleratorOrBuilder(int index)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfigOrBuilder getGuestAcceleratorOrBuilder(int index)

Specifies accelerator type and count.

repeated .google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig guest_accelerator = 2;

Parameter
Name Description
index int
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfigOrBuilder

getGuestAcceleratorOrBuilderList()

public List<? extends Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfigOrBuilder> getGuestAcceleratorOrBuilderList()

Specifies accelerator type and count.

repeated .google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig guest_accelerator = 2;

Returns
Type Description
List<? extends com.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfigOrBuilder>

getLocalSsd(int index)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk getLocalSsd(int index)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk local_ssd = 4;

Parameter
Name Description
index int
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk

getLocalSsdCount()

public int getLocalSsdCount()

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk local_ssd = 4;

Returns
Type Description
int

getLocalSsdList()

public List<Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk> getLocalSsdList()

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk local_ssd = 4;

Returns
Type Description
List<AllocatedDisk>

getLocalSsdOrBuilder(int index)

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDiskOrBuilder getLocalSsdOrBuilder(int index)

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk local_ssd = 4;

Parameter
Name Description
index int
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDiskOrBuilder

getLocalSsdOrBuilderList()

public List<? extends Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDiskOrBuilder> getLocalSsdOrBuilderList()

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

repeated .google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDisk local_ssd = 4;

Returns
Type Description
List<? extends com.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AllocatedDiskOrBuilder>

getMachineType()

public String getMachineType()

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

string machine_type = 1;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.

string machine_type = 1;

Returns
Type Description
ByteString

The bytes for machineType.

getMinCpuPlatform()

public String getMinCpuPlatform()

Minimum cpu platform the reservation.

string min_cpu_platform = 3;

Returns
Type Description
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public ByteString getMinCpuPlatformBytes()

Minimum cpu platform the reservation.

string min_cpu_platform = 3;

Returns
Type Description
ByteString

The bytes for minCpuPlatform.

getParserForType()

public Parser<Allocation.SpecificSKUAllocation.AllocatedInstanceProperties> getParserForType()
Returns
Type Description
Parser<AllocatedInstanceProperties>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder newBuilderForType()
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder toBuilder()
Returns
Type Description
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException