Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::Value.
A message that can hold any of the supported value types.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#array_value
def array_value() -> ::Google::Cloud::Firestore::V1::ArrayValue
-
(::Google::Cloud::Firestore::V1::ArrayValue) — An array value.
Cannot directly contain another array value, though can contain a map which contains another array.
#array_value=
def array_value=(value) -> ::Google::Cloud::Firestore::V1::ArrayValue
-
value (::Google::Cloud::Firestore::V1::ArrayValue) — An array value.
Cannot directly contain another array value, though can contain a map which contains another array.
-
(::Google::Cloud::Firestore::V1::ArrayValue) — An array value.
Cannot directly contain another array value, though can contain a map which contains another array.
#boolean_value
def boolean_value() -> ::Boolean
- (::Boolean) — A boolean value.
#boolean_value=
def boolean_value=(value) -> ::Boolean
- value (::Boolean) — A boolean value.
- (::Boolean) — A boolean value.
#bytes_value
def bytes_value() -> ::String
-
(::String) — A bytes value.
Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
#bytes_value=
def bytes_value=(value) -> ::String
-
value (::String) — A bytes value.
Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
-
(::String) — A bytes value.
Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
#double_value
def double_value() -> ::Float
- (::Float) — A double value.
#double_value=
def double_value=(value) -> ::Float
- value (::Float) — A double value.
- (::Float) — A double value.
#geo_point_value
def geo_point_value() -> ::Google::Type::LatLng
- (::Google::Type::LatLng) — A geo point value representing a point on the surface of Earth.
#geo_point_value=
def geo_point_value=(value) -> ::Google::Type::LatLng
- value (::Google::Type::LatLng) — A geo point value representing a point on the surface of Earth.
- (::Google::Type::LatLng) — A geo point value representing a point on the surface of Earth.
#integer_value
def integer_value() -> ::Integer
- (::Integer) — An integer value.
#integer_value=
def integer_value=(value) -> ::Integer
- value (::Integer) — An integer value.
- (::Integer) — An integer value.
#map_value
def map_value() -> ::Google::Cloud::Firestore::V1::MapValue
- (::Google::Cloud::Firestore::V1::MapValue) — A map value.
#map_value=
def map_value=(value) -> ::Google::Cloud::Firestore::V1::MapValue
- value (::Google::Cloud::Firestore::V1::MapValue) — A map value.
- (::Google::Cloud::Firestore::V1::MapValue) — A map value.
#null_value
def null_value() -> ::Google::Protobuf::NullValue
- (::Google::Protobuf::NullValue) — A null value.
#null_value=
def null_value=(value) -> ::Google::Protobuf::NullValue
- value (::Google::Protobuf::NullValue) — A null value.
- (::Google::Protobuf::NullValue) — A null value.
#reference_value
def reference_value() -> ::String
-
(::String) — A reference to a document. For example:
projects/{project_id}/databases/{database_id}/documents/{document_path}
.
#reference_value=
def reference_value=(value) -> ::String
-
value (::String) — A reference to a document. For example:
projects/{project_id}/databases/{database_id}/documents/{document_path}
.
-
(::String) — A reference to a document. For example:
projects/{project_id}/databases/{database_id}/documents/{document_path}
.
#string_value
def string_value() -> ::String
-
(::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.
#string_value=
def string_value=(value) -> ::String
-
value (::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.
-
(::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.
#timestamp_value
def timestamp_value() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — A timestamp value.
Precise only to microseconds. When stored, any additional precision is rounded down.
#timestamp_value=
def timestamp_value=(value) -> ::Google::Protobuf::Timestamp
-
value (::Google::Protobuf::Timestamp) — A timestamp value.
Precise only to microseconds. When stored, any additional precision is rounded down.
-
(::Google::Protobuf::Timestamp) — A timestamp value.
Precise only to microseconds. When stored, any additional precision is rounded down.