public final class Target extends GeneratedMessageV3 implements TargetOrBuilder
A specification of a set of documents to listen to.Protobuf type
google.firestore.v1beta1.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 |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
DOCUMENTS_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 |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static Target |
getDefaultInstance() |
Target |
getDefaultInstanceForType() |
static 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.
|
boolean |
getOnce()
If the target should be removed once it is current and consistent.
|
Parser<Target> |
getParserForType() |
Target.QueryTarget |
getQuery()
A target specified by a query.
|
Target.QueryTargetOrBuilder |
getQueryOrBuilder()
A target specified by a query.
|
Timestamp |
getReadTime()
Start listening after a specific `read_time`.
|
TimestampOrBuilder |
getReadTimeOrBuilder()
Start listening after a specific `read_time`.
|
ByteString |
getResumeToken()
A resume token from a prior [TargetChange][google.firestore.v1beta1.TargetChange] for an identical target.
|
Target.ResumeTypeCase |
getResumeTypeCase() |
int |
getSerializedSize() |
int |
getTargetId()
A client provided target ID.
|
Target.TargetTypeCase |
getTargetTypeCase() |
UnknownFieldSet |
getUnknownFields() |
boolean |
hasDocuments()
A target specified by a set of document names.
|
int |
hashCode() |
boolean |
hasQuery()
A target specified by a query.
|
boolean |
hasReadTime()
Start listening after a specific `read_time`.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Target.Builder |
newBuilder() |
static Target.Builder |
newBuilder(Target prototype) |
Target.Builder |
newBuilderForType() |
protected Target.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Target |
parseDelimitedFrom(java.io.InputStream input) |
static Target |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Target |
parseFrom(byte[] data) |
static Target |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Target |
parseFrom(java.nio.ByteBuffer data) |
static Target |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Target |
parseFrom(ByteString data) |
static Target |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Target |
parseFrom(CodedInputStream input) |
static Target |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Target |
parseFrom(java.io.InputStream input) |
static Target |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Target> |
parser() |
Target.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public Target.TargetTypeCase getTargetTypeCase()
getTargetTypeCase in interface TargetOrBuilderpublic Target.ResumeTypeCase getResumeTypeCase()
getResumeTypeCase in interface TargetOrBuilderpublic boolean hasQuery()
A target specified by a query.
.google.firestore.v1beta1.Target.QueryTarget query = 2;hasQuery in interface TargetOrBuilderpublic Target.QueryTarget getQuery()
A target specified by a query.
.google.firestore.v1beta1.Target.QueryTarget query = 2;getQuery in interface TargetOrBuilderpublic Target.QueryTargetOrBuilder getQueryOrBuilder()
A target specified by a query.
.google.firestore.v1beta1.Target.QueryTarget query = 2;getQueryOrBuilder in interface TargetOrBuilderpublic boolean hasDocuments()
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;hasDocuments in interface TargetOrBuilderpublic Target.DocumentsTarget getDocuments()
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;getDocuments in interface TargetOrBuilderpublic Target.DocumentsTargetOrBuilder getDocumentsOrBuilder()
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;getDocumentsOrBuilder in interface TargetOrBuilderpublic ByteString getResumeToken()
A resume token from a prior [TargetChange][google.firestore.v1beta1.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 TargetOrBuilderpublic 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 TargetOrBuilderpublic 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 TargetOrBuilderpublic 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 TargetOrBuilderpublic int getTargetId()
A client provided target ID. If not set, the server will assign an ID for the target. Used for resuming a target without changing IDs. The IDs can either be client-assigned or be server-assigned in a previous stream. All targets with client provided IDs must be added before adding a target that needs a server-assigned id.
int32 target_id = 5;getTargetId in interface TargetOrBuilderpublic boolean getOnce()
If the target should be removed once it is current and consistent.
bool once = 6;getOnce in interface TargetOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Target parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Target parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Target parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Target parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Target parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Target parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Target parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Target parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Target parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Target parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Target parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Target parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Target.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Target.Builder newBuilder()
public static Target.Builder newBuilder(Target prototype)
public Target.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Target.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Target getDefaultInstance()
public Parser<Target> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Target getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder