publicfinalclass InjectedSolutionConstraintextendsGeneratedMessageV3implementsInjectedSolutionConstraintOrBuilder
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)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONSTRAINT_RELAXATIONS_FIELD_NUMBER
publicstaticfinalintCONSTRAINT_RELAXATIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
ROUTES_FIELD_NUMBER
publicstaticfinalintROUTES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SKIPPED_SHIPMENTS_FIELD_NUMBER
publicstaticfinalintSKIPPED_SHIPMENTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticInjectedSolutionConstraintgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticInjectedSolutionConstraint.BuildernewBuilder()
newBuilder(InjectedSolutionConstraint prototype)
publicstaticInjectedSolutionConstraint.BuildernewBuilder(InjectedSolutionConstraintprototype)
publicstaticInjectedSolutionConstraintparseDelimitedFrom(InputStreaminput)
publicstaticInjectedSolutionConstraintparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticInjectedSolutionConstraintparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticInjectedSolutionConstraintparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticInjectedSolutionConstraintparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticInjectedSolutionConstraintparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticInjectedSolutionConstraintparseFrom(CodedInputStreaminput)
publicstaticInjectedSolutionConstraintparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticInjectedSolutionConstraintparseFrom(InputStreaminput)
publicstaticInjectedSolutionConstraintparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticInjectedSolutionConstraintparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticInjectedSolutionConstraintparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<InjectedSolutionConstraint>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getConstraintRelaxations(int index)
publicInjectedSolutionConstraint.ConstraintRelaxationgetConstraintRelaxations(intindex)
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()
publicintgetConstraintRelaxationsCount()
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()
publicList<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)
publicInjectedSolutionConstraint.ConstraintRelaxationOrBuildergetConstraintRelaxationsOrBuilder(intindex)
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()
publicList<?extendsInjectedSolutionConstraint.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()
publicInjectedSolutionConstraintgetDefaultInstanceForType()
getParserForType()
publicParser<InjectedSolutionConstraint>getParserForType()
Overrides
getRoutes(int index)
publicShipmentRoutegetRoutes(intindex)
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()
publicintgetRoutesCount()
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()
publicList<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)
publicShipmentRouteOrBuildergetRoutesOrBuilder(intindex)
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()
publicList<?extendsShipmentRouteOrBuilder>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()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getSkippedShipments(int index)
publicSkippedShipmentgetSkippedShipments(intindex)
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()
publicintgetSkippedShipmentsCount()
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()
publicList<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)
publicSkippedShipmentOrBuildergetSkippedShipmentsOrBuilder(intindex)
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()
publicList<?extendsSkippedShipmentOrBuilder>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()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicInjectedSolutionConstraint.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedInjectedSolutionConstraint.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicInjectedSolutionConstraint.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides