Class StructuredAggregationQuery.Aggregation.Avg.Builder (3.15.1)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StructuredAggregationQuery.Aggregation.Avg.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
Overrides

build()

public StructuredAggregationQuery.Aggregation.Avg build()
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg

buildPartial()

public StructuredAggregationQuery.Aggregation.Avg buildPartial()
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg

clear()

public StructuredAggregationQuery.Aggregation.Avg.Builder clear()
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
Overrides

clearField()

public StructuredAggregationQuery.Aggregation.Avg.Builder clearField()

The field to aggregate on.

.google.firestore.v1.StructuredQuery.FieldReference field = 1;

Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder

clearField(Descriptors.FieldDescriptor field)

public StructuredAggregationQuery.Aggregation.Avg.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StructuredAggregationQuery.Aggregation.Avg.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
Overrides

clone()

public StructuredAggregationQuery.Aggregation.Avg.Builder clone()
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
Overrides

getDefaultInstanceForType()

public StructuredAggregationQuery.Aggregation.Avg getDefaultInstanceForType()
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getField()

public StructuredQuery.FieldReference getField()

The field to aggregate on.

.google.firestore.v1.StructuredQuery.FieldReference field = 1;

Returns
TypeDescription
StructuredQuery.FieldReference

The field.

getFieldBuilder()

public StructuredQuery.FieldReference.Builder getFieldBuilder()

The field to aggregate on.

.google.firestore.v1.StructuredQuery.FieldReference field = 1;

Returns
TypeDescription
StructuredQuery.FieldReference.Builder

getFieldOrBuilder()

public StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder()

The field to aggregate on.

.google.firestore.v1.StructuredQuery.FieldReference field = 1;

Returns
TypeDescription
StructuredQuery.FieldReferenceOrBuilder

hasField()

public boolean hasField()

The field to aggregate on.

.google.firestore.v1.StructuredQuery.FieldReference field = 1;

Returns
TypeDescription
boolean

Whether the field field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
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;

Parameter
NameDescription
valueStructuredQuery.FieldReference
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder

mergeFrom(StructuredAggregationQuery.Aggregation.Avg other)

public StructuredAggregationQuery.Aggregation.Avg.Builder mergeFrom(StructuredAggregationQuery.Aggregation.Avg other)
Parameter
NameDescription
otherStructuredAggregationQuery.Aggregation.Avg
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StructuredAggregationQuery.Aggregation.Avg.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StructuredAggregationQuery.Aggregation.Avg.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StructuredAggregationQuery.Aggregation.Avg.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
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;

Parameter
NameDescription
valueStructuredQuery.FieldReference
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder

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;

Parameter
NameDescription
builderForValueStructuredQuery.FieldReference.Builder
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StructuredAggregationQuery.Aggregation.Avg.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StructuredAggregationQuery.Aggregation.Avg.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StructuredAggregationQuery.Aggregation.Avg.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StructuredAggregationQuery.Aggregation.Avg.Builder
Overrides