Class AllocationSpecificSKUAllocationReservedInstanceProperties (1.58.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
Type Description
int

LOCAL_SSDS_FIELD_NUMBER

public static final int LOCAL_SSDS_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_HINT_FIELD_NUMBER

public static final int LOCATION_HINT_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 AllocationSpecificSKUAllocationReservedInstanceProperties getDefaultInstance()
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties

getDescriptor()

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

newBuilder()

public static AllocationSpecificSKUAllocationReservedInstanceProperties.Builder newBuilder()
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

newBuilder(AllocationSpecificSKUAllocationReservedInstanceProperties prototype)

public static AllocationSpecificSKUAllocationReservedInstanceProperties.Builder newBuilder(AllocationSpecificSKUAllocationReservedInstanceProperties prototype)
Parameter
Name Description
prototype AllocationSpecificSKUAllocationReservedInstanceProperties
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

parseDelimitedFrom(InputStream input)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AllocationSpecificSKUAllocationReservedInstanceProperties> parser()
Returns
Type Description
Parser<AllocationSpecificSKUAllocationReservedInstanceProperties>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AllocationSpecificSKUAllocationReservedInstanceProperties getDefaultInstanceForType()
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties

getGuestAccelerators(int index)

public AcceleratorConfig getGuestAccelerators(int index)

Specifies accelerator type and count.

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

Parameter
Name Description
index int
Returns
Type Description
AcceleratorConfig

getGuestAcceleratorsCount()

public int getGuestAcceleratorsCount()

Specifies accelerator type and count.

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

Returns
Type Description
int

getGuestAcceleratorsList()

public List<AcceleratorConfig> getGuestAcceleratorsList()

Specifies accelerator type and count.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
AcceleratorConfigOrBuilder

getGuestAcceleratorsOrBuilderList()

public List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()

Specifies accelerator type and count.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
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.

optional string machine_type = 227711026;

Returns
Type Description
ByteString

The bytes for machineType.

getMinCpuPlatform()

public String getMinCpuPlatform()

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Returns
Type Description
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public ByteString getMinCpuPlatformBytes()

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Returns
Type Description
ByteString

The bytes for minCpuPlatform.

getParserForType()

public Parser<AllocationSpecificSKUAllocationReservedInstanceProperties> getParserForType()
Returns
Type Description
Parser<AllocationSpecificSKUAllocationReservedInstanceProperties>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the machineType field is set.

hasMinCpuPlatform()

public boolean hasMinCpuPlatform()

Minimum cpu platform the reservation.

optional string min_cpu_platform = 242912759;

Returns
Type Description
boolean

Whether the minCpuPlatform field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AllocationSpecificSKUAllocationReservedInstanceProperties.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder toBuilder()
Returns
Type Description
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

writeTo(CodedOutputStream output)

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