Class QueryResponse

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, QueryResponseOrBuilder, Serializable

    @Generated
    public final class QueryResponse
    extends com.google.protobuf.GeneratedMessage
    implements QueryResponseOrBuilder
     Message that represents the Response to a Query 
     
    Protobuf type io.axoniq.axonserver.grpc.query.QueryResponse
    See Also:
    Serialized Form
    • Field Detail

      • MESSAGE_IDENTIFIER_FIELD_NUMBER

        public static final int MESSAGE_IDENTIFIER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ERROR_CODE_FIELD_NUMBER

        public static final int ERROR_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ERROR_MESSAGE_FIELD_NUMBER

        public static final int ERROR_MESSAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROCESSING_INSTRUCTIONS_FIELD_NUMBER

        public static final int PROCESSING_INSTRUCTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REQUEST_IDENTIFIER_FIELD_NUMBER

        public static final int REQUEST_IDENTIFIER_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • getDescriptor

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

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage
      • internalGetMapFieldReflection

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • 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.
      • 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.
      • 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.
      • 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.
      • 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
      • 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
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(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 QueryResponse parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        protected QueryResponse.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getDefaultInstance

        public static QueryResponse getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<QueryResponse> parser()
      • getParserForType

        public com.google.protobuf.Parser<QueryResponse> 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.GeneratedMessage
      • getDefaultInstanceForType

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