public final class JavaQualifiedNames extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getCaseEnumClassName(com.google.protobuf.Descriptors.OneofDescriptor oneOfDescriptor)
Returns the class name for the enum descriptor (uses '$' inner class seperator).
|
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.Descriptor descriptor,
ProtoFlavor flavor)
Gets the fully qualified name for generated classes in Java convention.
|
static String |
getClassName(com.google.protobuf.Descriptors.EnumDescriptor enumType)
Returns the class name for the enum descriptor (uses '$' inner class seperator).
|
static String |
getClassName(com.google.protobuf.Descriptors.EnumDescriptor descriptor,
ProtoFlavor flavor)
Gets the fully qualified name for generated classes in Java convention.
|
static String |
getFieldName(com.google.protobuf.Descriptors.FieldDescriptor field,
boolean capitializeFirstLetter)
Returns the Java name for a proto field.
|
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.Descriptor msg,
ProtoFlavor flavor)
Returns the fully-qualified name for the message descriptor with the given flavor (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 |
getQualifiedName(com.google.protobuf.Descriptors.EnumDescriptor enumType,
ProtoFlavor flavor)
Returns the fully-qualified name for the enum descriptor with the given flavor (uses '.' inner
class seperator).
|
static String |
underscoresToCamelCase(String input,
boolean capitializeNextLetter)
Converts underscore field names to camel case, while preserving camel case field names.
|
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)
public static String getQualifiedName(com.google.protobuf.Descriptors.Descriptor msg, ProtoFlavor flavor)
public static String getQualifiedName(com.google.protobuf.Descriptors.EnumDescriptor enumType, ProtoFlavor flavor)
public static String getClassName(com.google.protobuf.Descriptors.Descriptor descriptor, ProtoFlavor flavor)
public static String getClassName(com.google.protobuf.Descriptors.EnumDescriptor descriptor, ProtoFlavor flavor)
public static String getFieldName(com.google.protobuf.Descriptors.FieldDescriptor field, boolean capitializeFirstLetter)
public static String getCaseEnumClassName(com.google.protobuf.Descriptors.OneofDescriptor oneOfDescriptor)