protobuf package should be in PascalCase

This commit is contained in:
Damien Elmes 2020-06-17 15:27:08 +10:00
parent 35975b142b
commit 3ca4a13cf2
3 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ syntax = "proto3";
import "fluent.proto";
package backend_proto;
package BackendProto;
// Generic containers
///////////////////////////////////////////////////////////

View file

@ -62,9 +62,9 @@ def python_type_inner(field):
def fullname(fullname):
if "FluentString" in fullname:
return fullname.replace("backend_proto", "anki.fluent_pb2")
return fullname.replace("BackendProto", "anki.fluent_pb2")
else:
return fullname.replace("backend_proto", "pb")
return fullname.replace("BackendProto", "pb")
# get_deck_i_d -> get_deck_id etc

View file

@ -26,7 +26,7 @@ fn proto_enum(idents: &[String]) -> String {
r#"// This file is automatically generated as part of the build process.
syntax = "proto3";
package backend_proto;
package BackendProto;
enum FluentString {
"#,
);