blob: 3ebdab52aaf7eb77ae2c521b77ee24974a78cc72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
syntax = "proto3";
// experiment to identify .pb files incase things go sideways
package autogenpb;
message Apple { // `autogenpb:marshal`
string name = 1; // `autogenpb:unique` // generates SortByName() functions
string genus = 2; // `autogenpb:unique` // generates SortByGenus() functions
}
// autogenpb:no-sort // means don't generate sort functions
message Apples { // `autogenpb:marshal`
string uuid = 1; // could be useful for /usr/share/file/magic someday?
string version = 2; // could be used for protobuf schema change violations?
}
// `autogenpb:no-sort autogenpb:no-marshal` // means don't generate sort functions
message Pears {
string uuid = 1; // could be useful for /usr/share/file/magic someday?
string version = 2; // could be used for protobuf schema change violations?
}
|