Package com.google.datastore.v1
Interface QueryOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Query
,Query.Builder
public interface QueryOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetDistinctOn
(int index) The properties to make distinct.int
The properties to make distinct.The properties to make distinct.getDistinctOnOrBuilder
(int index) The properties to make distinct.List<? extends PropertyReferenceOrBuilder>
The properties to make distinct.com.google.protobuf.ByteString
An ending point for the query results.The filter to apply.The filter to apply.getKind
(int index) The kinds to query (if empty, returns entities of all kinds).int
The kinds to query (if empty, returns entities of all kinds).The kinds to query (if empty, returns entities of all kinds).getKindOrBuilder
(int index) The kinds to query (if empty, returns entities of all kinds).List<? extends KindExpressionOrBuilder>
The kinds to query (if empty, returns entities of all kinds).com.google.protobuf.Int32Value
getLimit()
The maximum number of results to return.com.google.protobuf.Int32ValueOrBuilder
The maximum number of results to return.int
The number of results to skip.getOrder
(int index) The order to apply to the query results (if empty, order is unspecified).int
The order to apply to the query results (if empty, order is unspecified).The order to apply to the query results (if empty, order is unspecified).getOrderOrBuilder
(int index) The order to apply to the query results (if empty, order is unspecified).List<? extends PropertyOrderOrBuilder>
The order to apply to the query results (if empty, order is unspecified).getProjection
(int index) The projection to return.int
The projection to return.The projection to return.getProjectionOrBuilder
(int index) The projection to return.List<? extends ProjectionOrBuilder>
The projection to return.com.google.protobuf.ByteString
A starting point for the query results.boolean
The filter to apply.boolean
hasLimit()
The maximum number of results to return.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getProjectionList
List<Projection> getProjectionList()The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
getProjection
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
getProjectionCount
int getProjectionCount()The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
getProjectionOrBuilderList
List<? extends ProjectionOrBuilder> getProjectionOrBuilderList()The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
getProjectionOrBuilder
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
-
getKindList
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;
-
getKind
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;
-
getKindCount
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;
-
getKindOrBuilderList
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;
-
getKindOrBuilder
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
boolean hasFilter()The filter to apply.
.google.datastore.v1.Filter filter = 4;
- Returns:
- Whether the filter field is set.
-
getFilter
Filter getFilter()The filter to apply.
.google.datastore.v1.Filter filter = 4;
- Returns:
- The filter.
-
getFilterOrBuilder
FilterOrBuilder getFilterOrBuilder()The filter to apply.
.google.datastore.v1.Filter filter = 4;
-
getOrderList
List<PropertyOrder> getOrderList()The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
getOrder
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
getOrderCount
int getOrderCount()The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
getOrderOrBuilderList
List<? extends PropertyOrderOrBuilder> getOrderOrBuilderList()The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
getOrderOrBuilder
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
-
getDistinctOnList
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;
-
getDistinctOn
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;
-
getDistinctOnCount
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;
-
getDistinctOnOrBuilderList
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;
-
getDistinctOnOrBuilder
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
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;
- Returns:
- The startCursor.
-
getEndCursor
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;
- Returns:
- The endCursor.
-
getOffset
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;
- Returns:
- The offset.
-
hasLimit
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;
- Returns:
- Whether the limit field is set.
-
getLimit
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;
- Returns:
- The limit.
-
getLimitOrBuilder
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;
-