Package com.google.maps.routing.v2
Class RouteLeg.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouteLeg.Builder>
com.google.maps.routing.v2.RouteLeg.Builder
- All Implemented Interfaces:
RouteLegOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RouteLeg
public static final class RouteLeg.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RouteLeg.Builder>
implements RouteLegOrBuilder
Contains a segment between non-`via` waypoints.Protobuf type
google.maps.routing.v2.RouteLeg-
Method Summary
Modifier and TypeMethodDescriptionaddAllSteps(Iterable<? extends RouteLegStep> values) An array of steps denoting segments within this leg.addSteps(int index, RouteLegStep value) An array of steps denoting segments within this leg.addSteps(int index, RouteLegStep.Builder builderForValue) An array of steps denoting segments within this leg.addSteps(RouteLegStep value) An array of steps denoting segments within this leg.addSteps(RouteLegStep.Builder builderForValue) An array of steps denoting segments within this leg.An array of steps denoting segments within this leg.addStepsBuilder(int index) An array of steps denoting segments within this leg.build()clear()The travel distance of the route leg, in meters.The length of time needed to navigate the leg.The end location of this leg.Text representations of properties of the `RouteLeg`.The overall polyline for this leg that includes each `step`'s polyline.The start location of this leg.The duration of travel through the leg, calculated without taking traffic conditions into consideration.An array of steps denoting segments within this leg.Overview information about the steps in this `RouteLeg`.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe travel distance of the route leg, in meters.com.google.protobuf.DurationThe length of time needed to navigate the leg.com.google.protobuf.Duration.BuilderThe length of time needed to navigate the leg.com.google.protobuf.DurationOrBuilderThe length of time needed to navigate the leg.The end location of this leg.The end location of this leg.The end location of this leg.Text representations of properties of the `RouteLeg`.Text representations of properties of the `RouteLeg`.Text representations of properties of the `RouteLeg`.The overall polyline for this leg that includes each `step`'s polyline.The overall polyline for this leg that includes each `step`'s polyline.The overall polyline for this leg that includes each `step`'s polyline.The start location of this leg.The start location of this leg.The start location of this leg.com.google.protobuf.DurationThe duration of travel through the leg, calculated without taking traffic conditions into consideration.com.google.protobuf.Duration.BuilderThe duration of travel through the leg, calculated without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuilderThe duration of travel through the leg, calculated without taking traffic conditions into consideration.getSteps(int index) An array of steps denoting segments within this leg.getStepsBuilder(int index) An array of steps denoting segments within this leg.An array of steps denoting segments within this leg.intAn array of steps denoting segments within this leg.An array of steps denoting segments within this leg.getStepsOrBuilder(int index) An array of steps denoting segments within this leg.List<? extends RouteLegStepOrBuilder>An array of steps denoting segments within this leg.Overview information about the steps in this `RouteLeg`.Overview information about the steps in this `RouteLeg`.Overview information about the steps in this `RouteLeg`.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.booleanThe length of time needed to navigate the leg.booleanThe end location of this leg.booleanText representations of properties of the `RouteLeg`.booleanThe overall polyline for this leg that includes each `step`'s polyline.booleanThe start location of this leg.booleanThe duration of travel through the leg, calculated without taking traffic conditions into consideration.booleanOverview information about the steps in this `RouteLeg`.booleanContains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDuration(com.google.protobuf.Duration value) The length of time needed to navigate the leg.mergeEndLocation(Location value) The end location of this leg.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Text representations of properties of the `RouteLeg`.mergePolyline(Polyline value) The overall polyline for this leg that includes each `step`'s polyline.mergeStartLocation(Location value) The start location of this leg.mergeStaticDuration(com.google.protobuf.Duration value) The duration of travel through the leg, calculated without taking traffic conditions into consideration.Overview information about the steps in this `RouteLeg`.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.removeSteps(int index) An array of steps denoting segments within this leg.setDistanceMeters(int value) The travel distance of the route leg, in meters.setDuration(com.google.protobuf.Duration value) The length of time needed to navigate the leg.setDuration(com.google.protobuf.Duration.Builder builderForValue) The length of time needed to navigate the leg.setEndLocation(Location value) The end location of this leg.setEndLocation(Location.Builder builderForValue) The end location of this leg.Text representations of properties of the `RouteLeg`.setLocalizedValues(RouteLeg.RouteLegLocalizedValues.Builder builderForValue) Text representations of properties of the `RouteLeg`.setPolyline(Polyline value) The overall polyline for this leg that includes each `step`'s polyline.setPolyline(Polyline.Builder builderForValue) The overall polyline for this leg that includes each `step`'s polyline.setStartLocation(Location value) The start location of this leg.setStartLocation(Location.Builder builderForValue) The start location of this leg.setStaticDuration(com.google.protobuf.Duration value) The duration of travel through the leg, calculated without taking traffic conditions into consideration.setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) The duration of travel through the leg, calculated without taking traffic conditions into consideration.setSteps(int index, RouteLegStep value) An array of steps denoting segments within this leg.setSteps(int index, RouteLegStep.Builder builderForValue) An array of steps denoting segments within this leg.Overview information about the steps in this `RouteLeg`.setStepsOverview(RouteLeg.StepsOverview.Builder builderForValue) Overview information about the steps in this `RouteLeg`.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg.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.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<RouteLeg.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<RouteLeg.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<RouteLeg.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<RouteLeg.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RouteLeg.Builder>
-
mergeFrom
public RouteLeg.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<RouteLeg.Builder>- Throws:
IOException
-
getDistanceMeters
public int getDistanceMeters()The travel distance of the route leg, in meters.
int32 distance_meters = 1;- Specified by:
getDistanceMetersin interfaceRouteLegOrBuilder- Returns:
- The distanceMeters.
-
setDistanceMeters
The travel distance of the route leg, in meters.
int32 distance_meters = 1;- Parameters:
value- The distanceMeters to set.- Returns:
- This builder for chaining.
-
clearDistanceMeters
The travel distance of the route leg, in meters.
int32 distance_meters = 1;- Returns:
- This builder for chaining.
-
hasDuration
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;- Specified by:
hasDurationin interfaceRouteLegOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public 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;- Specified by:
getDurationin interfaceRouteLegOrBuilder- Returns:
- The duration.
-
setDuration
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; -
setDuration
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; -
mergeDuration
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; -
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; -
getDurationBuilder
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; -
getDurationOrBuilder
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;- Specified by:
getDurationOrBuilderin interfaceRouteLegOrBuilder
-
hasStaticDuration
public boolean hasStaticDuration()The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3;- Specified by:
hasStaticDurationin interfaceRouteLegOrBuilder- Returns:
- Whether the staticDuration field is set.
-
getStaticDuration
public 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;- Specified by:
getStaticDurationin interfaceRouteLegOrBuilder- Returns:
- The staticDuration.
-
setStaticDuration
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3; -
setStaticDuration
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3; -
mergeStaticDuration
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3; -
clearStaticDuration
The duration of travel through the leg, calculated without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 3; -
getStaticDurationBuilder
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; -
getStaticDurationOrBuilder
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;- Specified by:
getStaticDurationOrBuilderin interfaceRouteLegOrBuilder
-
hasPolyline
public boolean hasPolyline()The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;- Specified by:
hasPolylinein interfaceRouteLegOrBuilder- Returns:
- Whether the polyline field is set.
-
getPolyline
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;- Specified by:
getPolylinein interfaceRouteLegOrBuilder- Returns:
- The polyline.
-
setPolyline
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4; -
setPolyline
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4; -
mergePolyline
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4; -
clearPolyline
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4; -
getPolylineBuilder
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4; -
getPolylineOrBuilder
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;- Specified by:
getPolylineOrBuilderin interfaceRouteLegOrBuilder
-
hasStartLocation
public 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;- Specified by:
hasStartLocationin interfaceRouteLegOrBuilder- Returns:
- Whether the startLocation field is set.
-
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;- Specified by:
getStartLocationin interfaceRouteLegOrBuilder- Returns:
- The startLocation.
-
setStartLocation
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; -
setStartLocation
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; -
mergeStartLocation
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; -
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; -
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; -
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;- Specified by:
getStartLocationOrBuilderin interfaceRouteLegOrBuilder
-
hasEndLocation
public 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;- Specified by:
hasEndLocationin interfaceRouteLegOrBuilder- Returns:
- Whether the endLocation field is set.
-
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;- Specified by:
getEndLocationin interfaceRouteLegOrBuilder- Returns:
- The endLocation.
-
setEndLocation
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; -
setEndLocation
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; -
mergeEndLocation
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; -
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; -
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; -
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;- Specified by:
getEndLocationOrBuilderin interfaceRouteLegOrBuilder
-
getStepsList
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;- Specified by:
getStepsListin interfaceRouteLegOrBuilder
-
getStepsCount
public 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;- Specified by:
getStepsCountin interfaceRouteLegOrBuilder
-
getSteps
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;- Specified by:
getStepsin interfaceRouteLegOrBuilder
-
setSteps
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
setSteps
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
addSteps
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
addSteps
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
addSteps
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
addSteps
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
addAllSteps
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
clearSteps
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
removeSteps
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
getStepsBuilder
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
getStepsOrBuilder
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;- Specified by:
getStepsOrBuilderin interfaceRouteLegOrBuilder
-
getStepsOrBuilderList
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7;- Specified by:
getStepsOrBuilderListin interfaceRouteLegOrBuilder
-
addStepsBuilder
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
addStepsBuilder
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
getStepsBuilderList
An array of steps denoting segments within this leg. Each step represents one navigation instruction.
repeated .google.maps.routing.v2.RouteLegStep steps = 7; -
hasTravelAdvisory
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;- Specified by:
hasTravelAdvisoryin interfaceRouteLegOrBuilder- Returns:
- Whether the travelAdvisory field is set.
-
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;- Specified by:
getTravelAdvisoryin interfaceRouteLegOrBuilder- Returns:
- The travelAdvisory.
-
setTravelAdvisory
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; -
setTravelAdvisory
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; -
mergeTravelAdvisory
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; -
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; -
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; -
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;- Specified by:
getTravelAdvisoryOrBuilderin interfaceRouteLegOrBuilder
-
hasLocalizedValues
public boolean hasLocalizedValues()Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;- Specified by:
hasLocalizedValuesin interfaceRouteLegOrBuilder- Returns:
- Whether the localizedValues field is set.
-
getLocalizedValues
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;- Specified by:
getLocalizedValuesin interfaceRouteLegOrBuilder- Returns:
- The localizedValues.
-
setLocalizedValues
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; -
setLocalizedValues
public RouteLeg.Builder setLocalizedValues(RouteLeg.RouteLegLocalizedValues.Builder builderForValue) Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; -
mergeLocalizedValues
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; -
clearLocalizedValues
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; -
getLocalizedValuesBuilder
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; -
getLocalizedValuesOrBuilder
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;- Specified by:
getLocalizedValuesOrBuilderin interfaceRouteLegOrBuilder
-
hasStepsOverview
public 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;- Specified by:
hasStepsOverviewin interfaceRouteLegOrBuilder- Returns:
- Whether the stepsOverview field is set.
-
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;- Specified by:
getStepsOverviewin interfaceRouteLegOrBuilder- Returns:
- The stepsOverview.
-
setStepsOverview
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; -
setStepsOverview
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; -
mergeStepsOverview
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; -
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; -
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; -
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;- Specified by:
getStepsOverviewOrBuilderin interfaceRouteLegOrBuilder
-