Class QueryResponse.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, QueryResponseOrBuilder, Cloneable
    Enclosing class:
    QueryResponse

    public static final class QueryResponse.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<QueryResponse.Builder>
    implements QueryResponseOrBuilder
     Message that represents the Response to a Query 
     
    Protobuf type io.axoniq.axonserver.grpc.query.QueryResponse
    • Method Detail

      • 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.GeneratedMessage.Builder<QueryResponse.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<QueryResponse.Builder>
      • internalGetFieldAccessorTable

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

        public QueryResponse.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.GeneratedMessage.Builder<QueryResponse.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.GeneratedMessage.Builder<QueryResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public QueryResponse.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<QueryResponse.Builder>
      • isInitialized

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

        public QueryResponse.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<QueryResponse.Builder>
        Throws:
        IOException
      • getMessageIdentifier

        public String getMessageIdentifier()
         The unique identifier of the Response Message 
         
        string message_identifier = 1;
        Specified by:
        getMessageIdentifier in interface QueryResponseOrBuilder
        Returns:
        The messageIdentifier.
      • getMessageIdentifierBytes

        public com.google.protobuf.ByteString getMessageIdentifierBytes()
         The unique identifier of the Response Message 
         
        string message_identifier = 1;
        Specified by:
        getMessageIdentifierBytes in interface QueryResponseOrBuilder
        Returns:
        The bytes for messageIdentifier.
      • setMessageIdentifier

        public QueryResponse.Builder setMessageIdentifier​(String value)
         The unique identifier of the Response Message 
         
        string message_identifier = 1;
        Parameters:
        value - The messageIdentifier to set.
        Returns:
        This builder for chaining.
      • clearMessageIdentifier

        public QueryResponse.Builder clearMessageIdentifier()
         The unique identifier of the Response Message 
         
        string message_identifier = 1;
        Returns:
        This builder for chaining.
      • setMessageIdentifierBytes

        public QueryResponse.Builder setMessageIdentifierBytes​(com.google.protobuf.ByteString value)
         The unique identifier of the Response Message 
         
        string message_identifier = 1;
        Parameters:
        value - The bytes for messageIdentifier to set.
        Returns:
        This builder for chaining.
      • getErrorCode

        public String getErrorCode()
         An Error Code identifying the type of error, if any 
         
        string error_code = 2;
        Specified by:
        getErrorCode in interface QueryResponseOrBuilder
        Returns:
        The errorCode.
      • getErrorCodeBytes

        public com.google.protobuf.ByteString getErrorCodeBytes()
         An Error Code identifying the type of error, if any 
         
        string error_code = 2;
        Specified by:
        getErrorCodeBytes in interface QueryResponseOrBuilder
        Returns:
        The bytes for errorCode.
      • setErrorCode

        public QueryResponse.Builder setErrorCode​(String value)
         An Error Code identifying the type of error, if any 
         
        string error_code = 2;
        Parameters:
        value - The errorCode to set.
        Returns:
        This builder for chaining.
      • clearErrorCode

        public QueryResponse.Builder clearErrorCode()
         An Error Code identifying the type of error, if any 
         
        string error_code = 2;
        Returns:
        This builder for chaining.
      • setErrorCodeBytes

        public QueryResponse.Builder setErrorCodeBytes​(com.google.protobuf.ByteString value)
         An Error Code identifying the type of error, if any 
         
        string error_code = 2;
        Parameters:
        value - The bytes for errorCode to set.
        Returns:
        This builder for chaining.
      • hasErrorMessage

        public boolean hasErrorMessage()
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
        Specified by:
        hasErrorMessage in interface QueryResponseOrBuilder
        Returns:
        Whether the errorMessage field is set.
      • getErrorMessage

        public ErrorMessage getErrorMessage()
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
        Specified by:
        getErrorMessage in interface QueryResponseOrBuilder
        Returns:
        The errorMessage.
      • setErrorMessage

        public QueryResponse.Builder setErrorMessage​(ErrorMessage value)
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
      • setErrorMessage

        public QueryResponse.Builder setErrorMessage​(ErrorMessage.Builder builderForValue)
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
      • mergeErrorMessage

        public QueryResponse.Builder mergeErrorMessage​(ErrorMessage value)
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
      • clearErrorMessage

        public QueryResponse.Builder clearErrorMessage()
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
      • getErrorMessageBuilder

        public ErrorMessage.Builder getErrorMessageBuilder()
         A detailed description of the error, if any 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
      • hasPayload

        public boolean hasPayload()
         The Payload of the Response Message 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
        Specified by:
        hasPayload in interface QueryResponseOrBuilder
        Returns:
        Whether the payload field is set.
      • clearPayload

        public QueryResponse.Builder clearPayload()
         The Payload of the Response Message 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
      • getPayloadBuilder

        public SerializedObject.Builder getPayloadBuilder()
         The Payload of the Response Message 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
      • getMetaDataCount

        public int getMetaDataCount()
        Description copied from interface: QueryResponseOrBuilder
         Any Meta Data describing the context of the Response Message 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
        Specified by:
        getMetaDataCount in interface QueryResponseOrBuilder
      • containsMetaData

        public boolean containsMetaData​(String key)
         Any Meta Data describing the context of the Response Message 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
        Specified by:
        containsMetaData in interface QueryResponseOrBuilder
      • removeMetaData

        public QueryResponse.Builder removeMetaData​(String key)
         Any Meta Data describing the context of the Response Message 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • putMetaData

        public QueryResponse.Builder putMetaData​(String key,
                                                 MetaDataValue value)
         Any Meta Data describing the context of the Response Message 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • putAllMetaData

        public QueryResponse.Builder putAllMetaData​(Map<String,​MetaDataValue> values)
         Any Meta Data describing the context of the Response Message 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • putMetaDataBuilderIfAbsent

        public MetaDataValue.Builder putMetaDataBuilderIfAbsent​(String key)
         Any Meta Data describing the context of the Response Message 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • getProcessingInstructionsCount

        public int getProcessingInstructionsCount()
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
        Specified by:
        getProcessingInstructionsCount in interface QueryResponseOrBuilder
      • setProcessingInstructions

        public QueryResponse.Builder setProcessingInstructions​(int index,
                                                               ProcessingInstruction value)
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • setProcessingInstructions

        public QueryResponse.Builder setProcessingInstructions​(int index,
                                                               ProcessingInstruction.Builder builderForValue)
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructions

        public QueryResponse.Builder addProcessingInstructions​(ProcessingInstruction value)
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructions

        public QueryResponse.Builder addProcessingInstructions​(int index,
                                                               ProcessingInstruction value)
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructions

        public QueryResponse.Builder addProcessingInstructions​(ProcessingInstruction.Builder builderForValue)
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructions

        public QueryResponse.Builder addProcessingInstructions​(int index,
                                                               ProcessingInstruction.Builder builderForValue)
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addAllProcessingInstructions

        public QueryResponse.Builder addAllProcessingInstructions​(Iterable<? extends ProcessingInstruction> values)
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • clearProcessingInstructions

        public QueryResponse.Builder clearProcessingInstructions()
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • removeProcessingInstructions

        public QueryResponse.Builder removeProcessingInstructions​(int index)
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • getProcessingInstructionsBuilder

        public ProcessingInstruction.Builder getProcessingInstructionsBuilder​(int index)
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructionsBuilder

        public ProcessingInstruction.Builder addProcessingInstructionsBuilder()
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructionsBuilder

        public ProcessingInstruction.Builder addProcessingInstructionsBuilder​(int index)
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • getProcessingInstructionsBuilderList

        public List<ProcessingInstruction.Builder> getProcessingInstructionsBuilderList()
         Any instructions for components Routing or Handling the Response Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • getRequestIdentifier

        public String getRequestIdentifier()
         The unique identifier of the Query to which this is a response 
         
        string request_identifier = 7;
        Specified by:
        getRequestIdentifier in interface QueryResponseOrBuilder
        Returns:
        The requestIdentifier.
      • getRequestIdentifierBytes

        public com.google.protobuf.ByteString getRequestIdentifierBytes()
         The unique identifier of the Query to which this is a response 
         
        string request_identifier = 7;
        Specified by:
        getRequestIdentifierBytes in interface QueryResponseOrBuilder
        Returns:
        The bytes for requestIdentifier.
      • setRequestIdentifier

        public QueryResponse.Builder setRequestIdentifier​(String value)
         The unique identifier of the Query to which this is a response 
         
        string request_identifier = 7;
        Parameters:
        value - The requestIdentifier to set.
        Returns:
        This builder for chaining.
      • clearRequestIdentifier

        public QueryResponse.Builder clearRequestIdentifier()
         The unique identifier of the Query to which this is a response 
         
        string request_identifier = 7;
        Returns:
        This builder for chaining.
      • setRequestIdentifierBytes

        public QueryResponse.Builder setRequestIdentifierBytes​(com.google.protobuf.ByteString value)
         The unique identifier of the Query to which this is a response 
         
        string request_identifier = 7;
        Parameters:
        value - The bytes for requestIdentifier to set.
        Returns:
        This builder for chaining.