class Google::Apis::FirestoreV1beta1::FieldTransform
A transformation of a field of the document.
Attributes
An array value. Corresponds to the JSON property `appendMissingElements` @return [Google::Apis::FirestoreV1beta1::ArrayValue]
The path of the field. See Document.fields
for the field path syntax reference. Corresponds to the JSON property `fieldPath` @return [String]
A message that can hold any of the supported value types. Corresponds to the JSON property `increment` @return [Google::Apis::FirestoreV1beta1::Value]
A message that can hold any of the supported value types. Corresponds to the JSON property `maximum` @return [Google::Apis::FirestoreV1beta1::Value]
A message that can hold any of the supported value types. Corresponds to the JSON property `minimum` @return [Google::Apis::FirestoreV1beta1::Value]
An array value. Corresponds to the JSON property `removeAllFromArray` @return [Google::Apis::FirestoreV1beta1::ArrayValue]
Sets the field to the given server value. Corresponds to the JSON property `setToServerValue` @return [String]
Public Class Methods
# File lib/google/apis/firestore_v1beta1/classes.rb, line 731 def initialize(**args) update!(**args) end
Public Instance Methods
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