public static final class StructuredQuery.Order.Builder extends GeneratedMessageV3.Builder<StructuredQuery.Order.Builder> implements StructuredQuery.OrderOrBuilder
An order on a field.
Protobuf type google.firestore.v1.StructuredQuery.Order
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StructuredQuery.Order.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StructuredQuery.Order build()
Returns
buildPartial()
public StructuredQuery.Order buildPartial()
Returns
clear()
public StructuredQuery.Order.Builder clear()
Returns
Overrides
clearDirection()
public StructuredQuery.Order.Builder clearDirection()
The direction to order by. Defaults to ASCENDING
.
.google.firestore.v1.StructuredQuery.Direction direction = 2;
Returns
clearField()
public StructuredQuery.Order.Builder clearField()
The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public StructuredQuery.Order.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public StructuredQuery.Order.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public StructuredQuery.Order.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public StructuredQuery.Order getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDirection()
public StructuredQuery.Direction getDirection()
The direction to order by. Defaults to ASCENDING
.
.google.firestore.v1.StructuredQuery.Direction direction = 2;
Returns
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
getFieldBuilder()
public StructuredQuery.FieldReference.Builder getFieldBuilder()
The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
Returns
getFieldOrBuilder()
public StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder()
The field to order by.
.google.firestore.v1.StructuredQuery.FieldReference field = 1;
Returns
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
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
Returns
mergeFrom(StructuredQuery.Order other)
public StructuredQuery.Order.Builder mergeFrom(StructuredQuery.Order other)
Parameter
Returns
public StructuredQuery.Order.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StructuredQuery.Order.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StructuredQuery.Order.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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 | int
The enum numeric value on the wire for direction to set.
|
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public StructuredQuery.Order.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StructuredQuery.Order.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StructuredQuery.Order.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides