summaryrefslogtreecommitdiff
path: root/small/fruit.proto
diff options
context:
space:
mode:
Diffstat (limited to 'small/fruit.proto')
-rw-r--r--small/fruit.proto20
1 files changed, 20 insertions, 0 deletions
diff --git a/small/fruit.proto b/small/fruit.proto
new file mode 100644
index 0000000..341617d
--- /dev/null
+++ b/small/fruit.proto
@@ -0,0 +1,20 @@
+syntax = "proto3";
+
+package fruit;
+
+import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
+
+// "Fruit" must exist. you can put anything in it
+message Fruit {
+ string brand = 1;
+ string UPC = 2;
+ string city = 3;
+}
+
+// "Fruits" MUST EXIST and start exactly this way
+// It must be "Fruit" + 's' and must match the name of this file: "fruit.proto"
+message Fruits { // `autogenpb:marshal`
+ string uuid = 1; // `autogenpb:uuid:be926ad9-f07f-484c-adf2-d96eeabf3079`
+ string version = 2; // `autogenpb:version:v0.0.1`
+ repeated Fruit Fruits = 3; // THIS MUST BE "Fruit" and then "Fruit" + "s"
+}