Interface InjectedSolutionConstraintOrBuilder (1.42.0)

public interface InjectedSolutionConstraintOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConstraintRelaxations(int index)

public abstract 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

getConstraintRelaxationsCount()

public abstract 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 abstract 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 abstract 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 abstract 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>

getRoutes(int index)

public abstract 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

getRoutesCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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

getSkippedShipmentsCount()

public abstract 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 abstract 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 abstract 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 abstract 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>