Class CallbackInfo.Builder

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

    public static final class CallbackInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CallbackInfo.Builder>
    implements CallbackInfoOrBuilder
     CallbackInfo contains the state of an attached workflow callback.
     
    Protobuf type temporal.api.workflow.v1.CallbackInfo
    • 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<CallbackInfo.Builder>
      • clear

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

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

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

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

        public CallbackInfo.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<CallbackInfo.Builder>
      • setField

        public CallbackInfo.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<CallbackInfo.Builder>
      • clearField

        public CallbackInfo.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<CallbackInfo.Builder>
      • clearOneof

        public CallbackInfo.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<CallbackInfo.Builder>
      • setRepeatedField

        public CallbackInfo.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<CallbackInfo.Builder>
      • addRepeatedField

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

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

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

        public CallbackInfo.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<CallbackInfo.Builder>
        Throws:
        java.io.IOException
      • hasCallback

        public boolean hasCallback()
         Information on how this callback should be invoked (e.g. its URL and type).
         
        .temporal.api.common.v1.Callback callback = 1;
        Specified by:
        hasCallback in interface CallbackInfoOrBuilder
        Returns:
        Whether the callback field is set.
      • getCallback

        public Callback getCallback()
         Information on how this callback should be invoked (e.g. its URL and type).
         
        .temporal.api.common.v1.Callback callback = 1;
        Specified by:
        getCallback in interface CallbackInfoOrBuilder
        Returns:
        The callback.
      • setCallback

        public CallbackInfo.Builder setCallback​(Callback value)
         Information on how this callback should be invoked (e.g. its URL and type).
         
        .temporal.api.common.v1.Callback callback = 1;
      • setCallback

        public CallbackInfo.Builder setCallback​(Callback.Builder builderForValue)
         Information on how this callback should be invoked (e.g. its URL and type).
         
        .temporal.api.common.v1.Callback callback = 1;
      • mergeCallback

        public CallbackInfo.Builder mergeCallback​(Callback value)
         Information on how this callback should be invoked (e.g. its URL and type).
         
        .temporal.api.common.v1.Callback callback = 1;
      • clearCallback

        public CallbackInfo.Builder clearCallback()
         Information on how this callback should be invoked (e.g. its URL and type).
         
        .temporal.api.common.v1.Callback callback = 1;
      • getCallbackBuilder

        public Callback.Builder getCallbackBuilder()
         Information on how this callback should be invoked (e.g. its URL and type).
         
        .temporal.api.common.v1.Callback callback = 1;
      • hasTrigger

        public boolean hasTrigger()
         Trigger for this callback.
         
        .temporal.api.workflow.v1.CallbackInfo.Trigger trigger = 2;
        Specified by:
        hasTrigger in interface CallbackInfoOrBuilder
        Returns:
        Whether the trigger field is set.
      • clearTrigger

        public CallbackInfo.Builder clearTrigger()
         Trigger for this callback.
         
        .temporal.api.workflow.v1.CallbackInfo.Trigger trigger = 2;
      • getTriggerBuilder

        public CallbackInfo.Trigger.Builder getTriggerBuilder()
         Trigger for this callback.
         
        .temporal.api.workflow.v1.CallbackInfo.Trigger trigger = 2;
      • hasRegistrationTime

        public boolean hasRegistrationTime()
         The time when the callback was registered.
         
        .google.protobuf.Timestamp registration_time = 3;
        Specified by:
        hasRegistrationTime in interface CallbackInfoOrBuilder
        Returns:
        Whether the registrationTime field is set.
      • getRegistrationTime

        public com.google.protobuf.Timestamp getRegistrationTime()
         The time when the callback was registered.
         
        .google.protobuf.Timestamp registration_time = 3;
        Specified by:
        getRegistrationTime in interface CallbackInfoOrBuilder
        Returns:
        The registrationTime.
      • setRegistrationTime

        public CallbackInfo.Builder setRegistrationTime​(com.google.protobuf.Timestamp value)
         The time when the callback was registered.
         
        .google.protobuf.Timestamp registration_time = 3;
      • setRegistrationTime

        public CallbackInfo.Builder setRegistrationTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time when the callback was registered.
         
        .google.protobuf.Timestamp registration_time = 3;
      • mergeRegistrationTime

        public CallbackInfo.Builder mergeRegistrationTime​(com.google.protobuf.Timestamp value)
         The time when the callback was registered.
         
        .google.protobuf.Timestamp registration_time = 3;
      • clearRegistrationTime

        public CallbackInfo.Builder clearRegistrationTime()
         The time when the callback was registered.
         
        .google.protobuf.Timestamp registration_time = 3;
      • getRegistrationTimeBuilder

        public com.google.protobuf.Timestamp.Builder getRegistrationTimeBuilder()
         The time when the callback was registered.
         
        .google.protobuf.Timestamp registration_time = 3;
      • getRegistrationTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getRegistrationTimeOrBuilder()
         The time when the callback was registered.
         
        .google.protobuf.Timestamp registration_time = 3;
        Specified by:
        getRegistrationTimeOrBuilder in interface CallbackInfoOrBuilder
      • getStateValue

        public int getStateValue()
        .temporal.api.enums.v1.CallbackState state = 4;
        Specified by:
        getStateValue in interface CallbackInfoOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public CallbackInfo.Builder setStateValue​(int value)
        .temporal.api.enums.v1.CallbackState state = 4;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • setState

        public CallbackInfo.Builder setState​(CallbackState value)
        .temporal.api.enums.v1.CallbackState state = 4;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public CallbackInfo.Builder clearState()
        .temporal.api.enums.v1.CallbackState state = 4;
        Returns:
        This builder for chaining.
      • getAttempt

        public int getAttempt()
         The number of attempts made to deliver the callback.
         This number represents a minimum bound since the attempt is incremented after the callback request completes.
         
        int32 attempt = 5;
        Specified by:
        getAttempt in interface CallbackInfoOrBuilder
        Returns:
        The attempt.
      • setAttempt

        public CallbackInfo.Builder setAttempt​(int value)
         The number of attempts made to deliver the callback.
         This number represents a minimum bound since the attempt is incremented after the callback request completes.
         
        int32 attempt = 5;
        Parameters:
        value - The attempt to set.
        Returns:
        This builder for chaining.
      • clearAttempt

        public CallbackInfo.Builder clearAttempt()
         The number of attempts made to deliver the callback.
         This number represents a minimum bound since the attempt is incremented after the callback request completes.
         
        int32 attempt = 5;
        Returns:
        This builder for chaining.
      • hasLastAttemptCompleteTime

        public boolean hasLastAttemptCompleteTime()
         The time when the last attempt completed.
         
        .google.protobuf.Timestamp last_attempt_complete_time = 6;
        Specified by:
        hasLastAttemptCompleteTime in interface CallbackInfoOrBuilder
        Returns:
        Whether the lastAttemptCompleteTime field is set.
      • getLastAttemptCompleteTime

        public com.google.protobuf.Timestamp getLastAttemptCompleteTime()
         The time when the last attempt completed.
         
        .google.protobuf.Timestamp last_attempt_complete_time = 6;
        Specified by:
        getLastAttemptCompleteTime in interface CallbackInfoOrBuilder
        Returns:
        The lastAttemptCompleteTime.
      • setLastAttemptCompleteTime

        public CallbackInfo.Builder setLastAttemptCompleteTime​(com.google.protobuf.Timestamp value)
         The time when the last attempt completed.
         
        .google.protobuf.Timestamp last_attempt_complete_time = 6;
      • setLastAttemptCompleteTime

        public CallbackInfo.Builder setLastAttemptCompleteTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time when the last attempt completed.
         
        .google.protobuf.Timestamp last_attempt_complete_time = 6;
      • mergeLastAttemptCompleteTime

        public CallbackInfo.Builder mergeLastAttemptCompleteTime​(com.google.protobuf.Timestamp value)
         The time when the last attempt completed.
         
        .google.protobuf.Timestamp last_attempt_complete_time = 6;
      • clearLastAttemptCompleteTime

        public CallbackInfo.Builder clearLastAttemptCompleteTime()
         The time when the last attempt completed.
         
        .google.protobuf.Timestamp last_attempt_complete_time = 6;
      • getLastAttemptCompleteTimeBuilder

        public com.google.protobuf.Timestamp.Builder getLastAttemptCompleteTimeBuilder()
         The time when the last attempt completed.
         
        .google.protobuf.Timestamp last_attempt_complete_time = 6;
      • getLastAttemptCompleteTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastAttemptCompleteTimeOrBuilder()
         The time when the last attempt completed.
         
        .google.protobuf.Timestamp last_attempt_complete_time = 6;
        Specified by:
        getLastAttemptCompleteTimeOrBuilder in interface CallbackInfoOrBuilder
      • hasLastAttemptFailure

        public boolean hasLastAttemptFailure()
         The last attempt's failure, if any.
         
        .temporal.api.failure.v1.Failure last_attempt_failure = 7;
        Specified by:
        hasLastAttemptFailure in interface CallbackInfoOrBuilder
        Returns:
        Whether the lastAttemptFailure field is set.
      • getLastAttemptFailure

        public Failure getLastAttemptFailure()
         The last attempt's failure, if any.
         
        .temporal.api.failure.v1.Failure last_attempt_failure = 7;
        Specified by:
        getLastAttemptFailure in interface CallbackInfoOrBuilder
        Returns:
        The lastAttemptFailure.
      • setLastAttemptFailure

        public CallbackInfo.Builder setLastAttemptFailure​(Failure value)
         The last attempt's failure, if any.
         
        .temporal.api.failure.v1.Failure last_attempt_failure = 7;
      • setLastAttemptFailure

        public CallbackInfo.Builder setLastAttemptFailure​(Failure.Builder builderForValue)
         The last attempt's failure, if any.
         
        .temporal.api.failure.v1.Failure last_attempt_failure = 7;
      • mergeLastAttemptFailure

        public CallbackInfo.Builder mergeLastAttemptFailure​(Failure value)
         The last attempt's failure, if any.
         
        .temporal.api.failure.v1.Failure last_attempt_failure = 7;
      • clearLastAttemptFailure

        public CallbackInfo.Builder clearLastAttemptFailure()
         The last attempt's failure, if any.
         
        .temporal.api.failure.v1.Failure last_attempt_failure = 7;
      • getLastAttemptFailureBuilder

        public Failure.Builder getLastAttemptFailureBuilder()
         The last attempt's failure, if any.
         
        .temporal.api.failure.v1.Failure last_attempt_failure = 7;
      • hasNextAttemptScheduleTime

        public boolean hasNextAttemptScheduleTime()
         The time when the next attempt is scheduled.
         
        .google.protobuf.Timestamp next_attempt_schedule_time = 8;
        Specified by:
        hasNextAttemptScheduleTime in interface CallbackInfoOrBuilder
        Returns:
        Whether the nextAttemptScheduleTime field is set.
      • getNextAttemptScheduleTime

        public com.google.protobuf.Timestamp getNextAttemptScheduleTime()
         The time when the next attempt is scheduled.
         
        .google.protobuf.Timestamp next_attempt_schedule_time = 8;
        Specified by:
        getNextAttemptScheduleTime in interface CallbackInfoOrBuilder
        Returns:
        The nextAttemptScheduleTime.
      • setNextAttemptScheduleTime

        public CallbackInfo.Builder setNextAttemptScheduleTime​(com.google.protobuf.Timestamp value)
         The time when the next attempt is scheduled.
         
        .google.protobuf.Timestamp next_attempt_schedule_time = 8;
      • setNextAttemptScheduleTime

        public CallbackInfo.Builder setNextAttemptScheduleTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time when the next attempt is scheduled.
         
        .google.protobuf.Timestamp next_attempt_schedule_time = 8;
      • mergeNextAttemptScheduleTime

        public CallbackInfo.Builder mergeNextAttemptScheduleTime​(com.google.protobuf.Timestamp value)
         The time when the next attempt is scheduled.
         
        .google.protobuf.Timestamp next_attempt_schedule_time = 8;
      • clearNextAttemptScheduleTime

        public CallbackInfo.Builder clearNextAttemptScheduleTime()
         The time when the next attempt is scheduled.
         
        .google.protobuf.Timestamp next_attempt_schedule_time = 8;
      • getNextAttemptScheduleTimeBuilder

        public com.google.protobuf.Timestamp.Builder getNextAttemptScheduleTimeBuilder()
         The time when the next attempt is scheduled.
         
        .google.protobuf.Timestamp next_attempt_schedule_time = 8;
      • getNextAttemptScheduleTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getNextAttemptScheduleTimeOrBuilder()
         The time when the next attempt is scheduled.
         
        .google.protobuf.Timestamp next_attempt_schedule_time = 8;
        Specified by:
        getNextAttemptScheduleTimeOrBuilder in interface CallbackInfoOrBuilder
      • setUnknownFields

        public final CallbackInfo.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<CallbackInfo.Builder>
      • mergeUnknownFields

        public final CallbackInfo.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<CallbackInfo.Builder>