Class QueryRequest.Builder

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

    public static final class QueryRequest.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<QueryRequest.Builder>
    implements QueryRequestOrBuilder
     Message representing an incoming Query 
     
    Protobuf type io.axoniq.axonserver.grpc.query.QueryRequest
    • 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<QueryRequest.Builder>
      • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

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

        public QueryRequest.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<QueryRequest.Builder>
        Throws:
        IOException
      • getMessageIdentifierBytes

        public com.google.protobuf.ByteString getMessageIdentifierBytes()
         The message ID of the incoming Query 
         
        string message_identifier = 1;
        Specified by:
        getMessageIdentifierBytes in interface QueryRequestOrBuilder
        Returns:
        The bytes for messageIdentifier.
      • setMessageIdentifier

        public QueryRequest.Builder setMessageIdentifier​(String value)
         The message ID of the incoming Query 
         
        string message_identifier = 1;
        Parameters:
        value - The messageIdentifier to set.
        Returns:
        This builder for chaining.
      • clearMessageIdentifier

        public QueryRequest.Builder clearMessageIdentifier()
         The message ID of the incoming Query 
         
        string message_identifier = 1;
        Returns:
        This builder for chaining.
      • setMessageIdentifierBytes

        public QueryRequest.Builder setMessageIdentifierBytes​(com.google.protobuf.ByteString value)
         The message ID of the incoming Query 
         
        string message_identifier = 1;
        Parameters:
        value - The bytes for messageIdentifier to set.
        Returns:
        This builder for chaining.
      • getQueryBytes

        public com.google.protobuf.ByteString getQueryBytes()
         The name of the Query to execute 
         
        string query = 2;
        Specified by:
        getQueryBytes in interface QueryRequestOrBuilder
        Returns:
        The bytes for query.
      • setQuery

        public QueryRequest.Builder setQuery​(String value)
         The name of the Query to execute 
         
        string query = 2;
        Parameters:
        value - The query to set.
        Returns:
        This builder for chaining.
      • clearQuery

        public QueryRequest.Builder clearQuery()
         The name of the Query to execute 
         
        string query = 2;
        Returns:
        This builder for chaining.
      • setQueryBytes

        public QueryRequest.Builder setQueryBytes​(com.google.protobuf.ByteString value)
         The name of the Query to execute 
         
        string query = 2;
        Parameters:
        value - The bytes for query to set.
        Returns:
        This builder for chaining.
      • getTimestamp

        public long getTimestamp()
         The timestamp of the Query creation 
         
        int64 timestamp = 3;
        Specified by:
        getTimestamp in interface QueryRequestOrBuilder
        Returns:
        The timestamp.
      • setTimestamp

        public QueryRequest.Builder setTimestamp​(long value)
         The timestamp of the Query creation 
         
        int64 timestamp = 3;
        Parameters:
        value - The timestamp to set.
        Returns:
        This builder for chaining.
      • clearTimestamp

        public QueryRequest.Builder clearTimestamp()
         The timestamp of the Query creation 
         
        int64 timestamp = 3;
        Returns:
        This builder for chaining.
      • hasPayload

        public boolean hasPayload()
         A payload accompanying the Query 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
        Specified by:
        hasPayload in interface QueryRequestOrBuilder
        Returns:
        Whether the payload field is set.
      • clearPayload

        public QueryRequest.Builder clearPayload()
         A payload accompanying the Query 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
      • getPayloadBuilder

        public SerializedObject.Builder getPayloadBuilder()
         A payload accompanying the Query 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
      • getMetaDataCount

        public int getMetaDataCount()
        Description copied from interface: QueryRequestOrBuilder
         Meta Data providing contextual information of the Query 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
        Specified by:
        getMetaDataCount in interface QueryRequestOrBuilder
      • containsMetaData

        public boolean containsMetaData​(String key)
         Meta Data providing contextual information of the Query 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
        Specified by:
        containsMetaData in interface QueryRequestOrBuilder
      • removeMetaData

        public QueryRequest.Builder removeMetaData​(String key)
         Meta Data providing contextual information of the Query 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • putMetaData

        public QueryRequest.Builder putMetaData​(String key,
                                                MetaDataValue value)
         Meta Data providing contextual information of the Query 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • putAllMetaData

        public QueryRequest.Builder putAllMetaData​(Map<String,​MetaDataValue> values)
         Meta Data providing contextual information of the Query 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • putMetaDataBuilderIfAbsent

        public MetaDataValue.Builder putMetaDataBuilderIfAbsent​(String key)
         Meta Data providing contextual information of the Query 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • hasResponseType

        @Deprecated
        public boolean hasResponseType()
        Deprecated.
        io.axoniq.axonserver.grpc.query.QueryRequest.response_type is deprecated. See query.proto;l=124
         An object describing the expectations of the Response Type. Deprecated. no longer used in Axon Framework 5 
         
        .io.axoniq.axonserver.grpc.SerializedObject response_type = 6 [deprecated = true];
        Specified by:
        hasResponseType in interface QueryRequestOrBuilder
        Returns:
        Whether the responseType field is set.
      • getResponseType

        @Deprecated
        public SerializedObject getResponseType()
        Deprecated.
        io.axoniq.axonserver.grpc.query.QueryRequest.response_type is deprecated. See query.proto;l=124
         An object describing the expectations of the Response Type. Deprecated. no longer used in Axon Framework 5 
         
        .io.axoniq.axonserver.grpc.SerializedObject response_type = 6 [deprecated = true];
        Specified by:
        getResponseType in interface QueryRequestOrBuilder
        Returns:
        The responseType.
      • setResponseType

        @Deprecated
        public QueryRequest.Builder setResponseType​(SerializedObject value)
        Deprecated.
         An object describing the expectations of the Response Type. Deprecated. no longer used in Axon Framework 5 
         
        .io.axoniq.axonserver.grpc.SerializedObject response_type = 6 [deprecated = true];
      • setResponseType

        @Deprecated
        public QueryRequest.Builder setResponseType​(SerializedObject.Builder builderForValue)
        Deprecated.
         An object describing the expectations of the Response Type. Deprecated. no longer used in Axon Framework 5 
         
        .io.axoniq.axonserver.grpc.SerializedObject response_type = 6 [deprecated = true];
      • mergeResponseType

        @Deprecated
        public QueryRequest.Builder mergeResponseType​(SerializedObject value)
        Deprecated.
         An object describing the expectations of the Response Type. Deprecated. no longer used in Axon Framework 5 
         
        .io.axoniq.axonserver.grpc.SerializedObject response_type = 6 [deprecated = true];
      • clearResponseType

        @Deprecated
        public QueryRequest.Builder clearResponseType()
        Deprecated.
         An object describing the expectations of the Response Type. Deprecated. no longer used in Axon Framework 5 
         
        .io.axoniq.axonserver.grpc.SerializedObject response_type = 6 [deprecated = true];
      • getResponseTypeBuilder

        @Deprecated
        public SerializedObject.Builder getResponseTypeBuilder()
        Deprecated.
         An object describing the expectations of the Response Type. Deprecated. no longer used in Axon Framework 5 
         
        .io.axoniq.axonserver.grpc.SerializedObject response_type = 6 [deprecated = true];
      • getProcessingInstructionsCount

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

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

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

        public QueryRequest.Builder addProcessingInstructions​(ProcessingInstruction value)
         Any instructions for components Routing or Handling the Query 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 7;
      • addProcessingInstructions

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

        public QueryRequest.Builder addProcessingInstructions​(ProcessingInstruction.Builder builderForValue)
         Any instructions for components Routing or Handling the Query 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 7;
      • addProcessingInstructions

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

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

        public QueryRequest.Builder clearProcessingInstructions()
         Any instructions for components Routing or Handling the Query 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 7;
      • removeProcessingInstructions

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

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

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

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

        public List<ProcessingInstruction.Builder> getProcessingInstructionsBuilderList()
         Any instructions for components Routing or Handling the Query 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 7;
      • getClientId

        public String getClientId()
         The unique identifier of the client instance dispatching the query 
         
        string client_id = 8;
        Specified by:
        getClientId in interface QueryRequestOrBuilder
        Returns:
        The clientId.
      • getClientIdBytes

        public com.google.protobuf.ByteString getClientIdBytes()
         The unique identifier of the client instance dispatching the query 
         
        string client_id = 8;
        Specified by:
        getClientIdBytes in interface QueryRequestOrBuilder
        Returns:
        The bytes for clientId.
      • setClientId

        public QueryRequest.Builder setClientId​(String value)
         The unique identifier of the client instance dispatching the query 
         
        string client_id = 8;
        Parameters:
        value - The clientId to set.
        Returns:
        This builder for chaining.
      • clearClientId

        public QueryRequest.Builder clearClientId()
         The unique identifier of the client instance dispatching the query 
         
        string client_id = 8;
        Returns:
        This builder for chaining.
      • setClientIdBytes

        public QueryRequest.Builder setClientIdBytes​(com.google.protobuf.ByteString value)
         The unique identifier of the client instance dispatching the query 
         
        string client_id = 8;
        Parameters:
        value - The bytes for clientId to set.
        Returns:
        This builder for chaining.
      • getComponentName

        public String getComponentName()
         The Name of the Component dispatching the query 
         
        string component_name = 9;
        Specified by:
        getComponentName in interface QueryRequestOrBuilder
        Returns:
        The componentName.
      • getComponentNameBytes

        public com.google.protobuf.ByteString getComponentNameBytes()
         The Name of the Component dispatching the query 
         
        string component_name = 9;
        Specified by:
        getComponentNameBytes in interface QueryRequestOrBuilder
        Returns:
        The bytes for componentName.
      • setComponentName

        public QueryRequest.Builder setComponentName​(String value)
         The Name of the Component dispatching the query 
         
        string component_name = 9;
        Parameters:
        value - The componentName to set.
        Returns:
        This builder for chaining.
      • clearComponentName

        public QueryRequest.Builder clearComponentName()
         The Name of the Component dispatching the query 
         
        string component_name = 9;
        Returns:
        This builder for chaining.
      • setComponentNameBytes

        public QueryRequest.Builder setComponentNameBytes​(com.google.protobuf.ByteString value)
         The Name of the Component dispatching the query 
         
        string component_name = 9;
        Parameters:
        value - The bytes for componentName to set.
        Returns:
        This builder for chaining.