Class InstanceGroupManagersSuspendInstancesRequest.Builder

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

public static final class InstanceGroupManagersSuspendInstancesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagersSuspendInstancesRequest.Builder> implements InstanceGroupManagersSuspendInstancesRequestOrBuilder
 
Protobuf type google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest
  • 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<InstanceGroupManagersSuspendInstancesRequest.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<InstanceGroupManagersSuspendInstancesRequest.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<InstanceGroupManagersSuspendInstancesRequest.Builder>
    • getDefaultInstanceForType

      public InstanceGroupManagersSuspendInstancesRequest 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 InstanceGroupManagersSuspendInstancesRequest.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<InstanceGroupManagersSuspendInstancesRequest.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<InstanceGroupManagersSuspendInstancesRequest.Builder>
    • mergeFrom

      public InstanceGroupManagersSuspendInstancesRequest.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<InstanceGroupManagersSuspendInstancesRequest.Builder>
      Throws:
      IOException
    • hasForceSuspend

      public boolean hasForceSuspend()
       If this flag is set to true, the Instance Group Manager will proceed to
       suspend the instances, skipping initialization on them.
       
      optional bool force_suspend = 27637480;
      Specified by:
      hasForceSuspend in interface InstanceGroupManagersSuspendInstancesRequestOrBuilder
      Returns:
      Whether the forceSuspend field is set.
    • getForceSuspend

      public boolean getForceSuspend()
       If this flag is set to true, the Instance Group Manager will proceed to
       suspend the instances, skipping initialization on them.
       
      optional bool force_suspend = 27637480;
      Specified by:
      getForceSuspend in interface InstanceGroupManagersSuspendInstancesRequestOrBuilder
      Returns:
      The forceSuspend.
    • setForceSuspend

      public InstanceGroupManagersSuspendInstancesRequest.Builder setForceSuspend(boolean value)
       If this flag is set to true, the Instance Group Manager will proceed to
       suspend the instances, skipping initialization on them.
       
      optional bool force_suspend = 27637480;
      Parameters:
      value - The forceSuspend to set.
      Returns:
      This builder for chaining.
    • clearForceSuspend

       If this flag is set to true, the Instance Group Manager will proceed to
       suspend the instances, skipping initialization on them.
       
      optional bool force_suspend = 27637480;
      Returns:
      This builder for chaining.
    • getInstancesList

      public com.google.protobuf.ProtocolStringList getInstancesList()
       The URLs of one or more instances to suspend. This can be a full URL or
       a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
       
      repeated string instances = 29097598;
      Specified by:
      getInstancesList in interface InstanceGroupManagersSuspendInstancesRequestOrBuilder
      Returns:
      A list containing the instances.
    • getInstancesCount

      public int getInstancesCount()
       The URLs of one or more instances to suspend. This can be a full URL or
       a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
       
      repeated string instances = 29097598;
      Specified by:
      getInstancesCount in interface InstanceGroupManagersSuspendInstancesRequestOrBuilder
      Returns:
      The count of instances.
    • getInstances

      public String getInstances(int index)
       The URLs of one or more instances to suspend. This can be a full URL or
       a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
       
      repeated string instances = 29097598;
      Specified by:
      getInstances in interface InstanceGroupManagersSuspendInstancesRequestOrBuilder
      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 URLs of one or more instances to suspend. This can be a full URL or
       a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
       
      repeated string instances = 29097598;
      Specified by:
      getInstancesBytes in interface InstanceGroupManagersSuspendInstancesRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the instances at the given index.
    • setInstances

      public InstanceGroupManagersSuspendInstancesRequest.Builder setInstances(int index, String value)
       The URLs of one or more instances to suspend. This can be a full URL or
       a partial URL, such as zones/[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 URLs of one or more instances to suspend. This can be a full URL or
       a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
       
      repeated string instances = 29097598;
      Parameters:
      value - The instances to add.
      Returns:
      This builder for chaining.
    • addAllInstances

       The URLs of one or more instances to suspend. This can be a full URL or
       a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
       
      repeated string instances = 29097598;
      Parameters:
      values - The instances to add.
      Returns:
      This builder for chaining.
    • clearInstances

       The URLs of one or more instances to suspend. This can be a full URL or
       a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
       
      repeated string instances = 29097598;
      Returns:
      This builder for chaining.
    • addInstancesBytes

      public InstanceGroupManagersSuspendInstancesRequest.Builder addInstancesBytes(com.google.protobuf.ByteString value)
       The URLs of one or more instances to suspend. This can be a full URL or
       a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
       
      repeated string instances = 29097598;
      Parameters:
      value - The bytes of the instances to add.
      Returns:
      This builder for chaining.