Interface ShipmentModel.DurationDistanceMatrix.RowOrBuilder (1.27.0)

publicstaticinterface ShipmentModel.DurationDistanceMatrix.RowOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getDurations(int index)

publicabstractDurationgetDurations(intindex)

Duration values for a given row. It must have as many elements as ShipmentModel.duration_distance_matrix_dst_tags.

repeated .google.protobuf.Duration durations = 1;

Parameter
Name Description
index int
Returns
Type Description
Duration

getDurationsCount()

publicabstractintgetDurationsCount()

Duration values for a given row. It must have as many elements as ShipmentModel.duration_distance_matrix_dst_tags.

repeated .google.protobuf.Duration durations = 1;

Returns
Type Description
int

getDurationsList()

publicabstractList<Duration>getDurationsList()

Duration values for a given row. It must have as many elements as ShipmentModel.duration_distance_matrix_dst_tags.

repeated .google.protobuf.Duration durations = 1;

Returns
Type Description
List<Duration>

getDurationsOrBuilder(int index)

publicabstractDurationOrBuildergetDurationsOrBuilder(intindex)

Duration values for a given row. It must have as many elements as ShipmentModel.duration_distance_matrix_dst_tags.

repeated .google.protobuf.Duration durations = 1;

Parameter
Name Description
index int
Returns
Type Description
DurationOrBuilder

getDurationsOrBuilderList()

publicabstractList<?extendsDurationOrBuilder>getDurationsOrBuilderList()

Duration values for a given row. It must have as many elements as ShipmentModel.duration_distance_matrix_dst_tags.

repeated .google.protobuf.Duration durations = 1;

Returns
Type Description
List<? extends com.google.protobuf.DurationOrBuilder>

getMeters(int index)

publicabstractdoublegetMeters(intindex)

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.

repeated double meters = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
double

The meters at the given index.

getMetersCount()

publicabstractintgetMetersCount()

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.

repeated double meters = 2;

Returns
Type Description
int

The count of meters.

getMetersList()

publicabstractList<Double>getMetersList()

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.

repeated double meters = 2;

Returns
Type Description
List<Double>

A list containing the meters.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.