Package com.google.maps.routing.v2
Class RouteLegStep.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouteLegStep.Builder>
com.google.maps.routing.v2.RouteLegStep.Builder
- All Implemented Interfaces:
RouteLegStepOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RouteLegStep
public static final class RouteLegStep.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RouteLegStep.Builder>
implements RouteLegStepOrBuilder
Contains a segment of a [`RouteLeg`][google.maps.routing.v2.RouteLeg]. A step corresponds to a single navigation instruction. Route legs are made up of steps.Protobuf type
google.maps.routing.v2.RouteLegStep-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The travel distance of this step, in meters.The end location of this step.Text representations of properties of the `RouteLegStep`.Navigation instructions.The polyline associated with this step.The start location of this step.The duration of travel through this step without taking traffic conditions into consideration.Details pertaining to this step if the travel mode is `TRANSIT`.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.The travel mode used for this step.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe travel distance of this step, in meters.The end location of this step.The end location of this step.The end location of this step.Text representations of properties of the `RouteLegStep`.Text representations of properties of the `RouteLegStep`.Text representations of properties of the `RouteLegStep`.Navigation instructions.Navigation instructions.Navigation instructions.The polyline associated with this step.The polyline associated with this step.The polyline associated with this step.The start location of this step.The start location of this step.The start location of this step.com.google.protobuf.DurationThe duration of travel through this step without taking traffic conditions into consideration.com.google.protobuf.Duration.BuilderThe duration of travel through this step without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuilderThe duration of travel through this step without taking traffic conditions into consideration.Details pertaining to this step if the travel mode is `TRANSIT`.Details pertaining to this step if the travel mode is `TRANSIT`.Details pertaining to this step if the travel mode is `TRANSIT`.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.The travel mode used for this step.intThe travel mode used for this step.booleanThe end location of this step.booleanText representations of properties of the `RouteLegStep`.booleanNavigation instructions.booleanThe polyline associated with this step.booleanThe start location of this step.booleanThe duration of travel through this step without taking traffic conditions into consideration.booleanDetails pertaining to this step if the travel mode is `TRANSIT`.booleanContains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEndLocation(Location value) The end location of this step.mergeFrom(RouteLegStep other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Text representations of properties of the `RouteLegStep`.Navigation instructions.mergePolyline(Polyline value) The polyline associated with this step.mergeStartLocation(Location value) The start location of this step.mergeStaticDuration(com.google.protobuf.Duration value) The duration of travel through this step without taking traffic conditions into consideration.Details pertaining to this step if the travel mode is `TRANSIT`.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.setDistanceMeters(int value) The travel distance of this step, in meters.setEndLocation(Location value) The end location of this step.setEndLocation(Location.Builder builderForValue) The end location of this step.Text representations of properties of the `RouteLegStep`.setLocalizedValues(RouteLegStep.RouteLegStepLocalizedValues.Builder builderForValue) Text representations of properties of the `RouteLegStep`.Navigation instructions.setNavigationInstruction(NavigationInstruction.Builder builderForValue) Navigation instructions.setPolyline(Polyline value) The polyline associated with this step.setPolyline(Polyline.Builder builderForValue) The polyline associated with this step.setStartLocation(Location value) The start location of this step.setStartLocation(Location.Builder builderForValue) The start location of this step.setStaticDuration(com.google.protobuf.Duration value) The duration of travel through this step without taking traffic conditions into consideration.setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) The duration of travel through this step without taking traffic conditions into consideration.Details pertaining to this step if the travel mode is `TRANSIT`.setTransitDetails(RouteLegStepTransitDetails.Builder builderForValue) Details pertaining to this step if the travel mode is `TRANSIT`.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.setTravelAdvisory(RouteLegStepTravelAdvisory.Builder builderForValue) Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.setTravelMode(RouteTravelMode value) The travel mode used for this step.setTravelModeValue(int value) The travel mode used for this step.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<RouteLegStep.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<RouteLegStep.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<RouteLegStep.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<RouteLegStep.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RouteLegStep.Builder>
-
mergeFrom
public RouteLegStep.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<RouteLegStep.Builder>- Throws:
IOException
-
getDistanceMeters
public int getDistanceMeters()The travel distance of this step, in meters. In some circumstances, this field might not have a value.
int32 distance_meters = 1;- Specified by:
getDistanceMetersin interfaceRouteLegStepOrBuilder- Returns:
- The distanceMeters.
-
setDistanceMeters
The travel distance of this step, in meters. In some circumstances, this field might not have a value.
int32 distance_meters = 1;- Parameters:
value- The distanceMeters to set.- Returns:
- This builder for chaining.
-
clearDistanceMeters
The travel distance of this step, in meters. In some circumstances, this field might not have a value.
int32 distance_meters = 1;- Returns:
- This builder for chaining.
-
hasStaticDuration
public boolean hasStaticDuration()The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2;- Specified by:
hasStaticDurationin interfaceRouteLegStepOrBuilder- Returns:
- Whether the staticDuration field is set.
-
getStaticDuration
public com.google.protobuf.Duration getStaticDuration()The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2;- Specified by:
getStaticDurationin interfaceRouteLegStepOrBuilder- Returns:
- The staticDuration.
-
setStaticDuration
The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2; -
setStaticDuration
The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2; -
mergeStaticDuration
The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2; -
clearStaticDuration
The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2; -
getStaticDurationBuilder
public com.google.protobuf.Duration.Builder getStaticDurationBuilder()The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2; -
getStaticDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2;- Specified by:
getStaticDurationOrBuilderin interfaceRouteLegStepOrBuilder
-
hasPolyline
public boolean hasPolyline()The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;- Specified by:
hasPolylinein interfaceRouteLegStepOrBuilder- Returns:
- Whether the polyline field is set.
-
getPolyline
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;- Specified by:
getPolylinein interfaceRouteLegStepOrBuilder- Returns:
- The polyline.
-
setPolyline
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3; -
setPolyline
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3; -
mergePolyline
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3; -
clearPolyline
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3; -
getPolylineBuilder
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3; -
getPolylineOrBuilder
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;- Specified by:
getPolylineOrBuilderin interfaceRouteLegStepOrBuilder
-
hasStartLocation
public boolean hasStartLocation()The start location of this step.
.google.maps.routing.v2.Location start_location = 4;- Specified by:
hasStartLocationin interfaceRouteLegStepOrBuilder- Returns:
- Whether the startLocation field is set.
-
getStartLocation
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;- Specified by:
getStartLocationin interfaceRouteLegStepOrBuilder- Returns:
- The startLocation.
-
setStartLocation
The start location of this step.
.google.maps.routing.v2.Location start_location = 4; -
setStartLocation
The start location of this step.
.google.maps.routing.v2.Location start_location = 4; -
mergeStartLocation
The start location of this step.
.google.maps.routing.v2.Location start_location = 4; -
clearStartLocation
The start location of this step.
.google.maps.routing.v2.Location start_location = 4; -
getStartLocationBuilder
The start location of this step.
.google.maps.routing.v2.Location start_location = 4; -
getStartLocationOrBuilder
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;- Specified by:
getStartLocationOrBuilderin interfaceRouteLegStepOrBuilder
-
hasEndLocation
public boolean hasEndLocation()The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Specified by:
hasEndLocationin interfaceRouteLegStepOrBuilder- Returns:
- Whether the endLocation field is set.
-
getEndLocation
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Specified by:
getEndLocationin interfaceRouteLegStepOrBuilder- Returns:
- The endLocation.
-
setEndLocation
The end location of this step.
.google.maps.routing.v2.Location end_location = 5; -
setEndLocation
The end location of this step.
.google.maps.routing.v2.Location end_location = 5; -
mergeEndLocation
The end location of this step.
.google.maps.routing.v2.Location end_location = 5; -
clearEndLocation
The end location of this step.
.google.maps.routing.v2.Location end_location = 5; -
getEndLocationBuilder
The end location of this step.
.google.maps.routing.v2.Location end_location = 5; -
getEndLocationOrBuilder
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Specified by:
getEndLocationOrBuilderin interfaceRouteLegStepOrBuilder
-
hasTravelAdvisory
public boolean hasTravelAdvisory()Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;- Specified by:
hasTravelAdvisoryin interfaceRouteLegStepOrBuilder- 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 leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;- Specified by:
getTravelAdvisoryin interfaceRouteLegStepOrBuilder- Returns:
- The travelAdvisory.
-
setTravelAdvisory
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; -
setTravelAdvisory
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; -
mergeTravelAdvisory
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; -
clearTravelAdvisory
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; -
getTravelAdvisoryBuilder
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; -
getTravelAdvisoryOrBuilder
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;- Specified by:
getTravelAdvisoryOrBuilderin interfaceRouteLegStepOrBuilder
-
hasLocalizedValues
public boolean hasLocalizedValues()Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;- Specified by:
hasLocalizedValuesin interfaceRouteLegStepOrBuilder- Returns:
- Whether the localizedValues field is set.
-
getLocalizedValues
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;- Specified by:
getLocalizedValuesin interfaceRouteLegStepOrBuilder- Returns:
- The localizedValues.
-
setLocalizedValues
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; -
setLocalizedValues
public RouteLegStep.Builder setLocalizedValues(RouteLegStep.RouteLegStepLocalizedValues.Builder builderForValue) Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; -
mergeLocalizedValues
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; -
clearLocalizedValues
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; -
getLocalizedValuesBuilder
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; -
getLocalizedValuesOrBuilder
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;- Specified by:
getLocalizedValuesOrBuilderin interfaceRouteLegStepOrBuilder
-
hasTransitDetails
public boolean hasTransitDetails()Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;- Specified by:
hasTransitDetailsin interfaceRouteLegStepOrBuilder- Returns:
- Whether the transitDetails field is set.
-
getTransitDetails
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;- Specified by:
getTransitDetailsin interfaceRouteLegStepOrBuilder- Returns:
- The transitDetails.
-
setTransitDetails
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; -
setTransitDetails
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; -
mergeTransitDetails
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; -
clearTransitDetails
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; -
getTransitDetailsBuilder
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; -
getTransitDetailsOrBuilder
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;- Specified by:
getTransitDetailsOrBuilderin interfaceRouteLegStepOrBuilder
-
getTravelModeValue
public int getTravelModeValue()The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Specified by:
getTravelModeValuein interfaceRouteLegStepOrBuilder- Returns:
- The enum numeric value on the wire for travelMode.
-
setTravelModeValue
The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Parameters:
value- The enum numeric value on the wire for travelMode to set.- Returns:
- This builder for chaining.
-
getTravelMode
The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Specified by:
getTravelModein interfaceRouteLegStepOrBuilder- Returns:
- The travelMode.
-
setTravelMode
The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Parameters:
value- The travelMode to set.- Returns:
- This builder for chaining.
-
clearTravelMode
The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Returns:
- This builder for chaining.
-