Class LifecyclePolicy.ActionCondition.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LifecyclePolicy.ActionCondition.Builder>
      • 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.