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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.maps.routing.v2.RouteLegStep
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteLegStep.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouteLegStepbuild()RouteLegStepbuildPartial()RouteLegStep.Builderclear()RouteLegStep.BuilderclearDistanceMeters()The travel distance of this step, in meters.RouteLegStep.BuilderclearEndLocation()The end location of this step.RouteLegStep.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RouteLegStep.BuilderclearLocalizedValues()Text representations of properties of the `RouteLegStep`.RouteLegStep.BuilderclearNavigationInstruction()Navigation instructions.RouteLegStep.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RouteLegStep.BuilderclearPolyline()The polyline associated with this step.RouteLegStep.BuilderclearStartLocation()The start location of this step.RouteLegStep.BuilderclearStaticDuration()The duration of travel through this step without taking traffic conditions into consideration.RouteLegStep.BuilderclearTransitDetails()Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStep.BuilderclearTravelAdvisory()Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteLegStep.BuilderclearTravelMode()The travel mode used for this step.RouteLegStep.Builderclone()RouteLegStepgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetDistanceMeters()The travel distance of this step, in meters.LocationgetEndLocation()The end location of this step.Location.BuildergetEndLocationBuilder()The end location of this step.LocationOrBuildergetEndLocationOrBuilder()The end location of this step.RouteLegStep.RouteLegStepLocalizedValuesgetLocalizedValues()Text representations of properties of the `RouteLegStep`.RouteLegStep.RouteLegStepLocalizedValues.BuildergetLocalizedValuesBuilder()Text representations of properties of the `RouteLegStep`.RouteLegStep.RouteLegStepLocalizedValuesOrBuildergetLocalizedValuesOrBuilder()Text representations of properties of the `RouteLegStep`.NavigationInstructiongetNavigationInstruction()Navigation instructions.NavigationInstruction.BuildergetNavigationInstructionBuilder()Navigation instructions.NavigationInstructionOrBuildergetNavigationInstructionOrBuilder()Navigation instructions.PolylinegetPolyline()The polyline associated with this step.Polyline.BuildergetPolylineBuilder()The polyline associated with this step.PolylineOrBuildergetPolylineOrBuilder()The polyline associated with this step.LocationgetStartLocation()The start location of this step.Location.BuildergetStartLocationBuilder()The start location of this step.LocationOrBuildergetStartLocationOrBuilder()The start location of this step.com.google.protobuf.DurationgetStaticDuration()The duration of travel through this step without taking traffic conditions into consideration.com.google.protobuf.Duration.BuildergetStaticDurationBuilder()The duration of travel through this step without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuildergetStaticDurationOrBuilder()The duration of travel through this step without taking traffic conditions into consideration.RouteLegStepTransitDetailsgetTransitDetails()Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStepTransitDetails.BuildergetTransitDetailsBuilder()Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStepTransitDetailsOrBuildergetTransitDetailsOrBuilder()Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStepTravelAdvisorygetTravelAdvisory()Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteLegStepTravelAdvisory.BuildergetTravelAdvisoryBuilder()Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteLegStepTravelAdvisoryOrBuildergetTravelAdvisoryOrBuilder()Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteTravelModegetTravelMode()The travel mode used for this step.intgetTravelModeValue()The travel mode used for this step.booleanhasEndLocation()The end location of this step.booleanhasLocalizedValues()Text representations of properties of the `RouteLegStep`.booleanhasNavigationInstruction()Navigation instructions.booleanhasPolyline()The polyline associated with this step.booleanhasStartLocation()The start location of this step.booleanhasStaticDuration()The duration of travel through this step without taking traffic conditions into consideration.booleanhasTransitDetails()Details pertaining to this step if the travel mode is `TRANSIT`.booleanhasTravelAdvisory()Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RouteLegStep.BuildermergeEndLocation(Location value)The end location of this step.RouteLegStep.BuildermergeFrom(RouteLegStep other)RouteLegStep.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RouteLegStep.BuildermergeFrom(com.google.protobuf.Message other)RouteLegStep.BuildermergeLocalizedValues(RouteLegStep.RouteLegStepLocalizedValues value)Text representations of properties of the `RouteLegStep`.RouteLegStep.BuildermergeNavigationInstruction(NavigationInstruction value)Navigation instructions.RouteLegStep.BuildermergePolyline(Polyline value)The polyline associated with this step.RouteLegStep.BuildermergeStartLocation(Location value)The start location of this step.RouteLegStep.BuildermergeStaticDuration(com.google.protobuf.Duration value)The duration of travel through this step without taking traffic conditions into consideration.RouteLegStep.BuildermergeTransitDetails(RouteLegStepTransitDetails value)Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStep.BuildermergeTravelAdvisory(RouteLegStepTravelAdvisory value)Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteLegStep.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RouteLegStep.BuildersetDistanceMeters(int value)The travel distance of this step, in meters.RouteLegStep.BuildersetEndLocation(Location value)The end location of this step.RouteLegStep.BuildersetEndLocation(Location.Builder builderForValue)The end location of this step.RouteLegStep.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouteLegStep.BuildersetLocalizedValues(RouteLegStep.RouteLegStepLocalizedValues value)Text representations of properties of the `RouteLegStep`.RouteLegStep.BuildersetLocalizedValues(RouteLegStep.RouteLegStepLocalizedValues.Builder builderForValue)Text representations of properties of the `RouteLegStep`.RouteLegStep.BuildersetNavigationInstruction(NavigationInstruction value)Navigation instructions.RouteLegStep.BuildersetNavigationInstruction(NavigationInstruction.Builder builderForValue)Navigation instructions.RouteLegStep.BuildersetPolyline(Polyline value)The polyline associated with this step.RouteLegStep.BuildersetPolyline(Polyline.Builder builderForValue)The polyline associated with this step.RouteLegStep.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RouteLegStep.BuildersetStartLocation(Location value)The start location of this step.RouteLegStep.BuildersetStartLocation(Location.Builder builderForValue)The start location of this step.RouteLegStep.BuildersetStaticDuration(com.google.protobuf.Duration value)The duration of travel through this step without taking traffic conditions into consideration.RouteLegStep.BuildersetStaticDuration(com.google.protobuf.Duration.Builder builderForValue)The duration of travel through this step without taking traffic conditions into consideration.RouteLegStep.BuildersetTransitDetails(RouteLegStepTransitDetails value)Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStep.BuildersetTransitDetails(RouteLegStepTransitDetails.Builder builderForValue)Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStep.BuildersetTravelAdvisory(RouteLegStepTravelAdvisory value)Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteLegStep.BuildersetTravelAdvisory(RouteLegStepTravelAdvisory.Builder builderForValue)Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteLegStep.BuildersetTravelMode(RouteTravelMode value)The travel mode used for this step.RouteLegStep.BuildersetTravelModeValue(int value)The travel mode used for this step.RouteLegStep.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
clear
public RouteLegStep.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
getDefaultInstanceForType
public RouteLegStep getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteLegStep build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteLegStep buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteLegStep.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
setField
public RouteLegStep.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
clearField
public RouteLegStep.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
clearOneof
public RouteLegStep.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
setRepeatedField
public RouteLegStep.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
addRepeatedField
public RouteLegStep.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
mergeFrom
public RouteLegStep.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteLegStep.Builder>
-
mergeFrom
public RouteLegStep.Builder mergeFrom(RouteLegStep other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public RouteLegStep.Builder setDistanceMeters(int value)
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
public RouteLegStep.Builder 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
public RouteLegStep.Builder setStaticDuration(com.google.protobuf.Duration value)
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
public RouteLegStep.Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue)
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
public RouteLegStep.Builder mergeStaticDuration(com.google.protobuf.Duration value)
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
public RouteLegStep.Builder 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
public Polyline getPolyline()
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;- Specified by:
getPolylinein interfaceRouteLegStepOrBuilder- Returns:
- The polyline.
-
setPolyline
public RouteLegStep.Builder setPolyline(Polyline value)
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;
-
setPolyline
public RouteLegStep.Builder setPolyline(Polyline.Builder builderForValue)
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;
-
mergePolyline
public RouteLegStep.Builder mergePolyline(Polyline value)
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;
-
clearPolyline
public RouteLegStep.Builder clearPolyline()
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;
-
getPolylineBuilder
public Polyline.Builder getPolylineBuilder()
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;
-
getPolylineOrBuilder
public PolylineOrBuilder 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
public Location getStartLocation()
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;- Specified by:
getStartLocationin interfaceRouteLegStepOrBuilder- Returns:
- The startLocation.
-
setStartLocation
public RouteLegStep.Builder setStartLocation(Location value)
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;
-
setStartLocation
public RouteLegStep.Builder setStartLocation(Location.Builder builderForValue)
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;
-
mergeStartLocation
public RouteLegStep.Builder mergeStartLocation(Location value)
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;
-
clearStartLocation
public RouteLegStep.Builder clearStartLocation()
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;
-
getStartLocationBuilder
public Location.Builder getStartLocationBuilder()
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;
-
getStartLocationOrBuilder
public LocationOrBuilder 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
public Location getEndLocation()
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Specified by:
getEndLocationin interfaceRouteLegStepOrBuilder- Returns:
- The endLocation.
-
setEndLocation
public RouteLegStep.Builder setEndLocation(Location value)
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;
-
setEndLocation
public RouteLegStep.Builder setEndLocation(Location.Builder builderForValue)
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;
-
mergeEndLocation
public RouteLegStep.Builder mergeEndLocation(Location value)
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;
-
clearEndLocation
public RouteLegStep.Builder clearEndLocation()
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;
-
getEndLocationBuilder
public Location.Builder getEndLocationBuilder()
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;
-
getEndLocationOrBuilder
public LocationOrBuilder getEndLocationOrBuilder()
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Specified by:
getEndLocationOrBuilderin interfaceRouteLegStepOrBuilder
-
hasNavigationInstruction
public boolean hasNavigationInstruction()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;- Specified by:
hasNavigationInstructionin interfaceRouteLegStepOrBuilder- Returns:
- Whether the navigationInstruction field is set.
-
getNavigationInstruction
public NavigationInstruction getNavigationInstruction()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;- Specified by:
getNavigationInstructionin interfaceRouteLegStepOrBuilder- Returns:
- The navigationInstruction.
-
setNavigationInstruction
public RouteLegStep.Builder setNavigationInstruction(NavigationInstruction value)
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;
-
setNavigationInstruction
public RouteLegStep.Builder setNavigationInstruction(NavigationInstruction.Builder builderForValue)
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;
-
mergeNavigationInstruction
public RouteLegStep.Builder mergeNavigationInstruction(NavigationInstruction value)
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;
-
clearNavigationInstruction
public RouteLegStep.Builder clearNavigationInstruction()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;
-
getNavigationInstructionBuilder
public NavigationInstruction.Builder getNavigationInstructionBuilder()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;
-
getNavigationInstructionOrBuilder
public NavigationInstructionOrBuilder getNavigationInstructionOrBuilder()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;- Specified by:
getNavigationInstructionOrBuilderin 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
public RouteLegStepTravelAdvisory 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
public RouteLegStep.Builder setTravelAdvisory(RouteLegStepTravelAdvisory value)
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
public RouteLegStep.Builder 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.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;
-
mergeTravelAdvisory
public RouteLegStep.Builder mergeTravelAdvisory(RouteLegStepTravelAdvisory value)
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
public RouteLegStep.Builder 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
public RouteLegStepTravelAdvisory.Builder 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
public RouteLegStepTravelAdvisoryOrBuilder 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
public RouteLegStep.RouteLegStepLocalizedValues 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
public RouteLegStep.Builder setLocalizedValues(RouteLegStep.RouteLegStepLocalizedValues value)
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
public RouteLegStep.Builder mergeLocalizedValues(RouteLegStep.RouteLegStepLocalizedValues value)
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;
-
clearLocalizedValues
public RouteLegStep.Builder clearLocalizedValues()
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;
-
getLocalizedValuesBuilder
public RouteLegStep.RouteLegStepLocalizedValues.Builder getLocalizedValuesBuilder()
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;
-
getLocalizedValuesOrBuilder
public RouteLegStep.RouteLegStepLocalizedValuesOrBuilder 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
public RouteLegStepTransitDetails 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
public RouteLegStep.Builder setTransitDetails(RouteLegStepTransitDetails value)
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;
-
setTransitDetails
public RouteLegStep.Builder setTransitDetails(RouteLegStepTransitDetails.Builder builderForValue)
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;
-
mergeTransitDetails
public RouteLegStep.Builder mergeTransitDetails(RouteLegStepTransitDetails value)
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;
-
clearTransitDetails
public RouteLegStep.Builder clearTransitDetails()
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;
-
getTransitDetailsBuilder
public RouteLegStepTransitDetails.Builder getTransitDetailsBuilder()
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;
-
getTransitDetailsOrBuilder
public RouteLegStepTransitDetailsOrBuilder 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
public RouteLegStep.Builder setTravelModeValue(int value)
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
public RouteTravelMode getTravelMode()
The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Specified by:
getTravelModein interfaceRouteLegStepOrBuilder- Returns:
- The travelMode.
-
setTravelMode
public RouteLegStep.Builder setTravelMode(RouteTravelMode value)
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
public RouteLegStep.Builder clearTravelMode()
The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Returns:
- This builder for chaining.
-
setUnknownFields
public final RouteLegStep.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
mergeUnknownFields
public final RouteLegStep.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
-