Package io.protostuff.parser
Class MessageField
- java.lang.Object
-
- io.protostuff.parser.AnnotationContainer
-
- io.protostuff.parser.Field<Message>
-
- io.protostuff.parser.MessageField
-
- All Implemented Interfaces:
HasAnnotations
,HasName
,HasOptions
,HasProto
,java.lang.Comparable<Field<?>>
public class MessageField extends Field<Message>
Represents a message field defined in aProto
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.protostuff.parser.Field
Field.Bool, Field.Bytes, Field.Double, Field.Fixed32, Field.Fixed64, Field.Float, Field.Int32, Field.Int64, Field.Modifier, Field.Number<T>, Field.Reference, Field.SFixed32, Field.SFixed64, Field.SInt32, Field.SInt64, Field.String, Field.UInt32, Field.UInt64
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Message
message
-
Fields inherited from class io.protostuff.parser.Field
defaultValue, defaultValueConstant, extraOptions, modifier, name, number, owner, packable, standardOptions
-
Fields inherited from class io.protostuff.parser.AnnotationContainer
annotations, docs
-
-
Constructor Summary
Constructors Constructor Description MessageField()
MessageField(Message message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDefaultValueAsString()
java.lang.String
getJavaType()
Message
getMessage()
java.lang.String
getProtoType()
Returns field type for proto files.java.lang.String
getRegularType()
java.lang.String
getRelativePath()
boolean
isDelimited()
boolean
isSamePackage()
-
Methods inherited from class io.protostuff.parser.Field
compareTo, getDefaultValue, getDefaultValueConstant, getExtraOptions, getModifier, getName, getNumber, getO, getOption, getOptions, getOwner, getProto, getStandardOptions, hasOption, isBoolField, isBytesField, isDefaultValueSet, isEnumField, isMessageField, isNumberField, isOptional, isPackable, isRepeated, isRequired, isStringField, putExtraOption, putStandardOption, toString
-
Methods inherited from class io.protostuff.parser.AnnotationContainer
add, addAnnotations, addDoc, err, getA, getAnnotation, getAnnotationMap, getAnnotations, getDocs, hasAnnotation, isEmptyA
-
-
-
-
Field Detail
-
message
Message message
-
-
Constructor Detail
-
MessageField
public MessageField()
-
MessageField
public MessageField(Message message)
-
-
Method Detail
-
getMessage
public Message getMessage()
-
getJavaType
public java.lang.String getJavaType()
- Specified by:
getJavaType
in classField<Message>
-
getRegularType
public java.lang.String getRegularType()
-
getDefaultValueAsString
public java.lang.String getDefaultValueAsString()
- Overrides:
getDefaultValueAsString
in classField<Message>
-
isDelimited
public boolean isDelimited()
- Overrides:
isDelimited
in classField<Message>
-
isSamePackage
public boolean isSamePackage()
-
getRelativePath
public java.lang.String getRelativePath()
-
getProtoType
public java.lang.String getProtoType()
Description copied from class:Field
Returns field type for proto files. Scalar value types: https://developers.google.com/protocol-buffers/docs/proto#scalar- Overrides:
getProtoType
in classField<Message>
- Returns:
- .proto type
-
-