Class ImportedProtoTypeMetadata
- java.lang.Object
-
- org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
-
- org.infinispan.protostream.annotations.impl.ImportedProtoTypeMetadata
-
- All Implemented Interfaces:
HasProtoSchema
public final class ImportedProtoTypeMetadata extends ProtoTypeMetadata
AProtoTypeMetadata
for a message or enum type that is defined in an external protobuf schema and its definition was not created based on annotations during the current execution of aProtoSchemaBuilder
.- Since:
- 4.3
- Author:
- [email protected]
-
-
Field Summary
-
Fields inherited from class org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
javaClass, name, outerType
-
-
Constructor Summary
Constructors Constructor Description ImportedProtoTypeMetadata(GenericDescriptor descriptor, BaseMarshaller<?> marshaller, XClass javaClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtoEnumValueMetadata
getEnumMemberByName(String name)
This is only for enums.String
getFileName()
The schema file where this type comes from.String
getFullName()
boolean
isEnum()
boolean
isImported()
Indicates if this type comes from the currently processed/generated schema of from an external schema.String
toString()
-
Methods inherited from class org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
appendDocumentation, generateProto, getAnnotatedClass, getAnnotatedClassName, getDocumentation, getJavaClass, getJavaClassName, getName, getOuterType, getProtoDocs, getProtoTypeId, isAdapter, scanMemberAnnotations, setOuterType, validateName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.protostream.annotations.impl.HasProtoSchema
toProtoSchema
-
-
-
-
Constructor Detail
-
ImportedProtoTypeMetadata
public ImportedProtoTypeMetadata(GenericDescriptor descriptor, BaseMarshaller<?> marshaller, XClass javaClass)
-
-
Method Detail
-
getFullName
public String getFullName()
- Overrides:
getFullName
in classProtoTypeMetadata
-
isImported
public boolean isImported()
Description copied from class:ProtoTypeMetadata
Indicates if this type comes from the currently processed/generated schema of from an external schema.- Overrides:
isImported
in classProtoTypeMetadata
-
getFileName
public String getFileName()
Description copied from class:ProtoTypeMetadata
The schema file where this type comes from. Must be non-null for all imported types, can be null for others.- Overrides:
getFileName
in classProtoTypeMetadata
-
isEnum
public boolean isEnum()
- Specified by:
isEnum
in classProtoTypeMetadata
-
getEnumMemberByName
public ProtoEnumValueMetadata getEnumMemberByName(String name)
Description copied from class:ProtoTypeMetadata
This is only for enums.- Specified by:
getEnumMemberByName
in classProtoTypeMetadata
-
-