| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: test/rtd/v1/invocation.proto |
| |
| package invocation |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| lab "go.chromium.org/chromiumos/infra/proto/go/lab" |
| services "go.chromium.org/chromiumos/infra/proto/go/lab/services" |
| math "math" |
| common "test/common" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Input to a Remote Test Driver invocation. |
| // |
| // TODO(crbug.com/1051691): Link to a reference implementation of Remote Test |
| // Server & Remote Test Driver. |
| type Invocation struct { |
| // Progress sink to be used to report progress of the Remote Test Driver |
| // invocation to the surrounding Remote Test Server. |
| ProgressSinkClientConfig *ProgressSinkClientConfig `protobuf:"bytes,1,opt,name=progress_sink_client_config,json=progressSinkClientConfig,proto3" json:"progress_sink_client_config,omitempty"` |
| // Set of DUTs used for each of the requests in this invocation. |
| Duts []*DUT `protobuf:"bytes,2,rep,name=duts,proto3" json:"duts,omitempty"` |
| // Smallest unit of an invocation request for which results must be reported. |
| // |
| // An invocation must execute all requests serially in-order. This assumption |
| // is necessary for future support of test sequences in test plans. |
| Requests []*Request `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"` |
| // Configuration information for using Test Lab Services to interact |
| // with DUTs and their peripherals. |
| TestLabServicesConfig *services.ClientConfig `protobuf:"bytes,4,opt,name=test_lab_services_config,json=testLabServicesConfig,proto3" json:"test_lab_services_config,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Invocation) Reset() { *m = Invocation{} } |
| func (m *Invocation) String() string { return proto.CompactTextString(m) } |
| func (*Invocation) ProtoMessage() {} |
| func (*Invocation) Descriptor() ([]byte, []int) { |
| return fileDescriptor_8ce9aeaf734a34de, []int{0} |
| } |
| |
| func (m *Invocation) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Invocation.Unmarshal(m, b) |
| } |
| func (m *Invocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Invocation.Marshal(b, m, deterministic) |
| } |
| func (m *Invocation) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Invocation.Merge(m, src) |
| } |
| func (m *Invocation) XXX_Size() int { |
| return xxx_messageInfo_Invocation.Size(m) |
| } |
| func (m *Invocation) XXX_DiscardUnknown() { |
| xxx_messageInfo_Invocation.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Invocation proto.InternalMessageInfo |
| |
| func (m *Invocation) GetProgressSinkClientConfig() *ProgressSinkClientConfig { |
| if m != nil { |
| return m.ProgressSinkClientConfig |
| } |
| return nil |
| } |
| |
| func (m *Invocation) GetDuts() []*DUT { |
| if m != nil { |
| return m.Duts |
| } |
| return nil |
| } |
| |
| func (m *Invocation) GetRequests() []*Request { |
| if m != nil { |
| return m.Requests |
| } |
| return nil |
| } |
| |
| func (m *Invocation) GetTestLabServicesConfig() *services.ClientConfig { |
| if m != nil { |
| return m.TestLabServicesConfig |
| } |
| return nil |
| } |
| |
| // Contains all configuration data required to interact with a single device |
| // under test during a test invocation. |
| type DUT struct { |
| // Device Under Test sepcification. |
| Device *common.Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` |
| // Peripherals information about the lab deployment of the device. |
| Peripherals *lab.Peripherals `protobuf:"bytes,2,opt,name=peripherals,proto3" json:"peripherals,omitempty"` |
| // Name for the DUT for using Test Lab Services to interact with the |
| // device and its peripherals. |
| // The RTD must pass this to certain Test Lab Service RPCs to specify |
| // DUTs to act on. |
| // See the tls.OpenDutPortRequest message for an example of where |
| // this is used. |
| TlsDutName string `protobuf:"bytes,3,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:"-"` |
| } |
| |
| func (m *DUT) Reset() { *m = DUT{} } |
| func (m *DUT) String() string { return proto.CompactTextString(m) } |
| func (*DUT) ProtoMessage() {} |
| func (*DUT) Descriptor() ([]byte, []int) { |
| return fileDescriptor_8ce9aeaf734a34de, []int{1} |
| } |
| |
| func (m *DUT) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_DUT.Unmarshal(m, b) |
| } |
| func (m *DUT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_DUT.Marshal(b, m, deterministic) |
| } |
| func (m *DUT) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_DUT.Merge(m, src) |
| } |
| func (m *DUT) XXX_Size() int { |
| return xxx_messageInfo_DUT.Size(m) |
| } |
| func (m *DUT) XXX_DiscardUnknown() { |
| xxx_messageInfo_DUT.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_DUT proto.InternalMessageInfo |
| |
| func (m *DUT) GetDevice() *common.Device { |
| if m != nil { |
| return m.Device |
| } |
| return nil |
| } |
| |
| func (m *DUT) GetPeripherals() *lab.Peripherals { |
| if m != nil { |
| return m.Peripherals |
| } |
| return nil |
| } |
| |
| func (m *DUT) GetTlsDutName() string { |
| if m != nil { |
| return m.TlsDutName |
| } |
| return "" |
| } |
| |
| // Request for execution of a single test.metadata.Test |
| type Request struct { |
| // name must be unique across all requests in this invocation. |
| // |
| // Remote Test Drivers are recommended to use name as the opaque tag |
| // required by the Test Lab Services API. Thus, name should be unique across |
| // all invocations to simplify analytics. UUIDs are recommended. |
| // |
| // See also: |
| // Test Lab Services API: tls/README.md |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // The test to execute, identified by the test.metadata.Test.name field. |
| // |
| // Note that the request does not contain a reference to the Remote Test |
| // Driver to use, as the request is an input to the Remote Test Driver |
| // invocation. |
| Test string `protobuf:"bytes,2,opt,name=test,proto3" json:"test,omitempty"` |
| // Environment configuration set by the Remote Test Server for a specific |
| // request of the Remote Test Driver. |
| Environment *Request_Environment `protobuf:"bytes,3,opt,name=environment,proto3" json:"environment,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Request) Reset() { *m = Request{} } |
| func (m *Request) String() string { return proto.CompactTextString(m) } |
| func (*Request) ProtoMessage() {} |
| func (*Request) Descriptor() ([]byte, []int) { |
| return fileDescriptor_8ce9aeaf734a34de, []int{2} |
| } |
| |
| func (m *Request) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Request.Unmarshal(m, b) |
| } |
| func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Request.Marshal(b, m, deterministic) |
| } |
| func (m *Request) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Request.Merge(m, src) |
| } |
| func (m *Request) XXX_Size() int { |
| return xxx_messageInfo_Request.Size(m) |
| } |
| func (m *Request) XXX_DiscardUnknown() { |
| xxx_messageInfo_Request.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Request proto.InternalMessageInfo |
| |
| func (m *Request) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *Request) GetTest() string { |
| if m != nil { |
| return m.Test |
| } |
| return "" |
| } |
| |
| func (m *Request) GetEnvironment() *Request_Environment { |
| if m != nil { |
| return m.Environment |
| } |
| return nil |
| } |
| |
| // Per-request Remote Test Server environment configuration. |
| type Request_Environment struct { |
| // Absolute path to a directory where prod-critical log-data may be written. |
| // |
| // This directory must be created by Remote Test Server prior to the Remote |
| // Test Driver invocation and its contents must be successfully offloaded to |
| // the requested long-term storage for the request to be considered |
| // successful. |
| // |
| // Note: Remote Test Drivers should use |
| // test.invocation.ProgressClient.ReportLogData() to report logs whenever |
| // possible. This log-data reporting feature is grandfathered into the |
| // current API to support test-specific critical log-data reporting. |
| CriticalLogDataPath string `protobuf:"bytes,1,opt,name=critical_log_data_path,json=criticalLogDataPath,proto3" json:"critical_log_data_path,omitempty"` |
| // Absolute path to a directory where non prod-critical log-data may be |
| // written. |
| // |
| // This directory must be created by Remote Test Server prior to the Remote |
| // Test Driver invocation. It's contents may be offloaded to long-term |
| // storage as a best effort asynchronous task. |
| // |
| // Note: Remote Test Drivers should use |
| // test.invocation.ProgressClient.ReportLogData() to report logs whenever |
| // possible. This log-data reporting feature is grandfathered into the |
| // current API to support test-specific log files. |
| LogDataPath string `protobuf:"bytes,2,opt,name=log_data_path,json=logDataPath,proto3" json:"log_data_path,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Request_Environment) Reset() { *m = Request_Environment{} } |
| func (m *Request_Environment) String() string { return proto.CompactTextString(m) } |
| func (*Request_Environment) ProtoMessage() {} |
| func (*Request_Environment) Descriptor() ([]byte, []int) { |
| return fileDescriptor_8ce9aeaf734a34de, []int{2, 0} |
| } |
| |
| func (m *Request_Environment) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Request_Environment.Unmarshal(m, b) |
| } |
| func (m *Request_Environment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Request_Environment.Marshal(b, m, deterministic) |
| } |
| func (m *Request_Environment) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Request_Environment.Merge(m, src) |
| } |
| func (m *Request_Environment) XXX_Size() int { |
| return xxx_messageInfo_Request_Environment.Size(m) |
| } |
| func (m *Request_Environment) XXX_DiscardUnknown() { |
| xxx_messageInfo_Request_Environment.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Request_Environment proto.InternalMessageInfo |
| |
| func (m *Request_Environment) GetCriticalLogDataPath() string { |
| if m != nil { |
| return m.CriticalLogDataPath |
| } |
| return "" |
| } |
| |
| func (m *Request_Environment) GetLogDataPath() string { |
| if m != nil { |
| return m.LogDataPath |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*Invocation)(nil), "test.rtd.v1.Invocation") |
| proto.RegisterType((*DUT)(nil), "test.rtd.v1.DUT") |
| proto.RegisterType((*Request)(nil), "test.rtd.v1.Request") |
| proto.RegisterType((*Request_Environment)(nil), "test.rtd.v1.Request.Environment") |
| } |
| |
| func init() { proto.RegisterFile("test/rtd/v1/invocation.proto", fileDescriptor_8ce9aeaf734a34de) } |
| |
| var fileDescriptor_8ce9aeaf734a34de = []byte{ |
| // 478 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xd1, 0x6e, 0xd3, 0x30, |
| 0x14, 0x86, 0x95, 0xb5, 0x1a, 0xcc, 0x01, 0x69, 0xf2, 0x18, 0x0a, 0x85, 0x8b, 0xa8, 0x02, 0xa9, |
| 0x12, 0x92, 0xcd, 0xba, 0x2b, 0xc4, 0xdd, 0x16, 0x2e, 0x90, 0x26, 0x54, 0xa5, 0xdb, 0x0d, 0x37, |
| 0x96, 0x93, 0xb8, 0xa9, 0x35, 0xc7, 0x0e, 0xb6, 0x93, 0x67, 0xe0, 0x2d, 0x78, 0x32, 0xde, 0x05, |
| 0xe5, 0x24, 0x59, 0x53, 0x09, 0xee, 0x9c, 0xf3, 0x7f, 0xe7, 0x9c, 0x3f, 0x7f, 0x1c, 0xf4, 0xce, |
| 0x0b, 0xe7, 0xa9, 0xf5, 0x05, 0x6d, 0xaf, 0xa8, 0xd4, 0xad, 0xc9, 0xb9, 0x97, 0x46, 0x93, 0xda, |
| 0x1a, 0x6f, 0x70, 0xd8, 0xa9, 0xc4, 0xfa, 0x82, 0xb4, 0x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