Interface RouteModifiersOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    RouteModifiers, RouteModifiers.Builder

    public interface RouteModifiersOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getAvoidFerries()
      When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries.
      boolean getAvoidHighways()
      When set to true, avoids highways where reasonable, giving preference to routes not containing highways.
      boolean getAvoidIndoor()
      When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation.
      boolean getAvoidTolls()
      When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads.
      TollPass getTollPasses​(int index)
      Encapsulates information about toll passes.
      int getTollPassesCount()
      Encapsulates information about toll passes.
      List<TollPass> getTollPassesList()
      Encapsulates information about toll passes.
      int getTollPassesValue​(int index)
      Encapsulates information about toll passes.
      List<Integer> getTollPassesValueList()
      Encapsulates information about toll passes.
      VehicleInfo getVehicleInfo()
      Specifies the vehicle information.
      VehicleInfoOrBuilder getVehicleInfoOrBuilder()
      Specifies the vehicle information.
      boolean hasVehicleInfo()
      Specifies the vehicle information.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getAvoidTolls

        boolean getAvoidTolls()
         When set to true, avoids toll roads where reasonable, giving preference to
         routes not containing toll roads. Applies only to the `DRIVE` and
         `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
         
        bool avoid_tolls = 1;
        Returns:
        The avoidTolls.
      • getAvoidHighways

        boolean getAvoidHighways()
         When set to true, avoids highways where reasonable, giving preference to
         routes not containing highways. Applies only to the `DRIVE` and
         `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
         
        bool avoid_highways = 2;
        Returns:
        The avoidHighways.
      • getAvoidFerries

        boolean getAvoidFerries()
         When set to true, avoids ferries where reasonable, giving preference to
         routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
         
        bool avoid_ferries = 3;
        Returns:
        The avoidFerries.
      • getAvoidIndoor

        boolean getAvoidIndoor()
         When set to true, avoids navigating indoors where reasonable, giving
         preference to routes not containing indoor navigation. Applies only to the
         `WALK` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
         
        bool avoid_indoor = 4;
        Returns:
        The avoidIndoor.
      • hasVehicleInfo

        boolean hasVehicleInfo()
         Specifies the vehicle information.
         
        .google.maps.routing.v2.VehicleInfo vehicle_info = 5;
        Returns:
        Whether the vehicleInfo field is set.
      • getVehicleInfo

        VehicleInfo getVehicleInfo()
         Specifies the vehicle information.
         
        .google.maps.routing.v2.VehicleInfo vehicle_info = 5;
        Returns:
        The vehicleInfo.
      • getVehicleInfoOrBuilder

        VehicleInfoOrBuilder getVehicleInfoOrBuilder()
         Specifies the vehicle information.
         
        .google.maps.routing.v2.VehicleInfo vehicle_info = 5;
      • getTollPassesList

        List<TollPass> getTollPassesList()
         Encapsulates information about toll passes.
         If toll passes are provided, the API tries to return the pass price. If
         toll passes are not provided, the API treats the toll pass as unknown and
         tries to return the cash price.
         Applies only to the `DRIVE` and `TWO_WHEELER`
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
         
        repeated .google.maps.routing.v2.TollPass toll_passes = 6;
        Returns:
        A list containing the tollPasses.
      • getTollPassesCount

        int getTollPassesCount()
         Encapsulates information about toll passes.
         If toll passes are provided, the API tries to return the pass price. If
         toll passes are not provided, the API treats the toll pass as unknown and
         tries to return the cash price.
         Applies only to the `DRIVE` and `TWO_WHEELER`
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
         
        repeated .google.maps.routing.v2.TollPass toll_passes = 6;
        Returns:
        The count of tollPasses.
      • getTollPasses

        TollPass getTollPasses​(int index)
         Encapsulates information about toll passes.
         If toll passes are provided, the API tries to return the pass price. If
         toll passes are not provided, the API treats the toll pass as unknown and
         tries to return the cash price.
         Applies only to the `DRIVE` and `TWO_WHEELER`
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
         
        repeated .google.maps.routing.v2.TollPass toll_passes = 6;
        Parameters:
        index - The index of the element to return.
        Returns:
        The tollPasses at the given index.
      • getTollPassesValueList

        List<Integer> getTollPassesValueList()
         Encapsulates information about toll passes.
         If toll passes are provided, the API tries to return the pass price. If
         toll passes are not provided, the API treats the toll pass as unknown and
         tries to return the cash price.
         Applies only to the `DRIVE` and `TWO_WHEELER`
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
         
        repeated .google.maps.routing.v2.TollPass toll_passes = 6;
        Returns:
        A list containing the enum numeric values on the wire for tollPasses.
      • getTollPassesValue

        int getTollPassesValue​(int index)
         Encapsulates information about toll passes.
         If toll passes are provided, the API tries to return the pass price. If
         toll passes are not provided, the API treats the toll pass as unknown and
         tries to return the cash price.
         Applies only to the `DRIVE` and `TWO_WHEELER`
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
         
        repeated .google.maps.routing.v2.TollPass toll_passes = 6;
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of tollPasses at the given index.