Reference documentation and code samples for the Cloud Bigtable V2 API class Google::Cloud::Bigtable::V2::Type::Map.
A mapping of keys to values of a given type.
Values of type Map
are stored in a Value.array_value
where each entry
is another Value.array_value
with two elements (the key and the value,
in that order).
Normally encoded Map values won't have repeated keys, however, clients are
expected to handle the case in which they do. If the same key appears
multiple times, the last value takes precedence.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#key_type
def key_type() -> ::Google::Cloud::Bigtable::V2::Type
-
(::Google::Cloud::Bigtable::V2::Type) — The type of a map key.
Only
Bytes
,String
, andInt64
are allowed as key types.
#key_type=
def key_type=(value) -> ::Google::Cloud::Bigtable::V2::Type
-
value (::Google::Cloud::Bigtable::V2::Type) — The type of a map key.
Only
Bytes
,String
, andInt64
are allowed as key types.
-
(::Google::Cloud::Bigtable::V2::Type) — The type of a map key.
Only
Bytes
,String
, andInt64
are allowed as key types.
#value_type
def value_type() -> ::Google::Cloud::Bigtable::V2::Type
- (::Google::Cloud::Bigtable::V2::Type) — The type of the values in a map.
#value_type=
def value_type=(value) -> ::Google::Cloud::Bigtable::V2::Type
- value (::Google::Cloud::Bigtable::V2::Type) — The type of the values in a map.
- (::Google::Cloud::Bigtable::V2::Type) — The type of the values in a map.