Class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1IndexField

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firestore_v1beta1/classes.rb,
generated/google/apis/firestore_v1beta1/representations.rb,
generated/google/apis/firestore_v1beta1/representations.rb

Overview

A field of an index.

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) ⇒ GoogleFirestoreAdminV1beta1IndexField

Returns a new instance of GoogleFirestoreAdminV1beta1IndexField.



998
999
1000
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 998

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

Instance Attribute Details

#field_pathString

The path of the field. Must match the field path specification described by google.firestore.v1beta1.Document.fields. Special field path __name__ may be used by itself or at the end of a path. __type__ may be used only at the end of path. Corresponds to the JSON property fieldPath

Returns:

  • (String)


991
992
993
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 991

def field_path
  @field_path
end

#modeString

The field's mode. Corresponds to the JSON property mode

Returns:

  • (String)


996
997
998
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 996

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1003
1004
1005
1006
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1003

def update!(**args)
  @field_path = args[:field_path] if args.key?(:field_path)
  @mode = args[:mode] if args.key?(:mode)
end