autogenpb/small/fruit.proto

21 lines
716 B
Protocol Buffer

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"
}