mirror of
https://github.com/coder3101/protols.git
synced 2025-12-23 05:36:51 +00:00
Prior to this, a proto file without a package declaration didn't supported any operation as parser required that a package be present. For missing package we now consider . as package
25 lines
321 B
Protocol Buffer
25 lines
321 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package a.b.c;
|
|
|
|
message CustomType { bool attribute = 1; }
|
|
|
|
message SomeMessage {
|
|
int64 someAttribute = 1;
|
|
|
|
CustomType another = 2;
|
|
}
|
|
|
|
message CapitalA {
|
|
// B is a b
|
|
message CapitalB {
|
|
|
|
}
|
|
|
|
a.b.c.CapitalA.CapitalB b = 1;
|
|
}
|
|
|
|
message C {
|
|
CapitalA.CapitalB ab = 1;
|
|
.a.b.c.CapitalA a = 2;
|
|
}
|