Class NexusOperationCancellationInfo.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<NexusOperationCancellationInfo.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<NexusOperationCancellationInfo.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

        public boolean hasRequestedTime()
         The time when cancellation was requested.
         
        .google.protobuf.Timestamp requested_time = 1;
        Specified by:
        hasRequestedTime in interface NexusOperationCancellationInfoOrBuilder
        Returns:
        Whether the requestedTime field is set.
      • getRequestedTime

        public com.google.protobuf.Timestamp getRequestedTime()
         The time when cancellation was requested.
         
        .google.protobuf.Timestamp requested_time = 1;
        Specified by:
        getRequestedTime in interface NexusOperationCancellationInfoOrBuilder
        Returns:
        The requestedTime.
      • setRequestedTime

        public NexusOperationCancellationInfo.Builder setRequestedTime​(com.google.protobuf.Timestamp value)
         The time when cancellation was requested.
         
        .google.protobuf.Timestamp requested_time = 1;
      • setRequestedTime

        public NexusOperationCancellationInfo.Builder setRequestedTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time when cancellation was requested.
         
        .google.protobuf.Timestamp requested_time = 1;
      • mergeRequestedTime

        public NexusOperationCancellationInfo.Builder mergeRequestedTime​(com.google.protobuf.Timestamp value)
         The time when cancellation was requested.
         
        .google.protobuf.Timestamp requested_time = 1;
      • getRequestedTimeBuilder

        public com.google.protobuf.Timestamp.Builder getRequestedTimeBuilder()
         The time when cancellation was requested.
         
        .google.protobuf.Timestamp requested_time = 1;
      • setStateValue

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

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

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

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

        public boolean hasLastAttemptCompleteTime()
         The time when the last attempt completed.
         
        .google.protobuf.Timestamp last_attempt_complete_time = 4;
        Specified by:
        hasLastAttemptCompleteTime in interface NexusOperationCancellationInfoOrBuilder
        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 = 4;
        Specified by:
        getLastAttemptCompleteTime in interface NexusOperationCancellationInfoOrBuilder
        Returns:
        The lastAttemptCompleteTime.
      • setLastAttemptCompleteTime

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

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

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

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

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

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

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

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

        public boolean hasNextAttemptScheduleTime()
         The time when the next attempt is scheduled.
         
        .google.protobuf.Timestamp next_attempt_schedule_time = 6;
        Specified by:
        hasNextAttemptScheduleTime in interface NexusOperationCancellationInfoOrBuilder
        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 = 6;
        Specified by:
        getNextAttemptScheduleTime in interface NexusOperationCancellationInfoOrBuilder
        Returns:
        The nextAttemptScheduleTime.
      • setNextAttemptScheduleTime

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

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

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

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

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