Class: Google::Firestore::V1beta1::DocumentTransform::FieldTransform

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#field_pathString

Returns The path of the field. See Document#fields for the field path syntax reference.

Returns:

  • (String)

    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_valueGoogle::Firestore::V1beta1::DocumentTransform::FieldTransform::ServerValue

Returns Sets the field to the given server value.

Returns:



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