Class NexusOperationStartedEventAttributes.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<NexusOperationStartedEventAttributes.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<NexusOperationStartedEventAttributes.Builder>
io.temporal.api.history.v1.NexusOperationStartedEventAttributes.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, NexusOperationStartedEventAttributesOrBuilder, 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 Details

    • 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>
    • 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<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

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

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

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

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

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

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

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

    • 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 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:
      IOException
    • getScheduledEventId

      public long getScheduledEventId()
       The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to.
       
      int64 scheduled_event_id = 1;
      Specified by:
      getScheduledEventId in interface NexusOperationStartedEventAttributesOrBuilder
      Returns:
      The scheduledEventId.
    • 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 String getOperationId()
      Deprecated.
      temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=1098
       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=1098
       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.
      temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=1098
       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.
      temporal.api.history.v1.NexusOperationStartedEventAttributes.operation_id is deprecated. See temporal/api/history/v1/message.proto;l=1098
       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=1098
       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.
    • getRequestId

      public String getRequestId()
       The request ID allocated at schedule time.
       
      string request_id = 4;
      Specified by:
      getRequestId in interface NexusOperationStartedEventAttributesOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       The request ID allocated at schedule time.
       
      string request_id = 4;
      Specified by:
      getRequestIdBytes in interface NexusOperationStartedEventAttributesOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

       The request ID allocated at schedule time.
       
      string request_id = 4;
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

       The request ID allocated at schedule time.
       
      string request_id = 4;
      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 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(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.
    • setUnknownFields

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

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