Class ShipmentModel.DurationDistanceMatrix.Row (1.2.0)

public static final class ShipmentModel.DurationDistanceMatrix.Row extends GeneratedMessageV3 implements ShipmentModel.DurationDistanceMatrix.RowOrBuilder

Specifies a row of the duration and distance matrix.

Protobuf type google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ShipmentModel.DurationDistanceMatrix.Row

Static Fields

DURATIONS_FIELD_NUMBER

public static final int DURATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

METERS_FIELD_NUMBER

public static final int METERS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ShipmentModel.DurationDistanceMatrix.Row getDefaultInstance()
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ShipmentModel.DurationDistanceMatrix.Row.Builder newBuilder()
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row.Builder

newBuilder(ShipmentModel.DurationDistanceMatrix.Row prototype)

public static ShipmentModel.DurationDistanceMatrix.Row.Builder newBuilder(ShipmentModel.DurationDistanceMatrix.Row prototype)
Parameter
NameDescription
prototypeShipmentModel.DurationDistanceMatrix.Row
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row.Builder

parseDelimitedFrom(InputStream input)

public static ShipmentModel.DurationDistanceMatrix.Row parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ShipmentModel.DurationDistanceMatrix.Row parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ShipmentModel.DurationDistanceMatrix.Row> parser()
Returns
TypeDescription
Parser<Row>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ShipmentModel.DurationDistanceMatrix.Row getDefaultInstanceForType()
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row

getDurations(int index)

public Duration getDurations(int index)

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
NameDescription
indexint
Returns
TypeDescription
Duration

getDurationsCount()

public int getDurationsCount()

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
TypeDescription
int

getDurationsList()

public List<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
TypeDescription
List<Duration>

getDurationsOrBuilder(int index)

public DurationOrBuilder getDurationsOrBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
DurationOrBuilder

getDurationsOrBuilderList()

public List<? extends DurationOrBuilder> 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
TypeDescription
List<? extends com.google.protobuf.DurationOrBuilder>

getMeters(int index)

public double getMeters(int index)

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
double

The meters at the given index.

getMetersCount()

public int getMetersCount()

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
TypeDescription
int

The count of meters.

getMetersList()

public List<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
TypeDescription
List<Double>

A list containing the meters.

getParserForType()

public Parser<ShipmentModel.DurationDistanceMatrix.Row> getParserForType()
Returns
TypeDescription
Parser<Row>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ShipmentModel.DurationDistanceMatrix.Row.Builder newBuilderForType()
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ShipmentModel.DurationDistanceMatrix.Row.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ShipmentModel.DurationDistanceMatrix.Row.Builder toBuilder()
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException