public static final class ShipmentModel.DurationDistanceMatrix extends GeneratedMessage 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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ROWS_FIELD_NUMBER
public static final int ROWS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VEHICLE_START_TAG_FIELD_NUMBER
public static final int VEHICLE_START_TAG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ShipmentModel.DurationDistanceMatrix getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ShipmentModel.DurationDistanceMatrix.Builder newBuilder()
newBuilder(ShipmentModel.DurationDistanceMatrix prototype)
public static ShipmentModel.DurationDistanceMatrix.Builder newBuilder(ShipmentModel.DurationDistanceMatrix prototype)
public static ShipmentModel.DurationDistanceMatrix parseDelimitedFrom(InputStream input)
public static ShipmentModel.DurationDistanceMatrix parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ShipmentModel.DurationDistanceMatrix parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ShipmentModel.DurationDistanceMatrix parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ShipmentModel.DurationDistanceMatrix parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ShipmentModel.DurationDistanceMatrix parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ShipmentModel.DurationDistanceMatrix parseFrom(CodedInputStream input)
public static ShipmentModel.DurationDistanceMatrix parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ShipmentModel.DurationDistanceMatrix parseFrom(InputStream input)
public static ShipmentModel.DurationDistanceMatrix parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ShipmentModel.DurationDistanceMatrix parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ShipmentModel.DurationDistanceMatrix parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ShipmentModel.DurationDistanceMatrix> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ShipmentModel.DurationDistanceMatrix getDefaultInstanceForType()
getParserForType()
public Parser<ShipmentModel.DurationDistanceMatrix> getParserForType()
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 |
| Name |
Description |
index |
int
|
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 |
| Type |
Description |
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;
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 |
| Name |
Description |
index |
int
|
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 |
| Type |
Description |
List<? extends com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
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 |
| Type |
Description |
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 |
| Type |
Description |
ByteString |
The bytes for vehicleStartTag.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ShipmentModel.DurationDistanceMatrix.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ShipmentModel.DurationDistanceMatrix.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public ShipmentModel.DurationDistanceMatrix.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides