Class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexField

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firestore_v1beta2/classes.rb,
generated/google/apis/firestore_v1beta2/representations.rb,
generated/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1beta2IndexField

Returns a new instance of GoogleFirestoreAdminV1beta2IndexField.



517
518
519
# File 'generated/google/apis/firestore_v1beta2/classes.rb', line 517

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)


502
503
504
# File 'generated/google/apis/firestore_v1beta2/classes.rb', line 502

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)


509
510
511
# File 'generated/google/apis/firestore_v1beta2/classes.rb', line 509

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)


515
516
517
# File 'generated/google/apis/firestore_v1beta2/classes.rb', line 515

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



522
523
524
525
526
# File 'generated/google/apis/firestore_v1beta2/classes.rb', line 522

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