Class InjectedSolutionConstraint (1.6.0)

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

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()
Returns
Type Description

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

newBuilder()

publicstaticInjectedSolutionConstraint.BuildernewBuilder()
Returns
Type Description

newBuilder(InjectedSolutionConstraint prototype)

publicstaticInjectedSolutionConstraint.BuildernewBuilder(InjectedSolutionConstraintprototype)
Parameter
Name Description
Returns
Type Description

parseDelimitedFrom(InputStream input)

publicstaticInjectedSolutionConstraintparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Exceptions
Type Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticInjectedSolutionConstraintparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(byte[] data)

publicstaticInjectedSolutionConstraintparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Exceptions
Type Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticInjectedSolutionConstraintparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteString data)

publicstaticInjectedSolutionConstraintparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticInjectedSolutionConstraintparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(CodedInputStream input)

publicstaticInjectedSolutionConstraintparseFrom(CodedInputStreaminput)
Parameter
Name Description
Returns
Type Description
Exceptions
Type Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticInjectedSolutionConstraintparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(InputStream input)

publicstaticInjectedSolutionConstraintparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Exceptions
Type Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticInjectedSolutionConstraintparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteBuffer data)

publicstaticInjectedSolutionConstraintparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Exceptions
Type Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticInjectedSolutionConstraintparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parser()

publicstaticParser<InjectedSolutionConstraint>parser()
Returns
Type Description

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
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
Returns
Type Description

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;

Returns
Type Description

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
Returns
Type Description

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()
Returns
Type Description

getParserForType()

publicParser<InjectedSolutionConstraint>getParserForType()
Returns
Type Description
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
Returns
Type Description

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;

Returns
Type Description

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
Returns
Type Description

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
Returns
Type Description

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;

Returns
Type Description

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
Returns
Type Description

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>

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

newBuilderForType()

publicInjectedSolutionConstraint.BuildernewBuilderForType()
Returns
Type Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedInjectedSolutionConstraint.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
Returns
Type Description
Overrides

toBuilder()

publicInjectedSolutionConstraint.BuildertoBuilder()
Returns
Type Description

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
Overrides Exceptions
Type Description

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年10月30日 UTC.