cycler protos: add chill effect message
BUG=chromium:1035045
TEST=./generate.sh
Change-Id: Ic9072964e181c4e34a6c22b138f28afa5c72afa5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2186177
Reviewed-by: Sean Abraham <seanabraham@chromium.org>
Reviewed-by: David Burger <dburger@chromium.org>
Commit-Queue: George Engelbrecht <engeg@google.com>
Tested-by: George Engelbrecht <engeg@google.com>
diff --git a/go/cycler/effect.pb.go b/go/cycler/effect.pb.go
index fdb33b0..1e2670a 100644
--- a/go/cycler/effect.pb.go
+++ b/go/cycler/effect.pb.go
@@ -20,6 +20,41 @@
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
+// The existing storage classes.
+type ChillEffectConfiguration_EnumStorageClass int32
+
+const (
+ ChillEffectConfiguration_UNKNOWN ChillEffectConfiguration_EnumStorageClass = 0
+ ChillEffectConfiguration_STANDARD ChillEffectConfiguration_EnumStorageClass = 1
+ ChillEffectConfiguration_NEARLINE ChillEffectConfiguration_EnumStorageClass = 2
+ ChillEffectConfiguration_COLDLINE ChillEffectConfiguration_EnumStorageClass = 3
+ ChillEffectConfiguration_ARCHIVE ChillEffectConfiguration_EnumStorageClass = 4
+)
+
+var ChillEffectConfiguration_EnumStorageClass_name = map[int32]string{
+ 0: "UNKNOWN",
+ 1: "STANDARD",
+ 2: "NEARLINE",
+ 3: "COLDLINE",
+ 4: "ARCHIVE",
+}
+
+var ChillEffectConfiguration_EnumStorageClass_value = map[string]int32{
+ "UNKNOWN": 0,
+ "STANDARD": 1,
+ "NEARLINE": 2,
+ "COLDLINE": 3,
+ "ARCHIVE": 4,
+}
+
+func (x ChillEffectConfiguration_EnumStorageClass) String() string {
+ return proto.EnumName(ChillEffectConfiguration_EnumStorageClass_name, int32(x))
+}
+
+func (ChillEffectConfiguration_EnumStorageClass) EnumDescriptor() ([]byte, []int) {
+ return fileDescriptor_77ad79a3f52eadc5, []int{3, 0}
+}
+
// Like it says on the tin, will run stats only.
type NoopEffectConfiguration struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
@@ -162,9 +197,11 @@
// Change the storage class of an object in place.
type ChillEffectConfiguration struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ // The desired destination storage class.
+ ToStorageClass ChillEffectConfiguration_EnumStorageClass `protobuf:"varint,1,opt,name=to_storage_class,json=toStorageClass,proto3,enum=cycler.ChillEffectConfiguration_EnumStorageClass" json:"to_storage_class,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
func (m *ChillEffectConfiguration) Reset() { *m = ChillEffectConfiguration{} }
@@ -192,7 +229,15 @@
var xxx_messageInfo_ChillEffectConfiguration proto.InternalMessageInfo
+func (m *ChillEffectConfiguration) GetToStorageClass() ChillEffectConfiguration_EnumStorageClass {
+ if m != nil {
+ return m.ToStorageClass
+ }
+ return ChillEffectConfiguration_UNKNOWN
+}
+
func init() {
+ proto.RegisterEnum("cycler.ChillEffectConfiguration_EnumStorageClass", ChillEffectConfiguration_EnumStorageClass_name, ChillEffectConfiguration_EnumStorageClass_value)
proto.RegisterType((*NoopEffectConfiguration)(nil), "cycler.NoopEffectConfiguration")
proto.RegisterType((*MoveEffectConfiguration)(nil), "cycler.MoveEffectConfiguration")
proto.RegisterType((*DuplicateEffectConfiguration)(nil), "cycler.DuplicateEffectConfiguration")
@@ -202,18 +247,24 @@
func init() { proto.RegisterFile("cycler/effect.proto", fileDescriptor_77ad79a3f52eadc5) }
var fileDescriptor_77ad79a3f52eadc5 = []byte{
- // 199 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xae, 0x4c, 0xce,
- 0x49, 0x2d, 0xd2, 0x4f, 0x4d, 0x4b, 0x4b, 0x4d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17,
- 0x62, 0x83, 0x08, 0x2a, 0x49, 0x72, 0x89, 0xfb, 0xe5, 0xe7, 0x17, 0xb8, 0x82, 0xe5, 0x9c, 0xf3,
- 0xf3, 0xd2, 0x32, 0xd3, 0x4b, 0x8b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x94, 0xca, 0xb9, 0xc4, 0x7d,
- 0xf3, 0xcb, 0x52, 0xb1, 0x48, 0x09, 0xe9, 0x72, 0x09, 0xa5, 0xa4, 0x16, 0x97, 0x64, 0xe6, 0x81,
- 0xb9, 0xf1, 0x49, 0xa5, 0xc9, 0xd9, 0xa9, 0x25, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x82,
- 0x48, 0x32, 0x4e, 0x60, 0x09, 0x74, 0xe5, 0x05, 0x45, 0xa9, 0x69, 0x99, 0x15, 0x12, 0x4c, 0x18,
- 0xca, 0x03, 0xc0, 0x12, 0x4a, 0x35, 0x5c, 0x32, 0x2e, 0xa5, 0x05, 0x39, 0x99, 0xc9, 0x89, 0x25,
- 0x03, 0x60, 0xbb, 0x14, 0x97, 0x84, 0x73, 0x46, 0x66, 0x4e, 0x0e, 0x16, 0x9b, 0x9d, 0x8c, 0xa2,
- 0x0c, 0xd2, 0xf3, 0xf5, 0x92, 0x33, 0x8a, 0xf2, 0x73, 0x33, 0x4b, 0x73, 0xf5, 0xf2, 0x8b, 0xd2,
- 0xf5, 0x61, 0x9c, 0xfc, 0x62, 0xfd, 0xcc, 0xbc, 0xb4, 0xa2, 0x44, 0x7d, 0x70, 0xf8, 0xea, 0xa7,
- 0xe7, 0xeb, 0x43, 0x42, 0x38, 0x89, 0x0d, 0x2c, 0x60, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x29,
- 0x5c, 0x7c, 0x3d, 0x87, 0x01, 0x00, 0x00,
+ // 304 bytes of a gzipped FileDescriptorProto
+ 0x1f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, 0x4f, 0xa3, 0xb2, 0x34, 0xc3, 0x9d, 0xfe, 0x05, 0x69, 0xfe, 0x28, 0xf9,
+ 0xab, 0x4b, 0x82, 0xbc, 0xca, 0x26, 0x4d, 0xd3, 0xab, 0x8b, 0x61, 0x47, 0xc3, 0x32, 0x3b, 0x53,
+ 0x84, 0x57, 0x33, 0xf6, 0x1e, 0xda, 0xbe, 0x67, 0xd7, 0x6c, 0xfc, 0xc0, 0xf0, 0x86, 0xbd, 0x8f,
+ 0x76, 0x26, 0x77, 0x2e, 0xf3, 0xdd, 0xd0, 0xc7, 0x56, 0x4d, 0x2c, 0x70, 0xc3, 0xd1, 0x90, 0x05,
+ 0xb8, 0x55, 0x93, 0x37, 0x1e, 0xf9, 0x86, 0x36, 0xeb, 0x9a, 0x1b, 0x7a, 0x57, 0xc3, 0x69, 0x80,
+ 0xb7, 0x06, 0xfd, 0xc7, 0xf3, 0x04, 0x08, 0x5f, 0x28, 0xc8, 0x64, 0x95, 0x11, 0x50, 0x09, 0xfd,
+ 0x01, 0x28, 0xa9, 0xcc, 0x63, 0x15, 0x51, 0xf3, 0x2a, 0x68, 0x02, 0xb4, 0xf9, 0x8a, 0x79, 0xdb,
+ 0x1c, 0x2e, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x88, 0xa2, 0x38, 0x97, 0x3d, 0x02, 0x00, 0x00,
}
diff --git a/src/cycler/effect.proto b/src/cycler/effect.proto
index 94db72c..b839513 100644
--- a/src/cycler/effect.proto
+++ b/src/cycler/effect.proto
@@ -36,5 +36,17 @@
}
// Change the storage class of an object in place.
-message ChillEffectConfiguration {}
+message ChillEffectConfiguration {
+ // The existing storage classes.
+ enum EnumStorageClass {
+ UNKNOWN = 0;
+ STANDARD = 1;
+ NEARLINE = 2;
+ COLDLINE = 3;
+ ARCHIVE = 4;
+ }
+
+ // The desired destination storage class.
+ EnumStorageClass to_storage_class = 1;
+}