Class LifecyclePolicy.ActionCondition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LifecyclePolicy.ActionCondition.Builder>
com.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition.Builder
All Implemented Interfaces:
LifecyclePolicy.ActionConditionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LifecyclePolicy.ActionCondition

public static final class LifecyclePolicy.ActionCondition.Builder extends com.google.protobuf.GeneratedMessage.Builder<LifecyclePolicy.ActionCondition.Builder> implements LifecyclePolicy.ActionConditionOrBuilder
 Conditions for actions to deal with task failures.
 
Protobuf type google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition
  • 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<LifecyclePolicy.ActionCondition.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<LifecyclePolicy.ActionCondition.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<LifecyclePolicy.ActionCondition.Builder>
    • getDefaultInstanceForType

      public LifecyclePolicy.ActionCondition 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 LifecyclePolicy.ActionCondition buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public LifecyclePolicy.ActionCondition.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<LifecyclePolicy.ActionCondition.Builder>
      Throws:
      IOException
    • getExitCodesList

      public List<Integer> getExitCodesList()
       Exit codes of a task execution.
       If there are more than 1 exit codes,
       when task executes with any of the exit code in the list,
       the condition is met and the action will be executed.
       
      repeated int32 exit_codes = 1;
      Specified by:
      getExitCodesList in interface LifecyclePolicy.ActionConditionOrBuilder
      Returns:
      A list containing the exitCodes.
    • getExitCodesCount

      public int getExitCodesCount()
       Exit codes of a task execution.
       If there are more than 1 exit codes,
       when task executes with any of the exit code in the list,
       the condition is met and the action will be executed.
       
      repeated int32 exit_codes = 1;
      Specified by:
      getExitCodesCount in interface LifecyclePolicy.ActionConditionOrBuilder
      Returns:
      The count of exitCodes.
    • getExitCodes

      public int getExitCodes(int index)
       Exit codes of a task execution.
       If there are more than 1 exit codes,
       when task executes with any of the exit code in the list,
       the condition is met and the action will be executed.
       
      repeated int32 exit_codes = 1;
      Specified by:
      getExitCodes in interface LifecyclePolicy.ActionConditionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The exitCodes at the given index.
    • setExitCodes

      public LifecyclePolicy.ActionCondition.Builder setExitCodes(int index, int value)
       Exit codes of a task execution.
       If there are more than 1 exit codes,
       when task executes with any of the exit code in the list,
       the condition is met and the action will be executed.
       
      repeated int32 exit_codes = 1;
      Parameters:
      index - The index to set the value at.
      value - The exitCodes to set.
      Returns:
      This builder for chaining.
    • addExitCodes

      public LifecyclePolicy.ActionCondition.Builder addExitCodes(int value)
       Exit codes of a task execution.
       If there are more than 1 exit codes,
       when task executes with any of the exit code in the list,
       the condition is met and the action will be executed.
       
      repeated int32 exit_codes = 1;
      Parameters:
      value - The exitCodes to add.
      Returns:
      This builder for chaining.
    • addAllExitCodes

      public LifecyclePolicy.ActionCondition.Builder addAllExitCodes(Iterable<? extends Integer> values)
       Exit codes of a task execution.
       If there are more than 1 exit codes,
       when task executes with any of the exit code in the list,
       the condition is met and the action will be executed.
       
      repeated int32 exit_codes = 1;
      Parameters:
      values - The exitCodes to add.
      Returns:
      This builder for chaining.
    • clearExitCodes

      public LifecyclePolicy.ActionCondition.Builder clearExitCodes()
       Exit codes of a task execution.
       If there are more than 1 exit codes,
       when task executes with any of the exit code in the list,
       the condition is met and the action will be executed.
       
      repeated int32 exit_codes = 1;
      Returns:
      This builder for chaining.