public final class AggregationResult extends GeneratedMessageV3 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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AggregationResultImplements
AggregationResultOrBuilderStatic Fields
AGGREGATE_PROPERTIES_FIELD_NUMBER
public static final int AGGREGATE_PROPERTIES_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AggregationResult getDefaultInstance()
Type | Description |
AggregationResult |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static AggregationResult.Builder newBuilder()
Type | Description |
AggregationResult.Builder |
newBuilder(AggregationResult prototype)
public static AggregationResult.Builder newBuilder(AggregationResult prototype)
Name | Description |
prototype | AggregationResult |
Type | Description |
AggregationResult.Builder |
parseDelimitedFrom(InputStream input)
public static AggregationResult parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseFrom(byte[] data)
public static AggregationResult parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AggregationResult parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AggregationResult parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseFrom(InputStream input)
public static AggregationResult parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AggregationResult parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AggregationResult> parser()
Type | Description |
Parser<AggregationResult> |
Methods
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;
Name | Description |
key | String |
Type | Description |
boolean |
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getAggregateProperties()
public Map<String,Value> getAggregateProperties()
Use #getAggregatePropertiesMap() instead.
Type | Description |
Map<String,Value> |
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;
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;
Type | Description |
Map<String,Value> |
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;
Name | Description |
key | String |
defaultValue | Value |
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;
Name | Description |
key | String |
Type | Description |
Value |
getDefaultInstanceForType()
public AggregationResult getDefaultInstanceForType()
Type | Description |
AggregationResult |
getParserForType()
public Parser<AggregationResult> getParserForType()
Type | Description |
Parser<AggregationResult> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public AggregationResult.Builder newBuilderForType()
Type | Description |
AggregationResult.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AggregationResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
AggregationResult.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public AggregationResult.Builder toBuilder()
Type | Description |
AggregationResult.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |