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
AProtoTypeMetadatafor 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:
- anistor@redhat.com
-
-
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 ProtoEnumValueMetadatagetEnumMemberByName(String name)This is only for enums.StringgetFileName()The schema file where this type comes from.StringgetFullName()booleanisEnum()booleanisImported()Indicates if this type comes from the currently processed/generated schema of from an external schema.StringtoString()-
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:
getFullNamein classProtoTypeMetadata
-
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
-
getFileName
public String 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
-
isEnum
public boolean isEnum()
- Specified by:
isEnumin classProtoTypeMetadata
-
getEnumMemberByName
public ProtoEnumValueMetadata getEnumMemberByName(String name)
Description copied from class:ProtoTypeMetadataThis is only for enums.- Specified by:
getEnumMemberByNamein classProtoTypeMetadata
-
-