Class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexField
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexField
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1beta2/classes.rb,
lib/google/apis/firestore_v1beta2/representations.rb,
lib/google/apis/firestore_v1beta2/representations.rb
Overview
A field in an index. The field_path describes which field is indexed, the value_mode describes how the field value is indexed.
Instance Attribute Summary collapse
-
#array_config ⇒ String
Indicates that this field supports operations on
array_value
s. -
#field_path ⇒ String
Can be name.
-
#order ⇒ String
Indicates that this field supports ordering by the specified order or comparing using =, <, <=, >, >=.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFirestoreAdminV1beta2IndexField
constructor
A new instance of GoogleFirestoreAdminV1beta2IndexField.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirestoreAdminV1beta2IndexField
Returns a new instance of GoogleFirestoreAdminV1beta2IndexField.
673 674 675 |
# File 'lib/google/apis/firestore_v1beta2/classes.rb', line 673 def initialize(**args) update!(**args) end |
Instance Attribute Details
#array_config ⇒ String
Indicates that this field supports operations on array_value
s.
Corresponds to the JSON property arrayConfig
659 660 661 |
# File 'lib/google/apis/firestore_v1beta2/classes.rb', line 659 def array_config @array_config end |
#field_path ⇒ String
Can be name. For single field indexes, this must match the name of the
field or may be omitted.
Corresponds to the JSON property fieldPath
665 666 667 |
# File 'lib/google/apis/firestore_v1beta2/classes.rb', line 665 def field_path @field_path end |
#order ⇒ String
Indicates that this field supports ordering by the specified order or
comparing using =, <, <=, >, >=.
Corresponds to the JSON property order
671 672 673 |
# File 'lib/google/apis/firestore_v1beta2/classes.rb', line 671 def order @order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
678 679 680 681 682 |
# File 'lib/google/apis/firestore_v1beta2/classes.rb', line 678 def update!(**args) @array_config = args[:array_config] if args.key?(:array_config) @field_path = args[:field_path] if args.key?(:field_path) @order = args[:order] if args.key?(:order) end |