Package com.google.cloud.compute.v1
Class InstanceFlexibilityPolicyInstanceSelection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceFlexibilityPolicyInstanceSelection.Builder>
com.google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection.Builder
- All Implemented Interfaces:
InstanceFlexibilityPolicyInstanceSelectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceFlexibilityPolicyInstanceSelection
public static final class InstanceFlexibilityPolicyInstanceSelection.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstanceFlexibilityPolicyInstanceSelection.Builder>
implements InstanceFlexibilityPolicyInstanceSelectionOrBuilder
Specification of machine type to use. Every position inside this message is an alternative. The count specified in the shape flexibility must not exceed the number of entries in per_instance_properties or the capacity of the name_pattern, if used.Protobuf type
google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection-
Method Summary
Modifier and TypeMethodDescriptionaddAllDisks(Iterable<? extends AttachedDisk> values) Disks to be attached to the instances created from in this selection.addAllMachineTypes(Iterable<String> values) Alternative machine types to use for instances that are created from these properties.addDisks(int index, AttachedDisk value) Disks to be attached to the instances created from in this selection.addDisks(int index, AttachedDisk.Builder builderForValue) Disks to be attached to the instances created from in this selection.addDisks(AttachedDisk value) Disks to be attached to the instances created from in this selection.addDisks(AttachedDisk.Builder builderForValue) Disks to be attached to the instances created from in this selection.Disks to be attached to the instances created from in this selection.addDisksBuilder(int index) Disks to be attached to the instances created from in this selection.addMachineTypes(String value) Alternative machine types to use for instances that are created from these properties.addMachineTypesBytes(com.google.protobuf.ByteString value) Alternative machine types to use for instances that are created from these properties.build()clear()Disks to be attached to the instances created from in this selection.Alternative machine types to use for instances that are created from these properties.Rank when prioritizing the shape flexibilities.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDisks(int index) Disks to be attached to the instances created from in this selection.getDisksBuilder(int index) Disks to be attached to the instances created from in this selection.Disks to be attached to the instances created from in this selection.intDisks to be attached to the instances created from in this selection.Disks to be attached to the instances created from in this selection.getDisksOrBuilder(int index) Disks to be attached to the instances created from in this selection.List<? extends AttachedDiskOrBuilder>Disks to be attached to the instances created from in this selection.getMachineTypes(int index) Alternative machine types to use for instances that are created from these properties.com.google.protobuf.ByteStringgetMachineTypesBytes(int index) Alternative machine types to use for instances that are created from these properties.intAlternative machine types to use for instances that are created from these properties.com.google.protobuf.ProtocolStringListAlternative machine types to use for instances that are created from these properties.longgetRank()Rank when prioritizing the shape flexibilities.booleanhasRank()Rank when prioritizing the shape flexibilities.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeDisks(int index) Disks to be attached to the instances created from in this selection.setDisks(int index, AttachedDisk value) Disks to be attached to the instances created from in this selection.setDisks(int index, AttachedDisk.Builder builderForValue) Disks to be attached to the instances created from in this selection.setMachineTypes(int index, String value) Alternative machine types to use for instances that are created from these properties.setRank(long value) Rank when prioritizing the shape flexibilities.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InstanceFlexibilityPolicyInstanceSelection.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InstanceFlexibilityPolicyInstanceSelection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InstanceFlexibilityPolicyInstanceSelection.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public InstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceFlexibilityPolicyInstanceSelection.Builder>
-
mergeFrom
public InstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(InstanceFlexibilityPolicyInstanceSelection other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstanceFlexibilityPolicyInstanceSelection.Builder>
-
mergeFrom
public InstanceFlexibilityPolicyInstanceSelection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceFlexibilityPolicyInstanceSelection.Builder>- Throws:
IOException
-
getDisksList
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;- Specified by:
getDisksListin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder
-
getDisksCount
public int getDisksCount()Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;- Specified by:
getDisksCountin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder
-
getDisks
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;- Specified by:
getDisksin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder
-
setDisks
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
setDisks
public InstanceFlexibilityPolicyInstanceSelection.Builder setDisks(int index, AttachedDisk.Builder builderForValue) Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
addDisks
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
addDisks
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
addDisks
public InstanceFlexibilityPolicyInstanceSelection.Builder addDisks(AttachedDisk.Builder builderForValue) Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
addDisks
public InstanceFlexibilityPolicyInstanceSelection.Builder addDisks(int index, AttachedDisk.Builder builderForValue) Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
addAllDisks
public InstanceFlexibilityPolicyInstanceSelection.Builder addAllDisks(Iterable<? extends AttachedDisk> values) Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
clearDisks
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
removeDisks
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
getDisksBuilder
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
getDisksOrBuilder
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;- Specified by:
getDisksOrBuilderin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder
-
getDisksOrBuilderList
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;- Specified by:
getDisksOrBuilderListin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder
-
addDisksBuilder
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
addDisksBuilder
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
getDisksBuilderList
Disks to be attached to the instances created from in this selection. They override the disks specified in the instance properties.
repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; -
getMachineTypesList
public com.google.protobuf.ProtocolStringList getMachineTypesList()Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial URLs.
repeated string machine_types = 79720065;- Specified by:
getMachineTypesListin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Returns:
- A list containing the machineTypes.
-
getMachineTypesCount
public int getMachineTypesCount()Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial URLs.
repeated string machine_types = 79720065;- Specified by:
getMachineTypesCountin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Returns:
- The count of machineTypes.
-
getMachineTypes
Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial URLs.
repeated string machine_types = 79720065;- Specified by:
getMachineTypesin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The machineTypes at the given index.
-
getMachineTypesBytes
public com.google.protobuf.ByteString getMachineTypesBytes(int index) Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial URLs.
repeated string machine_types = 79720065;- Specified by:
getMachineTypesBytesin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the machineTypes at the given index.
-
setMachineTypes
Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial URLs.
repeated string machine_types = 79720065;- Parameters:
index- The index to set the value at.value- The machineTypes to set.- Returns:
- This builder for chaining.
-
addMachineTypes
Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial URLs.
repeated string machine_types = 79720065;- Parameters:
value- The machineTypes to add.- Returns:
- This builder for chaining.
-
addAllMachineTypes
public InstanceFlexibilityPolicyInstanceSelection.Builder addAllMachineTypes(Iterable<String> values) Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial URLs.
repeated string machine_types = 79720065;- Parameters:
values- The machineTypes to add.- Returns:
- This builder for chaining.
-
clearMachineTypes
Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial URLs.
repeated string machine_types = 79720065;- Returns:
- This builder for chaining.
-
addMachineTypesBytes
public InstanceFlexibilityPolicyInstanceSelection.Builder addMachineTypesBytes(com.google.protobuf.ByteString value) Alternative machine types to use for instances that are created from these properties. This field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial URLs.
repeated string machine_types = 79720065;- Parameters:
value- The bytes of the machineTypes to add.- Returns:
- This builder for chaining.
-
hasRank
public boolean hasRank()Rank when prioritizing the shape flexibilities. The instance selections with rank are considered first, in the ascending order of the rank. If not set, defaults to 0.
optional int64 rank = 3492908;- Specified by:
hasRankin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Returns:
- Whether the rank field is set.
-
getRank
public long getRank()Rank when prioritizing the shape flexibilities. The instance selections with rank are considered first, in the ascending order of the rank. If not set, defaults to 0.
optional int64 rank = 3492908;- Specified by:
getRankin interfaceInstanceFlexibilityPolicyInstanceSelectionOrBuilder- Returns:
- The rank.
-
setRank
Rank when prioritizing the shape flexibilities. The instance selections with rank are considered first, in the ascending order of the rank. If not set, defaults to 0.
optional int64 rank = 3492908;- Parameters:
value- The rank to set.- Returns:
- This builder for chaining.
-
clearRank
Rank when prioritizing the shape flexibilities. The instance selections with rank are considered first, in the ascending order of the rank. If not set, defaults to 0.
optional int64 rank = 3492908;- Returns:
- This builder for chaining.
-