Interface ComputeRoutesResponseOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      FallbackInfo getFallbackInfo()
      In some cases when the server is not able to compute the route results with all of the input preferences, it may fallback to using a different way of computation.
      FallbackInfoOrBuilder getFallbackInfoOrBuilder()
      In some cases when the server is not able to compute the route results with all of the input preferences, it may fallback to using a different way of computation.
      GeocodingResults getGeocodingResults()
      Contains geocoding response info for waypoints specified as addresses.
      GeocodingResultsOrBuilder getGeocodingResultsOrBuilder()
      Contains geocoding response info for waypoints specified as addresses.
      Route getRoutes​(int index)
      Contains an array of computed routes (up to three) when you specify compute_alternatives_routes, and contains just one route when you don't.
      int getRoutesCount()
      Contains an array of computed routes (up to three) when you specify compute_alternatives_routes, and contains just one route when you don't.
      List<Route> getRoutesList()
      Contains an array of computed routes (up to three) when you specify compute_alternatives_routes, and contains just one route when you don't.
      RouteOrBuilder getRoutesOrBuilder​(int index)
      Contains an array of computed routes (up to three) when you specify compute_alternatives_routes, and contains just one route when you don't.
      List<? extends RouteOrBuilder> getRoutesOrBuilderList()
      Contains an array of computed routes (up to three) when you specify compute_alternatives_routes, and contains just one route when you don't.
      boolean hasFallbackInfo()
      In some cases when the server is not able to compute the route results with all of the input preferences, it may fallback to using a different way of computation.
      boolean hasGeocodingResults()
      Contains geocoding response info for waypoints specified as addresses.
      • 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

      • getRoutesList

        List<Route> getRoutesList()
         Contains an array of computed routes (up to three) when you specify
         compute_alternatives_routes, and contains just one route when you don't.
         When this array contains multiple entries, the first one is the most
         recommended route. If the array is empty, then it means no route could be
         found.
         
        repeated .google.maps.routing.v2.Route routes = 1;
      • getRoutes

        Route getRoutes​(int index)
         Contains an array of computed routes (up to three) when you specify
         compute_alternatives_routes, and contains just one route when you don't.
         When this array contains multiple entries, the first one is the most
         recommended route. If the array is empty, then it means no route could be
         found.
         
        repeated .google.maps.routing.v2.Route routes = 1;
      • getRoutesCount

        int getRoutesCount()
         Contains an array of computed routes (up to three) when you specify
         compute_alternatives_routes, and contains just one route when you don't.
         When this array contains multiple entries, the first one is the most
         recommended route. If the array is empty, then it means no route could be
         found.
         
        repeated .google.maps.routing.v2.Route routes = 1;
      • getRoutesOrBuilderList

        List<? extends RouteOrBuilder> getRoutesOrBuilderList()
         Contains an array of computed routes (up to three) when you specify
         compute_alternatives_routes, and contains just one route when you don't.
         When this array contains multiple entries, the first one is the most
         recommended route. If the array is empty, then it means no route could be
         found.
         
        repeated .google.maps.routing.v2.Route routes = 1;
      • getRoutesOrBuilder

        RouteOrBuilder getRoutesOrBuilder​(int index)
         Contains an array of computed routes (up to three) when you specify
         compute_alternatives_routes, and contains just one route when you don't.
         When this array contains multiple entries, the first one is the most
         recommended route. If the array is empty, then it means no route could be
         found.
         
        repeated .google.maps.routing.v2.Route routes = 1;
      • hasFallbackInfo

        boolean hasFallbackInfo()
         In some cases when the server is not able to compute the route results with
         all of the input preferences, it may fallback to using a different way of
         computation. When fallback mode is used, this field contains detailed info
         about the fallback response. Otherwise this field is unset.
         
        .google.maps.routing.v2.FallbackInfo fallback_info = 2;
        Returns:
        Whether the fallbackInfo field is set.
      • getFallbackInfo

        FallbackInfo getFallbackInfo()
         In some cases when the server is not able to compute the route results with
         all of the input preferences, it may fallback to using a different way of
         computation. When fallback mode is used, this field contains detailed info
         about the fallback response. Otherwise this field is unset.
         
        .google.maps.routing.v2.FallbackInfo fallback_info = 2;
        Returns:
        The fallbackInfo.
      • getFallbackInfoOrBuilder

        FallbackInfoOrBuilder getFallbackInfoOrBuilder()
         In some cases when the server is not able to compute the route results with
         all of the input preferences, it may fallback to using a different way of
         computation. When fallback mode is used, this field contains detailed info
         about the fallback response. Otherwise this field is unset.
         
        .google.maps.routing.v2.FallbackInfo fallback_info = 2;
      • hasGeocodingResults

        boolean hasGeocodingResults()
         Contains geocoding response info for waypoints specified as addresses.
         
        .google.maps.routing.v2.GeocodingResults geocoding_results = 3;
        Returns:
        Whether the geocodingResults field is set.
      • getGeocodingResults

        GeocodingResults getGeocodingResults()
         Contains geocoding response info for waypoints specified as addresses.
         
        .google.maps.routing.v2.GeocodingResults geocoding_results = 3;
        Returns:
        The geocodingResults.
      • getGeocodingResultsOrBuilder

        GeocodingResultsOrBuilder getGeocodingResultsOrBuilder()
         Contains geocoding response info for waypoints specified as addresses.
         
        .google.maps.routing.v2.GeocodingResults geocoding_results = 3;