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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteLegStep
build()
RouteLegStep
buildPartial()
RouteLegStep.Builder
clear()
RouteLegStep.Builder
clearDistanceMeters()
The travel distance of this step, in meters.RouteLegStep.Builder
clearEndLocation()
The end location of this step.RouteLegStep.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RouteLegStep.Builder
clearLocalizedValues()
Text representations of properties of the `RouteLegStep`.RouteLegStep.Builder
clearNavigationInstruction()
Navigation instructions.RouteLegStep.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RouteLegStep.Builder
clearPolyline()
The polyline associated with this step.RouteLegStep.Builder
clearStartLocation()
The start location of this step.RouteLegStep.Builder
clearStaticDuration()
The duration of travel through this step without taking traffic conditions into consideration.RouteLegStep.Builder
clearTransitDetails()
Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStep.Builder
clearTravelAdvisory()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteLegStep.Builder
clearTravelMode()
The travel mode used for this step.RouteLegStep.Builder
clone()
RouteLegStep
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getDistanceMeters()
The travel distance of this step, in meters.Location
getEndLocation()
The end location of this step.Location.Builder
getEndLocationBuilder()
The end location of this step.LocationOrBuilder
getEndLocationOrBuilder()
The end location of this step.RouteLegStep.RouteLegStepLocalizedValues
getLocalizedValues()
Text representations of properties of the `RouteLegStep`.RouteLegStep.RouteLegStepLocalizedValues.Builder
getLocalizedValuesBuilder()
Text representations of properties of the `RouteLegStep`.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder
getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteLegStep`.NavigationInstruction
getNavigationInstruction()
Navigation instructions.NavigationInstruction.Builder
getNavigationInstructionBuilder()
Navigation instructions.NavigationInstructionOrBuilder
getNavigationInstructionOrBuilder()
Navigation instructions.Polyline
getPolyline()
The polyline associated with this step.Polyline.Builder
getPolylineBuilder()
The polyline associated with this step.PolylineOrBuilder
getPolylineOrBuilder()
The polyline associated with this step.Location
getStartLocation()
The start location of this step.Location.Builder
getStartLocationBuilder()
The start location of this step.LocationOrBuilder
getStartLocationOrBuilder()
The start location of this step.com.google.protobuf.Duration
getStaticDuration()
The duration of travel through this step without taking traffic conditions into consideration.com.google.protobuf.Duration.Builder
getStaticDurationBuilder()
The duration of travel through this step without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuilder
getStaticDurationOrBuilder()
The duration of travel through this step without taking traffic conditions into consideration.RouteLegStepTransitDetails
getTransitDetails()
Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStepTransitDetails.Builder
getTransitDetailsBuilder()
Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStepTransitDetailsOrBuilder
getTransitDetailsOrBuilder()
Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStepTravelAdvisory
getTravelAdvisory()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteLegStepTravelAdvisory.Builder
getTravelAdvisoryBuilder()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteLegStepTravelAdvisoryOrBuilder
getTravelAdvisoryOrBuilder()
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteTravelMode
getTravelMode()
The travel mode used for this step.int
getTravelModeValue()
The travel mode used for this step.boolean
hasEndLocation()
The end location of this step.boolean
hasLocalizedValues()
Text representations of properties of the `RouteLegStep`.boolean
hasNavigationInstruction()
Navigation instructions.boolean
hasPolyline()
The polyline associated with this step.boolean
hasStartLocation()
The start location of this step.boolean
hasStaticDuration()
The duration of travel through this step without taking traffic conditions into consideration.boolean
hasTransitDetails()
Details pertaining to this step if the travel mode is `TRANSIT`.boolean
hasTravelAdvisory()
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.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RouteLegStep.Builder
mergeEndLocation(Location value)
The end location of this step.RouteLegStep.Builder
mergeFrom(RouteLegStep other)
RouteLegStep.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouteLegStep.Builder
mergeFrom(com.google.protobuf.Message other)
RouteLegStep.Builder
mergeLocalizedValues(RouteLegStep.RouteLegStepLocalizedValues value)
Text representations of properties of the `RouteLegStep`.RouteLegStep.Builder
mergeNavigationInstruction(NavigationInstruction value)
Navigation instructions.RouteLegStep.Builder
mergePolyline(Polyline value)
The polyline associated with this step.RouteLegStep.Builder
mergeStartLocation(Location value)
The start location of this step.RouteLegStep.Builder
mergeStaticDuration(com.google.protobuf.Duration value)
The duration of travel through this step without taking traffic conditions into consideration.RouteLegStep.Builder
mergeTransitDetails(RouteLegStepTransitDetails value)
Details pertaining to this step if the travel mode is `TRANSIT`.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.RouteLegStep.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RouteLegStep.Builder
setDistanceMeters(int value)
The travel distance of this step, in meters.RouteLegStep.Builder
setEndLocation(Location value)
The end location of this step.RouteLegStep.Builder
setEndLocation(Location.Builder builderForValue)
The end location of this step.RouteLegStep.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteLegStep.Builder
setLocalizedValues(RouteLegStep.RouteLegStepLocalizedValues value)
Text representations of properties of the `RouteLegStep`.RouteLegStep.Builder
setLocalizedValues(RouteLegStep.RouteLegStepLocalizedValues.Builder builderForValue)
Text representations of properties of the `RouteLegStep`.RouteLegStep.Builder
setNavigationInstruction(NavigationInstruction value)
Navigation instructions.RouteLegStep.Builder
setNavigationInstruction(NavigationInstruction.Builder builderForValue)
Navigation instructions.RouteLegStep.Builder
setPolyline(Polyline value)
The polyline associated with this step.RouteLegStep.Builder
setPolyline(Polyline.Builder builderForValue)
The polyline associated with this step.RouteLegStep.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RouteLegStep.Builder
setStartLocation(Location value)
The start location of this step.RouteLegStep.Builder
setStartLocation(Location.Builder builderForValue)
The start location of this step.RouteLegStep.Builder
setStaticDuration(com.google.protobuf.Duration value)
The duration of travel through this step without taking traffic conditions into consideration.RouteLegStep.Builder
setStaticDuration(com.google.protobuf.Duration.Builder builderForValue)
The duration of travel through this step without taking traffic conditions into consideration.RouteLegStep.Builder
setTransitDetails(RouteLegStepTransitDetails value)
Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStep.Builder
setTransitDetails(RouteLegStepTransitDetails.Builder builderForValue)
Details pertaining to this step if the travel mode is `TRANSIT`.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.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.RouteLegStep.Builder
setTravelMode(RouteTravelMode value)
The travel mode used for this step.RouteLegStep.Builder
setTravelModeValue(int value)
The travel mode used for this step.RouteLegStep.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<RouteLegStep.Builder>
-
clear
public RouteLegStep.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<RouteLegStep.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<RouteLegStep.Builder>
-
getDefaultInstanceForType
public RouteLegStep getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteLegStep build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteLegStep buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteLegStep.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<RouteLegStep.Builder>
-
setField
public RouteLegStep.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<RouteLegStep.Builder>
-
clearField
public RouteLegStep.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<RouteLegStep.Builder>
-
clearOneof
public RouteLegStep.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<RouteLegStep.Builder>
-
setRepeatedField
public RouteLegStep.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<RouteLegStep.Builder>
-
addRepeatedField
public RouteLegStep.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<RouteLegStep.Builder>
-
mergeFrom
public RouteLegStep.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouteLegStep.Builder>
-
mergeFrom
public RouteLegStep.Builder mergeFrom(RouteLegStep other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getDistanceMeters
in 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:
hasStaticDuration
in 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:
getStaticDuration
in 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:
getStaticDurationOrBuilder
in interfaceRouteLegStepOrBuilder
-
hasPolyline
public boolean hasPolyline()
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;
- Specified by:
hasPolyline
in 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:
getPolyline
in 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:
getPolylineOrBuilder
in interfaceRouteLegStepOrBuilder
-
hasStartLocation
public boolean hasStartLocation()
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;
- Specified by:
hasStartLocation
in 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:
getStartLocation
in 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:
getStartLocationOrBuilder
in interfaceRouteLegStepOrBuilder
-
hasEndLocation
public boolean hasEndLocation()
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;
- Specified by:
hasEndLocation
in 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:
getEndLocation
in 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:
getEndLocationOrBuilder
in interfaceRouteLegStepOrBuilder
-
hasNavigationInstruction
public boolean hasNavigationInstruction()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;
- Specified by:
hasNavigationInstruction
in interfaceRouteLegStepOrBuilder
- Returns:
- Whether the navigationInstruction field is set.
-
getNavigationInstruction
public NavigationInstruction getNavigationInstruction()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;
- Specified by:
getNavigationInstruction
in 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:
getNavigationInstructionOrBuilder
in 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:
hasTravelAdvisory
in 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:
getTravelAdvisory
in 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:
getTravelAdvisoryOrBuilder
in interfaceRouteLegStepOrBuilder
-
hasLocalizedValues
public boolean hasLocalizedValues()
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;
- Specified by:
hasLocalizedValues
in 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:
getLocalizedValues
in 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:
getLocalizedValuesOrBuilder
in 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:
hasTransitDetails
in 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:
getTransitDetails
in 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:
getTransitDetailsOrBuilder
in interfaceRouteLegStepOrBuilder
-
getTravelModeValue
public int getTravelModeValue()
The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;
- Specified by:
getTravelModeValue
in 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:
getTravelMode
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
mergeUnknownFields
public final RouteLegStep.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteLegStep.Builder>
-
-