public static final class AggregationResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder> implements AggregationResultOrBuilder
The result of a single bucket from a Datastore aggregation query. The keys of `aggregate_properties` are the same for all results in an aggregation query, unlike entity queries which can have different fields present for each result.Protobuf type
google.datastore.v1.AggregationResult
Modifier and Type | Method and Description |
---|---|
AggregationResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AggregationResult |
build() |
AggregationResult |
buildPartial() |
AggregationResult.Builder |
clear() |
AggregationResult.Builder |
clearAggregateProperties() |
AggregationResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AggregationResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AggregationResult.Builder |
clone() |
boolean |
containsAggregateProperties(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`.
|
Map<String,Value> |
getAggregateProperties()
Deprecated.
|
int |
getAggregatePropertiesCount()
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`.
|
Map<String,Value> |
getAggregatePropertiesMap()
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`.
|
Value |
getAggregatePropertiesOrDefault(String key,
Value defaultValue)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`.
|
Value |
getAggregatePropertiesOrThrow(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`.
|
AggregationResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,Value> |
getMutableAggregateProperties()
Deprecated.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
AggregationResult.Builder |
mergeFrom(AggregationResult other) |
AggregationResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AggregationResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
AggregationResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AggregationResult.Builder |
putAggregateProperties(String key,
Value value)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`.
|
AggregationResult.Builder |
putAllAggregateProperties(Map<String,Value> values)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`.
|
AggregationResult.Builder |
removeAggregateProperties(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`.
|
AggregationResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AggregationResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AggregationResult.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public AggregationResult.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public AggregationResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public AggregationResult build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public AggregationResult buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public AggregationResult.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public AggregationResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public AggregationResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public AggregationResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public AggregationResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public AggregationResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public AggregationResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<AggregationResult.Builder>
public AggregationResult.Builder mergeFrom(AggregationResult other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public AggregationResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<AggregationResult.Builder>
IOException
public int getAggregatePropertiesCount()
AggregationResultOrBuilder
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. The key is the [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
getAggregatePropertiesCount
in interface AggregationResultOrBuilder
public boolean containsAggregateProperties(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. The key is the [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
containsAggregateProperties
in interface AggregationResultOrBuilder
@Deprecated public Map<String,Value> getAggregateProperties()
getAggregatePropertiesMap()
instead.getAggregateProperties
in interface AggregationResultOrBuilder
public Map<String,Value> getAggregatePropertiesMap()
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. The key is the [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
getAggregatePropertiesMap
in interface AggregationResultOrBuilder
public Value getAggregatePropertiesOrDefault(String key, Value defaultValue)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. The key is the [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
getAggregatePropertiesOrDefault
in interface AggregationResultOrBuilder
public Value getAggregatePropertiesOrThrow(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. The key is the [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
getAggregatePropertiesOrThrow
in interface AggregationResultOrBuilder
public AggregationResult.Builder clearAggregateProperties()
public AggregationResult.Builder removeAggregateProperties(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. The key is the [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
@Deprecated public Map<String,Value> getMutableAggregateProperties()
public AggregationResult.Builder putAggregateProperties(String key, Value value)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. The key is the [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
public AggregationResult.Builder putAllAggregateProperties(Map<String,Value> values)
The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. The key is the [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.datastore.v1.Value> aggregate_properties = 2;
public final AggregationResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public final AggregationResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
Copyright © 2023 Google LLC. All rights reserved.