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 StringgetDependentShipmentTypes(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.ByteStringgetDependentShipmentTypesBytes(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.intgetDependentShipmentTypesCount()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.StringgetRequiredShipmentTypeAlternatives(int index)List of alternative shipment types required by the `dependent_shipment_types`.com.google.protobuf.ByteStringgetRequiredShipmentTypeAlternativesBytes(int index)List of alternative shipment types required by the `dependent_shipment_types`.intgetRequiredShipmentTypeAlternativesCount()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.RequirementModegetRequirementMode()Mode applied to the requirement.intgetRequirementModeValue()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.
-
-