Package com.google.datastore.v1
Class AggregationResultBatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
com.google.datastore.v1.AggregationResultBatch.Builder
- All Implemented Interfaces:
AggregationResultBatchOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AggregationResultBatch
public static final class AggregationResultBatch.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
implements AggregationResultBatchOrBuilder
A batch of aggregation results produced by an aggregation query.Protobuf type
google.datastore.v1.AggregationResultBatch-
Method Summary
Modifier and TypeMethodDescriptionaddAggregationResults(int index, AggregationResult value) The aggregation results for this batch.addAggregationResults(int index, AggregationResult.Builder builderForValue) The aggregation results for this batch.The aggregation results for this batch.addAggregationResults(AggregationResult.Builder builderForValue) The aggregation results for this batch.The aggregation results for this batch.addAggregationResultsBuilder(int index) The aggregation results for this batch.addAllAggregationResults(Iterable<? extends AggregationResult> values) The aggregation results for this batch.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The aggregation results for this batch.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The state of the query after the current batch.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Read timestamp this batch was returned from.clone()getAggregationResults(int index) The aggregation results for this batch.getAggregationResultsBuilder(int index) The aggregation results for this batch.The aggregation results for this batch.intThe aggregation results for this batch.The aggregation results for this batch.getAggregationResultsOrBuilder(int index) The aggregation results for this batch.List<? extends AggregationResultOrBuilder>The aggregation results for this batch.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe state of the query after the current batch.intThe state of the query after the current batch.com.google.protobuf.TimestampRead timestamp this batch was returned from.com.google.protobuf.Timestamp.BuilderRead timestamp this batch was returned from.com.google.protobuf.TimestampOrBuilderRead timestamp this batch was returned from.booleanRead timestamp this batch was returned from.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(AggregationResultBatch other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeReadTime(com.google.protobuf.Timestamp value) Read timestamp this batch was returned from.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAggregationResults(int index) The aggregation results for this batch.setAggregationResults(int index, AggregationResult value) The aggregation results for this batch.setAggregationResults(int index, AggregationResult.Builder builderForValue) The aggregation results for this batch.The state of the query after the current batch.setMoreResultsValue(int value) The state of the query after the current batch.setReadTime(com.google.protobuf.Timestamp value) Read timestamp this batch was returned from.setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) Read timestamp this batch was returned from.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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<AggregationResultBatch.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<AggregationResultBatch.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<AggregationResultBatch.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<AggregationResultBatch.Builder>
-
setField
public AggregationResultBatch.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<AggregationResultBatch.Builder>
-
clearField
public AggregationResultBatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
clearOneof
public AggregationResultBatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
setRepeatedField
public AggregationResultBatch.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<AggregationResultBatch.Builder>
-
addRepeatedField
public AggregationResultBatch.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<AggregationResultBatch.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AggregationResultBatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
mergeFrom
public AggregationResultBatch.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<AggregationResultBatch.Builder>- Throws:
IOException
-
getAggregationResultsList
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;- Specified by:
getAggregationResultsListin interfaceAggregationResultBatchOrBuilder
-
getAggregationResultsCount
public int getAggregationResultsCount()The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;- Specified by:
getAggregationResultsCountin interfaceAggregationResultBatchOrBuilder
-
getAggregationResults
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;- Specified by:
getAggregationResultsin interfaceAggregationResultBatchOrBuilder
-
setAggregationResults
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
setAggregationResults
public AggregationResultBatch.Builder setAggregationResults(int index, AggregationResult.Builder builderForValue) The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
addAggregationResults
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
addAggregationResults
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
addAggregationResults
public AggregationResultBatch.Builder addAggregationResults(AggregationResult.Builder builderForValue) The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
addAggregationResults
public AggregationResultBatch.Builder addAggregationResults(int index, AggregationResult.Builder builderForValue) The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
addAllAggregationResults
public AggregationResultBatch.Builder addAllAggregationResults(Iterable<? extends AggregationResult> values) The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
clearAggregationResults
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
removeAggregationResults
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
getAggregationResultsBuilder
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
getAggregationResultsOrBuilder
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;- Specified by:
getAggregationResultsOrBuilderin interfaceAggregationResultBatchOrBuilder
-
getAggregationResultsOrBuilderList
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;- Specified by:
getAggregationResultsOrBuilderListin interfaceAggregationResultBatchOrBuilder
-
addAggregationResultsBuilder
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
addAggregationResultsBuilder
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
getAggregationResultsBuilderList
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1; -
getMoreResultsValue
public int getMoreResultsValue()The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to `NO_MORE_RESULTS`.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;- Specified by:
getMoreResultsValuein interfaceAggregationResultBatchOrBuilder- Returns:
- The enum numeric value on the wire for moreResults.
-
setMoreResultsValue
The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to `NO_MORE_RESULTS`.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;- Parameters:
value- The enum numeric value on the wire for moreResults to set.- Returns:
- This builder for chaining.
-
getMoreResults
The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to `NO_MORE_RESULTS`.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;- Specified by:
getMoreResultsin interfaceAggregationResultBatchOrBuilder- Returns:
- The moreResults.
-
setMoreResults
The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to `NO_MORE_RESULTS`.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;- Parameters:
value- The moreResults to set.- Returns:
- This builder for chaining.
-
clearMoreResults
The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to `NO_MORE_RESULTS`.
.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;- Returns:
- This builder for chaining.
-
hasReadTime
public boolean hasReadTime()Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;- Specified by:
hasReadTimein interfaceAggregationResultBatchOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.Timestamp getReadTime()Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;- Specified by:
getReadTimein interfaceAggregationResultBatchOrBuilder- Returns:
- The readTime.
-
setReadTime
Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3; -
setReadTime
public AggregationResultBatch.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3; -
mergeReadTime
Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3; -
clearReadTime
Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3; -
getReadTimeBuilder
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3; -
getReadTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()Read timestamp this batch was returned from. In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.
.google.protobuf.Timestamp read_time = 3;- Specified by:
getReadTimeOrBuilderin interfaceAggregationResultBatchOrBuilder
-
setUnknownFields
public final AggregationResultBatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
mergeUnknownFields
public final AggregationResultBatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-