Class 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 type google.maps.routing.v2.NavigationInstruction
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public NavigationInstruction.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
      • clearField

        public NavigationInstruction.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
      • clearOneof

        public NavigationInstruction.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
      • addRepeatedField

        public NavigationInstruction.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 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 (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 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 (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 interface NavigationInstructionOrBuilder
        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.
      • 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.
      • setUnknownFields

        public final NavigationInstruction.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>
      • mergeUnknownFields

        public final NavigationInstruction.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NavigationInstruction.Builder>