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 typegoogle.datastore.v1.AggregationResultBatch
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregationResultBatch.Builder
addAggregationResults(int index, AggregationResult value)
The aggregation results for this batch.AggregationResultBatch.Builder
addAggregationResults(int index, AggregationResult.Builder builderForValue)
The aggregation results for this batch.AggregationResultBatch.Builder
addAggregationResults(AggregationResult value)
The aggregation results for this batch.AggregationResultBatch.Builder
addAggregationResults(AggregationResult.Builder builderForValue)
The aggregation results for this batch.AggregationResult.Builder
addAggregationResultsBuilder()
The aggregation results for this batch.AggregationResult.Builder
addAggregationResultsBuilder(int index)
The aggregation results for this batch.AggregationResultBatch.Builder
addAllAggregationResults(Iterable<? extends AggregationResult> values)
The aggregation results for this batch.AggregationResultBatch.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AggregationResultBatch
build()
AggregationResultBatch
buildPartial()
AggregationResultBatch.Builder
clear()
AggregationResultBatch.Builder
clearAggregationResults()
The aggregation results for this batch.AggregationResultBatch.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AggregationResultBatch.Builder
clearMoreResults()
The state of the query after the current batch.AggregationResultBatch.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AggregationResultBatch.Builder
clearReadTime()
Read timestamp this batch was returned from.AggregationResultBatch.Builder
clone()
AggregationResult
getAggregationResults(int index)
The aggregation results for this batch.AggregationResult.Builder
getAggregationResultsBuilder(int index)
The aggregation results for this batch.List<AggregationResult.Builder>
getAggregationResultsBuilderList()
The aggregation results for this batch.int
getAggregationResultsCount()
The aggregation results for this batch.List<AggregationResult>
getAggregationResultsList()
The aggregation results for this batch.AggregationResultOrBuilder
getAggregationResultsOrBuilder(int index)
The aggregation results for this batch.List<? extends AggregationResultOrBuilder>
getAggregationResultsOrBuilderList()
The aggregation results for this batch.AggregationResultBatch
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
QueryResultBatch.MoreResultsType
getMoreResults()
The state of the query after the current batch.int
getMoreResultsValue()
The state of the query after the current batch.com.google.protobuf.Timestamp
getReadTime()
Read timestamp this batch was returned from.com.google.protobuf.Timestamp.Builder
getReadTimeBuilder()
Read timestamp this batch was returned from.com.google.protobuf.TimestampOrBuilder
getReadTimeOrBuilder()
Read timestamp this batch was returned from.boolean
hasReadTime()
Read timestamp this batch was returned from.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AggregationResultBatch.Builder
mergeFrom(AggregationResultBatch other)
AggregationResultBatch.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AggregationResultBatch.Builder
mergeFrom(com.google.protobuf.Message other)
AggregationResultBatch.Builder
mergeReadTime(com.google.protobuf.Timestamp value)
Read timestamp this batch was returned from.AggregationResultBatch.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AggregationResultBatch.Builder
removeAggregationResults(int index)
The aggregation results for this batch.AggregationResultBatch.Builder
setAggregationResults(int index, AggregationResult value)
The aggregation results for this batch.AggregationResultBatch.Builder
setAggregationResults(int index, AggregationResult.Builder builderForValue)
The aggregation results for this batch.AggregationResultBatch.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AggregationResultBatch.Builder
setMoreResults(QueryResultBatch.MoreResultsType value)
The state of the query after the current batch.AggregationResultBatch.Builder
setMoreResultsValue(int value)
The state of the query after the current batch.AggregationResultBatch.Builder
setReadTime(com.google.protobuf.Timestamp value)
Read timestamp this batch was returned from.AggregationResultBatch.Builder
setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
Read timestamp this batch was returned from.AggregationResultBatch.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AggregationResultBatch.Builder
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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
clear
public AggregationResultBatch.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
getDefaultInstanceForType
public AggregationResultBatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AggregationResultBatch build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AggregationResultBatch buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AggregationResultBatch.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
setField
public AggregationResultBatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
clearField
public AggregationResultBatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
clearOneof
public AggregationResultBatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
setRepeatedField
public AggregationResultBatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
addRepeatedField
public AggregationResultBatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
mergeFrom
public AggregationResultBatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AggregationResultBatch.Builder>
-
mergeFrom
public AggregationResultBatch.Builder mergeFrom(AggregationResultBatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AggregationResultBatch.Builder>
- Throws:
IOException
-
getAggregationResultsList
public List<AggregationResult> getAggregationResultsList()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
- Specified by:
getAggregationResultsList
in interfaceAggregationResultBatchOrBuilder
-
getAggregationResultsCount
public int getAggregationResultsCount()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
- Specified by:
getAggregationResultsCount
in interfaceAggregationResultBatchOrBuilder
-
getAggregationResults
public AggregationResult getAggregationResults(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
- Specified by:
getAggregationResults
in interfaceAggregationResultBatchOrBuilder
-
setAggregationResults
public AggregationResultBatch.Builder setAggregationResults(int index, AggregationResult value)
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
public AggregationResultBatch.Builder addAggregationResults(AggregationResult value)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
-
addAggregationResults
public AggregationResultBatch.Builder addAggregationResults(int index, AggregationResult value)
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
public AggregationResultBatch.Builder clearAggregationResults()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
-
removeAggregationResults
public AggregationResultBatch.Builder removeAggregationResults(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
-
getAggregationResultsBuilder
public AggregationResult.Builder getAggregationResultsBuilder(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
-
getAggregationResultsOrBuilder
public AggregationResultOrBuilder getAggregationResultsOrBuilder(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
- Specified by:
getAggregationResultsOrBuilder
in interfaceAggregationResultBatchOrBuilder
-
getAggregationResultsOrBuilderList
public List<? extends AggregationResultOrBuilder> getAggregationResultsOrBuilderList()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
- Specified by:
getAggregationResultsOrBuilderList
in interfaceAggregationResultBatchOrBuilder
-
addAggregationResultsBuilder
public AggregationResult.Builder addAggregationResultsBuilder()
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
-
addAggregationResultsBuilder
public AggregationResult.Builder addAggregationResultsBuilder(int index)
The aggregation results for this batch.
repeated .google.datastore.v1.AggregationResult aggregation_results = 1;
-
getAggregationResultsBuilderList
public List<AggregationResult.Builder> 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:
getMoreResultsValue
in interfaceAggregationResultBatchOrBuilder
- Returns:
- The enum numeric value on the wire for moreResults.
-
setMoreResultsValue
public AggregationResultBatch.Builder setMoreResultsValue(int value)
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
public QueryResultBatch.MoreResultsType 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:
getMoreResults
in interfaceAggregationResultBatchOrBuilder
- Returns:
- The moreResults.
-
setMoreResults
public AggregationResultBatch.Builder setMoreResults(QueryResultBatch.MoreResultsType value)
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
public AggregationResultBatch.Builder 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:
hasReadTime
in 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:
getReadTime
in interfaceAggregationResultBatchOrBuilder
- Returns:
- The readTime.
-
setReadTime
public AggregationResultBatch.Builder setReadTime(com.google.protobuf.Timestamp value)
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
public AggregationResultBatch.Builder mergeReadTime(com.google.protobuf.Timestamp value)
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
public AggregationResultBatch.Builder 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:
getReadTimeOrBuilder
in interfaceAggregationResultBatchOrBuilder
-
setUnknownFields
public final AggregationResultBatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
mergeUnknownFields
public final AggregationResultBatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationResultBatch.Builder>
-
-