Class PropertyOrder.Builder (2.17.6)

public static final class PropertyOrder.Builder extends GeneratedMessageV3.Builder<PropertyOrder.Builder> implements PropertyOrderOrBuilder

The desired order for a specific property.

Protobuf type google.datastore.v1.PropertyOrder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PropertyOrder build()
Returns
TypeDescription
PropertyOrder

buildPartial()

public PropertyOrder buildPartial()
Returns
TypeDescription
PropertyOrder

clear()

public PropertyOrder.Builder clear()
Returns
TypeDescription
PropertyOrder.Builder
Overrides

clearDirection()

public PropertyOrder.Builder clearDirection()

The direction to order by. Defaults to ASCENDING.

.google.datastore.v1.PropertyOrder.Direction direction = 2;

Returns
TypeDescription
PropertyOrder.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProperty()

public PropertyOrder.Builder clearProperty()

The property to order by.

.google.datastore.v1.PropertyReference property = 1;

Returns
TypeDescription
PropertyOrder.Builder

clone()

public PropertyOrder.Builder clone()
Returns
TypeDescription
PropertyOrder.Builder
Overrides

getDefaultInstanceForType()

public PropertyOrder getDefaultInstanceForType()
Returns
TypeDescription
PropertyOrder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDirection()

public PropertyOrder.Direction getDirection()

The direction to order by. Defaults to ASCENDING.

.google.datastore.v1.PropertyOrder.Direction direction = 2;

Returns
TypeDescription
PropertyOrder.Direction

The direction.

getDirectionValue()

public int getDirectionValue()

The direction to order by. Defaults to ASCENDING.

.google.datastore.v1.PropertyOrder.Direction direction = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for direction.

getProperty()

public PropertyReference getProperty()

The property to order by.

.google.datastore.v1.PropertyReference property = 1;

Returns
TypeDescription
PropertyReference

The property.

getPropertyBuilder()

public PropertyReference.Builder getPropertyBuilder()

The property to order by.

.google.datastore.v1.PropertyReference property = 1;

Returns
TypeDescription
PropertyReference.Builder

getPropertyOrBuilder()

public PropertyReferenceOrBuilder getPropertyOrBuilder()

The property to order by.

.google.datastore.v1.PropertyReference property = 1;

Returns
TypeDescription
PropertyReferenceOrBuilder

hasProperty()

public boolean hasProperty()

The property to order by.

.google.datastore.v1.PropertyReference property = 1;

Returns
TypeDescription
boolean

Whether the property field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PropertyOrder other)

public PropertyOrder.Builder mergeFrom(PropertyOrder other)
Parameter
NameDescription
otherPropertyOrder
Returns
TypeDescription
PropertyOrder.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProperty(PropertyReference value)

public PropertyOrder.Builder mergeProperty(PropertyReference value)

The property to order by.

.google.datastore.v1.PropertyReference property = 1;

Parameter
NameDescription
valuePropertyReference
Returns
TypeDescription
PropertyOrder.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PropertyOrder.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PropertyOrder.Builder
Overrides

setDirection(PropertyOrder.Direction value)

public PropertyOrder.Builder setDirection(PropertyOrder.Direction value)

The direction to order by. Defaults to ASCENDING.

.google.datastore.v1.PropertyOrder.Direction direction = 2;

Parameter
NameDescription
valuePropertyOrder.Direction

The direction to set.

Returns
TypeDescription
PropertyOrder.Builder

This builder for chaining.

setDirectionValue(int value)

public PropertyOrder.Builder setDirectionValue(int value)

The direction to order by. Defaults to ASCENDING.

.google.datastore.v1.PropertyOrder.Direction direction = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
PropertyOrder.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PropertyOrder.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PropertyOrder.Builder
Overrides

setProperty(PropertyReference value)

public PropertyOrder.Builder setProperty(PropertyReference value)

The property to order by.

.google.datastore.v1.PropertyReference property = 1;

Parameter
NameDescription
valuePropertyReference
Returns
TypeDescription
PropertyOrder.Builder

setProperty(PropertyReference.Builder builderForValue)

public PropertyOrder.Builder setProperty(PropertyReference.Builder builderForValue)

The property to order by.

.google.datastore.v1.PropertyReference property = 1;

Parameter
NameDescription
builderForValuePropertyReference.Builder
Returns
TypeDescription
PropertyOrder.Builder

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

public PropertyOrder.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PropertyOrder.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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