From afd0bd642841f4dee9ca29c4913a26319aa28dd9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 1 Dec 2024 18:41:00 -0600 Subject: switched to autogenpb --- droplet.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'droplet.proto') diff --git a/droplet.proto b/droplet.proto index dd1b30a..42eeec5 100644 --- a/droplet.proto +++ b/droplet.proto @@ -4,15 +4,15 @@ package virtbuf; import "google/protobuf/duration.proto"; // Import the well-known type for Timestamp import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp -message Droplets { +message Droplets { // `autogenpb:marshal` string uuid = 1; // I guess why not just have this on each file string version = 2; // maybe can be used for protobuf schema change violations repeated Droplet droplets = 3; } -message Droplet { - string uuid = 1; // should be unique across the cluster - string hostname = 2; // should be unique and work in DNS +message Droplet { // `autogenpb:marshal` + string uuid = 1; // `autogenpb:unique` // should be unique across the cluster + string hostname = 2; // `autogenpb:unique` // should be unique and work in DNS int64 cpus = 3; // what's the point of int64 vs int32 int64 memory = 4; // in bytes Current current = 5; // what the state and values of the droplet is -- cgit v1.2.3