Package com.google.maps.routing.v2
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 Summary
Modifier and TypeMethodDescriptionaddAllIntermediates(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.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.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.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.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.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.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.build()clear()Destination geocoded waypoint.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.Origin geocoded waypoint.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDestination geocoded waypoint.Destination geocoded waypoint.Destination geocoded waypoint.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.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.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.intA 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.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.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>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.Origin geocoded waypoint.Origin geocoded waypoint.Origin geocoded waypoint.booleanDestination geocoded waypoint.booleanOrigin geocoded waypoint.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDestination(GeocodedWaypoint value) Destination geocoded waypoint.mergeFrom(GeocodingResults other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOrigin(GeocodedWaypoint value) Origin geocoded waypoint.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.setDestination(GeocodedWaypoint value) Destination geocoded waypoint.setDestination(GeocodedWaypoint.Builder builderForValue) Destination geocoded waypoint.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.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.setOrigin(GeocodedWaypoint value) Origin geocoded waypoint.setOrigin(GeocodedWaypoint.Builder builderForValue) Origin geocoded waypoint.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GeocodingResults.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GeocodingResults.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GeocodingResults.Builder>- Throws:
IOException
-
hasOrigin
public boolean hasOrigin()Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;- Specified by:
hasOriginin interfaceGeocodingResultsOrBuilder- Returns:
- Whether the origin field is set.
-
getOrigin
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;- Specified by:
getOriginin interfaceGeocodingResultsOrBuilder- Returns:
- The origin.
-
setOrigin
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1; -
setOrigin
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1; -
mergeOrigin
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1; -
clearOrigin
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1; -
getOriginBuilder
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1; -
getOriginOrBuilder
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;- Specified by:
getOriginOrBuilderin interfaceGeocodingResultsOrBuilder
-
hasDestination
public boolean hasDestination()Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;- Specified by:
hasDestinationin interfaceGeocodingResultsOrBuilder- Returns:
- Whether the destination field is set.
-
getDestination
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;- Specified by:
getDestinationin interfaceGeocodingResultsOrBuilder- Returns:
- The destination.
-
setDestination
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2; -
setDestination
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2; -
mergeDestination
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2; -
clearDestination
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2; -
getDestinationBuilder
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2; -
getDestinationOrBuilder
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;- Specified by:
getDestinationOrBuilderin interfaceGeocodingResultsOrBuilder
-
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:
getIntermediatesListin interfaceGeocodingResultsOrBuilder
-
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:
getIntermediatesCountin interfaceGeocodingResultsOrBuilder
-
getIntermediates
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:
getIntermediatesin interfaceGeocodingResultsOrBuilder
-
setIntermediates
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
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
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
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
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
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
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
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
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:
getIntermediatesOrBuilderin interfaceGeocodingResultsOrBuilder
-
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:
getIntermediatesOrBuilderListin interfaceGeocodingResultsOrBuilder
-
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
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
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;
-