public final class InjectedSolutionConstraint extends GeneratedMessageV3 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 Fields
CONSTRAINT_RELAXATIONS_FIELD_NUMBER
public static final int CONSTRAINT_RELAXATIONS_FIELD_NUMBER
Field Value
ROUTES_FIELD_NUMBER
public static final int ROUTES_FIELD_NUMBER
Field Value
SKIPPED_SHIPMENTS_FIELD_NUMBER
public static final int SKIPPED_SHIPMENTS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static InjectedSolutionConstraint getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static InjectedSolutionConstraint.Builder newBuilder()
Returns
newBuilder(InjectedSolutionConstraint prototype)
public static InjectedSolutionConstraint.Builder newBuilder(InjectedSolutionConstraint prototype)
Parameter
Returns
public static InjectedSolutionConstraint parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static InjectedSolutionConstraint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static InjectedSolutionConstraint parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InjectedSolutionConstraint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static InjectedSolutionConstraint parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InjectedSolutionConstraint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static InjectedSolutionConstraint parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static InjectedSolutionConstraint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static InjectedSolutionConstraint parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static InjectedSolutionConstraint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static InjectedSolutionConstraint parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InjectedSolutionConstraint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<InjectedSolutionConstraint> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Returns
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
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
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
Returns
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
getParserForType()
public Parser<InjectedSolutionConstraint> getParserForType()
Returns
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
Returns
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
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
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
Returns
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> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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
Returns
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
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
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
Returns
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> | |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public InjectedSolutionConstraint.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected InjectedSolutionConstraint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public InjectedSolutionConstraint.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions