Class CustomAttribute (0.13.5)

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

A custom attribute that is not explicitly modeled in a resource, e.g. UserEvent.

Attributes

Name Description
text MutableSequence[str]
The textual values of this custom attribute. For example, ["yellow", "green"] when the key is "color". Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of CustomAttribute.text or CustomAttribute.numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.
numbers MutableSequence[float]
The numerical values of this custom attribute. For example, [2.3, 15.4] when the key is "lengths_cm". Exactly one of CustomAttribute.text or CustomAttribute.numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.