public static final class StructuredQuery.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder> implements StructuredQueryOrBuilder
A Firestore query.Protobuf type
google.firestore.v1.StructuredQuery| Modifier and Type | Method and Description |
|---|---|
StructuredQuery.Builder |
addAllFrom(Iterable<? extends StructuredQuery.CollectionSelector> values)
The collections to query.
|
StructuredQuery.Builder |
addAllOrderBy(Iterable<? extends StructuredQuery.Order> values)
The order to apply to the query results.
|
StructuredQuery.Builder |
addFrom(int index,
StructuredQuery.CollectionSelector.Builder builderForValue)
The collections to query.
|
StructuredQuery.Builder |
addFrom(int index,
StructuredQuery.CollectionSelector value)
The collections to query.
|
StructuredQuery.Builder |
addFrom(StructuredQuery.CollectionSelector.Builder builderForValue)
The collections to query.
|
StructuredQuery.Builder |
addFrom(StructuredQuery.CollectionSelector value)
The collections to query.
|
StructuredQuery.CollectionSelector.Builder |
addFromBuilder()
The collections to query.
|
StructuredQuery.CollectionSelector.Builder |
addFromBuilder(int index)
The collections to query.
|
StructuredQuery.Builder |
addOrderBy(int index,
StructuredQuery.Order.Builder builderForValue)
The order to apply to the query results.
|
StructuredQuery.Builder |
addOrderBy(int index,
StructuredQuery.Order value)
The order to apply to the query results.
|
StructuredQuery.Builder |
addOrderBy(StructuredQuery.Order.Builder builderForValue)
The order to apply to the query results.
|
StructuredQuery.Builder |
addOrderBy(StructuredQuery.Order value)
The order to apply to the query results.
|
StructuredQuery.Order.Builder |
addOrderByBuilder()
The order to apply to the query results.
|
StructuredQuery.Order.Builder |
addOrderByBuilder(int index)
The order to apply to the query results.
|
StructuredQuery.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StructuredQuery |
build() |
StructuredQuery |
buildPartial() |
StructuredQuery.Builder |
clear() |
StructuredQuery.Builder |
clearEndAt()
A end point for the query results.
|
StructuredQuery.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StructuredQuery.Builder |
clearFrom()
The collections to query.
|
StructuredQuery.Builder |
clearLimit()
The maximum number of results to return.
|
StructuredQuery.Builder |
clearOffset()
The number of results to skip.
|
StructuredQuery.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StructuredQuery.Builder |
clearOrderBy()
The order to apply to the query results.
|
StructuredQuery.Builder |
clearSelect()
The projection to return.
|
StructuredQuery.Builder |
clearStartAt()
A starting point for the query results.
|
StructuredQuery.Builder |
clearWhere()
The filter to apply.
|
StructuredQuery.Builder |
clone() |
StructuredQuery |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Cursor |
getEndAt()
A end point for the query results.
|
Cursor.Builder |
getEndAtBuilder()
A end point for the query results.
|
CursorOrBuilder |
getEndAtOrBuilder()
A end point for the query results.
|
StructuredQuery.CollectionSelector |
getFrom(int index)
The collections to query.
|
StructuredQuery.CollectionSelector.Builder |
getFromBuilder(int index)
The collections to query.
|
List<StructuredQuery.CollectionSelector.Builder> |
getFromBuilderList()
The collections to query.
|
int |
getFromCount()
The collections to query.
|
List<StructuredQuery.CollectionSelector> |
getFromList()
The collections to query.
|
StructuredQuery.CollectionSelectorOrBuilder |
getFromOrBuilder(int index)
The collections to query.
|
List<? extends StructuredQuery.CollectionSelectorOrBuilder> |
getFromOrBuilderList()
The collections to query.
|
com.google.protobuf.Int32Value |
getLimit()
The maximum number of results to return.
|
com.google.protobuf.Int32Value.Builder |
getLimitBuilder()
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.
|
StructuredQuery.Order |
getOrderBy(int index)
The order to apply to the query results.
|
StructuredQuery.Order.Builder |
getOrderByBuilder(int index)
The order to apply to the query results.
|
List<StructuredQuery.Order.Builder> |
getOrderByBuilderList()
The order to apply to the query results.
|
int |
getOrderByCount()
The order to apply to the query results.
|
List<StructuredQuery.Order> |
getOrderByList()
The order to apply to the query results.
|
StructuredQuery.OrderOrBuilder |
getOrderByOrBuilder(int index)
The order to apply to the query results.
|
List<? extends StructuredQuery.OrderOrBuilder> |
getOrderByOrBuilderList()
The order to apply to the query results.
|
StructuredQuery.Projection |
getSelect()
The projection to return.
|
StructuredQuery.Projection.Builder |
getSelectBuilder()
The projection to return.
|
StructuredQuery.ProjectionOrBuilder |
getSelectOrBuilder()
The projection to return.
|
Cursor |
getStartAt()
A starting point for the query results.
|
Cursor.Builder |
getStartAtBuilder()
A starting point for the query results.
|
CursorOrBuilder |
getStartAtOrBuilder()
A starting point for the query results.
|
StructuredQuery.Filter |
getWhere()
The filter to apply.
|
StructuredQuery.Filter.Builder |
getWhereBuilder()
The filter to apply.
|
StructuredQuery.FilterOrBuilder |
getWhereOrBuilder()
The filter to apply.
|
boolean |
hasEndAt()
A end point for the query results.
|
boolean |
hasLimit()
The maximum number of results to return.
|
boolean |
hasSelect()
The projection to return.
|
boolean |
hasStartAt()
A starting point for the query results.
|
boolean |
hasWhere()
The filter to apply.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StructuredQuery.Builder |
mergeEndAt(Cursor value)
A end point for the query results.
|
StructuredQuery.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StructuredQuery.Builder |
mergeFrom(com.google.protobuf.Message other) |
StructuredQuery.Builder |
mergeFrom(StructuredQuery other) |
StructuredQuery.Builder |
mergeLimit(com.google.protobuf.Int32Value value)
The maximum number of results to return.
|
StructuredQuery.Builder |
mergeSelect(StructuredQuery.Projection value)
The projection to return.
|
StructuredQuery.Builder |
mergeStartAt(Cursor value)
A starting point for the query results.
|
StructuredQuery.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StructuredQuery.Builder |
mergeWhere(StructuredQuery.Filter value)
The filter to apply.
|
StructuredQuery.Builder |
removeFrom(int index)
The collections to query.
|
StructuredQuery.Builder |
removeOrderBy(int index)
The order to apply to the query results.
|
StructuredQuery.Builder |
setEndAt(Cursor.Builder builderForValue)
A end point for the query results.
|
StructuredQuery.Builder |
setEndAt(Cursor value)
A end point for the query results.
|
StructuredQuery.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StructuredQuery.Builder |
setFrom(int index,
StructuredQuery.CollectionSelector.Builder builderForValue)
The collections to query.
|
StructuredQuery.Builder |
setFrom(int index,
StructuredQuery.CollectionSelector value)
The collections to query.
|
StructuredQuery.Builder |
setLimit(com.google.protobuf.Int32Value.Builder builderForValue)
The maximum number of results to return.
|
StructuredQuery.Builder |
setLimit(com.google.protobuf.Int32Value value)
The maximum number of results to return.
|
StructuredQuery.Builder |
setOffset(int value)
The number of results to skip.
|
StructuredQuery.Builder |
setOrderBy(int index,
StructuredQuery.Order.Builder builderForValue)
The order to apply to the query results.
|
StructuredQuery.Builder |
setOrderBy(int index,
StructuredQuery.Order value)
The order to apply to the query results.
|
StructuredQuery.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StructuredQuery.Builder |
setSelect(StructuredQuery.Projection.Builder builderForValue)
The projection to return.
|
StructuredQuery.Builder |
setSelect(StructuredQuery.Projection value)
The projection to return.
|
StructuredQuery.Builder |
setStartAt(Cursor.Builder builderForValue)
A starting point for the query results.
|
StructuredQuery.Builder |
setStartAt(Cursor value)
A starting point for the query results.
|
StructuredQuery.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StructuredQuery.Builder |
setWhere(StructuredQuery.Filter.Builder builderForValue)
The filter to apply.
|
StructuredQuery.Builder |
setWhere(StructuredQuery.Filter value)
The filter to apply.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StructuredQuery build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StructuredQuery buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StructuredQuery.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StructuredQuery.Builder>public StructuredQuery.Builder mergeFrom(StructuredQuery other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StructuredQuery.Builder>IOExceptionpublic boolean hasSelect()
The projection to return.
.google.firestore.v1.StructuredQuery.Projection select = 1;hasSelect in interface StructuredQueryOrBuilderpublic StructuredQuery.Projection getSelect()
The projection to return.
.google.firestore.v1.StructuredQuery.Projection select = 1;getSelect in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setSelect(StructuredQuery.Projection value)
The projection to return.
.google.firestore.v1.StructuredQuery.Projection select = 1;public StructuredQuery.Builder setSelect(StructuredQuery.Projection.Builder builderForValue)
The projection to return.
.google.firestore.v1.StructuredQuery.Projection select = 1;public StructuredQuery.Builder mergeSelect(StructuredQuery.Projection value)
The projection to return.
.google.firestore.v1.StructuredQuery.Projection select = 1;public StructuredQuery.Builder clearSelect()
The projection to return.
.google.firestore.v1.StructuredQuery.Projection select = 1;public StructuredQuery.Projection.Builder getSelectBuilder()
The projection to return.
.google.firestore.v1.StructuredQuery.Projection select = 1;public StructuredQuery.ProjectionOrBuilder getSelectOrBuilder()
The projection to return.
.google.firestore.v1.StructuredQuery.Projection select = 1;getSelectOrBuilder in interface StructuredQueryOrBuilderpublic List<StructuredQuery.CollectionSelector> getFromList()
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;getFromList in interface StructuredQueryOrBuilderpublic int getFromCount()
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;getFromCount in interface StructuredQueryOrBuilderpublic StructuredQuery.CollectionSelector getFrom(int index)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;getFrom in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setFrom(int index, StructuredQuery.CollectionSelector value)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder setFrom(int index, StructuredQuery.CollectionSelector.Builder builderForValue)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder addFrom(StructuredQuery.CollectionSelector value)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder addFrom(int index, StructuredQuery.CollectionSelector value)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder addFrom(StructuredQuery.CollectionSelector.Builder builderForValue)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder addFrom(int index, StructuredQuery.CollectionSelector.Builder builderForValue)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder addAllFrom(Iterable<? extends StructuredQuery.CollectionSelector> values)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder clearFrom()
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder removeFrom(int index)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.CollectionSelector.Builder getFromBuilder(int index)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.CollectionSelectorOrBuilder getFromOrBuilder(int index)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;getFromOrBuilder in interface StructuredQueryOrBuilderpublic List<? extends StructuredQuery.CollectionSelectorOrBuilder> getFromOrBuilderList()
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;getFromOrBuilderList in interface StructuredQueryOrBuilderpublic StructuredQuery.CollectionSelector.Builder addFromBuilder()
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.CollectionSelector.Builder addFromBuilder(int index)
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public List<StructuredQuery.CollectionSelector.Builder> getFromBuilderList()
The collections to query.
repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;public boolean hasWhere()
The filter to apply.
.google.firestore.v1.StructuredQuery.Filter where = 3;hasWhere in interface StructuredQueryOrBuilderpublic StructuredQuery.Filter getWhere()
The filter to apply.
.google.firestore.v1.StructuredQuery.Filter where = 3;getWhere in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setWhere(StructuredQuery.Filter value)
The filter to apply.
.google.firestore.v1.StructuredQuery.Filter where = 3;public StructuredQuery.Builder setWhere(StructuredQuery.Filter.Builder builderForValue)
The filter to apply.
.google.firestore.v1.StructuredQuery.Filter where = 3;public StructuredQuery.Builder mergeWhere(StructuredQuery.Filter value)
The filter to apply.
.google.firestore.v1.StructuredQuery.Filter where = 3;public StructuredQuery.Builder clearWhere()
The filter to apply.
.google.firestore.v1.StructuredQuery.Filter where = 3;public StructuredQuery.Filter.Builder getWhereBuilder()
The filter to apply.
.google.firestore.v1.StructuredQuery.Filter where = 3;public StructuredQuery.FilterOrBuilder getWhereOrBuilder()
The filter to apply.
.google.firestore.v1.StructuredQuery.Filter where = 3;getWhereOrBuilder in interface StructuredQueryOrBuilderpublic List<StructuredQuery.Order> getOrderByList()
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;getOrderByList in interface StructuredQueryOrBuilderpublic int getOrderByCount()
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;getOrderByCount in interface StructuredQueryOrBuilderpublic StructuredQuery.Order getOrderBy(int index)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;getOrderBy in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setOrderBy(int index, StructuredQuery.Order value)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.Builder setOrderBy(int index, StructuredQuery.Order.Builder builderForValue)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.Builder addOrderBy(StructuredQuery.Order value)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.Builder addOrderBy(int index, StructuredQuery.Order value)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.Builder addOrderBy(StructuredQuery.Order.Builder builderForValue)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.Builder addOrderBy(int index, StructuredQuery.Order.Builder builderForValue)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.Builder addAllOrderBy(Iterable<? extends StructuredQuery.Order> values)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.Builder clearOrderBy()
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.Builder removeOrderBy(int index)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.Order.Builder getOrderByBuilder(int index)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.OrderOrBuilder getOrderByOrBuilder(int index)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;getOrderByOrBuilder in interface StructuredQueryOrBuilderpublic List<? extends StructuredQuery.OrderOrBuilder> getOrderByOrBuilderList()
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;getOrderByOrBuilderList in interface StructuredQueryOrBuilderpublic StructuredQuery.Order.Builder addOrderByBuilder()
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public StructuredQuery.Order.Builder addOrderByBuilder(int index)
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public List<StructuredQuery.Order.Builder> getOrderByBuilderList()
The order to apply to the query results.
Firestore guarantees a stable ordering through the following rules:
* Any field required to appear in `order_by`, that is not already
specified in `order_by`, is appended to the order in field name order
by default.
* If an order on `__name__` is not specified, it is appended by default.
Fields are appended with the same sort direction as the last order
specified, or 'ASCENDING' if no order was specified. For example:
* `SELECT * FROM Foo ORDER BY A` becomes
`SELECT * FROM Foo ORDER BY A, __name__`
* `SELECT * FROM Foo ORDER BY A DESC` becomes
`SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
* `SELECT * FROM Foo WHERE A > 1` becomes
`SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;public boolean hasStartAt()
A starting point for the query results.
.google.firestore.v1.Cursor start_at = 7;hasStartAt in interface StructuredQueryOrBuilderpublic Cursor getStartAt()
A starting point for the query results.
.google.firestore.v1.Cursor start_at = 7;getStartAt in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setStartAt(Cursor value)
A starting point for the query results.
.google.firestore.v1.Cursor start_at = 7;public StructuredQuery.Builder setStartAt(Cursor.Builder builderForValue)
A starting point for the query results.
.google.firestore.v1.Cursor start_at = 7;public StructuredQuery.Builder mergeStartAt(Cursor value)
A starting point for the query results.
.google.firestore.v1.Cursor start_at = 7;public StructuredQuery.Builder clearStartAt()
A starting point for the query results.
.google.firestore.v1.Cursor start_at = 7;public Cursor.Builder getStartAtBuilder()
A starting point for the query results.
.google.firestore.v1.Cursor start_at = 7;public CursorOrBuilder getStartAtOrBuilder()
A starting point for the query results.
.google.firestore.v1.Cursor start_at = 7;getStartAtOrBuilder in interface StructuredQueryOrBuilderpublic boolean hasEndAt()
A end point for the query results.
.google.firestore.v1.Cursor end_at = 8;hasEndAt in interface StructuredQueryOrBuilderpublic Cursor getEndAt()
A end point for the query results.
.google.firestore.v1.Cursor end_at = 8;getEndAt in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setEndAt(Cursor value)
A end point for the query results.
.google.firestore.v1.Cursor end_at = 8;public StructuredQuery.Builder setEndAt(Cursor.Builder builderForValue)
A end point for the query results.
.google.firestore.v1.Cursor end_at = 8;public StructuredQuery.Builder mergeEndAt(Cursor value)
A end point for the query results.
.google.firestore.v1.Cursor end_at = 8;public StructuredQuery.Builder clearEndAt()
A end point for the query results.
.google.firestore.v1.Cursor end_at = 8;public Cursor.Builder getEndAtBuilder()
A end point for the query results.
.google.firestore.v1.Cursor end_at = 8;public CursorOrBuilder getEndAtOrBuilder()
A end point for the query results.
.google.firestore.v1.Cursor end_at = 8;getEndAtOrBuilder in interface StructuredQueryOrBuilderpublic int getOffset()
The number of results to skip. Applies before limit, but after all other constraints. Must be >= 0 if specified.
int32 offset = 6;getOffset in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setOffset(int value)
The number of results to skip. Applies before limit, but after all other constraints. Must be >= 0 if specified.
int32 offset = 6;public StructuredQuery.Builder clearOffset()
The number of results to skip. Applies before limit, but after all other constraints. Must be >= 0 if specified.
int32 offset = 6;public boolean hasLimit()
The maximum number of results to return. Applies after all other constraints. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 5;hasLimit in interface StructuredQueryOrBuilderpublic com.google.protobuf.Int32Value getLimit()
The maximum number of results to return. Applies after all other constraints. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 5;getLimit in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setLimit(com.google.protobuf.Int32Value value)
The maximum number of results to return. Applies after all other constraints. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 5;public StructuredQuery.Builder setLimit(com.google.protobuf.Int32Value.Builder builderForValue)
The maximum number of results to return. Applies after all other constraints. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 5;public StructuredQuery.Builder mergeLimit(com.google.protobuf.Int32Value value)
The maximum number of results to return. Applies after all other constraints. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 5;public StructuredQuery.Builder clearLimit()
The maximum number of results to return. Applies after all other constraints. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 5;public com.google.protobuf.Int32Value.Builder getLimitBuilder()
The maximum number of results to return. Applies after all other constraints. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 5;public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder()
The maximum number of results to return. Applies after all other constraints. Must be >= 0 if specified.
.google.protobuf.Int32Value limit = 5;getLimitOrBuilder in interface StructuredQueryOrBuilderpublic final StructuredQuery.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>public final StructuredQuery.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Builder>Copyright © 2019 Google LLC. All rights reserved.