public final class Target extends GeneratedMessageV3 implements TargetOrBuilder
A specification of a set of documents to listen to.
Protobuf type google.firestore.v1.Target
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TargetImplements
TargetOrBuilderStatic Fields
DOCUMENTS_FIELD_NUMBER
public static final int DOCUMENTS_FIELD_NUMBER
Type | Description |
int |
ONCE_FIELD_NUMBER
public static final int ONCE_FIELD_NUMBER
Type | Description |
int |
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
Type | Description |
int |
READ_TIME_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
Type | Description |
int |
RESUME_TOKEN_FIELD_NUMBER
public static final int RESUME_TOKEN_FIELD_NUMBER
Type | Description |
int |
TARGET_ID_FIELD_NUMBER
public static final int TARGET_ID_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Target getDefaultInstance()
Type | Description |
Target |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Target.Builder newBuilder()
Type | Description |
Target.Builder |
newBuilder(Target prototype)
public static Target.Builder newBuilder(Target prototype)
Name | Description |
prototype | Target |
Type | Description |
Target.Builder |
parseDelimitedFrom(InputStream input)
public static Target parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Target |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Target parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Target |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Target parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Target |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Target parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Target |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Target parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Target |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Target parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Target |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Target parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Target |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Target parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Target |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Target parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Target |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Target parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Target |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Target parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Target |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Target parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Target |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Target> parser()
Type | Description |
Parser<Target> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Target getDefaultInstanceForType()
Type | Description |
Target |
getDocuments()
public Target.DocumentsTarget getDocuments()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
Type | Description |
Target.DocumentsTarget | The documents. |
getDocumentsOrBuilder()
public Target.DocumentsTargetOrBuilder getDocumentsOrBuilder()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
Type | Description |
Target.DocumentsTargetOrBuilder |
getOnce()
public boolean getOnce()
If the target should be removed once it is current and consistent.
bool once = 6;
Type | Description |
boolean | The once. |
getParserForType()
public Parser<Target> getParserForType()
Type | Description |
Parser<Target> |
getQuery()
public Target.QueryTarget getQuery()
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
Type | Description |
Target.QueryTarget | The query. |
getQueryOrBuilder()
public Target.QueryTargetOrBuilder getQueryOrBuilder()
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
Type | Description |
Target.QueryTargetOrBuilder |
getReadTime()
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;
Type | Description |
Timestamp | The readTime. |
getReadTimeOrBuilder()
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;
Type | Description |
TimestampOrBuilder |
getResumeToken()
public ByteString getResumeToken()
A resume token from a prior TargetChange for an identical target. Using a resume token with a different target is unsupported and may fail.
bytes resume_token = 4;
Type | Description |
ByteString | The resumeToken. |
getResumeTypeCase()
public Target.ResumeTypeCase getResumeTypeCase()
Type | Description |
Target.ResumeTypeCase |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getTargetId()
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;
Type | Description |
int | The targetId. |
getTargetTypeCase()
public Target.TargetTypeCase getTargetTypeCase()
Type | Description |
Target.TargetTypeCase |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasDocuments()
public boolean hasDocuments()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
Type | Description |
boolean | Whether the documents field is set. |
hasQuery()
public boolean hasQuery()
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
Type | Description |
boolean | Whether the query field is set. |
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;
Type | Description |
boolean | Whether the readTime field is set. |
hasResumeToken()
public boolean hasResumeToken()
A resume token from a prior TargetChange for an identical target. Using a resume token with a different target is unsupported and may fail.
bytes resume_token = 4;
Type | Description |
boolean | Whether the resumeToken field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Target.Builder newBuilderForType()
Type | Description |
Target.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Target.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Target.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Target.Builder toBuilder()
Type | Description |
Target.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |