Class WorkflowExecutionInfo

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

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

      • START_TIME_FIELD_NUMBER

        public static final int START_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CLOSE_TIME_FIELD_NUMBER

        public static final int CLOSE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HISTORY_LENGTH_FIELD_NUMBER

        public static final int HISTORY_LENGTH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PARENT_NAMESPACE_ID_FIELD_NUMBER

        public static final int PARENT_NAMESPACE_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PARENT_EXECUTION_FIELD_NUMBER

        public static final int PARENT_EXECUTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXECUTION_TIME_FIELD_NUMBER

        public static final int EXECUTION_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SEARCH_ATTRIBUTES_FIELD_NUMBER

        public static final int SEARCH_ATTRIBUTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AUTO_RESET_POINTS_FIELD_NUMBER

        public static final int AUTO_RESET_POINTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TASK_QUEUE_FIELD_NUMBER

        public static final int TASK_QUEUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STATE_TRANSITION_COUNT_FIELD_NUMBER

        public static final int STATE_TRANSITION_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HISTORY_SIZE_BYTES_FIELD_NUMBER

        public static final int HISTORY_SIZE_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MOST_RECENT_WORKER_VERSION_STAMP_FIELD_NUMBER

        public static final int MOST_RECENT_WORKER_VERSION_STAMP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXECUTION_DURATION_FIELD_NUMBER

        public static final int EXECUTION_DURATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ROOT_EXECUTION_FIELD_NUMBER

        public static final int ROOT_EXECUTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ASSIGNED_BUILD_ID_FIELD_NUMBER

        public static final int ASSIGNED_BUILD_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INHERITED_BUILD_ID_FIELD_NUMBER

        public static final int INHERITED_BUILD_ID_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
      • hasExecution

        public boolean hasExecution()
        .temporal.api.common.v1.WorkflowExecution execution = 1;
        Specified by:
        hasExecution in interface WorkflowExecutionInfoOrBuilder
        Returns:
        Whether the execution field is set.
      • hasType

        public boolean hasType()
        .temporal.api.common.v1.WorkflowType type = 2;
        Specified by:
        hasType in interface WorkflowExecutionInfoOrBuilder
        Returns:
        Whether the type field is set.
      • getStatusValue

        public int getStatusValue()
        .temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
        Specified by:
        getStatusValue in interface WorkflowExecutionInfoOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • hasParentExecution

        public boolean hasParentExecution()
        .temporal.api.common.v1.WorkflowExecution parent_execution = 8;
        Specified by:
        hasParentExecution in interface WorkflowExecutionInfoOrBuilder
        Returns:
        Whether the parentExecution field is set.
      • hasSearchAttributes

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

        public boolean hasAutoResetPoints()
        .temporal.api.workflow.v1.ResetPoints auto_reset_points = 12;
        Specified by:
        hasAutoResetPoints in interface WorkflowExecutionInfoOrBuilder
        Returns:
        Whether the autoResetPoints field is set.
      • hasMostRecentWorkerVersionStamp

        public boolean hasMostRecentWorkerVersionStamp()
         If set, the most recent worker version stamp that appeared in a workflow task completion
         
        .temporal.api.common.v1.WorkerVersionStamp most_recent_worker_version_stamp = 16;
        Specified by:
        hasMostRecentWorkerVersionStamp in interface WorkflowExecutionInfoOrBuilder
        Returns:
        Whether the mostRecentWorkerVersionStamp field is set.
      • getMostRecentWorkerVersionStamp

        public WorkerVersionStamp getMostRecentWorkerVersionStamp()
         If set, the most recent worker version stamp that appeared in a workflow task completion
         
        .temporal.api.common.v1.WorkerVersionStamp most_recent_worker_version_stamp = 16;
        Specified by:
        getMostRecentWorkerVersionStamp in interface WorkflowExecutionInfoOrBuilder
        Returns:
        The mostRecentWorkerVersionStamp.
      • hasExecutionDuration

        public boolean hasExecutionDuration()
         Workflow execution duration is defined as difference between close time and execution time.
         This field is only populated if the workflow is closed.
         
        .google.protobuf.Duration execution_duration = 17;
        Specified by:
        hasExecutionDuration in interface WorkflowExecutionInfoOrBuilder
        Returns:
        Whether the executionDuration field is set.
      • getExecutionDuration

        public Duration getExecutionDuration()
         Workflow execution duration is defined as difference between close time and execution time.
         This field is only populated if the workflow is closed.
         
        .google.protobuf.Duration execution_duration = 17;
        Specified by:
        getExecutionDuration in interface WorkflowExecutionInfoOrBuilder
        Returns:
        The executionDuration.
      • hasRootExecution

        public boolean hasRootExecution()
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_execution = 18;
        Specified by:
        hasRootExecution in interface WorkflowExecutionInfoOrBuilder
        Returns:
        Whether the rootExecution field is set.
      • getRootExecution

        public WorkflowExecution getRootExecution()
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_execution = 18;
        Specified by:
        getRootExecution in interface WorkflowExecutionInfoOrBuilder
        Returns:
        The rootExecution.
      • getRootExecutionOrBuilder

        public WorkflowExecutionOrBuilder getRootExecutionOrBuilder()
         Contains information about the root workflow execution.
         The root workflow execution is defined as follows:
         1. A workflow without parent workflow is its own root workflow.
         2. A workflow that has a parent workflow has the same root workflow as its parent workflow.
         Note: workflows continued as new or reseted may or may not have parents, check examples below.
         Examples:
           Scenario 1: Workflow W1 starts child workflow W2, and W2 starts child workflow W3.
             - The root workflow of all three workflows is W1.
           Scenario 2: Workflow W1 starts child workflow W2, and W2 continued as new W3.
             - The root workflow of all three workflows is W1.
           Scenario 3: Workflow W1 continued as new W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
           Scenario 4: Workflow W1 starts child workflow W2, and W2 is reseted, creating W3
             - The root workflow of all three workflows is W1.
           Scenario 5: Workflow W1 is reseted, creating W2.
             - The root workflow of W1 is W1 and the root workflow of W2 is W2.
         
        .temporal.api.common.v1.WorkflowExecution root_execution = 18;
        Specified by:
        getRootExecutionOrBuilder in interface WorkflowExecutionInfoOrBuilder
      • getAssignedBuildId

        public java.lang.String getAssignedBuildId()
         The currently assigned build ID for this execution. Presence of this value means worker versioning is used
         for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules
         when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled
         again, the assigned build ID may change according to the latest versioning rules.
         Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to
         this execution.
         
        string assigned_build_id = 19;
        Specified by:
        getAssignedBuildId in interface WorkflowExecutionInfoOrBuilder
        Returns:
        The assignedBuildId.
      • getAssignedBuildIdBytes

        public com.google.protobuf.ByteString getAssignedBuildIdBytes()
         The currently assigned build ID for this execution. Presence of this value means worker versioning is used
         for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules
         when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled
         again, the assigned build ID may change according to the latest versioning rules.
         Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to
         this execution.
         
        string assigned_build_id = 19;
        Specified by:
        getAssignedBuildIdBytes in interface WorkflowExecutionInfoOrBuilder
        Returns:
        The bytes for assignedBuildId.
      • getInheritedBuildId

        public java.lang.String getInheritedBuildId()
         Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead
         of using the assignment rules.
         
        string inherited_build_id = 20;
        Specified by:
        getInheritedBuildId in interface WorkflowExecutionInfoOrBuilder
        Returns:
        The inheritedBuildId.
      • getInheritedBuildIdBytes

        public com.google.protobuf.ByteString getInheritedBuildIdBytes()
         Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead
         of using the assignment rules.
         
        string inherited_build_id = 20;
        Specified by:
        getInheritedBuildIdBytes in interface WorkflowExecutionInfoOrBuilder
        Returns:
        The bytes for inheritedBuildId.
      • 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 WorkflowExecutionInfo parseFrom​(java.nio.ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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