public static final class AggregationQuery.Aggregation.Sum.Builder extends GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Sum.Builder> implements AggregationQuery.Aggregation.SumOrBuilder
Sum 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 0.
Returns a 64-bit integer if all aggregated numbers are integers and the
sum result does not overflow. Otherwise, the result is returned as a
double. Note that even if all the aggregated values are integers, the
result is returned as a double if it cannot fit within a 64-bit signed
integer. When this occurs, the returned value will lose precision.
When underflow occurs, floating-point aggregation is non-deterministic.
This means that running the same query repeatedly without any changes to
the underlying values could produce slightly different results each
time. In those cases, values should be stored as integers over
floating-point numbers.
Protobuf type google.datastore.v1.AggregationQuery.Aggregation.Sum
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 AggregationQuery.Aggregation.Sum.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AggregationQuery.Aggregation.Sum build()
buildPartial()
public AggregationQuery.Aggregation.Sum buildPartial()
clear()
public AggregationQuery.Aggregation.Sum.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AggregationQuery.Aggregation.Sum.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AggregationQuery.Aggregation.Sum.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProperty()
public AggregationQuery.Aggregation.Sum.Builder clearProperty()
The property to aggregate on.
.google.datastore.v1.PropertyReference property = 1;
clone()
public AggregationQuery.Aggregation.Sum.Builder clone()
Overrides
getDefaultInstanceForType()
public AggregationQuery.Aggregation.Sum getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getProperty()
public PropertyReference getProperty()
The property to aggregate on.
.google.datastore.v1.PropertyReference property = 1;
getPropertyBuilder()
public PropertyReference.Builder getPropertyBuilder()
The property to aggregate on.
.google.datastore.v1.PropertyReference property = 1;
getPropertyOrBuilder()
public PropertyReferenceOrBuilder getPropertyOrBuilder()
The property to aggregate on.
.google.datastore.v1.PropertyReference property = 1;
hasProperty()
public boolean hasProperty()
The property to aggregate on.
.google.datastore.v1.PropertyReference property = 1;
Returns |
---|
Type | Description |
boolean | Whether the property field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AggregationQuery.Aggregation.Sum other)
public AggregationQuery.Aggregation.Sum.Builder mergeFrom(AggregationQuery.Aggregation.Sum other)
public AggregationQuery.Aggregation.Sum.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AggregationQuery.Aggregation.Sum.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeProperty(PropertyReference value)
public AggregationQuery.Aggregation.Sum.Builder mergeProperty(PropertyReference value)
The property to aggregate on.
.google.datastore.v1.PropertyReference property = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AggregationQuery.Aggregation.Sum.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AggregationQuery.Aggregation.Sum.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setProperty(PropertyReference value)
public AggregationQuery.Aggregation.Sum.Builder setProperty(PropertyReference value)
The property to aggregate on.
.google.datastore.v1.PropertyReference property = 1;
setProperty(PropertyReference.Builder builderForValue)
public AggregationQuery.Aggregation.Sum.Builder setProperty(PropertyReference.Builder builderForValue)
The property to aggregate on.
.google.datastore.v1.PropertyReference property = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AggregationQuery.Aggregation.Sum.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AggregationQuery.Aggregation.Sum.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides