public final class InstanceFlexibilityPolicyInstanceSelection extends GeneratedMessage 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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DISKS_FIELD_NUMBER
public static final int DISKS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MACHINE_TYPES_FIELD_NUMBER
public static final int MACHINE_TYPES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RANK_FIELD_NUMBER
public static final int RANK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static InstanceFlexibilityPolicyInstanceSelection getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static InstanceFlexibilityPolicyInstanceSelection.Builder newBuilder()
newBuilder(InstanceFlexibilityPolicyInstanceSelection prototype)
public static InstanceFlexibilityPolicyInstanceSelection.Builder newBuilder(InstanceFlexibilityPolicyInstanceSelection prototype)
public static InstanceFlexibilityPolicyInstanceSelection parseDelimitedFrom(InputStream input)
public static InstanceFlexibilityPolicyInstanceSelection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static InstanceFlexibilityPolicyInstanceSelection parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicyInstanceSelection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static InstanceFlexibilityPolicyInstanceSelection parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicyInstanceSelection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicyInstanceSelection parseFrom(CodedInputStream input)
public static InstanceFlexibilityPolicyInstanceSelection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicyInstanceSelection parseFrom(InputStream input)
public static InstanceFlexibilityPolicyInstanceSelection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static InstanceFlexibilityPolicyInstanceSelection parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InstanceFlexibilityPolicyInstanceSelection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<InstanceFlexibilityPolicyInstanceSelection> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public InstanceFlexibilityPolicyInstanceSelection getDefaultInstanceForType()
getDisks(int index)
public AttachedDisk getDisks(int index)
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;
| Parameter |
| Name |
Description |
index |
int
|
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;
| Returns |
| Type |
Description |
int |
|
getDisksList()
public List<AttachedDisk> 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;
getDisksOrBuilder(int index)
public AttachedDiskOrBuilder getDisksOrBuilder(int index)
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;
| Parameter |
| Name |
Description |
index |
int
|
getDisksOrBuilderList()
public List<? extends AttachedDiskOrBuilder> 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;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.compute.v1.AttachedDiskOrBuilder> |
|
getMachineTypes(int index)
public String getMachineTypes(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;
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The machineTypes at the given index.
|
getMachineTypesBytes(int index)
public 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;
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the machineTypes at the given index.
|
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;
| Returns |
| Type |
Description |
int |
The count of machineTypes.
|
getMachineTypesList()
public 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;
getParserForType()
public Parser<InstanceFlexibilityPolicyInstanceSelection> getParserForType()
Overrides
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;
| Returns |
| Type |
Description |
long |
The rank.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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;
| Returns |
| Type |
Description |
boolean |
Whether the rank field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public InstanceFlexibilityPolicyInstanceSelection.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected InstanceFlexibilityPolicyInstanceSelection.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public InstanceFlexibilityPolicyInstanceSelection.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides