Class RegionInstanceGroupManagersApplyUpdatesRequest.Builder (1.41.0)

See more code actions.
public static final class RegionInstanceGroupManagersApplyUpdatesRequest.Builder extends GeneratedMessageV3.Builder<RegionInstanceGroupManagersApplyUpdatesRequest.Builder> implements RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder

RegionInstanceGroupManagers.applyUpdatesToInstances

Protobuf type google.cloud.compute.v1.RegionInstanceGroupManagersApplyUpdatesRequest

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RegionInstanceGroupManagersApplyUpdatesRequest.Builder
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllInstances(Iterable<String> values)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder addAllInstances(Iterable<String> values)

The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

repeated string instances = 29097598;

Parameter
NameDescription
valuesIterable<String>

The instances to add.

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

addInstances(String value)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder addInstances(String value)

The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

repeated string instances = 29097598;

Parameter
NameDescription
valueString

The instances to add.

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

addInstancesBytes(ByteString value)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder addInstancesBytes(ByteString value)

The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

repeated string instances = 29097598;

Parameter
NameDescription
valueByteString

The bytes of the instances to add.

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Overrides

build()

public RegionInstanceGroupManagersApplyUpdatesRequest build()

buildPartial()

public RegionInstanceGroupManagersApplyUpdatesRequest buildPartial()

clear()

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder clear()
Overrides

clearAllInstances()

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder clearAllInstances()

Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request.

optional bool all_instances = 403676512;

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Overrides

clearInstances()

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder clearInstances()

The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

repeated string instances = 29097598;

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

clearMinimalAction()

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder clearMinimalAction()

The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. Check the MinimalAction enum for the list of possible values.

optional string minimal_action = 270567060;

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

clearMostDisruptiveAllowedAction()

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder clearMostDisruptiveAllowedAction()

The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. Check the MostDisruptiveAllowedAction enum for the list of possible values.

optional string most_disruptive_allowed_action = 66103053;

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Overrides

clone()

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder clone()
Overrides

getAllInstances()

public boolean getAllInstances()

Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request.

optional bool all_instances = 403676512;

Returns
TypeDescription
boolean

The allInstances.

getDefaultInstanceForType()

public RegionInstanceGroupManagersApplyUpdatesRequest getDefaultInstanceForType()

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstances(int index)

public String getInstances(int index)

The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

repeated string instances = 29097598;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The instances at the given index.

getInstancesBytes(int index)

public ByteString getInstancesBytes(int index)

The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

repeated string instances = 29097598;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the instances at the given index.

getInstancesCount()

public int getInstancesCount()

The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

repeated string instances = 29097598;

Returns
TypeDescription
int

The count of instances.

getInstancesList()

public ProtocolStringList getInstancesList()

The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

repeated string instances = 29097598;

Returns
TypeDescription
ProtocolStringList

A list containing the instances.

getMinimalAction()

public String getMinimalAction()

The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. Check the MinimalAction enum for the list of possible values.

optional string minimal_action = 270567060;

Returns
TypeDescription
String

The minimalAction.

getMinimalActionBytes()

public ByteString getMinimalActionBytes()

The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. Check the MinimalAction enum for the list of possible values.

optional string minimal_action = 270567060;

Returns
TypeDescription
ByteString

The bytes for minimalAction.

getMostDisruptiveAllowedAction()

public String getMostDisruptiveAllowedAction()

The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. Check the MostDisruptiveAllowedAction enum for the list of possible values.

optional string most_disruptive_allowed_action = 66103053;

Returns
TypeDescription
String

The mostDisruptiveAllowedAction.

getMostDisruptiveAllowedActionBytes()

public ByteString getMostDisruptiveAllowedActionBytes()

The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. Check the MostDisruptiveAllowedAction enum for the list of possible values.

optional string most_disruptive_allowed_action = 66103053;

Returns
TypeDescription
ByteString

The bytes for mostDisruptiveAllowedAction.

hasAllInstances()

public boolean hasAllInstances()

Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request.

optional bool all_instances = 403676512;

Returns
TypeDescription
boolean

Whether the allInstances field is set.

hasMinimalAction()

public boolean hasMinimalAction()

The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. Check the MinimalAction enum for the list of possible values.

optional string minimal_action = 270567060;

Returns
TypeDescription
boolean

Whether the minimalAction field is set.

hasMostDisruptiveAllowedAction()

public boolean hasMostDisruptiveAllowedAction()

The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. Check the MostDisruptiveAllowedAction enum for the list of possible values.

optional string most_disruptive_allowed_action = 66103053;

Returns
TypeDescription
boolean

Whether the mostDisruptiveAllowedAction field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RegionInstanceGroupManagersApplyUpdatesRequest other)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder mergeFrom(RegionInstanceGroupManagersApplyUpdatesRequest other)

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RegionInstanceGroupManagersApplyUpdatesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Overrides

setAllInstances(boolean value)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder setAllInstances(boolean value)

Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request.

optional bool all_instances = 403676512;

Parameter
NameDescription
valueboolean

The allInstances to set.

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Overrides

setInstances(int index, String value)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder setInstances(int index, String value)

The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

repeated string instances = 29097598;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The instances to set.

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

setMinimalAction(String value)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder setMinimalAction(String value)

The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. Check the MinimalAction enum for the list of possible values.

optional string minimal_action = 270567060;

Parameter
NameDescription
valueString

The minimalAction to set.

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

setMinimalActionBytes(ByteString value)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder setMinimalActionBytes(ByteString value)

The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. Check the MinimalAction enum for the list of possible values.

optional string minimal_action = 270567060;

Parameter
NameDescription
valueByteString

The bytes for minimalAction to set.

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

setMostDisruptiveAllowedAction(String value)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder setMostDisruptiveAllowedAction(String value)

The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. Check the MostDisruptiveAllowedAction enum for the list of possible values.

optional string most_disruptive_allowed_action = 66103053;

Parameter
NameDescription
valueString

The mostDisruptiveAllowedAction to set.

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

setMostDisruptiveAllowedActionBytes(ByteString value)

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder setMostDisruptiveAllowedActionBytes(ByteString value)

The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail. Check the MostDisruptiveAllowedAction enum for the list of possible values.

optional string most_disruptive_allowed_action = 66103053;

Parameter
NameDescription
valueByteString

The bytes for mostDisruptiveAllowedAction to set.

Returns
TypeDescription
RegionInstanceGroupManagersApplyUpdatesRequest.Builder

This builder for chaining.

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

public RegionInstanceGroupManagersApplyUpdatesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RegionInstanceGroupManagersApplyUpdatesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Overrides