Class NavigationInstruction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<NavigationInstruction.Builder> implements NavigationInstructionOrBuilder
 Encapsulates navigation instructions for a
 [`RouteLegStep`][google.maps.routing.v2.RouteLegStep].
 
Protobuf type google.maps.routing.v2.NavigationInstruction
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<NavigationInstruction.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<NavigationInstruction.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NavigationInstruction.Builder>
    • getDefaultInstanceForType

      public NavigationInstruction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public NavigationInstruction build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public NavigationInstruction buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public NavigationInstruction.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NavigationInstruction.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<NavigationInstruction.Builder>
    • mergeFrom

      public NavigationInstruction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NavigationInstruction.Builder>
      Throws:
      IOException
    • getManeuverValue

      public 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;
      Specified by:
      getManeuverValue in interface NavigationInstructionOrBuilder
      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 (for example,
       turn left, merge, or straight). 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 (for example,
       turn left, merge, or straight). This field determines which icon to
       display.
       
      .google.maps.routing.v2.Maneuver maneuver = 1;
      Specified by:
      getManeuver in interface NavigationInstructionOrBuilder
      Returns:
      The maneuver.
    • setManeuver

      public 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;
      Parameters:
      value - The maneuver to set.
      Returns:
      This builder for chaining.
    • clearManeuver

      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;
      Returns:
      This builder for chaining.
    • getInstructions

      public String getInstructions()
       Instructions for navigating this step.
       
      string instructions = 2;
      Specified by:
      getInstructions in interface NavigationInstructionOrBuilder
      Returns:
      The instructions.
    • getInstructionsBytes

      public com.google.protobuf.ByteString getInstructionsBytes()
       Instructions for navigating this step.
       
      string instructions = 2;
      Specified by:
      getInstructionsBytes in interface NavigationInstructionOrBuilder
      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.