Class AllocationAggregateReservation (1.50.0)

public final class AllocationAggregateReservation extends GeneratedMessageV3 implements AllocationAggregateReservationOrBuilder

This reservation type is specified by total resource amounts (e.g. total count of CPUs) and can account for multiple instance SKUs. In other words, one can create instances of varying shapes against this reservation.

Protobuf type google.cloud.compute.v1.AllocationAggregateReservation

Inheritance

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

Static Fields

IN_USE_RESOURCES_FIELD_NUMBER

public static final int IN_USE_RESOURCES_FIELD_NUMBER
Field Value
TypeDescription
int

RESERVED_RESOURCES_FIELD_NUMBER

public static final int RESERVED_RESOURCES_FIELD_NUMBER
Field Value
TypeDescription
int

VM_FAMILY_FIELD_NUMBER

public static final int VM_FAMILY_FIELD_NUMBER
Field Value
TypeDescription
int

WORKLOAD_TYPE_FIELD_NUMBER

public static final int WORKLOAD_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AllocationAggregateReservation getDefaultInstance()
Returns
TypeDescription
AllocationAggregateReservation

getDescriptor()

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

newBuilder()

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

newBuilder(AllocationAggregateReservation prototype)

public static AllocationAggregateReservation.Builder newBuilder(AllocationAggregateReservation prototype)
Parameter
NameDescription
prototypeAllocationAggregateReservation
Returns
TypeDescription
AllocationAggregateReservation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AllocationAggregateReservation getDefaultInstanceForType()
Returns
TypeDescription
AllocationAggregateReservation

getInUseResources(int index)

public AllocationAggregateReservationReservedResourceInfo getInUseResources(int index)

[Output only] List of resources currently in use.

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationAggregateReservationReservedResourceInfo

getInUseResourcesCount()

public int getInUseResourcesCount()

[Output only] List of resources currently in use.

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;

Returns
TypeDescription
int

getInUseResourcesList()

public List<AllocationAggregateReservationReservedResourceInfo> getInUseResourcesList()

[Output only] List of resources currently in use.

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;

Returns
TypeDescription
List<AllocationAggregateReservationReservedResourceInfo>

getInUseResourcesOrBuilder(int index)

public AllocationAggregateReservationReservedResourceInfoOrBuilder getInUseResourcesOrBuilder(int index)

[Output only] List of resources currently in use.

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationAggregateReservationReservedResourceInfoOrBuilder

getInUseResourcesOrBuilderList()

public List<? extends AllocationAggregateReservationReservedResourceInfoOrBuilder> getInUseResourcesOrBuilderList()

[Output only] List of resources currently in use.

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;

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

getParserForType()

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

getReservedResources(int index)

public AllocationAggregateReservationReservedResourceInfo getReservedResources(int index)

List of reserved resources (CPUs, memory, accelerators).

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationAggregateReservationReservedResourceInfo

getReservedResourcesCount()

public int getReservedResourcesCount()

List of reserved resources (CPUs, memory, accelerators).

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;

Returns
TypeDescription
int

getReservedResourcesList()

public List<AllocationAggregateReservationReservedResourceInfo> getReservedResourcesList()

List of reserved resources (CPUs, memory, accelerators).

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;

Returns
TypeDescription
List<AllocationAggregateReservationReservedResourceInfo>

getReservedResourcesOrBuilder(int index)

public AllocationAggregateReservationReservedResourceInfoOrBuilder getReservedResourcesOrBuilder(int index)

List of reserved resources (CPUs, memory, accelerators).

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationAggregateReservationReservedResourceInfoOrBuilder

getReservedResourcesOrBuilderList()

public List<? extends AllocationAggregateReservationReservedResourceInfoOrBuilder> getReservedResourcesOrBuilderList()

List of reserved resources (CPUs, memory, accelerators).

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getVmFamily()

public String getVmFamily()

The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values.

optional string vm_family = 125017580;

Returns
TypeDescription
String

The vmFamily.

getVmFamilyBytes()

public ByteString getVmFamilyBytes()

The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values.

optional string vm_family = 125017580;

Returns
TypeDescription
ByteString

The bytes for vmFamily.

getWorkloadType()

public String getWorkloadType()

The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values.

optional string workload_type = 273432322;

Returns
TypeDescription
String

The workloadType.

getWorkloadTypeBytes()

public ByteString getWorkloadTypeBytes()

The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values.

optional string workload_type = 273432322;

Returns
TypeDescription
ByteString

The bytes for workloadType.

hasVmFamily()

public boolean hasVmFamily()

The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values.

optional string vm_family = 125017580;

Returns
TypeDescription
boolean

Whether the vmFamily field is set.

hasWorkloadType()

public boolean hasWorkloadType()

The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values.

optional string workload_type = 273432322;

Returns
TypeDescription
boolean

Whether the workloadType 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 AllocationAggregateReservation.Builder newBuilderForType()
Returns
TypeDescription
AllocationAggregateReservation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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