Package io.protostuff.parser
Class MessageField
- All Implemented Interfaces:
HasAnnotations
,HasName
,HasOptions
,HasProto
,Comparable<Field<?>>
Represents a message field defined in a
Proto
.-
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
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionReturns field type for proto files.boolean
boolean
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 Details
-
message
Message message
-
-
Constructor Details
-
MessageField
public MessageField() -
MessageField
-
-
Method Details
-
getMessage
-
getJavaType
- Specified by:
getJavaType
in classField<Message>
-
getRegularType
-
getDefaultValueAsString
- Overrides:
getDefaultValueAsString
in classField<Message>
-
isDelimited
public boolean isDelimited()- Overrides:
isDelimited
in classField<Message>
-
isSamePackage
public boolean isSamePackage() -
getRelativePath
-
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
-