public static final class AllocationPolicy.InstanceFlexibilityPolicy.Builder extends GeneratedMessage.Builder<AllocationPolicy.InstanceFlexibilityPolicy.Builder> implements AllocationPolicy.InstanceFlexibilityPolicyOrBuilder
Allows creating VMs from multiple types of machines. Instance flexibility
configuration overrides instances configuration.
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.InstanceFlexibilityPolicy
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public AllocationPolicy.InstanceFlexibilityPolicy build()
buildPartial()
public AllocationPolicy.InstanceFlexibilityPolicy buildPartial()
clear()
public AllocationPolicy.InstanceFlexibilityPolicy.Builder clear()
Overrides
clearInstanceSelections()
public AllocationPolicy.InstanceFlexibilityPolicy.Builder clearInstanceSelections()
containsInstanceSelections(String key)
public boolean containsInstanceSelections(String key)
Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
key |
String
|
getDefaultInstanceForType()
public AllocationPolicy.InstanceFlexibilityPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getInstanceSelections() (deprecated)
public Map<String,AllocationPolicy.InstanceSelection> getInstanceSelections()
getInstanceSelectionsCount()
public int getInstanceSelectionsCount()
Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
int |
|
getInstanceSelectionsMap()
public Map<String,AllocationPolicy.InstanceSelection> getInstanceSelectionsMap()
Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
getInstanceSelectionsOrDefault(String key, AllocationPolicy.InstanceSelection defaultValue)
public AllocationPolicy.InstanceSelection getInstanceSelectionsOrDefault(String key, AllocationPolicy.InstanceSelection defaultValue)
Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
getInstanceSelectionsOrThrow(String key)
public AllocationPolicy.InstanceSelection getInstanceSelectionsOrThrow(String key)
Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
key |
String
|
getMutableInstanceSelections() (deprecated)
public Map<String,AllocationPolicy.InstanceSelection> getMutableInstanceSelections()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AllocationPolicy.InstanceFlexibilityPolicy other)
public AllocationPolicy.InstanceFlexibilityPolicy.Builder mergeFrom(AllocationPolicy.InstanceFlexibilityPolicy other)
public AllocationPolicy.InstanceFlexibilityPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AllocationPolicy.InstanceFlexibilityPolicy.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
putAllInstanceSelections(Map<String,AllocationPolicy.InstanceSelection> values)
public AllocationPolicy.InstanceFlexibilityPolicy.Builder putAllInstanceSelections(Map<String,AllocationPolicy.InstanceSelection> values)
Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
putInstanceSelections(String key, AllocationPolicy.InstanceSelection value)
public AllocationPolicy.InstanceFlexibilityPolicy.Builder putInstanceSelections(String key, AllocationPolicy.InstanceSelection value)
Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
putInstanceSelectionsBuilderIfAbsent(String key)
public AllocationPolicy.InstanceSelection.Builder putInstanceSelectionsBuilderIfAbsent(String key)
Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
key |
String
|
removeInstanceSelections(String key)
public AllocationPolicy.InstanceFlexibilityPolicy.Builder removeInstanceSelections(String key)
Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
key |
String
|