java_names.h

This section contains reference documentation for working with protocol buffer classes in C++.

#include <google/protobuf/compiler/java/java_names.h>
namespace google::protobuf::compiler::java

Provides a mechanism for mapping a descriptor to the fully-qualified name of the corresponding Java class.

Classes in this file

File Members

These definitions are not part of any class.
std::string
ClassName(const Descriptor * descriptor)
Requires: more...
std::string
ClassName(const EnumDescriptor * descriptor)
Requires: more...
std::string
ClassName(const FileDescriptor * descriptor)
Requires: more...
std::string
ClassName(const ServiceDescriptor * descriptor)
Requires: more...
std::string
FileJavaPackage(const FileDescriptor * descriptor)
Requires: more...
std::string
CapitalizedFieldName(const FieldDescriptor * descriptor)
Requires: more...

std::string java::ClassName(
        const Descriptor * descriptor)

Requires:

descriptor != NULL

Returns:

The fully-qualified Java class name.

std::string java::ClassName(
        const EnumDescriptor * descriptor)

Requires:

descriptor != NULL

Returns:

The fully-qualified Java class name.

std::string java::ClassName(
        const FileDescriptor * descriptor)

Requires:

descriptor != NULL

Returns:

The fully-qualified Java class name.

std::string java::ClassName(
        const ServiceDescriptor * descriptor)

Requires:

descriptor != NULL

Returns:

The fully-qualified Java class name.

std::string java::FileJavaPackage(
        const FileDescriptor * descriptor)

Requires:

descriptor != NULL

Returns:

Java package name.

std::string java::CapitalizedFieldName(
        const FieldDescriptor * descriptor)

Requires:

descriptor != NULL

Returns:

Capitalized camel case name field name.