public static final class ManagedInstancePropertiesFromFlexibilityPolicy.Builder extends GeneratedMessage.Builder<ManagedInstancePropertiesFromFlexibilityPolicy.Builder> implements ManagedInstancePropertiesFromFlexibilityPolicyOrBuilder Protobuf type google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ManagedInstancePropertiesFromFlexibilityPolicy.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDisks(Iterable<? extends AttachedDisk> values)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder addAllDisks(Iterable<? extends AttachedDisk> values)List of disks to be attached to the instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.compute.v1.AttachedDisk> |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
addDisks(AttachedDisk value)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder addDisks(AttachedDisk value)List of disks to be attached to the instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
addDisks(AttachedDisk.Builder builderForValue)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder addDisks(AttachedDisk.Builder builderForValue)List of disks to be attached to the instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AttachedDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
addDisks(int index, AttachedDisk value)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder addDisks(int index, AttachedDisk value)List of disks to be attached to the instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
addDisks(int index, AttachedDisk.Builder builderForValue)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder addDisks(int index, AttachedDisk.Builder builderForValue)List of disks to be attached to the instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AttachedDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
addDisksBuilder()
public AttachedDisk.Builder addDisksBuilder()List of disks to be attached to the instance.
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 instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
build()
public ManagedInstancePropertiesFromFlexibilityPolicy build()| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy |
|
buildPartial()
public ManagedInstancePropertiesFromFlexibilityPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy |
|
clear()
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
clearDisks()
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder clearDisks()List of disks to be attached to the instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
clearMachineType()
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder clearMachineType()Output only. The machine type to be used for this instance.
optional string machine_type = 227711026;
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
This builder for chaining. |
clearMinCpuPlatform()
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder clearMinCpuPlatform()Name of the minimum CPU platform to be used by this instance. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ManagedInstancePropertiesFromFlexibilityPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy |
|
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 instance.
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 instance.
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 instance.
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 instance.
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 instance.
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 instance.
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 instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.compute.v1.AttachedDiskOrBuilder> |
|
getMachineType()
public String getMachineType()Output only. The machine type to be used for this instance.
optional string machine_type = 227711026;
| Returns | |
|---|---|
| Type | Description |
String |
The machineType. |
getMachineTypeBytes()
public ByteString getMachineTypeBytes()Output only. The machine type to be used for this instance.
optional string machine_type = 227711026;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for machineType. |
getMinCpuPlatform()
public String getMinCpuPlatform()Name of the minimum CPU platform to be used by this instance. 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. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for minCpuPlatform. |
hasMachineType()
public boolean hasMachineType()Output only. The machine type to be used for this instance.
optional string machine_type = 227711026;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the machineType field is set. |
hasMinCpuPlatform()
public boolean hasMinCpuPlatform()Name of the minimum CPU platform to be used by this instance. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the minCpuPlatform field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ManagedInstancePropertiesFromFlexibilityPolicy other)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder mergeFrom(ManagedInstancePropertiesFromFlexibilityPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
ManagedInstancePropertiesFromFlexibilityPolicy |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
removeDisks(int index)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder removeDisks(int index)List of disks to be attached to the instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
setDisks(int index, AttachedDisk value)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder setDisks(int index, AttachedDisk value)List of disks to be attached to the instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
setDisks(int index, AttachedDisk.Builder builderForValue)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder setDisks(int index, AttachedDisk.Builder builderForValue)List of disks to be attached to the instance.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AttachedDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
|
setMachineType(String value)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder setMachineType(String value)Output only. The machine type to be used for this instance.
optional string machine_type = 227711026;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineType to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
This builder for chaining. |
setMachineTypeBytes(ByteString value)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder setMachineTypeBytes(ByteString value)Output only. The machine type to be used for this instance.
optional string machine_type = 227711026;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for machineType to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
This builder for chaining. |
setMinCpuPlatform(String value)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder setMinCpuPlatform(String value)Name of the minimum CPU platform to be used by this instance. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe minCpuPlatform to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
This builder for chaining. |
setMinCpuPlatformBytes(ByteString value)
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder setMinCpuPlatformBytes(ByteString value)Name of the minimum CPU platform to be used by this instance. e.g. 'Intel Ice Lake'.
optional string min_cpu_platform = 242912759;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for minCpuPlatform to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
This builder for chaining. |