Class QueryProviderOutbound

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

    @Generated
    public final class QueryProviderOutbound
    extends com.google.protobuf.GeneratedMessage
    implements QueryProviderOutboundOrBuilder
     Message containing Query related instructions for Axon Server 
     
    Protobuf type io.axoniq.axonserver.grpc.query.QueryProviderOutbound
    See Also:
    Serialized Form
    • Field Detail

      • UNSUBSCRIBE_FIELD_NUMBER

        public static final int UNSUBSCRIBE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FLOW_CONTROL_FIELD_NUMBER

        public static final int FLOW_CONTROL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • QUERY_RESPONSE_FIELD_NUMBER

        public static final int QUERY_RESPONSE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • QUERY_COMPLETE_FIELD_NUMBER

        public static final int QUERY_COMPLETE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SUBSCRIPTION_QUERY_RESPONSE_FIELD_NUMBER

        public static final int SUBSCRIPTION_QUERY_RESPONSE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INSTRUCTION_ID_FIELD_NUMBER

        public static final int INSTRUCTION_ID_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
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • hasSubscribe

        public boolean hasSubscribe()
         Registers a Query Handler with AxonServer 
         
        .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
        Specified by:
        hasSubscribe in interface QueryProviderOutboundOrBuilder
        Returns:
        Whether the subscribe field is set.
      • hasUnsubscribe

        public boolean hasUnsubscribe()
         Unregisters a Query Handler with AxonServer 
         
        .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
        Specified by:
        hasUnsubscribe in interface QueryProviderOutboundOrBuilder
        Returns:
        Whether the unsubscribe field is set.
      • hasFlowControl

        public boolean hasFlowControl()
         Grant permits to AxonServer to send a number of messages to the client 
         
        .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
        Specified by:
        hasFlowControl in interface QueryProviderOutboundOrBuilder
        Returns:
        Whether the flowControl field is set.
      • getFlowControl

        public FlowControl getFlowControl()
         Grant permits to AxonServer to send a number of messages to the client 
         
        .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
        Specified by:
        getFlowControl in interface QueryProviderOutboundOrBuilder
        Returns:
        The flowControl.
      • hasQueryResponse

        public boolean hasQueryResponse()
         Sends a Response to a Query received via the inbound stream 
         
        .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
        Specified by:
        hasQueryResponse in interface QueryProviderOutboundOrBuilder
        Returns:
        Whether the queryResponse field is set.
      • hasQueryComplete

        public boolean hasQueryComplete()
         Indicator that all responses for Query have been sent 
         
        .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
        Specified by:
        hasQueryComplete in interface QueryProviderOutboundOrBuilder
        Returns:
        Whether the queryComplete field is set.
      • hasSubscriptionQueryResponse

        public boolean hasSubscriptionQueryResponse()
         Sends a response for a Subscription Query that has been received via the inbound stream 
         
        .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
        Specified by:
        hasSubscriptionQueryResponse in interface QueryProviderOutboundOrBuilder
        Returns:
        Whether the subscriptionQueryResponse field is set.
      • hasAck

        public boolean hasAck()
         Acknowledgement of previously sent instruction via inbound stream 
         
        .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
        Specified by:
        hasAck in interface QueryProviderOutboundOrBuilder
        Returns:
        Whether the ack field is set.
      • getInstructionId

        public String getInstructionId()
         Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream 
         
        string instruction_id = 8;
        Specified by:
        getInstructionId in interface QueryProviderOutboundOrBuilder
        Returns:
        The instructionId.
      • getInstructionIdBytes

        public com.google.protobuf.ByteString getInstructionIdBytes()
         Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream 
         
        string instruction_id = 8;
        Specified by:
        getInstructionIdBytes in interface QueryProviderOutboundOrBuilder
        Returns:
        The bytes for instructionId.
      • 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 QueryProviderOutbound parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<QueryProviderOutbound> 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 QueryProviderOutbound getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder