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, standardOptionsFields inherited from class io.protostuff.parser.AnnotationContainer
annotations, docs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns field type for proto files.booleanbooleanMethods 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, toStringMethods 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:
getJavaTypein classField<Message>
-
getRegularType
-
getDefaultValueAsString
- Overrides:
getDefaultValueAsStringin classField<Message>
-
isDelimited
public boolean isDelimited()- Overrides:
isDelimitedin classField<Message>
-
isSamePackage
public boolean isSamePackage() -
getRelativePath
-
getProtoType
Description copied from class:FieldReturns field type for proto files. Scalar value types: https://developers.google.com/protocol-buffers/docs/proto#scalar- Overrides:
getProtoTypein classField<Message>- Returns:
- .proto type
-