summaryrefslogtreecommitdiff
path: root/apple.proto
diff options
context:
space:
mode:
Diffstat (limited to 'apple.proto')
-rw-r--r--apple.proto21
1 files changed, 21 insertions, 0 deletions
diff --git a/apple.proto b/apple.proto
new file mode 100644
index 0000000..3ebdab5
--- /dev/null
+++ b/apple.proto
@@ -0,0 +1,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?
+}