Package com.google.firestore.v1
Class Target
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.firestore.v1.Target
- All Implemented Interfaces:
TargetOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
A specification of a set of documents to listen to.Protobuf type
google.firestore.v1.Target- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA specification of a set of documents to listen to.static final classA target specified by a set of documents names.static interfacestatic final classA target specified by a query.static interfacestatic enumstatic enumNested 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 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 Targetstatic final com.google.protobuf.Descriptors.DescriptorA target specified by a set of document names.A target specified by a set of document names.com.google.protobuf.Int32ValueThe number of documents that last matched the query at the resume token or read time.com.google.protobuf.Int32ValueOrBuilderThe number of documents that last matched the query at the resume token or read time.booleangetOnce()If the target should be removed once it is current and consistent.com.google.protobuf.Parser<Target>getQuery()A target specified by a query.A target specified by a query.com.google.protobuf.TimestampStart listening after a specific `read_time`.com.google.protobuf.TimestampOrBuilderStart listening after a specific `read_time`.com.google.protobuf.ByteStringA resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target.intintThe target ID that identifies the target on the stream.booleanA target specified by a set of document names.booleanThe number of documents that last matched the query at the resume token or read time.inthashCode()booleanhasQuery()A target specified by a query.booleanStart listening after a specific `read_time`.booleanA resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Target.Builderstatic Target.BuildernewBuilder(Target prototype) protected Target.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static TargetparseDelimitedFrom(InputStream input) static TargetparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetparseFrom(byte[] data) static TargetparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetparseFrom(com.google.protobuf.ByteString data) static TargetparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetparseFrom(com.google.protobuf.CodedInputStream input) static TargetparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetparseFrom(InputStream input) static TargetparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TargetparseFrom(ByteBuffer data) static TargetparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Target>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
-
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER- See Also:
-
DOCUMENTS_FIELD_NUMBER
public static final int DOCUMENTS_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:
-
TARGET_ID_FIELD_NUMBER
public static final int TARGET_ID_FIELD_NUMBER- See Also:
-
ONCE_FIELD_NUMBER
public static final int ONCE_FIELD_NUMBER- See Also:
-
EXPECTED_COUNT_FIELD_NUMBER
public static final int EXPECTED_COUNT_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
-
getTargetTypeCase
- Specified by:
getTargetTypeCasein interfaceTargetOrBuilder
-
getResumeTypeCase
- Specified by:
getResumeTypeCasein interfaceTargetOrBuilder
-
hasQuery
public boolean hasQuery()A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;- Specified by:
hasQueryin interfaceTargetOrBuilder- Returns:
- Whether the query field is set.
-
getQuery
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;- Specified by:
getQueryin interfaceTargetOrBuilder- Returns:
- The query.
-
getQueryOrBuilder
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;- Specified by:
getQueryOrBuilderin interfaceTargetOrBuilder
-
hasDocuments
public boolean hasDocuments()A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;- Specified by:
hasDocumentsin interfaceTargetOrBuilder- Returns:
- Whether the documents field is set.
-
getDocuments
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;- Specified by:
getDocumentsin interfaceTargetOrBuilder- Returns:
- The documents.
-
getDocumentsOrBuilder
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;- Specified by:
getDocumentsOrBuilderin interfaceTargetOrBuilder
-
hasResumeToken
public boolean hasResumeToken()A resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target. Using a resume token with a different target is unsupported and may fail.
bytes resume_token = 4;- Specified by:
hasResumeTokenin interfaceTargetOrBuilder- Returns:
- Whether the resumeToken field is set.
-
getResumeToken
public com.google.protobuf.ByteString getResumeToken()A resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target. Using a resume token with a different target is unsupported and may fail.
bytes resume_token = 4;- Specified by:
getResumeTokenin interfaceTargetOrBuilder- Returns:
- The resumeToken.
-
hasReadTime
public boolean hasReadTime()Start listening after a specific `read_time`. The client must know the state of matching documents at this time.
.google.protobuf.Timestamp read_time = 11;- Specified by:
hasReadTimein interfaceTargetOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.Timestamp getReadTime()Start listening after a specific `read_time`. The client must know the state of matching documents at this time.
.google.protobuf.Timestamp read_time = 11;- Specified by:
getReadTimein interfaceTargetOrBuilder- Returns:
- The readTime.
-
getReadTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()Start listening after a specific `read_time`. The client must know the state of matching documents at this time.
.google.protobuf.Timestamp read_time = 11;- Specified by:
getReadTimeOrBuilderin interfaceTargetOrBuilder
-
getTargetId
public int getTargetId()The target ID that identifies the target on the stream. Must be a positive number and non-zero. If `target_id` is 0 (or unspecified), the server will assign an ID for this target and return that in a `TargetChange::ADD` event. Once a target with `target_id=0` is added, all subsequent targets must also have `target_id=0`. If an `AddTarget` request with `target_id != 0` is sent to the server after a target with `target_id=0` is added, the server will immediately send a response with a `TargetChange::Remove` event. Note that if the client sends multiple `AddTarget` requests without an ID, the order of IDs returned in `TargetChage.target_ids` are undefined. Therefore, clients should provide a target ID instead of relying on the server to assign one. If `target_id` is non-zero, there must not be an existing active target on this stream with the same ID.
int32 target_id = 5;- Specified by:
getTargetIdin interfaceTargetOrBuilder- Returns:
- The targetId.
-
getOnce
public boolean getOnce()If the target should be removed once it is current and consistent.
bool once = 6;- Specified by:
getOncein interfaceTargetOrBuilder- Returns:
- The once.
-
hasExpectedCount
public boolean hasExpectedCount()The number of documents that last matched the query at the resume token or read time. This value is only relevant when a `resume_type` is provided. This value being present and greater than zero signals that the client wants `ExistenceFilter.unchanged_names` to be included in the response.
.google.protobuf.Int32Value expected_count = 12;- Specified by:
hasExpectedCountin interfaceTargetOrBuilder- Returns:
- Whether the expectedCount field is set.
-
getExpectedCount
public com.google.protobuf.Int32Value getExpectedCount()The number of documents that last matched the query at the resume token or read time. This value is only relevant when a `resume_type` is provided. This value being present and greater than zero signals that the client wants `ExistenceFilter.unchanged_names` to be included in the response.
.google.protobuf.Int32Value expected_count = 12;- Specified by:
getExpectedCountin interfaceTargetOrBuilder- Returns:
- The expectedCount.
-
getExpectedCountOrBuilder
public com.google.protobuf.Int32ValueOrBuilder getExpectedCountOrBuilder()The number of documents that last matched the query at the resume token or read time. This value is only relevant when a `resume_type` is provided. This value being present and greater than zero signals that the client wants `ExistenceFilter.unchanged_names` to be included in the response.
.google.protobuf.Int32Value expected_count = 12;- Specified by:
getExpectedCountOrBuilderin interfaceTargetOrBuilder
-
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 Target parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Target parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Target parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Target parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Target parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Target parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Target parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Target parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Target 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 Target.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
-