Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#index
def index() -> ::Integer
- (::Integer) — Index of the field if repeated.
#index=
def index=(value) -> ::Integer
- value (::Integer) — Index of the field if repeated.
- (::Integer) — Index of the field if repeated.
#key
def key() -> ::String
- (::String) — Key if the field is a map.
#key=
def key=(value) -> ::String
- value (::String) — Key if the field is a map.
- (::String) — Key if the field is a map.
#name
def name() -> ::String
- (::String) — Name of the field, e.g., "vehicles".
#name=
def name=(value) -> ::String
- value (::String) — Name of the field, e.g., "vehicles".
- (::String) — Name of the field, e.g., "vehicles".
#sub_field
def sub_field() -> ::Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference
- (::Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference) — Recursively nested sub-field, if needed.
#sub_field=
def sub_field=(value) -> ::Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference
- value (::Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference) — Recursively nested sub-field, if needed.
- (::Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference) — Recursively nested sub-field, if needed.