java.lang.Object
java.lang.Enum<HeaderToMetadata.ValueEncode>
io.envoyproxy.envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<HeaderToMetadata.ValueEncode>, java.lang.constant.Constable
Enclosing class:
HeaderToMetadata

public static enum HeaderToMetadata.ValueEncode extends Enum<HeaderToMetadata.ValueEncode> implements com.google.protobuf.ProtocolMessageEnum
 ValueEncode defines the encoding algorithm.
 
Protobuf enum envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode
  • Enum Constant Details

    • NONE

      public static final HeaderToMetadata.ValueEncode NONE
       The value is not encoded.
       
      NONE = 0;
    • BASE64

      public static final HeaderToMetadata.ValueEncode BASE64
       The value is encoded in `Base64 <https://tools.ietf.org/html/rfc4648#section-4>`_.
       Note: this is mostly used for STRING and PROTOBUF_VALUE to escape the
       non-ASCII characters in the header.
       
      BASE64 = 1;
    • UNRECOGNIZED

      public static final HeaderToMetadata.ValueEncode UNRECOGNIZED
  • Field Details

    • NONE_VALUE

      public static final int NONE_VALUE
       The value is not encoded.
       
      NONE = 0;
      See Also:
    • BASE64_VALUE

      public static final int BASE64_VALUE
       The value is encoded in `Base64 <https://tools.ietf.org/html/rfc4648#section-4>`_.
       Note: this is mostly used for STRING and PROTOBUF_VALUE to escape the
       non-ASCII characters in the header.
       
      BASE64 = 1;
      See Also:
  • Method Details

    • values

      public static HeaderToMetadata.ValueEncode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HeaderToMetadata.ValueEncode 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 HeaderToMetadata.ValueEncode 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 HeaderToMetadata.ValueEncode forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<HeaderToMetadata.ValueEncode> internalGetValueMap()
    • 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 HeaderToMetadata.ValueEncode 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