public static final class RouteLeg.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder> implements RouteLegOrBuilder
Contains a segment between non-`via` waypoints.Protobuf type
google.maps.routing.v2.RouteLeg| Modifier and Type | Method and Description |
|---|---|
RouteLeg.Builder |
addAllSteps(Iterable<? extends RouteLegStep> values)
An array of steps denoting segments within this leg.
|
RouteLeg.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteLeg.Builder |
addSteps(int index,
RouteLegStep.Builder builderForValue)
An array of steps denoting segments within this leg.
|
RouteLeg.Builder |
addSteps(int index,
RouteLegStep value)
An array of steps denoting segments within this leg.
|
RouteLeg.Builder |
addSteps(RouteLegStep.Builder builderForValue)
An array of steps denoting segments within this leg.
|
RouteLeg.Builder |
addSteps(RouteLegStep value)
An array of steps denoting segments within this leg.
|
RouteLegStep.Builder |
addStepsBuilder()
An array of steps denoting segments within this leg.
|
RouteLegStep.Builder |
addStepsBuilder(int index)
An array of steps denoting segments within this leg.
|
RouteLeg |
build() |
RouteLeg |
buildPartial() |
RouteLeg.Builder |
clear() |
RouteLeg.Builder |
clearDistanceMeters()
The travel distance of the route leg, in meters.
|
RouteLeg.Builder |
clearDuration()
The length of time needed to navigate the leg.
|
RouteLeg.Builder |
clearEndLocation()
The end location of this leg.
|
RouteLeg.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RouteLeg.Builder |
clearLocalizedValues()
Text representations of properties of the `RouteLeg`.
|
RouteLeg.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RouteLeg.Builder |
clearPolyline()
The overall polyline for this leg that includes each `step`'s
polyline.
|
RouteLeg.Builder |
clearStartLocation()
The start location of this leg.
|
RouteLeg.Builder |
clearStaticDuration()
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
RouteLeg.Builder |
clearSteps()
An array of steps denoting segments within this leg.
|
RouteLeg.Builder |
clearStepsOverview()
Overview information about the steps in this `RouteLeg`.
|
RouteLeg.Builder |
clearTravelAdvisory()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
RouteLeg.Builder |
clone() |
RouteLeg |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getDistanceMeters()
The travel distance of the route leg, in meters.
|
com.google.protobuf.Duration |
getDuration()
The length of time needed to navigate the leg.
|
com.google.protobuf.Duration.Builder |
getDurationBuilder()
The length of time needed to navigate the leg.
|
com.google.protobuf.DurationOrBuilder |
getDurationOrBuilder()
The length of time needed to navigate the leg.
|
Location |
getEndLocation()
The end location of this leg.
|
Location.Builder |
getEndLocationBuilder()
The end location of this leg.
|
LocationOrBuilder |
getEndLocationOrBuilder()
The end location of this leg.
|
RouteLeg.RouteLegLocalizedValues |
getLocalizedValues()
Text representations of properties of the `RouteLeg`.
|
RouteLeg.RouteLegLocalizedValues.Builder |
getLocalizedValuesBuilder()
Text representations of properties of the `RouteLeg`.
|
RouteLeg.RouteLegLocalizedValuesOrBuilder |
getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteLeg`.
|
Polyline |
getPolyline()
The overall polyline for this leg that includes each `step`'s
polyline.
|
Polyline.Builder |
getPolylineBuilder()
The overall polyline for this leg that includes each `step`'s
polyline.
|
PolylineOrBuilder |
getPolylineOrBuilder()
The overall polyline for this leg that includes each `step`'s
polyline.
|
Location |
getStartLocation()
The start location of this leg.
|
Location.Builder |
getStartLocationBuilder()
The start location of this leg.
|
LocationOrBuilder |
getStartLocationOrBuilder()
The start location of this leg.
|
com.google.protobuf.Duration |
getStaticDuration()
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
com.google.protobuf.Duration.Builder |
getStaticDurationBuilder()
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
com.google.protobuf.DurationOrBuilder |
getStaticDurationOrBuilder()
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
RouteLegStep |
getSteps(int index)
An array of steps denoting segments within this leg.
|
RouteLegStep.Builder |
getStepsBuilder(int index)
An array of steps denoting segments within this leg.
|
List<RouteLegStep.Builder> |
getStepsBuilderList()
An array of steps denoting segments within this leg.
|
int |
getStepsCount()
An array of steps denoting segments within this leg.
|
List<RouteLegStep> |
getStepsList()
An array of steps denoting segments within this leg.
|
RouteLegStepOrBuilder |
getStepsOrBuilder(int index)
An array of steps denoting segments within this leg.
|
List<? extends RouteLegStepOrBuilder> |
getStepsOrBuilderList()
An array of steps denoting segments within this leg.
|
RouteLeg.StepsOverview |
getStepsOverview()
Overview information about the steps in this `RouteLeg`.
|
RouteLeg.StepsOverview.Builder |
getStepsOverviewBuilder()
Overview information about the steps in this `RouteLeg`.
|
RouteLeg.StepsOverviewOrBuilder |
getStepsOverviewOrBuilder()
Overview information about the steps in this `RouteLeg`.
|
RouteLegTravelAdvisory |
getTravelAdvisory()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
RouteLegTravelAdvisory.Builder |
getTravelAdvisoryBuilder()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
RouteLegTravelAdvisoryOrBuilder |
getTravelAdvisoryOrBuilder()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
boolean |
hasDuration()
The length of time needed to navigate the leg.
|
boolean |
hasEndLocation()
The end location of this leg.
|
boolean |
hasLocalizedValues()
Text representations of properties of the `RouteLeg`.
|
boolean |
hasPolyline()
The overall polyline for this leg that includes each `step`'s
polyline.
|
boolean |
hasStartLocation()
The start location of this leg.
|
boolean |
hasStaticDuration()
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
boolean |
hasStepsOverview()
Overview information about the steps in this `RouteLeg`.
|
boolean |
hasTravelAdvisory()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RouteLeg.Builder |
mergeDuration(com.google.protobuf.Duration value)
The length of time needed to navigate the leg.
|
RouteLeg.Builder |
mergeEndLocation(Location value)
The end location of this leg.
|
RouteLeg.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouteLeg.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouteLeg.Builder |
mergeFrom(RouteLeg other) |
RouteLeg.Builder |
mergeLocalizedValues(RouteLeg.RouteLegLocalizedValues value)
Text representations of properties of the `RouteLeg`.
|
RouteLeg.Builder |
mergePolyline(Polyline value)
The overall polyline for this leg that includes each `step`'s
polyline.
|
RouteLeg.Builder |
mergeStartLocation(Location value)
The start location of this leg.
|
RouteLeg.Builder |
mergeStaticDuration(com.google.protobuf.Duration value)
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
RouteLeg.Builder |
mergeStepsOverview(RouteLeg.StepsOverview value)
Overview information about the steps in this `RouteLeg`.
|
RouteLeg.Builder |
mergeTravelAdvisory(RouteLegTravelAdvisory value)
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
RouteLeg.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouteLeg.Builder |
removeSteps(int index)
An array of steps denoting segments within this leg.
|
RouteLeg.Builder |
setDistanceMeters(int value)
The travel distance of the route leg, in meters.
|
RouteLeg.Builder |
setDuration(com.google.protobuf.Duration.Builder builderForValue)
The length of time needed to navigate the leg.
|
RouteLeg.Builder |
setDuration(com.google.protobuf.Duration value)
The length of time needed to navigate the leg.
|
RouteLeg.Builder |
setEndLocation(Location.Builder builderForValue)
The end location of this leg.
|
RouteLeg.Builder |
setEndLocation(Location value)
The end location of this leg.
|
RouteLeg.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteLeg.Builder |
setLocalizedValues(RouteLeg.RouteLegLocalizedValues.Builder builderForValue)
Text representations of properties of the `RouteLeg`.
|
RouteLeg.Builder |
setLocalizedValues(RouteLeg.RouteLegLocalizedValues value)
Text representations of properties of the `RouteLeg`.
|
RouteLeg.Builder |
setPolyline(Polyline.Builder builderForValue)
The overall polyline for this leg that includes each `step`'s
polyline.
|
RouteLeg.Builder |
setPolyline(Polyline value)
The overall polyline for this leg that includes each `step`'s
polyline.
|
RouteLeg.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RouteLeg.Builder |
setStartLocation(Location.Builder builderForValue)
The start location of this leg.
|
RouteLeg.Builder |
setStartLocation(Location value)
The start location of this leg.
|
RouteLeg.Builder |
setStaticDuration(com.google.protobuf.Duration.Builder builderForValue)
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
RouteLeg.Builder |
setStaticDuration(com.google.protobuf.Duration value)
The duration of travel through the leg, calculated without taking
traffic conditions into consideration.
|
RouteLeg.Builder |
setSteps(int index,
RouteLegStep.Builder builderForValue)
An array of steps denoting segments within this leg.
|
RouteLeg.Builder |
setSteps(int index,
RouteLegStep value)
An array of steps denoting segments within this leg.
|
RouteLeg.Builder |
setStepsOverview(RouteLeg.StepsOverview.Builder builderForValue)
Overview information about the steps in this `RouteLeg`.
|
RouteLeg.Builder |
setStepsOverview(RouteLeg.StepsOverview value)
Overview information about the steps in this `RouteLeg`.
|
RouteLeg.Builder |
setTravelAdvisory(RouteLegTravelAdvisory.Builder builderForValue)
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
RouteLeg.Builder |
setTravelAdvisory(RouteLegTravelAdvisory value)
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a route leg.
|
RouteLeg.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>public RouteLeg.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.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.GeneratedMessageV3.Builder<RouteLeg.Builder>public RouteLeg getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouteLeg build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouteLeg buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouteLeg.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>public RouteLeg.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>public RouteLeg.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>public RouteLeg.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>public RouteLeg.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>public RouteLeg.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>public RouteLeg.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteLeg.Builder>public RouteLeg.Builder mergeFrom(RouteLeg other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>public RouteLeg.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<RouteLeg.Builder>IOExceptionpublic int getDistanceMeters()
The travel distance of the route leg, in meters.
int32 distance_meters = 1;getDistanceMeters in interface RouteLegOrBuilderpublic RouteLeg.Builder setDistanceMeters(int value)
The travel distance of the route leg, in meters.
int32 distance_meters = 1;value - The distanceMeters to set.public RouteLeg.Builder clearDistanceMeters()
The travel distance of the route leg, in meters.
int32 distance_meters = 1;public boolean hasDuration()
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;hasDuration in interface RouteLegOrBuilderpublic com.google.protobuf.Duration getDuration()
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;getDuration in interface RouteLegOrBuilderpublic RouteLeg.Builder setDuration(com.google.protobuf.Duration value)
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;public RouteLeg.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;public RouteLeg.Builder mergeDuration(com.google.protobuf.Duration value)
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;public RouteLeg.Builder clearDuration()
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;public com.google.protobuf.Duration.Builder getDurationBuilder()
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
The length of time needed to navigate the leg. If the `route_preference` is set to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 2;getDurationOrBuilder in interface RouteLegOrBuilderpublic boolean hasStaticDuration()
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;hasStaticDuration in interface RouteLegOrBuilderpublic com.google.protobuf.Duration getStaticDuration()
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;getStaticDuration in interface RouteLegOrBuilderpublic RouteLeg.Builder setStaticDuration(com.google.protobuf.Duration value)
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;public RouteLeg.Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue)
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;public RouteLeg.Builder mergeStaticDuration(com.google.protobuf.Duration value)
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;public RouteLeg.Builder clearStaticDuration()
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;public com.google.protobuf.Duration.Builder getStaticDurationBuilder()
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;getStaticDurationOrBuilder in interface RouteLegOrBuilderpublic boolean hasPolyline()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;hasPolyline in interface RouteLegOrBuilderpublic Polyline getPolyline()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;getPolyline in interface RouteLegOrBuilderpublic RouteLeg.Builder setPolyline(Polyline value)
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;public RouteLeg.Builder setPolyline(Polyline.Builder builderForValue)
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;public RouteLeg.Builder mergePolyline(Polyline value)
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;public RouteLeg.Builder clearPolyline()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;public Polyline.Builder getPolylineBuilder()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;public PolylineOrBuilder getPolylineOrBuilder()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;getPolylineOrBuilder in interface RouteLegOrBuilderpublic boolean hasStartLocation()
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;hasStartLocation in interface RouteLegOrBuilderpublic Location getStartLocation()
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;getStartLocation in interface RouteLegOrBuilderpublic RouteLeg.Builder setStartLocation(Location value)
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;public RouteLeg.Builder setStartLocation(Location.Builder builderForValue)
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;public RouteLeg.Builder mergeStartLocation(Location value)
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;public RouteLeg.Builder clearStartLocation()
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;public Location.Builder getStartLocationBuilder()
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;public LocationOrBuilder getStartLocationOrBuilder()
The start location of this leg. This location might be different from the provided `origin`. For example, when the provided `origin` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location start_location = 5;getStartLocationOrBuilder in interface RouteLegOrBuilderpublic boolean hasEndLocation()
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;hasEndLocation in interface RouteLegOrBuilderpublic Location getEndLocation()
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;getEndLocation in interface RouteLegOrBuilderpublic RouteLeg.Builder setEndLocation(Location value)
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;public RouteLeg.Builder setEndLocation(Location.Builder builderForValue)
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;public RouteLeg.Builder mergeEndLocation(Location value)
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;public RouteLeg.Builder clearEndLocation()
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;public Location.Builder getEndLocationBuilder()
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;public LocationOrBuilder getEndLocationOrBuilder()
The end location of this leg. This location might be different from the provided `destination`. For example, when the provided `destination` is not near a road, this is a point on the road.
.google.maps.routing.v2.Location end_location = 6;getEndLocationOrBuilder in interface RouteLegOrBuilderpublic List<RouteLegStep> getStepsList()
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;getStepsList in interface RouteLegOrBuilderpublic int getStepsCount()
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;getStepsCount in interface RouteLegOrBuilderpublic RouteLegStep getSteps(int index)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;getSteps in interface RouteLegOrBuilderpublic RouteLeg.Builder setSteps(int index, RouteLegStep value)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLeg.Builder setSteps(int index, RouteLegStep.Builder builderForValue)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLeg.Builder addSteps(RouteLegStep value)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLeg.Builder addSteps(int index, RouteLegStep value)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLeg.Builder addSteps(RouteLegStep.Builder builderForValue)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLeg.Builder addSteps(int index, RouteLegStep.Builder builderForValue)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLeg.Builder addAllSteps(Iterable<? extends RouteLegStep> values)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLeg.Builder clearSteps()
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLeg.Builder removeSteps(int index)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLegStep.Builder getStepsBuilder(int index)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLegStepOrBuilder getStepsOrBuilder(int index)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;getStepsOrBuilder in interface RouteLegOrBuilderpublic List<? extends RouteLegStepOrBuilder> getStepsOrBuilderList()
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;getStepsOrBuilderList in interface RouteLegOrBuilderpublic RouteLegStep.Builder addStepsBuilder()
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public RouteLegStep.Builder addStepsBuilder(int index)
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public List<RouteLegStep.Builder> getStepsBuilderList()
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;public boolean hasTravelAdvisory()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;hasTravelAdvisory in interface RouteLegOrBuilderpublic RouteLegTravelAdvisory getTravelAdvisory()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;getTravelAdvisory in interface RouteLegOrBuilderpublic RouteLeg.Builder setTravelAdvisory(RouteLegTravelAdvisory value)
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;public RouteLeg.Builder setTravelAdvisory(RouteLegTravelAdvisory.Builder builderForValue)
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;public RouteLeg.Builder mergeTravelAdvisory(RouteLegTravelAdvisory value)
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;public RouteLeg.Builder clearTravelAdvisory()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;public RouteLegTravelAdvisory.Builder getTravelAdvisoryBuilder()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;public RouteLegTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.
.google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;getTravelAdvisoryOrBuilder in interface RouteLegOrBuilderpublic boolean hasLocalizedValues()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;hasLocalizedValues in interface RouteLegOrBuilderpublic RouteLeg.RouteLegLocalizedValues getLocalizedValues()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;getLocalizedValues in interface RouteLegOrBuilderpublic RouteLeg.Builder setLocalizedValues(RouteLeg.RouteLegLocalizedValues value)
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;public RouteLeg.Builder setLocalizedValues(RouteLeg.RouteLegLocalizedValues.Builder builderForValue)
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;public RouteLeg.Builder mergeLocalizedValues(RouteLeg.RouteLegLocalizedValues value)
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;public RouteLeg.Builder clearLocalizedValues()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;public RouteLeg.RouteLegLocalizedValues.Builder getLocalizedValuesBuilder()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;public RouteLeg.RouteLegLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;getLocalizedValuesOrBuilder in interface RouteLegOrBuilderpublic boolean hasStepsOverview()
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;hasStepsOverview in interface RouteLegOrBuilderpublic RouteLeg.StepsOverview getStepsOverview()
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;getStepsOverview in interface RouteLegOrBuilderpublic RouteLeg.Builder setStepsOverview(RouteLeg.StepsOverview value)
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;public RouteLeg.Builder setStepsOverview(RouteLeg.StepsOverview.Builder builderForValue)
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;public RouteLeg.Builder mergeStepsOverview(RouteLeg.StepsOverview value)
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;public RouteLeg.Builder clearStepsOverview()
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;public RouteLeg.StepsOverview.Builder getStepsOverviewBuilder()
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;public RouteLeg.StepsOverviewOrBuilder getStepsOverviewOrBuilder()
Overview information about the steps in this `RouteLeg`. This field is only populated for TRANSIT routes.
.google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;getStepsOverviewOrBuilder in interface RouteLegOrBuilderpublic final RouteLeg.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>public final RouteLeg.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>Copyright © 2025 Google LLC. All rights reserved.