Interface SkippedShipment.ReasonOrBuilder (1.43.0)

public static interface SkippedShipment.ReasonOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCode()

public abstract SkippedShipment.Reason.Code getCode()

Refer to the comments of Code.

.google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1;

Returns
Type Description
SkippedShipment.Reason.Code

The code.

getCodeValue()

public abstract int getCodeValue()

Refer to the comments of Code.

.google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1;

Returns
Type Description
int

The enum numeric value on the wire for code.

getExampleExceededCapacityType()

public abstract 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
Type Description
String

The exampleExceededCapacityType.

getExampleExceededCapacityTypeBytes()

public abstract 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
Type Description
ByteString

The bytes for exampleExceededCapacityType.

getExampleVehicleIndex()

public abstract 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
Type Description
int

The exampleVehicleIndex.

hasExampleVehicleIndex()

public abstract 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
Type Description
boolean

Whether the exampleVehicleIndex field is set.