@Immutable
public abstract class AbstractDescriptor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
javaPkgName
The Java package this descriptor's code will be in.
|
protected java.lang.String |
name
The non-qualified name of this descriptor.
|
protected io.protobufx.protoc.gen.spring.generator.FileDescriptorProcessingContext.OuterClass |
outerClass
The outer class the descriptor's code will be in.
|
protected java.lang.String |
protoPkgName
The protobuf package that defined the descriptor.
|
protected io.protobufx.protoc.gen.spring.generator.Registry |
registry |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDescriptor(io.protobufx.protoc.gen.spring.generator.FileDescriptorProcessingContext context,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getJavaPkgName() |
java.lang.String |
getName()
Get the unqualified name of this message.
|
java.lang.String |
getNameWithinOuterClass()
Gets the name of this message within the overarching outer class
that's generated for every .proto.
|
java.lang.String |
getProtoPkgName() |
java.lang.String |
getQualifiedName()
Get the fully qualified name of the class this descriptor
will generate.
|
java.lang.String |
getQualifiedOriginalName()
Get the name of the original Java class generated by the
protobuf compiler for the message this descriptor relates
to.
|
java.lang.String |
getQualifiedProtoName()
Get the fully qualified name of the protobuf message
this descriptor relates to.
|
protected final java.lang.String name
protected final java.lang.String javaPkgName
protected final java.lang.String protoPkgName
protected final io.protobufx.protoc.gen.spring.generator.FileDescriptorProcessingContext.OuterClass outerClass
protected final io.protobufx.protoc.gen.spring.generator.Registry registry
protected AbstractDescriptor(@Nonnull
io.protobufx.protoc.gen.spring.generator.FileDescriptorProcessingContext context,
@Nonnull
java.lang.String name)
@Nonnull public java.lang.String getName()
@Nonnull public java.lang.String getNameWithinOuterClass()
If the message is NOT nested, this name is equivalent to
getName().
Otherwise, it's the path to the nested message. For example: message Msg { // Msg message Msg2 { // Msg.Msg2 message Msg3 {} // Msg.Msg2.Msg3 } }
@Nonnull public java.lang.String getQualifiedName()
@Nonnull public java.lang.String getJavaPkgName()
@Nonnull public java.lang.String getProtoPkgName()
@Nonnull public java.lang.String getQualifiedOriginalName()
@Nonnull public java.lang.String getQualifiedProtoName()