Package com.google.maps.routing.v2
Class NavigationInstruction.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
-
- com.google.maps.routing.v2.NavigationInstruction.Builder
-
- All Implemented Interfaces:
NavigationInstructionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NavigationInstruction
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 typegoogle.maps.routing.v2.NavigationInstruction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NavigationInstruction.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NavigationInstructionbuild()NavigationInstructionbuildPartial()NavigationInstruction.Builderclear()NavigationInstruction.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)NavigationInstruction.BuilderclearInstructions()Instructions for navigating this step.NavigationInstruction.BuilderclearManeuver()Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.).NavigationInstruction.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)NavigationInstruction.Builderclone()NavigationInstructiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetInstructions()Instructions for navigating this step.com.google.protobuf.ByteStringgetInstructionsBytes()Instructions for navigating this step.ManeuvergetManeuver()Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.).intgetManeuverValue()Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()NavigationInstruction.BuildermergeFrom(NavigationInstruction other)NavigationInstruction.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)NavigationInstruction.BuildermergeFrom(com.google.protobuf.Message other)NavigationInstruction.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)NavigationInstruction.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NavigationInstruction.BuildersetInstructions(String value)Instructions for navigating this step.NavigationInstruction.BuildersetInstructionsBytes(com.google.protobuf.ByteString value)Instructions for navigating this step.NavigationInstruction.BuildersetManeuver(Maneuver value)Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.).NavigationInstruction.BuildersetManeuverValue(int value)Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.).NavigationInstruction.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)NavigationInstruction.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<NavigationInstruction.Builder>
-
clear
public NavigationInstruction.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<NavigationInstruction.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<NavigationInstruction.Builder>
-
getDefaultInstanceForType
public NavigationInstruction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public NavigationInstruction build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NavigationInstruction buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NavigationInstruction.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<NavigationInstruction.Builder>
-
setField
public NavigationInstruction.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<NavigationInstruction.Builder>
-
clearField
public NavigationInstruction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
-
clearOneof
public NavigationInstruction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
-
setRepeatedField
public NavigationInstruction.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<NavigationInstruction.Builder>
-
addRepeatedField
public NavigationInstruction.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<NavigationInstruction.Builder>
-
mergeFrom
public NavigationInstruction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NavigationInstruction.Builder>
-
mergeFrom
public NavigationInstruction.Builder mergeFrom(NavigationInstruction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
-
mergeFrom
public NavigationInstruction.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<NavigationInstruction.Builder>- Throws:
IOException
-
getManeuverValue
public int getManeuverValue()
Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.). This field determines which icon to display.
.google.maps.routing.v2.Maneuver maneuver = 1;- Specified by:
getManeuverValuein interfaceNavigationInstructionOrBuilder- Returns:
- The enum numeric value on the wire for maneuver.
-
setManeuverValue
public NavigationInstruction.Builder setManeuverValue(int value)
Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.). This field determines which icon to display.
.google.maps.routing.v2.Maneuver maneuver = 1;- Parameters:
value- The enum numeric value on the wire for maneuver to set.- Returns:
- This builder for chaining.
-
getManeuver
public Maneuver getManeuver()
Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.). This field determines which icon to display.
.google.maps.routing.v2.Maneuver maneuver = 1;- Specified by:
getManeuverin interfaceNavigationInstructionOrBuilder- Returns:
- The maneuver.
-
setManeuver
public NavigationInstruction.Builder setManeuver(Maneuver value)
Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.). This field determines which icon to display.
.google.maps.routing.v2.Maneuver maneuver = 1;- Parameters:
value- The maneuver to set.- Returns:
- This builder for chaining.
-
clearManeuver
public NavigationInstruction.Builder clearManeuver()
Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.). This field determines which icon to display.
.google.maps.routing.v2.Maneuver maneuver = 1;- Returns:
- This builder for chaining.
-
getInstructions
public String getInstructions()
Instructions for navigating this step.
string instructions = 2;- Specified by:
getInstructionsin interfaceNavigationInstructionOrBuilder- Returns:
- The instructions.
-
getInstructionsBytes
public com.google.protobuf.ByteString getInstructionsBytes()
Instructions for navigating this step.
string instructions = 2;- Specified by:
getInstructionsBytesin interfaceNavigationInstructionOrBuilder- Returns:
- The bytes for instructions.
-
setInstructions
public NavigationInstruction.Builder setInstructions(String value)
Instructions for navigating this step.
string instructions = 2;- Parameters:
value- The instructions to set.- Returns:
- This builder for chaining.
-
clearInstructions
public NavigationInstruction.Builder clearInstructions()
Instructions for navigating this step.
string instructions = 2;- Returns:
- This builder for chaining.
-
setInstructionsBytes
public NavigationInstruction.Builder setInstructionsBytes(com.google.protobuf.ByteString value)
Instructions for navigating this step.
string instructions = 2;- Parameters:
value- The bytes for instructions to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final NavigationInstruction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
-
mergeUnknownFields
public final NavigationInstruction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
-
-