Class FieldReference (1.0.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: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
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.
sub_field google.cloud.optimization_v1.types.OptimizeToursValidationError.FieldReference
Recursively nested sub-field, if needed.