public final class Query extends com.google.protobuf.GeneratedMessageV3 implements QueryOrBuilder
A query for entities.Protobuf type
google.datastore.v1.Query
Modifier and Type | Class and Description |
---|---|
static class |
Query.Builder
A query for entities.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
DISTINCT_ON_FIELD_NUMBER |
static int |
END_CURSOR_FIELD_NUMBER |
static int |
FILTER_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
LIMIT_FIELD_NUMBER |
static int |
OFFSET_FIELD_NUMBER |
static int |
ORDER_FIELD_NUMBER |
static int |
PROJECTION_FIELD_NUMBER |
static int |
START_CURSOR_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Query |
getDefaultInstance() |
Query |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
PropertyReference |
getDistinctOn(int index)
The properties to make distinct.
|
int |
getDistinctOnCount()
The properties to make distinct.
|
List<PropertyReference> |
getDistinctOnList()
The properties to make distinct.
|
PropertyReferenceOrBuilder |
getDistinctOnOrBuilder(int index)
The properties to make distinct.
|
List<? extends PropertyReferenceOrBuilder> |
getDistinctOnOrBuilderList()
The properties to make distinct.
|
com.google.protobuf.ByteString |
getEndCursor()
An ending point for the query results.
|
Filter |
getFilter()
The filter to apply.
|
FilterOrBuilder |
getFilterOrBuilder()
The filter to apply.
|
KindExpression |
getKind(int index)
The kinds to query (if empty, returns entities of all kinds).
|
int |
getKindCount()
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).
|
KindExpressionOrBuilder |
getKindOrBuilder(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.Int32Value |
getLimit()
The maximum number of results to return.
|
com.google.protobuf.Int32ValueOrBuilder |
getLimitOrBuilder()
The maximum number of results to return.
|
int |
getOffset()
The number of results to skip.
|
PropertyOrder |
getOrder(int index)
The order to apply to the query results (if empty, order is unspecified).
|
int |
getOrderCount()
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).
|
PropertyOrderOrBuilder |
getOrderOrBuilder(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).
|
com.google.protobuf.Parser<Query> |
getParserForType() |
Projection |
getProjection(int index)
The projection to return.
|
int |
getProjectionCount()
The projection to return.
|
List<Projection> |
getProjectionList()
The projection to return.
|
ProjectionOrBuilder |
getProjectionOrBuilder(int index)
The projection to return.
|
List<? extends ProjectionOrBuilder> |
getProjectionOrBuilderList()
The projection to return.
|
int |
getSerializedSize() |
com.google.protobuf.ByteString |
getStartCursor()
A starting point for the query results.
|
boolean |
hasFilter()
The filter to apply.
|
int |
hashCode() |
boolean |
hasLimit()
The maximum number of results to return.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Query.Builder |
newBuilder() |
static Query.Builder |
newBuilder(Query prototype) |
Query.Builder |
newBuilderForType() |
protected Query.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Query |
parseDelimitedFrom(InputStream input) |
static Query |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Query |
parseFrom(byte[] data) |
static Query |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Query |
parseFrom(ByteBuffer data) |
static Query |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Query |
parseFrom(com.google.protobuf.ByteString data) |
static Query |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Query |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Query |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Query |
parseFrom(InputStream input) |
static Query |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Query> |
parser() |
Query.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int PROJECTION_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
public static final int ORDER_FIELD_NUMBER
public static final int DISTINCT_ON_FIELD_NUMBER
public static final int START_CURSOR_FIELD_NUMBER
public static final int END_CURSOR_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER
public static final int LIMIT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public List<Projection> getProjectionList()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
getProjectionList
in interface QueryOrBuilder
public List<? extends ProjectionOrBuilder> getProjectionOrBuilderList()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
getProjectionOrBuilderList
in interface QueryOrBuilder
public int getProjectionCount()
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
getProjectionCount
in interface QueryOrBuilder
public Projection getProjection(int index)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
getProjection
in interface QueryOrBuilder
public ProjectionOrBuilder getProjectionOrBuilder(int index)
The projection to return. Defaults to returning all properties.
repeated .google.datastore.v1.Projection projection = 2;
getProjectionOrBuilder
in interface QueryOrBuilder
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;
getKindList
in interface QueryOrBuilder
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;
getKindOrBuilderList
in interface QueryOrBuilder
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;
getKindCount
in interface QueryOrBuilder
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;
getKind
in interface QueryOrBuilder
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;
getKindOrBuilder
in interface QueryOrBuilder
public boolean hasFilter()
The filter to apply.
.google.datastore.v1.Filter filter = 4;
hasFilter
in interface QueryOrBuilder
public Filter getFilter()
The filter to apply.
.google.datastore.v1.Filter filter = 4;
getFilter
in interface QueryOrBuilder
public FilterOrBuilder getFilterOrBuilder()
The filter to apply.
.google.datastore.v1.Filter filter = 4;
getFilterOrBuilder
in interface QueryOrBuilder
public List<PropertyOrder> getOrderList()
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
getOrderList
in interface QueryOrBuilder
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;
getOrderOrBuilderList
in interface QueryOrBuilder
public int getOrderCount()
The order to apply to the query results (if empty, order is unspecified).
repeated .google.datastore.v1.PropertyOrder order = 5;
getOrderCount
in interface QueryOrBuilder
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;
getOrder
in interface QueryOrBuilder
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;
getOrderOrBuilder
in interface QueryOrBuilder
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;
getDistinctOnList
in interface QueryOrBuilder
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;
getDistinctOnOrBuilderList
in interface QueryOrBuilder
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;
getDistinctOnCount
in interface QueryOrBuilder
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;
getDistinctOn
in interface QueryOrBuilder
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;
getDistinctOnOrBuilder
in interface QueryOrBuilder
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;
getStartCursor
in interface QueryOrBuilder
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;
getEndCursor
in interface QueryOrBuilder
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;
getOffset
in interface QueryOrBuilder
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;
hasLimit
in interface QueryOrBuilder
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;
getLimit
in interface QueryOrBuilder
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;
getLimitOrBuilder
in interface QueryOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Query parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Query parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Query parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Query parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Query parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Query parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Query parseFrom(InputStream input) throws IOException
IOException
public static Query parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Query parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Query parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Query parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Query parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Query.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Query.Builder newBuilder()
public static Query.Builder newBuilder(Query prototype)
public Query.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Query.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Query getDefaultInstance()
public static com.google.protobuf.Parser<Query> parser()
public com.google.protobuf.Parser<Query> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Query getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.