Class NexusOperationStartedEventAttributes.Builder

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

    public static final class NexusOperationStartedEventAttributes.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NexusOperationStartedEventAttributes.Builder>
    implements NexusOperationStartedEventAttributesOrBuilder
     Event marking an asynchronous operation was started by the responding Nexus handler.
     If the operation completes synchronously, this event is not generated.
     In rare situations, such as request timeouts, the service may fail to record the actual start time and will fabricate
     this event upon receiving the operation completion via callback.
     
    Protobuf type temporal.api.history.v1.NexusOperationStartedEventAttributes
    • 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<NexusOperationStartedEventAttributes.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<NexusOperationStartedEventAttributes.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public NexusOperationStartedEventAttributes.Builder setScheduledEventId​(long value)
         The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to.
         
        int64 scheduled_event_id = 1;
        Parameters:
        value - The scheduledEventId to set.
        Returns:
        This builder for chaining.
      • clearScheduledEventId

        public NexusOperationStartedEventAttributes.Builder clearScheduledEventId()
         The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to.
         
        int64 scheduled_event_id = 1;
        Returns:
        This builder for chaining.
      • getOperationId

        @Deprecated
        public java.lang.String getOperationId()
        Deprecated.
        temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=916
         The operation ID returned by the Nexus handler in the response to the StartOperation request.
         This ID is used when canceling the operation.
        
         Deprecated: Renamed to operation_token.
         
        string operation_id = 3 [deprecated = true];
        Specified by:
        getOperationId in interface NexusOperationStartedEventAttributesOrBuilder
        Returns:
        The operationId.
      • getOperationIdBytes

        @Deprecated
        public com.google.protobuf.ByteString getOperationIdBytes()
        Deprecated.
        temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=916
         The operation ID returned by the Nexus handler in the response to the StartOperation request.
         This ID is used when canceling the operation.
        
         Deprecated: Renamed to operation_token.
         
        string operation_id = 3 [deprecated = true];
        Specified by:
        getOperationIdBytes in interface NexusOperationStartedEventAttributesOrBuilder
        Returns:
        The bytes for operationId.
      • setOperationId

        @Deprecated
        public NexusOperationStartedEventAttributes.Builder setOperationId​(java.lang.String value)
        Deprecated.
        temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=916
         The operation ID returned by the Nexus handler in the response to the StartOperation request.
         This ID is used when canceling the operation.
        
         Deprecated: Renamed to operation_token.
         
        string operation_id = 3 [deprecated = true];
        Parameters:
        value - The operationId to set.
        Returns:
        This builder for chaining.
      • clearOperationId

        @Deprecated
        public NexusOperationStartedEventAttributes.Builder clearOperationId()
        Deprecated.
        temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=916
         The operation ID returned by the Nexus handler in the response to the StartOperation request.
         This ID is used when canceling the operation.
        
         Deprecated: Renamed to operation_token.
         
        string operation_id = 3 [deprecated = true];
        Returns:
        This builder for chaining.
      • setOperationIdBytes

        @Deprecated
        public NexusOperationStartedEventAttributes.Builder setOperationIdBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=916
         The operation ID returned by the Nexus handler in the response to the StartOperation request.
         This ID is used when canceling the operation.
        
         Deprecated: Renamed to operation_token.
         
        string operation_id = 3 [deprecated = true];
        Parameters:
        value - The bytes for operationId to set.
        Returns:
        This builder for chaining.
      • setRequestId

        public NexusOperationStartedEventAttributes.Builder setRequestId​(java.lang.String value)
         The request ID allocated at schedule time.
         
        string request_id = 4;
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public NexusOperationStartedEventAttributes.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         The request ID allocated at schedule time.
         
        string request_id = 4;
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • getOperationToken

        public java.lang.String getOperationToken()
         The operation token returned by the Nexus handler in the response to the StartOperation request.
         This token is used when canceling the operation.
         
        string operation_token = 5;
        Specified by:
        getOperationToken in interface NexusOperationStartedEventAttributesOrBuilder
        Returns:
        The operationToken.
      • getOperationTokenBytes

        public com.google.protobuf.ByteString getOperationTokenBytes()
         The operation token returned by the Nexus handler in the response to the StartOperation request.
         This token is used when canceling the operation.
         
        string operation_token = 5;
        Specified by:
        getOperationTokenBytes in interface NexusOperationStartedEventAttributesOrBuilder
        Returns:
        The bytes for operationToken.
      • setOperationToken

        public NexusOperationStartedEventAttributes.Builder setOperationToken​(java.lang.String value)
         The operation token returned by the Nexus handler in the response to the StartOperation request.
         This token is used when canceling the operation.
         
        string operation_token = 5;
        Parameters:
        value - The operationToken to set.
        Returns:
        This builder for chaining.
      • clearOperationToken

        public NexusOperationStartedEventAttributes.Builder clearOperationToken()
         The operation token returned by the Nexus handler in the response to the StartOperation request.
         This token is used when canceling the operation.
         
        string operation_token = 5;
        Returns:
        This builder for chaining.
      • setOperationTokenBytes

        public NexusOperationStartedEventAttributes.Builder setOperationTokenBytes​(com.google.protobuf.ByteString value)
         The operation token returned by the Nexus handler in the response to the StartOperation request.
         This token is used when canceling the operation.
         
        string operation_token = 5;
        Parameters:
        value - The bytes for operationToken to set.
        Returns:
        This builder for chaining.