Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1IndexField

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1IndexField

Returns a new instance of GoogleFirestoreAdminV1IndexField.



1228
1229
1230
# File 'generated/google/apis/firestore_v1/classes.rb', line 1228

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#array_configString

Indicates that this field supports operations on array_values. Corresponds to the JSON property arrayConfig

Returns:

  • (String)


1214
1215
1216
# File 'generated/google/apis/firestore_v1/classes.rb', line 1214

def array_config
  @array_config
end

#field_pathString

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

Returns:

  • (String)


1220
1221
1222
# File 'generated/google/apis/firestore_v1/classes.rb', line 1220

def field_path
  @field_path
end

#orderString

Indicates that this field supports ordering by the specified order or comparing using =, <, <=, >, >=. Corresponds to the JSON property order

Returns:

  • (String)


1226
1227
1228
# File 'generated/google/apis/firestore_v1/classes.rb', line 1226

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1233
1234
1235
1236
1237
# File 'generated/google/apis/firestore_v1/classes.rb', line 1233

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