Class RespondWorkflowTaskCompletedRequest

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

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

      • TASK_TOKEN_FIELD_NUMBER

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

        public static final int STICKY_ATTRIBUTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RETURN_NEW_WORKFLOW_TASK_FIELD_NUMBER

        public static final int RETURN_NEW_WORKFLOW_TASK_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FORCE_CREATE_NEW_WORKFLOW_TASK_FIELD_NUMBER

        public static final int FORCE_CREATE_NEW_WORKFLOW_TASK_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BINARY_CHECKSUM_FIELD_NUMBER

        public static final int BINARY_CHECKSUM_FIELD_NUMBER
        See Also:
        Constant Field Values
      • QUERY_RESULTS_FIELD_NUMBER

        public static final int QUERY_RESULTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • WORKER_VERSION_STAMP_FIELD_NUMBER

        public static final int WORKER_VERSION_STAMP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SDK_METADATA_FIELD_NUMBER

        public static final int SDK_METADATA_FIELD_NUMBER
        See Also:
        Constant Field Values
      • METERING_METADATA_FIELD_NUMBER

        public static final int METERING_METADATA_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CAPABILITIES_FIELD_NUMBER

        public static final int CAPABILITIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEPLOYMENT_FIELD_NUMBER

        public static final int DEPLOYMENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VERSIONING_BEHAVIOR_FIELD_NUMBER

        public static final int VERSIONING_BEHAVIOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEPLOYMENT_OPTIONS_FIELD_NUMBER

        public static final int DEPLOYMENT_OPTIONS_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
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasStickyAttributes

        public boolean hasStickyAttributes()
         May be set by workers to indicate that the worker desires future tasks to be provided with
         incremental history on a sticky queue.
         
        .temporal.api.taskqueue.v1.StickyExecutionAttributes sticky_attributes = 4;
        Specified by:
        hasStickyAttributes in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        Whether the stickyAttributes field is set.
      • getReturnNewWorkflowTask

        public boolean getReturnNewWorkflowTask()
         If set, the worker wishes to immediately receive the next workflow task as a response to
         this completion. This can save on polling round-trips.
         
        bool return_new_workflow_task = 5;
        Specified by:
        getReturnNewWorkflowTask in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        The returnNewWorkflowTask.
      • getForceCreateNewWorkflowTask

        public boolean getForceCreateNewWorkflowTask()
         Can be used to *force* creation of a new workflow task, even if no commands have resolved or
         one would not otherwise have been generated. This is used when the worker knows it is doing
         something useful, but cannot complete it within the workflow task timeout. Local activities
         which run for longer than the task timeout being the prime example.
         
        bool force_create_new_workflow_task = 6;
        Specified by:
        getForceCreateNewWorkflowTask in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        The forceCreateNewWorkflowTask.
      • getBinaryChecksum

        @Deprecated
        public java.lang.String getBinaryChecksum()
        Deprecated.
        temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.binary_checksum is deprecated. See temporal/api/workflowservice/v1/request_response.proto;l=348
         Deprecated. Use `deployment_options` instead.
         Worker process' unique binary id
         
        string binary_checksum = 7 [deprecated = true];
        Specified by:
        getBinaryChecksum in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        The binaryChecksum.
      • getBinaryChecksumBytes

        @Deprecated
        public com.google.protobuf.ByteString getBinaryChecksumBytes()
        Deprecated.
        temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.binary_checksum is deprecated. See temporal/api/workflowservice/v1/request_response.proto;l=348
         Deprecated. Use `deployment_options` instead.
         Worker process' unique binary id
         
        string binary_checksum = 7 [deprecated = true];
        Specified by:
        getBinaryChecksumBytes in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        The bytes for binaryChecksum.
      • containsQueryResults

        public boolean containsQueryResults​(java.lang.String key)
         Responses to the `queries` field in the task being responded to
         
        map<string, .temporal.api.query.v1.WorkflowQueryResult> query_results = 8;
        Specified by:
        containsQueryResults in interface RespondWorkflowTaskCompletedRequestOrBuilder
      • hasWorkerVersionStamp

        @Deprecated
        public boolean hasWorkerVersionStamp()
        Deprecated.
        temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.worker_version_stamp is deprecated. See temporal/api/workflowservice/v1/request_response.proto;l=356
         Version info of the worker who processed this task. This message's `build_id` field should
         always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
         field to true. See message docstrings for more.
         Deprecated. Use `deployment_options` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version_stamp = 10 [deprecated = true];
        Specified by:
        hasWorkerVersionStamp in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        Whether the workerVersionStamp field is set.
      • getWorkerVersionStamp

        @Deprecated
        public WorkerVersionStamp getWorkerVersionStamp()
        Deprecated.
        temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.worker_version_stamp is deprecated. See temporal/api/workflowservice/v1/request_response.proto;l=356
         Version info of the worker who processed this task. This message's `build_id` field should
         always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
         field to true. See message docstrings for more.
         Deprecated. Use `deployment_options` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version_stamp = 10 [deprecated = true];
        Specified by:
        getWorkerVersionStamp in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        The workerVersionStamp.
      • getWorkerVersionStampOrBuilder

        @Deprecated
        public WorkerVersionStampOrBuilder getWorkerVersionStampOrBuilder()
        Deprecated.
         Version info of the worker who processed this task. This message's `build_id` field should
         always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
         field to true. See message docstrings for more.
         Deprecated. Use `deployment_options` and `versioning_behavior` instead.
         
        .temporal.api.common.v1.WorkerVersionStamp worker_version_stamp = 10 [deprecated = true];
        Specified by:
        getWorkerVersionStampOrBuilder in interface RespondWorkflowTaskCompletedRequestOrBuilder
      • hasSdkMetadata

        public boolean hasSdkMetadata()
         Data the SDK wishes to record for itself, but server need not interpret, and does not
         directly impact workflow state.
         
        .temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 12;
        Specified by:
        hasSdkMetadata in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        Whether the sdkMetadata field is set.
      • hasCapabilities

        public boolean hasCapabilities()
         All capabilities the SDK supports.
         
        .temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.Capabilities capabilities = 14;
        Specified by:
        hasCapabilities in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        Whether the capabilities field is set.
      • hasDeployment

        @Deprecated
        public boolean hasDeployment()
        Deprecated.
        temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.deployment is deprecated. See temporal/api/workflowservice/v1/request_response.proto;l=369
         Deployment info of the worker that completed this task. Must be present if user has set
         `WorkerDeploymentOptions` regardless of versioning being enabled or not.
         Deprecated. Replaced with `deployment_options`.
         
        .temporal.api.deployment.v1.Deployment deployment = 15 [deprecated = true];
        Specified by:
        hasDeployment in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        Whether the deployment field is set.
      • getDeployment

        @Deprecated
        public Deployment getDeployment()
        Deprecated.
        temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.deployment is deprecated. See temporal/api/workflowservice/v1/request_response.proto;l=369
         Deployment info of the worker that completed this task. Must be present if user has set
         `WorkerDeploymentOptions` regardless of versioning being enabled or not.
         Deprecated. Replaced with `deployment_options`.
         
        .temporal.api.deployment.v1.Deployment deployment = 15 [deprecated = true];
        Specified by:
        getDeployment in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        The deployment.
      • getDeploymentOrBuilder

        @Deprecated
        public DeploymentOrBuilder getDeploymentOrBuilder()
        Deprecated.
         Deployment info of the worker that completed this task. Must be present if user has set
         `WorkerDeploymentOptions` regardless of versioning being enabled or not.
         Deprecated. Replaced with `deployment_options`.
         
        .temporal.api.deployment.v1.Deployment deployment = 15 [deprecated = true];
        Specified by:
        getDeploymentOrBuilder in interface RespondWorkflowTaskCompletedRequestOrBuilder
      • getVersioningBehaviorValue

        public int getVersioningBehaviorValue()
         Versioning behavior of this workflow execution as set on the worker that completed this task.
         UNSPECIFIED means versioning is not enabled in the worker.
         
        .temporal.api.enums.v1.VersioningBehavior versioning_behavior = 16;
        Specified by:
        getVersioningBehaviorValue in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        The enum numeric value on the wire for versioningBehavior.
      • getVersioningBehavior

        public VersioningBehavior getVersioningBehavior()
         Versioning behavior of this workflow execution as set on the worker that completed this task.
         UNSPECIFIED means versioning is not enabled in the worker.
         
        .temporal.api.enums.v1.VersioningBehavior versioning_behavior = 16;
        Specified by:
        getVersioningBehavior in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        The versioningBehavior.
      • hasDeploymentOptions

        public boolean hasDeploymentOptions()
         Worker deployment options that user has set in the worker.
         
        .temporal.api.deployment.v1.WorkerDeploymentOptions deployment_options = 17;
        Specified by:
        hasDeploymentOptions in interface RespondWorkflowTaskCompletedRequestOrBuilder
        Returns:
        Whether the deploymentOptions field is set.
      • 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 RespondWorkflowTaskCompletedRequest parseFrom​(java.nio.ByteBuffer data)
                                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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