blob: 9498e343ff002aeb3a2538faae452038f8aa1235 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: chromiumos/config/api/test/tls/wiring.proto
package tls
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
longrunning "go.chromium.org/chromiumos/config/go/api/test/tls/dependencies/longrunning"
xmlrpc "go.chromium.org/chromiumos/config/go/api/test/xmlrpc"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// 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
type License_Type int32
const (
License_TYPE_UNSPECIFIED License_Type = 0
// Microsoft Windows 10 Professional Desktop Operating System.
// Contact the Chrome OS Parallels team for license specifics.
License_WINDOWS_10_PRO License_Type = 1
// Microsoft Office Standard.
// Contact the Chrome OS Parallels team for version and license specifics.
License_MS_OFFICE_STANDARD License_Type = 2
)
var License_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "WINDOWS_10_PRO",
2: "MS_OFFICE_STANDARD",
}
var License_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"WINDOWS_10_PRO": 1,
"MS_OFFICE_STANDARD": 2,
}
func (x License_Type) String() string {
return proto.EnumName(License_Type_name, int32(x))
}
func (License_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{2, 0}
}
type SetDutPowerSupplyRequest_State int32
const (
SetDutPowerSupplyRequest_STATE_UNKNOWN SetDutPowerSupplyRequest_State = 0
SetDutPowerSupplyRequest_STATE_ON SetDutPowerSupplyRequest_State = 1
SetDutPowerSupplyRequest_STATE_OFF SetDutPowerSupplyRequest_State = 2
)
var SetDutPowerSupplyRequest_State_name = map[int32]string{
0: "STATE_UNKNOWN",
1: "STATE_ON",
2: "STATE_OFF",
}
var SetDutPowerSupplyRequest_State_value = map[string]int32{
"STATE_UNKNOWN": 0,
"STATE_ON": 1,
"STATE_OFF": 2,
}
func (x SetDutPowerSupplyRequest_State) String() string {
return proto.EnumName(SetDutPowerSupplyRequest_State_name, int32(x))
}
func (SetDutPowerSupplyRequest_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{5, 0}
}
type SetDutPowerSupplyResponse_Status int32
const (
SetDutPowerSupplyResponse_STATUS_UNKNOWN SetDutPowerSupplyResponse_Status = 0
SetDutPowerSupplyResponse_STATUS_OK SetDutPowerSupplyResponse_Status = 1
// STATUS_BAD_DUT indicates that the DUT is not known,
// or the caller does not have access to it.
SetDutPowerSupplyResponse_STATUS_BAD_DUT SetDutPowerSupplyResponse_Status = 2
// STATUS_BAD_REQUEST indicates that the request was invalid,
// e.g., passing an invalid state.
SetDutPowerSupplyResponse_STATUS_BAD_REQUEST SetDutPowerSupplyResponse_Status = 3
SetDutPowerSupplyResponse_STATUS_NO_RPM SetDutPowerSupplyResponse_Status = 4
SetDutPowerSupplyResponse_STATUS_RPM_ERROR SetDutPowerSupplyResponse_Status = 5
)
var SetDutPowerSupplyResponse_Status_name = map[int32]string{
0: "STATUS_UNKNOWN",
1: "STATUS_OK",
2: "STATUS_BAD_DUT",
3: "STATUS_BAD_REQUEST",
4: "STATUS_NO_RPM",
5: "STATUS_RPM_ERROR",
}
var SetDutPowerSupplyResponse_Status_value = map[string]int32{
"STATUS_UNKNOWN": 0,
"STATUS_OK": 1,
"STATUS_BAD_DUT": 2,
"STATUS_BAD_REQUEST": 3,
"STATUS_NO_RPM": 4,
"STATUS_RPM_ERROR": 5,
}
func (x SetDutPowerSupplyResponse_Status) String() string {
return proto.EnumName(SetDutPowerSupplyResponse_Status_name, int32(x))
}
func (SetDutPowerSupplyResponse_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{6, 0}
}
type GetDutRequest struct {
// name is the resource name for the DUT.
// The DUT name is passed to the RTD when the RTD is started.
// It is not specified whether the name is the DUT hostname.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetDutRequest) Reset() { *m = GetDutRequest{} }
func (m *GetDutRequest) String() string { return proto.CompactTextString(m) }
func (*GetDutRequest) ProtoMessage() {}
func (*GetDutRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{0}
}
func (m *GetDutRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetDutRequest.Unmarshal(m, b)
}
func (m *GetDutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetDutRequest.Marshal(b, m, deterministic)
}
func (m *GetDutRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetDutRequest.Merge(m, src)
}
func (m *GetDutRequest) XXX_Size() int {
return xxx_messageInfo_GetDutRequest.Size(m)
}
func (m *GetDutRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetDutRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetDutRequest proto.InternalMessageInfo
func (m *GetDutRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type Dut struct {
// name is the resource name for the DUT.
// The DUT name is passed to the RTD when the RTD is started.
// It is not specified whether the name is the DUT hostname.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// licenses are the licenses assigned to the DUT, e.g. Windows
// licenses.
Licenses []*License `protobuf:"bytes,2,rep,name=licenses,proto3" json:"licenses,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_64c10ff2acf3a7b5, []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) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Dut) GetLicenses() []*License {
if m != nil {
return m.Licenses
}
return nil
}
type License struct {
// name is the resource name for the license.
// This is used for tracking licenses.
// Clients MUST NOT use the name to identify the type of license,
// even if the implementation names the resources after the license
// type.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// type is the type of the license.
Type License_Type `protobuf:"varint,2,opt,name=type,proto3,enum=chromiumos.config.api.test.tls.License_Type" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *License) Reset() { *m = License{} }
func (m *License) String() string { return proto.CompactTextString(m) }
func (*License) ProtoMessage() {}
func (*License) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{2}
}
func (m *License) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_License.Unmarshal(m, b)
}
func (m *License) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_License.Marshal(b, m, deterministic)
}
func (m *License) XXX_Merge(src proto.Message) {
xxx_messageInfo_License.Merge(m, src)
}
func (m *License) XXX_Size() int {
return xxx_messageInfo_License.Size(m)
}
func (m *License) XXX_DiscardUnknown() {
xxx_messageInfo_License.DiscardUnknown(m)
}
var xxx_messageInfo_License proto.InternalMessageInfo
func (m *License) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *License) GetType() License_Type {
if m != nil {
return m.Type
}
return License_TYPE_UNSPECIFIED
}
type OpenDutPortRequest struct {
// name is the resource name for the DUT.
// The DUT name is passed to the RTD when the RTD is started.
// It is not specified whether the name is the DUT hostname.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// port is the port to open on the DUT.
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OpenDutPortRequest) Reset() { *m = OpenDutPortRequest{} }
func (m *OpenDutPortRequest) String() string { return proto.CompactTextString(m) }
func (*OpenDutPortRequest) ProtoMessage() {}
func (*OpenDutPortRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{3}
}
func (m *OpenDutPortRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpenDutPortRequest.Unmarshal(m, b)
}
func (m *OpenDutPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpenDutPortRequest.Marshal(b, m, deterministic)
}
func (m *OpenDutPortRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpenDutPortRequest.Merge(m, src)
}
func (m *OpenDutPortRequest) XXX_Size() int {
return xxx_messageInfo_OpenDutPortRequest.Size(m)
}
func (m *OpenDutPortRequest) XXX_DiscardUnknown() {
xxx_messageInfo_OpenDutPortRequest.DiscardUnknown(m)
}
var xxx_messageInfo_OpenDutPortRequest proto.InternalMessageInfo
func (m *OpenDutPortRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *OpenDutPortRequest) GetPort() int32 {
if m != nil {
return m.Port
}
return 0
}
type OpenDutPortResponse struct {
// address for which a port is forwarded to the DUT.
// TLEs SHOULD return an IPv4 or IPv6 address to avoid name
// resolution issues.
// IPv4 addresses MUST be in standard dotted decimal notation.
// IPv6 addresses MUST be formatted according to RFC4291, Section
// 2.2. The mixed IPv4 and IPv6 form MUST NOT be used.
// If TLEs return a hostname, they SHOULD ensure that the hostname
// can be resolved by the RTD via standard name resolution
// facilities.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// port on the address which is forwarded to the DUT.
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OpenDutPortResponse) Reset() { *m = OpenDutPortResponse{} }
func (m *OpenDutPortResponse) String() string { return proto.CompactTextString(m) }
func (*OpenDutPortResponse) ProtoMessage() {}
func (*OpenDutPortResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{4}
}
func (m *OpenDutPortResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpenDutPortResponse.Unmarshal(m, b)
}
func (m *OpenDutPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpenDutPortResponse.Marshal(b, m, deterministic)
}
func (m *OpenDutPortResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpenDutPortResponse.Merge(m, src)
}
func (m *OpenDutPortResponse) XXX_Size() int {
return xxx_messageInfo_OpenDutPortResponse.Size(m)
}
func (m *OpenDutPortResponse) XXX_DiscardUnknown() {
xxx_messageInfo_OpenDutPortResponse.DiscardUnknown(m)
}
var xxx_messageInfo_OpenDutPortResponse proto.InternalMessageInfo
func (m *OpenDutPortResponse) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *OpenDutPortResponse) GetPort() int32 {
if m != nil {
return m.Port
}
return 0
}
type SetDutPowerSupplyRequest struct {
Dut string `protobuf:"bytes,1,opt,name=dut,proto3" json:"dut,omitempty"`
State SetDutPowerSupplyRequest_State `protobuf:"varint,2,opt,name=state,proto3,enum=chromiumos.config.api.test.tls.SetDutPowerSupplyRequest_State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetDutPowerSupplyRequest) Reset() { *m = SetDutPowerSupplyRequest{} }
func (m *SetDutPowerSupplyRequest) String() string { return proto.CompactTextString(m) }
func (*SetDutPowerSupplyRequest) ProtoMessage() {}
func (*SetDutPowerSupplyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{5}
}
func (m *SetDutPowerSupplyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetDutPowerSupplyRequest.Unmarshal(m, b)
}
func (m *SetDutPowerSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetDutPowerSupplyRequest.Marshal(b, m, deterministic)
}
func (m *SetDutPowerSupplyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetDutPowerSupplyRequest.Merge(m, src)
}
func (m *SetDutPowerSupplyRequest) XXX_Size() int {
return xxx_messageInfo_SetDutPowerSupplyRequest.Size(m)
}
func (m *SetDutPowerSupplyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetDutPowerSupplyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetDutPowerSupplyRequest proto.InternalMessageInfo
func (m *SetDutPowerSupplyRequest) GetDut() string {
if m != nil {
return m.Dut
}
return ""
}
func (m *SetDutPowerSupplyRequest) GetState() SetDutPowerSupplyRequest_State {
if m != nil {
return m.State
}
return SetDutPowerSupplyRequest_STATE_UNKNOWN
}
type SetDutPowerSupplyResponse struct {
Status SetDutPowerSupplyResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=chromiumos.config.api.test.tls.SetDutPowerSupplyResponse_Status" json:"status,omitempty"`
// reason provides human friendly context for any error status.
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetDutPowerSupplyResponse) Reset() { *m = SetDutPowerSupplyResponse{} }
func (m *SetDutPowerSupplyResponse) String() string { return proto.CompactTextString(m) }
func (*SetDutPowerSupplyResponse) ProtoMessage() {}
func (*SetDutPowerSupplyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{6}
}
func (m *SetDutPowerSupplyResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetDutPowerSupplyResponse.Unmarshal(m, b)
}
func (m *SetDutPowerSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetDutPowerSupplyResponse.Marshal(b, m, deterministic)
}
func (m *SetDutPowerSupplyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetDutPowerSupplyResponse.Merge(m, src)
}
func (m *SetDutPowerSupplyResponse) XXX_Size() int {
return xxx_messageInfo_SetDutPowerSupplyResponse.Size(m)
}
func (m *SetDutPowerSupplyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SetDutPowerSupplyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SetDutPowerSupplyResponse proto.InternalMessageInfo
func (m *SetDutPowerSupplyResponse) GetStatus() SetDutPowerSupplyResponse_Status {
if m != nil {
return m.Status
}
return SetDutPowerSupplyResponse_STATUS_UNKNOWN
}
func (m *SetDutPowerSupplyResponse) GetReason() string {
if m != nil {
return m.Reason
}
return ""
}
type CacheForDutRequest struct {
// url identifies the resource to cache.
// Only http, https, and gs schemes are supported. The resource to cache MUST
// be accessible from the service. The implementation MAY use
// implementation-specific credentials to attempt to access resources.
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// dut_name is the resource name for the DUT.
// The DUT name is passed to the RTD when the RTD is started.
// It is not specified whether the name is the DUT hostname.
// (-- aip.dev/not-precedent: This preceded the AIP standards.
// Ordinarily, this field should be either `name` or `dut`,
// depending on whether this is a method on Dut resources. --)
DutName string `protobuf:"bytes,2,opt,name=dut_name,json=dutName,proto3" json:"dut_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CacheForDutRequest) Reset() { *m = CacheForDutRequest{} }
func (m *CacheForDutRequest) String() string { return proto.CompactTextString(m) }
func (*CacheForDutRequest) ProtoMessage() {}
func (*CacheForDutRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{7}
}
func (m *CacheForDutRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CacheForDutRequest.Unmarshal(m, b)
}
func (m *CacheForDutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CacheForDutRequest.Marshal(b, m, deterministic)
}
func (m *CacheForDutRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CacheForDutRequest.Merge(m, src)
}
func (m *CacheForDutRequest) XXX_Size() int {
return xxx_messageInfo_CacheForDutRequest.Size(m)
}
func (m *CacheForDutRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CacheForDutRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CacheForDutRequest proto.InternalMessageInfo
func (m *CacheForDutRequest) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *CacheForDutRequest) GetDutName() string {
if m != nil {
return m.DutName
}
return ""
}
type CacheForDutResponse struct {
// url is where the resource is cached at.
// This MUST be accessible to the DUT.
// If the host part of the url is a name, it MUST be resolvable by the DUT
// via standard name resolution facilities.
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CacheForDutResponse) Reset() { *m = CacheForDutResponse{} }
func (m *CacheForDutResponse) String() string { return proto.CompactTextString(m) }
func (*CacheForDutResponse) ProtoMessage() {}
func (*CacheForDutResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{8}
}
func (m *CacheForDutResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CacheForDutResponse.Unmarshal(m, b)
}
func (m *CacheForDutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CacheForDutResponse.Marshal(b, m, deterministic)
}
func (m *CacheForDutResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CacheForDutResponse.Merge(m, src)
}
func (m *CacheForDutResponse) XXX_Size() int {
return xxx_messageInfo_CacheForDutResponse.Size(m)
}
func (m *CacheForDutResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CacheForDutResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CacheForDutResponse proto.InternalMessageInfo
func (m *CacheForDutResponse) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
type CacheForDutMetadata struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CacheForDutMetadata) Reset() { *m = CacheForDutMetadata{} }
func (m *CacheForDutMetadata) String() string { return proto.CompactTextString(m) }
func (*CacheForDutMetadata) ProtoMessage() {}
func (*CacheForDutMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{9}
}
func (m *CacheForDutMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CacheForDutMetadata.Unmarshal(m, b)
}
func (m *CacheForDutMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CacheForDutMetadata.Marshal(b, m, deterministic)
}
func (m *CacheForDutMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_CacheForDutMetadata.Merge(m, src)
}
func (m *CacheForDutMetadata) XXX_Size() int {
return xxx_messageInfo_CacheForDutMetadata.Size(m)
}
func (m *CacheForDutMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_CacheForDutMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_CacheForDutMetadata proto.InternalMessageInfo
type CallServoRequest struct {
Dut string `protobuf:"bytes,1,opt,name=dut,proto3" json:"dut,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
Args []*xmlrpc.Value `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CallServoRequest) Reset() { *m = CallServoRequest{} }
func (m *CallServoRequest) String() string { return proto.CompactTextString(m) }
func (*CallServoRequest) ProtoMessage() {}
func (*CallServoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{10}
}
func (m *CallServoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CallServoRequest.Unmarshal(m, b)
}
func (m *CallServoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CallServoRequest.Marshal(b, m, deterministic)
}
func (m *CallServoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CallServoRequest.Merge(m, src)
}
func (m *CallServoRequest) XXX_Size() int {
return xxx_messageInfo_CallServoRequest.Size(m)
}
func (m *CallServoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CallServoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CallServoRequest proto.InternalMessageInfo
func (m *CallServoRequest) GetDut() string {
if m != nil {
return m.Dut
}
return ""
}
func (m *CallServoRequest) GetMethod() string {
if m != nil {
return m.Method
}
return ""
}
func (m *CallServoRequest) GetArgs() []*xmlrpc.Value {
if m != nil {
return m.Args
}
return nil
}
type CallServoResponse struct {
Value *xmlrpc.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// fault indicates that the servo XML-RPC returned a fault.
// The fault value is stored in the value field.
Fault bool `protobuf:"varint,2,opt,name=fault,proto3" json:"fault,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CallServoResponse) Reset() { *m = CallServoResponse{} }
func (m *CallServoResponse) String() string { return proto.CompactTextString(m) }
func (*CallServoResponse) ProtoMessage() {}
func (*CallServoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{11}
}
func (m *CallServoResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CallServoResponse.Unmarshal(m, b)
}
func (m *CallServoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CallServoResponse.Marshal(b, m, deterministic)
}
func (m *CallServoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CallServoResponse.Merge(m, src)
}
func (m *CallServoResponse) XXX_Size() int {
return xxx_messageInfo_CallServoResponse.Size(m)
}
func (m *CallServoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CallServoResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CallServoResponse proto.InternalMessageInfo
func (m *CallServoResponse) GetValue() *xmlrpc.Value {
if m != nil {
return m.Value
}
return nil
}
func (m *CallServoResponse) GetFault() bool {
if m != nil {
return m.Fault
}
return false
}
type ExposePortToDutRequest struct {
// dut_name is the resource name for the DUT.
// The DUT name is passed to the RTD when the RTD is started.
// It is not specified whether the name is the DUT hostname.
// (-- aip.dev/not-precedent: This preceded the AIP standards.
// Ordinarily, this field should be either `name` or `dut`,
// depending on whether this is a method on Dut resources. --)
DutName string `protobuf:"bytes,1,opt,name=dut_name,json=dutName,proto3" json:"dut_name,omitempty"`
// local_port is the port of a service running inside the RTD container to
// expose. It MUST be in the range of [1, 65535] as defined in RFC 1700
// (http://https://tools.ietf.org/html/rfc1700).
// A client MAY bind to the special port number "0" from inside an RTD to get
// an OS assigned free port number without race condition. Then the client
// MUST get the real port number assigned and pass it to "local_port" here.
LocalPort int32 `protobuf:"varint,2,opt,name=local_port,json=localPort,proto3" json:"local_port,omitempty"`
// require_remote_proxy indicates if the implementation SHOULD use a DUT
// reachable server as a proxy and return the address and port of the proxy
// server.
// If require_remote_proxy is set, the exposed port SHOULD persist across DUT
// reboots.
// If require_remote_proxy is set but an implementation cannot provide a
// remote proxy, the implementation SHOULD return FAILED_PRECONDITION.
// If require_remote_proxy is not set, the implementation MAY expose a port
// that cannot persist across DUT reboots.
// If require_remote_proxy is not set, the implementation MAY use 'localhost'
// as the exposed address.
RequireRemoteProxy bool `protobuf:"varint,3,opt,name=require_remote_proxy,json=requireRemoteProxy,proto3" json:"require_remote_proxy,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExposePortToDutRequest) Reset() { *m = ExposePortToDutRequest{} }
func (m *ExposePortToDutRequest) String() string { return proto.CompactTextString(m) }
func (*ExposePortToDutRequest) ProtoMessage() {}
func (*ExposePortToDutRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{12}
}
func (m *ExposePortToDutRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExposePortToDutRequest.Unmarshal(m, b)
}
func (m *ExposePortToDutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExposePortToDutRequest.Marshal(b, m, deterministic)
}
func (m *ExposePortToDutRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExposePortToDutRequest.Merge(m, src)
}
func (m *ExposePortToDutRequest) XXX_Size() int {
return xxx_messageInfo_ExposePortToDutRequest.Size(m)
}
func (m *ExposePortToDutRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ExposePortToDutRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ExposePortToDutRequest proto.InternalMessageInfo
func (m *ExposePortToDutRequest) GetDutName() string {
if m != nil {
return m.DutName
}
return ""
}
func (m *ExposePortToDutRequest) GetLocalPort() int32 {
if m != nil {
return m.LocalPort
}
return 0
}
func (m *ExposePortToDutRequest) GetRequireRemoteProxy() bool {
if m != nil {
return m.RequireRemoteProxy
}
return false
}
type ExposePortToDutResponse struct {
// exposed_address is the address reachable by the requesting DUT.
// TLEs SHOULD return an IPv4 or IPv6 address to avoid name resolution
// issues.
// IPv4 addresses MUST be in standard dotted decimal notation.
// IPv6 addresses MUST be formatted according to RFC4291, Section 2.2. The
// mixed IPv4 and IPv6 form MUST NOT be used.
// If TLEs return a hostname, they SHOULD ensure that the hostname can be
// resolved by the DUT via standard name resolution facilities.
ExposedAddress string `protobuf:"bytes,1,opt,name=exposed_address,json=exposedAddress,proto3" json:"exposed_address,omitempty"`
// exposed_port is the port on the exposed_address which is reachable from
// the DUT.
ExposedPort int32 `protobuf:"varint,2,opt,name=exposed_port,json=exposedPort,proto3" json:"exposed_port,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExposePortToDutResponse) Reset() { *m = ExposePortToDutResponse{} }
func (m *ExposePortToDutResponse) String() string { return proto.CompactTextString(m) }
func (*ExposePortToDutResponse) ProtoMessage() {}
func (*ExposePortToDutResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_64c10ff2acf3a7b5, []int{13}
}
func (m *ExposePortToDutResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExposePortToDutResponse.Unmarshal(m, b)
}
func (m *ExposePortToDutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExposePortToDutResponse.Marshal(b, m, deterministic)
}
func (m *ExposePortToDutResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExposePortToDutResponse.Merge(m, src)
}
func (m *ExposePortToDutResponse) XXX_Size() int {
return xxx_messageInfo_ExposePortToDutResponse.Size(m)
}
func (m *ExposePortToDutResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ExposePortToDutResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ExposePortToDutResponse proto.InternalMessageInfo
func (m *ExposePortToDutResponse) GetExposedAddress() string {
if m != nil {
return m.ExposedAddress
}
return ""
}
func (m *ExposePortToDutResponse) GetExposedPort() int32 {
if m != nil {
return m.ExposedPort
}
return 0
}
func init() {
proto.RegisterEnum("chromiumos.config.api.test.tls.License_Type", License_Type_name, License_Type_value)
proto.RegisterEnum("chromiumos.config.api.test.tls.SetDutPowerSupplyRequest_State", SetDutPowerSupplyRequest_State_name, SetDutPowerSupplyRequest_State_value)
proto.RegisterEnum("chromiumos.config.api.test.tls.SetDutPowerSupplyResponse_Status", SetDutPowerSupplyResponse_Status_name, SetDutPowerSupplyResponse_Status_value)
proto.RegisterType((*GetDutRequest)(nil), "chromiumos.config.api.test.tls.GetDutRequest")
proto.RegisterType((*Dut)(nil), "chromiumos.config.api.test.tls.Dut")
proto.RegisterType((*License)(nil), "chromiumos.config.api.test.tls.License")
proto.RegisterType((*OpenDutPortRequest)(nil), "chromiumos.config.api.test.tls.OpenDutPortRequest")
proto.RegisterType((*OpenDutPortResponse)(nil), "chromiumos.config.api.test.tls.OpenDutPortResponse")
proto.RegisterType((*SetDutPowerSupplyRequest)(nil), "chromiumos.config.api.test.tls.SetDutPowerSupplyRequest")
proto.RegisterType((*SetDutPowerSupplyResponse)(nil), "chromiumos.config.api.test.tls.SetDutPowerSupplyResponse")
proto.RegisterType((*CacheForDutRequest)(nil), "chromiumos.config.api.test.tls.CacheForDutRequest")
proto.RegisterType((*CacheForDutResponse)(nil), "chromiumos.config.api.test.tls.CacheForDutResponse")
proto.RegisterType((*CacheForDutMetadata)(nil), "chromiumos.config.api.test.tls.CacheForDutMetadata")
proto.RegisterType((*CallServoRequest)(nil), "chromiumos.config.api.test.tls.CallServoRequest")
proto.RegisterType((*CallServoResponse)(nil), "chromiumos.config.api.test.tls.CallServoResponse")
proto.RegisterType((*ExposePortToDutRequest)(nil), "chromiumos.config.api.test.tls.ExposePortToDutRequest")
proto.RegisterType((*ExposePortToDutResponse)(nil), "chromiumos.config.api.test.tls.ExposePortToDutResponse")
}
func init() {
proto.RegisterFile("chromiumos/config/api/test/tls/wiring.proto", fileDescriptor_64c10ff2acf3a7b5)
}
var fileDescriptor_64c10ff2acf3a7b5 = []byte{
// 963 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x72, 0xdb, 0x44,
0x14, 0xae, 0xfc, 0x97, 0xf8, 0xa4, 0x49, 0x95, 0x6d, 0x08, 0xae, 0x67, 0xca, 0x04, 0xf5, 0x22,
0x19, 0xa0, 0x72, 0xe2, 0xcc, 0x50, 0x98, 0xe9, 0x74, 0xea, 0xfa, 0x87, 0x66, 0x4a, 0x6c, 0xb3,
0x92, 0x09, 0x30, 0x0c, 0x1a, 0x61, 0x6d, 0x15, 0xcd, 0xc8, 0x5a, 0x75, 0xb5, 0x4a, 0x13, 0xae,
0x18, 0x86, 0x0b, 0xee, 0xe0, 0x35, 0x78, 0x06, 0xde, 0x80, 0xc7, 0xe1, 0x09, 0x98, 0x5d, 0xad,
0x83, 0x8c, 0x9d, 0xb8, 0xc9, 0x95, 0x74, 0xce, 0x9e, 0xf3, 0x9d, 0xb3, 0x9f, 0xf6, 0x3b, 0x2b,
0xf8, 0x78, 0x7c, 0xca, 0xe8, 0x24, 0x48, 0x27, 0x34, 0x69, 0x8c, 0x69, 0xf4, 0x3a, 0xf0, 0x1b,
0x6e, 0x1c, 0x34, 0x38, 0x49, 0x78, 0x83, 0x87, 0x49, 0xe3, 0x6d, 0xc0, 0x82, 0xc8, 0x37, 0x63,
0x46, 0x39, 0x45, 0x1f, 0xfc, 0x17, 0x6c, 0x66, 0xc1, 0xa6, 0x1b, 0x07, 0xa6, 0x08, 0x36, 0x79,
0x98, 0xd4, 0x5f, 0x2e, 0x01,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c5, 0x50, 0xbd, 0x94, 0x15, 0xda, 0x5f, 0xde,
0xce, 0xac, 0xfa, 0xeb, 0x07, 0x37, 0xc8, 0x50, 0x6d, 0xfc, 0xa2, 0xc1, 0xbd, 0xff, 0x9d, 0x6b,
0xf4, 0xe9, 0x32, 0x98, 0xc5, 0x72, 0xac, 0x3f, 0xb9, 0x71, 0x5e, 0xd6, 0xc4, 0x8b, 0xc3, 0xef,
0x0e, 0x7c, 0x7a, 0x99, 0x6c, 0x52, 0xe6, 0x37, 0xe6, 0xff, 0x89, 0x7c, 0x3a, 0xf3, 0x83, 0xf5,
0x63, 0x45, 0xfe, 0x0d, 0x1d, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x46, 0xdc, 0x57, 0x68, 0xd6,
0x09, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// WiringClient is the client API for Wiring service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type WiringClient interface {
// GetDut gets a DUT resource, which contains various information
// about a DUT.
GetDut(ctx context.Context, in *GetDutRequest, opts ...grpc.CallOption) (*Dut, error)
// Open a port on the DUT and return an address which the client can
// use to connect to the port on the DUT.
// The TLE SHOULD attempt to keep this address-to-port connection open for
// the duration of the RTD's runtime.
// The connection is not restarted if it is interrupted.
//
// If the connection from a previous call with the same arguments is
// still open, this RPC SHOULD do nothing and return the same
// response.
// If the previous connection was closed, the implementation SHOULD
// attempt to rebind and return the same address.
// If the implementation lost and cannot reobtain the previous
// address, it MAY return a new address.
//
// This RPC does NOT ensure that there is a service running on the
// DUT for the given port.
// A service running on the given port MUST NOT required for this RPC
// to succeed.
// It is not specified whether this RPC will open the given port in
// the DUT's firewall, if the DUT has a firewall.
OpenDutPort(ctx context.Context, in *OpenDutPortRequest, opts ...grpc.CallOption) (*OpenDutPortResponse, error)
// SetDutPowerSupply sets the connected power state for the DUT. It is
// the caller's responsibility to wait for the effects of the call
// to propagate, e.g. waiting in between calls to set the power OFF
// and ON.
//
// EXPERIMENTAL
SetDutPowerSupply(ctx context.Context, in *SetDutPowerSupplyRequest, opts ...grpc.CallOption) (*SetDutPowerSupplyResponse, error)
// CacheForDut caches some data to be accessible for the DUT.
// This will be made available to the DUT via a returned URL.
// The implementation MUST ensure the returned URL is usable at least for the
// lifetime of the RTD invocation.
CacheForDut(ctx context.Context, in *CacheForDutRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
// CallServo performs an XML-RPC call against the servod for
// the servo connected to a DUT.
//
// The implementation, not the caller, ensures that there is a
// running servod instance for the DUT's servo, or is otherwise able
// to provide identical functionality.
//
// This RPC mirrors the XML-RPC specification (http://xmlrpc.com/spec.md).
CallServo(ctx context.Context, in *CallServoRequest, opts ...grpc.CallOption) (*CallServoResponse, error)
// ExposePortToDut exposes an RTD port to the specified DUT.
//
// The TLE SHOULD attempt to keep this address-to-port connection open for
// the duration of the RTD's runtime.
// The connection is not restarted if it is interrupted.
// By default, the implementation MAY expose a port that cannot persist
// across DUT reboots.
// By default, the implementation MAY use 'localhost' as the exposed address.
ExposePortToDut(ctx context.Context, in *ExposePortToDutRequest, opts ...grpc.CallOption) (*ExposePortToDutResponse, error)
}
type wiringClient struct {
cc *grpc.ClientConn
}
func NewWiringClient(cc *grpc.ClientConn) WiringClient {
return &wiringClient{cc}
}
func (c *wiringClient) GetDut(ctx context.Context, in *GetDutRequest, opts ...grpc.CallOption) (*Dut, error) {
out := new(Dut)
err := c.cc.Invoke(ctx, "/chromiumos.config.api.test.tls.Wiring/GetDut", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *wiringClient) OpenDutPort(ctx context.Context, in *OpenDutPortRequest, opts ...grpc.CallOption) (*OpenDutPortResponse, error) {
out := new(OpenDutPortResponse)
err := c.cc.Invoke(ctx, "/chromiumos.config.api.test.tls.Wiring/OpenDutPort", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *wiringClient) SetDutPowerSupply(ctx context.Context, in *SetDutPowerSupplyRequest, opts ...grpc.CallOption) (*SetDutPowerSupplyResponse, error) {
out := new(SetDutPowerSupplyResponse)
err := c.cc.Invoke(ctx, "/chromiumos.config.api.test.tls.Wiring/SetDutPowerSupply", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *wiringClient) CacheForDut(ctx context.Context, in *CacheForDutRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
out := new(longrunning.Operation)
err := c.cc.Invoke(ctx, "/chromiumos.config.api.test.tls.Wiring/CacheForDut", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *wiringClient) CallServo(ctx context.Context, in *CallServoRequest, opts ...grpc.CallOption) (*CallServoResponse, error) {
out := new(CallServoResponse)
err := c.cc.Invoke(ctx, "/chromiumos.config.api.test.tls.Wiring/CallServo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *wiringClient) ExposePortToDut(ctx context.Context, in *ExposePortToDutRequest, opts ...grpc.CallOption) (*ExposePortToDutResponse, error) {
out := new(ExposePortToDutResponse)
err := c.cc.Invoke(ctx, "/chromiumos.config.api.test.tls.Wiring/ExposePortToDut", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// WiringServer is the server API for Wiring service.
type WiringServer interface {
// GetDut gets a DUT resource, which contains various information
// about a DUT.
GetDut(context.Context, *GetDutRequest) (*Dut, error)
// Open a port on the DUT and return an address which the client can
// use to connect to the port on the DUT.
// The TLE SHOULD attempt to keep this address-to-port connection open for
// the duration of the RTD's runtime.
// The connection is not restarted if it is interrupted.
//
// If the connection from a previous call with the same arguments is
// still open, this RPC SHOULD do nothing and return the same
// response.
// If the previous connection was closed, the implementation SHOULD
// attempt to rebind and return the same address.
// If the implementation lost and cannot reobtain the previous
// address, it MAY return a new address.
//
// This RPC does NOT ensure that there is a service running on the
// DUT for the given port.
// A service running on the given port MUST NOT required for this RPC
// to succeed.
// It is not specified whether this RPC will open the given port in
// the DUT's firewall, if the DUT has a firewall.
OpenDutPort(context.Context, *OpenDutPortRequest) (*OpenDutPortResponse, error)
// SetDutPowerSupply sets the connected power state for the DUT. It is
// the caller's responsibility to wait for the effects of the call
// to propagate, e.g. waiting in between calls to set the power OFF
// and ON.
//
// EXPERIMENTAL
SetDutPowerSupply(context.Context, *SetDutPowerSupplyRequest) (*SetDutPowerSupplyResponse, error)
// CacheForDut caches some data to be accessible for the DUT.
// This will be made available to the DUT via a returned URL.
// The implementation MUST ensure the returned URL is usable at least for the
// lifetime of the RTD invocation.
CacheForDut(context.Context, *CacheForDutRequest) (*longrunning.Operation, error)
// CallServo performs an XML-RPC call against the servod for
// the servo connected to a DUT.
//
// The implementation, not the caller, ensures that there is a
// running servod instance for the DUT's servo, or is otherwise able
// to provide identical functionality.
//
// This RPC mirrors the XML-RPC specification (http://xmlrpc.com/spec.md).
CallServo(context.Context, *CallServoRequest) (*CallServoResponse, error)
// ExposePortToDut exposes an RTD port to the specified DUT.
//
// The TLE SHOULD attempt to keep this address-to-port connection open for
// the duration of the RTD's runtime.
// The connection is not restarted if it is interrupted.
// By default, the implementation MAY expose a port that cannot persist
// across DUT reboots.
// By default, the implementation MAY use 'localhost' as the exposed address.
ExposePortToDut(context.Context, *ExposePortToDutRequest) (*ExposePortToDutResponse, error)
}
// UnimplementedWiringServer can be embedded to have forward compatible implementations.
type UnimplementedWiringServer struct {
}
func (*UnimplementedWiringServer) GetDut(ctx context.Context, req *GetDutRequest) (*Dut, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDut not implemented")
}
func (*UnimplementedWiringServer) OpenDutPort(ctx context.Context, req *OpenDutPortRequest) (*OpenDutPortResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method OpenDutPort not implemented")
}
func (*UnimplementedWiringServer) SetDutPowerSupply(ctx context.Context, req *SetDutPowerSupplyRequest) (*SetDutPowerSupplyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetDutPowerSupply not implemented")
}
func (*UnimplementedWiringServer) CacheForDut(ctx context.Context, req *CacheForDutRequest) (*longrunning.Operation, error) {
return nil, status.Errorf(codes.Unimplemented, "method CacheForDut not implemented")
}
func (*UnimplementedWiringServer) CallServo(ctx context.Context, req *CallServoRequest) (*CallServoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CallServo not implemented")
}
func (*UnimplementedWiringServer) ExposePortToDut(ctx context.Context, req *ExposePortToDutRequest) (*ExposePortToDutResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ExposePortToDut not implemented")
}
func RegisterWiringServer(s *grpc.Server, srv WiringServer) {
s.RegisterService(&_Wiring_serviceDesc, srv)
}
func _Wiring_GetDut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDutRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WiringServer).GetDut(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromiumos.config.api.test.tls.Wiring/GetDut",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WiringServer).GetDut(ctx, req.(*GetDutRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Wiring_OpenDutPort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OpenDutPortRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WiringServer).OpenDutPort(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromiumos.config.api.test.tls.Wiring/OpenDutPort",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WiringServer).OpenDutPort(ctx, req.(*OpenDutPortRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Wiring_SetDutPowerSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetDutPowerSupplyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WiringServer).SetDutPowerSupply(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromiumos.config.api.test.tls.Wiring/SetDutPowerSupply",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WiringServer).SetDutPowerSupply(ctx, req.(*SetDutPowerSupplyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Wiring_CacheForDut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CacheForDutRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WiringServer).CacheForDut(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromiumos.config.api.test.tls.Wiring/CacheForDut",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WiringServer).CacheForDut(ctx, req.(*CacheForDutRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Wiring_CallServo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CallServoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WiringServer).CallServo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromiumos.config.api.test.tls.Wiring/CallServo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WiringServer).CallServo(ctx, req.(*CallServoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Wiring_ExposePortToDut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ExposePortToDutRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WiringServer).ExposePortToDut(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromiumos.config.api.test.tls.Wiring/ExposePortToDut",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WiringServer).ExposePortToDut(ctx, req.(*ExposePortToDutRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Wiring_serviceDesc = grpc.ServiceDesc{
ServiceName: "chromiumos.config.api.test.tls.Wiring",
HandlerType: (*WiringServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetDut",
Handler: _Wiring_GetDut_Handler,
},
{
MethodName: "OpenDutPort",
Handler: _Wiring_OpenDutPort_Handler,
},
{
MethodName: "SetDutPowerSupply",
Handler: _Wiring_SetDutPowerSupply_Handler,
},
{
MethodName: "CacheForDut",
Handler: _Wiring_CacheForDut_Handler,
},
{
MethodName: "CallServo",
Handler: _Wiring_CallServo_Handler,
},
{
MethodName: "ExposePortToDut",
Handler: _Wiring_ExposePortToDut_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "chromiumos/config/api/test/tls/wiring.proto",
}