Class: Google::Apis::FirestoreV1beta1::FieldReference

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 reference to a field, such as max(messages.time) as max_time.

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

Returns a new instance of FieldReference.



650
651
652
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 650

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

Instance Attribute Details

#field_pathString

Corresponds to the JSON property fieldPath

Returns:

  • (String)


648
649
650
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 648

def field_path
  @field_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



655
656
657
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 655

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