Deprecate chromiumos.PrepareForBuildResponse.
Begin migrating all of the users to chromite.api.(artifacts.)BuildRelevance.
BUG=chromium:1034529
TEST=generate
Change-Id: Iab5140437445e3de5da5d289dcdf503354f1413c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2172716
Tested-by: LaMont Jones <lamontjones@chromium.org>
Reviewed-by: David Burger <dburger@chromium.org>
Commit-Queue: LaMont Jones <lamontjones@chromium.org>
diff --git a/go/chromite/api/toolchain.pb.go b/go/chromite/api/toolchain.pb.go
index d6b2049..339483d 100644
--- a/go/chromite/api/toolchain.pb.go
+++ b/go/chromite/api/toolchain.pb.go
@@ -68,38 +68,40 @@
}
// Does this artifact require a build?
-type PrepareForToolchainBuildResponse_BuildRelevance int32
+// TODO(crbug/1034529): Once the users of this enum have moved to using
+// artifacts.PrepareForBuildResponse.${NAME}, remove this enum.
+type PrepareForToolchainBuildResponse_OldBuildRelevance int32
const (
- PrepareForToolchainBuildResponse_UNSPECIFIED PrepareForToolchainBuildResponse_BuildRelevance = 0
+ PrepareForToolchainBuildResponse_UNSPECIFIED PrepareForToolchainBuildResponse_OldBuildRelevance = 0
// Build is necessary to generate artifacts.
- PrepareForToolchainBuildResponse_NEEDED PrepareForToolchainBuildResponse_BuildRelevance = 1
+ PrepareForToolchainBuildResponse_NEEDED PrepareForToolchainBuildResponse_OldBuildRelevance = 1
// Defer to other artifacts. Used primarily for aggregation of artifact
// results.
- PrepareForToolchainBuildResponse_UNKNOWN PrepareForToolchainBuildResponse_BuildRelevance = 2
+ PrepareForToolchainBuildResponse_UNKNOWN PrepareForToolchainBuildResponse_OldBuildRelevance = 2
// Artifacts are already generated. The build is pointless.
- PrepareForToolchainBuildResponse_POINTLESS PrepareForToolchainBuildResponse_BuildRelevance = 3
+ PrepareForToolchainBuildResponse_POINTLESS PrepareForToolchainBuildResponse_OldBuildRelevance = 3
)
-var PrepareForToolchainBuildResponse_BuildRelevance_name = map[int32]string{
+var PrepareForToolchainBuildResponse_OldBuildRelevance_name = map[int32]string{
0: "UNSPECIFIED",
1: "NEEDED",
2: "UNKNOWN",
3: "POINTLESS",
}
-var PrepareForToolchainBuildResponse_BuildRelevance_value = map[string]int32{
+var PrepareForToolchainBuildResponse_OldBuildRelevance_value = map[string]int32{
"UNSPECIFIED": 0,
"NEEDED": 1,
"UNKNOWN": 2,
"POINTLESS": 3,
}
-func (x PrepareForToolchainBuildResponse_BuildRelevance) String() string {
- return proto.EnumName(PrepareForToolchainBuildResponse_BuildRelevance_name, int32(x))
+func (x PrepareForToolchainBuildResponse_OldBuildRelevance) String() string {
+ return proto.EnumName(PrepareForToolchainBuildResponse_OldBuildRelevance_name, int32(x))
}
-func (PrepareForToolchainBuildResponse_BuildRelevance) EnumDescriptor() ([]byte, []int) {
+func (PrepareForToolchainBuildResponse_OldBuildRelevance) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_7ff43bdb7436d394, []int{2, 0}
}
@@ -244,10 +246,11 @@
// TODO(crbug/1019868): Migrate to using chromiumos.PrepareForBuildResponse.
type PrepareForToolchainBuildResponse struct {
- BuildRelevance PrepareForToolchainBuildResponse_BuildRelevance `protobuf:"varint,1,opt,name=build_relevance,json=buildRelevance,proto3,enum=chromite.api.PrepareForToolchainBuildResponse_BuildRelevance" json:"build_relevance,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ // See artifacts.proto in this directory.
+ BuildRelevance PrepareForBuildResponse_BuildRelevance `protobuf:"varint,1,opt,name=build_relevance,json=buildRelevance,proto3,enum=chromite.api.PrepareForBuildResponse_BuildRelevance" json:"build_relevance,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
func (m *PrepareForToolchainBuildResponse) Reset() { *m = PrepareForToolchainBuildResponse{} }
@@ -275,11 +278,11 @@
var xxx_messageInfo_PrepareForToolchainBuildResponse proto.InternalMessageInfo
-func (m *PrepareForToolchainBuildResponse) GetBuildRelevance() PrepareForToolchainBuildResponse_BuildRelevance {
+func (m *PrepareForToolchainBuildResponse) GetBuildRelevance() PrepareForBuildResponse_BuildRelevance {
if m != nil {
return m.BuildRelevance
}
- return PrepareForToolchainBuildResponse_UNSPECIFIED
+ return PrepareForBuildResponse_UNSPECIFIED
}
type BundleToolchainRequest struct {
@@ -499,7 +502,7 @@
func init() {
proto.RegisterEnum("chromite.api.AFDOArtifactType", AFDOArtifactType_name, AFDOArtifactType_value)
- proto.RegisterEnum("chromite.api.PrepareForToolchainBuildResponse_BuildRelevance", PrepareForToolchainBuildResponse_BuildRelevance_name, PrepareForToolchainBuildResponse_BuildRelevance_value)
+ proto.RegisterEnum("chromite.api.PrepareForToolchainBuildResponse_OldBuildRelevance", PrepareForToolchainBuildResponse_OldBuildRelevance_name, PrepareForToolchainBuildResponse_OldBuildRelevance_value)
proto.RegisterType((*ArtifactInfo)(nil), "chromite.api.ArtifactInfo")
proto.RegisterType((*PrepareForToolchainBuildRequest)(nil), "chromite.api.PrepareForToolchainBuildRequest")
proto.RegisterType((*PrepareForToolchainBuildResponse)(nil), "chromite.api.PrepareForToolchainBuildResponse")
@@ -512,62 +515,62 @@
func init() { proto.RegisterFile("chromite/api/toolchain.proto", fileDescriptor_7ff43bdb7436d394) }
var fileDescriptor_7ff43bdb7436d394 = []byte{
- // 866 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x6e, 0x1b, 0x45,
- 0x14, 0xee, 0xae, 0x83, 0x5b, 0x1f, 0x3b, 0xf6, 0x32, 0x12, 0x89, 0x59, 0x5a, 0xc5, 0xb2, 0x40,
- 0x4a, 0x2b, 0x61, 0x8b, 0x40, 0x11, 0x42, 0xe2, 0xc2, 0x3f, 0x1b, 0xd5, 0x24, 0x5d, 0x5b, 0x63,
- 0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7c, 0x66, 0x6b, 0x57, 0x78, 0x34, 0xfe, 0xd7, 0x50, 0x53, 0xf7, 0x23,
+ 0x3d, 0xe1, 0x27, 0xf9, 0x16, 0xdb, 0x9f, 0x31, 0xf3, 0xd3, 0xbf, 0x41, 0xa9, 0xfe, 0xe6, 0xc3,
+ 0xb7, 0xef, 0xcc, 0x7d, 0x28, 0x25, 0xdf, 0x40, 0x86, 0xde, 0xfd, 0xea, 0xfb, 0x2f, 0x97, 0x2c,
+ 0x31, 0x70, 0x8b, 0xf1, 0x65, 0x3b, 0xf3, 0x29, 0x42, 0xbd, 0x05, 0xc7, 0xed, 0xf0, 0x4b, 0xa4,
+ 0xbd, 0x64, 0xed, 0xec, 0x17, 0xce, 0xac, 0x18, 0x2e, 0x7f, 0xf1, 0x57, 0x00, 0x00, 0x00, 0xff,
+ 0xff, 0x5c, 0xf1, 0xa9, 0x64, 0x60, 0x09, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/go/chromiumos/common.pb.go b/go/chromiumos/common.pb.go
index 081c486..5b391e4 100644
--- a/go/chromiumos/common.pb.go
+++ b/go/chromiumos/common.pb.go
@@ -218,7 +218,7 @@
return fileDescriptor_fa0b57c3d7d4c63b, []int{6, 0}
}
-// Does this artifact require a build?
+// DEPRECTATED: Does this artifact require a build?
type PrepareForBuildResponse_BuildRelevance int32
const (
@@ -1276,8 +1276,8 @@
return nil
}
-// TODO(crbug/1019868): Consider migrating
-// chromite.api.toolchain.PrepareForToolchainBuildRequest as well.
+// TODO(crbug/1034529): Remove this after migrating users to
+// chromite.api.artifacts.PrepareForBuildResponse.
type PrepareForBuildResponse struct {
BuildRelevance PrepareForBuildResponse_BuildRelevance `protobuf:"varint,1,opt,name=build_relevance,json=buildRelevance,proto3,enum=chromiumos.PrepareForBuildResponse_BuildRelevance" json:"build_relevance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
diff --git a/src/chromite/api/toolchain.proto b/src/chromite/api/toolchain.proto
index 83c0914..dad8fdf 100644
--- a/src/chromite/api/toolchain.proto
+++ b/src/chromite/api/toolchain.proto
@@ -46,7 +46,9 @@
// TODO(crbug/1019868): Migrate to using chromiumos.PrepareForBuildResponse.
message PrepareForToolchainBuildResponse {
// Does this artifact require a build?
- enum BuildRelevance {
+ // TODO(crbug/1034529): Once the users of this enum have moved to using
+ // artifacts.PrepareForBuildResponse.${NAME}, remove this enum.
+ enum OldBuildRelevance {
UNSPECIFIED = 0;
// Build is necessary to generate artifacts.
NEEDED = 1;
@@ -56,7 +58,8 @@
// Artifacts are already generated. The build is pointless.
POINTLESS = 3;
}
- BuildRelevance build_relevance = 1;
+ // See artifacts.proto in this directory.
+ PrepareForBuildResponse.BuildRelevance build_relevance = 1;
}
message BundleToolchainRequest {
diff --git a/src/chromiumos/common.proto b/src/chromiumos/common.proto
index c6a756f..2bb1fa4 100644
--- a/src/chromiumos/common.proto
+++ b/src/chromiumos/common.proto
@@ -196,10 +196,10 @@
bytes serialized_proto = 1;
}
-// TODO(crbug/1019868): Consider migrating
-// chromite.api.toolchain.PrepareForToolchainBuildRequest as well.
+// TODO(crbug/1034529): Remove this after migrating users to
+// chromite.api.artifacts.PrepareForBuildResponse.
message PrepareForBuildResponse {
- // Does this artifact require a build?
+ // DEPRECTATED: Does this artifact require a build?
enum BuildRelevance {
UNSPECIFIED = 0;
// Build is necessary to generate artifacts.