Class RespondQueryTaskCompletedRequest.Builder

    • Method Detail

      • 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>
      • 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

        public RespondQueryTaskCompletedRequest 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
      • 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 java.io.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:
        java.io.IOException
      • 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.
      • 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.
      • 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;
      • 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;
      • getErrorMessage

        public java.lang.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​(java.lang.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.
      • setNamespace

        public RespondQueryTaskCompletedRequest.Builder setNamespace​(java.lang.String value)
        string namespace = 6;
        Parameters:
        value - The namespace to set.
        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

        public RespondQueryTaskCompletedRequest.Builder setFailure​(Failure value)
         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

        public RespondQueryTaskCompletedRequest.Builder mergeFailure​(Failure value)
         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

        public RespondQueryTaskCompletedRequest.Builder 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