Add back GeneratedClassName to public (#4686)

These methods are used by grpc
pull/4692/head
Paul Yang 7 years ago committed by GitHub
parent 6e7eeb3431
commit 264e615e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      src/google/protobuf/compiler/php/php_generator.h

@ -49,6 +49,16 @@ class LIBPROTOC_EXPORT Generator
GeneratorContext* generator_context, GeneratorContext* generator_context,
string* error) const; string* error) const;
// To skip reserved keywords in php, some generated classname are prefixed.
// Other code generators may need following API to figure out the actual
// classname.
LIBPROTOC_EXPORT std::string GeneratedClassName(
const google::protobuf::Descriptor* desc);
LIBPROTOC_EXPORT std::string GeneratedClassName(
const google::protobuf::EnumDescriptor* desc);
LIBPROTOC_EXPORT std::string GeneratedClassName(
const google::protobuf::ServiceDescriptor* desc);
}; };
} // namespace php } // namespace php

Loading…
Cancel
Save