File indexing completed on 2026-09-12 09:12:47
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef GOOGLE_PROTOBUF_COMPILER_JAVA_NAMES_H__
0016 #define GOOGLE_PROTOBUF_COMPILER_JAVA_NAMES_H__
0017
0018 #include <string>
0019
0020 #include "absl/strings/string_view.h"
0021 #include "google/protobuf/compiler/java/options.h"
0022 #include "google/protobuf/descriptor.h"
0023
0024
0025 #include "google/protobuf/port_def.inc"
0026
0027 namespace google {
0028 namespace protobuf {
0029
0030 class Descriptor;
0031 class EnumDescriptor;
0032 class FileDescriptor;
0033 class FieldDescriptor;
0034 class ServiceDescriptor;
0035
0036 namespace compiler {
0037 namespace java {
0038
0039
0040
0041
0042
0043
0044 PROTOC_EXPORT std::string ClassName(const Descriptor* descriptor);
0045
0046
0047
0048
0049
0050
0051 PROTOC_EXPORT std::string ClassName(const EnumDescriptor* descriptor);
0052
0053
0054
0055
0056
0057
0058 PROTOC_EXPORT std::string ClassName(const FileDescriptor* descriptor);
0059
0060
0061
0062
0063
0064
0065 PROTOC_EXPORT std::string ClassName(const ServiceDescriptor* descriptor);
0066
0067
0068
0069
0070
0071
0072 PROTOC_EXPORT std::string FileJavaPackage(const FileDescriptor* descriptor,
0073 Options options = {});
0074
0075
0076
0077
0078
0079
0080 PROTOC_EXPORT std::string JavaPackageDirectory(const FileDescriptor* file);
0081
0082
0083
0084
0085
0086
0087 PROTOC_EXPORT std::string FileClassName(const FileDescriptor* file);
0088
0089
0090
0091
0092
0093 PROTOC_EXPORT std::string CapitalizedFieldName(const FieldDescriptor* field);
0094
0095
0096
0097
0098
0099 PROTOC_EXPORT std::string CapitalizedOneofName(const OneofDescriptor* oneof);
0100
0101
0102
0103
0104 PROTOC_EXPORT std::string UnderscoresToCamelCase(absl::string_view input,
0105 bool cap_next_letter);
0106
0107
0108
0109
0110
0111 PROTOC_EXPORT std::string UnderscoresToCamelCase(const FieldDescriptor* field);
0112
0113
0114
0115
0116
0117
0118 PROTOC_EXPORT std::string UnderscoresToCamelCase(
0119 const MethodDescriptor* method);
0120
0121
0122
0123
0124
0125 PROTOC_EXPORT std::string UnderscoresToCamelCaseCheckReserved(
0126 const FieldDescriptor* field);
0127
0128
0129
0130
0131
0132 PROTOC_EXPORT std::string UnderscoresToCapitalizedCamelCase(
0133 const FieldDescriptor* field);
0134
0135
0136
0137
0138
0139 PROTOC_EXPORT std::string KotlinFactoryName(const Descriptor* descriptor);
0140
0141
0142
0143
0144
0145 PROTOC_EXPORT std::string FullyQualifiedKotlinFactoryName(
0146 const Descriptor* descriptor);
0147
0148
0149
0150
0151
0152
0153
0154 PROTOC_EXPORT std::string KotlinExtensionsClassName(
0155 const Descriptor* descriptor);
0156
0157
0158 }
0159 }
0160 }
0161 }
0162
0163 #include "google/protobuf/port_undef.inc"
0164 #endif