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
Author:
[email protected]
  • 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