test: Do not include inventory metadata in RTD invocation

Before this CL, the invocation API included metadata about device
features and setup used for test scheduling decisions. Ideally, this
information need not be provided inthe invocation:

* Device features are known at Chrome OS build and can be queried from
  the Chrome OS device at test runtime.
* Test Lab Wiring service is intended to hide all device setup from
  Remote Test Driver invocations.

Including this information in the invocation has risks:

* Potential abuse of the information for piping context for analytics in
  test results, instead of joinging with upstream source-of-truth.
* Removing this information from invocation later would be a breaking
  API change.

Thus, we drop these arguments from the invocation API until a valid
use-case is encoutered.

BUG=chromium:1069902
TEST=./generate.sh

Change-Id: If046c90003faea1ca4f18d5827de71e9fbc8bf76
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2157895
Reviewed-by: Alex Zamorzaev <zamorzaev@chromium.org>
Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
diff --git a/go/test/rtd/v1/invocation.pb.go b/go/test/rtd/v1/invocation.pb.go
index 4b46dcd..ea0fcfd 100644
--- a/go/test/rtd/v1/invocation.pb.go
+++ b/go/test/rtd/v1/invocation.pb.go
@@ -6,8 +6,6 @@
 import (
 	fmt "fmt"
 	proto "github.com/golang/protobuf/proto"
-	api "go.chromium.org/chromiumos/config/go/api"
-	lab "go.chromium.org/chromiumos/infra/proto/go/lab"
 	math "math"
 )
 
@@ -101,19 +99,13 @@
 // Contains all configuration data required to interact with a single device
 // under test during a test invocation.
 type DUT struct {
-	// Peripherals information about the lab deployment of the device.
-	Peripherals *lab.Peripherals `protobuf:"bytes,1,opt,name=peripherals,proto3" json:"peripherals,omitempty"`
-	// The relationship between topology and features is described at
-	// https://chromium.googlesource.com/chromiumos/config/+/master/proto/api/hardware_topology.md
-	HardwareTopology *api.HardwareTopology `protobuf:"bytes,2,opt,name=hardware_topology,json=hardwareTopology,proto3" json:"hardware_topology,omitempty"`
-	HardwareFeatures *api.HardwareFeatures `protobuf:"bytes,3,opt,name=hardware_features,json=hardwareFeatures,proto3" json:"hardware_features,omitempty"`
 	// Name for the DUT for using Test Lab Services to interact with the
 	// device and its peripherals.
 	//
 	// The RTD MUST pass this to Test Lab Service RPCs that act on a particular
 	// DUT. See the tls.OpenDutPortRequest message for an example of where
 	// this is used.
-	TlsDutName           string   `protobuf:"bytes,4,opt,name=tls_dut_name,json=tlsDutName,proto3" json:"tls_dut_name,omitempty"`
+	TlsDutName           string   `protobuf:"bytes,1,opt,name=tls_dut_name,json=tlsDutName,proto3" json:"tls_dut_name,omitempty"`
 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 	XXX_unrecognized     []byte   `json:"-"`
 	XXX_sizecache        int32    `json:"-"`
@@ -144,27 +136,6 @@
 
 var xxx_messageInfo_DUT proto.InternalMessageInfo
 
-func (m *DUT) GetPeripherals() *lab.Peripherals {
-	if m != nil {
-		return m.Peripherals
-	}
-	return nil
-}
-
-func (m *DUT) GetHardwareTopology() *api.HardwareTopology {
-	if m != nil {
-		return m.HardwareTopology
-	}
-	return nil
-}
-
-func (m *DUT) GetHardwareFeatures() *api.HardwareFeatures {
-	if m != nil {
-		return m.HardwareFeatures
-	}
-	return nil
-}
-
 func (m *DUT) GetTlsDutName() string {
 	if m != nil {
 		return m.TlsDutName
@@ -401,40 +372,33 @@
 func init() { proto.RegisterFile("test/rtd/v1/invocation.proto", fileDescriptor_8ce9aeaf734a34de) }
 
 var fileDescriptor_8ce9aeaf734a34de = []byte{
-	// 560 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xdf, 0x6e, 0xd3, 0x30,
-	0x14, 0xc6, 0xd5, 0x3f, 0xd0, 0xcd, 0x41, 0xa2, 0x58, 0x4c, 0x0a, 0x65, 0x12, 0x55, 0x35, 0xc4,
-	0x6e, 0x70, 0x58, 0xb9, 0x42, 0xbb, 0x62, 0x2d, 0x08, 0xa4, 0x09, 0x55, 0x69, 0x7b, 0xc3, 0x4d,
-	0x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0x07, 0x91, 0x26, 0x2c, 0x55, 0xb6,
-	0xcb, 0xe1, 0x7d, 0x9b, 0x24, 0x1f, 0x8e, 0x9c, 0x5f, 0x37, 0x0d, 0x26, 0xc8, 0xa9, 0x69, 0xf8,
-	0x19, 0x3a, 0x29, 0x04, 0xec, 0x82, 0x90, 0x83, 0xfd, 0x7c, 0x4f, 0xbf, 0x4f, 0x39, 0x68, 0x49,
-	0xb1, 0x24, 0x33, 0x52, 0xd9, 0x45, 0x4f, 0xbf, 0x4f, 0x39, 0x8c, 0x7e, 0xb6, 0xd0, 0xe3, 0x3b,
-	0x1b, 0xc7, 0x2f, 0x90, 0xa3, 0x8f, 0x4c, 0xc3, 0x50, 0xff, 0x50, 0x6d, 0x98, 0x3e, 0xf1, 0xfb,
-	0xb2, 0x62, 0xf2, 0x62, 0x19, 0x64, 0x02, 0xca, 0x53, 0x3d, 0xf0, 0x7b, 0x2a, 0x96, 0x33, 0x01,
-	0xaa, 0xf4, 0x16, 0x07, 0x6f, 0xa7, 0xf2, 0x16, 0x0d, 0x6f, 0x51, 0x7a, 0xbb, 0x95, 0xb7, 0xd0,
-	0xde, 0x9b, 0xeb, 0xaf, 0xef, 0x22, 0x71, 0xd8, 0x14, 0x11, 0x10, 0x79, 0xb5, 0xeb, 0xca, 0xd3,
-	0x0d, 0x50, 0xcf, 0x5c, 0x50, 0x2f, 0x12, 0x5e, 0xed, 0x3f, 0xe1, 0x1a, 0x54, 0xb8, 0x7a, 0x68,
-	0x94, 0xb7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x19, 0xa0, 0xe2, 0x7a, 0x6f, 0x04, 0x00, 0x00,
+	// 444 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x8e, 0xd3, 0x30,
+	0x10, 0x86, 0xd5, 0xa6, 0xd0, 0xc5, 0x41, 0x02, 0x59, 0x20, 0x85, 0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, 0xf5, 0xde, 0xce, 0x78, 0x6f, 0xae, 0xbf, 0x7e, 0x28, 0x54, 0x98, 0x7f,
+	0x03, 0x55, 0x89, 0xa6, 0x0a, 0x15, 0x14, 0x51, 0x5f, 0x28, 0x1d, 0x09, 0x79, 0x0f, 0x59, 0x64,
+	0xdf, 0x6f, 0x54, 0xa8, 0x68, 0xf0, 0xba, 0xaf, 0x01, 0xd9, 0xfe, 0xa1, 0x55, 0xde, 0xff, 0x0e,
+	0x00, 0x00, 0xff, 0xff, 0xe2, 0x21, 0x46, 0x7a, 0x22, 0x03, 0x00, 0x00,
 }
diff --git a/src/test/rtd/v1/invocation.proto b/src/test/rtd/v1/invocation.proto
index cb0c52e..06a77af 100644
--- a/src/test/rtd/v1/invocation.proto
+++ b/src/test/rtd/v1/invocation.proto
@@ -8,13 +8,8 @@
 
 option go_package = "go.chromium.org/chromiumos/infra/proto/go/test/rtd/v1;rtd";
 
-import "lab/peripherals.proto";
 import "test/rtd/v1/progress.proto";
 
-// From chromiumos/config repo.
-import "chromiumos/config/api/hardware_topology.proto";
-import "chromiumos/config/api/topology.proto";
-
 // Input to a Remote Test Driver invocation.
 //
 // TODO(crbug.com/1051691): Link to a reference implementation of Remote Test
@@ -41,21 +36,13 @@
 // Contains all configuration data required to interact with a single device
 // under test during a test invocation.
 message DUT {
-  // Peripherals information about the lab deployment of the device.
-  lab.Peripherals peripherals = 1;
-
-  // The relationship between topology and features is described at
-  // https://chromium.googlesource.com/chromiumos/config/+/master/proto/api/hardware_topology.md
-  chromiumos.config.api.HardwareTopology hardware_topology = 2;
-  chromiumos.config.api.HardwareFeatures hardware_features = 3;
-
   // Name for the DUT for using Test Lab Services to interact with the
   // device and its peripherals.
   //
   // The RTD MUST pass this to Test Lab Service RPCs that act on a particular
   // DUT. See the tls.OpenDutPortRequest message for an example of where
   // this is used.
-  string tls_dut_name = 4;
+  string tls_dut_name = 1;
 }
 
 // Request for execution of a single test.metadata.Test