public final class Target extends com.google.protobuf.GeneratedMessageV3 implements TargetOrBuilder
A specification of a set of documents to listen to.Protobuf type
google.firestore.v1.Target
Modifier and Type | Class and Description |
---|---|
static class |
Target.Builder
A specification of a set of documents to listen to.
|
static class |
Target.DocumentsTarget
A target specified by a set of documents names.
|
static interface |
Target.DocumentsTargetOrBuilder |
static class |
Target.QueryTarget
A target specified by a query.
|
static interface |
Target.QueryTargetOrBuilder |
static class |
Target.ResumeTypeCase |
static class |
Target.TargetTypeCase |
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
Modifier and Type | Field and Description |
---|---|
static int |
DOCUMENTS_FIELD_NUMBER |
static int |
EXPECTED_COUNT_FIELD_NUMBER |
static int |
ONCE_FIELD_NUMBER |
static int |
QUERY_FIELD_NUMBER |
static int |
READ_TIME_FIELD_NUMBER |
static int |
RESUME_TOKEN_FIELD_NUMBER |
static int |
TARGET_ID_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Target |
getDefaultInstance() |
Target |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Target.DocumentsTarget |
getDocuments()
A target specified by a set of document names.
|
Target.DocumentsTargetOrBuilder |
getDocumentsOrBuilder()
A target specified by a set of document names.
|
com.google.protobuf.Int32Value |
getExpectedCount()
The number of documents that last matched the query at the resume token or
read time.
|
com.google.protobuf.Int32ValueOrBuilder |
getExpectedCountOrBuilder()
The number of documents that last matched the query at the resume token or
read time.
|
boolean |
getOnce()
If the target should be removed once it is current and consistent.
|
com.google.protobuf.Parser<Target> |
getParserForType() |
Target.QueryTarget |
getQuery()
A target specified by a query.
|
Target.QueryTargetOrBuilder |
getQueryOrBuilder()
A target specified by a query.
|
com.google.protobuf.Timestamp |
getReadTime()
Start listening after a specific `read_time`.
|
com.google.protobuf.TimestampOrBuilder |
getReadTimeOrBuilder()
Start listening after a specific `read_time`.
|
com.google.protobuf.ByteString |
getResumeToken()
A resume token from a prior
[TargetChange][google.firestore.v1.TargetChange] for an identical target.
|
Target.ResumeTypeCase |
getResumeTypeCase() |
int |
getSerializedSize() |
int |
getTargetId()
The target ID that identifies the target on the stream.
|
Target.TargetTypeCase |
getTargetTypeCase() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDocuments()
A target specified by a set of document names.
|
boolean |
hasExpectedCount()
The number of documents that last matched the query at the resume token or
read time.
|
int |
hashCode() |
boolean |
hasQuery()
A target specified by a query.
|
boolean |
hasReadTime()
Start listening after a specific `read_time`.
|
boolean |
hasResumeToken()
A resume token from a prior
[TargetChange][google.firestore.v1.TargetChange] for an identical target.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Target.Builder |
newBuilder() |
static Target.Builder |
newBuilder(Target prototype) |
Target.Builder |
newBuilderForType() |
protected Target.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Target |
parseDelimitedFrom(InputStream input) |
static Target |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Target |
parseFrom(byte[] data) |
static Target |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Target |
parseFrom(ByteBuffer data) |
static Target |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Target |
parseFrom(com.google.protobuf.ByteString data) |
static Target |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Target |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Target |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Target |
parseFrom(InputStream input) |
static Target |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Target> |
parser() |
Target.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int QUERY_FIELD_NUMBER
public static final int DOCUMENTS_FIELD_NUMBER
public static final int RESUME_TOKEN_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
public static final int TARGET_ID_FIELD_NUMBER
public static final int ONCE_FIELD_NUMBER
public static final int EXPECTED_COUNT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public Target.TargetTypeCase getTargetTypeCase()
getTargetTypeCase
in interface TargetOrBuilder
public Target.ResumeTypeCase getResumeTypeCase()
getResumeTypeCase
in interface TargetOrBuilder
public boolean hasQuery()
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
hasQuery
in interface TargetOrBuilder
public Target.QueryTarget getQuery()
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
getQuery
in interface TargetOrBuilder
public Target.QueryTargetOrBuilder getQueryOrBuilder()
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
getQueryOrBuilder
in interface TargetOrBuilder
public boolean hasDocuments()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
hasDocuments
in interface TargetOrBuilder
public Target.DocumentsTarget getDocuments()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
getDocuments
in interface TargetOrBuilder
public Target.DocumentsTargetOrBuilder getDocumentsOrBuilder()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
getDocumentsOrBuilder
in interface TargetOrBuilder
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;
hasResumeToken
in interface TargetOrBuilder
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;
getResumeToken
in interface TargetOrBuilder
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;
hasReadTime
in interface TargetOrBuilder
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;
getReadTime
in interface TargetOrBuilder
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;
getReadTimeOrBuilder
in interface TargetOrBuilder
public int getTargetId()
The target ID that identifies the target on the stream. Must be a positive number and non-zero.
int32 target_id = 5;
getTargetId
in interface TargetOrBuilder
public boolean getOnce()
If the target should be removed once it is current and consistent.
bool once = 6;
getOnce
in interface TargetOrBuilder
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;
hasExpectedCount
in interface TargetOrBuilder
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;
getExpectedCount
in interface TargetOrBuilder
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;
getExpectedCountOrBuilder
in interface TargetOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Target parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Target parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Target parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Target parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Target parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Target parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Target parseFrom(InputStream input) throws IOException
IOException
public static Target parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Target parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Target parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Target parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Target parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Target.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Target.Builder newBuilder()
public static Target.Builder newBuilder(Target prototype)
public Target.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Target.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Target getDefaultInstance()
public static com.google.protobuf.Parser<Target> parser()
public com.google.protobuf.Parser<Target> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Target getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.