Class InstanceGroupManagerInstanceLifecyclePolicy.Builder

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

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

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

      public InstanceGroupManagerInstanceLifecyclePolicy.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<InstanceGroupManagerInstanceLifecyclePolicy.Builder>
      Throws:
      IOException
    • hasDefaultActionOnFailure

      public boolean hasDefaultActionOnFailure()
       The action that a MIG performs on a failed or an unhealthy VM.
       A VM is marked as unhealthy when the application running on that
       VM fails a health check.
       Valid values are
      
       - REPAIR (default): MIG automatically repairs a failed or
       an unhealthy VM by recreating it. For more information, see About
       repairing VMs in a MIG.
       - DO_NOTHING: MIG does not repair a failed or an unhealthy
       VM.
       Check the DefaultActionOnFailure enum for the list of possible values.
       
      optional string default_action_on_failure = 61383253;
      Specified by:
      hasDefaultActionOnFailure in interface InstanceGroupManagerInstanceLifecyclePolicyOrBuilder
      Returns:
      Whether the defaultActionOnFailure field is set.
    • getDefaultActionOnFailure

      public String getDefaultActionOnFailure()
       The action that a MIG performs on a failed or an unhealthy VM.
       A VM is marked as unhealthy when the application running on that
       VM fails a health check.
       Valid values are
      
       - REPAIR (default): MIG automatically repairs a failed or
       an unhealthy VM by recreating it. For more information, see About
       repairing VMs in a MIG.
       - DO_NOTHING: MIG does not repair a failed or an unhealthy
       VM.
       Check the DefaultActionOnFailure enum for the list of possible values.
       
      optional string default_action_on_failure = 61383253;
      Specified by:
      getDefaultActionOnFailure in interface InstanceGroupManagerInstanceLifecyclePolicyOrBuilder
      Returns:
      The defaultActionOnFailure.
    • getDefaultActionOnFailureBytes

      public com.google.protobuf.ByteString getDefaultActionOnFailureBytes()
       The action that a MIG performs on a failed or an unhealthy VM.
       A VM is marked as unhealthy when the application running on that
       VM fails a health check.
       Valid values are
      
       - REPAIR (default): MIG automatically repairs a failed or
       an unhealthy VM by recreating it. For more information, see About
       repairing VMs in a MIG.
       - DO_NOTHING: MIG does not repair a failed or an unhealthy
       VM.
       Check the DefaultActionOnFailure enum for the list of possible values.
       
      optional string default_action_on_failure = 61383253;
      Specified by:
      getDefaultActionOnFailureBytes in interface InstanceGroupManagerInstanceLifecyclePolicyOrBuilder
      Returns:
      The bytes for defaultActionOnFailure.
    • setDefaultActionOnFailure

      public InstanceGroupManagerInstanceLifecyclePolicy.Builder setDefaultActionOnFailure(String value)
       The action that a MIG performs on a failed or an unhealthy VM.
       A VM is marked as unhealthy when the application running on that
       VM fails a health check.
       Valid values are
      
       - REPAIR (default): MIG automatically repairs a failed or
       an unhealthy VM by recreating it. For more information, see About
       repairing VMs in a MIG.
       - DO_NOTHING: MIG does not repair a failed or an unhealthy
       VM.
       Check the DefaultActionOnFailure enum for the list of possible values.
       
      optional string default_action_on_failure = 61383253;
      Parameters:
      value - The defaultActionOnFailure to set.
      Returns:
      This builder for chaining.
    • clearDefaultActionOnFailure

      public InstanceGroupManagerInstanceLifecyclePolicy.Builder clearDefaultActionOnFailure()
       The action that a MIG performs on a failed or an unhealthy VM.
       A VM is marked as unhealthy when the application running on that
       VM fails a health check.
       Valid values are
      
       - REPAIR (default): MIG automatically repairs a failed or
       an unhealthy VM by recreating it. For more information, see About
       repairing VMs in a MIG.
       - DO_NOTHING: MIG does not repair a failed or an unhealthy
       VM.
       Check the DefaultActionOnFailure enum for the list of possible values.
       
      optional string default_action_on_failure = 61383253;
      Returns:
      This builder for chaining.
    • setDefaultActionOnFailureBytes

      public InstanceGroupManagerInstanceLifecyclePolicy.Builder setDefaultActionOnFailureBytes(com.google.protobuf.ByteString value)
       The action that a MIG performs on a failed or an unhealthy VM.
       A VM is marked as unhealthy when the application running on that
       VM fails a health check.
       Valid values are
      
       - REPAIR (default): MIG automatically repairs a failed or
       an unhealthy VM by recreating it. For more information, see About
       repairing VMs in a MIG.
       - DO_NOTHING: MIG does not repair a failed or an unhealthy
       VM.
       Check the DefaultActionOnFailure enum for the list of possible values.
       
      optional string default_action_on_failure = 61383253;
      Parameters:
      value - The bytes for defaultActionOnFailure to set.
      Returns:
      This builder for chaining.
    • hasForceUpdateOnRepair

      public boolean hasForceUpdateOnRepair()
       A bit indicating whether to forcefully apply the group's latest
       configuration when repairing a VM. Valid options are:
      
      
      
       -  NO (default): If configuration updates are available, they are not
       forcefully applied during repair. Instead, configuration updates are
       applied according to the group's update policy.
      
       -  YES: If configuration updates are available, they are applied
       during repair.
       Check the ForceUpdateOnRepair enum for the list of possible values.
       
      optional string force_update_on_repair = 356302027;
      Specified by:
      hasForceUpdateOnRepair in interface InstanceGroupManagerInstanceLifecyclePolicyOrBuilder
      Returns:
      Whether the forceUpdateOnRepair field is set.
    • getForceUpdateOnRepair

      public String getForceUpdateOnRepair()
       A bit indicating whether to forcefully apply the group's latest
       configuration when repairing a VM. Valid options are:
      
      
      
       -  NO (default): If configuration updates are available, they are not
       forcefully applied during repair. Instead, configuration updates are
       applied according to the group's update policy.
      
       -  YES: If configuration updates are available, they are applied
       during repair.
       Check the ForceUpdateOnRepair enum for the list of possible values.
       
      optional string force_update_on_repair = 356302027;
      Specified by:
      getForceUpdateOnRepair in interface InstanceGroupManagerInstanceLifecyclePolicyOrBuilder
      Returns:
      The forceUpdateOnRepair.
    • getForceUpdateOnRepairBytes

      public com.google.protobuf.ByteString getForceUpdateOnRepairBytes()
       A bit indicating whether to forcefully apply the group's latest
       configuration when repairing a VM. Valid options are:
      
      
      
       -  NO (default): If configuration updates are available, they are not
       forcefully applied during repair. Instead, configuration updates are
       applied according to the group's update policy.
      
       -  YES: If configuration updates are available, they are applied
       during repair.
       Check the ForceUpdateOnRepair enum for the list of possible values.
       
      optional string force_update_on_repair = 356302027;
      Specified by:
      getForceUpdateOnRepairBytes in interface InstanceGroupManagerInstanceLifecyclePolicyOrBuilder
      Returns:
      The bytes for forceUpdateOnRepair.
    • setForceUpdateOnRepair

      public InstanceGroupManagerInstanceLifecyclePolicy.Builder setForceUpdateOnRepair(String value)
       A bit indicating whether to forcefully apply the group's latest
       configuration when repairing a VM. Valid options are:
      
      
      
       -  NO (default): If configuration updates are available, they are not
       forcefully applied during repair. Instead, configuration updates are
       applied according to the group's update policy.
      
       -  YES: If configuration updates are available, they are applied
       during repair.
       Check the ForceUpdateOnRepair enum for the list of possible values.
       
      optional string force_update_on_repair = 356302027;
      Parameters:
      value - The forceUpdateOnRepair to set.
      Returns:
      This builder for chaining.
    • clearForceUpdateOnRepair

      public InstanceGroupManagerInstanceLifecyclePolicy.Builder clearForceUpdateOnRepair()
       A bit indicating whether to forcefully apply the group's latest
       configuration when repairing a VM. Valid options are:
      
      
      
       -  NO (default): If configuration updates are available, they are not
       forcefully applied during repair. Instead, configuration updates are
       applied according to the group's update policy.
      
       -  YES: If configuration updates are available, they are applied
       during repair.
       Check the ForceUpdateOnRepair enum for the list of possible values.
       
      optional string force_update_on_repair = 356302027;
      Returns:
      This builder for chaining.
    • setForceUpdateOnRepairBytes

      public InstanceGroupManagerInstanceLifecyclePolicy.Builder setForceUpdateOnRepairBytes(com.google.protobuf.ByteString value)
       A bit indicating whether to forcefully apply the group's latest
       configuration when repairing a VM. Valid options are:
      
      
      
       -  NO (default): If configuration updates are available, they are not
       forcefully applied during repair. Instead, configuration updates are
       applied according to the group's update policy.
      
       -  YES: If configuration updates are available, they are applied
       during repair.
       Check the ForceUpdateOnRepair enum for the list of possible values.
       
      optional string force_update_on_repair = 356302027;
      Parameters:
      value - The bytes for forceUpdateOnRepair to set.
      Returns:
      This builder for chaining.
    • hasOnFailedHealthCheck

      public boolean hasOnFailedHealthCheck()
       The action that a MIG performs on an unhealthy VM. A VM is marked as
       unhealthy when the application running on that VM fails a health check.
       Valid values are:
      
       - DEFAULT_ACTION (default): MIG uses the same action
       configured for instanceLifecyclePolicy.defaultActionOnFailure field.
       - REPAIR: MIG automatically repairs an unhealthy VM by
       recreating it.
       - DO_NOTHING: MIG doesn't repair an unhealthy VM.
       For more information, see
       About repairing VMs in a MIG.
       Check the OnFailedHealthCheck enum for the list of possible values.
       
      optional string on_failed_health_check = 39807943;
      Specified by:
      hasOnFailedHealthCheck in interface InstanceGroupManagerInstanceLifecyclePolicyOrBuilder
      Returns:
      Whether the onFailedHealthCheck field is set.
    • getOnFailedHealthCheck

      public String getOnFailedHealthCheck()
       The action that a MIG performs on an unhealthy VM. A VM is marked as
       unhealthy when the application running on that VM fails a health check.
       Valid values are:
      
       - DEFAULT_ACTION (default): MIG uses the same action
       configured for instanceLifecyclePolicy.defaultActionOnFailure field.
       - REPAIR: MIG automatically repairs an unhealthy VM by
       recreating it.
       - DO_NOTHING: MIG doesn't repair an unhealthy VM.
       For more information, see
       About repairing VMs in a MIG.
       Check the OnFailedHealthCheck enum for the list of possible values.
       
      optional string on_failed_health_check = 39807943;
      Specified by:
      getOnFailedHealthCheck in interface InstanceGroupManagerInstanceLifecyclePolicyOrBuilder
      Returns:
      The onFailedHealthCheck.
    • getOnFailedHealthCheckBytes

      public com.google.protobuf.ByteString getOnFailedHealthCheckBytes()
       The action that a MIG performs on an unhealthy VM. A VM is marked as
       unhealthy when the application running on that VM fails a health check.
       Valid values are:
      
       - DEFAULT_ACTION (default): MIG uses the same action
       configured for instanceLifecyclePolicy.defaultActionOnFailure field.
       - REPAIR: MIG automatically repairs an unhealthy VM by
       recreating it.
       - DO_NOTHING: MIG doesn't repair an unhealthy VM.
       For more information, see
       About repairing VMs in a MIG.
       Check the OnFailedHealthCheck enum for the list of possible values.
       
      optional string on_failed_health_check = 39807943;
      Specified by:
      getOnFailedHealthCheckBytes in interface InstanceGroupManagerInstanceLifecyclePolicyOrBuilder
      Returns:
      The bytes for onFailedHealthCheck.
    • setOnFailedHealthCheck

      public InstanceGroupManagerInstanceLifecyclePolicy.Builder setOnFailedHealthCheck(String value)
       The action that a MIG performs on an unhealthy VM. A VM is marked as
       unhealthy when the application running on that VM fails a health check.
       Valid values are:
      
       - DEFAULT_ACTION (default): MIG uses the same action
       configured for instanceLifecyclePolicy.defaultActionOnFailure field.
       - REPAIR: MIG automatically repairs an unhealthy VM by
       recreating it.
       - DO_NOTHING: MIG doesn't repair an unhealthy VM.
       For more information, see
       About repairing VMs in a MIG.
       Check the OnFailedHealthCheck enum for the list of possible values.
       
      optional string on_failed_health_check = 39807943;
      Parameters:
      value - The onFailedHealthCheck to set.
      Returns:
      This builder for chaining.
    • clearOnFailedHealthCheck

      public InstanceGroupManagerInstanceLifecyclePolicy.Builder clearOnFailedHealthCheck()
       The action that a MIG performs on an unhealthy VM. A VM is marked as
       unhealthy when the application running on that VM fails a health check.
       Valid values are:
      
       - DEFAULT_ACTION (default): MIG uses the same action
       configured for instanceLifecyclePolicy.defaultActionOnFailure field.
       - REPAIR: MIG automatically repairs an unhealthy VM by
       recreating it.
       - DO_NOTHING: MIG doesn't repair an unhealthy VM.
       For more information, see
       About repairing VMs in a MIG.
       Check the OnFailedHealthCheck enum for the list of possible values.
       
      optional string on_failed_health_check = 39807943;
      Returns:
      This builder for chaining.
    • setOnFailedHealthCheckBytes

      public InstanceGroupManagerInstanceLifecyclePolicy.Builder setOnFailedHealthCheckBytes(com.google.protobuf.ByteString value)
       The action that a MIG performs on an unhealthy VM. A VM is marked as
       unhealthy when the application running on that VM fails a health check.
       Valid values are:
      
       - DEFAULT_ACTION (default): MIG uses the same action
       configured for instanceLifecyclePolicy.defaultActionOnFailure field.
       - REPAIR: MIG automatically repairs an unhealthy VM by
       recreating it.
       - DO_NOTHING: MIG doesn't repair an unhealthy VM.
       For more information, see
       About repairing VMs in a MIG.
       Check the OnFailedHealthCheck enum for the list of possible values.
       
      optional string on_failed_health_check = 39807943;
      Parameters:
      value - The bytes for onFailedHealthCheck to set.
      Returns:
      This builder for chaining.