Package com.google.firestore.v1
Class RunAggregationQueryResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryResponse.Builder>
com.google.firestore.v1.RunAggregationQueryResponse.Builder
- All Implemented Interfaces:
RunAggregationQueryResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RunAggregationQueryResponse
public static final class RunAggregationQueryResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryResponse.Builder>
implements RunAggregationQueryResponseOrBuilder
The response for [Firestore.RunAggregationQuery][google.firestore.v1.Firestore.RunAggregationQuery].Protobuf type
google.firestore.v1.RunAggregationQueryResponse-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Query explain metrics.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The time at which the aggregate result was computed.A single aggregation result.The transaction that was started as part of this request.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorQuery explain metrics.Query explain metrics.Query explain metrics.com.google.protobuf.TimestampThe time at which the aggregate result was computed.com.google.protobuf.Timestamp.BuilderThe time at which the aggregate result was computed.com.google.protobuf.TimestampOrBuilderThe time at which the aggregate result was computed.A single aggregation result.A single aggregation result.A single aggregation result.com.google.protobuf.ByteStringThe transaction that was started as part of this request.booleanQuery explain metrics.booleanThe time at which the aggregate result was computed.booleanA single aggregation result.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanQuery explain metrics.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 aggregate result was computed.mergeResult(AggregationResult value) A single aggregation result.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setExplainMetrics(ExplainMetrics value) Query explain metrics.setExplainMetrics(ExplainMetrics.Builder builderForValue) Query explain metrics.setReadTime(com.google.protobuf.Timestamp value) The time at which the aggregate result was computed.setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the aggregate result was computed.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResult(AggregationResult value) A single aggregation result.setResult(AggregationResult.Builder builderForValue) A single aggregation result.setTransaction(com.google.protobuf.ByteString value) The transaction that was started as part of this request.setUnknownFields(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<RunAggregationQueryResponse.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<RunAggregationQueryResponse.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<RunAggregationQueryResponse.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<RunAggregationQueryResponse.Builder>
-
setField
public RunAggregationQueryResponse.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<RunAggregationQueryResponse.Builder>
-
clearField
public RunAggregationQueryResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryResponse.Builder>
-
clearOneof
public RunAggregationQueryResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryResponse.Builder>
-
setRepeatedField
public RunAggregationQueryResponse.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<RunAggregationQueryResponse.Builder>
-
addRepeatedField
public RunAggregationQueryResponse.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<RunAggregationQueryResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RunAggregationQueryResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryResponse.Builder>
-
mergeFrom
public RunAggregationQueryResponse.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<RunAggregationQueryResponse.Builder>- Throws:
IOException
-
hasResult
public boolean hasResult()A single aggregation result. Not present when reporting partial progress.
.google.firestore.v1.AggregationResult result = 1;- Specified by:
hasResultin interfaceRunAggregationQueryResponseOrBuilder- Returns:
- Whether the result field is set.
-
getResult
A single aggregation result. Not present when reporting partial progress.
.google.firestore.v1.AggregationResult result = 1;- Specified by:
getResultin interfaceRunAggregationQueryResponseOrBuilder- Returns:
- The result.
-
setResult
A single aggregation result. Not present when reporting partial progress.
.google.firestore.v1.AggregationResult result = 1; -
setResult
A single aggregation result. Not present when reporting partial progress.
.google.firestore.v1.AggregationResult result = 1; -
mergeResult
A single aggregation result. Not present when reporting partial progress.
.google.firestore.v1.AggregationResult result = 1; -
clearResult
A single aggregation result. Not present when reporting partial progress.
.google.firestore.v1.AggregationResult result = 1; -
getResultBuilder
A single aggregation result. Not present when reporting partial progress.
.google.firestore.v1.AggregationResult result = 1; -
getResultOrBuilder
A single aggregation result. Not present when reporting partial progress.
.google.firestore.v1.AggregationResult result = 1;- Specified by:
getResultOrBuilderin interfaceRunAggregationQueryResponseOrBuilder
-
getTransaction
public com.google.protobuf.ByteString getTransaction()The transaction that was started as part of this request. Only present on the first response when the request requested to start a new transaction.
bytes transaction = 2;- Specified by:
getTransactionin interfaceRunAggregationQueryResponseOrBuilder- Returns:
- The transaction.
-
setTransaction
The transaction that was started as part of this request. Only present on the first response when the request requested to start a new transaction.
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. Only present on the first response when the request requested to start a new transaction.
bytes transaction = 2;- Returns:
- This builder for chaining.
-
hasReadTime
public boolean hasReadTime()The time at which the aggregate result was computed. This is always monotonically increasing; in this case, the previous AggregationResult 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 `result` will be sent, and this represents the time at which the query was run.
.google.protobuf.Timestamp read_time = 3;- Specified by:
hasReadTimein interfaceRunAggregationQueryResponseOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.Timestamp getReadTime()The time at which the aggregate result was computed. This is always monotonically increasing; in this case, the previous AggregationResult 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 `result` will be sent, and this represents the time at which the query was run.
.google.protobuf.Timestamp read_time = 3;- Specified by:
getReadTimein interfaceRunAggregationQueryResponseOrBuilder- Returns:
- The readTime.
-
setReadTime
The time at which the aggregate result was computed. This is always monotonically increasing; in this case, the previous AggregationResult 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 `result` will be sent, and this represents the time at which the query was run.
.google.protobuf.Timestamp read_time = 3; -
setReadTime
public RunAggregationQueryResponse.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the aggregate result was computed. This is always monotonically increasing; in this case, the previous AggregationResult 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 `result` 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 aggregate result was computed. This is always monotonically increasing; in this case, the previous AggregationResult 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 `result` 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 aggregate result was computed. This is always monotonically increasing; in this case, the previous AggregationResult 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 `result` 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 aggregate result was computed. This is always monotonically increasing; in this case, the previous AggregationResult 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 `result` 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 aggregate result was computed. This is always monotonically increasing; in this case, the previous AggregationResult 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 `result` will be sent, and this represents the time at which the query was run.
.google.protobuf.Timestamp read_time = 3;- Specified by:
getReadTimeOrBuilderin interfaceRunAggregationQueryResponseOrBuilder
-
hasExplainMetrics
public boolean hasExplainMetrics()Query explain metrics. This is only present when the [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 10;- Specified by:
hasExplainMetricsin interfaceRunAggregationQueryResponseOrBuilder- Returns:
- Whether the explainMetrics field is set.
-
getExplainMetrics
Query explain metrics. This is only present when the [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 10;- Specified by:
getExplainMetricsin interfaceRunAggregationQueryResponseOrBuilder- Returns:
- The explainMetrics.
-
setExplainMetrics
Query explain metrics. This is only present when the [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 10; -
setExplainMetrics
public RunAggregationQueryResponse.Builder setExplainMetrics(ExplainMetrics.Builder builderForValue) Query explain metrics. This is only present when the [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 10; -
mergeExplainMetrics
Query explain metrics. This is only present when the [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 10; -
clearExplainMetrics
Query explain metrics. This is only present when the [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 10; -
getExplainMetricsBuilder
Query explain metrics. This is only present when the [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 10; -
getExplainMetricsOrBuilder
Query explain metrics. This is only present when the [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.
.google.firestore.v1.ExplainMetrics explain_metrics = 10;- Specified by:
getExplainMetricsOrBuilderin interfaceRunAggregationQueryResponseOrBuilder
-
setUnknownFields
public final RunAggregationQueryResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryResponse.Builder>
-
mergeUnknownFields
public final RunAggregationQueryResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RunAggregationQueryResponse.Builder>
-