Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::ShipmentModel::DurationDistanceMatrix::Row.
Specifies a row of the duration and distance matrix.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#durations
def durations() -> ::Array<::Google::Protobuf::Duration>
Returns
- (::Array<::Google::Protobuf::Duration>) — Duration values for a given row. It must have as many elements as ShipmentModel.duration_distance_matrix_dst_tags.
#durations=
def durations=(value) -> ::Array<::Google::Protobuf::Duration>
Parameter
- value (::Array<::Google::Protobuf::Duration>) — Duration values for a given row. It must have as many elements as ShipmentModel.duration_distance_matrix_dst_tags.
Returns
- (::Array<::Google::Protobuf::Duration>) — Duration values for a given row. It must have as many elements as ShipmentModel.duration_distance_matrix_dst_tags.
#meters
def meters() -> ::Array<::Float>
Returns
-
(::Array<::Float>) — Distance values for a given row. If no costs or constraints refer to
distances in the model, this can be left empty; otherwise it must have
as many elements as
durations
.
#meters=
def meters=(value) -> ::Array<::Float>
Parameter
-
value (::Array<::Float>) — Distance values for a given row. If no costs or constraints refer to
distances in the model, this can be left empty; otherwise it must have
as many elements as
durations
.
Returns
-
(::Array<::Float>) — Distance values for a given row. If no costs or constraints refer to
distances in the model, this can be left empty; otherwise it must have
as many elements as
durations
.