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.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(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
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(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(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.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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GeocodingResults
build()
GeocodingResults
buildPartial()
GeocodingResults.Builder
clear()
GeocodingResults.Builder
clearDestination()
Destination geocoded waypoint.GeocodingResults.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
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
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GeocodingResults.Builder
clearOrigin()
Origin geocoded waypoint.GeocodingResults.Builder
clone()
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.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GeocodingResults.Builder
mergeDestination(GeocodedWaypoint value)
Destination geocoded waypoint.GeocodingResults.Builder
mergeFrom(GeocodingResults other)
GeocodingResults.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GeocodingResults.Builder
mergeFrom(com.google.protobuf.Message other)
GeocodingResults.Builder
mergeOrigin(GeocodedWaypoint value)
Origin geocoded waypoint.GeocodingResults.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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 value)
Destination geocoded waypoint.GeocodingResults.Builder
setDestination(GeocodedWaypoint.Builder builderForValue)
Destination geocoded waypoint.GeocodingResults.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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
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
setOrigin(GeocodedWaypoint value)
Origin geocoded waypoint.GeocodingResults.Builder
setOrigin(GeocodedWaypoint.Builder builderForValue)
Origin geocoded waypoint.GeocodingResults.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GeocodingResults.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
clear
public GeocodingResults.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
getDefaultInstanceForType
public GeocodingResults getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GeocodingResults build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GeocodingResults buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GeocodingResults.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
setField
public GeocodingResults.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
clearField
public GeocodingResults.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
clearOneof
public GeocodingResults.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
setRepeatedField
public GeocodingResults.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
addRepeatedField
public GeocodingResults.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
mergeFrom
public GeocodingResults.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GeocodingResults.Builder>
-
mergeFrom
public GeocodingResults.Builder mergeFrom(GeocodingResults other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasOrigin
in interfaceGeocodingResultsOrBuilder
- 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 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:
getOriginOrBuilder
in interfaceGeocodingResultsOrBuilder
-
hasDestination
public boolean hasDestination()
Destination geocoded waypoint.
.google.maps.routing.v2.GeocodedWaypoint destination = 2;
- Specified by:
hasDestination
in interfaceGeocodingResultsOrBuilder
- 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 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:
getDestinationOrBuilder
in 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:
getIntermediatesList
in 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:
getIntermediatesCount
in 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:
getIntermediates
in 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:
getIntermediatesOrBuilder
in 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:
getIntermediatesOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
mergeUnknownFields
public final GeocodingResults.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeocodingResults.Builder>
-
-