Package com.google.cloud.compute.v1
Class InstanceGroupManagersApplyUpdatesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagersApplyUpdatesRequest.Builder>
com.google.cloud.compute.v1.InstanceGroupManagersApplyUpdatesRequest.Builder
- All Implemented Interfaces:
InstanceGroupManagersApplyUpdatesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceGroupManagersApplyUpdatesRequest
public static final class InstanceGroupManagersApplyUpdatesRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagersApplyUpdatesRequest.Builder>
implements InstanceGroupManagersApplyUpdatesRequestOrBuilder
InstanceGroupManagers.applyUpdatesToInstancesProtobuf type
google.cloud.compute.v1.InstanceGroupManagersApplyUpdatesRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllInstances(Iterable<String> values) The list of URLs of one or more instances for which you want to apply updates.addInstances(String value) The list of URLs of one or more instances for which you want to apply updates.addInstancesBytes(com.google.protobuf.ByteString value) The list of URLs of one or more instances for which you want to apply updates.build()clear()Flag to update all instances instead of specified list of “instances”.The list of URLs of one or more instances for which you want to apply updates.The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it againThe most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it againbooleanFlag to update all instances instead of specified list of “instances”.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInstances(int index) The list of URLs of one or more instances for which you want to apply updates.com.google.protobuf.ByteStringgetInstancesBytes(int index) The list of URLs of one or more instances for which you want to apply updates.intThe list of URLs of one or more instances for which you want to apply updates.com.google.protobuf.ProtocolStringListThe list of URLs of one or more instances for which you want to apply updates.The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it againcom.google.protobuf.ByteStringThe minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it againThe most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it againcom.google.protobuf.ByteStringThe most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it againbooleanFlag to update all instances instead of specified list of “instances”.booleanThe minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it againbooleanThe most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it againprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAllInstances(boolean value) Flag to update all instances instead of specified list of “instances”.setInstances(int index, String value) The list of URLs of one or more instances for which you want to apply updates.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 againsetMinimalActionBytes(com.google.protobuf.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 againThe most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it againsetMostDisruptiveAllowedActionBytes(com.google.protobuf.ByteString value) The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it againMethods 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<InstanceGroupManagersApplyUpdatesRequest.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<InstanceGroupManagersApplyUpdatesRequest.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<InstanceGroupManagersApplyUpdatesRequest.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 InstanceGroupManagersApplyUpdatesRequest.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceGroupManagersApplyUpdatesRequest.Builder>
-
mergeFrom
public InstanceGroupManagersApplyUpdatesRequest.Builder mergeFrom(InstanceGroupManagersApplyUpdatesRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagersApplyUpdatesRequest.Builder>
-
mergeFrom
public InstanceGroupManagersApplyUpdatesRequest.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<InstanceGroupManagersApplyUpdatesRequest.Builder>- Throws:
IOException
-
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;- Specified by:
hasAllInstancesin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Returns:
- Whether the allInstances field is set.
-
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;- Specified by:
getAllInstancesin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Returns:
- The allInstances.
-
setAllInstances
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;- Parameters:
value- The allInstances to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getInstancesList
public com.google.protobuf.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 aszones/[ZONE]/instances/[INSTANCE_NAME].
repeated string instances = 29097598;- Specified by:
getInstancesListin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Returns:
- A list containing the instances.
-
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 aszones/[ZONE]/instances/[INSTANCE_NAME].
repeated string instances = 29097598;- Specified by:
getInstancesCountin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Returns:
- The count of instances.
-
getInstances
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 aszones/[ZONE]/instances/[INSTANCE_NAME].
repeated string instances = 29097598;- Specified by:
getInstancesin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The instances at the given index.
-
getInstancesBytes
public com.google.protobuf.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 aszones/[ZONE]/instances/[INSTANCE_NAME].
repeated string instances = 29097598;- Specified by:
getInstancesBytesin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
setInstances
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 aszones/[ZONE]/instances/[INSTANCE_NAME].
repeated string instances = 29097598;- Parameters:
index- The index to set the value at.value- The instances to set.- Returns:
- This builder for chaining.
-
addInstances
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 aszones/[ZONE]/instances/[INSTANCE_NAME].
repeated string instances = 29097598;- Parameters:
value- The instances to add.- Returns:
- This builder for chaining.
-
addAllInstances
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 aszones/[ZONE]/instances/[INSTANCE_NAME].
repeated string instances = 29097598;- Parameters:
values- The instances to add.- Returns:
- This builder for chaining.
-
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 aszones/[ZONE]/instances/[INSTANCE_NAME].
repeated string instances = 29097598;- Returns:
- This builder for chaining.
-
addInstancesBytes
public InstanceGroupManagersApplyUpdatesRequest.Builder addInstancesBytes(com.google.protobuf.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 aszones/[ZONE]/instances/[INSTANCE_NAME].
repeated string instances = 29097598;- Parameters:
value- The bytes of the instances to add.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasMinimalActionin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Returns:
- Whether the minimalAction field is set.
-
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;- Specified by:
getMinimalActionin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Returns:
- The minimalAction.
-
getMinimalActionBytes
public com.google.protobuf.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;- Specified by:
getMinimalActionBytesin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Returns:
- The bytes for minimalAction.
-
setMinimalAction
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;- Parameters:
value- The minimalAction to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setMinimalActionBytes
public InstanceGroupManagersApplyUpdatesRequest.Builder setMinimalActionBytes(com.google.protobuf.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;- Parameters:
value- The bytes for minimalAction to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasMostDisruptiveAllowedActionin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Returns:
- Whether the mostDisruptiveAllowedAction field is set.
-
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;- Specified by:
getMostDisruptiveAllowedActionin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Returns:
- The mostDisruptiveAllowedAction.
-
getMostDisruptiveAllowedActionBytes
public com.google.protobuf.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;- Specified by:
getMostDisruptiveAllowedActionBytesin interfaceInstanceGroupManagersApplyUpdatesRequestOrBuilder- Returns:
- The bytes for mostDisruptiveAllowedAction.
-
setMostDisruptiveAllowedAction
public InstanceGroupManagersApplyUpdatesRequest.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;- Parameters:
value- The mostDisruptiveAllowedAction to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setMostDisruptiveAllowedActionBytes
public InstanceGroupManagersApplyUpdatesRequest.Builder setMostDisruptiveAllowedActionBytes(com.google.protobuf.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;- Parameters:
value- The bytes for mostDisruptiveAllowedAction to set.- Returns:
- This builder for chaining.
-