From f363c2317641adb7a66d82fcc3d5601e70f7c525 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 31 Dec 2024 13:24:00 -0600 Subject: add example. and forgot the GPL! --- apple.proto | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 apple.proto (limited to 'apple.proto') 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? +} -- cgit v1.2.3