Enum GrpcJsonTranscoder.UrlUnescapeSpec

    • Enum Constant Detail

      • ALL_CHARACTERS_EXCEPT_RESERVED

        public static final GrpcJsonTranscoder.UrlUnescapeSpec ALL_CHARACTERS_EXCEPT_RESERVED
         URL path parameters will not decode RFC 6570 reserved characters.
         For example, segment ``%2f%23/%20%2523`` is unescaped to ``%2f%23/ %23``.
         
        ALL_CHARACTERS_EXCEPT_RESERVED = 0;
      • ALL_CHARACTERS_EXCEPT_SLASH

        public static final GrpcJsonTranscoder.UrlUnescapeSpec ALL_CHARACTERS_EXCEPT_SLASH
         URL path parameters will be fully URI-decoded except in
         cases of single segment matches in reserved expansion, where ``%2F`` will be
         left encoded.
         For example, segment ``%2f%23/%20%2523`` is unescaped to ``%2f#/ %23``.
         
        ALL_CHARACTERS_EXCEPT_SLASH = 1;
      • ALL_CHARACTERS

        public static final GrpcJsonTranscoder.UrlUnescapeSpec ALL_CHARACTERS
         URL path parameters will be fully URI-decoded.
         For example, segment ``%2f%23/%20%2523`` is unescaped to ``/#/ %23``.
         
        ALL_CHARACTERS = 2;
    • Field Detail

      • ALL_CHARACTERS_EXCEPT_RESERVED_VALUE

        public static final int ALL_CHARACTERS_EXCEPT_RESERVED_VALUE
         URL path parameters will not decode RFC 6570 reserved characters.
         For example, segment ``%2f%23/%20%2523`` is unescaped to ``%2f%23/ %23``.
         
        ALL_CHARACTERS_EXCEPT_RESERVED = 0;
        See Also:
        Constant Field Values
      • ALL_CHARACTERS_EXCEPT_SLASH_VALUE

        public static final int ALL_CHARACTERS_EXCEPT_SLASH_VALUE
         URL path parameters will be fully URI-decoded except in
         cases of single segment matches in reserved expansion, where ``%2F`` will be
         left encoded.
         For example, segment ``%2f%23/%20%2523`` is unescaped to ``%2f#/ %23``.
         
        ALL_CHARACTERS_EXCEPT_SLASH = 1;
        See Also:
        Constant Field Values
      • ALL_CHARACTERS_VALUE

        public static final int ALL_CHARACTERS_VALUE
         URL path parameters will be fully URI-decoded.
         For example, segment ``%2f%23/%20%2523`` is unescaped to ``/#/ %23``.
         
        ALL_CHARACTERS = 2;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static GrpcJsonTranscoder.UrlUnescapeSpec[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GrpcJsonTranscoder.UrlUnescapeSpec c : GrpcJsonTranscoder.UrlUnescapeSpec.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GrpcJsonTranscoder.UrlUnescapeSpec valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static GrpcJsonTranscoder.UrlUnescapeSpec valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static GrpcJsonTranscoder.UrlUnescapeSpec forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static GrpcJsonTranscoder.UrlUnescapeSpec valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null