public static final class NavigationInstruction.Builder extends com.google.protobuf.GeneratedMessage.Builder<NavigationInstruction.Builder> implements NavigationInstructionOrBuilder
Encapsulates navigation instructions for a [`RouteLegStep`][google.maps.routing.v2.RouteLegStep].Protobuf type
google.maps.routing.v2.NavigationInstruction| Modifier and Type | Method and Description |
|---|---|
NavigationInstruction |
build() |
NavigationInstruction |
buildPartial() |
NavigationInstruction.Builder |
clear() |
NavigationInstruction.Builder |
clearInstructions()
Instructions for navigating this step.
|
NavigationInstruction.Builder |
clearManeuver()
Encapsulates the navigation instructions for the current step (for example,
turn left, merge, or straight).
|
NavigationInstruction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getInstructions()
Instructions for navigating this step.
|
com.google.protobuf.ByteString |
getInstructionsBytes()
Instructions for navigating this step.
|
Maneuver |
getManeuver()
Encapsulates the navigation instructions for the current step (for example,
turn left, merge, or straight).
|
int |
getManeuverValue()
Encapsulates the navigation instructions for the current step (for example,
turn left, merge, or straight).
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
NavigationInstruction.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
NavigationInstruction.Builder |
mergeFrom(com.google.protobuf.Message other) |
NavigationInstruction.Builder |
mergeFrom(NavigationInstruction other) |
NavigationInstruction.Builder |
setInstructions(String value)
Instructions for navigating this step.
|
NavigationInstruction.Builder |
setInstructionsBytes(com.google.protobuf.ByteString value)
Instructions for navigating this step.
|
NavigationInstruction.Builder |
setManeuver(Maneuver value)
Encapsulates the navigation instructions for the current step (for example,
turn left, merge, or straight).
|
NavigationInstruction.Builder |
setManeuverValue(int value)
Encapsulates the navigation instructions for the current step (for example,
turn left, merge, or straight).
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<NavigationInstruction.Builder>public NavigationInstruction.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<NavigationInstruction.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NavigationInstruction.Builder>public NavigationInstruction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic NavigationInstruction build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic NavigationInstruction buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic NavigationInstruction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NavigationInstruction.Builder>public NavigationInstruction.Builder mergeFrom(NavigationInstruction other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<NavigationInstruction.Builder>public NavigationInstruction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NavigationInstruction.Builder>IOExceptionpublic int getManeuverValue()
Encapsulates the navigation instructions for the current step (for example, turn left, merge, or straight). This field determines which icon to display.
.google.maps.routing.v2.Maneuver maneuver = 1;getManeuverValue in interface NavigationInstructionOrBuilderpublic NavigationInstruction.Builder setManeuverValue(int value)
Encapsulates the navigation instructions for the current step (for example, turn left, merge, or straight). This field determines which icon to display.
.google.maps.routing.v2.Maneuver maneuver = 1;value - The enum numeric value on the wire for maneuver to set.public Maneuver getManeuver()
Encapsulates the navigation instructions for the current step (for example, turn left, merge, or straight). This field determines which icon to display.
.google.maps.routing.v2.Maneuver maneuver = 1;getManeuver in interface NavigationInstructionOrBuilderpublic NavigationInstruction.Builder setManeuver(Maneuver value)
Encapsulates the navigation instructions for the current step (for example, turn left, merge, or straight). This field determines which icon to display.
.google.maps.routing.v2.Maneuver maneuver = 1;value - The maneuver to set.public NavigationInstruction.Builder clearManeuver()
Encapsulates the navigation instructions for the current step (for example, turn left, merge, or straight). This field determines which icon to display.
.google.maps.routing.v2.Maneuver maneuver = 1;public String getInstructions()
Instructions for navigating this step.
string instructions = 2;getInstructions in interface NavigationInstructionOrBuilderpublic com.google.protobuf.ByteString getInstructionsBytes()
Instructions for navigating this step.
string instructions = 2;getInstructionsBytes in interface NavigationInstructionOrBuilderpublic NavigationInstruction.Builder setInstructions(String value)
Instructions for navigating this step.
string instructions = 2;value - The instructions to set.public NavigationInstruction.Builder clearInstructions()
Instructions for navigating this step.
string instructions = 2;public NavigationInstruction.Builder setInstructionsBytes(com.google.protobuf.ByteString value)
Instructions for navigating this step.
string instructions = 2;value - The bytes for instructions to set.Copyright © 2026 Google LLC. All rights reserved.