Package com.google.cloud.optimization.v1
Class ShipmentModel.DurationDistanceMatrix.Row
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row
-
- All Implemented Interfaces:
ShipmentModel.DurationDistanceMatrix.RowOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- ShipmentModel.DurationDistanceMatrix
public static final class ShipmentModel.DurationDistanceMatrix.Row extends com.google.protobuf.GeneratedMessageV3 implements ShipmentModel.DurationDistanceMatrix.RowOrBuilder
Specifies a row of the duration and distance matrix.
Protobuf typegoogle.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShipmentModel.DurationDistanceMatrix.Row.Builder
Specifies a row of the duration and distance matrix.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
DURATIONS_FIELD_NUMBER
static int
METERS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static ShipmentModel.DurationDistanceMatrix.Row
getDefaultInstance()
ShipmentModel.DurationDistanceMatrix.Row
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Duration
getDurations(int index)
Duration values for a given row.int
getDurationsCount()
Duration values for a given row.List<com.google.protobuf.Duration>
getDurationsList()
Duration values for a given row.com.google.protobuf.DurationOrBuilder
getDurationsOrBuilder(int index)
Duration values for a given row.List<? extends com.google.protobuf.DurationOrBuilder>
getDurationsOrBuilderList()
Duration values for a given row.double
getMeters(int index)
Distance values for a given row.int
getMetersCount()
Distance values for a given row.List<Double>
getMetersList()
Distance values for a given row.com.google.protobuf.Parser<ShipmentModel.DurationDistanceMatrix.Row>
getParserForType()
int
getSerializedSize()
int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ShipmentModel.DurationDistanceMatrix.Row.Builder
newBuilder()
static ShipmentModel.DurationDistanceMatrix.Row.Builder
newBuilder(ShipmentModel.DurationDistanceMatrix.Row prototype)
ShipmentModel.DurationDistanceMatrix.Row.Builder
newBuilderForType()
protected ShipmentModel.DurationDistanceMatrix.Row.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ShipmentModel.DurationDistanceMatrix.Row
parseDelimitedFrom(InputStream input)
static ShipmentModel.DurationDistanceMatrix.Row
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentModel.DurationDistanceMatrix.Row
parseFrom(byte[] data)
static ShipmentModel.DurationDistanceMatrix.Row
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentModel.DurationDistanceMatrix.Row
parseFrom(com.google.protobuf.ByteString data)
static ShipmentModel.DurationDistanceMatrix.Row
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentModel.DurationDistanceMatrix.Row
parseFrom(com.google.protobuf.CodedInputStream input)
static ShipmentModel.DurationDistanceMatrix.Row
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentModel.DurationDistanceMatrix.Row
parseFrom(InputStream input)
static ShipmentModel.DurationDistanceMatrix.Row
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentModel.DurationDistanceMatrix.Row
parseFrom(ByteBuffer data)
static ShipmentModel.DurationDistanceMatrix.Row
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ShipmentModel.DurationDistanceMatrix.Row>
parser()
ShipmentModel.DurationDistanceMatrix.Row.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DURATIONS_FIELD_NUMBER
public static final int DURATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METERS_FIELD_NUMBER
public static final int METERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getDurationsList
public List<com.google.protobuf.Duration> getDurationsList()
Duration values for a given row. It must have as many elements as [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
repeated .google.protobuf.Duration durations = 1;
- Specified by:
getDurationsList
in interfaceShipmentModel.DurationDistanceMatrix.RowOrBuilder
-
getDurationsOrBuilderList
public List<? extends com.google.protobuf.DurationOrBuilder> getDurationsOrBuilderList()
Duration values for a given row. It must have as many elements as [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
repeated .google.protobuf.Duration durations = 1;
- Specified by:
getDurationsOrBuilderList
in interfaceShipmentModel.DurationDistanceMatrix.RowOrBuilder
-
getDurationsCount
public int getDurationsCount()
Duration values for a given row. It must have as many elements as [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
repeated .google.protobuf.Duration durations = 1;
- Specified by:
getDurationsCount
in interfaceShipmentModel.DurationDistanceMatrix.RowOrBuilder
-
getDurations
public com.google.protobuf.Duration getDurations(int index)
Duration values for a given row. It must have as many elements as [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
repeated .google.protobuf.Duration durations = 1;
- Specified by:
getDurations
in interfaceShipmentModel.DurationDistanceMatrix.RowOrBuilder
-
getDurationsOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index)
Duration values for a given row. It must have as many elements as [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
repeated .google.protobuf.Duration durations = 1;
- Specified by:
getDurationsOrBuilder
in interfaceShipmentModel.DurationDistanceMatrix.RowOrBuilder
-
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;
- Specified by:
getMetersList
in interfaceShipmentModel.DurationDistanceMatrix.RowOrBuilder
- Returns:
- A list containing the meters.
-
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;
- Specified by:
getMetersCount
in interfaceShipmentModel.DurationDistanceMatrix.RowOrBuilder
- Returns:
- The count of meters.
-
getMeters
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;
- Specified by:
getMeters
in interfaceShipmentModel.DurationDistanceMatrix.RowOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The meters at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentModel.DurationDistanceMatrix.Row parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ShipmentModel.DurationDistanceMatrix.Row.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ShipmentModel.DurationDistanceMatrix.Row.Builder newBuilder()
-
newBuilder
public static ShipmentModel.DurationDistanceMatrix.Row.Builder newBuilder(ShipmentModel.DurationDistanceMatrix.Row prototype)
-
toBuilder
public ShipmentModel.DurationDistanceMatrix.Row.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ShipmentModel.DurationDistanceMatrix.Row.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ShipmentModel.DurationDistanceMatrix.Row getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ShipmentModel.DurationDistanceMatrix.Row> parser()
-
getParserForType
public com.google.protobuf.Parser<ShipmentModel.DurationDistanceMatrix.Row> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ShipmentModel.DurationDistanceMatrix.Row getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-