Package com.google.firestore.v1
Class TargetChange
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.firestore.v1.TargetChange
- All Implemented Interfaces:
TargetChangeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class TargetChange
extends com.google.protobuf.GeneratedMessageV3
implements TargetChangeOrBuilder
Targets being watched have changed.Protobuf type
google.firestore.v1.TargetChange- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classTargets being watched have changed.static enumThe type of change.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 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 TypeMethodDescriptionbooleancom.google.rpc.StatusgetCause()The error that resulted in this change, if applicable.com.google.rpc.StatusOrBuilderThe error that resulted in this change, if applicable.static TargetChangestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<TargetChange>com.google.protobuf.TimestampThe consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).com.google.protobuf.TimestampOrBuilderThe consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).com.google.protobuf.ByteStringA token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty.intThe type of change that occurred.intThe type of change that occurred.intgetTargetIds(int index) The target IDs of targets that have changed.intThe target IDs of targets that have changed.The target IDs of targets that have changed.booleanhasCause()The error that resulted in this change, if applicable.inthashCode()booleanThe consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic TargetChange.Builderstatic TargetChange.BuildernewBuilder(TargetChange prototype) protected TargetChange.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static TargetChangeparseDelimitedFrom(InputStream input) static TargetChangeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetChangeparseFrom(byte[] data) static TargetChangeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetChangeparseFrom(com.google.protobuf.ByteString data) static TargetChangeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetChangeparseFrom(com.google.protobuf.CodedInputStream input) static TargetChangeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetChangeparseFrom(InputStream input) static TargetChangeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetChangeparseFrom(ByteBuffer data) static TargetChangeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TargetChange>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
-
TARGET_CHANGE_TYPE_FIELD_NUMBER
public static final int TARGET_CHANGE_TYPE_FIELD_NUMBER- See Also:
-
TARGET_IDS_FIELD_NUMBER
public static final int TARGET_IDS_FIELD_NUMBER- See Also:
-
CAUSE_FIELD_NUMBER
public static final int CAUSE_FIELD_NUMBER- See Also:
-
RESUME_TOKEN_FIELD_NUMBER
public static final int RESUME_TOKEN_FIELD_NUMBER- See Also:
-
READ_TIME_FIELD_NUMBER
public static final int READ_TIME_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
-
getTargetChangeTypeValue
public int getTargetChangeTypeValue()The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;- Specified by:
getTargetChangeTypeValuein interfaceTargetChangeOrBuilder- Returns:
- The enum numeric value on the wire for targetChangeType.
-
getTargetChangeType
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;- Specified by:
getTargetChangeTypein interfaceTargetChangeOrBuilder- Returns:
- The targetChangeType.
-
getTargetIdsList
The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined.
repeated int32 target_ids = 2;- Specified by:
getTargetIdsListin interfaceTargetChangeOrBuilder- Returns:
- A list containing the targetIds.
-
getTargetIdsCount
public int getTargetIdsCount()The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined.
repeated int32 target_ids = 2;- Specified by:
getTargetIdsCountin interfaceTargetChangeOrBuilder- Returns:
- The count of targetIds.
-
getTargetIds
public int getTargetIds(int index) The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined.
repeated int32 target_ids = 2;- Specified by:
getTargetIdsin interfaceTargetChangeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The targetIds at the given index.
-
hasCause
public boolean hasCause()The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;- Specified by:
hasCausein interfaceTargetChangeOrBuilder- Returns:
- Whether the cause field is set.
-
getCause
public com.google.rpc.Status getCause()The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;- Specified by:
getCausein interfaceTargetChangeOrBuilder- Returns:
- The cause.
-
getCauseOrBuilder
public com.google.rpc.StatusOrBuilder getCauseOrBuilder()The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;- Specified by:
getCauseOrBuilderin interfaceTargetChangeOrBuilder
-
getResumeToken
public com.google.protobuf.ByteString getResumeToken()A token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty. Not set on every target change.
bytes resume_token = 4;- Specified by:
getResumeTokenin interfaceTargetChangeOrBuilder- Returns:
- The resumeToken.
-
hasReadTime
public boolean hasReadTime()The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot). The stream is guaranteed to send a `read_time` with `target_ids` empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not). For a given stream, `read_time` is guaranteed to be monotonically increasing.
.google.protobuf.Timestamp read_time = 6;- Specified by:
hasReadTimein interfaceTargetChangeOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.Timestamp getReadTime()The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot). The stream is guaranteed to send a `read_time` with `target_ids` empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not). For a given stream, `read_time` is guaranteed to be monotonically increasing.
.google.protobuf.Timestamp read_time = 6;- Specified by:
getReadTimein interfaceTargetChangeOrBuilder- Returns:
- The readTime.
-
getReadTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot). The stream is guaranteed to send a `read_time` with `target_ids` empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not). For a given stream, `read_time` is guaranteed to be monotonically increasing.
.google.protobuf.Timestamp read_time = 6;- Specified by:
getReadTimeOrBuilderin interfaceTargetChangeOrBuilder
-
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 TargetChange parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetChange parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetChange parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetChange parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetChange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TargetChange parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TargetChange parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TargetChange parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TargetChange 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 TargetChange.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
-