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.
2955 2956 2957 2958 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2955 class FieldReference include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#key ⇒ ::String
Returns Key if the field is a map.
2955 2956 2957 2958 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2955 class FieldReference include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns Name of the field, e.g., "vehicles".
2955 2956 2957 2958 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2955 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.
2955 2956 2957 2958 |
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 2955 class FieldReference include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |