payload: add unique_id to GenerationResponse

BUG=chromium:1122854
TEST=protoc

Change-Id: Ib85eeee7e178c0d5cf0e3348689d86a67b96de54
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2533577
Commit-Queue: George Engelbrecht <engeg@google.com>
Reviewed-by: Navil Perez <navil@google.com>
diff --git a/go/chromite/api/payload.pb.go b/go/chromite/api/payload.pb.go
index 6c2aaa1..90a5aa1 100644
--- a/go/chromite/api/payload.pb.go
+++ b/go/chromite/api/payload.pb.go
@@ -494,7 +494,11 @@
 // Result of a payload generation.
 type GenerationResponse struct {
 	// Whether we've completed successfully.
-	Success              bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
+	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
+	// If successful we may have uploaded an artifact to google storage. This will
+	// have a random bit included, but is otherwise deterministic with the input
+	// properties. Return it so we can find the artifact.
+	UniqueId             string   `protobuf:"bytes,2,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 	XXX_unrecognized     []byte   `json:"-"`
 	XXX_sizecache        int32    `json:"-"`
@@ -532,6 +536,13 @@
 	return false
 }
 
+func (m *GenerationResponse) GetUniqueId() string {
+	if m != nil {
+		return m.UniqueId
+	}
+	return ""
+}
+
 func init() {
 	proto.RegisterType((*Build)(nil), "chromite.api.Build")
 	proto.RegisterType((*DLCImage)(nil), "chromite.api.DLCImage")
@@ -544,48 +555,49 @@
 func init() { proto.RegisterFile("chromite/api/payload.proto", fileDescriptor_0ecdf1e4e8bef7a4) }
 
 var fileDescriptor_0ecdf1e4e8bef7a4 = []byte{
-	// 653 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x41, 0x4f, 0xdb, 0x30,
-	0x14, 0x6e, 0x80, 0x96, 0xf6, 0x05, 0x0a, 0x78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 0x87, 0xc7, 0x9f, 0xa1, 0x7b, 0xee, 0x76, 0xe3, 0x05, 0x95, 0x37, 0x8c,
-	0x50, 0x74, 0x09, 0x1b, 0x25, 0x03, 0x2d, 0x4f, 0xd0, 0x41, 0xbd, 0x03, 0xf7, 0x46, 0xb8, 0x77,
-	0xf8, 0xe7, 0x04, 0xa7, 0xa0, 0xb7, 0xf1, 0xe3, 0x57, 0xcf, 0x87, 0xd5, 0x72, 0x0f, 0x6f, 0x7a,
-	0x27, 0x2f, 0x3f, 0xbe, 0x48, 0xc4, 0xed, 0x7b, 0x1a, 0x08, 0x99, 0x84, 0x95, 0x4d, 0xcb, 0xf8,
-	0x44, 0x46, 0xa1, 0x5d, 0xb4, 0x61, 0x22, 0xc2, 0xea, 0x86, 0x1e, 0xb7, 0x2c, 0xfc, 0xec, 0x77,
-	0x00, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x08, 0x96, 0xa2, 0xe2, 0x05, 0x00, 0x00,
+	// 668 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xc1, 0x4e, 0xdb, 0x4a,
+	0x14, 0x8d, 0x81, 0x84, 0xe4, 0x1a, 0x02, 0xcc, 0x13, 0xe0, 0x17, 0x90, 0xe0, 0x65, 0xc5, 0xdb,
+	0x24, 0x12, 0xad, 0xaa, 0xaa, 0xea, 0x8a, 0x52, 0x35, 0x88, 0x2e, 0xd0, 0x00, 0x9b, 0x6e, 0x22,
+	0x67, 0x3c, 0x31, 0xa3, 0x38, 0x33, 0x66, 0x66, 0x4c, 0xe5, 0x5d, 0xd7, 0x5d, 0xb4, 0xff, 0xd4,
+	0x2f, 0xe9, 0x0f, 0xf4, 0x1f, 0xaa, 0x99, 0x71, 0xb0, 0x0d, 0x6a, 0x51, 0x37, 0xdd, 0xf9, 0x9e,
+	0xb9, 0xf7, 0xcc, 0x39, 0xd7, 0x77, 0x2e, 0xf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, 0xff, 0xd8, 0x06, 0x42, 0xc6, 0xc3, 0xca, 0x1a, 0x66, 0x7c, 0x2a,
+	0xc3, 0xa1, 0xdd, 0xc2, 0xc3, 0x58, 0x0c, 0xab, 0xeb, 0x7b, 0xd2, 0xb2, 0xf0, 0xb3, 0x9f, 0x01,
+	0x00, 0x00, 0xff, 0xff, 0x0b, 0x26, 0x81, 0x9e, 0xff, 0x05, 0x00, 0x00,
 }
 
 // Reference imports to suppress errors if they are not otherwise used.
diff --git a/src/chromite/api/payload.proto b/src/chromite/api/payload.proto
index c3eff7d..1d0bd08 100644
--- a/src/chromite/api/payload.proto
+++ b/src/chromite/api/payload.proto
@@ -106,6 +106,11 @@
 message GenerationResponse {
   // Whether we've completed successfully.
   bool success = 1;
+
+  // If successful we may have uploaded an artifact to google storage. This will
+  // have a random bit included, but is otherwise deterministic with the input
+  // properties. Return it so we can find the artifact.
+  string unique_id = 2;
 }
 
 // The image service definition.