def QualifiedTypesForChild(name, parent_typenames): title_name = plugin.TitleCase(name) proto = parent_typenames.proto + '.' + name java = parent_typenames.java + '.' + title_name cpp_base = parent_typenames.cpp_base + '::' + title_name cpp_converter = parent_typenames.cpp_converter + '::' + title_name return QualifiedTypes(proto, java, cpp_base, cpp_converter)
def CppConverterClassName(self): return plugin.TitleCase(self.proto.name)
def JavaName(self): return plugin.TitleCase(self.proto.name)
def JavaOuterClass(self): if self.proto.options.HasField('java_outer_classname'): return self.proto.options.java_outer_classname basename, _ = os.path.splitext(os.path.basename(self.proto.name)) return plugin.TitleCase(basename)