Class ProtoFieldMetadata

java.lang.Object
org.infinispan.protostream.annotations.impl.ProtoFieldMetadata
All Implemented Interfaces:
HasProtoSchema
Direct Known Subclasses:
ProtoMapMetadata

public class ProtoFieldMetadata extends Object implements HasProtoSchema
Since:
3.0
  • Field Details

    • number

      private final int number
    • name

      private final String name
    • oneof

      private final String oneof
    • javaType

      private final XClass javaType
    • repeatedImplementation

      private final XClass repeatedImplementation
    • protobufType

      private final Type protobufType
    • documentation

      private final String documentation
    • protoTypeMetadata

      private final ProtoTypeMetadata protoTypeMetadata
    • isRequired

      private final boolean isRequired
    • isRepeated

      private final boolean isRepeated
    • isArray

      private final boolean isArray
    • defaultValue

      private final Object defaultValue
    • propertyName

      private final String propertyName
    • declaringMember

      private final XMember declaringMember
    • field

      private final XField field
    • getter

      private final XMethod getter
    • setter

      private final XMethod setter
  • Constructor Details

  • Method Details

    • getNumber

      public int getNumber()
    • getName

      public String getName()
    • getPropertyName

      public String getPropertyName()
    • getOneof

      public String getOneof()
    • getJavaType

      public XClass getJavaType()
      The Java type. If this field is repeatable then the collection/array element type is returned here.
    • getJavaTypeName

      public String getJavaTypeName()
    • getRepeatedImplementation

      public XClass getRepeatedImplementation()
    • getProtobufType

      public Type getProtobufType()
    • getDocumentation

      public String getDocumentation()
    • isRequired

      public boolean isRequired()
    • isRepeated

      public boolean isRepeated()
    • isArray

      public boolean isArray()
    • isMap

      public boolean isMap()
    • getDefaultValue

      public Object getDefaultValue()
    • getField

      public XField getField()
    • getGetter

      public XMethod getGetter()
    • getSetter

      public XMethod getSetter()
    • getLocation

      public String getLocation()
    • generateProto

      public void generateProto(IndentWriter iw, ProtoSyntax syntax)
      Specified by:
      generateProto in interface HasProtoSchema
    • getTypeName

      protected String getTypeName()
    • isPrimitive

      public boolean isPrimitive()
    • isBoxedPrimitive

      public boolean isBoxedPrimitive()
    • toString

      public String toString()
      Overrides:
      toString in class Object