public static final class AllocationPolicy.InstanceSelection.Builder extends GeneratedMessage.Builder<AllocationPolicy.InstanceSelection.Builder> implements AllocationPolicy.InstanceSelectionOrBuilderDefines an instance selection for a given instance flexibility policy.
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AllocationPolicy.InstanceSelection.BuilderImplements
AllocationPolicy.InstanceSelectionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDisks(Iterable<? extends AllocationPolicy.AttachedDisk> values)
public AllocationPolicy.InstanceSelection.Builder addAllDisks(Iterable<? extends AllocationPolicy.AttachedDisk> values)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk> |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
addAllMachineTypes(Iterable<String> values)
public AllocationPolicy.InstanceSelection.Builder addAllMachineTypes(Iterable<String> values) Required. The Compute Engine machine type IDs.
Only the machine type ID is supported, such as n1-standard-16.
Full or partial URLs are not accepted.
The total maximum number of machine types across all instance selections
is 200. Exceeding this limit results in a validation error with code
INVALID_ARGUMENT.
repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The machineTypes to add. |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
This builder for chaining. |
addDisks(AllocationPolicy.AttachedDisk value)
public AllocationPolicy.InstanceSelection.Builder addDisks(AllocationPolicy.AttachedDisk value)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AllocationPolicy.AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
addDisks(AllocationPolicy.AttachedDisk.Builder builderForValue)
public AllocationPolicy.InstanceSelection.Builder addDisks(AllocationPolicy.AttachedDisk.Builder builderForValue)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AllocationPolicy.AttachedDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
addDisks(int index, AllocationPolicy.AttachedDisk value)
public AllocationPolicy.InstanceSelection.Builder addDisks(int index, AllocationPolicy.AttachedDisk value)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AllocationPolicy.AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
addDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)
public AllocationPolicy.InstanceSelection.Builder addDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AllocationPolicy.AttachedDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
addDisksBuilder()
public AllocationPolicy.AttachedDisk.Builder addDisksBuilder()Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.AttachedDisk.Builder |
|
addDisksBuilder(int index)
public AllocationPolicy.AttachedDisk.Builder addDisksBuilder(int index)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.AttachedDisk.Builder |
|
addMachineTypes(String value)
public AllocationPolicy.InstanceSelection.Builder addMachineTypes(String value) Required. The Compute Engine machine type IDs.
Only the machine type ID is supported, such as n1-standard-16.
Full or partial URLs are not accepted.
The total maximum number of machine types across all instance selections
is 200. Exceeding this limit results in a validation error with code
INVALID_ARGUMENT.
repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineTypes to add. |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
This builder for chaining. |
addMachineTypesBytes(ByteString value)
public AllocationPolicy.InstanceSelection.Builder addMachineTypesBytes(ByteString value) Required. The Compute Engine machine type IDs.
Only the machine type ID is supported, such as n1-standard-16.
Full or partial URLs are not accepted.
The total maximum number of machine types across all instance selections
is 200. Exceeding this limit results in a validation error with code
INVALID_ARGUMENT.
repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the machineTypes to add. |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
This builder for chaining. |
build()
public AllocationPolicy.InstanceSelection build()| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection |
|
buildPartial()
public AllocationPolicy.InstanceSelection buildPartial()| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection |
|
clear()
public AllocationPolicy.InstanceSelection.Builder clear()| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
clearBootDisk()
public AllocationPolicy.InstanceSelection.Builder clearBootDisk() Optional. Boot disk to be created and attached to instances created from
this selection. It overrides the boot disk specified in the instance
properties.
(e.g., overriding boot disk type to Hyperdisk for 4th-gen machine
types)
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
clearDisks()
public AllocationPolicy.InstanceSelection.Builder clearDisks()Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
clearMachineTypes()
public AllocationPolicy.InstanceSelection.Builder clearMachineTypes() Required. The Compute Engine machine type IDs.
Only the machine type ID is supported, such as n1-standard-16.
Full or partial URLs are not accepted.
The total maximum number of machine types across all instance selections
is 200. Exceeding this limit results in a validation error with code
INVALID_ARGUMENT.
repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
This builder for chaining. |
clearRank()
public AllocationPolicy.InstanceSelection.Builder clearRank()Optional. Indicates the preference of this instance selection. Lower number means higher preference. First try is to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.
optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
This builder for chaining. |
getBootDisk()
public AllocationPolicy.Disk getBootDisk() Optional. Boot disk to be created and attached to instances created from
this selection. It overrides the boot disk specified in the instance
properties.
(e.g., overriding boot disk type to Hyperdisk for 4th-gen machine
types)
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.Disk |
The bootDisk. |
getBootDiskBuilder()
public AllocationPolicy.Disk.Builder getBootDiskBuilder() Optional. Boot disk to be created and attached to instances created from
this selection. It overrides the boot disk specified in the instance
properties.
(e.g., overriding boot disk type to Hyperdisk for 4th-gen machine
types)
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.Disk.Builder |
|
getBootDiskOrBuilder()
public AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder() Optional. Boot disk to be created and attached to instances created from
this selection. It overrides the boot disk specified in the instance
properties.
(e.g., overriding boot disk type to Hyperdisk for 4th-gen machine
types)
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.DiskOrBuilder |
|
getDefaultInstanceForType()
public AllocationPolicy.InstanceSelection getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisks(int index)
public AllocationPolicy.AttachedDisk getDisks(int index)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.AttachedDisk |
|
getDisksBuilder(int index)
public AllocationPolicy.AttachedDisk.Builder getDisksBuilder(int index)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.AttachedDisk.Builder |
|
getDisksBuilderList()
public List<AllocationPolicy.AttachedDisk.Builder> getDisksBuilderList()Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getDisksCount()
public int getDisksCount()Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getDisksList()
public List<AllocationPolicy.AttachedDisk> getDisksList()Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<AttachedDisk> |
|
getDisksOrBuilder(int index)
public AllocationPolicy.AttachedDiskOrBuilder getDisksOrBuilder(int index)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.AttachedDiskOrBuilder |
|
getDisksOrBuilderList()
public List<? extends AllocationPolicy.AttachedDiskOrBuilder> getDisksOrBuilderList()Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder> |
|
getMachineTypes(int index)
public String getMachineTypes(int index) Required. The Compute Engine machine type IDs.
Only the machine type ID is supported, such as n1-standard-16.
Full or partial URLs are not accepted.
The total maximum number of machine types across all instance selections
is 200. Exceeding this limit results in a validation error with code
INVALID_ARGUMENT.
repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The machineTypes at the given index. |
getMachineTypesBytes(int index)
public ByteString getMachineTypesBytes(int index) Required. The Compute Engine machine type IDs.
Only the machine type ID is supported, such as n1-standard-16.
Full or partial URLs are not accepted.
The total maximum number of machine types across all instance selections
is 200. Exceeding this limit results in a validation error with code
INVALID_ARGUMENT.
repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the machineTypes at the given index. |
getMachineTypesCount()
public int getMachineTypesCount() Required. The Compute Engine machine type IDs.
Only the machine type ID is supported, such as n1-standard-16.
Full or partial URLs are not accepted.
The total maximum number of machine types across all instance selections
is 200. Exceeding this limit results in a validation error with code
INVALID_ARGUMENT.
repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of machineTypes. |
getMachineTypesList()
public ProtocolStringList getMachineTypesList() Required. The Compute Engine machine type IDs.
Only the machine type ID is supported, such as n1-standard-16.
Full or partial URLs are not accepted.
The total maximum number of machine types across all instance selections
is 200. Exceeding this limit results in a validation error with code
INVALID_ARGUMENT.
repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the machineTypes. |
getRank()
public int getRank()Optional. Indicates the preference of this instance selection. Lower number means higher preference. First try is to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.
optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The rank. |
hasBootDisk()
public boolean hasBootDisk() Optional. Boot disk to be created and attached to instances created from
this selection. It overrides the boot disk specified in the instance
properties.
(e.g., overriding boot disk type to Hyperdisk for 4th-gen machine
types)
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the bootDisk field is set. |
hasRank()
public boolean hasRank()Optional. Indicates the preference of this instance selection. Lower number means higher preference. First try is to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.
optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the rank field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBootDisk(AllocationPolicy.Disk value)
public AllocationPolicy.InstanceSelection.Builder mergeBootDisk(AllocationPolicy.Disk value) Optional. Boot disk to be created and attached to instances created from
this selection. It overrides the boot disk specified in the instance
properties.
(e.g., overriding boot disk type to Hyperdisk for 4th-gen machine
types)
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AllocationPolicy.Disk |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
mergeFrom(AllocationPolicy.InstanceSelection other)
public AllocationPolicy.InstanceSelection.Builder mergeFrom(AllocationPolicy.InstanceSelection other)| Parameter | |
|---|---|
| Name | Description |
other |
AllocationPolicy.InstanceSelection |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AllocationPolicy.InstanceSelection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AllocationPolicy.InstanceSelection.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
removeDisks(int index)
public AllocationPolicy.InstanceSelection.Builder removeDisks(int index)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
setBootDisk(AllocationPolicy.Disk value)
public AllocationPolicy.InstanceSelection.Builder setBootDisk(AllocationPolicy.Disk value) Optional. Boot disk to be created and attached to instances created from
this selection. It overrides the boot disk specified in the instance
properties.
(e.g., overriding boot disk type to Hyperdisk for 4th-gen machine
types)
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AllocationPolicy.Disk |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
setBootDisk(AllocationPolicy.Disk.Builder builderForValue)
public AllocationPolicy.InstanceSelection.Builder setBootDisk(AllocationPolicy.Disk.Builder builderForValue) Optional. Boot disk to be created and attached to instances created from
this selection. It overrides the boot disk specified in the instance
properties.
(e.g., overriding boot disk type to Hyperdisk for 4th-gen machine
types)
.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AllocationPolicy.Disk.Builder |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
setDisks(int index, AllocationPolicy.AttachedDisk value)
public AllocationPolicy.InstanceSelection.Builder setDisks(int index, AllocationPolicy.AttachedDisk value)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AllocationPolicy.AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
setDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)
public AllocationPolicy.InstanceSelection.Builder setDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)Optional. List of disks to be attached to instances created from this selection. They override the disks specified in the instance properties.
repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AllocationPolicy.AttachedDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
|
setMachineTypes(int index, String value)
public AllocationPolicy.InstanceSelection.Builder setMachineTypes(int index, String value) Required. The Compute Engine machine type IDs.
Only the machine type ID is supported, such as n1-standard-16.
Full or partial URLs are not accepted.
The total maximum number of machine types across all instance selections
is 200. Exceeding this limit results in a validation error with code
INVALID_ARGUMENT.
repeated string machine_types = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe machineTypes to set. |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
This builder for chaining. |
setRank(int value)
public AllocationPolicy.InstanceSelection.Builder setRank(int value)Optional. Indicates the preference of this instance selection. Lower number means higher preference. First try is to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.
optional int32 rank = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe rank to set. |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection.Builder |
This builder for chaining. |