Class RegionInstanceGroupManagersApplyUpdatesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RegionInstanceGroupManagersApplyUpdatesRequest.Builder>
com.google.cloud.compute.v1.RegionInstanceGroupManagersApplyUpdatesRequest.Builder
All Implemented Interfaces:
RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RegionInstanceGroupManagersApplyUpdatesRequest

public static final class RegionInstanceGroupManagersApplyUpdatesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RegionInstanceGroupManagersApplyUpdatesRequest.Builder> implements RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
 RegionInstanceGroupManagers.applyUpdatesToInstances
 
Protobuf type google.cloud.compute.v1.RegionInstanceGroupManagersApplyUpdatesRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RegionInstanceGroupManagersApplyUpdatesRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RegionInstanceGroupManagersApplyUpdatesRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RegionInstanceGroupManagersApplyUpdatesRequest.Builder>
    • getDefaultInstanceForType

      public RegionInstanceGroupManagersApplyUpdatesRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RegionInstanceGroupManagersApplyUpdatesRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RegionInstanceGroupManagersApplyUpdatesRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RegionInstanceGroupManagersApplyUpdatesRequest.Builder>
    • mergeFrom

      public RegionInstanceGroupManagersApplyUpdatesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RegionInstanceGroupManagersApplyUpdatesRequest.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:
      hasAllInstances in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      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:
      getAllInstances in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      Returns:
      The allInstances.
    • setAllInstances

      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;
      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:
      getInstancesList in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      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:
      getInstancesCount in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      Returns:
      The count of instances.
    • getInstances

      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 aszones/[ZONE]/instances/[INSTANCE_NAME].
       
      repeated string instances = 29097598;
      Specified by:
      getInstances in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      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:
      getInstancesBytes in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the instances at the given index.
    • setInstances

      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 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 RegionInstanceGroupManagersApplyUpdatesRequest.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:
      hasMinimalAction in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      Returns:
      Whether the minimalAction field is set.
    • 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;
      Specified by:
      getMinimalAction in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      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:
      getMinimalActionBytes in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      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 RegionInstanceGroupManagersApplyUpdatesRequest.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:
      hasMostDisruptiveAllowedAction in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      Returns:
      Whether the mostDisruptiveAllowedAction field is set.
    • 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;
      Specified by:
      getMostDisruptiveAllowedAction in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      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:
      getMostDisruptiveAllowedActionBytes in interface RegionInstanceGroupManagersApplyUpdatesRequestOrBuilder
      Returns:
      The bytes for mostDisruptiveAllowedAction.
    • setMostDisruptiveAllowedAction

      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;
      Parameters:
      value - The mostDisruptiveAllowedAction to set.
      Returns:
      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:
      This builder for chaining.
    • setMostDisruptiveAllowedActionBytes

      public RegionInstanceGroupManagersApplyUpdatesRequest.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.