Class SubscriptionQuery

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

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

      • SUBSCRIPTION_IDENTIFIER_FIELD_NUMBER

        public static final int SUBSCRIPTION_IDENTIFIER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NUMBER_OF_PERMITS_FIELD_NUMBER

        public static final int NUMBER_OF_PERMITS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • QUERY_REQUEST_FIELD_NUMBER

        public static final int QUERY_REQUEST_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_RESPONSE_TYPE_FIELD_NUMBER

        public static final int UPDATE_RESPONSE_TYPE_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
      • getSubscriptionIdentifierBytes

        public com.google.protobuf.ByteString getSubscriptionIdentifierBytes()
         A unique identifier for this subscription 
         
        string subscription_identifier = 1;
        Specified by:
        getSubscriptionIdentifierBytes in interface SubscriptionQueryOrBuilder
        Returns:
        The bytes for subscriptionIdentifier.
      • getNumberOfPermits

        public long getNumberOfPermits()
         The number of messages the Server may send before needing to await additional permits 
         
        int64 number_of_permits = 2;
        Specified by:
        getNumberOfPermits in interface SubscriptionQueryOrBuilder
        Returns:
        The numberOfPermits.
      • hasQueryRequest

        public boolean hasQueryRequest()
         The Query describing the desire for information 
         
        .io.axoniq.axonserver.grpc.query.QueryRequest query_request = 3;
        Specified by:
        hasQueryRequest in interface SubscriptionQueryOrBuilder
        Returns:
        Whether the queryRequest field is set.
      • getQueryRequest

        public QueryRequest getQueryRequest()
         The Query describing the desire for information 
         
        .io.axoniq.axonserver.grpc.query.QueryRequest query_request = 3;
        Specified by:
        getQueryRequest in interface SubscriptionQueryOrBuilder
        Returns:
        The queryRequest.
      • hasUpdateResponseType

        @Deprecated
        public boolean hasUpdateResponseType()
        Deprecated.
        io.axoniq.axonserver.grpc.query.SubscriptionQuery.update_response_type is deprecated. See query.proto;l=177
         A description of the type of Object expected as Update Responses. Deprecated: queries don't need to provide expected response types 
         
        .io.axoniq.axonserver.grpc.SerializedObject update_response_type = 4 [deprecated = true];
        Specified by:
        hasUpdateResponseType in interface SubscriptionQueryOrBuilder
        Returns:
        Whether the updateResponseType field is set.
      • getUpdateResponseType

        @Deprecated
        public SerializedObject getUpdateResponseType()
        Deprecated.
        io.axoniq.axonserver.grpc.query.SubscriptionQuery.update_response_type is deprecated. See query.proto;l=177
         A description of the type of Object expected as Update Responses. Deprecated: queries don't need to provide expected response types 
         
        .io.axoniq.axonserver.grpc.SerializedObject update_response_type = 4 [deprecated = true];
        Specified by:
        getUpdateResponseType in interface SubscriptionQueryOrBuilder
        Returns:
        The updateResponseType.
      • 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 SubscriptionQuery parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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