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

    Modifier and Type
    Method
    Description
    Refer to the comments of Code.
    int
    Refer to the comments of Code.
    If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one capacity type that is exceeded.
    com.google.protobuf.ByteString
    If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one capacity type that is exceeded.
    int
    If the reason is related to a shipment-vehicle incompatibility, this field provides the index of one relevant vehicle.
    boolean
    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.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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

       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.