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
@Generated
public interface ShipmentTypeRequirementOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetDependentShipmentTypes(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.intAll 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.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.getRequiredShipmentTypeAlternatives(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`.intList of alternative shipment types required by the `dependent_shipment_types`.List of alternative shipment types required by the `dependent_shipment_types`.Mode applied to the requirement.intMode applied to the requirement.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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
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.
-