Enum Class DescriptorProtos.FieldDescriptorProto.Type

java.lang.Object
java.lang.Enum<DescriptorProtos.FieldDescriptorProto.Type>
com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<DescriptorProtos.FieldDescriptorProto.Type>, Constable
Enclosing class:
DescriptorProtos.FieldDescriptorProto

public static enum DescriptorProtos.FieldDescriptorProto.Type extends Enum<DescriptorProtos.FieldDescriptorProto.Type> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum google.protobuf.FieldDescriptorProto.Type
  • Enum Constant Details

  • Field Details

    • TYPE_DOUBLE_VALUE

      public static final int TYPE_DOUBLE_VALUE
       0 is reserved for errors.
       Order is weird for historical reasons.
       
      TYPE_DOUBLE = 1;
      See Also:
    • TYPE_FLOAT_VALUE

      public static final int TYPE_FLOAT_VALUE
      TYPE_FLOAT = 2;
      See Also:
    • TYPE_INT64_VALUE

      public static final int TYPE_INT64_VALUE
       Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
       negative values are likely.
       
      TYPE_INT64 = 3;
      See Also:
    • TYPE_UINT64_VALUE

      public static final int TYPE_UINT64_VALUE
      TYPE_UINT64 = 4;
      See Also:
    • TYPE_INT32_VALUE

      public static final int TYPE_INT32_VALUE
       Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
       negative values are likely.
       
      TYPE_INT32 = 5;
      See Also:
    • TYPE_FIXED64_VALUE

      public static final int TYPE_FIXED64_VALUE
      TYPE_FIXED64 = 6;
      See Also:
    • TYPE_FIXED32_VALUE

      public static final int TYPE_FIXED32_VALUE
      TYPE_FIXED32 = 7;
      See Also:
    • TYPE_BOOL_VALUE

      public static final int TYPE_BOOL_VALUE
      TYPE_BOOL = 8;
      See Also:
    • TYPE_STRING_VALUE

      public static final int TYPE_STRING_VALUE
      TYPE_STRING = 9;
      See Also:
    • TYPE_GROUP_VALUE

      public static final int TYPE_GROUP_VALUE
       Tag-delimited aggregate.
       Group type is deprecated and not supported in proto3. However, Proto3
       implementations should still be able to parse the group wire format and
       treat group fields as unknown fields.
       
      TYPE_GROUP = 10;
      See Also:
    • TYPE_MESSAGE_VALUE

      public static final int TYPE_MESSAGE_VALUE
       Length-delimited aggregate.
       
      TYPE_MESSAGE = 11;
      See Also:
    • TYPE_BYTES_VALUE

      public static final int TYPE_BYTES_VALUE
       New in version 2.
       
      TYPE_BYTES = 12;
      See Also:
    • TYPE_UINT32_VALUE

      public static final int TYPE_UINT32_VALUE
      TYPE_UINT32 = 13;
      See Also:
    • TYPE_ENUM_VALUE

      public static final int TYPE_ENUM_VALUE
      TYPE_ENUM = 14;
      See Also:
    • TYPE_SFIXED32_VALUE

      public static final int TYPE_SFIXED32_VALUE
      TYPE_SFIXED32 = 15;
      See Also:
    • TYPE_SFIXED64_VALUE

      public static final int TYPE_SFIXED64_VALUE
      TYPE_SFIXED64 = 16;
      See Also:
    • TYPE_SINT32_VALUE

      public static final int TYPE_SINT32_VALUE
       Uses ZigZag encoding.
       
      TYPE_SINT32 = 17;
      See Also:
    • TYPE_SINT64_VALUE

      public static final int TYPE_SINT64_VALUE
       Uses ZigZag encoding.
       
      TYPE_SINT64 = 18;
      See Also:
  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DescriptorProtos.FieldDescriptorProto.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 DescriptorProtos.FieldDescriptorProto.Type valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static DescriptorProtos.FieldDescriptorProto.Type 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<DescriptorProtos.FieldDescriptorProto.Type> 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 DescriptorProtos.FieldDescriptorProto.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null