publicstaticfinalclass InjectedSolutionConstraint.ConstraintRelaxationextendsGeneratedMessageV3implementsInjectedSolutionConstraint.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)
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
RELAXATIONS_FIELD_NUMBER
publicstaticfinalintRELAXATIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VEHICLE_INDICES_FIELD_NUMBER
publicstaticfinalintVEHICLE_INDICES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticInjectedSolutionConstraint.ConstraintRelaxationgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticInjectedSolutionConstraint.ConstraintRelaxation.BuildernewBuilder()
newBuilder(InjectedSolutionConstraint.ConstraintRelaxation prototype)
publicstaticInjectedSolutionConstraint.ConstraintRelaxation.BuildernewBuilder(InjectedSolutionConstraint.ConstraintRelaxationprototype)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseDelimitedFrom(InputStreaminput)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseFrom(CodedInputStreaminput)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseFrom(InputStreaminput)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticInjectedSolutionConstraint.ConstraintRelaxationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<InjectedSolutionConstraint.ConstraintRelaxation>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicInjectedSolutionConstraint.ConstraintRelaxationgetDefaultInstanceForType()
getParserForType()
publicParser<InjectedSolutionConstraint.ConstraintRelaxation>getParserForType()
Overrides
getRelaxations(int index)
publicInjectedSolutionConstraint.ConstraintRelaxation.RelaxationgetRelaxations(intindex)
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()
publicintgetRelaxationsCount()
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()
publicList<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)
publicInjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuildergetRelaxationsOrBuilder(intindex)
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()
publicList<?extendsInjectedSolutionConstraint.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()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getVehicleIndices(int index)
publicintgetVehicleIndices(intindex)
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()
publicintgetVehicleIndicesCount()
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()
publicList<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()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicInjectedSolutionConstraint.ConstraintRelaxation.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedInjectedSolutionConstraint.ConstraintRelaxation.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicInjectedSolutionConstraint.ConstraintRelaxation.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides