chromite.api.payload: add imagetype to dlcimage

BUG=chromium:1122845
TEST=None

Change-Id: Id0d1609a34b527cfa7d5e0c22d99ae16c8e81856
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2545898
Auto-Submit: George Engelbrecht <engeg@google.com>
Commit-Queue: Navil Perez <navil@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 b7d0902..8bf355e 100644
--- a/go/chromite/api/payload.pb.go
+++ b/go/chromite/api/payload.pb.go
@@ -102,10 +102,12 @@
 	// The name of the DLC package (e.g. 'package').
 	DlcPackage string `protobuf:"bytes,3,opt,name=dlc_package,json=dlcPackage,proto3" json:"dlc_package,omitempty"`
 	// The name of the DLC image (e.g. 'dlc.img').
-	DlcImage             string   `protobuf:"bytes,4,opt,name=dlc_image,json=dlcImage,proto3" json:"dlc_image,omitempty"`
-	XXX_NoUnkeyedLiteral struct{} `json:"-"`
-	XXX_unrecognized     []byte   `json:"-"`
-	XXX_sizecache        int32    `json:"-"`
+	DlcImage string `protobuf:"bytes,4,opt,name=dlc_image,json=dlcImage,proto3" json:"dlc_image,omitempty"`
+	// The type of the image. Currently, always 'DLC'.
+	ImageType            chromiumos.ImageType `protobuf:"varint,5,opt,name=image_type,json=imageType,proto3,enum=chromiumos.ImageType" json:"image_type,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
+	XXX_unrecognized     []byte               `json:"-"`
+	XXX_sizecache        int32                `json:"-"`
 }
 
 func (m *DLCImage) Reset()         { *m = DLCImage{} }
@@ -161,6 +163,13 @@
 	return ""
 }
 
+func (m *DLCImage) GetImageType() chromiumos.ImageType {
+	if m != nil {
+		return m.ImageType
+	}
+	return chromiumos.ImageType_IMAGE_TYPE_UNDEFINED
+}
+
 // Define a signed ChromeOS image archived.
 type SignedImage struct {
 	// An instance of Build that defines the build artifacts directory.
@@ -563,50 +572,51 @@
 func init() { proto.RegisterFile("chromite/api/payload.proto", fileDescriptor_0ecdf1e4e8bef7a4) }
 
 var fileDescriptor_0ecdf1e4e8bef7a4 = []byte{
-	// 688 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xcd, 0x4e, 0xdb, 0x4a,
-	0x14, 0x8e, 0x81, 0x84, 0xe4, 0x18, 0x02, 0xcc, 0x15, 0xe0, 0x1b, 0xb8, 0x82, 0x9b, 0x15, 0x77,
-	0x93, 0x48, 0xdc, 0xaa, 0xaa, 0xaa, 0xae, 0x28, 0x55, 0x83, 0xda, 0x05, 0x32, 0xb0, 0xe9, 0x26,
-	0x9a, 0x8c, 0x4f, 0x9c, 0x51, 0x1c, 0x8f, 0x3b, 0x1e, 0x53, 0x65, 0xd7, 0x75, 0x17, 0xed, 0x3b,
-	0xf5, 0x49, 0xfa, 0x02, 0x7d, 0x87, 0x6a, 0x7e, 0x42, 0x6c, 0x50, 0x8b, 0xba, 0xe9, 0xce, 0xe7,
-	0x3b, 0x67, 0xbe, 0xf9, 0xbe, 0xe3, 0x33, 0x07, 0x3a, 0x6c, 0x22, 0xc5, 0x8c, 0x2b, 0xec, 0xd3,
-	0x8c, 0xf7, 0x33, 0x3a, 0x4f, 0x04, 0x8d, 0x7a, 0x99, 0x14, 0x4a, 0x90, 0x8d, 0x45, 0xae, 0x47,
-	0x33, 0xde, 0x39, 0xac, 0x54, 0x8e, 0x0a, 0x9e, 0x44, 0x43, 0x9a, 0x71, 0x5b, 0xdb, 0xd9, 0xb7,
-	0xd9, 0x62, 0x26, 0xf2, 0x3e, 0x13, 0xb3, 0x99, 0x48, 0x6d, 0xa2, 0xfb, 0xc5, 0x83, 0xfa, 0x99,
-	0x2e, 0x26, 0xcf, 0x61, 0xc3, 0x9e, 0x52, 0x54, 0xc6, 0xa8, 0x02, 0xef, 0xd8, 0x3b, 0xf1, 0x4f,
-	0xf7, 0x7b, 0xcb, 0x93, 0x3d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, 0x25, 0xa8, 0x1f, 0x01, 0x2a, 0x4f,
+	0x98, 0x4c, 0x78, 0x2c, 0xa9, 0xbe, 0x34, 0x32, 0x25, 0x84, 0x4a, 0x69, 0xc7, 0xcb, 0x2f, 0x44,
+	0xf4, 0x08, 0x20, 0xe2, 0x04, 0x47, 0xe3, 0x04, 0xab, 0x59, 0x7e, 0x35, 0x5a, 0x06, 0xb9, 0xc0,
+	0x6a, 0xa6, 0xd5, 0x82, 0x2e, 0xb8, 0xa2, 0xe3, 0x54, 0xb0, 0x62, 0xa0, 0x2d, 0x72, 0x2d, 0xd8,
+	0xf1, 0x47, 0x68, 0x5f, 0xd8, 0x7b, 0x7c, 0x49, 0xc5, 0x0d, 0x23, 0x14, 0x5d, 0xc1, 0x56, 0x9e,
+	0x9f, 0xe6, 0x1a, 0x74, 0x58, 0xed, 0xdf, 0xbd, 0x05, 0xe8, 0xf6, 0x7e, 0x6d, 0x60, 0xeb, 0xef,
+	0x6e, 0x7d, 0xfb, 0xd1, 0x75, 0x61, 0x3d, 0xbf, 0xfd, 0x1d, 0xe7, 0xe4, 0xc5, 0xfb, 0xe7, 0x21,
+	0xbf, 0xdd, 0xc6, 0x01, 0x17, 0xe1, 0xb0, 0x74, 0xdd, 0x59, 0x3c, 0x15, 0x78, 0x68, 0x8e, 0xfb,
+	0x30, 0xe4, 0xc3, 0xf2, 0x5f, 0x61, 0xd2, 0x30, 0xf0, 0xd3, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff,
+	0xaa, 0x75, 0x74, 0x2d, 0x56, 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 7c484e1..229723b 100644
--- a/src/chromite/api/payload.proto
+++ b/src/chromite/api/payload.proto
@@ -36,6 +36,9 @@
 
   // The name of the DLC image (e.g. 'dlc.img').
   string dlc_image = 4;
+
+  // The type of the image. Currently, always 'DLC'.
+  chromiumos.ImageType image_type = 5;
 }
 
 // Define a signed ChromeOS image archived.