class Google::Apis::FirestoreV1beta1::FieldTransform

A transformation of a field of the document.

Attributes

append_missing_elements[RW]

An array value. Corresponds to the JSON property `appendMissingElements` @return [Google::Apis::FirestoreV1beta1::ArrayValue]

field_path[RW]

The path of the field. See Document.fields for the field path syntax reference. Corresponds to the JSON property `fieldPath` @return [String]

increment[RW]

A message that can hold any of the supported value types. Corresponds to the JSON property `increment` @return [Google::Apis::FirestoreV1beta1::Value]

maximum[RW]

A message that can hold any of the supported value types. Corresponds to the JSON property `maximum` @return [Google::Apis::FirestoreV1beta1::Value]

minimum[RW]

A message that can hold any of the supported value types. Corresponds to the JSON property `minimum` @return [Google::Apis::FirestoreV1beta1::Value]

remove_all_from_array[RW]

An array value. Corresponds to the JSON property `removeAllFromArray` @return [Google::Apis::FirestoreV1beta1::ArrayValue]

set_to_server_value[RW]

Sets the field to the given server value. Corresponds to the JSON property `setToServerValue` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firestore_v1beta1/classes.rb, line 731
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firestore_v1beta1/classes.rb, line 736
def update!(**args)
  @append_missing_elements = args[:append_missing_elements] if args.key?(:append_missing_elements)
  @field_path = args[:field_path] if args.key?(:field_path)
  @increment = args[:increment] if args.key?(:increment)
  @maximum = args[:maximum] if args.key?(:maximum)
  @minimum = args[:minimum] if args.key?(:minimum)
  @remove_all_from_array = args[:remove_all_from_array] if args.key?(:remove_all_from_array)
  @set_to_server_value = args[:set_to_server_value] if args.key?(:set_to_server_value)
end