Class InjectedSolutionConstraint (1.47.0)

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

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static InjectedSolutionConstraint.Builder newBuilder()
Returns
Type Description
InjectedSolutionConstraint.Builder

newBuilder(InjectedSolutionConstraint prototype)

public static InjectedSolutionConstraint.Builder newBuilder(InjectedSolutionConstraint prototype)
Parameter
Name Description
prototype InjectedSolutionConstraint
Returns
Type Description
InjectedSolutionConstraint.Builder

parseDelimitedFrom(InputStream input)

public static InjectedSolutionConstraint parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InjectedSolutionConstraint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static InjectedSolutionConstraint parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InjectedSolutionConstraint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InjectedSolutionConstraint parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InjectedSolutionConstraint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InjectedSolutionConstraint parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InjectedSolutionConstraint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static InjectedSolutionConstraint parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InjectedSolutionConstraint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static InjectedSolutionConstraint parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InjectedSolutionConstraint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InjectedSolutionConstraint
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<InjectedSolutionConstraint> parser()
Returns
Type Description
Parser<InjectedSolutionConstraint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Returns
Type Description
InjectedSolutionConstraint.ConstraintRelaxation

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;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder>

getDefaultInstanceForType()

public InjectedSolutionConstraint getDefaultInstanceForType()
Returns
Type Description
InjectedSolutionConstraint

getParserForType()

public Parser<InjectedSolutionConstraint> getParserForType()
Returns
Type Description
Parser<InjectedSolutionConstraint>
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
Returns
Type Description
ShipmentRoute

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;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
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
Returns
Type Description
SkippedShipment

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;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public InjectedSolutionConstraint.Builder newBuilderForType()
Returns
Type Description
InjectedSolutionConstraint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InjectedSolutionConstraint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
InjectedSolutionConstraint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public InjectedSolutionConstraint.Builder toBuilder()
Returns
Type Description
InjectedSolutionConstraint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException