Package com.google.cloud.optimization.v1
Interface SkippedShipment.ReasonOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SkippedShipment.Reason,SkippedShipment.Reason.Builder
- Enclosing class:
- SkippedShipment
public static interface SkippedShipment.ReasonOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SkippedShipment.Reason.CodegetCode()Refer to the comments of Code.intgetCodeValue()Refer to the comments of Code.StringgetExampleExceededCapacityType()If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one capacity type that is exceeded.com.google.protobuf.ByteStringgetExampleExceededCapacityTypeBytes()If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one capacity type that is exceeded.intgetExampleVehicleIndex()If the reason is related to a shipment-vehicle incompatibility, this field provides the index of one relevant vehicle.booleanhasExampleVehicleIndex()If the reason is related to a shipment-vehicle incompatibility, this field provides the index of one relevant vehicle.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getCodeValue
int getCodeValue()
Refer to the comments of Code.
.google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1;- Returns:
- The enum numeric value on the wire for code.
-
getCode
SkippedShipment.Reason.Code getCode()
Refer to the comments of Code.
.google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1;- Returns:
- The code.
-
hasExampleVehicleIndex
boolean hasExampleVehicleIndex()
If the reason is related to a shipment-vehicle incompatibility, this field provides the index of one relevant vehicle.
optional int32 example_vehicle_index = 2;- Returns:
- Whether the exampleVehicleIndex field is set.
-
getExampleVehicleIndex
int getExampleVehicleIndex()
If the reason is related to a shipment-vehicle incompatibility, this field provides the index of one relevant vehicle.
optional int32 example_vehicle_index = 2;- Returns:
- The exampleVehicleIndex.
-
getExampleExceededCapacityType
String getExampleExceededCapacityType()
If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one capacity type that is exceeded.
string example_exceeded_capacity_type = 3;- Returns:
- The exampleExceededCapacityType.
-
getExampleExceededCapacityTypeBytes
com.google.protobuf.ByteString getExampleExceededCapacityTypeBytes()
If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one capacity type that is exceeded.
string example_exceeded_capacity_type = 3;- Returns:
- The bytes for exampleExceededCapacityType.
-
-