- 1.65.0 (latest)
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AllocationAggregateReservation.BuilderImplements
AllocationAggregateReservationOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public AllocationAggregateReservation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
AllocationAggregateReservation.Builder |
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 |
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 |
getDefaultInstanceForType()
public AllocationAggregateReservation getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AllocationAggregateReservation |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AllocationAggregateReservation.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
AllocationAggregateReservation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationAggregateReservation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AllocationAggregateReservation.Builder |
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 |
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 |
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 |
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. |