Class: Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference
- Inherits:
-
Object
- Object
- Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/optimization/v1/fleet_routing.rb
Overview
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.
Instance Attribute Summary collapse
-
#index ⇒ ::Integer
Index of the field if repeated.
-
#key ⇒ ::String
Key if the field is a map.
-
#name ⇒ ::String
Name of the field, e.g., "vehicles".
-
#sub_field ⇒ ::Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference
Recursively nested sub-field, if needed.
Instance Attribute Details
#index ⇒ ::Integer
Returns Index of the field if repeated.
Note: The following fields are mutually exclusive: index
, key
. If a field in that set is populated, all other fields in the set will automatically be cleared.
2963 2964 2965 2966 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2963 class FieldReference include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#key ⇒ ::String
Returns Key if the field is a map.
Note: The following fields are mutually exclusive: key
, index
. If a field in that set is populated, all other fields in the set will automatically be cleared.
2963 2964 2965 2966 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2963 class FieldReference include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns Name of the field, e.g., "vehicles".
2963 2964 2965 2966 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2963 class FieldReference include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#sub_field ⇒ ::Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference
Returns Recursively nested sub-field, if needed.
2963 2964 2965 2966 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2963 class FieldReference include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |