blob: 341617d88ee3ccdfca21b2e3d2c8537f3594141e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"
}
|