public final class Query extends GeneratedMessageV3 implements QueryOrBuilder
A query for entities.
Protobuf type google.datastore.v1.Query
Static Fields
DISTINCT_ON_FIELD_NUMBER
public static final int DISTINCT_ON_FIELD_NUMBER
Field Value
END_CURSOR_FIELD_NUMBER
public static final int END_CURSOR_FIELD_NUMBER
Field Value
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
Field Value
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
Field Value
LIMIT_FIELD_NUMBER
public static final int LIMIT_FIELD_NUMBER
Field Value
OFFSET_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER
Field Value
ORDER_FIELD_NUMBER
public static final int ORDER_FIELD_NUMBER
Field Value
PROJECTION_FIELD_NUMBER
public static final int PROJECTION_FIELD_NUMBER
Field Value
START_CURSOR_FIELD_NUMBER
public static final int START_CURSOR_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Query getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Query.Builder newBuilder()
Returns
newBuilder(Query prototype)
public static Query.Builder newBuilder(Query prototype)
Parameter
Name | Description |
prototype | Query
|
Returns
public static Query parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Query parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Query parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Query parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Query parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Query parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Query parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Query parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Query parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Query parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Query parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Query parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Query> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Query getDefaultInstanceForType()
Returns
getDistinctOn(int index)
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).
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
Parameter
Returns
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).
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
Returns
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).
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
Returns
getDistinctOnOrBuilder(int index)
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).
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
Parameter
Returns
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).
repeated .google.datastore.v1.PropertyReference distinct_on = 6;
Returns
Type | Description |
List<? extends com.google.datastore.v1.PropertyReferenceOrBuilder> | |
getEndCursor()
public ByteString getEndCursor()
Returns
getFilter()
public Filter getFilter()
The filter to apply.
.google.datastore.v1.Filter filter = 4;
Returns
Type | Description |
Filter | The filter.
|
getFilterOrBuilder()
public FilterOrBuilder getFilterOrBuilder()
The filter to apply.
.google.datastore.v1.Filter filter = 4;
Returns
getKind(int index)
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;
Parameter
Returns
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;
Returns
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;
Returns
getKindOrBuilder(int index)
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;
Parameter
Returns
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;
Returns
Type | Description |
List<? extends com.google.datastore.v1.KindExpressionOrBuilder> | |
getLimit()
public 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
getLimitOrBuilder()
public 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;
Returns
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
Type | Description |
int | The offset.
|
getOrder(int index)
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;
Parameter
Returns
getOrderCount()
public int getOrderCount()
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
Returns
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;
Returns
getOrderOrBuilder(int index)
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;
Parameter
Returns
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;
Returns
Type | Description |
List<? extends com.google.datastore.v1.PropertyOrderOrBuilder> | |
getParserForType()
public Parser<Query> getParserForType()
Returns
Overrides
getProjection(int index)
public Projection getProjection(int index)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
Parameter
Returns
getProjectionCount()
public int getProjectionCount()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
Returns
getProjectionList()
public List<Projection> getProjectionList()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
Returns
getProjectionOrBuilder(int index)
public ProjectionOrBuilder getProjectionOrBuilder(int index)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
Parameter
Returns
getProjectionOrBuilderList()
public List<? extends ProjectionOrBuilder> getProjectionOrBuilderList()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
Returns
Type | Description |
List<? extends com.google.datastore.v1.ProjectionOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getStartCursor()
public ByteString getStartCursor()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasFilter()
public boolean hasFilter()
The filter to apply.
.google.datastore.v1.Filter filter = 4;
Returns
Type | Description |
boolean | Whether the filter field is set.
|
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;
Returns
Type | Description |
boolean | Whether the limit field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Query.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Query.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Query.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions