public static final class StructuredQuery.Builder extends GeneratedMessageV3.Builder<StructuredQuery.Builder> implements StructuredQueryOrBuilder
A Firestore query.Protobuf type
google.firestore.v1beta1.StructuredQuerygetAllFields, 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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic StructuredQuery build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic StructuredQuery buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic StructuredQuery.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<StructuredQuery.Builder>public StructuredQuery.Builder mergeFrom(StructuredQuery other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public StructuredQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<StructuredQuery.Builder>java.io.IOExceptionpublic boolean hasSelect()
The projection to return.
.google.firestore.v1beta1.StructuredQuery.Projection select = 1;hasSelect in interface StructuredQueryOrBuilderpublic StructuredQuery.Projection getSelect()
The projection to return.
.google.firestore.v1beta1.StructuredQuery.Projection select = 1;getSelect in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setSelect(StructuredQuery.Projection value)
The projection to return.
.google.firestore.v1beta1.StructuredQuery.Projection select = 1;public StructuredQuery.Builder setSelect(StructuredQuery.Projection.Builder builderForValue)
The projection to return.
.google.firestore.v1beta1.StructuredQuery.Projection select = 1;public StructuredQuery.Builder mergeSelect(StructuredQuery.Projection value)
The projection to return.
.google.firestore.v1beta1.StructuredQuery.Projection select = 1;public StructuredQuery.Builder clearSelect()
The projection to return.
.google.firestore.v1beta1.StructuredQuery.Projection select = 1;public StructuredQuery.Projection.Builder getSelectBuilder()
The projection to return.
.google.firestore.v1beta1.StructuredQuery.Projection select = 1;public StructuredQuery.ProjectionOrBuilder getSelectOrBuilder()
The projection to return.
.google.firestore.v1beta1.StructuredQuery.Projection select = 1;getSelectOrBuilder in interface StructuredQueryOrBuilderpublic java.util.List<StructuredQuery.CollectionSelector> getFromList()
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;getFromList in interface StructuredQueryOrBuilderpublic int getFromCount()
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;getFromCount in interface StructuredQueryOrBuilderpublic StructuredQuery.CollectionSelector getFrom(int index)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;getFrom in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setFrom(int index, StructuredQuery.CollectionSelector value)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder setFrom(int index, StructuredQuery.CollectionSelector.Builder builderForValue)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder addFrom(StructuredQuery.CollectionSelector value)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder addFrom(int index, StructuredQuery.CollectionSelector value)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder addFrom(StructuredQuery.CollectionSelector.Builder builderForValue)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder addFrom(int index, StructuredQuery.CollectionSelector.Builder builderForValue)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder addAllFrom(java.lang.Iterable<? extends StructuredQuery.CollectionSelector> values)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder clearFrom()
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.Builder removeFrom(int index)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.CollectionSelector.Builder getFromBuilder(int index)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.CollectionSelectorOrBuilder getFromOrBuilder(int index)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;getFromOrBuilder in interface StructuredQueryOrBuilderpublic java.util.List<? extends StructuredQuery.CollectionSelectorOrBuilder> getFromOrBuilderList()
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;getFromOrBuilderList in interface StructuredQueryOrBuilderpublic StructuredQuery.CollectionSelector.Builder addFromBuilder()
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public StructuredQuery.CollectionSelector.Builder addFromBuilder(int index)
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public java.util.List<StructuredQuery.CollectionSelector.Builder> getFromBuilderList()
The collections to query.
repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;public boolean hasWhere()
The filter to apply.
.google.firestore.v1beta1.StructuredQuery.Filter where = 3;hasWhere in interface StructuredQueryOrBuilderpublic StructuredQuery.Filter getWhere()
The filter to apply.
.google.firestore.v1beta1.StructuredQuery.Filter where = 3;getWhere in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setWhere(StructuredQuery.Filter value)
The filter to apply.
.google.firestore.v1beta1.StructuredQuery.Filter where = 3;public StructuredQuery.Builder setWhere(StructuredQuery.Filter.Builder builderForValue)
The filter to apply.
.google.firestore.v1beta1.StructuredQuery.Filter where = 3;public StructuredQuery.Builder mergeWhere(StructuredQuery.Filter value)
The filter to apply.
.google.firestore.v1beta1.StructuredQuery.Filter where = 3;public StructuredQuery.Builder clearWhere()
The filter to apply.
.google.firestore.v1beta1.StructuredQuery.Filter where = 3;public StructuredQuery.Filter.Builder getWhereBuilder()
The filter to apply.
.google.firestore.v1beta1.StructuredQuery.Filter where = 3;public StructuredQuery.FilterOrBuilder getWhereOrBuilder()
The filter to apply.
.google.firestore.v1beta1.StructuredQuery.Filter where = 3;getWhereOrBuilder in interface StructuredQueryOrBuilderpublic java.util.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.StructuredQuery.Order order_by = 4;public StructuredQuery.Builder addAllOrderBy(java.lang.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.StructuredQuery.Order order_by = 4;getOrderByOrBuilder in interface StructuredQueryOrBuilderpublic java.util.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.v1beta1.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.v1beta1.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.v1beta1.StructuredQuery.Order order_by = 4;public java.util.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.v1beta1.StructuredQuery.Order order_by = 4;public boolean hasStartAt()
A starting point for the query results.
.google.firestore.v1beta1.Cursor start_at = 7;hasStartAt in interface StructuredQueryOrBuilderpublic Cursor getStartAt()
A starting point for the query results.
.google.firestore.v1beta1.Cursor start_at = 7;getStartAt in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setStartAt(Cursor value)
A starting point for the query results.
.google.firestore.v1beta1.Cursor start_at = 7;public StructuredQuery.Builder setStartAt(Cursor.Builder builderForValue)
A starting point for the query results.
.google.firestore.v1beta1.Cursor start_at = 7;public StructuredQuery.Builder mergeStartAt(Cursor value)
A starting point for the query results.
.google.firestore.v1beta1.Cursor start_at = 7;public StructuredQuery.Builder clearStartAt()
A starting point for the query results.
.google.firestore.v1beta1.Cursor start_at = 7;public Cursor.Builder getStartAtBuilder()
A starting point for the query results.
.google.firestore.v1beta1.Cursor start_at = 7;public CursorOrBuilder getStartAtOrBuilder()
A starting point for the query results.
.google.firestore.v1beta1.Cursor start_at = 7;getStartAtOrBuilder in interface StructuredQueryOrBuilderpublic boolean hasEndAt()
A end point for the query results.
.google.firestore.v1beta1.Cursor end_at = 8;hasEndAt in interface StructuredQueryOrBuilderpublic Cursor getEndAt()
A end point for the query results.
.google.firestore.v1beta1.Cursor end_at = 8;getEndAt in interface StructuredQueryOrBuilderpublic StructuredQuery.Builder setEndAt(Cursor value)
A end point for the query results.
.google.firestore.v1beta1.Cursor end_at = 8;public StructuredQuery.Builder setEndAt(Cursor.Builder builderForValue)
A end point for the query results.
.google.firestore.v1beta1.Cursor end_at = 8;public StructuredQuery.Builder mergeEndAt(Cursor value)
A end point for the query results.
.google.firestore.v1beta1.Cursor end_at = 8;public StructuredQuery.Builder clearEndAt()
A end point for the query results.
.google.firestore.v1beta1.Cursor end_at = 8;public Cursor.Builder getEndAtBuilder()
A end point for the query results.
.google.firestore.v1beta1.Cursor end_at = 8;public CursorOrBuilder getEndAtOrBuilder()
A end point for the query results.
.google.firestore.v1beta1.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 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(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(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(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 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 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(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<StructuredQuery.Builder>public final StructuredQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<StructuredQuery.Builder>