Class Descriptor
java.lang.Object
org.infinispan.protostream.impl.AnnotatedDescriptorImpl
org.infinispan.protostream.descriptors.ReservableDescriptor
org.infinispan.protostream.descriptors.Descriptor
- All Implemented Interfaces:
AnnotatedDescriptor, GenericDescriptor
Represents a message type declaration in a proto file.
- Since:
- 2.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Descriptorprivate final List<FieldDescriptor> private final Map<String, FieldDescriptor> private final Map<Integer, FieldDescriptor> private FileDescriptorprivate final List<EnumDescriptor> private final List<Descriptor> private final List<OneOfDescriptor> private IntegerFields inherited from class ReservableDescriptor
reservedNames, reservedNumbersFields inherited from class AnnotatedDescriptorImpl
annotations, documentation, fullName, name, processedAnnotations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddFields(List<? extends FieldDescriptor> fields) voidcheckCompatibility(Descriptor that, boolean strict, List<String> errors) booleanfindFieldByName(String name) findFieldByNumber(int number) protected AnnotationConfigurationgetAnnotationConfig(AnnotationElement.Annotation annotation) Subclasses are responsible for fetching theAnnotationConfigurationfrom the appropriate config (it it exists) and to validate that the target is suitable.Return the containing files's descriptorinthashCode()booleanisReserved(int number) booleanisReserved(String name) private voidsetContainingType(Descriptor containingType) (package private) voidsetFileDescriptor(FileDescriptor fileDescriptor) toString()Methods inherited from class ReservableDescriptor
checkReservation, getReservedNames, getReservedNumbersMethods inherited from class AnnotatedDescriptorImpl
getAnnotations, getAnnotationsConfig, getDocumentation, getFullName, getName, getProcessedAnnotationMethods inherited from interface AnnotatedDescriptor
getAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotation
-
Field Details
-
typeId
-
options
-
fields
-
oneofs
-
nestedMessageTypes
-
nestedEnumTypes
-
fieldsByNumber
-
fieldsByName
-
fileDescriptor
-
containingType
-
-
Constructor Details
-
Descriptor
-
-
Method Details
-
addFields
-
getFileDescriptor
Description copied from interface:AnnotatedDescriptorReturn the containing files's descriptor- Specified by:
getFileDescriptorin interfaceAnnotatedDescriptor- Returns:
- the containing files's descriptor (never
null)
-
getOptions
-
getFields
-
getOneOfs
-
getNestedTypes
-
getEnumTypes
-
findFieldByNumber
-
findFieldByName
-
setFileDescriptor
-
equals
-
hashCode
-
getTypeId
- Specified by:
getTypeIdin interfaceGenericDescriptor
-
getContainingType
- Specified by:
getContainingTypein interfaceGenericDescriptor
-
setContainingType
-
getAnnotationConfig
Description copied from class:AnnotatedDescriptorImplSubclasses are responsible for fetching theAnnotationConfigurationfrom the appropriate config (it it exists) and to validate that the target is suitable.- Specified by:
getAnnotationConfigin classAnnotatedDescriptorImpl- Returns:
- null if the annotation is not found
-
toString
-
isReserved
-
isReserved
public boolean isReserved(int number) -
checkCompatibility
-