Enum DescriptorProtos.FieldDescriptorProto.Type

    • Field Detail

      • 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:
        Constant Field Values
      • TYPE_FLOAT_VALUE

        public static final int TYPE_FLOAT_VALUE
        TYPE_FLOAT = 2;
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • TYPE_UINT64_VALUE

        public static final int TYPE_UINT64_VALUE
        TYPE_UINT64 = 4;
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • TYPE_FIXED64_VALUE

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

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

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

        public static final int TYPE_STRING_VALUE
        TYPE_STRING = 9;
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • TYPE_MESSAGE_VALUE

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

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

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

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

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

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

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

        public static final int TYPE_SINT64_VALUE
         Uses ZigZag encoding.
         
        TYPE_SINT64 = 18;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static DescriptorProtos.FieldDescriptorProto.Type[] 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 (DescriptorProtos.FieldDescriptorProto.Type c : DescriptorProtos.FieldDescriptorProto.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DescriptorProtos.FieldDescriptorProto.Type valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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 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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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.
      • 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 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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null