public static final class AggregationQuery.Aggregation extends GeneratedMessageV3 implements AggregationQuery.AggregationOrBuilder
Defines an aggregation that produces a single result.
Protobuf type google.datastore.v1.AggregationQuery.Aggregation
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AggregationQuery.AggregationImplements
AggregationQuery.AggregationOrBuilderStatic Fields
ALIAS_FIELD_NUMBER
public static final int ALIAS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AggregationQuery.Aggregation getDefaultInstance()
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static AggregationQuery.Aggregation.Builder newBuilder()
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation.Builder |
newBuilder(AggregationQuery.Aggregation prototype)
public static AggregationQuery.Aggregation.Builder newBuilder(AggregationQuery.Aggregation prototype)
Parameter | |
---|---|
Name | Description |
prototype | AggregationQuery.Aggregation |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation.Builder |
parseDelimitedFrom(InputStream input)
public static AggregationQuery.Aggregation parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationQuery.Aggregation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static AggregationQuery.Aggregation parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data | byte[] |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AggregationQuery.Aggregation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AggregationQuery.Aggregation parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data | ByteString |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AggregationQuery.Aggregation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AggregationQuery.Aggregation parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input | CodedInputStream |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationQuery.Aggregation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static AggregationQuery.Aggregation parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationQuery.Aggregation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AggregationQuery.Aggregation parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data | ByteBuffer |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AggregationQuery.Aggregation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AggregationQuery.Aggregation> parser()
Returns | |
---|---|
Type | Description |
Parser<Aggregation> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj | Object |
Returns | |
---|---|
Type | Description |
boolean |
getAlias()
public String getAlias()
Optional. Optional name of the property to store the result of the
aggregation.
If not provided, Datastore will pick a default name following the format
property_<incremental_id++>
. For example:
<code><code>
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2),
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*)
OVER (
...
);
</code></code><code>
becomes:
</code><code><code>
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2) AS property_1,
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*) AS property_2
OVER (
...
);
</code></code>
Requires:
- Must be unique across all aggregation aliases.
- Conform to entity property name limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String | The alias. |
getAliasBytes()
public ByteString getAliasBytes()
Optional. Optional name of the property to store the result of the
aggregation.
If not provided, Datastore will pick a default name following the format
property_<incremental_id++>
. For example:
<code><code>
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2),
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*)
OVER (
...
);
</code></code><code>
becomes:
</code><code><code>
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2) AS property_1,
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*) AS property_2
OVER (
...
);
</code></code>
Requires:
- Must be unique across all aggregation aliases.
- Conform to entity property name limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for alias. |
getCount()
public AggregationQuery.Aggregation.Count getCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation.Count | The count. |
getCountOrBuilder()
public AggregationQuery.Aggregation.CountOrBuilder getCountOrBuilder()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation.CountOrBuilder |
getDefaultInstanceForType()
public AggregationQuery.Aggregation getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation |
getOperatorCase()
public AggregationQuery.Aggregation.OperatorCase getOperatorCase()
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation.OperatorCase |
getParserForType()
public Parser<AggregationQuery.Aggregation> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<Aggregation> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns | |
---|---|
Type | Description |
UnknownFieldSet |
hasCount()
public boolean hasCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
Returns | |
---|---|
Type | Description |
boolean | Whether the count field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public AggregationQuery.Aggregation.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AggregationQuery.Aggregation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent | BuilderParent |
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused | UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public AggregationQuery.Aggregation.Builder toBuilder()
Returns | |
---|---|
Type | Description |
AggregationQuery.Aggregation.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output | CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |