Class InstanceGroupManagerInstanceFlexibilityPolicy.Builder (1.64.0)

public static final class InstanceGroupManagerInstanceFlexibilityPolicy.Builder extends GeneratedMessageV3.Builder<InstanceGroupManagerInstanceFlexibilityPolicy.Builder> implements InstanceGroupManagerInstanceFlexibilityPolicyOrBuilder

Protobuf type google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides

build()

public InstanceGroupManagerInstanceFlexibilityPolicy build()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy

buildPartial()

public InstanceGroupManagerInstanceFlexibilityPolicy buildPartial()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy

clear()

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder clear()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides

clearInstanceSelections()

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder clearInstanceSelections()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides

clone()

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder clone()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides

containsInstanceSelections(String key)

public boolean containsInstanceSelections(String key)

Named instance selections configuring properties that the group will use when creating new VMs.

map<string, .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public InstanceGroupManagerInstanceFlexibilityPolicy getDefaultInstanceForType()
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstanceSelections() (deprecated)

public Map<String,InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> getInstanceSelections()
Returns
Type Description
Map<String,InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection>

getInstanceSelectionsCount()

public int getInstanceSelectionsCount()

Named instance selections configuring properties that the group will use when creating new VMs.

map<string, .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;

Returns
Type Description
int

getInstanceSelectionsMap()

public Map<String,InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> getInstanceSelectionsMap()

Named instance selections configuring properties that the group will use when creating new VMs.

map<string, .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;

Returns
Type Description
Map<String,InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection>

getInstanceSelectionsOrDefault(String key, InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection defaultValue)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection getInstanceSelectionsOrDefault(String key, InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection defaultValue)

Named instance selections configuring properties that the group will use when creating new VMs.

map<string, .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;

Parameters
Name Description
key String
defaultValue InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection

getInstanceSelectionsOrThrow(String key)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection getInstanceSelectionsOrThrow(String key)

Named instance selections configuring properties that the group will use when creating new VMs.

map<string, .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;

Parameter
Name Description
key String
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection

getMutableInstanceSelections() (deprecated)

public Map<String,InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> getMutableInstanceSelections()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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.GeneratedMessageV3.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.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceGroupManagerInstanceFlexibilityPolicy other)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder mergeFrom(InstanceGroupManagerInstanceFlexibilityPolicy other)
Parameter
Name Description
other InstanceGroupManagerInstanceFlexibilityPolicy
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManagerInstanceFlexibilityPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides

putAllInstanceSelections(Map<String,InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> values)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder putAllInstanceSelections(Map<String,InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> values)

Named instance selections configuring properties that the group will use when creating new VMs.

map<string, .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;

Parameter
Name Description
values Map<String,InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection>
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder

putInstanceSelections(String key, InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection value)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder putInstanceSelections(String key, InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection value)

Named instance selections configuring properties that the group will use when creating new VMs.

map<string, .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;

Parameters
Name Description
key String
value InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder

putInstanceSelectionsBuilderIfAbsent(String key)

public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder putInstanceSelectionsBuilderIfAbsent(String key)

Named instance selections configuring properties that the group will use when creating new VMs.

map<string, .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;

Parameter
Name Description
key String
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.Builder

removeInstanceSelections(String key)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder removeInstanceSelections(String key)

Named instance selections configuring properties that the group will use when creating new VMs.

map<string, .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection> instance_selections = 22954577;

Parameter
Name Description
key String
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstanceGroupManagerInstanceFlexibilityPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManagerInstanceFlexibilityPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceGroupManagerInstanceFlexibilityPolicy.Builder
Overrides