Class AllocationAggregateReservation.Builder (1.47.0)

public static final class AllocationAggregateReservation.Builder extends GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder> 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

Static Methods

getDescriptor()

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

Methods

addAllInUseResources(Iterable<? extends AllocationAggregateReservationReservedResourceInfo> values)

public AllocationAggregateReservation.Builder addAllInUseResources(Iterable<? extends AllocationAggregateReservationReservedResourceInfo> values)

[Output only] List of resources currently in use.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo>
Returns
TypeDescription
AllocationAggregateReservation.Builder

addAllReservedResources(Iterable<? extends AllocationAggregateReservationReservedResourceInfo> values)

public AllocationAggregateReservation.Builder addAllReservedResources(Iterable<? extends AllocationAggregateReservationReservedResourceInfo> values)

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

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo>
Returns
TypeDescription
AllocationAggregateReservation.Builder

addInUseResources(AllocationAggregateReservationReservedResourceInfo value)

public AllocationAggregateReservation.Builder addInUseResources(AllocationAggregateReservationReservedResourceInfo value)

[Output only] List of resources currently in use.

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

Parameter
NameDescription
valueAllocationAggregateReservationReservedResourceInfo
Returns
TypeDescription
AllocationAggregateReservation.Builder

addInUseResources(AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

public AllocationAggregateReservation.Builder addInUseResources(AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

[Output only] List of resources currently in use.

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

Parameter
NameDescription
builderForValueAllocationAggregateReservationReservedResourceInfo.Builder
Returns
TypeDescription
AllocationAggregateReservation.Builder

addInUseResources(int index, AllocationAggregateReservationReservedResourceInfo value)

public AllocationAggregateReservation.Builder addInUseResources(int index, AllocationAggregateReservationReservedResourceInfo value)

[Output only] List of resources currently in use.

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

Parameters
NameDescription
indexint
valueAllocationAggregateReservationReservedResourceInfo
Returns
TypeDescription
AllocationAggregateReservation.Builder

addInUseResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

public AllocationAggregateReservation.Builder addInUseResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

[Output only] List of resources currently in use.

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

Parameters
NameDescription
indexint
builderForValueAllocationAggregateReservationReservedResourceInfo.Builder
Returns
TypeDescription
AllocationAggregateReservation.Builder

addInUseResourcesBuilder()

public AllocationAggregateReservationReservedResourceInfo.Builder addInUseResourcesBuilder()

[Output only] List of resources currently in use.

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

Returns
TypeDescription
AllocationAggregateReservationReservedResourceInfo.Builder

addInUseResourcesBuilder(int index)

public AllocationAggregateReservationReservedResourceInfo.Builder addInUseResourcesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AllocationAggregateReservation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides

addReservedResources(AllocationAggregateReservationReservedResourceInfo value)

public AllocationAggregateReservation.Builder addReservedResources(AllocationAggregateReservationReservedResourceInfo value)

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

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

Parameter
NameDescription
valueAllocationAggregateReservationReservedResourceInfo
Returns
TypeDescription
AllocationAggregateReservation.Builder

addReservedResources(AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

public AllocationAggregateReservation.Builder addReservedResources(AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueAllocationAggregateReservationReservedResourceInfo.Builder
Returns
TypeDescription
AllocationAggregateReservation.Builder

addReservedResources(int index, AllocationAggregateReservationReservedResourceInfo value)

public AllocationAggregateReservation.Builder addReservedResources(int index, AllocationAggregateReservationReservedResourceInfo value)

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

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

Parameters
NameDescription
indexint
valueAllocationAggregateReservationReservedResourceInfo
Returns
TypeDescription
AllocationAggregateReservation.Builder

addReservedResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

public AllocationAggregateReservation.Builder addReservedResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

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

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

Parameters
NameDescription
indexint
builderForValueAllocationAggregateReservationReservedResourceInfo.Builder
Returns
TypeDescription
AllocationAggregateReservation.Builder

addReservedResourcesBuilder()

public AllocationAggregateReservationReservedResourceInfo.Builder addReservedResourcesBuilder()

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

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

Returns
TypeDescription
AllocationAggregateReservationReservedResourceInfo.Builder

addReservedResourcesBuilder(int index)

public AllocationAggregateReservationReservedResourceInfo.Builder addReservedResourcesBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationAggregateReservationReservedResourceInfo.Builder

build()

public AllocationAggregateReservation build()
Returns
TypeDescription
AllocationAggregateReservation

buildPartial()

public AllocationAggregateReservation buildPartial()
Returns
TypeDescription
AllocationAggregateReservation

clear()

public AllocationAggregateReservation.Builder clear()
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AllocationAggregateReservation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides

clearInUseResources()

public AllocationAggregateReservation.Builder clearInUseResources()

[Output only] List of resources currently in use.

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

Returns
TypeDescription
AllocationAggregateReservation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AllocationAggregateReservation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides

clearReservedResources()

public AllocationAggregateReservation.Builder clearReservedResources()

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

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

Returns
TypeDescription
AllocationAggregateReservation.Builder

clearVmFamily()

public AllocationAggregateReservation.Builder clearVmFamily()

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
AllocationAggregateReservation.Builder

This builder for chaining.

clearWorkloadType()

public AllocationAggregateReservation.Builder clearWorkloadType()

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
AllocationAggregateReservation.Builder

This builder for chaining.

clone()

public AllocationAggregateReservation.Builder clone()
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides

getDefaultInstanceForType()

public AllocationAggregateReservation getDefaultInstanceForType()
Returns
TypeDescription
AllocationAggregateReservation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

getInUseResourcesBuilder(int index)

public AllocationAggregateReservationReservedResourceInfo.Builder getInUseResourcesBuilder(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.Builder

getInUseResourcesBuilderList()

public List<AllocationAggregateReservationReservedResourceInfo.Builder> getInUseResourcesBuilderList()

[Output only] List of resources currently in use.

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

Returns
TypeDescription
List<Builder>

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>

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

getReservedResourcesBuilder(int index)

public AllocationAggregateReservationReservedResourceInfo.Builder getReservedResourcesBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationAggregateReservationReservedResourceInfo.Builder

getReservedResourcesBuilderList()

public List<AllocationAggregateReservationReservedResourceInfo.Builder> getReservedResourcesBuilderList()

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

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

Returns
TypeDescription
List<Builder>

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>

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AllocationAggregateReservation other)

public AllocationAggregateReservation.Builder mergeFrom(AllocationAggregateReservation other)
Parameter
NameDescription
otherAllocationAggregateReservation
Returns
TypeDescription
AllocationAggregateReservation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AllocationAggregateReservation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AllocationAggregateReservation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocationAggregateReservation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides

removeInUseResources(int index)

public AllocationAggregateReservation.Builder removeInUseResources(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
AllocationAggregateReservation.Builder

removeReservedResources(int index)

public AllocationAggregateReservation.Builder removeReservedResources(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationAggregateReservation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AllocationAggregateReservation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides

setInUseResources(int index, AllocationAggregateReservationReservedResourceInfo value)

public AllocationAggregateReservation.Builder setInUseResources(int index, AllocationAggregateReservationReservedResourceInfo value)

[Output only] List of resources currently in use.

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

Parameters
NameDescription
indexint
valueAllocationAggregateReservationReservedResourceInfo
Returns
TypeDescription
AllocationAggregateReservation.Builder

setInUseResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

public AllocationAggregateReservation.Builder setInUseResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

[Output only] List of resources currently in use.

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

Parameters
NameDescription
indexint
builderForValueAllocationAggregateReservationReservedResourceInfo.Builder
Returns
TypeDescription
AllocationAggregateReservation.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AllocationAggregateReservation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides

setReservedResources(int index, AllocationAggregateReservationReservedResourceInfo value)

public AllocationAggregateReservation.Builder setReservedResources(int index, AllocationAggregateReservationReservedResourceInfo value)

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

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

Parameters
NameDescription
indexint
valueAllocationAggregateReservationReservedResourceInfo
Returns
TypeDescription
AllocationAggregateReservation.Builder

setReservedResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

public AllocationAggregateReservation.Builder setReservedResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)

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

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

Parameters
NameDescription
indexint
builderForValueAllocationAggregateReservationReservedResourceInfo.Builder
Returns
TypeDescription
AllocationAggregateReservation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocationAggregateReservation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocationAggregateReservation.Builder
Overrides

setVmFamily(String value)

public AllocationAggregateReservation.Builder setVmFamily(String value)

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;

Parameter
NameDescription
valueString

The vmFamily to set.

Returns
TypeDescription
AllocationAggregateReservation.Builder

This builder for chaining.

setVmFamilyBytes(ByteString value)

public AllocationAggregateReservation.Builder setVmFamilyBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for vmFamily to set.

Returns
TypeDescription
AllocationAggregateReservation.Builder

This builder for chaining.

setWorkloadType(String value)

public AllocationAggregateReservation.Builder setWorkloadType(String value)

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;

Parameter
NameDescription
valueString

The workloadType to set.

Returns
TypeDescription
AllocationAggregateReservation.Builder

This builder for chaining.

setWorkloadTypeBytes(ByteString value)

public AllocationAggregateReservation.Builder setWorkloadTypeBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for workloadType to set.

Returns
TypeDescription
AllocationAggregateReservation.Builder

This builder for chaining.