Class PollActivityTaskQueueResponse

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PollActivityTaskQueueResponseOrBuilder, java.io.Serializable

    @Generated(value="protoc",
               comments="annotations:PollActivityTaskQueueResponse.java.pb.meta")
    public final class PollActivityTaskQueueResponse
    extends com.google.protobuf.GeneratedMessageV3
    implements PollActivityTaskQueueResponseOrBuilder
    Protobuf type temporal.api.workflowservice.v1.PollActivityTaskQueueResponse
    See Also:
    Serialized Form
    • Field Detail

      • TASK_TOKEN_FIELD_NUMBER

        public static final int TASK_TOKEN_FIELD_NUMBER
        See Also:
        Constant Field Values
      • WORKFLOW_NAMESPACE_FIELD_NUMBER

        public static final int WORKFLOW_NAMESPACE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • WORKFLOW_TYPE_FIELD_NUMBER

        public static final int WORKFLOW_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • WORKFLOW_EXECUTION_FIELD_NUMBER

        public static final int WORKFLOW_EXECUTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACTIVITY_TYPE_FIELD_NUMBER

        public static final int ACTIVITY_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACTIVITY_ID_FIELD_NUMBER

        public static final int ACTIVITY_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HEARTBEAT_DETAILS_FIELD_NUMBER

        public static final int HEARTBEAT_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SCHEDULED_TIME_FIELD_NUMBER

        public static final int SCHEDULED_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CURRENT_ATTEMPT_SCHEDULED_TIME_FIELD_NUMBER

        public static final int CURRENT_ATTEMPT_SCHEDULED_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STARTED_TIME_FIELD_NUMBER

        public static final int STARTED_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER

        public static final int SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • START_TO_CLOSE_TIMEOUT_FIELD_NUMBER

        public static final int START_TO_CLOSE_TIMEOUT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HEARTBEAT_TIMEOUT_FIELD_NUMBER

        public static final int HEARTBEAT_TIMEOUT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RETRY_POLICY_FIELD_NUMBER

        public static final int RETRY_POLICY_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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
      • getWorkflowNamespaceBytes

        public com.google.protobuf.ByteString getWorkflowNamespaceBytes()
         The namespace the workflow which requested this activity lives in
         
        string workflow_namespace = 2;
        Specified by:
        getWorkflowNamespaceBytes in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The bytes for workflowNamespace.
      • hasWorkflowType

        public boolean hasWorkflowType()
         Type of the requesting workflow
         
        .temporal.api.common.v1.WorkflowType workflow_type = 3;
        Specified by:
        hasWorkflowType in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the workflowType field is set.
      • hasWorkflowExecution

        public boolean hasWorkflowExecution()
         Execution info of the requesting workflow
         
        .temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
        Specified by:
        hasWorkflowExecution in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the workflowExecution field is set.
      • getActivityId

        public java.lang.String getActivityId()
         The autogenerated or user specified identifier of this activity. Can be used to complete the
         activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage
         has resolved, but unique IDs for every activity invocation is a good idea.
         
        string activity_id = 6;
        Specified by:
        getActivityId in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The activityId.
      • getActivityIdBytes

        public com.google.protobuf.ByteString getActivityIdBytes()
         The autogenerated or user specified identifier of this activity. Can be used to complete the
         activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage
         has resolved, but unique IDs for every activity invocation is a good idea.
         
        string activity_id = 6;
        Specified by:
        getActivityIdBytes in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The bytes for activityId.
      • hasHeader

        public boolean hasHeader()
         Headers specified by the scheduling workflow. Commonly used to propagate contextual info
         from the workflow to its activities. For example, tracing contexts.
         
        .temporal.api.common.v1.Header header = 7;
        Specified by:
        hasHeader in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the header field is set.
      • getHeader

        public Header getHeader()
         Headers specified by the scheduling workflow. Commonly used to propagate contextual info
         from the workflow to its activities. For example, tracing contexts.
         
        .temporal.api.common.v1.Header header = 7;
        Specified by:
        getHeader in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The header.
      • hasInput

        public boolean hasInput()
         Arguments to the activity invocation
         
        .temporal.api.common.v1.Payloads input = 8;
        Specified by:
        hasInput in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the input field is set.
      • hasHeartbeatDetails

        public boolean hasHeartbeatDetails()
         Details of the last heartbeat that was recorded for this activity as of the time this task
         was delivered.
         
        .temporal.api.common.v1.Payloads heartbeat_details = 9;
        Specified by:
        hasHeartbeatDetails in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the heartbeatDetails field is set.
      • getHeartbeatDetails

        public Payloads getHeartbeatDetails()
         Details of the last heartbeat that was recorded for this activity as of the time this task
         was delivered.
         
        .temporal.api.common.v1.Payloads heartbeat_details = 9;
        Specified by:
        getHeartbeatDetails in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The heartbeatDetails.
      • hasScheduledTime

        public boolean hasScheduledTime()
         When was this task first scheduled
         
        .google.protobuf.Timestamp scheduled_time = 10 [(.gogoproto.stdtime) = true];
        Specified by:
        hasScheduledTime in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the scheduledTime field is set.
      • getScheduledTime

        public com.google.protobuf.Timestamp getScheduledTime()
         When was this task first scheduled
         
        .google.protobuf.Timestamp scheduled_time = 10 [(.gogoproto.stdtime) = true];
        Specified by:
        getScheduledTime in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The scheduledTime.
      • hasCurrentAttemptScheduledTime

        public boolean hasCurrentAttemptScheduledTime()
         When was this task attempt scheduled
         
        .google.protobuf.Timestamp current_attempt_scheduled_time = 11 [(.gogoproto.stdtime) = true];
        Specified by:
        hasCurrentAttemptScheduledTime in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the currentAttemptScheduledTime field is set.
      • getCurrentAttemptScheduledTime

        public com.google.protobuf.Timestamp getCurrentAttemptScheduledTime()
         When was this task attempt scheduled
         
        .google.protobuf.Timestamp current_attempt_scheduled_time = 11 [(.gogoproto.stdtime) = true];
        Specified by:
        getCurrentAttemptScheduledTime in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The currentAttemptScheduledTime.
      • hasStartedTime

        public boolean hasStartedTime()
         When was this task started (this attempt)
         
        .google.protobuf.Timestamp started_time = 12 [(.gogoproto.stdtime) = true];
        Specified by:
        hasStartedTime in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the startedTime field is set.
      • getStartedTime

        public com.google.protobuf.Timestamp getStartedTime()
         When was this task started (this attempt)
         
        .google.protobuf.Timestamp started_time = 12 [(.gogoproto.stdtime) = true];
        Specified by:
        getStartedTime in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The startedTime.
      • getStartedTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartedTimeOrBuilder()
         When was this task started (this attempt)
         
        .google.protobuf.Timestamp started_time = 12 [(.gogoproto.stdtime) = true];
        Specified by:
        getStartedTimeOrBuilder in interface PollActivityTaskQueueResponseOrBuilder
      • hasScheduleToCloseTimeout

        public boolean hasScheduleToCloseTimeout()
         First scheduled -> final result reported timeout
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 14 [(.gogoproto.stdduration) = true];
        Specified by:
        hasScheduleToCloseTimeout in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the scheduleToCloseTimeout field is set.
      • getScheduleToCloseTimeout

        public com.google.protobuf.Duration getScheduleToCloseTimeout()
         First scheduled -> final result reported timeout
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 14 [(.gogoproto.stdduration) = true];
        Specified by:
        getScheduleToCloseTimeout in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The scheduleToCloseTimeout.
      • getScheduleToCloseTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getScheduleToCloseTimeoutOrBuilder()
         First scheduled -> final result reported timeout
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration schedule_to_close_timeout = 14 [(.gogoproto.stdduration) = true];
        Specified by:
        getScheduleToCloseTimeoutOrBuilder in interface PollActivityTaskQueueResponseOrBuilder
      • hasStartToCloseTimeout

        public boolean hasStartToCloseTimeout()
         Current attempt start -> final result reported timeout
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration start_to_close_timeout = 15 [(.gogoproto.stdduration) = true];
        Specified by:
        hasStartToCloseTimeout in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the startToCloseTimeout field is set.
      • getStartToCloseTimeout

        public com.google.protobuf.Duration getStartToCloseTimeout()
         Current attempt start -> final result reported timeout
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration start_to_close_timeout = 15 [(.gogoproto.stdduration) = true];
        Specified by:
        getStartToCloseTimeout in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The startToCloseTimeout.
      • getStartToCloseTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getStartToCloseTimeoutOrBuilder()
         Current attempt start -> final result reported timeout
         (-- api-linter: core::0140::prepositions=disabled
             aip.dev/not-precedent: "to" is used to indicate interval. --)
         
        .google.protobuf.Duration start_to_close_timeout = 15 [(.gogoproto.stdduration) = true];
        Specified by:
        getStartToCloseTimeoutOrBuilder in interface PollActivityTaskQueueResponseOrBuilder
      • hasHeartbeatTimeout

        public boolean hasHeartbeatTimeout()
         Window within which the activity must report a heartbeat, or be timed out.
         
        .google.protobuf.Duration heartbeat_timeout = 16 [(.gogoproto.stdduration) = true];
        Specified by:
        hasHeartbeatTimeout in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the heartbeatTimeout field is set.
      • getHeartbeatTimeout

        public com.google.protobuf.Duration getHeartbeatTimeout()
         Window within which the activity must report a heartbeat, or be timed out.
         
        .google.protobuf.Duration heartbeat_timeout = 16 [(.gogoproto.stdduration) = true];
        Specified by:
        getHeartbeatTimeout in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The heartbeatTimeout.
      • getHeartbeatTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getHeartbeatTimeoutOrBuilder()
         Window within which the activity must report a heartbeat, or be timed out.
         
        .google.protobuf.Duration heartbeat_timeout = 16 [(.gogoproto.stdduration) = true];
        Specified by:
        getHeartbeatTimeoutOrBuilder in interface PollActivityTaskQueueResponseOrBuilder
      • hasRetryPolicy

        public boolean hasRetryPolicy()
         This is the retry policy the service uses which may be different from the one provided
         (or not) during activity scheduling. The service can override the provided one if some
         values are not specified or exceed configured system limits.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 17;
        Specified by:
        hasRetryPolicy in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        Whether the retryPolicy field is set.
      • getRetryPolicy

        public RetryPolicy getRetryPolicy()
         This is the retry policy the service uses which may be different from the one provided
         (or not) during activity scheduling. The service can override the provided one if some
         values are not specified or exceed configured system limits.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 17;
        Specified by:
        getRetryPolicy in interface PollActivityTaskQueueResponseOrBuilder
        Returns:
        The retryPolicy.
      • getRetryPolicyOrBuilder

        public RetryPolicyOrBuilder getRetryPolicyOrBuilder()
         This is the retry policy the service uses which may be different from the one provided
         (or not) during activity scheduling. The service can override the provided one if some
         values are not specified or exceed configured system limits.
         
        .temporal.api.common.v1.RetryPolicy retry_policy = 17;
        Specified by:
        getRetryPolicyOrBuilder in interface PollActivityTaskQueueResponseOrBuilder
      • 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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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 PollActivityTaskQueueResponse parseFrom​(java.nio.ByteBuffer data)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PollActivityTaskQueueResponse parseFrom​(java.nio.ByteBuffer data,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

        public static PollActivityTaskQueueResponse parseFrom​(java.io.InputStream input)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

        public static PollActivityTaskQueueResponse parseDelimitedFrom​(java.io.InputStream input)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

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

        public static PollActivityTaskQueueResponse parseFrom​(com.google.protobuf.CodedInputStream input)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

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

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

        protected PollActivityTaskQueueResponse.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<PollActivityTaskQueueResponse> 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 PollActivityTaskQueueResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder