Class ScheduleState.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ScheduleStateOrBuilder, java.lang.Cloneable
    Enclosing class:
    ScheduleState

    public static final class ScheduleState.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
    implements ScheduleStateOrBuilder
    Protobuf type temporal.api.schedule.v1.ScheduleState
    • 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<ScheduleState.Builder>
      • clear

        public ScheduleState.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.GeneratedMessageV3.Builder<ScheduleState.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<ScheduleState.Builder>
      • getDefaultInstanceForType

        public ScheduleState getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

        public ScheduleState.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
      • setField

        public ScheduleState.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
      • clearField

        public ScheduleState.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
      • clearOneof

        public ScheduleState.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
      • setRepeatedField

        public ScheduleState.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
      • addRepeatedField

        public ScheduleState.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
      • mergeFrom

        public ScheduleState.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<ScheduleState.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
      • mergeFrom

        public ScheduleState.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.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<ScheduleState.Builder>
        Throws:
        java.io.IOException
      • getNotes

        public java.lang.String getNotes()
         Informative human-readable message with contextual notes, e.g. the reason
         a schedule is paused. The system may overwrite this message on certain
         conditions, e.g. when pause-on-failure happens.
         
        string notes = 1;
        Specified by:
        getNotes in interface ScheduleStateOrBuilder
        Returns:
        The notes.
      • getNotesBytes

        public com.google.protobuf.ByteString getNotesBytes()
         Informative human-readable message with contextual notes, e.g. the reason
         a schedule is paused. The system may overwrite this message on certain
         conditions, e.g. when pause-on-failure happens.
         
        string notes = 1;
        Specified by:
        getNotesBytes in interface ScheduleStateOrBuilder
        Returns:
        The bytes for notes.
      • setNotes

        public ScheduleState.Builder setNotes​(java.lang.String value)
         Informative human-readable message with contextual notes, e.g. the reason
         a schedule is paused. The system may overwrite this message on certain
         conditions, e.g. when pause-on-failure happens.
         
        string notes = 1;
        Parameters:
        value - The notes to set.
        Returns:
        This builder for chaining.
      • clearNotes

        public ScheduleState.Builder clearNotes()
         Informative human-readable message with contextual notes, e.g. the reason
         a schedule is paused. The system may overwrite this message on certain
         conditions, e.g. when pause-on-failure happens.
         
        string notes = 1;
        Returns:
        This builder for chaining.
      • setNotesBytes

        public ScheduleState.Builder setNotesBytes​(com.google.protobuf.ByteString value)
         Informative human-readable message with contextual notes, e.g. the reason
         a schedule is paused. The system may overwrite this message on certain
         conditions, e.g. when pause-on-failure happens.
         
        string notes = 1;
        Parameters:
        value - The bytes for notes to set.
        Returns:
        This builder for chaining.
      • getPaused

        public boolean getPaused()
         If true, do not take any actions based on the schedule spec.
         
        bool paused = 2;
        Specified by:
        getPaused in interface ScheduleStateOrBuilder
        Returns:
        The paused.
      • setPaused

        public ScheduleState.Builder setPaused​(boolean value)
         If true, do not take any actions based on the schedule spec.
         
        bool paused = 2;
        Parameters:
        value - The paused to set.
        Returns:
        This builder for chaining.
      • clearPaused

        public ScheduleState.Builder clearPaused()
         If true, do not take any actions based on the schedule spec.
         
        bool paused = 2;
        Returns:
        This builder for chaining.
      • getLimitedActions

        public boolean getLimitedActions()
         If limited_actions is true, decrement remaining_actions after each
         action, and do not take any more scheduled actions if remaining_actions
         is zero. Actions may still be taken by explicit request (i.e. trigger
         immediately or backfill). Skipped actions (due to overlap policy) do not
         count against remaining actions.
         
        bool limited_actions = 3;
        Specified by:
        getLimitedActions in interface ScheduleStateOrBuilder
        Returns:
        The limitedActions.
      • setLimitedActions

        public ScheduleState.Builder setLimitedActions​(boolean value)
         If limited_actions is true, decrement remaining_actions after each
         action, and do not take any more scheduled actions if remaining_actions
         is zero. Actions may still be taken by explicit request (i.e. trigger
         immediately or backfill). Skipped actions (due to overlap policy) do not
         count against remaining actions.
         
        bool limited_actions = 3;
        Parameters:
        value - The limitedActions to set.
        Returns:
        This builder for chaining.
      • clearLimitedActions

        public ScheduleState.Builder clearLimitedActions()
         If limited_actions is true, decrement remaining_actions after each
         action, and do not take any more scheduled actions if remaining_actions
         is zero. Actions may still be taken by explicit request (i.e. trigger
         immediately or backfill). Skipped actions (due to overlap policy) do not
         count against remaining actions.
         
        bool limited_actions = 3;
        Returns:
        This builder for chaining.
      • setRemainingActions

        public ScheduleState.Builder setRemainingActions​(long value)
        int64 remaining_actions = 4;
        Parameters:
        value - The remainingActions to set.
        Returns:
        This builder for chaining.
      • clearRemainingActions

        public ScheduleState.Builder clearRemainingActions()
        int64 remaining_actions = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ScheduleState.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>
      • mergeUnknownFields

        public final ScheduleState.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ScheduleState.Builder>