public final class JavaQualifiedNames extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getClassName(com.google.protobuf.Descriptors.Descriptor msg)
Returns the class name for the message descriptor (uses '$' inner class seperator).
|
static String |
getClassName(com.google.protobuf.Descriptors.EnumDescriptor enumType)
Returns the class name for the enum descriptor (uses '$' inner class seperator).
|
static String |
getOuterClassname(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
Derives the outer class name based on the protobuf (.proto) file name.
|
static String |
getPackage(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
Returns the expected java package for protos based on the .proto file.
|
static String |
getQualifiedName(com.google.protobuf.Descriptors.Descriptor msg)
Returns the fully-qualified name for the message descriptor (uses '.' inner class seperator).
|
static String |
getQualifiedName(com.google.protobuf.Descriptors.EnumDescriptor enumType)
Returns the fully-qualified name for the enum descriptor (uses '.' inner class seperator).
|
static String |
underscoresToCamelCase(String input,
boolean capitializeNextLetter) |
public static String getPackage(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
public static String getOuterClassname(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
public static String getQualifiedName(com.google.protobuf.Descriptors.Descriptor msg)
public static String getQualifiedName(com.google.protobuf.Descriptors.EnumDescriptor enumType)
public static String getClassName(com.google.protobuf.Descriptors.Descriptor msg)
public static String getClassName(com.google.protobuf.Descriptors.EnumDescriptor enumType)