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| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
GeocodingResults |
build() |
GeocodingResults |
buildPartial() |
GeocodingResults.Builder |
clear() |
GeocodingResults.Builder |
clearDestination()
Destination geocoded waypoint.
|
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.
|
GeocodingResults.Builder |
clearOrigin()
Origin geocoded waypoint.
|
GeocodingResults |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
GeocodedWaypoint |
getDestination()
Destination geocoded waypoint.
|
GeocodedWaypoint.Builder |
getDestinationBuilder()
Destination geocoded waypoint.
|
GeocodedWaypointOrBuilder |
getDestinationOrBuilder()
Destination geocoded waypoint.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
GeocodedWaypoint |
getOrigin()
Origin geocoded waypoint.
|
GeocodedWaypoint.Builder |
getOriginBuilder()
Origin geocoded waypoint.
|
GeocodedWaypointOrBuilder |
getOriginOrBuilder()
Origin geocoded waypoint.
|
boolean |
hasDestination()
Destination geocoded waypoint.
|
boolean |
hasOrigin()
Origin geocoded waypoint.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GeocodingResults.Builder |
mergeDestination(GeocodedWaypoint value)
Destination geocoded waypoint.
|
GeocodingResults.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GeocodingResults.Builder |
mergeFrom(GeocodingResults other) |
GeocodingResults.Builder |
mergeFrom(com.google.protobuf.Message other) |
GeocodingResults.Builder |
mergeOrigin(GeocodedWaypoint value)
Origin geocoded waypoint.
|
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.
|
GeocodingResults.Builder |
setDestination(GeocodedWaypoint.Builder builderForValue)
Destination geocoded waypoint.
|
GeocodingResults.Builder |
setDestination(GeocodedWaypoint value)
Destination geocoded waypoint.
|
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.
|
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.
|
GeocodingResults.Builder |
setOrigin(GeocodedWaypoint.Builder builderForValue)
Origin geocoded waypoint.
|
GeocodingResults.Builder |
setOrigin(GeocodedWaypoint value)
Origin geocoded waypoint.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>public GeocodingResults.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>public GeocodingResults getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GeocodingResults build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GeocodingResults buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GeocodingResults.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GeocodingResults.Builder>public GeocodingResults.Builder mergeFrom(GeocodingResults other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>public GeocodingResults.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GeocodingResults.Builder>IOExceptionpublic boolean hasOrigin()
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;hasOrigin in interface GeocodingResultsOrBuilderpublic GeocodedWaypoint getOrigin()
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;getOrigin in interface GeocodingResultsOrBuilderpublic GeocodingResults.Builder setOrigin(GeocodedWaypoint value)
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;public GeocodingResults.Builder setOrigin(GeocodedWaypoint.Builder builderForValue)
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;public GeocodingResults.Builder mergeOrigin(GeocodedWaypoint value)
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;public GeocodingResults.Builder clearOrigin()
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;public GeocodedWaypoint.Builder getOriginBuilder()
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;public GeocodedWaypointOrBuilder getOriginOrBuilder()
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;getOriginOrBuilder in interface GeocodingResultsOrBuilderpublic boolean hasDestination()
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;hasDestination in interface GeocodingResultsOrBuilderpublic GeocodedWaypoint getDestination()
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;getDestination in interface GeocodingResultsOrBuilderpublic GeocodingResults.Builder setDestination(GeocodedWaypoint value)
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;public GeocodingResults.Builder setDestination(GeocodedWaypoint.Builder builderForValue)
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;public GeocodingResults.Builder mergeDestination(GeocodedWaypoint value)
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;public GeocodingResults.Builder clearDestination()
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;public GeocodedWaypoint.Builder getDestinationBuilder()
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;public GeocodedWaypointOrBuilder getDestinationOrBuilder()
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;getDestinationOrBuilder in interface GeocodingResultsOrBuilderpublic 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;getIntermediatesList in interface GeocodingResultsOrBuilderpublic 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;getIntermediatesCount in interface GeocodingResultsOrBuilderpublic 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;getIntermediates in interface GeocodingResultsOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getIntermediatesOrBuilder in interface GeocodingResultsOrBuilderpublic 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;getIntermediatesOrBuilderList in interface GeocodingResultsOrBuilderpublic 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;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;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;Copyright © 2026 Google LLC. All rights reserved.