Package com.google.cloud.optimization.v1
Interface ShipmentTypeRequirementOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ShipmentTypeRequirement
,ShipmentTypeRequirement.Builder
public interface ShipmentTypeRequirementOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDependentShipmentTypes(int index)
All shipments with a type in the `dependent_shipment_types` field require at least one shipment of type `required_shipment_type_alternatives` to be visited on the same route.com.google.protobuf.ByteString
getDependentShipmentTypesBytes(int index)
All shipments with a type in the `dependent_shipment_types` field require at least one shipment of type `required_shipment_type_alternatives` to be visited on the same route.int
getDependentShipmentTypesCount()
All shipments with a type in the `dependent_shipment_types` field require at least one shipment of type `required_shipment_type_alternatives` to be visited on the same route.List<String>
getDependentShipmentTypesList()
All shipments with a type in the `dependent_shipment_types` field require at least one shipment of type `required_shipment_type_alternatives` to be visited on the same route.String
getRequiredShipmentTypeAlternatives(int index)
List of alternative shipment types required by the `dependent_shipment_types`.com.google.protobuf.ByteString
getRequiredShipmentTypeAlternativesBytes(int index)
List of alternative shipment types required by the `dependent_shipment_types`.int
getRequiredShipmentTypeAlternativesCount()
List of alternative shipment types required by the `dependent_shipment_types`.List<String>
getRequiredShipmentTypeAlternativesList()
List of alternative shipment types required by the `dependent_shipment_types`.ShipmentTypeRequirement.RequirementMode
getRequirementMode()
Mode applied to the requirement.int
getRequirementModeValue()
Mode applied to the requirement.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getRequiredShipmentTypeAlternativesList
List<String> getRequiredShipmentTypeAlternativesList()
List of alternative shipment types required by the `dependent_shipment_types`.
repeated string required_shipment_type_alternatives = 1;
- Returns:
- A list containing the requiredShipmentTypeAlternatives.
-
getRequiredShipmentTypeAlternativesCount
int getRequiredShipmentTypeAlternativesCount()
List of alternative shipment types required by the `dependent_shipment_types`.
repeated string required_shipment_type_alternatives = 1;
- Returns:
- The count of requiredShipmentTypeAlternatives.
-
getRequiredShipmentTypeAlternatives
String getRequiredShipmentTypeAlternatives(int index)
List of alternative shipment types required by the `dependent_shipment_types`.
repeated string required_shipment_type_alternatives = 1;
- Parameters:
index
- The index of the element to return.- Returns:
- The requiredShipmentTypeAlternatives at the given index.
-
getRequiredShipmentTypeAlternativesBytes
com.google.protobuf.ByteString getRequiredShipmentTypeAlternativesBytes(int index)
List of alternative shipment types required by the `dependent_shipment_types`.
repeated string required_shipment_type_alternatives = 1;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the requiredShipmentTypeAlternatives at the given index.
-
getDependentShipmentTypesList
List<String> getDependentShipmentTypesList()
All shipments with a type in the `dependent_shipment_types` field require at least one shipment of type `required_shipment_type_alternatives` to be visited on the same route. NOTE: Chains of requirements such that a `shipment_type` depends on itself are not allowed.
repeated string dependent_shipment_types = 2;
- Returns:
- A list containing the dependentShipmentTypes.
-
getDependentShipmentTypesCount
int getDependentShipmentTypesCount()
All shipments with a type in the `dependent_shipment_types` field require at least one shipment of type `required_shipment_type_alternatives` to be visited on the same route. NOTE: Chains of requirements such that a `shipment_type` depends on itself are not allowed.
repeated string dependent_shipment_types = 2;
- Returns:
- The count of dependentShipmentTypes.
-
getDependentShipmentTypes
String getDependentShipmentTypes(int index)
All shipments with a type in the `dependent_shipment_types` field require at least one shipment of type `required_shipment_type_alternatives` to be visited on the same route. NOTE: Chains of requirements such that a `shipment_type` depends on itself are not allowed.
repeated string dependent_shipment_types = 2;
- Parameters:
index
- The index of the element to return.- Returns:
- The dependentShipmentTypes at the given index.
-
getDependentShipmentTypesBytes
com.google.protobuf.ByteString getDependentShipmentTypesBytes(int index)
All shipments with a type in the `dependent_shipment_types` field require at least one shipment of type `required_shipment_type_alternatives` to be visited on the same route. NOTE: Chains of requirements such that a `shipment_type` depends on itself are not allowed.
repeated string dependent_shipment_types = 2;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the dependentShipmentTypes at the given index.
-
getRequirementModeValue
int getRequirementModeValue()
Mode applied to the requirement.
.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3;
- Returns:
- The enum numeric value on the wire for requirementMode.
-
getRequirementMode
ShipmentTypeRequirement.RequirementMode getRequirementMode()
Mode applied to the requirement.
.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3;
- Returns:
- The requirementMode.
-
-