Class Function (2.23.0)

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

Represents an unevaluated scalar expression.

For example, the expression like(user_name, "%alice%") is represented as:

::

name: "like" args { field_reference: "user_name" } args { string_value: "%alice%" }

Attributes

Name Description
name str
Required. The name of the function to evaluate. **Requires:** - must be in snake case (lower case with underscore separator).
args MutableSequence[google.cloud.firestore_v1.types.Value]
Optional. Ordered list of arguments the given function expects.
options MutableMapping[str, google.cloud.firestore_v1.types.Value]
Optional. Optional named arguments that certain functions may support.

Classes

OptionsEntry

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

The abstract base class for a message.

Parameters
Name Description
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.