Class AllocationAggregateReservation.Builder (1.65.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo>
Returns
Type Description
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
Name Description
value AllocationAggregateReservationReservedResourceInfo
Returns
Type Description
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
Name Description
builderForValue AllocationAggregateReservationReservedResourceInfo.Builder
Returns
Type Description
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
Name Description
index int
value AllocationAggregateReservationReservedResourceInfo
Returns
Type Description
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
Name Description
index int
builderForValue AllocationAggregateReservationReservedResourceInfo.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
AllocationAggregateReservationReservedResourceInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AllocationAggregateReservation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value AllocationAggregateReservationReservedResourceInfo
Returns
Type Description
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
Name Description
builderForValue AllocationAggregateReservationReservedResourceInfo.Builder
Returns
Type Description
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
Name Description
index int
value AllocationAggregateReservationReservedResourceInfo
Returns
Type Description
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
Name Description
index int
builderForValue AllocationAggregateReservationReservedResourceInfo.Builder
Returns
Type Description
AllocationAggregateReservation.Builder

addReservedResourcesBuilder()

public AllocationAggregateReservationReservedResourceInfo.Builder addReservedResourcesBuilder()

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

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

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

build()

public AllocationAggregateReservation build()
Returns
Type Description
AllocationAggregateReservation

buildPartial()

public AllocationAggregateReservation buildPartial()
Returns
Type Description
AllocationAggregateReservation

clear()

public AllocationAggregateReservation.Builder clear()
Returns
Type Description
AllocationAggregateReservation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AllocationAggregateReservation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
AllocationAggregateReservation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AllocationAggregateReservation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
AllocationAggregateReservation.Builder

This builder for chaining.

clone()

public AllocationAggregateReservation.Builder clone()
Returns
Type Description
AllocationAggregateReservation.Builder
Overrides

getDefaultInstanceForType()

public AllocationAggregateReservation getDefaultInstanceForType()
Returns
Type Description
AllocationAggregateReservation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<Builder>

getReservedResourcesCount()

public int getReservedResourcesCount()

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

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

Returns
Type Description
int

getReservedResourcesList()

public List<AllocationAggregateReservationReservedResourceInfo> getReservedResourcesList()

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

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

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

getReservedResourcesOrBuilderList()

public List<? extends AllocationAggregateReservationReservedResourceInfoOrBuilder> getReservedResourcesOrBuilderList()

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

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the workloadType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AllocationAggregateReservation other)

public AllocationAggregateReservation.Builder mergeFrom(AllocationAggregateReservation other)
Parameter
Name Description
other AllocationAggregateReservation
Returns
Type Description
AllocationAggregateReservation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AllocationAggregateReservation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationAggregateReservation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AllocationAggregateReservation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AllocationAggregateReservation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocationAggregateReservation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
AllocationAggregateReservation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AllocationAggregateReservation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value AllocationAggregateReservationReservedResourceInfo
Returns
Type Description
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
Name Description
index int
builderForValue AllocationAggregateReservationReservedResourceInfo.Builder
Returns
Type Description
AllocationAggregateReservation.Builder

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

public AllocationAggregateReservation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int
value AllocationAggregateReservationReservedResourceInfo
Returns
Type Description
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
Name Description
index int
builderForValue AllocationAggregateReservationReservedResourceInfo.Builder
Returns
Type Description
AllocationAggregateReservation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocationAggregateReservation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The vmFamily to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for vmFamily to set.

Returns
Type Description
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
Name Description
value String

The workloadType to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for workloadType to set.

Returns
Type Description
AllocationAggregateReservation.Builder

This builder for chaining.