payload.proto: return both local and remote paths

Apologies for the thrash here, we should give both the local and remote
(if uploaded) paths for the response.

BUG=chromium:1122854
TEST=regen

Change-Id: I152ce7e7306819395d0e7314ed7c6766c529327a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2535577
Commit-Queue: George Engelbrecht <engeg@google.com>
Commit-Queue: Navil Perez <navil@google.com>
Auto-Submit: 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 90a5aa1..b7d0902 100644
--- a/go/chromite/api/payload.pb.go
+++ b/go/chromite/api/payload.pb.go
@@ -495,10 +495,11 @@
 type GenerationResponse struct {
 	// Whether we've completed successfully.
 	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"`
+	// If successful we may have a local artifact available. Generally this takes
+	// the form of '/tmp/ioadwjoawjd/delta.bin'.
+	LocalPath string `protobuf:"bytes,2,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"`
+	// If successful we may have uploaded an artifact to google storage.
+	RemoteUri            string   `protobuf:"bytes,3,opt,name=remote_uri,json=remoteUri,proto3" json:"remote_uri,omitempty"`
 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 	XXX_unrecognized     []byte   `json:"-"`
 	XXX_sizecache        int32    `json:"-"`
@@ -536,9 +537,16 @@
 	return false
 }
 
-func (m *GenerationResponse) GetUniqueId() string {
+func (m *GenerationResponse) GetLocalPath() string {
 	if m != nil {
-		return m.UniqueId
+		return m.LocalPath
+	}
+	return ""
+}
+
+func (m *GenerationResponse) GetRemoteUri() string {
+	if m != nil {
+		return m.RemoteUri
 	}
 	return ""
 }
@@ -555,49 +563,50 @@
 func init() { proto.RegisterFile("chromite/api/payload.proto", fileDescriptor_0ecdf1e4e8bef7a4) }
 
 var fileDescriptor_0ecdf1e4e8bef7a4 = []byte{
-	// 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, 0xf4, 0xc8, 0x8d, 0x14, 0x73, 0xa6, 0xe9, 0x30, 0x4c,
-	0xd9, 0x30, 0x0d, 0xf3, 0x44, 0x84, 0xd1, 0x20, 0x95, 0x42, 0x0b, 0xb4, 0xb6, 0x38, 0x1b, 0x84,
-	0x29, 0xeb, 0xed, 0xd7, 0x32, 0x27, 0x19, 0x4b, 0xa2, 0x71, 0x98, 0x32, 0x97, 0xdb, 0xdb, 0x75,
-	0xa7, 0xd9, 0x5c, 0xa8, 0x21, 0x11, 0xf3, 0xb9, 0xe0, 0xee, 0xa0, 0xff, 0xd5, 0x83, 0xe6, 0x89,
-	0x49, 0x46, 0xaf, 0x60, 0xcd, 0x55, 0xe9, 0x50, 0xc6, 0x54, 0x07, 0xde, 0xa1, 0x77, 0xe4, 0x1f,
-	0xef, 0x0e, 0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fc, 0x03, 0x90, 0x08, 0x46, 0x93, 0x61,
+	0x46, 0xd5, 0xc4, 0xbd, 0xff, 0x96, 0x41, 0x2e, 0xa9, 0x9a, 0xe8, 0xb4, 0xc4, 0x99, 0x50, 0x38,
+	0x2c, 0x24, 0x5f, 0x0c, 0xb4, 0x45, 0x6e, 0x24, 0x3f, 0xfd, 0x00, 0xed, 0x4b, 0xbb, 0x59, 0xaf,
+	0x50, 0xde, 0x72, 0x86, 0xe4, 0x1a, 0xb6, 0xdc, 0xfd, 0xe8, 0x32, 0xe4, 0xa8, 0xda, 0xbf, 0x07,
+	0x0f, 0xa0, 0x73, 0xfc, 0xf3, 0x02, 0xab, 0xbf, 0xb3, 0xf5, 0xf5, 0x7b, 0xc7, 0x87, 0x75, 0xb7,
+	0xc5, 0xb7, 0xbd, 0xb3, 0x67, 0xef, 0x9e, 0xc6, 0xe2, 0xee, 0x35, 0xf6, 0x84, 0x8c, 0xfb, 0xa5,
+	0x3d, 0xcd, 0xd3, 0xb1, 0xa4, 0x7d, 0xb3, 0xa6, 0xfb, 0xb1, 0xe8, 0x97, 0xf7, 0xfb, 0xa8, 0x61,
+	0xe0, 0xff, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x8b, 0x4b, 0x60, 0x20, 0x06, 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 1d0bd08..7c484e1 100644
--- a/src/chromite/api/payload.proto
+++ b/src/chromite/api/payload.proto
@@ -107,10 +107,12 @@
   // 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;
+  // If successful we may have a local artifact available. Generally this takes
+  // the form of '/tmp/ioadwjoawjd/delta.bin'.
+  string local_path = 2;
+
+  // If successful we may have uploaded an artifact to google storage.
+  string remote_uri = 3;
 }
 
 // The image service definition.