- 1.53.0 (latest)
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.14
- 0.1.2
public static final class SkippedShipment.Reason.Builder extends GeneratedMessageV3.Builder<SkippedShipment.Reason.Builder> implements SkippedShipment.ReasonOrBuilder
If we can explain why the shipment was skipped, reasons will be listed
here. If the reason is not the same for all vehicles, reason
will have
more than 1 element. A skipped shipment cannot have duplicate reasons,
i.e. where all fields are the same except for example_vehicle_index
.
Example:
<code><code>
reasons {
code: DEMAND_EXCEEDS_VEHICLE_CAPACITY
example_vehicle_index: 1
example_exceeded_capacity_type: "Apples"
}
reasons {
code: DEMAND_EXCEEDS_VEHICLE_CAPACITY
example_vehicle_index: 3
example_exceeded_capacity_type: "Pears"
}
reasons {
code: CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT
example_vehicle_index: 1
}
</code></code>
The skipped shipment is incompatible with all vehicles. The reasons may
be different for all vehicles but at least one vehicle's "Apples"
capacity would be exceeded (including vehicle 1), at least one vehicle's
"Pears" capacity would be exceeded (including vehicle 3) and at least one
vehicle's distance limit would be exceeded (including vehicle 1).
Protobuf type google.cloud.optimization.v1.SkippedShipment.Reason
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SkippedShipment.Reason.BuilderImplements
SkippedShipment.ReasonOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SkippedShipment.Reason.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SkippedShipment.Reason.Builder |
build()
public SkippedShipment.Reason build()
Type | Description |
SkippedShipment.Reason |
buildPartial()
public SkippedShipment.Reason buildPartial()
Type | Description |
SkippedShipment.Reason |
clear()
public SkippedShipment.Reason.Builder clear()
Type | Description |
SkippedShipment.Reason.Builder |
clearCode()
public SkippedShipment.Reason.Builder clearCode()
Refer to the comments of Code.
.google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1;
Type | Description |
SkippedShipment.Reason.Builder | This builder for chaining. |
clearExampleExceededCapacityType()
public SkippedShipment.Reason.Builder clearExampleExceededCapacityType()
If the reason code is DEMAND_EXCEEDS_VEHICLE_CAPACITY
, documents one
capacity type that is exceeded.
string example_exceeded_capacity_type = 3;
Type | Description |
SkippedShipment.Reason.Builder | This builder for chaining. |
clearExampleVehicleIndex()
public SkippedShipment.Reason.Builder clearExampleVehicleIndex()
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;
Type | Description |
SkippedShipment.Reason.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SkippedShipment.Reason.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SkippedShipment.Reason.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SkippedShipment.Reason.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SkippedShipment.Reason.Builder |
clone()
public SkippedShipment.Reason.Builder clone()
Type | Description |
SkippedShipment.Reason.Builder |
getCode()
public SkippedShipment.Reason.Code getCode()
Refer to the comments of Code.
.google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1;
Type | Description |
SkippedShipment.Reason.Code | The code. |
getCodeValue()
public int getCodeValue()
Refer to the comments of Code.
.google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1;
Type | Description |
int | The enum numeric value on the wire for code. |
getDefaultInstanceForType()
public SkippedShipment.Reason getDefaultInstanceForType()
Type | Description |
SkippedShipment.Reason |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getExampleExceededCapacityType()
public String getExampleExceededCapacityType()
If the reason code is DEMAND_EXCEEDS_VEHICLE_CAPACITY
, documents one
capacity type that is exceeded.
string example_exceeded_capacity_type = 3;
Type | Description |
String | The exampleExceededCapacityType. |
getExampleExceededCapacityTypeBytes()
public ByteString getExampleExceededCapacityTypeBytes()
If the reason code is DEMAND_EXCEEDS_VEHICLE_CAPACITY
, documents one
capacity type that is exceeded.
string example_exceeded_capacity_type = 3;
Type | Description |
ByteString | The bytes for exampleExceededCapacityType. |
getExampleVehicleIndex()
public 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;
Type | Description |
int | The exampleVehicleIndex. |
hasExampleVehicleIndex()
public 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;
Type | Description |
boolean | Whether the exampleVehicleIndex field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(SkippedShipment.Reason other)
public SkippedShipment.Reason.Builder mergeFrom(SkippedShipment.Reason other)
Name | Description |
other | SkippedShipment.Reason |
Type | Description |
SkippedShipment.Reason.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SkippedShipment.Reason.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SkippedShipment.Reason.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SkippedShipment.Reason.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SkippedShipment.Reason.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SkippedShipment.Reason.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SkippedShipment.Reason.Builder |
setCode(SkippedShipment.Reason.Code value)
public SkippedShipment.Reason.Builder setCode(SkippedShipment.Reason.Code value)
Refer to the comments of Code.
.google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1;
Name | Description |
value | SkippedShipment.Reason.Code The code to set. |
Type | Description |
SkippedShipment.Reason.Builder | This builder for chaining. |
setCodeValue(int value)
public SkippedShipment.Reason.Builder setCodeValue(int value)
Refer to the comments of Code.
.google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1;
Name | Description |
value | int The enum numeric value on the wire for code to set. |
Type | Description |
SkippedShipment.Reason.Builder | This builder for chaining. |
setExampleExceededCapacityType(String value)
public SkippedShipment.Reason.Builder setExampleExceededCapacityType(String value)
If the reason code is DEMAND_EXCEEDS_VEHICLE_CAPACITY
, documents one
capacity type that is exceeded.
string example_exceeded_capacity_type = 3;
Name | Description |
value | String The exampleExceededCapacityType to set. |
Type | Description |
SkippedShipment.Reason.Builder | This builder for chaining. |
setExampleExceededCapacityTypeBytes(ByteString value)
public SkippedShipment.Reason.Builder setExampleExceededCapacityTypeBytes(ByteString value)
If the reason code is DEMAND_EXCEEDS_VEHICLE_CAPACITY
, documents one
capacity type that is exceeded.
string example_exceeded_capacity_type = 3;
Name | Description |
value | ByteString The bytes for exampleExceededCapacityType to set. |
Type | Description |
SkippedShipment.Reason.Builder | This builder for chaining. |
setExampleVehicleIndex(int value)
public SkippedShipment.Reason.Builder setExampleVehicleIndex(int value)
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;
Name | Description |
value | int The exampleVehicleIndex to set. |
Type | Description |
SkippedShipment.Reason.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SkippedShipment.Reason.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SkippedShipment.Reason.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SkippedShipment.Reason.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
SkippedShipment.Reason.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SkippedShipment.Reason.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SkippedShipment.Reason.Builder |