Class StructuredQuery.Order.Builder (3.4.2)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StructuredQuery.Order.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StructuredQuery.Order.Builder
Overrides

build()

public StructuredQuery.Order build()
Returns
TypeDescription
StructuredQuery.Order

buildPartial()

public StructuredQuery.Order buildPartial()
Returns
TypeDescription
StructuredQuery.Order

clear()

public StructuredQuery.Order.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StructuredQuery.Order.Builder

clearField(Descriptors.FieldDescriptor field)

public StructuredQuery.Order.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StructuredQuery.Order.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StructuredQuery.Order.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StructuredQuery.Order.Builder
Overrides

clone()

public StructuredQuery.Order.Builder clone()
Returns
TypeDescription
StructuredQuery.Order.Builder
Overrides

getDefaultInstanceForType()

public StructuredQuery.Order getDefaultInstanceForType()
Returns
TypeDescription
StructuredQuery.Order

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDirection()

public StructuredQuery.Direction getDirection()

The direction to order by. Defaults to ASCENDING.

.google.firestore.v1.StructuredQuery.Direction direction = 2;

Returns
TypeDescription
StructuredQuery.Direction

The direction.

getDirectionValue()

public int getDirectionValue()

The direction to order by. Defaults to ASCENDING.

.google.firestore.v1.StructuredQuery.Direction direction = 2;

Returns
TypeDescription
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
TypeDescription
StructuredQuery.FieldReference

The field.

getFieldBuilder()

public StructuredQuery.FieldReference.Builder getFieldBuilder()

The field to order by.

.google.firestore.v1.StructuredQuery.FieldReference field = 1;

Returns
TypeDescription
StructuredQuery.FieldReference.Builder

getFieldOrBuilder()

public StructuredQuery.FieldReferenceOrBuilder getFieldOrBuilder()

The field to order by.

.google.firestore.v1.StructuredQuery.FieldReference field = 1;

Returns
TypeDescription
StructuredQuery.FieldReferenceOrBuilder

hasField()

public boolean hasField()

The field to order by.

.google.firestore.v1.StructuredQuery.FieldReference field = 1;

Returns
TypeDescription
boolean

Whether the field field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueStructuredQuery.FieldReference
Returns
TypeDescription
StructuredQuery.Order.Builder

mergeFrom(StructuredQuery.Order other)

public StructuredQuery.Order.Builder mergeFrom(StructuredQuery.Order other)
Parameter
NameDescription
otherStructuredQuery.Order
Returns
TypeDescription
StructuredQuery.Order.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StructuredQuery.Order.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StructuredQuery.Order.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StructuredQuery.Order.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StructuredQuery.Order.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StructuredQuery.Order.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueStructuredQuery.Direction

The direction to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for direction to set.

Returns
TypeDescription
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
NameDescription
valueStructuredQuery.FieldReference
Returns
TypeDescription
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
NameDescription
builderForValueStructuredQuery.FieldReference.Builder
Returns
TypeDescription
StructuredQuery.Order.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StructuredQuery.Order.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StructuredQuery.Order.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StructuredQuery.Order.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StructuredQuery.Order.Builder
Overrides