public static final class RunQueryResponse.Builder extends GeneratedMessageV3.Builder<RunQueryResponse.Builder> implements RunQueryResponseOrBuilder
The response for Firestore.RunQuery.
Protobuf type google.firestore.v1.RunQueryResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RunQueryResponse.BuilderImplements
RunQueryResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RunQueryResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
RunQueryResponse.Builder |
build()
public RunQueryResponse build()
Type | Description |
RunQueryResponse |
buildPartial()
public RunQueryResponse buildPartial()
Type | Description |
RunQueryResponse |
clear()
public RunQueryResponse.Builder clear()
Type | Description |
RunQueryResponse.Builder |
clearContinuationSelector()
public RunQueryResponse.Builder clearContinuationSelector()
Type | Description |
RunQueryResponse.Builder |
clearDocument()
public RunQueryResponse.Builder clearDocument()
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;
Type | Description |
RunQueryResponse.Builder |
clearDone()
public RunQueryResponse.Builder clearDone()
If present, Firestore has completely finished the request and no more documents will be returned.
bool done = 6;
Type | Description |
RunQueryResponse.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public RunQueryResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
RunQueryResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public RunQueryResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
RunQueryResponse.Builder |
clearReadTime()
public RunQueryResponse.Builder clearReadTime()
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time
and this one.
If the query returns no results, a response with read_time
and no
document
will be sent, and this represents the time at which the query
was run.
.google.protobuf.Timestamp read_time = 3;
Type | Description |
RunQueryResponse.Builder |
clearSkippedResults()
public RunQueryResponse.Builder clearSkippedResults()
The number of results that have been skipped due to an offset between the last response and the current response.
int32 skipped_results = 4;
Type | Description |
RunQueryResponse.Builder | This builder for chaining. |
clearTransaction()
public RunQueryResponse.Builder clearTransaction()
The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response.
bytes transaction = 2;
Type | Description |
RunQueryResponse.Builder | This builder for chaining. |
clone()
public RunQueryResponse.Builder clone()
Type | Description |
RunQueryResponse.Builder |
getContinuationSelectorCase()
public RunQueryResponse.ContinuationSelectorCase getContinuationSelectorCase()
Type | Description |
RunQueryResponse.ContinuationSelectorCase |
getDefaultInstanceForType()
public RunQueryResponse getDefaultInstanceForType()
Type | Description |
RunQueryResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDocument()
public Document getDocument()
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;
Type | Description |
Document | The document. |
getDocumentBuilder()
public Document.Builder getDocumentBuilder()
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;
Type | Description |
Document.Builder |
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;
Type | Description |
DocumentOrBuilder |
getDone()
public boolean getDone()
If present, Firestore has completely finished the request and no more documents will be returned.
bool done = 6;
Type | Description |
boolean | The done. |
getReadTime()
public Timestamp getReadTime()
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time
and this one.
If the query returns no results, a response with read_time
and no
document
will be sent, and this represents the time at which the query
was run.
.google.protobuf.Timestamp read_time = 3;
Type | Description |
Timestamp | The readTime. |
getReadTimeBuilder()
public Timestamp.Builder getReadTimeBuilder()
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time
and this one.
If the query returns no results, a response with read_time
and no
document
will be sent, and this represents the time at which the query
was run.
.google.protobuf.Timestamp read_time = 3;
Type | Description |
Builder |
getReadTimeOrBuilder()
public TimestampOrBuilder getReadTimeOrBuilder()
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time
and this one.
If the query returns no results, a response with read_time
and no
document
will be sent, and this represents the time at which the query
was run.
.google.protobuf.Timestamp read_time = 3;
Type | Description |
TimestampOrBuilder |
getSkippedResults()
public int getSkippedResults()
The number of results that have been skipped due to an offset between the last response and the current response.
int32 skipped_results = 4;
Type | Description |
int | The skippedResults. |
getTransaction()
public ByteString getTransaction()
The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response.
bytes transaction = 2;
Type | Description |
ByteString | The transaction. |
hasDocument()
public boolean hasDocument()
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;
Type | Description |
boolean | Whether the document field is set. |
hasDone()
public boolean hasDone()
If present, Firestore has completely finished the request and no more documents will be returned.
bool done = 6;
Type | Description |
boolean | Whether the done field is set. |
hasReadTime()
public boolean hasReadTime()
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time
and this one.
If the query returns no results, a response with read_time
and no
document
will be sent, and this represents the time at which the query
was run.
.google.protobuf.Timestamp read_time = 3;
Type | Description |
boolean | Whether the readTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeDocument(Document value)
public RunQueryResponse.Builder mergeDocument(Document value)
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;
Name | Description |
value | Document |
Type | Description |
RunQueryResponse.Builder |
mergeFrom(RunQueryResponse other)
public RunQueryResponse.Builder mergeFrom(RunQueryResponse other)
Name | Description |
other | RunQueryResponse |
Type | Description |
RunQueryResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RunQueryResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RunQueryResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public RunQueryResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
RunQueryResponse.Builder |
mergeReadTime(Timestamp value)
public RunQueryResponse.Builder mergeReadTime(Timestamp value)
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time
and this one.
If the query returns no results, a response with read_time
and no
document
will be sent, and this represents the time at which the query
was run.
.google.protobuf.Timestamp read_time = 3;
Name | Description |
value | Timestamp |
Type | Description |
RunQueryResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RunQueryResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
RunQueryResponse.Builder |
setDocument(Document value)
public RunQueryResponse.Builder setDocument(Document value)
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;
Name | Description |
value | Document |
Type | Description |
RunQueryResponse.Builder |
setDocument(Document.Builder builderForValue)
public RunQueryResponse.Builder setDocument(Document.Builder builderForValue)
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;
Name | Description |
builderForValue | Document.Builder |
Type | Description |
RunQueryResponse.Builder |
setDone(boolean value)
public RunQueryResponse.Builder setDone(boolean value)
If present, Firestore has completely finished the request and no more documents will be returned.
bool done = 6;
Name | Description |
value | boolean The done to set. |
Type | Description |
RunQueryResponse.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public RunQueryResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
RunQueryResponse.Builder |
setReadTime(Timestamp value)
public RunQueryResponse.Builder setReadTime(Timestamp value)
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time
and this one.
If the query returns no results, a response with read_time
and no
document
will be sent, and this represents the time at which the query
was run.
.google.protobuf.Timestamp read_time = 3;
Name | Description |
value | Timestamp |
Type | Description |
RunQueryResponse.Builder |
setReadTime(Timestamp.Builder builderForValue)
public RunQueryResponse.Builder setReadTime(Timestamp.Builder builderForValue)
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time
and this one.
If the query returns no results, a response with read_time
and no
document
will be sent, and this represents the time at which the query
was run.
.google.protobuf.Timestamp read_time = 3;
Name | Description |
builderForValue | Builder |
Type | Description |
RunQueryResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RunQueryResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
RunQueryResponse.Builder |
setSkippedResults(int value)
public RunQueryResponse.Builder setSkippedResults(int value)
The number of results that have been skipped due to an offset between the last response and the current response.
int32 skipped_results = 4;
Name | Description |
value | int The skippedResults to set. |
Type | Description |
RunQueryResponse.Builder | This builder for chaining. |
setTransaction(ByteString value)
public RunQueryResponse.Builder setTransaction(ByteString value)
The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response.
bytes transaction = 2;
Name | Description |
value | ByteString The transaction to set. |
Type | Description |
RunQueryResponse.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final RunQueryResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
RunQueryResponse.Builder |