Class DescriptorTypeProvider.TypeDef

  • Enclosing class:
    DescriptorTypeProvider

    protected abstract static class DescriptorTypeProvider.TypeDef
    extends java.lang.Object
    Value object for a proto-based primitive, message, or enum definition.
    • Constructor Detail

      • TypeDef

        protected TypeDef()
    • Method Detail

      • name

        public abstract java.lang.String name()
        The qualified name of the message or enum.
      • protoType

        public abstract com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type protoType()
        The proto-based type enum for the type.
      • isEnum

        public boolean isEnum()
        Return whether the type is an enum.
      • isMessage

        public boolean isMessage()
        Return whether the type is a message.
      • equals

        public final boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • of

        public static DescriptorTypeProvider.TypeDef of​(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type protoType)
        Create a TypeDef for a primitive type.