protols/sample/test.proto
Ashar 76f84b3caf
fix: nothing works in a file without a package (#77)
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
2025-05-03 12:31:33 +05:30

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;
}