Class SubscriptionQueryResponse

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

    @Generated
    public final class SubscriptionQueryResponse
    extends com.google.protobuf.GeneratedMessage
    implements SubscriptionQueryResponseOrBuilder
     Represents a Response Message for a Subscription Query 
     
    Protobuf type io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse
    See Also:
    Serialized Form
    • Field Detail

      • MESSAGE_IDENTIFIER_FIELD_NUMBER

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

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

        public static final int INITIAL_RESULT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COMPLETE_EXCEPTIONALLY_FIELD_NUMBER

        public static final int COMPLETE_EXCEPTIONALLY_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
      • getMessageIdentifierBytes

        public com.google.protobuf.ByteString getMessageIdentifierBytes()
         The unique identifier for this message 
         
        string message_identifier = 1;
        Specified by:
        getMessageIdentifierBytes in interface SubscriptionQueryResponseOrBuilder
        Returns:
        The bytes for messageIdentifier.
      • getSubscriptionIdentifierBytes

        public com.google.protobuf.ByteString getSubscriptionIdentifierBytes()
         The identifier of the subscription query this is a response for 
         
        string subscription_identifier = 2;
        Specified by:
        getSubscriptionIdentifierBytes in interface SubscriptionQueryResponseOrBuilder
        Returns:
        The bytes for subscriptionIdentifier.
      • hasInitialResult

        public boolean hasInitialResult()
         Provides an Initial Response 
         
        .io.axoniq.axonserver.grpc.query.QueryResponse initial_result = 3;
        Specified by:
        hasInitialResult in interface SubscriptionQueryResponseOrBuilder
        Returns:
        Whether the initialResult field is set.
      • hasUpdate

        public boolean hasUpdate()
         Provides an Update Response 
         
        .io.axoniq.axonserver.grpc.query.QueryUpdate update = 4;
        Specified by:
        hasUpdate in interface SubscriptionQueryResponseOrBuilder
        Returns:
        Whether the update field is set.
      • hasComplete

        public boolean hasComplete()
         Indicates the Query is complete, and no more Updates will be sent 
         
        .io.axoniq.axonserver.grpc.query.QueryUpdateComplete complete = 5;
        Specified by:
        hasComplete in interface SubscriptionQueryResponseOrBuilder
        Returns:
        Whether the complete field is set.
      • hasCompleteExceptionally

        public boolean hasCompleteExceptionally()
         Indicates the Query failed exceptionally, and no more Updates will be sent 
         
        .io.axoniq.axonserver.grpc.query.QueryUpdateCompleteExceptionally complete_exceptionally = 6;
        Specified by:
        hasCompleteExceptionally in interface SubscriptionQueryResponseOrBuilder
        Returns:
        Whether the completeExceptionally field is set.
      • 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 SubscriptionQueryResponse parseFrom​(ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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