Interface SkippedShipment.ReasonOrBuilder (1.26.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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the exampleVehicleIndex field is set.