Interface GeocodeOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.geo.type.Viewport getBounds()
      The bounds of the geocoded place.
      com.google.geo.type.ViewportOrBuilder getBoundsOrBuilder()
      The bounds of the geocoded place.
      float getFeatureSizeMeters()
      The size of the geocoded place, in meters.
      com.google.type.LatLng getLocation()
      The geocoded location of the input.
      com.google.type.LatLngOrBuilder getLocationOrBuilder()
      The geocoded location of the input.
      String getPlaceId()
      The PlaceID of the place this input geocodes to.
      com.google.protobuf.ByteString getPlaceIdBytes()
      The PlaceID of the place this input geocodes to.
      String getPlaceTypes​(int index)
      The type(s) of place that the input geocoded to.
      com.google.protobuf.ByteString getPlaceTypesBytes​(int index)
      The type(s) of place that the input geocoded to.
      int getPlaceTypesCount()
      The type(s) of place that the input geocoded to.
      List<String> getPlaceTypesList()
      The type(s) of place that the input geocoded to.
      PlusCode getPlusCode()
      The plus code corresponding to the `location`.
      PlusCodeOrBuilder getPlusCodeOrBuilder()
      The plus code corresponding to the `location`.
      boolean hasBounds()
      The bounds of the geocoded place.
      boolean hasLocation()
      The geocoded location of the input.
      boolean hasPlusCode()
      The plus code corresponding to the `location`.
      • 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

      • hasLocation

        boolean hasLocation()
         The geocoded location of the input.
        
         Using place IDs is preferred over using addresses,
         latitude/longitude coordinates, or plus codes. Using coordinates when
         routing or calculating driving directions will always result in the point
         being snapped to the road nearest to those coordinates. This may not be a
         road that will quickly or safely lead to the destination and may not be
         near an access point to the property. Additionally, when a location is
         reverse geocoded, there is no guarantee that the returned address will
         match the original.
         
        .google.type.LatLng location = 1;
        Returns:
        Whether the location field is set.
      • getLocation

        com.google.type.LatLng getLocation()
         The geocoded location of the input.
        
         Using place IDs is preferred over using addresses,
         latitude/longitude coordinates, or plus codes. Using coordinates when
         routing or calculating driving directions will always result in the point
         being snapped to the road nearest to those coordinates. This may not be a
         road that will quickly or safely lead to the destination and may not be
         near an access point to the property. Additionally, when a location is
         reverse geocoded, there is no guarantee that the returned address will
         match the original.
         
        .google.type.LatLng location = 1;
        Returns:
        The location.
      • getLocationOrBuilder

        com.google.type.LatLngOrBuilder getLocationOrBuilder()
         The geocoded location of the input.
        
         Using place IDs is preferred over using addresses,
         latitude/longitude coordinates, or plus codes. Using coordinates when
         routing or calculating driving directions will always result in the point
         being snapped to the road nearest to those coordinates. This may not be a
         road that will quickly or safely lead to the destination and may not be
         near an access point to the property. Additionally, when a location is
         reverse geocoded, there is no guarantee that the returned address will
         match the original.
         
        .google.type.LatLng location = 1;
      • hasPlusCode

        boolean hasPlusCode()
         The plus code corresponding to the `location`.
         
        .google.maps.addressvalidation.v1.PlusCode plus_code = 2;
        Returns:
        Whether the plusCode field is set.
      • getPlusCode

        PlusCode getPlusCode()
         The plus code corresponding to the `location`.
         
        .google.maps.addressvalidation.v1.PlusCode plus_code = 2;
        Returns:
        The plusCode.
      • getPlusCodeOrBuilder

        PlusCodeOrBuilder getPlusCodeOrBuilder()
         The plus code corresponding to the `location`.
         
        .google.maps.addressvalidation.v1.PlusCode plus_code = 2;
      • hasBounds

        boolean hasBounds()
         The bounds of the geocoded place.
         
        .google.geo.type.Viewport bounds = 4;
        Returns:
        Whether the bounds field is set.
      • getBounds

        com.google.geo.type.Viewport getBounds()
         The bounds of the geocoded place.
         
        .google.geo.type.Viewport bounds = 4;
        Returns:
        The bounds.
      • getBoundsOrBuilder

        com.google.geo.type.ViewportOrBuilder getBoundsOrBuilder()
         The bounds of the geocoded place.
         
        .google.geo.type.Viewport bounds = 4;
      • getFeatureSizeMeters

        float getFeatureSizeMeters()
         The size of the geocoded place, in meters. This is another measure of the
         coarseness of the geocoded location, but in physical size rather than in
         semantic meaning.
         
        float feature_size_meters = 5;
        Returns:
        The featureSizeMeters.
      • getPlaceId

        String getPlaceId()
         The PlaceID of the place this input geocodes to.
        
         For more information about Place IDs see
         [here](https://developers.google.com/maps/documentation/places/web-service/place-id).
         
        string place_id = 6;
        Returns:
        The placeId.
      • getPlaceIdBytes

        com.google.protobuf.ByteString getPlaceIdBytes()
         The PlaceID of the place this input geocodes to.
        
         For more information about Place IDs see
         [here](https://developers.google.com/maps/documentation/places/web-service/place-id).
         
        string place_id = 6;
        Returns:
        The bytes for placeId.
      • getPlaceTypesList

        List<String> getPlaceTypesList()
         The type(s) of place that the input geocoded to. For example,
         `['locality', 'political']`. The full list of types can be found
         [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
         
        repeated string place_types = 7;
        Returns:
        A list containing the placeTypes.
      • getPlaceTypesCount

        int getPlaceTypesCount()
         The type(s) of place that the input geocoded to. For example,
         `['locality', 'political']`. The full list of types can be found
         [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
         
        repeated string place_types = 7;
        Returns:
        The count of placeTypes.
      • getPlaceTypes

        String getPlaceTypes​(int index)
         The type(s) of place that the input geocoded to. For example,
         `['locality', 'political']`. The full list of types can be found
         [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
         
        repeated string place_types = 7;
        Parameters:
        index - The index of the element to return.
        Returns:
        The placeTypes at the given index.
      • getPlaceTypesBytes

        com.google.protobuf.ByteString getPlaceTypesBytes​(int index)
         The type(s) of place that the input geocoded to. For example,
         `['locality', 'political']`. The full list of types can be found
         [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
         
        repeated string place_types = 7;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the placeTypes at the given index.