Class AllocationSpecificSKUAllocationReservedInstanceProperties (1.37.0)

public final class AllocationSpecificSKUAllocationReservedInstanceProperties extends GeneratedMessageV3 implements AllocationSpecificSKUAllocationReservedInstancePropertiesOrBuilder

Properties of the SKU instances being reserved. Next ID: 9

Protobuf type google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AllocationSpecificSKUAllocationReservedInstanceProperties

Static Fields

GUEST_ACCELERATORS_FIELD_NUMBER

public static final int GUEST_ACCELERATORS_FIELD_NUMBER
Field Value
TypeDescription
int

LOCAL_SSDS_FIELD_NUMBER

public static final int LOCAL_SSDS_FIELD_NUMBER
Field Value
TypeDescription
int

LOCATION_HINT_FIELD_NUMBER

public static final int LOCATION_HINT_FIELD_NUMBER
Field Value
TypeDescription
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_CPU_PLATFORM_FIELD_NUMBER

public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AllocationSpecificSKUAllocationReservedInstanceProperties getDefaultInstance()
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties

getDescriptor()

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

newBuilder()

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

newBuilder(AllocationSpecificSKUAllocationReservedInstanceProperties prototype)

public static AllocationSpecificSKUAllocationReservedInstanceProperties.Builder newBuilder(AllocationSpecificSKUAllocationReservedInstanceProperties prototype)
Parameter
NameDescription
prototypeAllocationSpecificSKUAllocationReservedInstanceProperties
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AllocationSpecificSKUAllocationReservedInstanceProperties getDefaultInstanceForType()
Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties

getGuestAccelerators(int index)

public AcceleratorConfig getGuestAccelerators(int index)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig

getGuestAcceleratorsCount()

public int getGuestAcceleratorsCount()

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
int

getGuestAcceleratorsList()

public List<AcceleratorConfig> getGuestAcceleratorsList()

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
List<AcceleratorConfig>

getGuestAcceleratorsOrBuilder(int index)

public AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfigOrBuilder

getGuestAcceleratorsOrBuilderList()

public List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()

Specifies accelerator type and count.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.AcceleratorConfigOrBuilder>

getLocalSsds(int index)

public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk getLocalSsds(int index)

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

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk

getLocalSsdsCount()

public int getLocalSsdsCount()

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

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Returns
TypeDescription
int

getLocalSsdsList()

public List<AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk> getLocalSsdsList()

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

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Returns
TypeDescription
List<AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk>

getLocalSsdsOrBuilder(int index)

public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDiskOrBuilder getLocalSsdsOrBuilder(int index)

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

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDiskOrBuilder

getLocalSsdsOrBuilderList()

public List<? extends AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDiskOrBuilder> getLocalSsdsOrBuilderList()

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

repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDiskOrBuilder>

getLocationHint()

public String getLocationHint()

An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.

optional string location_hint = 350519505;

Returns
TypeDescription
String

The locationHint.

getLocationHintBytes()

public ByteString getLocationHintBytes()

An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.

optional string location_hint = 350519505;

Returns
TypeDescription
ByteString

The bytes for locationHint.

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.

optional string machine_type = 227711026;

Returns
TypeDescription
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.

optional string machine_type = 227711026;

Returns
TypeDescription
ByteString

The bytes for machineType.

getMinCpuPlatform()

public String getMinCpuPlatform()

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Returns
TypeDescription
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public ByteString getMinCpuPlatformBytes()

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Returns
TypeDescription
ByteString

The bytes for minCpuPlatform.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasLocationHint()

public boolean hasLocationHint()

An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.

optional string location_hint = 350519505;

Returns
TypeDescription
boolean

Whether the locationHint field is set.

hasMachineType()

public boolean hasMachineType()

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.

optional string machine_type = 227711026;

Returns
TypeDescription
boolean

Whether the machineType field is set.

hasMinCpuPlatform()

public boolean hasMinCpuPlatform()

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Returns
TypeDescription
boolean

Whether the minCpuPlatform field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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