Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1IndexField
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::GoogleFirestoreAdminV1IndexField
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firestore_v1/classes.rb,
generated/google/apis/firestore_v1/representations.rb,
generated/google/apis/firestore_v1/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) ⇒ GoogleFirestoreAdminV1IndexField
constructor
A new instance of GoogleFirestoreAdminV1IndexField.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleFirestoreAdminV1IndexField
Returns a new instance of GoogleFirestoreAdminV1IndexField
1204 1205 1206 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 1204 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
1189 1190 1191 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 1189 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
1196 1197 1198 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 1196 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
1202 1203 1204 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 1202 def order @order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1209 1210 1211 1212 1213 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 1209 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 |