Class AggregationQuery.Aggregation.Avg.Builder (2.18.5)

public static final class AggregationQuery.Aggregation.Avg.Builder extends GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Avg.Builder> implements AggregationQuery.Aggregation.AvgOrBuilder

Average of the values of the requested property.

  • 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.datastore.v1.AggregationQuery.Aggregation.Avg

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProperty()

public AggregationQuery.Aggregation.Avg.Builder clearProperty()

The property to aggregate on.

.google.datastore.v1.PropertyReference property = 1;

Returns
TypeDescription
AggregationQuery.Aggregation.Avg.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProperty()

public PropertyReference getProperty()

The property to aggregate on.

.google.datastore.v1.PropertyReference property = 1;

Returns
TypeDescription
PropertyReference

The property.

getPropertyBuilder()

public PropertyReference.Builder getPropertyBuilder()

The property to aggregate on.

.google.datastore.v1.PropertyReference property = 1;

Returns
TypeDescription
PropertyReference.Builder

getPropertyOrBuilder()

public PropertyReferenceOrBuilder getPropertyOrBuilder()

The property to aggregate on.

.google.datastore.v1.PropertyReference property = 1;

Returns
TypeDescription
PropertyReferenceOrBuilder

hasProperty()

public boolean hasProperty()

The property to aggregate on.

.google.datastore.v1.PropertyReference property = 1;

Returns
TypeDescription
boolean

Whether the property field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AggregationQuery.Aggregation.Avg other)

public AggregationQuery.Aggregation.Avg.Builder mergeFrom(AggregationQuery.Aggregation.Avg other)
Parameter
NameDescription
otherAggregationQuery.Aggregation.Avg
Returns
TypeDescription
AggregationQuery.Aggregation.Avg.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProperty(PropertyReference value)

public AggregationQuery.Aggregation.Avg.Builder mergeProperty(PropertyReference value)

The property to aggregate on.

.google.datastore.v1.PropertyReference property = 1;

Parameter
NameDescription
valuePropertyReference
Returns
TypeDescription
AggregationQuery.Aggregation.Avg.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProperty(PropertyReference value)

public AggregationQuery.Aggregation.Avg.Builder setProperty(PropertyReference value)

The property to aggregate on.

.google.datastore.v1.PropertyReference property = 1;

Parameter
NameDescription
valuePropertyReference
Returns
TypeDescription
AggregationQuery.Aggregation.Avg.Builder

setProperty(PropertyReference.Builder builderForValue)

public AggregationQuery.Aggregation.Avg.Builder setProperty(PropertyReference.Builder builderForValue)

The property to aggregate on.

.google.datastore.v1.PropertyReference property = 1;

Parameter
NameDescription
builderForValuePropertyReference.Builder
Returns
TypeDescription
AggregationQuery.Aggregation.Avg.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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