public static final class StructuredQuery.Order.Builder extends GeneratedMessage.Builder<StructuredQuery.Order.Builder> implements StructuredQuery.OrderOrBuilderAn order on a field.
Protobuf type google.firestore.v1.StructuredQuery.Order
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StructuredQuery.Order.BuilderImplements
StructuredQuery.OrderOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public StructuredQuery.Order build()| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order |
|
buildPartial()
public StructuredQuery.Order buildPartial()| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order |
|
clear()
public StructuredQuery.Order.Builder clear()| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
|
clearDirection()
public StructuredQuery.Order.Builder clearDirection() The direction to order by. Defaults to ASCENDING.
.google.firestore.v1.StructuredQuery.Direction direction = 2;
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
This builder for chaining. |
clearField()
public StructuredQuery.Order.Builder clearField()The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
|
getDefaultInstanceForType()
public StructuredQuery.Order getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDirection()
public StructuredQuery.Direction getDirection() The direction to order by. Defaults to ASCENDING.
.google.firestore.v1.StructuredQuery.Direction direction = 2;
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Direction |
The direction. |
getDirectionValue()
public int getDirectionValue() The direction to order by. Defaults to ASCENDING.
.google.firestore.v1.StructuredQuery.Direction direction = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for direction. |
getField()
public StructuredQuery.FieldReference getField()The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.FieldReference |
The field. |
getFieldBuilder()
public StructuredQuery.FieldReference.Builder getFieldBuilder()The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.FieldReference.Builder |
|
getFieldOrBuilder()
public StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder()The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.FieldReferenceOrBuilder |
|
hasField()
public boolean hasField()The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the field field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeField(StructuredQuery.FieldReference value)
public StructuredQuery.Order.Builder mergeField(StructuredQuery.FieldReference value)The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StructuredQuery.FieldReference |
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
|
mergeFrom(StructuredQuery.Order other)
public StructuredQuery.Order.Builder mergeFrom(StructuredQuery.Order other)| Parameter | |
|---|---|
| Name | Description |
other |
StructuredQuery.Order |
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StructuredQuery.Order.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StructuredQuery.Order.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
|
setDirection(StructuredQuery.Direction value)
public StructuredQuery.Order.Builder setDirection(StructuredQuery.Direction value) The direction to order by. Defaults to ASCENDING.
.google.firestore.v1.StructuredQuery.Direction direction = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StructuredQuery.DirectionThe direction to set. |
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
This builder for chaining. |
setDirectionValue(int value)
public StructuredQuery.Order.Builder setDirectionValue(int value) The direction to order by. Defaults to ASCENDING.
.google.firestore.v1.StructuredQuery.Direction direction = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for direction to set. |
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
This builder for chaining. |
setField(StructuredQuery.FieldReference value)
public StructuredQuery.Order.Builder setField(StructuredQuery.FieldReference value)The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StructuredQuery.FieldReference |
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
|
setField(StructuredQuery.FieldReference.Builder builderForValue)
public StructuredQuery.Order.Builder setField(StructuredQuery.FieldReference.Builder builderForValue)The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
StructuredQuery.FieldReference.Builder |
| Returns | |
|---|---|
| Type | Description |
StructuredQuery.Order.Builder |
|