Class ProtoFieldMetadata
java.lang.Object
org.infinispan.protostream.annotations.impl.ProtoFieldMetadata
- All Implemented Interfaces:
HasProtoSchema
- Direct Known Subclasses:
ProtoMapMetadata
- Since:
- 3.0
- Author:
- [email protected]
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateProto
(IndentWriter iw, ProtoSyntax syntax) getField()
The Java type.getName()
int
getOneof()
protected String
boolean
isArray()
boolean
boolean
isMap()
boolean
boolean
boolean
toString()
-
Method Details
-
getNumber
public int getNumber() -
getName
-
getPropertyName
-
getOneof
-
getJavaType
The Java type. If this field is repeatable then the collection/array element type is returned here. -
getJavaTypeName
-
getRepeatedImplementation
-
getProtobufType
-
getDocumentation
-
isRequired
public boolean isRequired() -
isRepeated
public boolean isRepeated() -
isArray
public boolean isArray() -
isMap
public boolean isMap() -
getDefaultValue
-
getField
-
getGetter
-
getSetter
-
getLocation
-
generateProto
- Specified by:
generateProto
in interfaceHasProtoSchema
-
getTypeName
-
isPrimitive
public boolean isPrimitive() -
isBoxedPrimitive
public boolean isBoxedPrimitive() -
toString
-