Class StructuredQuery.Order.Builder (3.22.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StructuredQuery.Order.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StructuredQuery.Order.Builder
Overrides

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
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public StructuredQuery.Order.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StructuredQuery.Order.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StructuredQuery.Order.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StructuredQuery.Order.Builder
Overrides

clone()

public StructuredQuery.Order.Builder clone()
Returns
Type Description
StructuredQuery.Order.Builder
Overrides

getDefaultInstanceForType()

public StructuredQuery.Order getDefaultInstanceForType()
Returns
Type Description
StructuredQuery.Order

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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
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
Overrides
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
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StructuredQuery.Order.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StructuredQuery.Order.Builder
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
Name Description
value StructuredQuery.Direction

The 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 int

The 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

setField(Descriptors.FieldDescriptor field, Object value)

public StructuredQuery.Order.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StructuredQuery.Order.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StructuredQuery.Order.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StructuredQuery.Order.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StructuredQuery.Order.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StructuredQuery.Order.Builder
Overrides