public static final class Target.Builder extends GeneratedMessageV3.Builder<Target.Builder> implements TargetOrBuilder
A specification of a set of documents to listen to.Protobuf type
google.firestore.v1beta1.Target
Modifier and Type | Method and Description |
---|---|
Target.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Target |
build() |
Target |
buildPartial() |
Target.Builder |
clear() |
Target.Builder |
clearDocuments()
A target specified by a set of document names.
|
Target.Builder |
clearField(Descriptors.FieldDescriptor field) |
Target.Builder |
clearOnce()
If the target should be removed once it is current and consistent.
|
Target.Builder |
clearOneof(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.v1beta1.TargetChange] for an identical target.
|
Target.Builder |
clearResumeType() |
Target.Builder |
clearTargetId()
A client provided target ID.
|
Target.Builder |
clearTargetType() |
Target.Builder |
clone() |
Target |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
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.
|
Timestamp |
getReadTime()
Start listening after a specific `read_time`.
|
Timestamp.Builder |
getReadTimeBuilder()
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 |
getTargetId()
A client provided target ID.
|
Target.TargetTypeCase |
getTargetTypeCase() |
boolean |
hasDocuments()
A target specified by a set of document names.
|
boolean |
hasQuery()
A target specified by a query.
|
boolean |
hasReadTime()
Start listening after a specific `read_time`.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Target.Builder |
mergeDocuments(Target.DocumentsTarget value)
A target specified by a set of document names.
|
Target.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Target.Builder |
mergeFrom(Message other) |
Target.Builder |
mergeFrom(Target other) |
Target.Builder |
mergeQuery(Target.QueryTarget value)
A target specified by a query.
|
Target.Builder |
mergeReadTime(Timestamp value)
Start listening after a specific `read_time`.
|
Target.Builder |
mergeUnknownFields(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 |
setField(Descriptors.FieldDescriptor field,
java.lang.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(Timestamp.Builder builderForValue)
Start listening after a specific `read_time`.
|
Target.Builder |
setReadTime(Timestamp value)
Start listening after a specific `read_time`.
|
Target.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Target.Builder |
setResumeToken(ByteString value)
A resume token from a prior [TargetChange][google.firestore.v1beta1.TargetChange] for an identical target.
|
Target.Builder |
setTargetId(int value)
A client provided target ID.
|
Target.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Target.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Target.Builder>
public Target getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Target build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Target buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Target.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Target.Builder>
public Target.Builder mergeFrom(Target other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Target.Builder>
public Target.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Target.Builder>
java.io.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.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.Builder setQuery(Target.QueryTarget value)
A target specified by a query.
.google.firestore.v1beta1.Target.QueryTarget query = 2;
public Target.Builder setQuery(Target.QueryTarget.Builder builderForValue)
A target specified by a query.
.google.firestore.v1beta1.Target.QueryTarget query = 2;
public Target.Builder mergeQuery(Target.QueryTarget value)
A target specified by a query.
.google.firestore.v1beta1.Target.QueryTarget query = 2;
public Target.Builder clearQuery()
A target specified by a query.
.google.firestore.v1beta1.Target.QueryTarget query = 2;
public Target.QueryTarget.Builder getQueryBuilder()
A target specified by a query.
.google.firestore.v1beta1.Target.QueryTarget query = 2;
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.Builder setDocuments(Target.DocumentsTarget value)
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
public Target.Builder setDocuments(Target.DocumentsTarget.Builder builderForValue)
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
public Target.Builder mergeDocuments(Target.DocumentsTarget value)
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
public Target.Builder clearDocuments()
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
public Target.DocumentsTarget.Builder getDocumentsBuilder()
A target specified by a set of document names.
.google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
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 Target.Builder setResumeToken(ByteString value)
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;
public Target.Builder clearResumeToken()
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;
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 Target.Builder setReadTime(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(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(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 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 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 Target.Builder setTargetId(int value)
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;
public Target.Builder clearTargetId()
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;
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;
public Target.Builder clearOnce()
If the target should be removed once it is current and consistent.
bool once = 6;
public final Target.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Target.Builder>
public final Target.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Target.Builder>