Class RespondQueryTaskCompletedRequest.Builder

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

public static final class RespondQueryTaskCompletedRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder> implements RespondQueryTaskCompletedRequestOrBuilder
Protobuf type temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • getDefaultInstanceForType

      public RespondQueryTaskCompletedRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RespondQueryTaskCompletedRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • setField

      public RespondQueryTaskCompletedRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • clearField

      public RespondQueryTaskCompletedRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • clearOneof

      public RespondQueryTaskCompletedRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • setRepeatedField

      public RespondQueryTaskCompletedRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • addRepeatedField

      public RespondQueryTaskCompletedRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • mergeFrom

      public RespondQueryTaskCompletedRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RespondQueryTaskCompletedRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • mergeFrom

      public RespondQueryTaskCompletedRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RespondQueryTaskCompletedRequest.Builder>
      Throws:
      IOException
    • getTaskToken

      public com.google.protobuf.ByteString getTaskToken()
      bytes task_token = 1;
      Specified by:
      getTaskToken in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The taskToken.
    • setTaskToken

      public RespondQueryTaskCompletedRequest.Builder setTaskToken(com.google.protobuf.ByteString value)
      bytes task_token = 1;
      Parameters:
      value - The taskToken to set.
      Returns:
      This builder for chaining.
    • clearTaskToken

      bytes task_token = 1;
      Returns:
      This builder for chaining.
    • getCompletedTypeValue

      public int getCompletedTypeValue()
      .temporal.api.enums.v1.QueryResultType completed_type = 2;
      Specified by:
      getCompletedTypeValue in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The enum numeric value on the wire for completedType.
    • setCompletedTypeValue

      public RespondQueryTaskCompletedRequest.Builder setCompletedTypeValue(int value)
      .temporal.api.enums.v1.QueryResultType completed_type = 2;
      Parameters:
      value - The enum numeric value on the wire for completedType to set.
      Returns:
      This builder for chaining.
    • getCompletedType

      public QueryResultType getCompletedType()
      .temporal.api.enums.v1.QueryResultType completed_type = 2;
      Specified by:
      getCompletedType in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The completedType.
    • setCompletedType

      .temporal.api.enums.v1.QueryResultType completed_type = 2;
      Parameters:
      value - The completedType to set.
      Returns:
      This builder for chaining.
    • clearCompletedType

      public RespondQueryTaskCompletedRequest.Builder clearCompletedType()
      .temporal.api.enums.v1.QueryResultType completed_type = 2;
      Returns:
      This builder for chaining.
    • hasQueryResult

      public boolean hasQueryResult()
       The result of the query.
       Mutually exclusive with `error_message` and `failure`. Set when the query succeeds.
       
      .temporal.api.common.v1.Payloads query_result = 3;
      Specified by:
      hasQueryResult in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      Whether the queryResult field is set.
    • getQueryResult

      public Payloads getQueryResult()
       The result of the query.
       Mutually exclusive with `error_message` and `failure`. Set when the query succeeds.
       
      .temporal.api.common.v1.Payloads query_result = 3;
      Specified by:
      getQueryResult in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The queryResult.
    • setQueryResult

      public RespondQueryTaskCompletedRequest.Builder setQueryResult(Payloads value)
       The result of the query.
       Mutually exclusive with `error_message` and `failure`. Set when the query succeeds.
       
      .temporal.api.common.v1.Payloads query_result = 3;
    • setQueryResult

      public RespondQueryTaskCompletedRequest.Builder setQueryResult(Payloads.Builder builderForValue)
       The result of the query.
       Mutually exclusive with `error_message` and `failure`. Set when the query succeeds.
       
      .temporal.api.common.v1.Payloads query_result = 3;
    • mergeQueryResult

      public RespondQueryTaskCompletedRequest.Builder mergeQueryResult(Payloads value)
       The result of the query.
       Mutually exclusive with `error_message` and `failure`. Set when the query succeeds.
       
      .temporal.api.common.v1.Payloads query_result = 3;
    • clearQueryResult

      public RespondQueryTaskCompletedRequest.Builder clearQueryResult()
       The result of the query.
       Mutually exclusive with `error_message` and `failure`. Set when the query succeeds.
       
      .temporal.api.common.v1.Payloads query_result = 3;
    • getQueryResultBuilder

      public Payloads.Builder getQueryResultBuilder()
       The result of the query.
       Mutually exclusive with `error_message` and `failure`. Set when the query succeeds.
       
      .temporal.api.common.v1.Payloads query_result = 3;
    • getQueryResultOrBuilder

      public PayloadsOrBuilder getQueryResultOrBuilder()
       The result of the query.
       Mutually exclusive with `error_message` and `failure`. Set when the query succeeds.
       
      .temporal.api.common.v1.Payloads query_result = 3;
      Specified by:
      getQueryResultOrBuilder in interface RespondQueryTaskCompletedRequestOrBuilder
    • getErrorMessage

      public String getErrorMessage()
       A plain error message that must be set if completed_type is QUERY_RESULT_TYPE_FAILED.
       SDKs should also fill in the more complete `failure` field to provide the full context and
       support encryption of failure information.
       `error_message` will be duplicated if the `failure` field is present to support callers
       that pre-date the addition of that field, regardless of whether or not a custom failure
       converter is used.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      string error_message = 4;
      Specified by:
      getErrorMessage in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       A plain error message that must be set if completed_type is QUERY_RESULT_TYPE_FAILED.
       SDKs should also fill in the more complete `failure` field to provide the full context and
       support encryption of failure information.
       `error_message` will be duplicated if the `failure` field is present to support callers
       that pre-date the addition of that field, regardless of whether or not a custom failure
       converter is used.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      string error_message = 4;
      Specified by:
      getErrorMessageBytes in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public RespondQueryTaskCompletedRequest.Builder setErrorMessage(String value)
       A plain error message that must be set if completed_type is QUERY_RESULT_TYPE_FAILED.
       SDKs should also fill in the more complete `failure` field to provide the full context and
       support encryption of failure information.
       `error_message` will be duplicated if the `failure` field is present to support callers
       that pre-date the addition of that field, regardless of whether or not a custom failure
       converter is used.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      string error_message = 4;
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public RespondQueryTaskCompletedRequest.Builder clearErrorMessage()
       A plain error message that must be set if completed_type is QUERY_RESULT_TYPE_FAILED.
       SDKs should also fill in the more complete `failure` field to provide the full context and
       support encryption of failure information.
       `error_message` will be duplicated if the `failure` field is present to support callers
       that pre-date the addition of that field, regardless of whether or not a custom failure
       converter is used.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      string error_message = 4;
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public RespondQueryTaskCompletedRequest.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
       A plain error message that must be set if completed_type is QUERY_RESULT_TYPE_FAILED.
       SDKs should also fill in the more complete `failure` field to provide the full context and
       support encryption of failure information.
       `error_message` will be duplicated if the `failure` field is present to support callers
       that pre-date the addition of that field, regardless of whether or not a custom failure
       converter is used.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      string error_message = 4;
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.
    • getNamespace

      public String getNamespace()
      string namespace = 6;
      Specified by:
      getNamespace in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
      string namespace = 6;
      Specified by:
      getNamespaceBytes in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

      public RespondQueryTaskCompletedRequest.Builder setNamespace(String value)
      string namespace = 6;
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

      string namespace = 6;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public RespondQueryTaskCompletedRequest.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
      string namespace = 6;
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • hasFailure

      public boolean hasFailure()
       The full reason for this query failure. This field is newer than `error_message` and can be
       encoded by the SDK's failure converter to support E2E encryption of messages and stack
       traces.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      .temporal.api.failure.v1.Failure failure = 7;
      Specified by:
      hasFailure in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      Whether the failure field is set.
    • getFailure

      public Failure getFailure()
       The full reason for this query failure. This field is newer than `error_message` and can be
       encoded by the SDK's failure converter to support E2E encryption of messages and stack
       traces.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      .temporal.api.failure.v1.Failure failure = 7;
      Specified by:
      getFailure in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The failure.
    • setFailure

       The full reason for this query failure. This field is newer than `error_message` and can be
       encoded by the SDK's failure converter to support E2E encryption of messages and stack
       traces.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      .temporal.api.failure.v1.Failure failure = 7;
    • setFailure

      public RespondQueryTaskCompletedRequest.Builder setFailure(Failure.Builder builderForValue)
       The full reason for this query failure. This field is newer than `error_message` and can be
       encoded by the SDK's failure converter to support E2E encryption of messages and stack
       traces.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      .temporal.api.failure.v1.Failure failure = 7;
    • mergeFailure

       The full reason for this query failure. This field is newer than `error_message` and can be
       encoded by the SDK's failure converter to support E2E encryption of messages and stack
       traces.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      .temporal.api.failure.v1.Failure failure = 7;
    • clearFailure

       The full reason for this query failure. This field is newer than `error_message` and can be
       encoded by the SDK's failure converter to support E2E encryption of messages and stack
       traces.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      .temporal.api.failure.v1.Failure failure = 7;
    • getFailureBuilder

      public Failure.Builder getFailureBuilder()
       The full reason for this query failure. This field is newer than `error_message` and can be
       encoded by the SDK's failure converter to support E2E encryption of messages and stack
       traces.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      .temporal.api.failure.v1.Failure failure = 7;
    • getFailureOrBuilder

      public FailureOrBuilder getFailureOrBuilder()
       The full reason for this query failure. This field is newer than `error_message` and can be
       encoded by the SDK's failure converter to support E2E encryption of messages and stack
       traces.
       Mutually exclusive with `query_result`. Set when the query fails.
       
      .temporal.api.failure.v1.Failure failure = 7;
      Specified by:
      getFailureOrBuilder in interface RespondQueryTaskCompletedRequestOrBuilder
    • getCauseValue

      public int getCauseValue()
       Why did the task fail? It's important to note that many of the variants in this enum cannot
       apply to worker responses. See the type's doc for more.
       
      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 8;
      Specified by:
      getCauseValue in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The enum numeric value on the wire for cause.
    • setCauseValue

      public RespondQueryTaskCompletedRequest.Builder setCauseValue(int value)
       Why did the task fail? It's important to note that many of the variants in this enum cannot
       apply to worker responses. See the type's doc for more.
       
      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 8;
      Parameters:
      value - The enum numeric value on the wire for cause to set.
      Returns:
      This builder for chaining.
    • getCause

      public WorkflowTaskFailedCause getCause()
       Why did the task fail? It's important to note that many of the variants in this enum cannot
       apply to worker responses. See the type's doc for more.
       
      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 8;
      Specified by:
      getCause in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The cause.
    • setCause

       Why did the task fail? It's important to note that many of the variants in this enum cannot
       apply to worker responses. See the type's doc for more.
       
      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 8;
      Parameters:
      value - The cause to set.
      Returns:
      This builder for chaining.
    • clearCause

       Why did the task fail? It's important to note that many of the variants in this enum cannot
       apply to worker responses. See the type's doc for more.
       
      .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 8;
      Returns:
      This builder for chaining.
    • getPollerGroupId

      public String getPollerGroupId()
       Client must forward the poller_group_id received in PollWorkflowTaskQueueResponse for proper
       routing of the response.
       
      string poller_group_id = 9;
      Specified by:
      getPollerGroupId in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The pollerGroupId.
    • getPollerGroupIdBytes

      public com.google.protobuf.ByteString getPollerGroupIdBytes()
       Client must forward the poller_group_id received in PollWorkflowTaskQueueResponse for proper
       routing of the response.
       
      string poller_group_id = 9;
      Specified by:
      getPollerGroupIdBytes in interface RespondQueryTaskCompletedRequestOrBuilder
      Returns:
      The bytes for pollerGroupId.
    • setPollerGroupId

      public RespondQueryTaskCompletedRequest.Builder setPollerGroupId(String value)
       Client must forward the poller_group_id received in PollWorkflowTaskQueueResponse for proper
       routing of the response.
       
      string poller_group_id = 9;
      Parameters:
      value - The pollerGroupId to set.
      Returns:
      This builder for chaining.
    • clearPollerGroupId

      public RespondQueryTaskCompletedRequest.Builder clearPollerGroupId()
       Client must forward the poller_group_id received in PollWorkflowTaskQueueResponse for proper
       routing of the response.
       
      string poller_group_id = 9;
      Returns:
      This builder for chaining.
    • setPollerGroupIdBytes

      public RespondQueryTaskCompletedRequest.Builder setPollerGroupIdBytes(com.google.protobuf.ByteString value)
       Client must forward the poller_group_id received in PollWorkflowTaskQueueResponse for proper
       routing of the response.
       
      string poller_group_id = 9;
      Parameters:
      value - The bytes for pollerGroupId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final RespondQueryTaskCompletedRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>
    • mergeUnknownFields

      public final RespondQueryTaskCompletedRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RespondQueryTaskCompletedRequest.Builder>