Class InjectedSolutionConstraint.Builder (1.50.0)

public static final class InjectedSolutionConstraint.Builder extends GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder> implements InjectedSolutionConstraintOrBuilder

Solution injected in the request including information about which visits must be constrained and how they must be constrained.

Protobuf type google.cloud.optimization.v1.InjectedSolutionConstraint

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllConstraintRelaxations(Iterable<? extends InjectedSolutionConstraint.ConstraintRelaxation> values)

public InjectedSolutionConstraint.Builder addAllConstraintRelaxations(Iterable<? extends InjectedSolutionConstraint.ConstraintRelaxation> values)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation>
Returns
Type Description
InjectedSolutionConstraint.Builder

addAllRoutes(Iterable<? extends ShipmentRoute> values)

public InjectedSolutionConstraint.Builder addAllRoutes(Iterable<? extends ShipmentRoute> values)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.optimization.v1.ShipmentRoute>
Returns
Type Description
InjectedSolutionConstraint.Builder

addAllSkippedShipments(Iterable<? extends SkippedShipment> values)

public InjectedSolutionConstraint.Builder addAllSkippedShipments(Iterable<? extends SkippedShipment> values)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.optimization.v1.SkippedShipment>
Returns
Type Description
InjectedSolutionConstraint.Builder

addConstraintRelaxations(InjectedSolutionConstraint.ConstraintRelaxation value)

public InjectedSolutionConstraint.Builder addConstraintRelaxations(InjectedSolutionConstraint.ConstraintRelaxation value)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameter
Name Description
value InjectedSolutionConstraint.ConstraintRelaxation
Returns
Type Description
InjectedSolutionConstraint.Builder

addConstraintRelaxations(InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)

public InjectedSolutionConstraint.Builder addConstraintRelaxations(InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameter
Name Description
builderForValue InjectedSolutionConstraint.ConstraintRelaxation.Builder
Returns
Type Description
InjectedSolutionConstraint.Builder

addConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value)

public InjectedSolutionConstraint.Builder addConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameters
Name Description
index int
value InjectedSolutionConstraint.ConstraintRelaxation
Returns
Type Description
InjectedSolutionConstraint.Builder

addConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)

public InjectedSolutionConstraint.Builder addConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameters
Name Description
index int
builderForValue InjectedSolutionConstraint.ConstraintRelaxation.Builder
Returns
Type Description
InjectedSolutionConstraint.Builder

addConstraintRelaxationsBuilder()

public InjectedSolutionConstraint.ConstraintRelaxation.Builder addConstraintRelaxationsBuilder()

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Returns
Type Description
InjectedSolutionConstraint.ConstraintRelaxation.Builder

addConstraintRelaxationsBuilder(int index)

public InjectedSolutionConstraint.ConstraintRelaxation.Builder addConstraintRelaxationsBuilder(int index)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameter
Name Description
index int
Returns
Type Description
InjectedSolutionConstraint.ConstraintRelaxation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InjectedSolutionConstraint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides

addRoutes(ShipmentRoute value)

public InjectedSolutionConstraint.Builder addRoutes(ShipmentRoute value)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameter
Name Description
value ShipmentRoute
Returns
Type Description
InjectedSolutionConstraint.Builder

addRoutes(ShipmentRoute.Builder builderForValue)

public InjectedSolutionConstraint.Builder addRoutes(ShipmentRoute.Builder builderForValue)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameter
Name Description
builderForValue ShipmentRoute.Builder
Returns
Type Description
InjectedSolutionConstraint.Builder

addRoutes(int index, ShipmentRoute value)

public InjectedSolutionConstraint.Builder addRoutes(int index, ShipmentRoute value)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameters
Name Description
index int
value ShipmentRoute
Returns
Type Description
InjectedSolutionConstraint.Builder

addRoutes(int index, ShipmentRoute.Builder builderForValue)

public InjectedSolutionConstraint.Builder addRoutes(int index, ShipmentRoute.Builder builderForValue)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameters
Name Description
index int
builderForValue ShipmentRoute.Builder
Returns
Type Description
InjectedSolutionConstraint.Builder

addRoutesBuilder()

public ShipmentRoute.Builder addRoutesBuilder()

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Returns
Type Description
ShipmentRoute.Builder

addRoutesBuilder(int index)

public ShipmentRoute.Builder addRoutesBuilder(int index)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameter
Name Description
index int
Returns
Type Description
ShipmentRoute.Builder

addSkippedShipments(SkippedShipment value)

public InjectedSolutionConstraint.Builder addSkippedShipments(SkippedShipment value)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameter
Name Description
value SkippedShipment
Returns
Type Description
InjectedSolutionConstraint.Builder

addSkippedShipments(SkippedShipment.Builder builderForValue)

public InjectedSolutionConstraint.Builder addSkippedShipments(SkippedShipment.Builder builderForValue)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameter
Name Description
builderForValue SkippedShipment.Builder
Returns
Type Description
InjectedSolutionConstraint.Builder

addSkippedShipments(int index, SkippedShipment value)

public InjectedSolutionConstraint.Builder addSkippedShipments(int index, SkippedShipment value)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameters
Name Description
index int
value SkippedShipment
Returns
Type Description
InjectedSolutionConstraint.Builder

addSkippedShipments(int index, SkippedShipment.Builder builderForValue)

public InjectedSolutionConstraint.Builder addSkippedShipments(int index, SkippedShipment.Builder builderForValue)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameters
Name Description
index int
builderForValue SkippedShipment.Builder
Returns
Type Description
InjectedSolutionConstraint.Builder

addSkippedShipmentsBuilder()

public SkippedShipment.Builder addSkippedShipmentsBuilder()

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Returns
Type Description
SkippedShipment.Builder

addSkippedShipmentsBuilder(int index)

public SkippedShipment.Builder addSkippedShipmentsBuilder(int index)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameter
Name Description
index int
Returns
Type Description
SkippedShipment.Builder

build()

public InjectedSolutionConstraint build()
Returns
Type Description
InjectedSolutionConstraint

buildPartial()

public InjectedSolutionConstraint buildPartial()
Returns
Type Description
InjectedSolutionConstraint

clear()

public InjectedSolutionConstraint.Builder clear()
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides

clearConstraintRelaxations()

public InjectedSolutionConstraint.Builder clearConstraintRelaxations()

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Returns
Type Description
InjectedSolutionConstraint.Builder

clearField(Descriptors.FieldDescriptor field)

public InjectedSolutionConstraint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InjectedSolutionConstraint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides

clearRoutes()

public InjectedSolutionConstraint.Builder clearRoutes()

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Returns
Type Description
InjectedSolutionConstraint.Builder

clearSkippedShipments()

public InjectedSolutionConstraint.Builder clearSkippedShipments()

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Returns
Type Description
InjectedSolutionConstraint.Builder

clone()

public InjectedSolutionConstraint.Builder clone()
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides

getConstraintRelaxations(int index)

public InjectedSolutionConstraint.ConstraintRelaxation getConstraintRelaxations(int index)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameter
Name Description
index int
Returns
Type Description
InjectedSolutionConstraint.ConstraintRelaxation

getConstraintRelaxationsBuilder(int index)

public InjectedSolutionConstraint.ConstraintRelaxation.Builder getConstraintRelaxationsBuilder(int index)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameter
Name Description
index int
Returns
Type Description
InjectedSolutionConstraint.ConstraintRelaxation.Builder

getConstraintRelaxationsBuilderList()

public List<InjectedSolutionConstraint.ConstraintRelaxation.Builder> getConstraintRelaxationsBuilderList()

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Returns
Type Description
List<Builder>

getConstraintRelaxationsCount()

public int getConstraintRelaxationsCount()

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Returns
Type Description
int

getConstraintRelaxationsList()

public List<InjectedSolutionConstraint.ConstraintRelaxation> getConstraintRelaxationsList()

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Returns
Type Description
List<ConstraintRelaxation>

getConstraintRelaxationsOrBuilder(int index)

public InjectedSolutionConstraint.ConstraintRelaxationOrBuilder getConstraintRelaxationsOrBuilder(int index)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameter
Name Description
index int
Returns
Type Description
InjectedSolutionConstraint.ConstraintRelaxationOrBuilder

getConstraintRelaxationsOrBuilderList()

public List<? extends InjectedSolutionConstraint.ConstraintRelaxationOrBuilder> getConstraintRelaxationsOrBuilderList()

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Returns
Type Description
List<? extends com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder>

getDefaultInstanceForType()

public InjectedSolutionConstraint getDefaultInstanceForType()
Returns
Type Description
InjectedSolutionConstraint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRoutes(int index)

public ShipmentRoute getRoutes(int index)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameter
Name Description
index int
Returns
Type Description
ShipmentRoute

getRoutesBuilder(int index)

public ShipmentRoute.Builder getRoutesBuilder(int index)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameter
Name Description
index int
Returns
Type Description
ShipmentRoute.Builder

getRoutesBuilderList()

public List<ShipmentRoute.Builder> getRoutesBuilderList()

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Returns
Type Description
List<Builder>

getRoutesCount()

public int getRoutesCount()

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Returns
Type Description
int

getRoutesList()

public List<ShipmentRoute> getRoutesList()

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Returns
Type Description
List<ShipmentRoute>

getRoutesOrBuilder(int index)

public ShipmentRouteOrBuilder getRoutesOrBuilder(int index)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameter
Name Description
index int
Returns
Type Description
ShipmentRouteOrBuilder

getRoutesOrBuilderList()

public List<? extends ShipmentRouteOrBuilder> getRoutesOrBuilderList()

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Returns
Type Description
List<? extends com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>

getSkippedShipments(int index)

public SkippedShipment getSkippedShipments(int index)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameter
Name Description
index int
Returns
Type Description
SkippedShipment

getSkippedShipmentsBuilder(int index)

public SkippedShipment.Builder getSkippedShipmentsBuilder(int index)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameter
Name Description
index int
Returns
Type Description
SkippedShipment.Builder

getSkippedShipmentsBuilderList()

public List<SkippedShipment.Builder> getSkippedShipmentsBuilderList()

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Returns
Type Description
List<Builder>

getSkippedShipmentsCount()

public int getSkippedShipmentsCount()

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Returns
Type Description
int

getSkippedShipmentsList()

public List<SkippedShipment> getSkippedShipmentsList()

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Returns
Type Description
List<SkippedShipment>

getSkippedShipmentsOrBuilder(int index)

public SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(int index)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameter
Name Description
index int
Returns
Type Description
SkippedShipmentOrBuilder

getSkippedShipmentsOrBuilderList()

public List<? extends SkippedShipmentOrBuilder> getSkippedShipmentsOrBuilderList()

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Returns
Type Description
List<? extends com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InjectedSolutionConstraint other)

public InjectedSolutionConstraint.Builder mergeFrom(InjectedSolutionConstraint other)
Parameter
Name Description
other InjectedSolutionConstraint
Returns
Type Description
InjectedSolutionConstraint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InjectedSolutionConstraint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InjectedSolutionConstraint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InjectedSolutionConstraint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides

removeConstraintRelaxations(int index)

public InjectedSolutionConstraint.Builder removeConstraintRelaxations(int index)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameter
Name Description
index int
Returns
Type Description
InjectedSolutionConstraint.Builder

removeRoutes(int index)

public InjectedSolutionConstraint.Builder removeRoutes(int index)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameter
Name Description
index int
Returns
Type Description
InjectedSolutionConstraint.Builder

removeSkippedShipments(int index)

public InjectedSolutionConstraint.Builder removeSkippedShipments(int index)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameter
Name Description
index int
Returns
Type Description
InjectedSolutionConstraint.Builder

setConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value)

public InjectedSolutionConstraint.Builder setConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameters
Name Description
index int
value InjectedSolutionConstraint.ConstraintRelaxation
Returns
Type Description
InjectedSolutionConstraint.Builder

setConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)

public InjectedSolutionConstraint.Builder setConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)

For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.

repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;

Parameters
Name Description
index int
builderForValue InjectedSolutionConstraint.ConstraintRelaxation.Builder
Returns
Type Description
InjectedSolutionConstraint.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InjectedSolutionConstraint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InjectedSolutionConstraint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides

setRoutes(int index, ShipmentRoute value)

public InjectedSolutionConstraint.Builder setRoutes(int index, ShipmentRoute value)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameters
Name Description
index int
value ShipmentRoute
Returns
Type Description
InjectedSolutionConstraint.Builder

setRoutes(int index, ShipmentRoute.Builder builderForValue)

public InjectedSolutionConstraint.Builder setRoutes(int index, ShipmentRoute.Builder builderForValue)

Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for injected_first_solution_routes.

repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;

Parameters
Name Description
index int
builderForValue ShipmentRoute.Builder
Returns
Type Description
InjectedSolutionConstraint.Builder

setSkippedShipments(int index, SkippedShipment value)

public InjectedSolutionConstraint.Builder setSkippedShipments(int index, SkippedShipment value)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameters
Name Description
index int
value SkippedShipment
Returns
Type Description
InjectedSolutionConstraint.Builder

setSkippedShipments(int index, SkippedShipment.Builder builderForValue)

public InjectedSolutionConstraint.Builder setSkippedShipments(int index, SkippedShipment.Builder builderForValue)

Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the routes field.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;

Parameters
Name Description
index int
builderForValue SkippedShipment.Builder
Returns
Type Description
InjectedSolutionConstraint.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InjectedSolutionConstraint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides