public static final class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder extends GeneratedMessage.Builder<InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder> implements InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectionOrBuilder Protobuf type
google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDisks(Iterable<? extends AttachedDisk> values)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addAllDisks(Iterable<? extends AttachedDisk> values)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.compute.v1.AttachedDisk> |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
addAllMachineTypes(Iterable<String> values)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addAllMachineTypes(Iterable<String> values)Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The machineTypes to add. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
This builder for chaining. |
addDisks(AttachedDisk value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addDisks(AttachedDisk value)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
addDisks(AttachedDisk.Builder builderForValue)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addDisks(AttachedDisk.Builder builderForValue)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AttachedDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
addDisks(int index, AttachedDisk value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addDisks(int index, AttachedDisk value)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
addDisks(int index, AttachedDisk.Builder builderForValue)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addDisks(int index, AttachedDisk.Builder builderForValue)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AttachedDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
addDisksBuilder()
public AttachedDisk.Builder addDisksBuilder()List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
addDisksBuilder(int index)
public AttachedDisk.Builder addDisksBuilder(int index)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
addMachineTypes(String value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addMachineTypes(String value)Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineTypes to add. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
This builder for chaining. |
addMachineTypesBytes(ByteString value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder addMachineTypesBytes(ByteString value)Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the machineTypes to add. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
This builder for chaining. |
build()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection build()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection |
|
buildPartial()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection buildPartial()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection |
|
clear()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clear()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
clearDisks()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clearDisks()List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
clearMachineTypes()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clearMachineTypes()Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
This builder for chaining. |
clearMinCpuPlatform()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clearMinCpuPlatform()Name of the minimum CPU platform to be used by this instance selection. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
This builder for chaining. |
clearRank()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder clearRank()Preference of this instance selection. Lower number means higher preference. MIG will first try 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 = 3492908;
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisks(int index)
public AttachedDisk getDisks(int index)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
getDisksBuilder(int index)
public AttachedDisk.Builder getDisksBuilder(int index)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
getDisksBuilderList()
public List<AttachedDisk.Builder> getDisksBuilderList()List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getDisksCount()
public int getDisksCount()List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description |
int |
|
getDisksList()
public List<AttachedDisk> getDisksList()List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description |
List<AttachedDisk> |
|
getDisksOrBuilder(int index)
public AttachedDiskOrBuilder getDisksOrBuilder(int index)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AttachedDiskOrBuilder |
|
getDisksOrBuilderList()
public List<? extends AttachedDiskOrBuilder> getDisksOrBuilderList()List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.compute.v1.AttachedDiskOrBuilder> |
|
getMachineTypes(int index)
public String getMachineTypes(int index)Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;
| 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)Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;
| 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()Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;
| Returns | |
|---|---|
| Type | Description |
int |
The count of machineTypes. |
getMachineTypesList()
public ProtocolStringList getMachineTypesList()Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the machineTypes. |
getMinCpuPlatform()
public String getMinCpuPlatform()Name of the minimum CPU platform to be used by this instance selection. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Returns | |
|---|---|
| Type | Description |
String |
The minCpuPlatform. |
getMinCpuPlatformBytes()
public ByteString getMinCpuPlatformBytes()Name of the minimum CPU platform to be used by this instance selection. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for minCpuPlatform. |
getRank()
public int getRank()Preference of this instance selection. Lower number means higher preference. MIG will first try 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 = 3492908;
| Returns | |
|---|---|
| Type | Description |
int |
The rank. |
hasMinCpuPlatform()
public boolean hasMinCpuPlatform()Name of the minimum CPU platform to be used by this instance selection. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the minCpuPlatform field is set. |
hasRank()
public boolean hasRank()Preference of this instance selection. Lower number means higher preference. MIG will first try 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 = 3492908;
| 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 |
|
mergeFrom(InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection other)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection other)| Parameter | |
|---|---|
| Name | Description |
other |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
removeDisks(int index)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder removeDisks(int index)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
setDisks(int index, AttachedDisk value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setDisks(int index, AttachedDisk value)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
setDisks(int index, AttachedDisk.Builder builderForValue)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setDisks(int index, AttachedDisk.Builder builderForValue)List of disks to be attached to the instances created from this selection.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AttachedDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
|
setMachineTypes(int index, String value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setMachineTypes(int index, String value)Full machine-type names, e.g. "n1-standard-16".
repeated string machine_types = 79720065;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe machineTypes to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
This builder for chaining. |
setMinCpuPlatform(String value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setMinCpuPlatform(String value)Name of the minimum CPU platform to be used by this instance selection. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe minCpuPlatform to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
This builder for chaining. |
setMinCpuPlatformBytes(ByteString value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setMinCpuPlatformBytes(ByteString value)Name of the minimum CPU platform to be used by this instance selection. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for minCpuPlatform to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
This builder for chaining. |
setRank(int value)
public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder setRank(int value)Preference of this instance selection. Lower number means higher preference. MIG will first try 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 = 3492908;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe rank to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder |
This builder for chaining. |