Class MapValue (2.6.0)

MapValue(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A map value.

Attribute

NameDescription
fields Mapping[str, google.cloud.firestore_v1.types.Value]
The map's fields. The map keys represent field names. Field names matching the regular expression ``__.*__`` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.

Inheritance

builtins.object > proto.message.Message > MapValue

Classes

FieldsEntry

FieldsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, `.Message`]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.