Class: Google::Datastore::V1::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#array_valueGoogle::Datastore::V1::ArrayValue

Returns An array value. Cannot contain another array value. A +Value+ instance that sets field +array_value+ must not set fields +meaning+ or +exclude_from_indexes+.

Returns:

  • (Google::Datastore::V1::ArrayValue)

    An array value. Cannot contain another array value. A +Value+ instance that sets field +array_value+ must not set fields +meaning+ or +exclude_from_indexes+.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#blob_valueString

Returns A blob value. May have at most 1,000,000 bytes. When +exclude_from_indexes+ is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.

Returns:

  • (String)

    A blob value. May have at most 1,000,000 bytes. When +exclude_from_indexes+ is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#boolean_valuetrue, false

Returns A boolean value.

Returns:

  • (true, false)

    A boolean value.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#double_valueFloat

Returns A double value.

Returns:

  • (Float)

    A double value.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#entity_valueGoogle::Datastore::V1::Entity

Returns An entity value.

  • May have no key.
  • May have a key with an incomplete key path.
  • May have a reserved/read-only key.

Returns:

  • (Google::Datastore::V1::Entity)

    An entity value.

    • May have no key.
    • May have a key with an incomplete key path.
    • May have a reserved/read-only key.


161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#exclude_from_indexestrue, false

Returns If the value should be excluded from all indexes including those defined explicitly.

Returns:

  • (true, false)

    If the value should be excluded from all indexes including those defined explicitly.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

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.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#integer_valueInteger

Returns An integer value.

Returns:

  • (Integer)

    An integer value.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#key_valueGoogle::Datastore::V1::Key

Returns A key value.

Returns:



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#meaningInteger

Returns The +meaning+ field should only be populated for backwards compatibility.

Returns:

  • (Integer)

    The +meaning+ field should only be populated for backwards compatibility.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#null_valueGoogle::Protobuf::NullValue

Returns A null value.

Returns:

  • (Google::Protobuf::NullValue)

    A null value.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#string_valueString

Returns A UTF-8 encoded string value. When +exclude_from_indexes+ is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at least 1,000,000 bytes.

Returns:

  • (String)

    A UTF-8 encoded string value. When +exclude_from_indexes+ is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at least 1,000,000 bytes.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end

#timestamp_valueGoogle::Protobuf::Timestamp

Returns A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.

Returns:

  • (Google::Protobuf::Timestamp)

    A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.



161
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 161

class Value; end