public static final class NavigationInstruction.Builder extends com.google.protobuf.GeneratedMessageV3.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
NavigationInstruction |
build() |
NavigationInstruction |
buildPartial() |
NavigationInstruction.Builder |
clear() |
NavigationInstruction.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
NavigationInstruction.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
NavigationInstruction.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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).
|
NavigationInstruction.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
NavigationInstruction.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>public NavigationInstruction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>public NavigationInstruction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>public NavigationInstruction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>public NavigationInstruction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>public NavigationInstruction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>public 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.GeneratedMessageV3.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.public final NavigationInstruction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>public final NavigationInstruction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>Copyright © 2025 Google LLC. All rights reserved.