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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RouteLeg.Builder> implements RouteLegOrBuilder
Contains a segment between non-`via` waypoints.
Protobuf typegoogle.maps.routing.v2.RouteLeg
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 value)
An array of steps denoting segments within this leg.RouteLeg.Builder
addSteps(int index, 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.RouteLeg.Builder
addSteps(RouteLegStep.Builder builderForValue)
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(RouteLeg other)
RouteLeg.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouteLeg.Builder
mergeFrom(com.google.protobuf.Message 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 value)
The length of time needed to navigate the leg.RouteLeg.Builder
setDuration(com.google.protobuf.Duration.Builder builderForValue)
The length of time needed to navigate the leg.RouteLeg.Builder
setEndLocation(Location value)
The end location of this leg.RouteLeg.Builder
setEndLocation(Location.Builder builderForValue)
The end location of this leg.RouteLeg.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteLeg.Builder
setLocalizedValues(RouteLeg.RouteLegLocalizedValues value)
Text representations of properties of the `RouteLeg`.RouteLeg.Builder
setLocalizedValues(RouteLeg.RouteLegLocalizedValues.Builder builderForValue)
Text representations of properties of the `RouteLeg`.RouteLeg.Builder
setPolyline(Polyline value)
The overall polyline for this leg that includes each `step`'s polyline.RouteLeg.Builder
setPolyline(Polyline.Builder builderForValue)
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 value)
The start location of this leg.RouteLeg.Builder
setStartLocation(Location.Builder builderForValue)
The start location of this leg.RouteLeg.Builder
setStaticDuration(com.google.protobuf.Duration value)
The duration of travel through the leg, calculated without taking traffic conditions into consideration.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
setSteps(int index, RouteLegStep value)
An array of steps denoting segments within this leg.RouteLeg.Builder
setSteps(int index, RouteLegStep.Builder builderForValue)
An array of steps denoting segments within this leg.RouteLeg.Builder
setStepsOverview(RouteLeg.StepsOverview value)
Overview information about the steps in this `RouteLeg`.RouteLeg.Builder
setStepsOverview(RouteLeg.StepsOverview.Builder builderForValue)
Overview information about the steps in this `RouteLeg`.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
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
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<RouteLeg.Builder>
-
clear
public RouteLeg.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<RouteLeg.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<RouteLeg.Builder>
-
getDefaultInstanceForType
public RouteLeg getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteLeg build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteLeg buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteLeg.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<RouteLeg.Builder>
-
setField
public RouteLeg.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<RouteLeg.Builder>
-
clearField
public RouteLeg.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<RouteLeg.Builder>
-
clearOneof
public RouteLeg.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<RouteLeg.Builder>
-
setRepeatedField
public RouteLeg.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<RouteLeg.Builder>
-
addRepeatedField
public RouteLeg.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<RouteLeg.Builder>
-
mergeFrom
public RouteLeg.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouteLeg.Builder>
-
mergeFrom
public RouteLeg.Builder mergeFrom(RouteLeg other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>
-
mergeFrom
public RouteLeg.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<RouteLeg.Builder>
- Throws:
IOException
-
getDistanceMeters
public int getDistanceMeters()
The travel distance of the route leg, in meters.
int32 distance_meters = 1;
- Specified by:
getDistanceMeters
in interfaceRouteLegOrBuilder
- Returns:
- The distanceMeters.
-
setDistanceMeters
public RouteLeg.Builder setDistanceMeters(int value)
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
public RouteLeg.Builder 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:
hasDuration
in 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:
getDuration
in interfaceRouteLegOrBuilder
- Returns:
- The duration.
-
setDuration
public 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;
-
setDuration
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;
-
mergeDuration
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;
-
clearDuration
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;
-
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:
getDurationOrBuilder
in 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:
hasStaticDuration
in 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:
getStaticDuration
in interfaceRouteLegOrBuilder
- Returns:
- The staticDuration.
-
setStaticDuration
public 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;
-
setStaticDuration
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;
-
mergeStaticDuration
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;
-
clearStaticDuration
public RouteLeg.Builder 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:
getStaticDurationOrBuilder
in 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:
hasPolyline
in interfaceRouteLegOrBuilder
- Returns:
- Whether the polyline field is set.
-
getPolyline
public Polyline getPolyline()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;
- Specified by:
getPolyline
in interfaceRouteLegOrBuilder
- Returns:
- The polyline.
-
setPolyline
public RouteLeg.Builder setPolyline(Polyline value)
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;
-
setPolyline
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;
-
mergePolyline
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;
-
clearPolyline
public RouteLeg.Builder clearPolyline()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;
-
getPolylineBuilder
public Polyline.Builder getPolylineBuilder()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;
-
getPolylineOrBuilder
public PolylineOrBuilder getPolylineOrBuilder()
The overall polyline for this leg that includes each `step`'s polyline.
.google.maps.routing.v2.Polyline polyline = 4;
- Specified by:
getPolylineOrBuilder
in 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:
hasStartLocation
in interfaceRouteLegOrBuilder
- Returns:
- Whether the startLocation field is set.
-
getStartLocation
public 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;
- Specified by:
getStartLocation
in interfaceRouteLegOrBuilder
- Returns:
- The startLocation.
-
setStartLocation
public 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;
-
setStartLocation
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;
-
mergeStartLocation
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;
-
clearStartLocation
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;
-
getStartLocationBuilder
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;
-
getStartLocationOrBuilder
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;
- Specified by:
getStartLocationOrBuilder
in 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:
hasEndLocation
in interfaceRouteLegOrBuilder
- Returns:
- Whether the endLocation field is set.
-
getEndLocation
public 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;
- Specified by:
getEndLocation
in interfaceRouteLegOrBuilder
- Returns:
- The endLocation.
-
setEndLocation
public 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;
-
setEndLocation
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;
-
mergeEndLocation
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;
-
clearEndLocation
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;
-
getEndLocationBuilder
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;
-
getEndLocationOrBuilder
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;
- Specified by:
getEndLocationOrBuilder
in interfaceRouteLegOrBuilder
-
getStepsList
public 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;
- Specified by:
getStepsList
in 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:
getStepsCount
in interfaceRouteLegOrBuilder
-
getSteps
public 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;
- Specified by:
getSteps
in interfaceRouteLegOrBuilder
-
setSteps
public 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;
-
setSteps
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;
-
addSteps
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;
-
addSteps
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;
-
addSteps
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;
-
addSteps
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;
-
addAllSteps
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;
-
clearSteps
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;
-
removeSteps
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;
-
getStepsBuilder
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;
-
getStepsOrBuilder
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;
- Specified by:
getStepsOrBuilder
in interfaceRouteLegOrBuilder
-
getStepsOrBuilderList
public 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;
- Specified by:
getStepsOrBuilderList
in interfaceRouteLegOrBuilder
-
addStepsBuilder
public 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;
-
addStepsBuilder
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;
-
getStepsBuilderList
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;
-
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:
hasTravelAdvisory
in interfaceRouteLegOrBuilder
- Returns:
- Whether the travelAdvisory field is set.
-
getTravelAdvisory
public 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;
- Specified by:
getTravelAdvisory
in interfaceRouteLegOrBuilder
- Returns:
- The travelAdvisory.
-
setTravelAdvisory
public 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;
-
setTravelAdvisory
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;
-
mergeTravelAdvisory
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;
-
clearTravelAdvisory
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;
-
getTravelAdvisoryBuilder
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;
-
getTravelAdvisoryOrBuilder
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;
- Specified by:
getTravelAdvisoryOrBuilder
in interfaceRouteLegOrBuilder
-
hasLocalizedValues
public boolean hasLocalizedValues()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;
- Specified by:
hasLocalizedValues
in interfaceRouteLegOrBuilder
- Returns:
- Whether the localizedValues field is set.
-
getLocalizedValues
public RouteLeg.RouteLegLocalizedValues getLocalizedValues()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;
- Specified by:
getLocalizedValues
in interfaceRouteLegOrBuilder
- Returns:
- The localizedValues.
-
setLocalizedValues
public RouteLeg.Builder setLocalizedValues(RouteLeg.RouteLegLocalizedValues value)
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
public RouteLeg.Builder mergeLocalizedValues(RouteLeg.RouteLegLocalizedValues value)
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;
-
clearLocalizedValues
public RouteLeg.Builder clearLocalizedValues()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;
-
getLocalizedValuesBuilder
public RouteLeg.RouteLegLocalizedValues.Builder getLocalizedValuesBuilder()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;
-
getLocalizedValuesOrBuilder
public RouteLeg.RouteLegLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteLeg`.
.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9;
- Specified by:
getLocalizedValuesOrBuilder
in 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:
hasStepsOverview
in interfaceRouteLegOrBuilder
- Returns:
- Whether the stepsOverview field is set.
-
getStepsOverview
public 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;
- Specified by:
getStepsOverview
in interfaceRouteLegOrBuilder
- Returns:
- The stepsOverview.
-
setStepsOverview
public 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;
-
setStepsOverview
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;
-
mergeStepsOverview
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;
-
clearStepsOverview
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;
-
getStepsOverviewBuilder
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;
-
getStepsOverviewOrBuilder
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;
- Specified by:
getStepsOverviewOrBuilder
in interfaceRouteLegOrBuilder
-
setUnknownFields
public final RouteLeg.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>
-
mergeUnknownFields
public final RouteLeg.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLeg.Builder>
-
-