Class ShipmentModel.DurationDistanceMatrix (1.3.0)

public static final class ShipmentModel.DurationDistanceMatrix extends GeneratedMessageV3 implements ShipmentModel.DurationDistanceMatrixOrBuilder

Specifies a duration and distance matrix from visit and vehicle start locations to visit and vehicle end locations.

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

Inheritance

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

Static Fields

ROWS_FIELD_NUMBER

public static final int ROWS_FIELD_NUMBER
Field Value
TypeDescription
int

VEHICLE_START_TAG_FIELD_NUMBER

public static final int VEHICLE_START_TAG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(ShipmentModel.DurationDistanceMatrix prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getParserForType()

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

getRows(int index)

public ShipmentModel.DurationDistanceMatrix.Row getRows(int index)

Specifies the rows of the duration and distance matrix. It must have as many elements as ShipmentModel.duration_distance_matrix_src_tags.

repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Row

getRowsCount()

public int getRowsCount()

Specifies the rows of the duration and distance matrix. It must have as many elements as ShipmentModel.duration_distance_matrix_src_tags.

repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1;

Returns
TypeDescription
int

getRowsList()

public List<ShipmentModel.DurationDistanceMatrix.Row> getRowsList()

Specifies the rows of the duration and distance matrix. It must have as many elements as ShipmentModel.duration_distance_matrix_src_tags.

repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1;

Returns
TypeDescription
List<Row>

getRowsOrBuilder(int index)

public ShipmentModel.DurationDistanceMatrix.RowOrBuilder getRowsOrBuilder(int index)

Specifies the rows of the duration and distance matrix. It must have as many elements as ShipmentModel.duration_distance_matrix_src_tags.

repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.RowOrBuilder

getRowsOrBuilderList()

public List<? extends ShipmentModel.DurationDistanceMatrix.RowOrBuilder> getRowsOrBuilderList()

Specifies the rows of the duration and distance matrix. It must have as many elements as ShipmentModel.duration_distance_matrix_src_tags.

repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1;

Returns
TypeDescription
List<? extends com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVehicleStartTag()

public String getVehicleStartTag()

Tag defining to which vehicles this duration and distance matrix applies. If empty, this applies to all vehicles, and there can only be a single matrix. Each vehicle start must match exactly one matrix, i.e. exactly one of their start_tags field must match the vehicle_start_tag of a matrix (and of that matrix only). All matrices must have a different vehicle_start_tag.

string vehicle_start_tag = 2;

Returns
TypeDescription
String

The vehicleStartTag.

getVehicleStartTagBytes()

public ByteString getVehicleStartTagBytes()

Tag defining to which vehicles this duration and distance matrix applies. If empty, this applies to all vehicles, and there can only be a single matrix. Each vehicle start must match exactly one matrix, i.e. exactly one of their start_tags field must match the vehicle_start_tag of a matrix (and of that matrix only). All matrices must have a different vehicle_start_tag.

string vehicle_start_tag = 2;

Returns
TypeDescription
ByteString

The bytes for vehicleStartTag.

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.Builder newBuilderForType()
Returns
TypeDescription
ShipmentModel.DurationDistanceMatrix.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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