Class InstanceGroupManagerAutoHealingPolicy.Builder

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

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

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

      public InstanceGroupManagerAutoHealingPolicy.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<InstanceGroupManagerAutoHealingPolicy.Builder>
      Throws:
      IOException
    • hasHealthCheck

      public boolean hasHealthCheck()
       The URL for the health check that signals autohealing.
       
      optional string health_check = 308876645;
      Specified by:
      hasHealthCheck in interface InstanceGroupManagerAutoHealingPolicyOrBuilder
      Returns:
      Whether the healthCheck field is set.
    • getHealthCheck

      public String getHealthCheck()
       The URL for the health check that signals autohealing.
       
      optional string health_check = 308876645;
      Specified by:
      getHealthCheck in interface InstanceGroupManagerAutoHealingPolicyOrBuilder
      Returns:
      The healthCheck.
    • getHealthCheckBytes

      public com.google.protobuf.ByteString getHealthCheckBytes()
       The URL for the health check that signals autohealing.
       
      optional string health_check = 308876645;
      Specified by:
      getHealthCheckBytes in interface InstanceGroupManagerAutoHealingPolicyOrBuilder
      Returns:
      The bytes for healthCheck.
    • setHealthCheck

       The URL for the health check that signals autohealing.
       
      optional string health_check = 308876645;
      Parameters:
      value - The healthCheck to set.
      Returns:
      This builder for chaining.
    • clearHealthCheck

       The URL for the health check that signals autohealing.
       
      optional string health_check = 308876645;
      Returns:
      This builder for chaining.
    • setHealthCheckBytes

      public InstanceGroupManagerAutoHealingPolicy.Builder setHealthCheckBytes(com.google.protobuf.ByteString value)
       The URL for the health check that signals autohealing.
       
      optional string health_check = 308876645;
      Parameters:
      value - The bytes for healthCheck to set.
      Returns:
      This builder for chaining.
    • hasInitialDelaySec

      public boolean hasInitialDelaySec()
       The initial delay is the number of seconds that a new VM takes to
       initialize and run its startup script. During a VM's initial delay
       period, the MIG ignores unsuccessful health checks because the VM might
       be in the startup process. This prevents the MIG from prematurely
       recreating a VM. If the health check receives a healthy response during
       the initial delay, it indicates that the startup process is complete and
       the VM is ready. 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 InstanceGroupManagerAutoHealingPolicyOrBuilder
      Returns:
      Whether the initialDelaySec field is set.
    • getInitialDelaySec

      public int getInitialDelaySec()
       The initial delay is the number of seconds that a new VM takes to
       initialize and run its startup script. During a VM's initial delay
       period, the MIG ignores unsuccessful health checks because the VM might
       be in the startup process. This prevents the MIG from prematurely
       recreating a VM. If the health check receives a healthy response during
       the initial delay, it indicates that the startup process is complete and
       the VM is ready. 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 InstanceGroupManagerAutoHealingPolicyOrBuilder
      Returns:
      The initialDelaySec.
    • setInitialDelaySec

      public InstanceGroupManagerAutoHealingPolicy.Builder setInitialDelaySec(int value)
       The initial delay is the number of seconds that a new VM takes to
       initialize and run its startup script. During a VM's initial delay
       period, the MIG ignores unsuccessful health checks because the VM might
       be in the startup process. This prevents the MIG from prematurely
       recreating a VM. If the health check receives a healthy response during
       the initial delay, it indicates that the startup process is complete and
       the VM is ready. 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 InstanceGroupManagerAutoHealingPolicy.Builder clearInitialDelaySec()
       The initial delay is the number of seconds that a new VM takes to
       initialize and run its startup script. During a VM's initial delay
       period, the MIG ignores unsuccessful health checks because the VM might
       be in the startup process. This prevents the MIG from prematurely
       recreating a VM. If the health check receives a healthy response during
       the initial delay, it indicates that the startup process is complete and
       the VM is ready. 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.