Interface FieldType

  • All Superinterfaces:
    Type
    All Known Subinterfaces:
    UserType
    All Known Implementing Classes:
    Enum, Group, Message, ScalarFieldType

    public interface FieldType
    extends Type
    Base interface for protocol buffers types that can be used as field type.
    Author:
    Kostiantyn Shchepanovskyi
    • Method Detail

      • getFullyQualifiedName

        String getFullyQualifiedName()
        Type reference. For scalar types, it returns one of:

        1. int32
        2. int64
        3. uint32
        4. uint64
        5. sint32
        6. sint64
        7. fixed32
        8. fixed64
        9. sfixed32
        10. sfixed64
        11. float
        12. double
        13. bool
        14. string
        15. bytes

        For messages, it is full massage name. For enums, it is full enum name.

        Specified by:
        getFullyQualifiedName in interface Type
      • isScalar

        boolean isScalar()
        Test if this type is scalar.
      • isEnum

        boolean isEnum()
        Test if this type is enum.
      • isMessage

        boolean isMessage()
        Test if this type is message.
      • isMap

        boolean isMap()
        Test if this type is map.