public final class ListenResponse extends GeneratedMessageV3 implements ListenResponseOrBuilder
The response for Firestore.Listen.
Protobuf type google.firestore.v1.ListenResponse
Static Fields
DOCUMENT_CHANGE_FIELD_NUMBER
public static final int DOCUMENT_CHANGE_FIELD_NUMBER
Field Value
DOCUMENT_DELETE_FIELD_NUMBER
public static final int DOCUMENT_DELETE_FIELD_NUMBER
Field Value
DOCUMENT_REMOVE_FIELD_NUMBER
public static final int DOCUMENT_REMOVE_FIELD_NUMBER
Field Value
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
Field Value
TARGET_CHANGE_FIELD_NUMBER
public static final int TARGET_CHANGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ListenResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ListenResponse.Builder newBuilder()
Returns
newBuilder(ListenResponse prototype)
public static ListenResponse.Builder newBuilder(ListenResponse prototype)
Parameter
Returns
public static ListenResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ListenResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ListenResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ListenResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ListenResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ListenResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ListenResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ListenResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ListenResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ListenResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ListenResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ListenResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ListenResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ListenResponse getDefaultInstanceForType()
Returns
getDocumentChange()
public DocumentChange getDocumentChange()
A Document has changed.
.google.firestore.v1.DocumentChange document_change = 3;
Returns
getDocumentChangeOrBuilder()
public DocumentChangeOrBuilder getDocumentChangeOrBuilder()
A Document has changed.
.google.firestore.v1.DocumentChange document_change = 3;
Returns
getDocumentDelete()
public DocumentDelete getDocumentDelete()
A Document has been deleted.
.google.firestore.v1.DocumentDelete document_delete = 4;
Returns
getDocumentDeleteOrBuilder()
public DocumentDeleteOrBuilder getDocumentDeleteOrBuilder()
A Document has been deleted.
.google.firestore.v1.DocumentDelete document_delete = 4;
Returns
getDocumentRemove()
public DocumentRemove getDocumentRemove()
A Document has been removed from a target
(because it is no longer relevant to that target).
.google.firestore.v1.DocumentRemove document_remove = 6;
Returns
getDocumentRemoveOrBuilder()
public DocumentRemoveOrBuilder getDocumentRemoveOrBuilder()
A Document has been removed from a target
(because it is no longer relevant to that target).
.google.firestore.v1.DocumentRemove document_remove = 6;
Returns
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;
Returns
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;
Returns
getParserForType()
public Parser<ListenResponse> getParserForType()
Returns
Overrides
getResponseTypeCase()
public ListenResponse.ResponseTypeCase getResponseTypeCase()
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTargetChange()
public TargetChange getTargetChange()
Targets have changed.
.google.firestore.v1.TargetChange target_change = 2;
Returns
getTargetChangeOrBuilder()
public TargetChangeOrBuilder getTargetChangeOrBuilder()
Targets have changed.
.google.firestore.v1.TargetChange target_change = 2;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasDocumentChange()
public boolean hasDocumentChange()
A Document has changed.
.google.firestore.v1.DocumentChange document_change = 3;
Returns
Type | Description |
boolean | Whether the documentChange field is set.
|
hasDocumentDelete()
public boolean hasDocumentDelete()
A Document has been deleted.
.google.firestore.v1.DocumentDelete document_delete = 4;
Returns
Type | Description |
boolean | Whether the documentDelete field is set.
|
hasDocumentRemove()
public boolean hasDocumentRemove()
A Document has been removed from a target
(because it is no longer relevant to that target).
.google.firestore.v1.DocumentRemove document_remove = 6;
Returns
Type | Description |
boolean | Whether the documentRemove field is set.
|
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;
Returns
Type | Description |
boolean | Whether the filter field is set.
|
hasTargetChange()
public boolean hasTargetChange()
Targets have changed.
.google.firestore.v1.TargetChange target_change = 2;
Returns
Type | Description |
boolean | Whether the targetChange field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ListenResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ListenResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ListenResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions