Package com.google.firestore.v1
Class RunQueryResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
com.google.firestore.v1.RunQueryResponse.Builder
- All Implemented Interfaces:
RunQueryResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RunQueryResponse
public static final class RunQueryResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
implements RunQueryResponseOrBuilder
The response for [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery].Protobuf type
google.firestore.v1.RunQueryResponse-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()A query result, not set when reporting partial progress.If present, Firestore has completely finished the request and no more documents will be returned.Query explain metrics.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The time at which the document was read.The number of results that have been skipped due to an offset between the last response and the current response.The transaction that was started as part of this request.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA query result, not set when reporting partial progress.A query result, not set when reporting partial progress.A query result, not set when reporting partial progress.booleangetDone()If present, Firestore has completely finished the request and no more documents will be returned.Query explain metrics.Query explain metrics.Query explain metrics.com.google.protobuf.TimestampThe time at which the document was read.com.google.protobuf.Timestamp.BuilderThe time at which the document was read.com.google.protobuf.TimestampOrBuilderThe time at which the document was read.intThe number of results that have been skipped due to an offset between the last response and the current response.com.google.protobuf.ByteStringThe transaction that was started as part of this request.booleanA query result, not set when reporting partial progress.booleanhasDone()If present, Firestore has completely finished the request and no more documents will be returned.booleanQuery explain metrics.booleanThe time at which the document was read.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeDocument(Document value) A query result, not set when reporting partial progress.Query explain metrics.mergeFrom(RunQueryResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeReadTime(com.google.protobuf.Timestamp value) The time at which the document was read.final RunQueryResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDocument(Document value) A query result, not set when reporting partial progress.setDocument(Document.Builder builderForValue) A query result, not set when reporting partial progress.setDone(boolean value) If present, Firestore has completely finished the request and no more documents will be returned.setExplainMetrics(ExplainMetrics value) Query explain metrics.setExplainMetrics(ExplainMetrics.Builder builderForValue) Query explain metrics.setReadTime(com.google.protobuf.Timestamp value) The time at which the document was read.setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the document was read.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSkippedResults(int value) The number of results that have been skipped due to an offset between the last response and the current response.setTransaction(com.google.protobuf.ByteString value) The transaction that was started as part of this request.final RunQueryResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
setField
public RunQueryResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
setRepeatedField
public RunQueryResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
addRepeatedField
public RunQueryResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RunQueryResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
mergeFrom
public RunQueryResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RunQueryResponse.Builder>- Throws:
IOException
-
getContinuationSelectorCase
- Specified by:
getContinuationSelectorCasein interfaceRunQueryResponseOrBuilder
-
clearContinuationSelector
-
getTransaction
public com.google.protobuf.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][google.firestore.v1.RunQueryRequest.new_transaction] was set in the request. If set, no other fields will be set in this response.
bytes transaction = 2;- Specified by:
getTransactionin interfaceRunQueryResponseOrBuilder- Returns:
- The transaction.
-
setTransaction
The transaction that was started as part of this request. Can only be set in the first response, and only if [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction] was set in the request. If set, no other fields will be set in this response.
bytes transaction = 2;- Parameters:
value- The transaction to set.- Returns:
- This builder for chaining.
-
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][google.firestore.v1.RunQueryRequest.new_transaction] was set in the request. If set, no other fields will be set in this response.
bytes transaction = 2;- Returns:
- This builder for chaining.
-
hasDocument
public boolean hasDocument()A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;- Specified by:
hasDocumentin interfaceRunQueryResponseOrBuilder- Returns:
- Whether the document field is set.
-
getDocument
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;- Specified by:
getDocumentin interfaceRunQueryResponseOrBuilder- Returns:
- The document.
-
setDocument
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1; -
setDocument
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1; -
mergeDocument
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1; -
clearDocument
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1; -
getDocumentBuilder
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1; -
getDocumentOrBuilder
A query result, not set when reporting partial progress.
.google.firestore.v1.Document document = 1;- Specified by:
getDocumentOrBuilderin interfaceRunQueryResponseOrBuilder
-
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;- Specified by:
hasReadTimein interfaceRunQueryResponseOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.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;- Specified by:
getReadTimein interfaceRunQueryResponseOrBuilder- Returns:
- The readTime.
-
setReadTime
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; -
setReadTime
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; -
mergeReadTime
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; -
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; -
getReadTimeBuilder
public com.google.protobuf.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; -
getReadTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getReadTimeOrBuilderin interfaceRunQueryResponseOrBuilder
-
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;- Specified by:
getSkippedResultsin interfaceRunQueryResponseOrBuilder- Returns:
- The skippedResults.
-
setSkippedResults
The number of results that have been skipped due to an offset between the last response and the current response.
int32 skipped_results = 4;- Parameters:
value- The skippedResults to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasDone
public boolean hasDone()If present, Firestore has completely finished the request and no more documents will be returned.
bool done = 6;- Specified by:
hasDonein interfaceRunQueryResponseOrBuilder- Returns:
- Whether the done field is set.
-
getDone
public boolean getDone()If present, Firestore has completely finished the request and no more documents will be returned.
bool done = 6;- Specified by:
getDonein interfaceRunQueryResponseOrBuilder- Returns:
- The done.
-
setDone
If present, Firestore has completely finished the request and no more documents will be returned.
bool done = 6;- Parameters:
value- The done to set.- Returns:
- This builder for chaining.
-
clearDone
If present, Firestore has completely finished the request and no more documents will be returned.
bool done = 6;- Returns:
- This builder for chaining.
-
hasExplainMetrics
public boolean hasExplainMetrics()Query explain metrics. This is only present when the [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 11;- Specified by:
hasExplainMetricsin interfaceRunQueryResponseOrBuilder- Returns:
- Whether the explainMetrics field is set.
-
getExplainMetrics
Query explain metrics. This is only present when the [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 11;- Specified by:
getExplainMetricsin interfaceRunQueryResponseOrBuilder- Returns:
- The explainMetrics.
-
setExplainMetrics
Query explain metrics. This is only present when the [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 11; -
setExplainMetrics
Query explain metrics. This is only present when the [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 11; -
mergeExplainMetrics
Query explain metrics. This is only present when the [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 11; -
clearExplainMetrics
Query explain metrics. This is only present when the [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 11; -
getExplainMetricsBuilder
Query explain metrics. This is only present when the [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 11; -
getExplainMetricsOrBuilder
Query explain metrics. This is only present when the [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 11;- Specified by:
getExplainMetricsOrBuilderin interfaceRunQueryResponseOrBuilder
-
setUnknownFields
public final RunQueryResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-
mergeUnknownFields
public final RunQueryResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RunQueryResponse.Builder>
-