Class FieldReference (1.3.1)

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

Specifies a context for the validation error. A FieldReference always refers to a given field in this file and follows the same hierarchical structure. For example, we may specify element #2 of start_time_windows of vehicle #5 using:


name: "vehicles" index: 5 sub_field { name: "end_time_windows" index: 2 }

We however omit top-level entities such as OptimizeToursRequest or ShipmentModel to avoid crowding the message.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof:


name str
Name of the field, e.g., "vehicles".
index int
Index of the field if repeated. This field is a member of oneof_ index_or_key.
key str
Key if the field is a map. This field is a member of oneof_ index_or_key.
Recursively nested sub-field, if needed.