Class ActivityTaskStartedEventAttributes.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ActivityTaskStartedEventAttributes.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ActivityTaskStartedEventAttributes.Builder>
io.temporal.api.history.v1.ActivityTaskStartedEventAttributes.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ActivityTaskStartedEventAttributesOrBuilder, Cloneable
Enclosing class:
ActivityTaskStartedEventAttributes

public static final class ActivityTaskStartedEventAttributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ActivityTaskStartedEventAttributes.Builder> implements ActivityTaskStartedEventAttributesOrBuilder
Protobuf type temporal.api.history.v1.ActivityTaskStartedEventAttributes
  • 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<ActivityTaskStartedEventAttributes.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<ActivityTaskStartedEventAttributes.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<ActivityTaskStartedEventAttributes.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public ActivityTaskStartedEventAttributes.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<ActivityTaskStartedEventAttributes.Builder>
      Throws:
      IOException
    • getScheduledEventId

      public long getScheduledEventId()
       The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to
       
      int64 scheduled_event_id = 1;
      Specified by:
      getScheduledEventId in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      The scheduledEventId.
    • setScheduledEventId

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

      public ActivityTaskStartedEventAttributes.Builder clearScheduledEventId()
       The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to
       
      int64 scheduled_event_id = 1;
      Returns:
      This builder for chaining.
    • getIdentity

      public String getIdentity()
       id of the worker that picked up this task
       
      string identity = 2;
      Specified by:
      getIdentity in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      The identity.
    • getIdentityBytes

      public com.google.protobuf.ByteString getIdentityBytes()
       id of the worker that picked up this task
       
      string identity = 2;
      Specified by:
      getIdentityBytes in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      The bytes for identity.
    • setIdentity

       id of the worker that picked up this task
       
      string identity = 2;
      Parameters:
      value - The identity to set.
      Returns:
      This builder for chaining.
    • clearIdentity

       id of the worker that picked up this task
       
      string identity = 2;
      Returns:
      This builder for chaining.
    • setIdentityBytes

      public ActivityTaskStartedEventAttributes.Builder setIdentityBytes(com.google.protobuf.ByteString value)
       id of the worker that picked up this task
       
      string identity = 2;
      Parameters:
      value - The bytes for identity to set.
      Returns:
      This builder for chaining.
    • getRequestId

      public String getRequestId()
       This field is populated from the RecordActivityTaskStartedRequest. Matching service would
       set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful
       in case a RecordActivityTaskStarted call succeed but matching doesn't get that response,
       so matching could retry and history service would return success if the request_id matches.
       In that case, matching will continue to deliver the task to worker. Without this field, history
       service would return AlreadyStarted error, and matching would drop the task.
       
      string request_id = 3;
      Specified by:
      getRequestId in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       This field is populated from the RecordActivityTaskStartedRequest. Matching service would
       set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful
       in case a RecordActivityTaskStarted call succeed but matching doesn't get that response,
       so matching could retry and history service would return success if the request_id matches.
       In that case, matching will continue to deliver the task to worker. Without this field, history
       service would return AlreadyStarted error, and matching would drop the task.
       
      string request_id = 3;
      Specified by:
      getRequestIdBytes in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

       This field is populated from the RecordActivityTaskStartedRequest. Matching service would
       set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful
       in case a RecordActivityTaskStarted call succeed but matching doesn't get that response,
       so matching could retry and history service would return success if the request_id matches.
       In that case, matching will continue to deliver the task to worker. Without this field, history
       service would return AlreadyStarted error, and matching would drop the task.
       
      string request_id = 3;
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

       This field is populated from the RecordActivityTaskStartedRequest. Matching service would
       set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful
       in case a RecordActivityTaskStarted call succeed but matching doesn't get that response,
       so matching could retry and history service would return success if the request_id matches.
       In that case, matching will continue to deliver the task to worker. Without this field, history
       service would return AlreadyStarted error, and matching would drop the task.
       
      string request_id = 3;
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public ActivityTaskStartedEventAttributes.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       This field is populated from the RecordActivityTaskStartedRequest. Matching service would
       set the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful
       in case a RecordActivityTaskStarted call succeed but matching doesn't get that response,
       so matching could retry and history service would return success if the request_id matches.
       In that case, matching will continue to deliver the task to worker. Without this field, history
       service would return AlreadyStarted error, and matching would drop the task.
       
      string request_id = 3;
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.
    • getAttempt

      public int getAttempt()
       Starting at 1, the number of times this task has been attempted
       
      int32 attempt = 4;
      Specified by:
      getAttempt in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      The attempt.
    • setAttempt

      public ActivityTaskStartedEventAttributes.Builder setAttempt(int value)
       Starting at 1, the number of times this task has been attempted
       
      int32 attempt = 4;
      Parameters:
      value - The attempt to set.
      Returns:
      This builder for chaining.
    • clearAttempt

       Starting at 1, the number of times this task has been attempted
       
      int32 attempt = 4;
      Returns:
      This builder for chaining.
    • hasLastFailure

      public boolean hasLastFailure()
       Will be set to the most recent failure details, if this task has previously failed and then
       been retried.
       
      .temporal.api.failure.v1.Failure last_failure = 5;
      Specified by:
      hasLastFailure in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      Whether the lastFailure field is set.
    • getLastFailure

      public Failure getLastFailure()
       Will be set to the most recent failure details, if this task has previously failed and then
       been retried.
       
      .temporal.api.failure.v1.Failure last_failure = 5;
      Specified by:
      getLastFailure in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      The lastFailure.
    • setLastFailure

      public ActivityTaskStartedEventAttributes.Builder setLastFailure(Failure value)
       Will be set to the most recent failure details, if this task has previously failed and then
       been retried.
       
      .temporal.api.failure.v1.Failure last_failure = 5;
    • setLastFailure

      public ActivityTaskStartedEventAttributes.Builder setLastFailure(Failure.Builder builderForValue)
       Will be set to the most recent failure details, if this task has previously failed and then
       been retried.
       
      .temporal.api.failure.v1.Failure last_failure = 5;
    • mergeLastFailure

      public ActivityTaskStartedEventAttributes.Builder mergeLastFailure(Failure value)
       Will be set to the most recent failure details, if this task has previously failed and then
       been retried.
       
      .temporal.api.failure.v1.Failure last_failure = 5;
    • clearLastFailure

      public ActivityTaskStartedEventAttributes.Builder clearLastFailure()
       Will be set to the most recent failure details, if this task has previously failed and then
       been retried.
       
      .temporal.api.failure.v1.Failure last_failure = 5;
    • getLastFailureBuilder

      public Failure.Builder getLastFailureBuilder()
       Will be set to the most recent failure details, if this task has previously failed and then
       been retried.
       
      .temporal.api.failure.v1.Failure last_failure = 5;
    • getLastFailureOrBuilder

      public FailureOrBuilder getLastFailureOrBuilder()
       Will be set to the most recent failure details, if this task has previously failed and then
       been retried.
       
      .temporal.api.failure.v1.Failure last_failure = 5;
      Specified by:
      getLastFailureOrBuilder in interface ActivityTaskStartedEventAttributesOrBuilder
    • hasWorkerVersion

      @Deprecated public boolean hasWorkerVersion()
      Deprecated.
      temporal.api.history.v1.ActivityTaskStartedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=485
       Version info of the worker to whom this task was dispatched.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
      Specified by:
      hasWorkerVersion in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      Whether the workerVersion field is set.
    • getWorkerVersion

      @Deprecated public WorkerVersionStamp getWorkerVersion()
      Deprecated.
      temporal.api.history.v1.ActivityTaskStartedEventAttributes.worker_version is deprecated. See temporal/api/history/v1/message.proto;l=485
       Version info of the worker to whom this task was dispatched.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
      Specified by:
      getWorkerVersion in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      The workerVersion.
    • setWorkerVersion

      Deprecated.
       Version info of the worker to whom this task was dispatched.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
    • setWorkerVersion

      Deprecated.
       Version info of the worker to whom this task was dispatched.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
    • mergeWorkerVersion

      Deprecated.
       Version info of the worker to whom this task was dispatched.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
    • clearWorkerVersion

      Deprecated.
       Version info of the worker to whom this task was dispatched.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
    • getWorkerVersionBuilder

      @Deprecated public WorkerVersionStamp.Builder getWorkerVersionBuilder()
      Deprecated.
       Version info of the worker to whom this task was dispatched.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
    • getWorkerVersionOrBuilder

      @Deprecated public WorkerVersionStampOrBuilder getWorkerVersionOrBuilder()
      Deprecated.
       Version info of the worker to whom this task was dispatched.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      .temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
      Specified by:
      getWorkerVersionOrBuilder in interface ActivityTaskStartedEventAttributesOrBuilder
    • getBuildIdRedirectCounter

      @Deprecated public long getBuildIdRedirectCounter()
      Deprecated.
      temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated. See temporal/api/history/v1/message.proto;l=489
       Used by server internally to properly reapply build ID redirects to an execution
       when rebuilding it from events.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      int64 build_id_redirect_counter = 7 [deprecated = true];
      Specified by:
      getBuildIdRedirectCounter in interface ActivityTaskStartedEventAttributesOrBuilder
      Returns:
      The buildIdRedirectCounter.
    • setBuildIdRedirectCounter

      @Deprecated public ActivityTaskStartedEventAttributes.Builder setBuildIdRedirectCounter(long value)
      Deprecated.
      temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated. See temporal/api/history/v1/message.proto;l=489
       Used by server internally to properly reapply build ID redirects to an execution
       when rebuilding it from events.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      int64 build_id_redirect_counter = 7 [deprecated = true];
      Parameters:
      value - The buildIdRedirectCounter to set.
      Returns:
      This builder for chaining.
    • clearBuildIdRedirectCounter

      @Deprecated public ActivityTaskStartedEventAttributes.Builder clearBuildIdRedirectCounter()
      Deprecated.
      temporal.api.history.v1.ActivityTaskStartedEventAttributes.build_id_redirect_counter is deprecated. See temporal/api/history/v1/message.proto;l=489
       Used by server internally to properly reapply build ID redirects to an execution
       when rebuilding it from events.
       Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
       
      int64 build_id_redirect_counter = 7 [deprecated = true];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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