枚举 Encoding

  • 所有已实现的接口:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Encoding>

    public enum Encoding
    extends Enum<Encoding>
    implements com.google.protobuf.ProtocolMessageEnum
    Protobuf enum apache.rocketmq.v2.Encoding
    • 枚举常量详细资料

      • ENCODING_UNSPECIFIED

        public static final Encoding ENCODING_UNSPECIFIED
        ENCODING_UNSPECIFIED = 0;
      • IDENTITY

        public static final Encoding IDENTITY
        IDENTITY = 1;
      • GZIP

        public static final Encoding GZIP
        GZIP = 2;
      • UNRECOGNIZED

        public static final Encoding UNRECOGNIZED
    • 字段详细资料

      • ENCODING_UNSPECIFIED_VALUE

        public static final int ENCODING_UNSPECIFIED_VALUE
        ENCODING_UNSPECIFIED = 0;
        另请参阅:
        常量字段值
      • IDENTITY_VALUE

        public static final int IDENTITY_VALUE
        IDENTITY = 1;
        另请参阅:
        常量字段值
      • GZIP_VALUE

        public static final int GZIP_VALUE
        GZIP = 2;
        另请参阅:
        常量字段值
    • 方法详细资料

      • values

        public static Encoding[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (Encoding c : Encoding.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static Encoding valueOf​(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值
      • getNumber

        public final int getNumber()
        指定者:
        getNumber 在接口中 com.google.protobuf.Internal.EnumLite
        指定者:
        getNumber 在接口中 com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static Encoding valueOf​(int value)
        已过时。
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        value - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值
      • forNumber

        public static Encoding forNumber​(int value)
        参数:
        value - The numeric wire value of the corresponding enum entry.
        返回:
        The enum associated with the given numeric wire value.
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<Encoding> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        指定者:
        getValueDescriptor 在接口中 com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        指定者:
        getDescriptorForType 在接口中 com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

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

        public static Encoding valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        desc - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值