Class ActivityExecutionInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.temporal.api.activity.v1.ActivityExecutionInfo
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ActivityExecutionInfoOrBuilder, Serializable

@Generated(value="protoc", comments="annotations:ActivityExecutionInfo.java.pb.meta") public final class ActivityExecutionInfo extends com.google.protobuf.GeneratedMessageV3 implements ActivityExecutionInfoOrBuilder
 Information about a standalone activity.
 
Protobuf type temporal.api.activity.v1.ActivityExecutionInfo
See Also:
  • Field Details

    • ACTIVITY_ID_FIELD_NUMBER

      public static final int ACTIVITY_ID_FIELD_NUMBER
      See Also:
    • RUN_ID_FIELD_NUMBER

      public static final int RUN_ID_FIELD_NUMBER
      See Also:
    • ACTIVITY_TYPE_FIELD_NUMBER

      public static final int ACTIVITY_TYPE_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • RUN_STATE_FIELD_NUMBER

      public static final int RUN_STATE_FIELD_NUMBER
      See Also:
    • TASK_QUEUE_FIELD_NUMBER

      public static final int TASK_QUEUE_FIELD_NUMBER
      See Also:
    • SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER

      public static final int SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER
      See Also:
    • SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER

      public static final int SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER
      See Also:
    • START_TO_CLOSE_TIMEOUT_FIELD_NUMBER

      public static final int START_TO_CLOSE_TIMEOUT_FIELD_NUMBER
      See Also:
    • HEARTBEAT_TIMEOUT_FIELD_NUMBER

      public static final int HEARTBEAT_TIMEOUT_FIELD_NUMBER
      See Also:
    • RETRY_POLICY_FIELD_NUMBER

      public static final int RETRY_POLICY_FIELD_NUMBER
      See Also:
    • HEARTBEAT_DETAILS_FIELD_NUMBER

      public static final int HEARTBEAT_DETAILS_FIELD_NUMBER
      See Also:
    • LAST_HEARTBEAT_TIME_FIELD_NUMBER

      public static final int LAST_HEARTBEAT_TIME_FIELD_NUMBER
      See Also:
    • LAST_STARTED_TIME_FIELD_NUMBER

      public static final int LAST_STARTED_TIME_FIELD_NUMBER
      See Also:
    • ATTEMPT_FIELD_NUMBER

      public static final int ATTEMPT_FIELD_NUMBER
      See Also:
    • EXECUTION_DURATION_FIELD_NUMBER

      public static final int EXECUTION_DURATION_FIELD_NUMBER
      See Also:
    • SCHEDULE_TIME_FIELD_NUMBER

      public static final int SCHEDULE_TIME_FIELD_NUMBER
      See Also:
    • EXPIRATION_TIME_FIELD_NUMBER

      public static final int EXPIRATION_TIME_FIELD_NUMBER
      See Also:
    • CLOSE_TIME_FIELD_NUMBER

      public static final int CLOSE_TIME_FIELD_NUMBER
      See Also:
    • LAST_FAILURE_FIELD_NUMBER

      public static final int LAST_FAILURE_FIELD_NUMBER
      See Also:
    • LAST_WORKER_IDENTITY_FIELD_NUMBER

      public static final int LAST_WORKER_IDENTITY_FIELD_NUMBER
      See Also:
    • CURRENT_RETRY_INTERVAL_FIELD_NUMBER

      public static final int CURRENT_RETRY_INTERVAL_FIELD_NUMBER
      See Also:
    • LAST_ATTEMPT_COMPLETE_TIME_FIELD_NUMBER

      public static final int LAST_ATTEMPT_COMPLETE_TIME_FIELD_NUMBER
      See Also:
    • NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER

      public static final int NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER
      See Also:
    • LAST_DEPLOYMENT_VERSION_FIELD_NUMBER

      public static final int LAST_DEPLOYMENT_VERSION_FIELD_NUMBER
      See Also:
    • PRIORITY_FIELD_NUMBER

      public static final int PRIORITY_FIELD_NUMBER
      See Also:
    • STATE_TRANSITION_COUNT_FIELD_NUMBER

      public static final int STATE_TRANSITION_COUNT_FIELD_NUMBER
      See Also:
    • STATE_SIZE_BYTES_FIELD_NUMBER

      public static final int STATE_SIZE_BYTES_FIELD_NUMBER
      See Also:
    • SEARCH_ATTRIBUTES_FIELD_NUMBER

      public static final int SEARCH_ATTRIBUTES_FIELD_NUMBER
      See Also:
    • HEADER_FIELD_NUMBER

      public static final int HEADER_FIELD_NUMBER
      See Also:
    • USER_METADATA_FIELD_NUMBER

      public static final int USER_METADATA_FIELD_NUMBER
      See Also:
    • CANCELED_REASON_FIELD_NUMBER

      public static final int CANCELED_REASON_FIELD_NUMBER
      See Also:
    • TOTAL_HEARTBEAT_COUNT_FIELD_NUMBER

      public static final int TOTAL_HEARTBEAT_COUNT_FIELD_NUMBER
      See Also:
    • SDK_NAME_FIELD_NUMBER

      public static final int SDK_NAME_FIELD_NUMBER
      See Also:
    • SDK_VERSION_FIELD_NUMBER

      public static final int SDK_VERSION_FIELD_NUMBER
      See Also:
    • START_DELAY_FIELD_NUMBER

      public static final int START_DELAY_FIELD_NUMBER
      See Also:
    • EXECUTION_TIME_FIELD_NUMBER

      public static final int EXECUTION_TIME_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getActivityId

      public String getActivityId()
       Unique identifier of this activity within its namespace along with run ID (below).
       
      string activity_id = 1;
      Specified by:
      getActivityId in interface ActivityExecutionInfoOrBuilder
      Returns:
      The activityId.
    • getActivityIdBytes

      public com.google.protobuf.ByteString getActivityIdBytes()
       Unique identifier of this activity within its namespace along with run ID (below).
       
      string activity_id = 1;
      Specified by:
      getActivityIdBytes in interface ActivityExecutionInfoOrBuilder
      Returns:
      The bytes for activityId.
    • getRunId

      public String getRunId()
      string run_id = 2;
      Specified by:
      getRunId in interface ActivityExecutionInfoOrBuilder
      Returns:
      The runId.
    • getRunIdBytes

      public com.google.protobuf.ByteString getRunIdBytes()
      string run_id = 2;
      Specified by:
      getRunIdBytes in interface ActivityExecutionInfoOrBuilder
      Returns:
      The bytes for runId.
    • hasActivityType

      public boolean hasActivityType()
       The type of the activity, a string that maps to a registered activity on a worker.
       
      .temporal.api.common.v1.ActivityType activity_type = 3;
      Specified by:
      hasActivityType in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the activityType field is set.
    • getActivityType

      public ActivityType getActivityType()
       The type of the activity, a string that maps to a registered activity on a worker.
       
      .temporal.api.common.v1.ActivityType activity_type = 3;
      Specified by:
      getActivityType in interface ActivityExecutionInfoOrBuilder
      Returns:
      The activityType.
    • getActivityTypeOrBuilder

      public ActivityTypeOrBuilder getActivityTypeOrBuilder()
       The type of the activity, a string that maps to a registered activity on a worker.
       
      .temporal.api.common.v1.ActivityType activity_type = 3;
      Specified by:
      getActivityTypeOrBuilder in interface ActivityExecutionInfoOrBuilder
    • getStatusValue

      public int getStatusValue()
       A general status for this activity, indicates whether it is currently running or in one of the terminal statuses.
       
      .temporal.api.enums.v1.ActivityExecutionStatus status = 4;
      Specified by:
      getStatusValue in interface ActivityExecutionInfoOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

      public ActivityExecutionStatus getStatus()
       A general status for this activity, indicates whether it is currently running or in one of the terminal statuses.
       
      .temporal.api.enums.v1.ActivityExecutionStatus status = 4;
      Specified by:
      getStatus in interface ActivityExecutionInfoOrBuilder
      Returns:
      The status.
    • getRunStateValue

      public int getRunStateValue()
       More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING.
       
      .temporal.api.enums.v1.PendingActivityState run_state = 5;
      Specified by:
      getRunStateValue in interface ActivityExecutionInfoOrBuilder
      Returns:
      The enum numeric value on the wire for runState.
    • getRunState

      public PendingActivityState getRunState()
       More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING.
       
      .temporal.api.enums.v1.PendingActivityState run_state = 5;
      Specified by:
      getRunState in interface ActivityExecutionInfoOrBuilder
      Returns:
      The runState.
    • getTaskQueue

      public String getTaskQueue()
      string task_queue = 6;
      Specified by:
      getTaskQueue in interface ActivityExecutionInfoOrBuilder
      Returns:
      The taskQueue.
    • getTaskQueueBytes

      public com.google.protobuf.ByteString getTaskQueueBytes()
      string task_queue = 6;
      Specified by:
      getTaskQueueBytes in interface ActivityExecutionInfoOrBuilder
      Returns:
      The bytes for taskQueue.
    • hasScheduleToCloseTimeout

      public boolean hasScheduleToCloseTimeout()
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 7;
      Specified by:
      hasScheduleToCloseTimeout in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the scheduleToCloseTimeout field is set.
    • getScheduleToCloseTimeout

      public com.google.protobuf.Duration getScheduleToCloseTimeout()
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 7;
      Specified by:
      getScheduleToCloseTimeout in interface ActivityExecutionInfoOrBuilder
      Returns:
      The scheduleToCloseTimeout.
    • getScheduleToCloseTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getScheduleToCloseTimeoutOrBuilder()
       Indicates how long the caller is willing to wait for an activity completion. Limits how long
       retries will be attempted.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_close_timeout = 7;
      Specified by:
      getScheduleToCloseTimeoutOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasScheduleToStartTimeout

      public boolean hasScheduleToStartTimeout()
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout`.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 8;
      Specified by:
      hasScheduleToStartTimeout in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the scheduleToStartTimeout field is set.
    • getScheduleToStartTimeout

      public com.google.protobuf.Duration getScheduleToStartTimeout()
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout`.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 8;
      Specified by:
      getScheduleToStartTimeout in interface ActivityExecutionInfoOrBuilder
      Returns:
      The scheduleToStartTimeout.
    • getScheduleToStartTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getScheduleToStartTimeoutOrBuilder()
       Limits time an activity task can stay in a task queue before a worker picks it up. This
       timeout is always non retryable, as all a retry would achieve is to put it back into the same
       queue. Defaults to `schedule_to_close_timeout`.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration schedule_to_start_timeout = 8;
      Specified by:
      getScheduleToStartTimeoutOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasStartToCloseTimeout

      public boolean hasStartToCloseTimeout()
       Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This
       timeout is always retryable.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 9;
      Specified by:
      hasStartToCloseTimeout in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the startToCloseTimeout field is set.
    • getStartToCloseTimeout

      public com.google.protobuf.Duration getStartToCloseTimeout()
       Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This
       timeout is always retryable.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 9;
      Specified by:
      getStartToCloseTimeout in interface ActivityExecutionInfoOrBuilder
      Returns:
      The startToCloseTimeout.
    • getStartToCloseTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getStartToCloseTimeoutOrBuilder()
       Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This
       timeout is always retryable.
      
       (-- api-linter: core::0140::prepositions=disabled
           aip.dev/not-precedent: "to" is used to indicate interval. --)
       
      .google.protobuf.Duration start_to_close_timeout = 9;
      Specified by:
      getStartToCloseTimeoutOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasHeartbeatTimeout

      public boolean hasHeartbeatTimeout()
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 10;
      Specified by:
      hasHeartbeatTimeout in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the heartbeatTimeout field is set.
    • getHeartbeatTimeout

      public com.google.protobuf.Duration getHeartbeatTimeout()
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 10;
      Specified by:
      getHeartbeatTimeout in interface ActivityExecutionInfoOrBuilder
      Returns:
      The heartbeatTimeout.
    • getHeartbeatTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getHeartbeatTimeoutOrBuilder()
       Maximum permitted time between successful worker heartbeats.
       
      .google.protobuf.Duration heartbeat_timeout = 10;
      Specified by:
      getHeartbeatTimeoutOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasRetryPolicy

      public boolean hasRetryPolicy()
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 11;
      Specified by:
      hasRetryPolicy in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the retryPolicy field is set.
    • getRetryPolicy

      public RetryPolicy getRetryPolicy()
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 11;
      Specified by:
      getRetryPolicy in interface ActivityExecutionInfoOrBuilder
      Returns:
      The retryPolicy.
    • getRetryPolicyOrBuilder

      public RetryPolicyOrBuilder getRetryPolicyOrBuilder()
       The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.
       
      .temporal.api.common.v1.RetryPolicy retry_policy = 11;
      Specified by:
      getRetryPolicyOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasHeartbeatDetails

      public boolean hasHeartbeatDetails()
       Details provided in the last recorded activity heartbeat.
       DescribeActivityExecution does not set this field unless include_heartbeat_details was true in the request.
       
      .temporal.api.common.v1.Payloads heartbeat_details = 12;
      Specified by:
      hasHeartbeatDetails in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the heartbeatDetails field is set.
    • getHeartbeatDetails

      public Payloads getHeartbeatDetails()
       Details provided in the last recorded activity heartbeat.
       DescribeActivityExecution does not set this field unless include_heartbeat_details was true in the request.
       
      .temporal.api.common.v1.Payloads heartbeat_details = 12;
      Specified by:
      getHeartbeatDetails in interface ActivityExecutionInfoOrBuilder
      Returns:
      The heartbeatDetails.
    • getHeartbeatDetailsOrBuilder

      public PayloadsOrBuilder getHeartbeatDetailsOrBuilder()
       Details provided in the last recorded activity heartbeat.
       DescribeActivityExecution does not set this field unless include_heartbeat_details was true in the request.
       
      .temporal.api.common.v1.Payloads heartbeat_details = 12;
      Specified by:
      getHeartbeatDetailsOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasLastHeartbeatTime

      public boolean hasLastHeartbeatTime()
       Time the last heartbeat was recorded.
       
      .google.protobuf.Timestamp last_heartbeat_time = 13;
      Specified by:
      hasLastHeartbeatTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the lastHeartbeatTime field is set.
    • getLastHeartbeatTime

      public com.google.protobuf.Timestamp getLastHeartbeatTime()
       Time the last heartbeat was recorded.
       
      .google.protobuf.Timestamp last_heartbeat_time = 13;
      Specified by:
      getLastHeartbeatTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      The lastHeartbeatTime.
    • getLastHeartbeatTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder()
       Time the last heartbeat was recorded.
       
      .google.protobuf.Timestamp last_heartbeat_time = 13;
      Specified by:
      getLastHeartbeatTimeOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasLastStartedTime

      public boolean hasLastStartedTime()
       Time the last attempt was started.
       
      .google.protobuf.Timestamp last_started_time = 14;
      Specified by:
      hasLastStartedTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the lastStartedTime field is set.
    • getLastStartedTime

      public com.google.protobuf.Timestamp getLastStartedTime()
       Time the last attempt was started.
       
      .google.protobuf.Timestamp last_started_time = 14;
      Specified by:
      getLastStartedTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      The lastStartedTime.
    • getLastStartedTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastStartedTimeOrBuilder()
       Time the last attempt was started.
       
      .google.protobuf.Timestamp last_started_time = 14;
      Specified by:
      getLastStartedTimeOrBuilder in interface ActivityExecutionInfoOrBuilder
    • getAttempt

      public int getAttempt()
       The attempt this activity is currently on. Incremented each time a new attempt is scheduled.
       
      int32 attempt = 15;
      Specified by:
      getAttempt in interface ActivityExecutionInfoOrBuilder
      Returns:
      The attempt.
    • hasExecutionDuration

      public boolean hasExecutionDuration()
       How long this activity has been running for, including all attempts and backoff between attempts.
       
      .google.protobuf.Duration execution_duration = 16;
      Specified by:
      hasExecutionDuration in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the executionDuration field is set.
    • getExecutionDuration

      public com.google.protobuf.Duration getExecutionDuration()
       How long this activity has been running for, including all attempts and backoff between attempts.
       
      .google.protobuf.Duration execution_duration = 16;
      Specified by:
      getExecutionDuration in interface ActivityExecutionInfoOrBuilder
      Returns:
      The executionDuration.
    • getExecutionDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getExecutionDurationOrBuilder()
       How long this activity has been running for, including all attempts and backoff between attempts.
       
      .google.protobuf.Duration execution_duration = 16;
      Specified by:
      getExecutionDurationOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasScheduleTime

      public boolean hasScheduleTime()
       Time the activity was originally scheduled via a StartActivityExecution request.
       
      .google.protobuf.Timestamp schedule_time = 17;
      Specified by:
      hasScheduleTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the scheduleTime field is set.
    • getScheduleTime

      public com.google.protobuf.Timestamp getScheduleTime()
       Time the activity was originally scheduled via a StartActivityExecution request.
       
      .google.protobuf.Timestamp schedule_time = 17;
      Specified by:
      getScheduleTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      The scheduleTime.
    • getScheduleTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder()
       Time the activity was originally scheduled via a StartActivityExecution request.
       
      .google.protobuf.Timestamp schedule_time = 17;
      Specified by:
      getScheduleTimeOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasExpirationTime

      public boolean hasExpirationTime()
       The time at which the activity's Schedule-to-Close timeout expires.
       Calculated as `schedule_time` + `start_delay` + `schedule_to_close_timeout`.
       
      .google.protobuf.Timestamp expiration_time = 18;
      Specified by:
      hasExpirationTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public com.google.protobuf.Timestamp getExpirationTime()
       The time at which the activity's Schedule-to-Close timeout expires.
       Calculated as `schedule_time` + `start_delay` + `schedule_to_close_timeout`.
       
      .google.protobuf.Timestamp expiration_time = 18;
      Specified by:
      getExpirationTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      The expirationTime.
    • getExpirationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder()
       The time at which the activity's Schedule-to-Close timeout expires.
       Calculated as `schedule_time` + `start_delay` + `schedule_to_close_timeout`.
       
      .google.protobuf.Timestamp expiration_time = 18;
      Specified by:
      getExpirationTimeOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasCloseTime

      public boolean hasCloseTime()
       Time when the activity transitioned to a closed state.
       
      .google.protobuf.Timestamp close_time = 19;
      Specified by:
      hasCloseTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the closeTime field is set.
    • getCloseTime

      public com.google.protobuf.Timestamp getCloseTime()
       Time when the activity transitioned to a closed state.
       
      .google.protobuf.Timestamp close_time = 19;
      Specified by:
      getCloseTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      The closeTime.
    • getCloseTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCloseTimeOrBuilder()
       Time when the activity transitioned to a closed state.
       
      .google.protobuf.Timestamp close_time = 19;
      Specified by:
      getCloseTimeOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasLastFailure

      public boolean hasLastFailure()
       Failure details from the last failed attempt.
       DescribeActivityExecution does not set this field unless include_last_failure was true in the request.
       
      .temporal.api.failure.v1.Failure last_failure = 20;
      Specified by:
      hasLastFailure in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the lastFailure field is set.
    • getLastFailure

      public Failure getLastFailure()
       Failure details from the last failed attempt.
       DescribeActivityExecution does not set this field unless include_last_failure was true in the request.
       
      .temporal.api.failure.v1.Failure last_failure = 20;
      Specified by:
      getLastFailure in interface ActivityExecutionInfoOrBuilder
      Returns:
      The lastFailure.
    • getLastFailureOrBuilder

      public FailureOrBuilder getLastFailureOrBuilder()
       Failure details from the last failed attempt.
       DescribeActivityExecution does not set this field unless include_last_failure was true in the request.
       
      .temporal.api.failure.v1.Failure last_failure = 20;
      Specified by:
      getLastFailureOrBuilder in interface ActivityExecutionInfoOrBuilder
    • getLastWorkerIdentity

      public String getLastWorkerIdentity()
      string last_worker_identity = 21;
      Specified by:
      getLastWorkerIdentity in interface ActivityExecutionInfoOrBuilder
      Returns:
      The lastWorkerIdentity.
    • getLastWorkerIdentityBytes

      public com.google.protobuf.ByteString getLastWorkerIdentityBytes()
      string last_worker_identity = 21;
      Specified by:
      getLastWorkerIdentityBytes in interface ActivityExecutionInfoOrBuilder
      Returns:
      The bytes for lastWorkerIdentity.
    • hasCurrentRetryInterval

      public boolean hasCurrentRetryInterval()
       Time from the last attempt failure to the next activity retry.
       If the activity is currently running, this represents the next retry interval in case the attempt fails.
       If activity is currently backing off between attempt, this represents the current retry interval.
       If there is no next retry allowed, this field will be null.
       This interval is typically calculated from the specified retry policy, but may be modified if an activity fails
       with a retryable application failure specifying a retry delay.
       
      .google.protobuf.Duration current_retry_interval = 22;
      Specified by:
      hasCurrentRetryInterval in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the currentRetryInterval field is set.
    • getCurrentRetryInterval

      public com.google.protobuf.Duration getCurrentRetryInterval()
       Time from the last attempt failure to the next activity retry.
       If the activity is currently running, this represents the next retry interval in case the attempt fails.
       If activity is currently backing off between attempt, this represents the current retry interval.
       If there is no next retry allowed, this field will be null.
       This interval is typically calculated from the specified retry policy, but may be modified if an activity fails
       with a retryable application failure specifying a retry delay.
       
      .google.protobuf.Duration current_retry_interval = 22;
      Specified by:
      getCurrentRetryInterval in interface ActivityExecutionInfoOrBuilder
      Returns:
      The currentRetryInterval.
    • getCurrentRetryIntervalOrBuilder

      public com.google.protobuf.DurationOrBuilder getCurrentRetryIntervalOrBuilder()
       Time from the last attempt failure to the next activity retry.
       If the activity is currently running, this represents the next retry interval in case the attempt fails.
       If activity is currently backing off between attempt, this represents the current retry interval.
       If there is no next retry allowed, this field will be null.
       This interval is typically calculated from the specified retry policy, but may be modified if an activity fails
       with a retryable application failure specifying a retry delay.
       
      .google.protobuf.Duration current_retry_interval = 22;
      Specified by:
      getCurrentRetryIntervalOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasLastAttemptCompleteTime

      public boolean hasLastAttemptCompleteTime()
       The time when the last activity attempt completed. If activity has not been completed yet, it will be null.
       
      .google.protobuf.Timestamp last_attempt_complete_time = 23;
      Specified by:
      hasLastAttemptCompleteTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the lastAttemptCompleteTime field is set.
    • getLastAttemptCompleteTime

      public com.google.protobuf.Timestamp getLastAttemptCompleteTime()
       The time when the last activity attempt completed. If activity has not been completed yet, it will be null.
       
      .google.protobuf.Timestamp last_attempt_complete_time = 23;
      Specified by:
      getLastAttemptCompleteTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      The lastAttemptCompleteTime.
    • getLastAttemptCompleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastAttemptCompleteTimeOrBuilder()
       The time when the last activity attempt completed. If activity has not been completed yet, it will be null.
       
      .google.protobuf.Timestamp last_attempt_complete_time = 23;
      Specified by:
      getLastAttemptCompleteTimeOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasNextAttemptScheduleTime

      public boolean hasNextAttemptScheduleTime()
       The time when the next activity attempt will be scheduled.
       If activity is currently scheduled or started, this field will be null.
       
      .google.protobuf.Timestamp next_attempt_schedule_time = 24;
      Specified by:
      hasNextAttemptScheduleTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the nextAttemptScheduleTime field is set.
    • getNextAttemptScheduleTime

      public com.google.protobuf.Timestamp getNextAttemptScheduleTime()
       The time when the next activity attempt will be scheduled.
       If activity is currently scheduled or started, this field will be null.
       
      .google.protobuf.Timestamp next_attempt_schedule_time = 24;
      Specified by:
      getNextAttemptScheduleTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      The nextAttemptScheduleTime.
    • getNextAttemptScheduleTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getNextAttemptScheduleTimeOrBuilder()
       The time when the next activity attempt will be scheduled.
       If activity is currently scheduled or started, this field will be null.
       
      .google.protobuf.Timestamp next_attempt_schedule_time = 24;
      Specified by:
      getNextAttemptScheduleTimeOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasLastDeploymentVersion

      public boolean hasLastDeploymentVersion()
       The Worker Deployment Version this activity was dispatched to most recently.
       If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion last_deployment_version = 25;
      Specified by:
      hasLastDeploymentVersion in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the lastDeploymentVersion field is set.
    • getLastDeploymentVersion

      public WorkerDeploymentVersion getLastDeploymentVersion()
       The Worker Deployment Version this activity was dispatched to most recently.
       If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion last_deployment_version = 25;
      Specified by:
      getLastDeploymentVersion in interface ActivityExecutionInfoOrBuilder
      Returns:
      The lastDeploymentVersion.
    • getLastDeploymentVersionOrBuilder

      public WorkerDeploymentVersionOrBuilder getLastDeploymentVersionOrBuilder()
       The Worker Deployment Version this activity was dispatched to most recently.
       If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion last_deployment_version = 25;
      Specified by:
      getLastDeploymentVersionOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasPriority

      public boolean hasPriority()
       Priority metadata.
       
      .temporal.api.common.v1.Priority priority = 26;
      Specified by:
      hasPriority in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the priority field is set.
    • getPriority

      public Priority getPriority()
       Priority metadata.
       
      .temporal.api.common.v1.Priority priority = 26;
      Specified by:
      getPriority in interface ActivityExecutionInfoOrBuilder
      Returns:
      The priority.
    • getPriorityOrBuilder

      public PriorityOrBuilder getPriorityOrBuilder()
       Priority metadata.
       
      .temporal.api.common.v1.Priority priority = 26;
      Specified by:
      getPriorityOrBuilder in interface ActivityExecutionInfoOrBuilder
    • getStateTransitionCount

      public long getStateTransitionCount()
       Incremented each time the activity's state is mutated in persistence.
       
      int64 state_transition_count = 27;
      Specified by:
      getStateTransitionCount in interface ActivityExecutionInfoOrBuilder
      Returns:
      The stateTransitionCount.
    • getStateSizeBytes

      public long getStateSizeBytes()
       Updated once on scheduled and once on terminal status.
       
      int64 state_size_bytes = 28;
      Specified by:
      getStateSizeBytes in interface ActivityExecutionInfoOrBuilder
      Returns:
      The stateSizeBytes.
    • hasSearchAttributes

      public boolean hasSearchAttributes()
      .temporal.api.common.v1.SearchAttributes search_attributes = 29;
      Specified by:
      hasSearchAttributes in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the searchAttributes field is set.
    • getSearchAttributes

      public SearchAttributes getSearchAttributes()
      .temporal.api.common.v1.SearchAttributes search_attributes = 29;
      Specified by:
      getSearchAttributes in interface ActivityExecutionInfoOrBuilder
      Returns:
      The searchAttributes.
    • getSearchAttributesOrBuilder

      public SearchAttributesOrBuilder getSearchAttributesOrBuilder()
      .temporal.api.common.v1.SearchAttributes search_attributes = 29;
      Specified by:
      getSearchAttributesOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasHeader

      public boolean hasHeader()
      .temporal.api.common.v1.Header header = 30;
      Specified by:
      hasHeader in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public Header getHeader()
      .temporal.api.common.v1.Header header = 30;
      Specified by:
      getHeader in interface ActivityExecutionInfoOrBuilder
      Returns:
      The header.
    • getHeaderOrBuilder

      public HeaderOrBuilder getHeaderOrBuilder()
      .temporal.api.common.v1.Header header = 30;
      Specified by:
      getHeaderOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasUserMetadata

      public boolean hasUserMetadata()
       Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.
       
      .temporal.api.sdk.v1.UserMetadata user_metadata = 31;
      Specified by:
      hasUserMetadata in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the userMetadata field is set.
    • getUserMetadata

      public UserMetadata getUserMetadata()
       Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.
       
      .temporal.api.sdk.v1.UserMetadata user_metadata = 31;
      Specified by:
      getUserMetadata in interface ActivityExecutionInfoOrBuilder
      Returns:
      The userMetadata.
    • getUserMetadataOrBuilder

      public UserMetadataOrBuilder getUserMetadataOrBuilder()
       Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.
       
      .temporal.api.sdk.v1.UserMetadata user_metadata = 31;
      Specified by:
      getUserMetadataOrBuilder in interface ActivityExecutionInfoOrBuilder
    • getCanceledReason

      public String getCanceledReason()
       Set if activity cancelation was requested.
       
      string canceled_reason = 32;
      Specified by:
      getCanceledReason in interface ActivityExecutionInfoOrBuilder
      Returns:
      The canceledReason.
    • getCanceledReasonBytes

      public com.google.protobuf.ByteString getCanceledReasonBytes()
       Set if activity cancelation was requested.
       
      string canceled_reason = 32;
      Specified by:
      getCanceledReasonBytes in interface ActivityExecutionInfoOrBuilder
      Returns:
      The bytes for canceledReason.
    • getLinksList

      public List<Link> getLinksList()
       Links to related entities, such as the entity that started this activity.
       
      repeated .temporal.api.common.v1.Link links = 33;
      Specified by:
      getLinksList in interface ActivityExecutionInfoOrBuilder
    • getLinksOrBuilderList

      public List<? extends LinkOrBuilder> getLinksOrBuilderList()
       Links to related entities, such as the entity that started this activity.
       
      repeated .temporal.api.common.v1.Link links = 33;
      Specified by:
      getLinksOrBuilderList in interface ActivityExecutionInfoOrBuilder
    • getLinksCount

      public int getLinksCount()
       Links to related entities, such as the entity that started this activity.
       
      repeated .temporal.api.common.v1.Link links = 33;
      Specified by:
      getLinksCount in interface ActivityExecutionInfoOrBuilder
    • getLinks

      public Link getLinks(int index)
       Links to related entities, such as the entity that started this activity.
       
      repeated .temporal.api.common.v1.Link links = 33;
      Specified by:
      getLinks in interface ActivityExecutionInfoOrBuilder
    • getLinksOrBuilder

      public LinkOrBuilder getLinksOrBuilder(int index)
       Links to related entities, such as the entity that started this activity.
       
      repeated .temporal.api.common.v1.Link links = 33;
      Specified by:
      getLinksOrBuilder in interface ActivityExecutionInfoOrBuilder
    • getTotalHeartbeatCount

      public long getTotalHeartbeatCount()
       Total number of heartbeats recorded across all attempts of this activity, including retries.
       
      int64 total_heartbeat_count = 34;
      Specified by:
      getTotalHeartbeatCount in interface ActivityExecutionInfoOrBuilder
      Returns:
      The totalHeartbeatCount.
    • getSdkName

      public String getSdkName()
       The name of the SDK of the worker that most recently picked up an attempt of this activity.
       Overwritten on each new attempt. Empty if unknown.
       
      string sdk_name = 35;
      Specified by:
      getSdkName in interface ActivityExecutionInfoOrBuilder
      Returns:
      The sdkName.
    • getSdkNameBytes

      public com.google.protobuf.ByteString getSdkNameBytes()
       The name of the SDK of the worker that most recently picked up an attempt of this activity.
       Overwritten on each new attempt. Empty if unknown.
       
      string sdk_name = 35;
      Specified by:
      getSdkNameBytes in interface ActivityExecutionInfoOrBuilder
      Returns:
      The bytes for sdkName.
    • getSdkVersion

      public String getSdkVersion()
       The version of the SDK of the worker that most recently picked up an attempt of this activity.
       Overwritten on each new attempt. Empty if unknown.
       
      string sdk_version = 36;
      Specified by:
      getSdkVersion in interface ActivityExecutionInfoOrBuilder
      Returns:
      The sdkVersion.
    • getSdkVersionBytes

      public com.google.protobuf.ByteString getSdkVersionBytes()
       The version of the SDK of the worker that most recently picked up an attempt of this activity.
       Overwritten on each new attempt. Empty if unknown.
       
      string sdk_version = 36;
      Specified by:
      getSdkVersionBytes in interface ActivityExecutionInfoOrBuilder
      Returns:
      The bytes for sdkVersion.
    • hasStartDelay

      public boolean hasStartDelay()
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       
      .google.protobuf.Duration start_delay = 37;
      Specified by:
      hasStartDelay in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the startDelay field is set.
    • getStartDelay

      public com.google.protobuf.Duration getStartDelay()
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       
      .google.protobuf.Duration start_delay = 37;
      Specified by:
      getStartDelay in interface ActivityExecutionInfoOrBuilder
      Returns:
      The startDelay.
    • getStartDelayOrBuilder

      public com.google.protobuf.DurationOrBuilder getStartDelayOrBuilder()
       Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
       
      .google.protobuf.Duration start_delay = 37;
      Specified by:
      getStartDelayOrBuilder in interface ActivityExecutionInfoOrBuilder
    • hasExecutionTime

      public boolean hasExecutionTime()
       The time at which the first activity task is made available for dispatch, computed as
       `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
       
      .google.protobuf.Timestamp execution_time = 38;
      Specified by:
      hasExecutionTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      Whether the executionTime field is set.
    • getExecutionTime

      public com.google.protobuf.Timestamp getExecutionTime()
       The time at which the first activity task is made available for dispatch, computed as
       `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
       
      .google.protobuf.Timestamp execution_time = 38;
      Specified by:
      getExecutionTime in interface ActivityExecutionInfoOrBuilder
      Returns:
      The executionTime.
    • getExecutionTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExecutionTimeOrBuilder()
       The time at which the first activity task is made available for dispatch, computed as
       `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set.
       
      .google.protobuf.Timestamp execution_time = 38;
      Specified by:
      getExecutionTimeOrBuilder in interface ActivityExecutionInfoOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ActivityExecutionInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActivityExecutionInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActivityExecutionInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActivityExecutionInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActivityExecutionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActivityExecutionInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActivityExecutionInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ActivityExecutionInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ActivityExecutionInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ActivityExecutionInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ActivityExecutionInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ActivityExecutionInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ActivityExecutionInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ActivityExecutionInfo.Builder newBuilder()
    • newBuilder

      public static ActivityExecutionInfo.Builder newBuilder(ActivityExecutionInfo prototype)
    • toBuilder

      public ActivityExecutionInfo.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ActivityExecutionInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ActivityExecutionInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ActivityExecutionInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<ActivityExecutionInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public ActivityExecutionInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder