Send feedback
Class InjectedSolutionConstraint.ConstraintRelaxation (1.18.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.18.0 keyboard_arrow_down
public static final class InjectedSolutionConstraint . ConstraintRelaxation extends GeneratedMessageV3 implements InjectedSolutionConstraint . ConstraintRelaxationOrBuilder
For a group of vehicles, specifies at what threshold(s) constraints on
visits will be relaxed and to which level. Shipments listed in
the skipped_shipment
field are constrained to be skipped; i.e., they
cannot be performed.
Protobuf type
google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
RELAXATIONS_FIELD_NUMBER
public static final int RELAXATIONS_FIELD_NUMBER
Field Value Type Description int
VEHICLE_INDICES_FIELD_NUMBER
public static final int VEHICLE_INDICES_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static InjectedSolutionConstraint . ConstraintRelaxation getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static InjectedSolutionConstraint . ConstraintRelaxation . Builder newBuilder ()
newBuilder(InjectedSolutionConstraint.ConstraintRelaxation prototype)
public static InjectedSolutionConstraint . ConstraintRelaxation . Builder newBuilder ( InjectedSolutionConstraint . ConstraintRelaxation prototype )
public static InjectedSolutionConstraint . ConstraintRelaxation parseDelimitedFrom ( InputStream input )
public static InjectedSolutionConstraint . ConstraintRelaxation parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static InjectedSolutionConstraint . ConstraintRelaxation parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InjectedSolutionConstraint . ConstraintRelaxation parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static InjectedSolutionConstraint . ConstraintRelaxation parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InjectedSolutionConstraint . ConstraintRelaxation parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static InjectedSolutionConstraint . ConstraintRelaxation parseFrom ( CodedInputStream input )
public static InjectedSolutionConstraint . ConstraintRelaxation parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static InjectedSolutionConstraint . ConstraintRelaxation parseFrom ( InputStream input )
public static InjectedSolutionConstraint . ConstraintRelaxation parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static InjectedSolutionConstraint . ConstraintRelaxation parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InjectedSolutionConstraint . ConstraintRelaxation parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<InjectedSolutionConstraint . ConstraintRelaxation> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getDefaultInstanceForType()
public InjectedSolutionConstraint . ConstraintRelaxation getDefaultInstanceForType ()
getParserForType()
public Parser<InjectedSolutionConstraint . ConstraintRelaxation> getParserForType ()
Overrides
getRelaxations(int index)
public InjectedSolutionConstraint . ConstraintRelaxation . Relaxation getRelaxations ( int index )
All the visit constraint relaxations that will apply to visits on
routes with vehicles in vehicle_indices
.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
Parameter Name Description index
int
getRelaxationsCount()
public int getRelaxationsCount ()
All the visit constraint relaxations that will apply to visits on
routes with vehicles in vehicle_indices
.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
Returns Type Description int
getRelaxationsList()
public List<InjectedSolutionConstraint . ConstraintRelaxation . Relaxation> getRelaxationsList ()
All the visit constraint relaxations that will apply to visits on
routes with vehicles in vehicle_indices
.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
getRelaxationsOrBuilder(int index)
public InjectedSolutionConstraint . ConstraintRelaxation . RelaxationOrBuilder getRelaxationsOrBuilder ( int index )
All the visit constraint relaxations that will apply to visits on
routes with vehicles in vehicle_indices
.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
Parameter Name Description index
int
getRelaxationsOrBuilderList()
public List <? extends InjectedSolutionConstraint . ConstraintRelaxation . RelaxationOrBuilder > getRelaxationsOrBuilderList ()
All the visit constraint relaxations that will apply to visits on
routes with vehicles in vehicle_indices
.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
Returns Type Description List <? extends com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder >
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
Overrides
getVehicleIndices(int index)
public int getVehicleIndices ( int index )
Specifies the vehicle indices to which the visit constraint
relaxations
apply. If empty, this is considered the default and the
relaxations
apply to all vehicles that are not specified in other
constraint_relaxations
. There can be at most one default, i.e., at
most one constraint relaxation field is allowed empty
vehicle_indices
. A vehicle index can only be listed once, even within
several constraint_relaxations
.
A vehicle index is mapped the same as
ShipmentRoute.vehicle_index ,
if interpret_injected_solutions_using_labels
is true (see fields
comment).
repeated int32 vehicle_indices = 2;
Parameter Name Description index
int
The index of the element to return.
Returns Type Description int
The vehicleIndices at the given index.
getVehicleIndicesCount()
public int getVehicleIndicesCount ()
Specifies the vehicle indices to which the visit constraint
relaxations
apply. If empty, this is considered the default and the
relaxations
apply to all vehicles that are not specified in other
constraint_relaxations
. There can be at most one default, i.e., at
most one constraint relaxation field is allowed empty
vehicle_indices
. A vehicle index can only be listed once, even within
several constraint_relaxations
.
A vehicle index is mapped the same as
ShipmentRoute.vehicle_index ,
if interpret_injected_solutions_using_labels
is true (see fields
comment).
repeated int32 vehicle_indices = 2;
Returns Type Description int
The count of vehicleIndices.
getVehicleIndicesList()
public List<Integer> getVehicleIndicesList ()
Specifies the vehicle indices to which the visit constraint
relaxations
apply. If empty, this is considered the default and the
relaxations
apply to all vehicles that are not specified in other
constraint_relaxations
. There can be at most one default, i.e., at
most one constraint relaxation field is allowed empty
vehicle_indices
. A vehicle index can only be listed once, even within
several constraint_relaxations
.
A vehicle index is mapped the same as
ShipmentRoute.vehicle_index ,
if interpret_injected_solutions_using_labels
is true (see fields
comment).
repeated int32 vehicle_indices = 2;
Returns Type Description List <Integer >
A list containing the vehicleIndices.
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public InjectedSolutionConstraint . ConstraintRelaxation . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected InjectedSolutionConstraint . ConstraintRelaxation . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public InjectedSolutionConstraint . ConstraintRelaxation . 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 2024-10-01 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-01 UTC."}
[[["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 2024-10-01 UTC."]]