public static final class Target.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder> implements TargetOrBuilder
A specification of a set of documents to listen to.Protobuf type
google.firestore.v1.Target
Modifier and Type | Method and Description |
---|---|
Target.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Target |
build() |
Target |
buildPartial() |
Target.Builder |
clear() |
Target.Builder |
clearDocuments()
A target specified by a set of document names.
|
Target.Builder |
clearExpectedCount()
The number of documents that last matched the query at the resume token or
read time.
|
Target.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Target.Builder |
clearOnce()
If the target should be removed once it is current and consistent.
|
Target.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Target.Builder |
clearQuery()
A target specified by a query.
|
Target.Builder |
clearReadTime()
Start listening after a specific `read_time`.
|
Target.Builder |
clearResumeToken()
A resume token from a prior
[TargetChange][google.firestore.v1.TargetChange] for an identical target.
|
Target.Builder |
clearResumeType() |
Target.Builder |
clearTargetId()
The target ID that identifies the target on the stream.
|
Target.Builder |
clearTargetType() |
Target.Builder |
clone() |
Target |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Target.DocumentsTarget |
getDocuments()
A target specified by a set of document names.
|
Target.DocumentsTarget.Builder |
getDocumentsBuilder()
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.Int32Value.Builder |
getExpectedCountBuilder()
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.
|
Target.QueryTarget |
getQuery()
A target specified by a query.
|
Target.QueryTarget.Builder |
getQueryBuilder()
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.Timestamp.Builder |
getReadTimeBuilder()
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 |
getTargetId()
The target ID that identifies the target on the stream.
|
Target.TargetTypeCase |
getTargetTypeCase() |
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.
|
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() |
Target.Builder |
mergeDocuments(Target.DocumentsTarget value)
A target specified by a set of document names.
|
Target.Builder |
mergeExpectedCount(com.google.protobuf.Int32Value value)
The number of documents that last matched the query at the resume token or
read time.
|
Target.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Target.Builder |
mergeFrom(com.google.protobuf.Message other) |
Target.Builder |
mergeFrom(Target other) |
Target.Builder |
mergeQuery(Target.QueryTarget value)
A target specified by a query.
|
Target.Builder |
mergeReadTime(com.google.protobuf.Timestamp value)
Start listening after a specific `read_time`.
|
Target.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Target.Builder |
setDocuments(Target.DocumentsTarget.Builder builderForValue)
A target specified by a set of document names.
|
Target.Builder |
setDocuments(Target.DocumentsTarget value)
A target specified by a set of document names.
|
Target.Builder |
setExpectedCount(com.google.protobuf.Int32Value.Builder builderForValue)
The number of documents that last matched the query at the resume token or
read time.
|
Target.Builder |
setExpectedCount(com.google.protobuf.Int32Value value)
The number of documents that last matched the query at the resume token or
read time.
|
Target.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Target.Builder |
setOnce(boolean value)
If the target should be removed once it is current and consistent.
|
Target.Builder |
setQuery(Target.QueryTarget.Builder builderForValue)
A target specified by a query.
|
Target.Builder |
setQuery(Target.QueryTarget value)
A target specified by a query.
|
Target.Builder |
setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
Start listening after a specific `read_time`.
|
Target.Builder |
setReadTime(com.google.protobuf.Timestamp value)
Start listening after a specific `read_time`.
|
Target.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Target.Builder |
setResumeToken(com.google.protobuf.ByteString value)
A resume token from a prior
[TargetChange][google.firestore.v1.TargetChange] for an identical target.
|
Target.Builder |
setTargetId(int value)
The target ID that identifies the target on the stream.
|
Target.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public Target getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Target build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Target buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Target.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Target.Builder>
public Target.Builder mergeFrom(Target other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Target.Builder>
IOException
public Target.TargetTypeCase getTargetTypeCase()
getTargetTypeCase
in interface TargetOrBuilder
public Target.Builder clearTargetType()
public Target.ResumeTypeCase getResumeTypeCase()
getResumeTypeCase
in interface TargetOrBuilder
public Target.Builder clearResumeType()
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.Builder setQuery(Target.QueryTarget value)
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
public Target.Builder setQuery(Target.QueryTarget.Builder builderForValue)
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
public Target.Builder mergeQuery(Target.QueryTarget value)
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
public Target.Builder clearQuery()
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
public Target.QueryTarget.Builder getQueryBuilder()
A target specified by a query.
.google.firestore.v1.Target.QueryTarget query = 2;
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.Builder setDocuments(Target.DocumentsTarget value)
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
public Target.Builder setDocuments(Target.DocumentsTarget.Builder builderForValue)
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
public Target.Builder mergeDocuments(Target.DocumentsTarget value)
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
public Target.Builder clearDocuments()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
public Target.DocumentsTarget.Builder getDocumentsBuilder()
A target specified by a set of document names.
.google.firestore.v1.Target.DocumentsTarget documents = 3;
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 Target.Builder setResumeToken(com.google.protobuf.ByteString value)
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;
value
- The resumeToken to set.public Target.Builder clearResumeToken()
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;
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 Target.Builder setReadTime(com.google.protobuf.Timestamp value)
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;
public Target.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;
public Target.Builder mergeReadTime(com.google.protobuf.Timestamp value)
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;
public Target.Builder clearReadTime()
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;
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()
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;
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 Target.Builder setTargetId(int value)
The target ID that identifies the target on the stream. Must be a positive number and non-zero.
int32 target_id = 5;
value
- The targetId to set.public Target.Builder clearTargetId()
The target ID that identifies the target on the stream. Must be a positive number and non-zero.
int32 target_id = 5;
public boolean getOnce()
If the target should be removed once it is current and consistent.
bool once = 6;
getOnce
in interface TargetOrBuilder
public Target.Builder setOnce(boolean value)
If the target should be removed once it is current and consistent.
bool once = 6;
value
- The once to set.public Target.Builder clearOnce()
If the target should be removed once it is current and consistent.
bool once = 6;
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 Target.Builder setExpectedCount(com.google.protobuf.Int32Value value)
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;
public Target.Builder setExpectedCount(com.google.protobuf.Int32Value.Builder builderForValue)
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;
public Target.Builder mergeExpectedCount(com.google.protobuf.Int32Value value)
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;
public Target.Builder clearExpectedCount()
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;
public com.google.protobuf.Int32Value.Builder getExpectedCountBuilder()
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;
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 Target.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
public final Target.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Target.Builder>
Copyright © 2023 Google LLC. All rights reserved.