publicstaticfinalclass ShipmentModel.DurationDistanceMatrixextendsGeneratedMessageV3implementsShipmentModel.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ROWS_FIELD_NUMBER
publicstaticfinalintROWS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VEHICLE_START_TAG_FIELD_NUMBER
publicstaticfinalintVEHICLE_START_TAG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticShipmentModel.DurationDistanceMatrixgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticShipmentModel.DurationDistanceMatrix.BuildernewBuilder()
newBuilder(ShipmentModel.DurationDistanceMatrix prototype)
publicstaticShipmentModel.DurationDistanceMatrix.BuildernewBuilder(ShipmentModel.DurationDistanceMatrixprototype)
publicstaticShipmentModel.DurationDistanceMatrixparseDelimitedFrom(InputStreaminput)
publicstaticShipmentModel.DurationDistanceMatrixparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticShipmentModel.DurationDistanceMatrixparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentModel.DurationDistanceMatrixparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticShipmentModel.DurationDistanceMatrixparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentModel.DurationDistanceMatrixparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticShipmentModel.DurationDistanceMatrixparseFrom(CodedInputStreaminput)
publicstaticShipmentModel.DurationDistanceMatrixparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticShipmentModel.DurationDistanceMatrixparseFrom(InputStreaminput)
publicstaticShipmentModel.DurationDistanceMatrixparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticShipmentModel.DurationDistanceMatrixparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentModel.DurationDistanceMatrixparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<ShipmentModel.DurationDistanceMatrix>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicShipmentModel.DurationDistanceMatrixgetDefaultInstanceForType()
getParserForType()
publicParser<ShipmentModel.DurationDistanceMatrix>getParserForType()
Overrides
getRows(int index)
publicShipmentModel.DurationDistanceMatrix.RowgetRows(intindex)
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 |
| Name |
Description |
index |
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 |
| Type |
Description |
int |
getRowsList()
publicList<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;
getRowsOrBuilder(int index)
publicShipmentModel.DurationDistanceMatrix.RowOrBuildergetRowsOrBuilder(intindex)
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 |
| Name |
Description |
index |
int
|
getRowsOrBuilderList()
publicList<?extendsShipmentModel.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 |
| Type |
Description |
List<? extends com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> |
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getVehicleStartTag()
publicStringgetVehicleStartTag()
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 |
| Type |
Description |
String |
The vehicleStartTag.
|
getVehicleStartTagBytes()
publicByteStringgetVehicleStartTagBytes()
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 |
| Type |
Description |
ByteString |
The bytes for vehicleStartTag.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicShipmentModel.DurationDistanceMatrix.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedShipmentModel.DurationDistanceMatrix.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicShipmentModel.DurationDistanceMatrix.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides