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

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

Overview

A field of an index.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1beta1IndexField

Returns a new instance of GoogleFirestoreAdminV1beta1IndexField.



1461
1462
1463
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1461

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

Instance Attribute Details

#field_path ⇒ String

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)


1454
1455
1456
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1454

def field_path
  @field_path
end

#mode ⇒ String

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

Returns:

  • (String)


1459
1460
1461
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1459

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1466
1467
1468
1469
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1466

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