Class: Google::Firestore::V1beta1::DocumentTransform::FieldTransform
- Inherits:
-
Object
- Object
- Google::Firestore::V1beta1::DocumentTransform::FieldTransform
- Defined in:
- lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb
Overview
A transformation of a field of the document.
Defined Under Namespace
Modules: ServerValue
Instance Attribute Summary collapse
-
#field_path ⇒ String
The path of the field.
-
#set_to_server_value ⇒ Google::Firestore::V1beta1::DocumentTransform::FieldTransform::ServerValue
Sets the field to the given server value.
Instance Attribute Details
#field_path ⇒ String
Returns The path of the field. See Document#fields for the field path syntax reference.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb', line 67 class FieldTransform # A value that is calculated by the server. module ServerValue # Unspecified. This value must not be used. SERVER_VALUE_UNSPECIFIED = 0 # The time at which the server processed the request. REQUEST_TIME = 1 end end |
#set_to_server_value ⇒ Google::Firestore::V1beta1::DocumentTransform::FieldTransform::ServerValue
Returns Sets the field to the given server value.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb', line 67 class FieldTransform # A value that is calculated by the server. module ServerValue # Unspecified. This value must not be used. SERVER_VALUE_UNSPECIFIED = 0 # The time at which the server processed the request. REQUEST_TIME = 1 end end |