Send feedback
Class StructuredAggregationQuery.Aggregation.Avg.Builder (3.15.3)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.15.3 keyboard_arrow_down
public static final class StructuredAggregationQuery . Aggregation . Avg . Builder extends GeneratedMessageV3 . Builder<StructuredAggregationQuery . Aggregation . Avg . Builder > implements StructuredAggregationQuery . Aggregation . AvgOrBuilder
Average of the values of the requested field.
Only numeric values will be aggregated. All non-numeric values
including NULL
are skipped.
If the aggregated values contain NaN
, returns NaN
. Infinity math
follows IEEE-754 standards.
If the aggregated value set is empty, returns NULL
.
Always returns the result as a double.
Protobuf type google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg
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 ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StructuredAggregationQuery . Aggregation . Avg . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public StructuredAggregationQuery . Aggregation . Avg build ()
buildPartial()
public StructuredAggregationQuery . Aggregation . Avg buildPartial ()
clear()
public StructuredAggregationQuery . Aggregation . Avg . Builder clear ()
Overrides
clearField()
public StructuredAggregationQuery . Aggregation . Avg . Builder clearField ()
The field to aggregate on.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
clearField(Descriptors.FieldDescriptor field)
public StructuredAggregationQuery . Aggregation . Avg . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public StructuredAggregationQuery . Aggregation . Avg . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public StructuredAggregationQuery . Aggregation . Avg . Builder clone ()
Overrides
getDefaultInstanceForType()
public StructuredAggregationQuery . Aggregation . Avg getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getField()
public StructuredQuery . FieldReference getField ()
The field to aggregate on.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
getFieldBuilder()
public StructuredQuery . FieldReference . Builder getFieldBuilder ()
The field to aggregate on.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
getFieldOrBuilder()
public StructuredQuery . FieldReferenceOrBuilder getFieldOrBuilder ()
The field to aggregate on.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
hasField()
public boolean hasField ()
The field to aggregate on.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
Returns Type Description boolean
Whether the field field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeField(StructuredQuery.FieldReference value)
public StructuredAggregationQuery . Aggregation . Avg . Builder mergeField ( StructuredQuery . FieldReference value )
The field to aggregate on.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
mergeFrom(StructuredAggregationQuery.Aggregation.Avg other)
public StructuredAggregationQuery . Aggregation . Avg . Builder mergeFrom ( StructuredAggregationQuery . Aggregation . Avg other )
public StructuredAggregationQuery . Aggregation . Avg . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public StructuredAggregationQuery . Aggregation . Avg . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StructuredAggregationQuery . Aggregation . Avg . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(StructuredQuery.FieldReference value)
public StructuredAggregationQuery . Aggregation . Avg . Builder setField ( StructuredQuery . FieldReference value )
The field to aggregate on.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
setField(StructuredQuery.FieldReference.Builder builderForValue)
public StructuredAggregationQuery . Aggregation . Avg . Builder setField ( StructuredQuery . FieldReference . Builder builderForValue )
The field to aggregate on.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public StructuredAggregationQuery . Aggregation . Avg . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StructuredAggregationQuery . Aggregation . Avg . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StructuredAggregationQuery . Aggregation . Avg . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]