Class InstanceGroupManagerStandbyPolicy.Builder

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

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

      public InstanceGroupManagerStandbyPolicy 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

      public InstanceGroupManagerStandbyPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public InstanceGroupManagerStandbyPolicy.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<InstanceGroupManagerStandbyPolicy.Builder>
      Throws:
      IOException
    • hasInitialDelaySec

      public boolean hasInitialDelaySec()
       Specifies the number of seconds that the MIG should wait to suspend or
       stop a VM after that VM was created. The initial delay gives the
       initialization script the time to prepare your VM for a quick scale out.
       The value of initial delay must be between 0 and 3600 seconds. The
       default value is 0.
       
      optional int32 initial_delay_sec = 263207002;
      Specified by:
      hasInitialDelaySec in interface InstanceGroupManagerStandbyPolicyOrBuilder
      Returns:
      Whether the initialDelaySec field is set.
    • getInitialDelaySec

      public int getInitialDelaySec()
       Specifies the number of seconds that the MIG should wait to suspend or
       stop a VM after that VM was created. The initial delay gives the
       initialization script the time to prepare your VM for a quick scale out.
       The value of initial delay must be between 0 and 3600 seconds. The
       default value is 0.
       
      optional int32 initial_delay_sec = 263207002;
      Specified by:
      getInitialDelaySec in interface InstanceGroupManagerStandbyPolicyOrBuilder
      Returns:
      The initialDelaySec.
    • setInitialDelaySec

      public InstanceGroupManagerStandbyPolicy.Builder setInitialDelaySec(int value)
       Specifies the number of seconds that the MIG should wait to suspend or
       stop a VM after that VM was created. The initial delay gives the
       initialization script the time to prepare your VM for a quick scale out.
       The value of initial delay must be between 0 and 3600 seconds. The
       default value is 0.
       
      optional int32 initial_delay_sec = 263207002;
      Parameters:
      value - The initialDelaySec to set.
      Returns:
      This builder for chaining.
    • clearInitialDelaySec

      public InstanceGroupManagerStandbyPolicy.Builder clearInitialDelaySec()
       Specifies the number of seconds that the MIG should wait to suspend or
       stop a VM after that VM was created. The initial delay gives the
       initialization script the time to prepare your VM for a quick scale out.
       The value of initial delay must be between 0 and 3600 seconds. The
       default value is 0.
       
      optional int32 initial_delay_sec = 263207002;
      Returns:
      This builder for chaining.
    • hasMode

      public boolean hasMode()
       Defines how a MIG resumes or starts VMs from a standby pool when the
       group scales out. The default mode is `MANUAL`.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      hasMode in interface InstanceGroupManagerStandbyPolicyOrBuilder
      Returns:
      Whether the mode field is set.
    • getMode

      public String getMode()
       Defines how a MIG resumes or starts VMs from a standby pool when the
       group scales out. The default mode is `MANUAL`.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      getMode in interface InstanceGroupManagerStandbyPolicyOrBuilder
      Returns:
      The mode.
    • getModeBytes

      public com.google.protobuf.ByteString getModeBytes()
       Defines how a MIG resumes or starts VMs from a standby pool when the
       group scales out. The default mode is `MANUAL`.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Specified by:
      getModeBytes in interface InstanceGroupManagerStandbyPolicyOrBuilder
      Returns:
      The bytes for mode.
    • setMode

       Defines how a MIG resumes or starts VMs from a standby pool when the
       group scales out. The default mode is `MANUAL`.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

       Defines how a MIG resumes or starts VMs from a standby pool when the
       group scales out. The default mode is `MANUAL`.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Returns:
      This builder for chaining.
    • setModeBytes

      public InstanceGroupManagerStandbyPolicy.Builder setModeBytes(com.google.protobuf.ByteString value)
       Defines how a MIG resumes or starts VMs from a standby pool when the
       group scales out. The default mode is `MANUAL`.
       Check the Mode enum for the list of possible values.
       
      optional string mode = 3357091;
      Parameters:
      value - The bytes for mode to set.
      Returns:
      This builder for chaining.