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.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 (e.g., turn left, merge, straight, etc.).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 (e.g., turn left, merge, straight, etc.).int
getManeuverValue()
Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
NavigationInstruction.Builder
mergeFrom(NavigationInstruction other)
NavigationInstruction.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
NavigationInstruction.Builder
mergeFrom(com.google.protobuf.Message 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 (e.g., turn left, merge, straight, etc.).NavigationInstruction.Builder
setManeuverValue(int value)
Encapsulates the navigation instructions for the current step (e.g., turn left, merge, straight, etc.).NavigationInstruction.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
NavigationInstruction.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<NavigationInstruction.Builder>
-
clear
public NavigationInstruction.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<NavigationInstruction.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<NavigationInstruction.Builder>
-
getDefaultInstanceForType
public NavigationInstruction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public NavigationInstruction build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NavigationInstruction buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NavigationInstruction.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<NavigationInstruction.Builder>
-
setField
public NavigationInstruction.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<NavigationInstruction.Builder>
-
clearField
public NavigationInstruction.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<NavigationInstruction.Builder>
-
clearOneof
public NavigationInstruction.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<NavigationInstruction.Builder>
-
setRepeatedField
public NavigationInstruction.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<NavigationInstruction.Builder>
-
addRepeatedField
public NavigationInstruction.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<NavigationInstruction.Builder>
-
mergeFrom
public NavigationInstruction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NavigationInstruction.Builder>
-
mergeFrom
public NavigationInstruction.Builder mergeFrom(NavigationInstruction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getManeuverValue
in 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:
getManeuver
in 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:
getInstructions
in interfaceNavigationInstructionOrBuilder
- Returns:
- The instructions.
-
getInstructionsBytes
public com.google.protobuf.ByteString getInstructionsBytes()
Instructions for navigating this step.
string instructions = 2;
- Specified by:
getInstructionsBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
-
mergeUnknownFields
public final NavigationInstruction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
-
-