Cloud Optimization V1 API - Class Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference (v0.2.1)

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
Returns
  • (::Integer) — Index of the field if repeated.

#index=

def index=(value) -> ::Integer
Parameter
  • value (::Integer) — Index of the field if repeated.
Returns
  • (::Integer) — Index of the field if repeated.

#key

def key() -> ::String
Returns
  • (::String) — Key if the field is a map.

#key=

def key=(value) -> ::String
Parameter
  • value (::String) — Key if the field is a map.
Returns
  • (::String) — Key if the field is a map.

#name

def name() -> ::String
Returns
  • (::String) — Name of the field, e.g., "vehicles".

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Name of the field, e.g., "vehicles".
Returns
  • (::String) — Name of the field, e.g., "vehicles".

#sub_field

def sub_field() -> ::Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference
Returns

#sub_field=

def sub_field=(value) -> ::Google::Cloud::Optimization::V1::OptimizeToursValidationError::FieldReference
Parameter
Returns