public static final class AggregationResult.Builder extends GeneratedMessageV3.Builder<AggregationResult.Builder> implements AggregationResultOrBuilder
The result of a single bucket from a Datastore aggregation query.
The keys of aggregate_properties
are the same for all results in an
aggregation query, unlike entity queries which can have different fields
present for each result.
Protobuf type google.datastore.v1.AggregationResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AggregationResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AggregationResult build()
Returns
buildPartial()
public AggregationResult buildPartial()
Returns
clear()
public AggregationResult.Builder clear()
Returns
Overrides
clearAggregateProperties()
public AggregationResult.Builder clearAggregateProperties()
Returns
clearField(Descriptors.FieldDescriptor field)
public AggregationResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AggregationResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AggregationResult.Builder clone()
Returns
Overrides
containsAggregateProperties(String key)
public boolean containsAggregateProperties(String key)
The result of the aggregation functions, ex: COUNT(*) AS total_entities
.
The key is the alias
assigned to the aggregation function on input and the size of this map
equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
Parameter
Returns
getAggregateProperties()
public Map<String,Value> getAggregateProperties()
Returns
getAggregatePropertiesCount()
public int getAggregatePropertiesCount()
The result of the aggregation functions, ex: COUNT(*) AS total_entities
.
The key is the alias
assigned to the aggregation function on input and the size of this map
equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
Returns
getAggregatePropertiesMap()
public Map<String,Value> getAggregatePropertiesMap()
The result of the aggregation functions, ex: COUNT(*) AS total_entities
.
The key is the alias
assigned to the aggregation function on input and the size of this map
equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
Returns
getAggregatePropertiesOrDefault(String key, Value defaultValue)
public Value getAggregatePropertiesOrDefault(String key, Value defaultValue)
The result of the aggregation functions, ex: COUNT(*) AS total_entities
.
The key is the alias
assigned to the aggregation function on input and the size of this map
equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
Parameters
Returns
getAggregatePropertiesOrThrow(String key)
public Value getAggregatePropertiesOrThrow(String key)
The result of the aggregation functions, ex: COUNT(*) AS total_entities
.
The key is the alias
assigned to the aggregation function on input and the size of this map
equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
Parameter
Returns
getDefaultInstanceForType()
public AggregationResult getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMutableAggregateProperties()
public Map<String,Value> getMutableAggregateProperties()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AggregationResult other)
public AggregationResult.Builder mergeFrom(AggregationResult other)
Parameter
Returns
public AggregationResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AggregationResult.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AggregationResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAggregateProperties(String key, Value value)
public AggregationResult.Builder putAggregateProperties(String key, Value value)
The result of the aggregation functions, ex: COUNT(*) AS total_entities
.
The key is the alias
assigned to the aggregation function on input and the size of this map
equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
Parameters
Returns
putAllAggregateProperties(Map<String,Value> values)
public AggregationResult.Builder putAllAggregateProperties(Map<String,Value> values)
The result of the aggregation functions, ex: COUNT(*) AS total_entities
.
The key is the alias
assigned to the aggregation function on input and the size of this map
equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
Parameter
Returns
removeAggregateProperties(String key)
public AggregationResult.Builder removeAggregateProperties(String key)
The result of the aggregation functions, ex: COUNT(*) AS total_entities
.
The key is the alias
assigned to the aggregation function on input and the size of this map
equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AggregationResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AggregationResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AggregationResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides