public static final class AggregationResult.Builder extends GeneratedMessage.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.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public AggregationResult build()
buildPartial()
public AggregationResult buildPartial()
clear()
public AggregationResult.Builder clear()
Overrides
clearAggregateProperties()
public AggregationResult.Builder clearAggregateProperties()
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 |
| Name |
Description |
key |
String
|
getAggregateProperties() (deprecated)
public Map<String,Value> getAggregateProperties()
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 |
| Type |
Description |
int |
|
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;
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 |
| Name |
Description |
key |
String
|
defaultValue |
Value
|
| Returns |
| Type |
Description |
Value |
|
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 |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
Value |
|
getDefaultInstanceForType()
public AggregationResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableAggregateProperties() (deprecated)
public Map<String,Value> getMutableAggregateProperties()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AggregationResult other)
public AggregationResult.Builder mergeFrom(AggregationResult other)
public AggregationResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AggregationResult.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
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;
putAggregatePropertiesBuilderIfAbsent(String key)
public Value.Builder putAggregatePropertiesBuilderIfAbsent(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 |
| Name |
Description |
key |
String
|
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;
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 |
| Name |
Description |
key |
String
|