Class: Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#index::Integer

Returns Index of the field if repeated.

Returns:

  • (::Integer)

    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.

Returns:

  • (::String)

    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".

Returns:

  • (::String)

    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.

Returns:



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