Interface SkippedShipment.ReasonOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      SkippedShipment.Reason.Code getCode()
      Refer to the comments of Code.
      int getCodeValue()
      Refer to the comments of Code.
      String getExampleExceededCapacityType()
      If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one capacity type that is exceeded.
      com.google.protobuf.ByteString getExampleExceededCapacityTypeBytes()
      If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one capacity type that is exceeded.
      int getExampleVehicleIndex()
      If the reason is related to a shipment-vehicle incompatibility, this field provides the index of one relevant vehicle.
      boolean hasExampleVehicleIndex()
      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 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.