Class ListenResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.firestore.v1.ListenResponse
All Implemented Interfaces:
ListenResponseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class ListenResponse extends com.google.protobuf.GeneratedMessageV3 implements ListenResponseOrBuilder
 The response for [Firestore.Listen][google.firestore.v1.Firestore.Listen].
 
Protobuf type google.firestore.v1.ListenResponse
See Also:
  • Field Details

    • TARGET_CHANGE_FIELD_NUMBER

      public static final int TARGET_CHANGE_FIELD_NUMBER
      See Also:
    • DOCUMENT_CHANGE_FIELD_NUMBER

      public static final int DOCUMENT_CHANGE_FIELD_NUMBER
      See Also:
    • DOCUMENT_DELETE_FIELD_NUMBER

      public static final int DOCUMENT_DELETE_FIELD_NUMBER
      See Also:
    • DOCUMENT_REMOVE_FIELD_NUMBER

      public static final int DOCUMENT_REMOVE_FIELD_NUMBER
      See Also:
    • FILTER_FIELD_NUMBER

      public static final int FILTER_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getResponseTypeCase

      public ListenResponse.ResponseTypeCase getResponseTypeCase()
      Specified by:
      getResponseTypeCase in interface ListenResponseOrBuilder
    • hasTargetChange

      public boolean hasTargetChange()
       Targets have changed.
       
      .google.firestore.v1.TargetChange target_change = 2;
      Specified by:
      hasTargetChange in interface ListenResponseOrBuilder
      Returns:
      Whether the targetChange field is set.
    • getTargetChange

      public TargetChange getTargetChange()
       Targets have changed.
       
      .google.firestore.v1.TargetChange target_change = 2;
      Specified by:
      getTargetChange in interface ListenResponseOrBuilder
      Returns:
      The targetChange.
    • getTargetChangeOrBuilder

      public TargetChangeOrBuilder getTargetChangeOrBuilder()
       Targets have changed.
       
      .google.firestore.v1.TargetChange target_change = 2;
      Specified by:
      getTargetChangeOrBuilder in interface ListenResponseOrBuilder
    • hasDocumentChange

      public boolean hasDocumentChange()
       A [Document][google.firestore.v1.Document] has changed.
       
      .google.firestore.v1.DocumentChange document_change = 3;
      Specified by:
      hasDocumentChange in interface ListenResponseOrBuilder
      Returns:
      Whether the documentChange field is set.
    • getDocumentChange

      public DocumentChange getDocumentChange()
       A [Document][google.firestore.v1.Document] has changed.
       
      .google.firestore.v1.DocumentChange document_change = 3;
      Specified by:
      getDocumentChange in interface ListenResponseOrBuilder
      Returns:
      The documentChange.
    • getDocumentChangeOrBuilder

      public DocumentChangeOrBuilder getDocumentChangeOrBuilder()
       A [Document][google.firestore.v1.Document] has changed.
       
      .google.firestore.v1.DocumentChange document_change = 3;
      Specified by:
      getDocumentChangeOrBuilder in interface ListenResponseOrBuilder
    • hasDocumentDelete

      public boolean hasDocumentDelete()
       A [Document][google.firestore.v1.Document] has been deleted.
       
      .google.firestore.v1.DocumentDelete document_delete = 4;
      Specified by:
      hasDocumentDelete in interface ListenResponseOrBuilder
      Returns:
      Whether the documentDelete field is set.
    • getDocumentDelete

      public DocumentDelete getDocumentDelete()
       A [Document][google.firestore.v1.Document] has been deleted.
       
      .google.firestore.v1.DocumentDelete document_delete = 4;
      Specified by:
      getDocumentDelete in interface ListenResponseOrBuilder
      Returns:
      The documentDelete.
    • getDocumentDeleteOrBuilder

      public DocumentDeleteOrBuilder getDocumentDeleteOrBuilder()
       A [Document][google.firestore.v1.Document] has been deleted.
       
      .google.firestore.v1.DocumentDelete document_delete = 4;
      Specified by:
      getDocumentDeleteOrBuilder in interface ListenResponseOrBuilder
    • hasDocumentRemove

      public boolean hasDocumentRemove()
       A [Document][google.firestore.v1.Document] has been removed from a target
       (because it is no longer relevant to that target).
       
      .google.firestore.v1.DocumentRemove document_remove = 6;
      Specified by:
      hasDocumentRemove in interface ListenResponseOrBuilder
      Returns:
      Whether the documentRemove field is set.
    • getDocumentRemove

      public DocumentRemove getDocumentRemove()
       A [Document][google.firestore.v1.Document] has been removed from a target
       (because it is no longer relevant to that target).
       
      .google.firestore.v1.DocumentRemove document_remove = 6;
      Specified by:
      getDocumentRemove in interface ListenResponseOrBuilder
      Returns:
      The documentRemove.
    • getDocumentRemoveOrBuilder

      public DocumentRemoveOrBuilder getDocumentRemoveOrBuilder()
       A [Document][google.firestore.v1.Document] has been removed from a target
       (because it is no longer relevant to that target).
       
      .google.firestore.v1.DocumentRemove document_remove = 6;
      Specified by:
      getDocumentRemoveOrBuilder in interface ListenResponseOrBuilder
    • hasFilter

      public boolean hasFilter()
       A filter to apply to the set of documents previously returned for the
       given target.
      
       Returned when documents may have been removed from the given target, but
       the exact documents are unknown.
       
      .google.firestore.v1.ExistenceFilter filter = 5;
      Specified by:
      hasFilter in interface ListenResponseOrBuilder
      Returns:
      Whether the filter field is set.
    • getFilter

      public ExistenceFilter getFilter()
       A filter to apply to the set of documents previously returned for the
       given target.
      
       Returned when documents may have been removed from the given target, but
       the exact documents are unknown.
       
      .google.firestore.v1.ExistenceFilter filter = 5;
      Specified by:
      getFilter in interface ListenResponseOrBuilder
      Returns:
      The filter.
    • getFilterOrBuilder

      public ExistenceFilterOrBuilder getFilterOrBuilder()
       A filter to apply to the set of documents previously returned for the
       given target.
      
       Returned when documents may have been removed from the given target, but
       the exact documents are unknown.
       
      .google.firestore.v1.ExistenceFilter filter = 5;
      Specified by:
      getFilterOrBuilder in interface ListenResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • 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.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • 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 ListenResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static ListenResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ListenResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ListenResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ListenResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ListenResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static ListenResponse.Builder newBuilder()
    • newBuilder

      public static ListenResponse.Builder newBuilder(ListenResponse prototype)
    • toBuilder

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

      protected ListenResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ListenResponse getDefaultInstance()
    • parser

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

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

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