Class GeocodingResults.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>
com.google.maps.routing.v2.GeocodingResults.Builder
All Implemented Interfaces:
GeocodingResultsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GeocodingResults

public static final class GeocodingResults.Builder extends com.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder> implements GeocodingResultsOrBuilder
 Contains [`GeocodedWaypoints`][google.maps.routing.v2.GeocodedWaypoint] for
 origin, destination and intermediate waypoints. Only populated for address
 waypoints.
 
Protobuf type google.maps.routing.v2.GeocodingResults
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>
    • clear

      public GeocodingResults.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>
    • getDefaultInstanceForType

      public GeocodingResults getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GeocodingResults build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GeocodingResults buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GeocodingResults.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GeocodingResults.Builder>
    • mergeFrom

      public GeocodingResults.Builder mergeFrom(GeocodingResults other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>
    • mergeFrom

      public GeocodingResults.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GeocodingResults.Builder>
      Throws:
      IOException
    • hasOrigin

      public boolean hasOrigin()
       Origin geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint origin = 1;
      Specified by:
      hasOrigin in interface GeocodingResultsOrBuilder
      Returns:
      Whether the origin field is set.
    • getOrigin

      public GeocodedWaypoint getOrigin()
       Origin geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint origin = 1;
      Specified by:
      getOrigin in interface GeocodingResultsOrBuilder
      Returns:
      The origin.
    • setOrigin

      public GeocodingResults.Builder setOrigin(GeocodedWaypoint value)
       Origin geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint origin = 1;
    • setOrigin

      public GeocodingResults.Builder setOrigin(GeocodedWaypoint.Builder builderForValue)
       Origin geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint origin = 1;
    • mergeOrigin

      public GeocodingResults.Builder mergeOrigin(GeocodedWaypoint value)
       Origin geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint origin = 1;
    • clearOrigin

      public GeocodingResults.Builder clearOrigin()
       Origin geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint origin = 1;
    • getOriginBuilder

      public GeocodedWaypoint.Builder getOriginBuilder()
       Origin geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint origin = 1;
    • getOriginOrBuilder

      public GeocodedWaypointOrBuilder getOriginOrBuilder()
       Origin geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint origin = 1;
      Specified by:
      getOriginOrBuilder in interface GeocodingResultsOrBuilder
    • hasDestination

      public boolean hasDestination()
       Destination geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint destination = 2;
      Specified by:
      hasDestination in interface GeocodingResultsOrBuilder
      Returns:
      Whether the destination field is set.
    • getDestination

      public GeocodedWaypoint getDestination()
       Destination geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint destination = 2;
      Specified by:
      getDestination in interface GeocodingResultsOrBuilder
      Returns:
      The destination.
    • setDestination

      public GeocodingResults.Builder setDestination(GeocodedWaypoint value)
       Destination geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint destination = 2;
    • setDestination

      public GeocodingResults.Builder setDestination(GeocodedWaypoint.Builder builderForValue)
       Destination geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint destination = 2;
    • mergeDestination

      public GeocodingResults.Builder mergeDestination(GeocodedWaypoint value)
       Destination geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint destination = 2;
    • clearDestination

      public GeocodingResults.Builder clearDestination()
       Destination geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint destination = 2;
    • getDestinationBuilder

      public GeocodedWaypoint.Builder getDestinationBuilder()
       Destination geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint destination = 2;
    • getDestinationOrBuilder

      public GeocodedWaypointOrBuilder getDestinationOrBuilder()
       Destination geocoded waypoint.
       
      .google.maps.routing.v2.GeocodedWaypoint destination = 2;
      Specified by:
      getDestinationOrBuilder in interface GeocodingResultsOrBuilder
    • getIntermediatesList

      public List<GeocodedWaypoint> getIntermediatesList()
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      Specified by:
      getIntermediatesList in interface GeocodingResultsOrBuilder
    • getIntermediatesCount

      public int getIntermediatesCount()
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      Specified by:
      getIntermediatesCount in interface GeocodingResultsOrBuilder
    • getIntermediates

      public GeocodedWaypoint getIntermediates(int index)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      Specified by:
      getIntermediates in interface GeocodingResultsOrBuilder
    • setIntermediates

      public GeocodingResults.Builder setIntermediates(int index, GeocodedWaypoint value)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • setIntermediates

      public GeocodingResults.Builder setIntermediates(int index, GeocodedWaypoint.Builder builderForValue)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • addIntermediates

      public GeocodingResults.Builder addIntermediates(GeocodedWaypoint value)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • addIntermediates

      public GeocodingResults.Builder addIntermediates(int index, GeocodedWaypoint value)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • addIntermediates

      public GeocodingResults.Builder addIntermediates(GeocodedWaypoint.Builder builderForValue)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • addIntermediates

      public GeocodingResults.Builder addIntermediates(int index, GeocodedWaypoint.Builder builderForValue)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • addAllIntermediates

      public GeocodingResults.Builder addAllIntermediates(Iterable<? extends GeocodedWaypoint> values)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • clearIntermediates

      public GeocodingResults.Builder clearIntermediates()
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • removeIntermediates

      public GeocodingResults.Builder removeIntermediates(int index)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • getIntermediatesBuilder

      public GeocodedWaypoint.Builder getIntermediatesBuilder(int index)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • getIntermediatesOrBuilder

      public GeocodedWaypointOrBuilder getIntermediatesOrBuilder(int index)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      Specified by:
      getIntermediatesOrBuilder in interface GeocodingResultsOrBuilder
    • getIntermediatesOrBuilderList

      public List<? extends GeocodedWaypointOrBuilder> getIntermediatesOrBuilderList()
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      Specified by:
      getIntermediatesOrBuilderList in interface GeocodingResultsOrBuilder
    • addIntermediatesBuilder

      public GeocodedWaypoint.Builder addIntermediatesBuilder()
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • addIntermediatesBuilder

      public GeocodedWaypoint.Builder addIntermediatesBuilder(int index)
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    • getIntermediatesBuilderList

      public List<GeocodedWaypoint.Builder> getIntermediatesBuilderList()
       A list of intermediate geocoded waypoints each containing an index field
       that corresponds to the zero-based position of the waypoint in the order
       they were specified in the request.
       
      repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;