publicstaticfinalclass Vehicle.LoadLimitextendsGeneratedMessageV3implementsVehicle.LoadLimitOrBuilder
Defines a load limit applying to a vehicle, e.g. "this truck may only
carry up to 3500 kg". See
load_limits.
Protobuf type google.cloud.optimization.v1.Vehicle.LoadLimit
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
COST_PER_UNIT_ABOVE_SOFT_MAX_FIELD_NUMBER
publicstaticfinalintCOST_PER_UNIT_ABOVE_SOFT_MAX_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
END_LOAD_INTERVAL_FIELD_NUMBER
publicstaticfinalintEND_LOAD_INTERVAL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MAX_LOAD_FIELD_NUMBER
publicstaticfinalintMAX_LOAD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SOFT_MAX_LOAD_FIELD_NUMBER
publicstaticfinalintSOFT_MAX_LOAD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
START_LOAD_INTERVAL_FIELD_NUMBER
publicstaticfinalintSTART_LOAD_INTERVAL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticVehicle.LoadLimitgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticVehicle.LoadLimit.BuildernewBuilder()
newBuilder(Vehicle.LoadLimit prototype)
publicstaticVehicle.LoadLimit.BuildernewBuilder(Vehicle.LoadLimitprototype)
publicstaticVehicle.LoadLimitparseDelimitedFrom(InputStreaminput)
publicstaticVehicle.LoadLimitparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticVehicle.LoadLimitparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticVehicle.LoadLimitparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticVehicle.LoadLimitparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticVehicle.LoadLimitparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticVehicle.LoadLimitparseFrom(CodedInputStreaminput)
publicstaticVehicle.LoadLimitparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticVehicle.LoadLimitparseFrom(InputStreaminput)
publicstaticVehicle.LoadLimitparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticVehicle.LoadLimitparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticVehicle.LoadLimitparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<Vehicle.LoadLimit>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getCostPerUnitAboveSoftMax()
publicdoublegetCostPerUnitAboveSoftMax()
If the load ever exceeds
soft_max_load
along this vehicle's route, the following cost penalty applies (only once
per vehicle): (load -
soft_max_load)
- cost_per_unit_above_soft_max. All costs
add up and must be in the same unit as
Shipment.penalty_cost.
double cost_per_unit_above_soft_max = 3;
| Returns |
| Type |
Description |
double |
The costPerUnitAboveSoftMax.
|
getDefaultInstanceForType()
publicVehicle.LoadLimitgetDefaultInstanceForType()
getEndLoadInterval()
publicVehicle.LoadLimit.IntervalgetEndLoadInterval()
The acceptable load interval of the vehicle at the end of the route.
.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5;
getEndLoadIntervalOrBuilder()
publicVehicle.LoadLimit.IntervalOrBuildergetEndLoadIntervalOrBuilder()
The acceptable load interval of the vehicle at the end of the route.
.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5;
getMaxLoad()
The maximum acceptable amount of load.
optional int64 max_load = 1;
| Returns |
| Type |
Description |
long |
The maxLoad.
|
getParserForType()
publicParser<Vehicle.LoadLimit>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getSoftMaxLoad()
publiclonggetSoftMaxLoad()
A soft limit of the load. See
cost_per_unit_above_soft_max.
int64 soft_max_load = 2;
| Returns |
| Type |
Description |
long |
The softMaxLoad.
|
getStartLoadInterval()
publicVehicle.LoadLimit.IntervalgetStartLoadInterval()
The acceptable load interval of the vehicle at the start of the route.
.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4;
getStartLoadIntervalOrBuilder()
publicVehicle.LoadLimit.IntervalOrBuildergetStartLoadIntervalOrBuilder()
The acceptable load interval of the vehicle at the start of the route.
.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4;
hasEndLoadInterval()
publicbooleanhasEndLoadInterval()
The acceptable load interval of the vehicle at the end of the route.
.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5;
| Returns |
| Type |
Description |
boolean |
Whether the endLoadInterval field is set.
|
hasMaxLoad()
publicbooleanhasMaxLoad()
The maximum acceptable amount of load.
optional int64 max_load = 1;
| Returns |
| Type |
Description |
boolean |
Whether the maxLoad field is set.
|
hasStartLoadInterval()
publicbooleanhasStartLoadInterval()
The acceptable load interval of the vehicle at the start of the route.
.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4;
| Returns |
| Type |
Description |
boolean |
Whether the startLoadInterval field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicVehicle.LoadLimit.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedVehicle.LoadLimit.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicVehicle.LoadLimit.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides