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 classShipmentModel.DurationDistanceMatrix.Row.BuilderSpecifies 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 intDURATIONS_FIELD_NUMBERstatic intMETERS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ShipmentModel.DurationDistanceMatrix.RowgetDefaultInstance()ShipmentModel.DurationDistanceMatrix.RowgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.DurationgetDurations(int index)Duration values for a given row.intgetDurationsCount()Duration values for a given row.List<com.google.protobuf.Duration>getDurationsList()Duration values for a given row.com.google.protobuf.DurationOrBuildergetDurationsOrBuilder(int index)Duration values for a given row.List<? extends com.google.protobuf.DurationOrBuilder>getDurationsOrBuilderList()Duration values for a given row.doublegetMeters(int index)Distance values for a given row.intgetMetersCount()Distance values for a given row.List<Double>getMetersList()Distance values for a given row.com.google.protobuf.Parser<ShipmentModel.DurationDistanceMatrix.Row>getParserForType()intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ShipmentModel.DurationDistanceMatrix.Row.BuildernewBuilder()static ShipmentModel.DurationDistanceMatrix.Row.BuildernewBuilder(ShipmentModel.DurationDistanceMatrix.Row prototype)ShipmentModel.DurationDistanceMatrix.Row.BuildernewBuilderForType()protected ShipmentModel.DurationDistanceMatrix.Row.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ShipmentModel.DurationDistanceMatrix.RowparseDelimitedFrom(InputStream input)static ShipmentModel.DurationDistanceMatrix.RowparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShipmentModel.DurationDistanceMatrix.RowparseFrom(byte[] data)static ShipmentModel.DurationDistanceMatrix.RowparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShipmentModel.DurationDistanceMatrix.RowparseFrom(com.google.protobuf.ByteString data)static ShipmentModel.DurationDistanceMatrix.RowparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShipmentModel.DurationDistanceMatrix.RowparseFrom(com.google.protobuf.CodedInputStream input)static ShipmentModel.DurationDistanceMatrix.RowparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShipmentModel.DurationDistanceMatrix.RowparseFrom(InputStream input)static ShipmentModel.DurationDistanceMatrix.RowparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShipmentModel.DurationDistanceMatrix.RowparseFrom(ByteBuffer data)static ShipmentModel.DurationDistanceMatrix.RowparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ShipmentModel.DurationDistanceMatrix.Row>parser()ShipmentModel.DurationDistanceMatrix.Row.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getDurationsListin 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:
getDurationsOrBuilderListin 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:
getDurationsCountin 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:
getDurationsin 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:
getDurationsOrBuilderin 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:
getMetersListin 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:
getMetersCountin 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:
getMetersin 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:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ShipmentModel.DurationDistanceMatrix.Row.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ShipmentModel.DurationDistanceMatrix.Row getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-