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<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.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 |
| 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.
|
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()
A client provided target ID.
|
Target.TargetTypeCase |
getTargetTypeCase() |
com.google.protobuf.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 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) |
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, 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, waitpublic 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 com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.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.v1.Target.QueryTarget query = 2;hasQuery in interface TargetOrBuilderpublic Target.QueryTarget getQuery()
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;getQuery in interface TargetOrBuilderpublic Target.QueryTargetOrBuilder getQueryOrBuilder()
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;getQueryOrBuilder in interface TargetOrBuilderpublic boolean hasDocuments()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;hasDocuments in interface TargetOrBuilderpublic Target.DocumentsTarget getDocuments()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;getDocuments in interface TargetOrBuilderpublic Target.DocumentsTargetOrBuilder getDocumentsOrBuilder()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;getDocumentsOrBuilder in interface TargetOrBuilderpublic 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 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 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 TargetOrBuilderpublic 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 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 com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Target parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Target parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Target parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Target parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Target parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Target parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Target parseFrom(InputStream input) throws IOException
IOExceptionpublic static Target parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Target parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Target parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Target parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Target parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Target.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Target.Builder newBuilder()
public static Target.Builder newBuilder(Target prototype)
public Target.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Target.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Target getDefaultInstance()
public static com.google.protobuf.Parser<Target> parser()
public com.google.protobuf.Parser<Target> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Target getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.