Package com.google.firestore.v1
Class DocumentChange
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.firestore.v1.DocumentChange
- All Implemented Interfaces:
DocumentChangeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class DocumentChange
extends com.google.protobuf.GeneratedMessageV3
implements DocumentChangeOrBuilder
A [Document][google.firestore.v1.Document] has changed. May be the result of multiple [writes][google.firestore.v1.Write], including deletes, that ultimately resulted in a new value for the [Document][google.firestore.v1.Document]. Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be returned for the same logical change, if multiple targets are affected.Protobuf type
google.firestore.v1.DocumentChange- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA [Document][google.firestore.v1.Document] has changed.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DocumentChangestatic final com.google.protobuf.Descriptors.DescriptorThe new state of the [Document][google.firestore.v1.Document].The new state of the [Document][google.firestore.v1.Document].com.google.protobuf.Parser<DocumentChange>intgetRemovedTargetIds(int index) A set of target IDs for targets that no longer match this document.intA set of target IDs for targets that no longer match this document.A set of target IDs for targets that no longer match this document.intintgetTargetIds(int index) A set of target IDs of targets that match this document.intA set of target IDs of targets that match this document.A set of target IDs of targets that match this document.booleanThe new state of the [Document][google.firestore.v1.Document].inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic DocumentChange.Builderstatic DocumentChange.BuildernewBuilder(DocumentChange prototype) protected DocumentChange.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static DocumentChangeparseDelimitedFrom(InputStream input) static DocumentChangeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentChangeparseFrom(byte[] data) static DocumentChangeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentChangeparseFrom(com.google.protobuf.ByteString data) static DocumentChangeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentChangeparseFrom(com.google.protobuf.CodedInputStream input) static DocumentChangeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentChangeparseFrom(InputStream input) static DocumentChangeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentChangeparseFrom(ByteBuffer data) static DocumentChangeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DocumentChange>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DOCUMENT_FIELD_NUMBER
public static final int DOCUMENT_FIELD_NUMBER- See Also:
-
TARGET_IDS_FIELD_NUMBER
public static final int TARGET_IDS_FIELD_NUMBER- See Also:
-
REMOVED_TARGET_IDS_FIELD_NUMBER
public static final int REMOVED_TARGET_IDS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasDocument
public boolean hasDocument()The new state of the [Document][google.firestore.v1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;- Specified by:
hasDocumentin interfaceDocumentChangeOrBuilder- Returns:
- Whether the document field is set.
-
getDocument
The new state of the [Document][google.firestore.v1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;- Specified by:
getDocumentin interfaceDocumentChangeOrBuilder- Returns:
- The document.
-
getDocumentOrBuilder
The new state of the [Document][google.firestore.v1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;- Specified by:
getDocumentOrBuilderin interfaceDocumentChangeOrBuilder
-
getTargetIdsList
A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;- Specified by:
getTargetIdsListin interfaceDocumentChangeOrBuilder- Returns:
- A list containing the targetIds.
-
getTargetIdsCount
public int getTargetIdsCount()A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;- Specified by:
getTargetIdsCountin interfaceDocumentChangeOrBuilder- Returns:
- The count of targetIds.
-
getTargetIds
public int getTargetIds(int index) A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;- Specified by:
getTargetIdsin interfaceDocumentChangeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The targetIds at the given index.
-
getRemovedTargetIdsList
A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;- Specified by:
getRemovedTargetIdsListin interfaceDocumentChangeOrBuilder- Returns:
- A list containing the removedTargetIds.
-
getRemovedTargetIdsCount
public int getRemovedTargetIdsCount()A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;- Specified by:
getRemovedTargetIdsCountin interfaceDocumentChangeOrBuilder- Returns:
- The count of removedTargetIds.
-
getRemovedTargetIds
public int getRemovedTargetIds(int index) A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;- Specified by:
getRemovedTargetIdsin interfaceDocumentChangeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The removedTargetIds at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DocumentChange parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentChange parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentChange parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentChange parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentChange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentChange parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DocumentChange parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DocumentChange parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DocumentChange parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DocumentChange parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DocumentChange.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-