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
Static Fields
GUEST_ACCELERATORS_FIELD_NUMBER
public static final int GUEST_ACCELERATORS_FIELD_NUMBER
Field Value
LOCAL_SSDS_FIELD_NUMBER
public static final int LOCAL_SSDS_FIELD_NUMBER
Field Value
LOCATION_HINT_FIELD_NUMBER
public static final int LOCATION_HINT_FIELD_NUMBER
Field Value
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AllocationSpecificSKUAllocationReservedInstanceProperties getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AllocationSpecificSKUAllocationReservedInstanceProperties.Builder newBuilder()
Returns
newBuilder(AllocationSpecificSKUAllocationReservedInstanceProperties prototype)
public static AllocationSpecificSKUAllocationReservedInstanceProperties.Builder newBuilder(AllocationSpecificSKUAllocationReservedInstanceProperties prototype)
Parameter
Returns
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AllocationSpecificSKUAllocationReservedInstanceProperties parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AllocationSpecificSKUAllocationReservedInstanceProperties> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AllocationSpecificSKUAllocationReservedInstanceProperties getDefaultInstanceForType()
Returns
getGuestAccelerators(int index)
public AcceleratorConfig getGuestAccelerators(int index)
Specifies accelerator type and count.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
Parameter
Returns
getGuestAcceleratorsCount()
public int getGuestAcceleratorsCount()
Specifies accelerator type and count.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
Returns
getGuestAcceleratorsList()
public List<AcceleratorConfig> getGuestAcceleratorsList()
Specifies accelerator type and count.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
Returns
getGuestAcceleratorsOrBuilder(int index)
public AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)
Specifies accelerator type and count.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
Parameter
Returns
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
Returns
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
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
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
Returns
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.
|
public String getMinCpuPlatform()
Minimum cpu platform the reservation.
optional string min_cpu_platform = 242912759;
Returns
Type | Description |
String | The minCpuPlatform.
|
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
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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.
|
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AllocationSpecificSKUAllocationReservedInstanceProperties.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions