Class InjectedSolutionConstraint.Builder (1.33.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.optimization.v1.ShipmentRoute>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.optimization.v1.SkippedShipment>
Returns
TypeDescription
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
NameDescription
valueInjectedSolutionConstraint.ConstraintRelaxation
Returns
TypeDescription
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
NameDescription
builderForValueInjectedSolutionConstraint.ConstraintRelaxation.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInjectedSolutionConstraint.ConstraintRelaxation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInjectedSolutionConstraint.ConstraintRelaxation.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InjectedSolutionConstraint.ConstraintRelaxation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InjectedSolutionConstraint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueShipmentRoute
Returns
TypeDescription
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
NameDescription
builderForValueShipmentRoute.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueShipmentRoute
Returns
TypeDescription
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
NameDescription
indexint
builderForValueShipmentRoute.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueSkippedShipment
Returns
TypeDescription
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
NameDescription
builderForValueSkippedShipment.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSkippedShipment
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSkippedShipment.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SkippedShipment.Builder

build()

public InjectedSolutionConstraint build()
Returns
TypeDescription
InjectedSolutionConstraint

buildPartial()

public InjectedSolutionConstraint buildPartial()
Returns
TypeDescription
InjectedSolutionConstraint

clear()

public InjectedSolutionConstraint.Builder clear()
Returns
TypeDescription
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
TypeDescription
InjectedSolutionConstraint.Builder

clearField(Descriptors.FieldDescriptor field)

public InjectedSolutionConstraint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InjectedSolutionConstraint.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InjectedSolutionConstraint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
InjectedSolutionConstraint.Builder

clone()

public InjectedSolutionConstraint.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder>

getDefaultInstanceForType()

public InjectedSolutionConstraint getDefaultInstanceForType()
Returns
TypeDescription
InjectedSolutionConstraint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InjectedSolutionConstraint other)

public InjectedSolutionConstraint.Builder mergeFrom(InjectedSolutionConstraint other)
Parameter
NameDescription
otherInjectedSolutionConstraint
Returns
TypeDescription
InjectedSolutionConstraint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InjectedSolutionConstraint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InjectedSolutionConstraint.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InjectedSolutionConstraint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InjectedSolutionConstraint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InjectedSolutionConstraint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueInjectedSolutionConstraint.ConstraintRelaxation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInjectedSolutionConstraint.ConstraintRelaxation.Builder
Returns
TypeDescription
InjectedSolutionConstraint.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InjectedSolutionConstraint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InjectedSolutionConstraint.Builder
Overrides

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

public InjectedSolutionConstraint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueShipmentRoute
Returns
TypeDescription
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
NameDescription
indexint
builderForValueShipmentRoute.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSkippedShipment
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSkippedShipment.Builder
Returns
TypeDescription
InjectedSolutionConstraint.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InjectedSolutionConstraint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InjectedSolutionConstraint.Builder
Overrides