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