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 directly contain another array value, though can contain an map which contains another array.

Returns:



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

class Value; end

#boolean_valuetrue, false

Returns A boolean value.

Returns:

  • (true, false)

    A boolean value.



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

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.



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

class Value; end

#double_valueFloat

Returns A double value.

Returns:

  • (Float)

    A double value.



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

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.



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

class Value; end

#integer_valueInteger

Returns An integer value.

Returns:

  • (Integer)

    An integer value.



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

class Value; end

#map_valueGoogle::Firestore::V1beta1::MapValue

Returns A map value.

Returns:



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

class Value; end

#null_valueGoogle::Protobuf::NullValue

Returns A null value.

Returns:

  • (Google::Protobuf::NullValue)

    A null value.



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

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}+.



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

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.



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

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.



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

class Value; end