public static final class ShipmentModel.DurationDistanceMatrix.Builder extends GeneratedMessageV3.Builder<ShipmentModel.DurationDistanceMatrix.Builder> 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.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllRows(Iterable<? extends ShipmentModel.DurationDistanceMatrix.Row> values)
public ShipmentModel.DurationDistanceMatrix.Builder addAllRows(Iterable<? extends ShipmentModel.DurationDistanceMatrix.Row> values)
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 |
values | Iterable<? extends com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ShipmentModel.DurationDistanceMatrix.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addRows(ShipmentModel.DurationDistanceMatrix.Row value)
public ShipmentModel.DurationDistanceMatrix.Builder addRows(ShipmentModel.DurationDistanceMatrix.Row value)
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;
addRows(ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue)
public ShipmentModel.DurationDistanceMatrix.Builder addRows(ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue)
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;
addRows(int index, ShipmentModel.DurationDistanceMatrix.Row value)
public ShipmentModel.DurationDistanceMatrix.Builder addRows(int index, ShipmentModel.DurationDistanceMatrix.Row value)
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;
addRows(int index, ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue)
public ShipmentModel.DurationDistanceMatrix.Builder addRows(int index, ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue)
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;
addRowsBuilder()
public ShipmentModel.DurationDistanceMatrix.Row.Builder addRowsBuilder()
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;
addRowsBuilder(int index)
public ShipmentModel.DurationDistanceMatrix.Row.Builder addRowsBuilder(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
|
build()
public ShipmentModel.DurationDistanceMatrix build()
buildPartial()
public ShipmentModel.DurationDistanceMatrix buildPartial()
clear()
public ShipmentModel.DurationDistanceMatrix.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ShipmentModel.DurationDistanceMatrix.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ShipmentModel.DurationDistanceMatrix.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRows()
public ShipmentModel.DurationDistanceMatrix.Builder clearRows()
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;
clearVehicleStartTag()
public ShipmentModel.DurationDistanceMatrix.Builder clearVehicleStartTag()
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;
clone()
public ShipmentModel.DurationDistanceMatrix.Builder clone()
Overrides
getDefaultInstanceForType()
public ShipmentModel.DurationDistanceMatrix getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
getRowsBuilder(int index)
public ShipmentModel.DurationDistanceMatrix.Row.Builder getRowsBuilder(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
|
getRowsBuilderList()
public List<ShipmentModel.DurationDistanceMatrix.Row.Builder> getRowsBuilderList()
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;
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> | |
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ShipmentModel.DurationDistanceMatrix other)
public ShipmentModel.DurationDistanceMatrix.Builder mergeFrom(ShipmentModel.DurationDistanceMatrix other)
public ShipmentModel.DurationDistanceMatrix.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ShipmentModel.DurationDistanceMatrix.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentModel.DurationDistanceMatrix.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeRows(int index)
public ShipmentModel.DurationDistanceMatrix.Builder removeRows(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
|
setField(Descriptors.FieldDescriptor field, Object value)
public ShipmentModel.DurationDistanceMatrix.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ShipmentModel.DurationDistanceMatrix.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRows(int index, ShipmentModel.DurationDistanceMatrix.Row value)
public ShipmentModel.DurationDistanceMatrix.Builder setRows(int index, ShipmentModel.DurationDistanceMatrix.Row value)
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;
setRows(int index, ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue)
public ShipmentModel.DurationDistanceMatrix.Builder setRows(int index, ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue)
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentModel.DurationDistanceMatrix.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setVehicleStartTag(String value)
public ShipmentModel.DurationDistanceMatrix.Builder setVehicleStartTag(String value)
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;
Parameter |
---|
Name | Description |
value | String
The vehicleStartTag to set.
|
setVehicleStartTagBytes(ByteString value)
public ShipmentModel.DurationDistanceMatrix.Builder setVehicleStartTagBytes(ByteString value)
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;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for vehicleStartTag to set.
|