Class CompileTimeImportedProtoTypeMetadata
java.lang.Object
org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
org.infinispan.protostream.annotations.impl.processor.CompileTimeImportedProtoTypeMetadata
- All Implemented Interfaces:
HasProtoSchema
A
ProtoTypeMetadata for a message or enum type that is not present in the current set of classes and is
expected to be defined in another protobuf schema that was created based on annotations during the processing on a
different module, so it just gets to be imported from the file that defines it.- Since:
- 4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe file that defines this.private final StringFully qualified protobuf type name.private final ProtoTypeMetadataFields inherited from class org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
javaClass, name, outerType -
Constructor Summary
ConstructorsConstructorDescriptionCompileTimeImportedProtoTypeMetadata(ProtoTypeMetadata protoTypeMetadata, String packageName, String fileName) -
Method Summary
Modifier and TypeMethodDescriptiongetEnumMemberByName(String name) This is only for enums.getEnumMemberByNumber(int number) The schema file where this type comes from.booleanbooleanisEnum()booleanIndicates if this type comes from the currently processed/generated schema of from an external schema.toString()Methods inherited from class org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
appendDocumentation, generateProto, getAnnotatedClass, getAnnotatedClassName, getDocumentation, getJavaClass, getJavaClassName, getName, getOuterType, getProtoDocs, getProtoTypeId, getSubClassNames, scanMemberAnnotations, setOuterType, validateName
-
Field Details
-
protoTypeMetadata
-
fileName
The file that defines this. -
fullName
Fully qualified protobuf type name.
-
-
Constructor Details
-
CompileTimeImportedProtoTypeMetadata
CompileTimeImportedProtoTypeMetadata(ProtoTypeMetadata protoTypeMetadata, String packageName, String fileName)
-
-
Method Details
-
isImported
public boolean isImported()Description copied from class:ProtoTypeMetadataIndicates if this type comes from the currently processed/generated schema of from an external schema.- Overrides:
isImportedin classProtoTypeMetadata
-
getFullName
- Overrides:
getFullNamein classProtoTypeMetadata
-
isEnum
public boolean isEnum()- Specified by:
isEnumin classProtoTypeMetadata
-
getEnumMemberByName
Description copied from class:ProtoTypeMetadataThis is only for enums.- Specified by:
getEnumMemberByNamein classProtoTypeMetadata
-
getEnumMemberByNumber
- Specified by:
getEnumMemberByNumberin classProtoTypeMetadata
-
getFileName
Description copied from class:ProtoTypeMetadataThe schema file where this type comes from. Must be non-null for all imported types, can be null for others.- Overrides:
getFileNamein classProtoTypeMetadata
-
isAdapter
public boolean isAdapter()- Overrides:
isAdapterin classProtoTypeMetadata
-
toString
-