Send feedback
Class InjectedSolutionConstraint (1.17.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.17.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
CONSTRAINT_RELAXATIONS_FIELD_NUMBER
public static final int CONSTRAINT_RELAXATIONS_FIELD_NUMBER
Field Value Type Description int
ROUTES_FIELD_NUMBER
public static final int ROUTES_FIELD_NUMBER
Field Value Type Description int
SKIPPED_SHIPMENTS_FIELD_NUMBER
public static final int SKIPPED_SHIPMENTS_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static InjectedSolutionConstraint getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static InjectedSolutionConstraint . Builder newBuilder ()
newBuilder(InjectedSolutionConstraint prototype)
public static InjectedSolutionConstraint . Builder newBuilder ( InjectedSolutionConstraint prototype )
public static InjectedSolutionConstraint parseDelimitedFrom ( InputStream input )
public static InjectedSolutionConstraint parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static InjectedSolutionConstraint parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InjectedSolutionConstraint parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static InjectedSolutionConstraint parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InjectedSolutionConstraint parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static InjectedSolutionConstraint parseFrom ( CodedInputStream input )
public static InjectedSolutionConstraint parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static InjectedSolutionConstraint parseFrom ( InputStream input )
public static InjectedSolutionConstraint parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static InjectedSolutionConstraint parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InjectedSolutionConstraint parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<InjectedSolutionConstraint> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
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
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;
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
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 ()
getParserForType()
public Parser<InjectedSolutionConstraint> getParserForType ()
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
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;
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
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 Type Description int
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 Name Description index
int
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;
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
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 >
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public InjectedSolutionConstraint . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected InjectedSolutionConstraint . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public InjectedSolutionConstraint . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]