Class: Google::Firestore::V1beta1::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb

Overview

A message that can hold any of the supported value types.

Instance Attribute Summary collapse

Instance Attribute Details

#array_valueGoogle::Firestore::V1beta1::ArrayValue

Returns An array value.

Cannot contain another array value.

Returns:



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end

#boolean_valuetrue, false

Returns A boolean value.

Returns:

  • (true, false)

    A boolean value.



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end

#bytes_valueString

Returns A bytes value.

Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.

Returns:

  • (String)

    A bytes value.

    Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end

#double_valueFloat

Returns A double value.

Returns:

  • (Float)

    A double value.



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end

#geo_point_valueGoogle::Type::LatLng

Returns A geo point value representing a point on the surface of Earth.

Returns:

  • (Google::Type::LatLng)

    A geo point value representing a point on the surface of Earth.



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end

#integer_valueInteger

Returns An integer value.

Returns:

  • (Integer)

    An integer value.



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end

#map_valueGoogle::Firestore::V1beta1::MapValue

Returns A map value.

Returns:



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end

#null_valueGoogle::Protobuf::NullValue

Returns A null value.

Returns:

  • (Google::Protobuf::NullValue)

    A null value.



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end

#reference_valueString

Returns A reference to a document. For example: +projects/project_id/databases/database_id/documents/document_path+.

Returns:

  • (String)

    A reference to a document. For example: +projects/project_id/databases/database_id/documents/document_path+.



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end

#string_valueString

Returns A string value.

The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.

Returns:

  • (String)

    A string value.

    The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end

#timestamp_valueGoogle::Protobuf::Timestamp

Returns A timestamp value.

Precise only to microseconds. When stored, any additional precision is rounded down.

Returns:

  • (Google::Protobuf::Timestamp)

    A timestamp value.

    Precise only to microseconds. When stored, any additional precision is rounded down.



114
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb', line 114

class Value; end