Class: Google::Datastore::V1::PropertyOrder

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb

Overview

The desired order for a specific property.

Defined Under Namespace

Modules: Direction

Instance Attribute Summary collapse

Instance Attribute Details

#directionGoogle::Datastore::V1::PropertyOrder::Direction

Returns The direction to order by. Defaults to +ASCENDING+.

Returns:



125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb', line 125

class PropertyOrder
  # The sort direction.
  module Direction
    # Unspecified. This value must not be used.
    DIRECTION_UNSPECIFIED = 0

    # Ascending.
    ASCENDING = 1

    # Descending.
    DESCENDING = 2
  end
end

#propertyGoogle::Datastore::V1::PropertyReference

Returns The property to order by.

Returns:



125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb', line 125

class PropertyOrder
  # The sort direction.
  module Direction
    # Unspecified. This value must not be used.
    DIRECTION_UNSPECIFIED = 0

    # Ascending.
    ASCENDING = 1

    # Descending.
    DESCENDING = 2
  end
end