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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<GeocodingResults.Builder> implements GeocodingResultsOrBuilder
Contains [GeocodedWaypoints][google.maps.routing.v2.GeocodedWaypoint] for origin, destination and intermediate waypoints. Only populated for address waypoints.
Protobuf typegoogle.maps.routing.v2.GeocodingResults
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GeocodingResults.BuilderaddAllIntermediates(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.BuilderaddIntermediates(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.BuilderaddIntermediates(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.BuilderaddIntermediates(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.BuilderaddIntermediates(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.GeocodedWaypoint.BuilderaddIntermediatesBuilder()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.BuilderaddIntermediatesBuilder(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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GeocodingResultsbuild()GeocodingResultsbuildPartial()GeocodingResults.Builderclear()GeocodingResults.BuilderclearDestination()Destination geocoded waypoint.GeocodingResults.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GeocodingResults.BuilderclearIntermediates()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.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GeocodingResults.BuilderclearOrigin()Origin geocoded waypoint.GeocodingResults.Builderclone()GeocodingResultsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()GeocodedWaypointgetDestination()Destination geocoded waypoint.GeocodedWaypoint.BuildergetDestinationBuilder()Destination geocoded waypoint.GeocodedWaypointOrBuildergetDestinationOrBuilder()Destination geocoded waypoint.GeocodedWaypointgetIntermediates(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.BuildergetIntermediatesBuilder(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.intgetIntermediatesCount()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.GeocodedWaypointOrBuildergetIntermediatesOrBuilder(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.GeocodedWaypointgetOrigin()Origin geocoded waypoint.GeocodedWaypoint.BuildergetOriginBuilder()Origin geocoded waypoint.GeocodedWaypointOrBuildergetOriginOrBuilder()Origin geocoded waypoint.booleanhasDestination()Destination geocoded waypoint.booleanhasOrigin()Origin geocoded waypoint.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GeocodingResults.BuildermergeDestination(GeocodedWaypoint value)Destination geocoded waypoint.GeocodingResults.BuildermergeFrom(GeocodingResults other)GeocodingResults.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GeocodingResults.BuildermergeFrom(com.google.protobuf.Message other)GeocodingResults.BuildermergeOrigin(GeocodedWaypoint value)Origin geocoded waypoint.GeocodingResults.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GeocodingResults.BuilderremoveIntermediates(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.BuildersetDestination(GeocodedWaypoint value)Destination geocoded waypoint.GeocodingResults.BuildersetDestination(GeocodedWaypoint.Builder builderForValue)Destination geocoded waypoint.GeocodingResults.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GeocodingResults.BuildersetIntermediates(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.BuildersetIntermediates(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.BuildersetOrigin(GeocodedWaypoint value)Origin geocoded waypoint.GeocodingResults.BuildersetOrigin(GeocodedWaypoint.Builder builderForValue)Origin geocoded waypoint.GeocodingResults.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GeocodingResults.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
clear
public GeocodingResults.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
getDefaultInstanceForType
public GeocodingResults getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GeocodingResults build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GeocodingResults buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GeocodingResults.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
setField
public GeocodingResults.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
clearField
public GeocodingResults.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
clearOneof
public GeocodingResults.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
setRepeatedField
public GeocodingResults.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
addRepeatedField
public GeocodingResults.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
mergeFrom
public GeocodingResults.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GeocodingResults.Builder>
-
mergeFrom
public GeocodingResults.Builder mergeFrom(GeocodingResults other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public GeocodedWaypoint getOrigin()
Origin geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint origin = 1;- Specified by:
getOriginin interfaceGeocodingResultsOrBuilder- 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:
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
public GeocodedWaypoint getDestination()
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;- Specified by:
getDestinationin interfaceGeocodingResultsOrBuilder- 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:
getDestinationOrBuilderin interfaceGeocodingResultsOrBuilder
-
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:
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
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:
getIntermediatesin interfaceGeocodingResultsOrBuilder
-
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:
getIntermediatesOrBuilderin interfaceGeocodingResultsOrBuilder
-
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:
getIntermediatesOrBuilderListin interfaceGeocodingResultsOrBuilder
-
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;
-
setUnknownFields
public final GeocodingResults.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
mergeUnknownFields
public final GeocodingResults.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
-