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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
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 final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class 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.v1beta1.Target.QueryTarget query = 2;
hasQuery
in interface TargetOrBuilder
public Target.QueryTarget getQuery()
A target specified by a query.
.google.firestore.v1beta1.Target.QueryTarget query = 2;
getQuery
in interface TargetOrBuilder
public Target.QueryTargetOrBuilder getQueryOrBuilder()
A target specified by a query.
.google.firestore.v1beta1.Target.QueryTarget query = 2;
getQueryOrBuilder
in interface TargetOrBuilder
public boolean hasDocuments()
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
hasDocuments
in interface TargetOrBuilder
public Target.DocumentsTarget getDocuments()
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
getDocuments
in interface TargetOrBuilder
public Target.DocumentsTargetOrBuilder getDocumentsOrBuilder()
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
getDocumentsOrBuilder
in interface TargetOrBuilder
public 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 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 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 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()
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 TargetOrBuilder
public boolean getOnce()
If the target should be removed once it is current and consistent.
bool once = 6;
getOnce
in interface TargetOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Target parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Target parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Target parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Target parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Target parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Target parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Target parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Target parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Target parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Target parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Target parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Target parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Target.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Target.Builder newBuilder()
public static Target.Builder newBuilder(Target prototype)
public Target.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Target.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Target getDefaultInstance()
public Parser<Target> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Target getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder