public static final class AggregationQuery.Aggregation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder> implements AggregationQuery.AggregationOrBuilder
Defines an aggregation that produces a single result.Protobuf type
google.datastore.v1.AggregationQuery.Aggregation
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
public AggregationQuery.Aggregation.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<AggregationQuery.Aggregation.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<AggregationQuery.Aggregation.Builder>
public AggregationQuery.Aggregation getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public AggregationQuery.Aggregation build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public AggregationQuery.Aggregation buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public AggregationQuery.Aggregation.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<AggregationQuery.Aggregation.Builder>
public AggregationQuery.Aggregation.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<AggregationQuery.Aggregation.Builder>
public AggregationQuery.Aggregation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
public AggregationQuery.Aggregation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
public AggregationQuery.Aggregation.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<AggregationQuery.Aggregation.Builder>
public AggregationQuery.Aggregation.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<AggregationQuery.Aggregation.Builder>
public AggregationQuery.Aggregation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<AggregationQuery.Aggregation.Builder>
public AggregationQuery.Aggregation.Builder mergeFrom(AggregationQuery.Aggregation other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
public AggregationQuery.Aggregation.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<AggregationQuery.Aggregation.Builder>
IOException
public AggregationQuery.Aggregation.OperatorCase getOperatorCase()
getOperatorCase
in interface AggregationQuery.AggregationOrBuilder
public AggregationQuery.Aggregation.Builder clearOperator()
public boolean hasCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
hasCount
in interface AggregationQuery.AggregationOrBuilder
public AggregationQuery.Aggregation.Count getCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
getCount
in interface AggregationQuery.AggregationOrBuilder
public AggregationQuery.Aggregation.Builder setCount(AggregationQuery.Aggregation.Count value)
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
public AggregationQuery.Aggregation.Builder setCount(AggregationQuery.Aggregation.Count.Builder builderForValue)
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
public AggregationQuery.Aggregation.Builder mergeCount(AggregationQuery.Aggregation.Count value)
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
public AggregationQuery.Aggregation.Builder clearCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
public AggregationQuery.Aggregation.Count.Builder getCountBuilder()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
public AggregationQuery.Aggregation.CountOrBuilder getCountOrBuilder()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
getCountOrBuilder
in interface AggregationQuery.AggregationOrBuilder
public String getAlias()
Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_<incremental_id++>`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
getAlias
in interface AggregationQuery.AggregationOrBuilder
public com.google.protobuf.ByteString getAliasBytes()
Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_<incremental_id++>`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
getAliasBytes
in interface AggregationQuery.AggregationOrBuilder
public AggregationQuery.Aggregation.Builder setAlias(String value)
Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_<incremental_id++>`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
value
- The alias to set.public AggregationQuery.Aggregation.Builder clearAlias()
Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_<incremental_id++>`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
public AggregationQuery.Aggregation.Builder setAliasBytes(com.google.protobuf.ByteString value)
Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_<incremental_id++>`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to [entity property name][google.datastore.v1.Entity.properties] limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for alias to set.public final AggregationQuery.Aggregation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
public final AggregationQuery.Aggregation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
Copyright © 2023 Google LLC. All rights reserved.