Package com.google.datastore.v1
Class Query.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
- com.google.datastore.v1.Query.Builder
-
- All Implemented Interfaces:
QueryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Query
public static final class Query.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Query.Builder> implements QueryOrBuilder
A query for entities.
Protobuf typegoogle.datastore.v1.Query
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Query.BuilderaddAllDistinctOn(Iterable<? extends PropertyReference> values)The properties to make distinct.Query.BuilderaddAllKind(Iterable<? extends KindExpression> values)The kinds to query (if empty, returns entities of all kinds).Query.BuilderaddAllOrder(Iterable<? extends PropertyOrder> values)The order to apply to the query results (if empty, order is unspecified).Query.BuilderaddAllProjection(Iterable<? extends Projection> values)The projection to return.Query.BuilderaddDistinctOn(int index, PropertyReference value)The properties to make distinct.Query.BuilderaddDistinctOn(int index, PropertyReference.Builder builderForValue)The properties to make distinct.Query.BuilderaddDistinctOn(PropertyReference value)The properties to make distinct.Query.BuilderaddDistinctOn(PropertyReference.Builder builderForValue)The properties to make distinct.PropertyReference.BuilderaddDistinctOnBuilder()The properties to make distinct.PropertyReference.BuilderaddDistinctOnBuilder(int index)The properties to make distinct.Query.BuilderaddKind(int index, KindExpression value)The kinds to query (if empty, returns entities of all kinds).Query.BuilderaddKind(int index, KindExpression.Builder builderForValue)The kinds to query (if empty, returns entities of all kinds).Query.BuilderaddKind(KindExpression value)The kinds to query (if empty, returns entities of all kinds).Query.BuilderaddKind(KindExpression.Builder builderForValue)The kinds to query (if empty, returns entities of all kinds).KindExpression.BuilderaddKindBuilder()The kinds to query (if empty, returns entities of all kinds).KindExpression.BuilderaddKindBuilder(int index)The kinds to query (if empty, returns entities of all kinds).Query.BuilderaddOrder(int index, PropertyOrder value)The order to apply to the query results (if empty, order is unspecified).Query.BuilderaddOrder(int index, PropertyOrder.Builder builderForValue)The order to apply to the query results (if empty, order is unspecified).Query.BuilderaddOrder(PropertyOrder value)The order to apply to the query results (if empty, order is unspecified).Query.BuilderaddOrder(PropertyOrder.Builder builderForValue)The order to apply to the query results (if empty, order is unspecified).PropertyOrder.BuilderaddOrderBuilder()The order to apply to the query results (if empty, order is unspecified).PropertyOrder.BuilderaddOrderBuilder(int index)The order to apply to the query results (if empty, order is unspecified).Query.BuilderaddProjection(int index, Projection value)The projection to return.Query.BuilderaddProjection(int index, Projection.Builder builderForValue)The projection to return.Query.BuilderaddProjection(Projection value)The projection to return.Query.BuilderaddProjection(Projection.Builder builderForValue)The projection to return.Projection.BuilderaddProjectionBuilder()The projection to return.Projection.BuilderaddProjectionBuilder(int index)The projection to return.Query.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Querybuild()QuerybuildPartial()Query.Builderclear()Query.BuilderclearDistinctOn()The properties to make distinct.Query.BuilderclearEndCursor()An ending point for the query results.Query.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Query.BuilderclearFilter()The filter to apply.Query.BuilderclearKind()The kinds to query (if empty, returns entities of all kinds).Query.BuilderclearLimit()The maximum number of results to return.Query.BuilderclearOffset()The number of results to skip.Query.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Query.BuilderclearOrder()The order to apply to the query results (if empty, order is unspecified).Query.BuilderclearProjection()The projection to return.Query.BuilderclearStartCursor()A starting point for the query results.Query.Builderclone()QuerygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PropertyReferencegetDistinctOn(int index)The properties to make distinct.PropertyReference.BuildergetDistinctOnBuilder(int index)The properties to make distinct.List<PropertyReference.Builder>getDistinctOnBuilderList()The properties to make distinct.intgetDistinctOnCount()The properties to make distinct.List<PropertyReference>getDistinctOnList()The properties to make distinct.PropertyReferenceOrBuildergetDistinctOnOrBuilder(int index)The properties to make distinct.List<? extends PropertyReferenceOrBuilder>getDistinctOnOrBuilderList()The properties to make distinct.com.google.protobuf.ByteStringgetEndCursor()An ending point for the query results.FiltergetFilter()The filter to apply.Filter.BuildergetFilterBuilder()The filter to apply.FilterOrBuildergetFilterOrBuilder()The filter to apply.KindExpressiongetKind(int index)The kinds to query (if empty, returns entities of all kinds).KindExpression.BuildergetKindBuilder(int index)The kinds to query (if empty, returns entities of all kinds).List<KindExpression.Builder>getKindBuilderList()The kinds to query (if empty, returns entities of all kinds).intgetKindCount()The kinds to query (if empty, returns entities of all kinds).List<KindExpression>getKindList()The kinds to query (if empty, returns entities of all kinds).KindExpressionOrBuildergetKindOrBuilder(int index)The kinds to query (if empty, returns entities of all kinds).List<? extends KindExpressionOrBuilder>getKindOrBuilderList()The kinds to query (if empty, returns entities of all kinds).com.google.protobuf.Int32ValuegetLimit()The maximum number of results to return.com.google.protobuf.Int32Value.BuildergetLimitBuilder()The maximum number of results to return.com.google.protobuf.Int32ValueOrBuildergetLimitOrBuilder()The maximum number of results to return.intgetOffset()The number of results to skip.PropertyOrdergetOrder(int index)The order to apply to the query results (if empty, order is unspecified).PropertyOrder.BuildergetOrderBuilder(int index)The order to apply to the query results (if empty, order is unspecified).List<PropertyOrder.Builder>getOrderBuilderList()The order to apply to the query results (if empty, order is unspecified).intgetOrderCount()The order to apply to the query results (if empty, order is unspecified).List<PropertyOrder>getOrderList()The order to apply to the query results (if empty, order is unspecified).PropertyOrderOrBuildergetOrderOrBuilder(int index)The order to apply to the query results (if empty, order is unspecified).List<? extends PropertyOrderOrBuilder>getOrderOrBuilderList()The order to apply to the query results (if empty, order is unspecified).ProjectiongetProjection(int index)The projection to return.Projection.BuildergetProjectionBuilder(int index)The projection to return.List<Projection.Builder>getProjectionBuilderList()The projection to return.intgetProjectionCount()The projection to return.List<Projection>getProjectionList()The projection to return.ProjectionOrBuildergetProjectionOrBuilder(int index)The projection to return.List<? extends ProjectionOrBuilder>getProjectionOrBuilderList()The projection to return.com.google.protobuf.ByteStringgetStartCursor()A starting point for the query results.booleanhasFilter()The filter to apply.booleanhasLimit()The maximum number of results to return.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Query.BuildermergeFilter(Filter value)The filter to apply.Query.BuildermergeFrom(Query other)Query.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Query.BuildermergeFrom(com.google.protobuf.Message other)Query.BuildermergeLimit(com.google.protobuf.Int32Value value)The maximum number of results to return.Query.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Query.BuilderremoveDistinctOn(int index)The properties to make distinct.Query.BuilderremoveKind(int index)The kinds to query (if empty, returns entities of all kinds).Query.BuilderremoveOrder(int index)The order to apply to the query results (if empty, order is unspecified).Query.BuilderremoveProjection(int index)The projection to return.Query.BuildersetDistinctOn(int index, PropertyReference value)The properties to make distinct.Query.BuildersetDistinctOn(int index, PropertyReference.Builder builderForValue)The properties to make distinct.Query.BuildersetEndCursor(com.google.protobuf.ByteString value)An ending point for the query results.Query.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Query.BuildersetFilter(Filter value)The filter to apply.Query.BuildersetFilter(Filter.Builder builderForValue)The filter to apply.Query.BuildersetKind(int index, KindExpression value)The kinds to query (if empty, returns entities of all kinds).Query.BuildersetKind(int index, KindExpression.Builder builderForValue)The kinds to query (if empty, returns entities of all kinds).Query.BuildersetLimit(com.google.protobuf.Int32Value value)The maximum number of results to return.Query.BuildersetLimit(com.google.protobuf.Int32Value.Builder builderForValue)The maximum number of results to return.Query.BuildersetOffset(int value)The number of results to skip.Query.BuildersetOrder(int index, PropertyOrder value)The order to apply to the query results (if empty, order is unspecified).Query.BuildersetOrder(int index, PropertyOrder.Builder builderForValue)The order to apply to the query results (if empty, order is unspecified).Query.BuildersetProjection(int index, Projection value)The projection to return.Query.BuildersetProjection(int index, Projection.Builder builderForValue)The projection to return.Query.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Query.BuildersetStartCursor(com.google.protobuf.ByteString value)A starting point for the query results.Query.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
clear
public Query.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
getDefaultInstanceForType
public Query getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Query build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Query buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Query.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
setField
public Query.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
clearField
public Query.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
clearOneof
public Query.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
setRepeatedField
public Query.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
addRepeatedField
public Query.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
mergeFrom
public Query.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Query.Builder>
-
mergeFrom
public Query.Builder mergeFrom(Query other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
mergeFrom
public Query.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Query.Builder>- Throws:
IOException
-
getProjectionList
public List<Projection> getProjectionList()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;- Specified by:
getProjectionListin interfaceQueryOrBuilder
-
getProjectionCount
public int getProjectionCount()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;- Specified by:
getProjectionCountin interfaceQueryOrBuilder
-
getProjection
public Projection getProjection(int index)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;- Specified by:
getProjectionin interfaceQueryOrBuilder
-
setProjection
public Query.Builder setProjection(int index, Projection value)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
setProjection
public Query.Builder setProjection(int index, Projection.Builder builderForValue)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
addProjection
public Query.Builder addProjection(Projection value)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
addProjection
public Query.Builder addProjection(int index, Projection value)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
addProjection
public Query.Builder addProjection(Projection.Builder builderForValue)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
addProjection
public Query.Builder addProjection(int index, Projection.Builder builderForValue)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
addAllProjection
public Query.Builder addAllProjection(Iterable<? extends Projection> values)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
clearProjection
public Query.Builder clearProjection()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
removeProjection
public Query.Builder removeProjection(int index)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
getProjectionBuilder
public Projection.Builder getProjectionBuilder(int index)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
getProjectionOrBuilder
public ProjectionOrBuilder getProjectionOrBuilder(int index)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;- Specified by:
getProjectionOrBuilderin interfaceQueryOrBuilder
-
getProjectionOrBuilderList
public List<? extends ProjectionOrBuilder> getProjectionOrBuilderList()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;- Specified by:
getProjectionOrBuilderListin interfaceQueryOrBuilder
-
addProjectionBuilder
public Projection.Builder addProjectionBuilder()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
addProjectionBuilder
public Projection.Builder addProjectionBuilder(int index)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
getProjectionBuilderList
public List<Projection.Builder> getProjectionBuilderList()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
getKindList
public List<KindExpression> getKindList()
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;- Specified by:
getKindListin interfaceQueryOrBuilder
-
getKindCount
public int getKindCount()
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;- Specified by:
getKindCountin interfaceQueryOrBuilder
-
getKind
public KindExpression getKind(int index)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;- Specified by:
getKindin interfaceQueryOrBuilder
-
setKind
public Query.Builder setKind(int index, KindExpression value)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
setKind
public Query.Builder setKind(int index, KindExpression.Builder builderForValue)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
addKind
public Query.Builder addKind(KindExpression value)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
addKind
public Query.Builder addKind(int index, KindExpression value)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
addKind
public Query.Builder addKind(KindExpression.Builder builderForValue)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
addKind
public Query.Builder addKind(int index, KindExpression.Builder builderForValue)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
addAllKind
public Query.Builder addAllKind(Iterable<? extends KindExpression> values)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
clearKind
public Query.Builder clearKind()
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
removeKind
public Query.Builder removeKind(int index)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
getKindBuilder
public KindExpression.Builder getKindBuilder(int index)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
getKindOrBuilder
public KindExpressionOrBuilder getKindOrBuilder(int index)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;- Specified by:
getKindOrBuilderin interfaceQueryOrBuilder
-
getKindOrBuilderList
public List<? extends KindExpressionOrBuilder> getKindOrBuilderList()
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;- Specified by:
getKindOrBuilderListin interfaceQueryOrBuilder
-
addKindBuilder
public KindExpression.Builder addKindBuilder()
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
addKindBuilder
public KindExpression.Builder addKindBuilder(int index)
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
getKindBuilderList
public List<KindExpression.Builder> getKindBuilderList()
The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
repeated .google.datastore.v1.KindExpression kind = 3;
-
hasFilter
public boolean hasFilter()
The filter to apply.
.google.datastore.v1.Filter filter = 4;- Specified by:
hasFilterin interfaceQueryOrBuilder- Returns:
- Whether the filter field is set.
-
getFilter
public Filter getFilter()
The filter to apply.
.google.datastore.v1.Filter filter = 4;- Specified by:
getFilterin interfaceQueryOrBuilder- Returns:
- The filter.
-
setFilter
public Query.Builder setFilter(Filter value)
The filter to apply.
.google.datastore.v1.Filter filter = 4;
-
setFilter
public Query.Builder setFilter(Filter.Builder builderForValue)
The filter to apply.
.google.datastore.v1.Filter filter = 4;
-
mergeFilter
public Query.Builder mergeFilter(Filter value)
The filter to apply.
.google.datastore.v1.Filter filter = 4;
-
clearFilter
public Query.Builder clearFilter()
The filter to apply.
.google.datastore.v1.Filter filter = 4;
-
getFilterBuilder
public Filter.Builder getFilterBuilder()
The filter to apply.
.google.datastore.v1.Filter filter = 4;
-
getFilterOrBuilder
public FilterOrBuilder getFilterOrBuilder()
The filter to apply.
.google.datastore.v1.Filter filter = 4;- Specified by:
getFilterOrBuilderin interfaceQueryOrBuilder
-
getOrderList
public List<PropertyOrder> getOrderList()
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;- Specified by:
getOrderListin interfaceQueryOrBuilder
-
getOrderCount
public int getOrderCount()
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;- Specified by:
getOrderCountin interfaceQueryOrBuilder
-
getOrder
public PropertyOrder getOrder(int index)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;- Specified by:
getOrderin interfaceQueryOrBuilder
-
setOrder
public Query.Builder setOrder(int index, PropertyOrder value)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
setOrder
public Query.Builder setOrder(int index, PropertyOrder.Builder builderForValue)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
addOrder
public Query.Builder addOrder(PropertyOrder value)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
addOrder
public Query.Builder addOrder(int index, PropertyOrder value)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
addOrder
public Query.Builder addOrder(PropertyOrder.Builder builderForValue)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
addOrder
public Query.Builder addOrder(int index, PropertyOrder.Builder builderForValue)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
addAllOrder
public Query.Builder addAllOrder(Iterable<? extends PropertyOrder> values)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
clearOrder
public Query.Builder clearOrder()
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
removeOrder
public Query.Builder removeOrder(int index)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
getOrderBuilder
public PropertyOrder.Builder getOrderBuilder(int index)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
getOrderOrBuilder
public PropertyOrderOrBuilder getOrderOrBuilder(int index)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;- Specified by:
getOrderOrBuilderin interfaceQueryOrBuilder
-
getOrderOrBuilderList
public List<? extends PropertyOrderOrBuilder> getOrderOrBuilderList()
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;- Specified by:
getOrderOrBuilderListin interfaceQueryOrBuilder
-
addOrderBuilder
public PropertyOrder.Builder addOrderBuilder()
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
addOrderBuilder
public PropertyOrder.Builder addOrderBuilder(int index)
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
getOrderBuilderList
public List<PropertyOrder.Builder> getOrderBuilderList()
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
getDistinctOnList
public List<PropertyReference> getDistinctOnList()
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;- Specified by:
getDistinctOnListin interfaceQueryOrBuilder
-
getDistinctOnCount
public int getDistinctOnCount()
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;- Specified by:
getDistinctOnCountin interfaceQueryOrBuilder
-
getDistinctOn
public PropertyReference getDistinctOn(int index)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;- Specified by:
getDistinctOnin interfaceQueryOrBuilder
-
setDistinctOn
public Query.Builder setDistinctOn(int index, PropertyReference value)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
setDistinctOn
public Query.Builder setDistinctOn(int index, PropertyReference.Builder builderForValue)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
addDistinctOn
public Query.Builder addDistinctOn(PropertyReference value)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
addDistinctOn
public Query.Builder addDistinctOn(int index, PropertyReference value)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
addDistinctOn
public Query.Builder addDistinctOn(PropertyReference.Builder builderForValue)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
addDistinctOn
public Query.Builder addDistinctOn(int index, PropertyReference.Builder builderForValue)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
addAllDistinctOn
public Query.Builder addAllDistinctOn(Iterable<? extends PropertyReference> values)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
clearDistinctOn
public Query.Builder clearDistinctOn()
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
removeDistinctOn
public Query.Builder removeDistinctOn(int index)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
getDistinctOnBuilder
public PropertyReference.Builder getDistinctOnBuilder(int index)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
getDistinctOnOrBuilder
public PropertyReferenceOrBuilder getDistinctOnOrBuilder(int index)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;- Specified by:
getDistinctOnOrBuilderin interfaceQueryOrBuilder
-
getDistinctOnOrBuilderList
public List<? extends PropertyReferenceOrBuilder> getDistinctOnOrBuilderList()
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;- Specified by:
getDistinctOnOrBuilderListin interfaceQueryOrBuilder
-
addDistinctOnBuilder
public PropertyReference.Builder addDistinctOnBuilder()
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
addDistinctOnBuilder
public PropertyReference.Builder addDistinctOnBuilder(int index)
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
getDistinctOnBuilderList
public List<PropertyReference.Builder> getDistinctOnBuilderList()
The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
-
getStartCursor
public com.google.protobuf.ByteString getStartCursor()
A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
bytes start_cursor = 7;- Specified by:
getStartCursorin interfaceQueryOrBuilder- Returns:
- The startCursor.
-
setStartCursor
public Query.Builder setStartCursor(com.google.protobuf.ByteString value)
A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
bytes start_cursor = 7;- Parameters:
value- The startCursor to set.- Returns:
- This builder for chaining.
-
clearStartCursor
public Query.Builder clearStartCursor()
A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
bytes start_cursor = 7;- Returns:
- This builder for chaining.
-
getEndCursor
public com.google.protobuf.ByteString getEndCursor()
An ending point for the query results. Query cursors are returned in query result batches and [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
bytes end_cursor = 8;- Specified by:
getEndCursorin interfaceQueryOrBuilder- Returns:
- The endCursor.
-
setEndCursor
public Query.Builder setEndCursor(com.google.protobuf.ByteString value)
An ending point for the query results. Query cursors are returned in query result batches and [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
bytes end_cursor = 8;- Parameters:
value- The endCursor to set.- Returns:
- This builder for chaining.
-
clearEndCursor
public Query.Builder clearEndCursor()
An ending point for the query results. Query cursors are returned in query result batches and [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
bytes end_cursor = 8;- Returns:
- This builder for chaining.
-
getOffset
public int getOffset()
The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be >= 0 if specified.
int32 offset = 10;- Specified by:
getOffsetin interfaceQueryOrBuilder- Returns:
- The offset.
-
setOffset
public Query.Builder setOffset(int value)
The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be >= 0 if specified.
int32 offset = 10;- Parameters:
value- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
public Query.Builder clearOffset()
The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be >= 0 if specified.
int32 offset = 10;- Returns:
- This builder for chaining.
-
hasLimit
public boolean hasLimit()
The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 12;- Specified by:
hasLimitin interfaceQueryOrBuilder- Returns:
- Whether the limit field is set.
-
getLimit
public com.google.protobuf.Int32Value getLimit()
The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 12;- Specified by:
getLimitin interfaceQueryOrBuilder- Returns:
- The limit.
-
setLimit
public Query.Builder setLimit(com.google.protobuf.Int32Value value)
The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 12;
-
setLimit
public Query.Builder setLimit(com.google.protobuf.Int32Value.Builder builderForValue)
The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 12;
-
mergeLimit
public Query.Builder mergeLimit(com.google.protobuf.Int32Value value)
The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 12;
-
clearLimit
public Query.Builder clearLimit()
The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 12;
-
getLimitBuilder
public com.google.protobuf.Int32Value.Builder getLimitBuilder()
The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 12;
-
getLimitOrBuilder
public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder()
The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 12;- Specified by:
getLimitOrBuilderin interfaceQueryOrBuilder
-
setUnknownFields
public final Query.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
mergeUnknownFields
public final Query.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
-