| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: test/fleet/v1/dut.proto |
| |
| package fleet |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| 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 |
| |
| // Fleet DeviceUnderTest is referenced in test plan specifications. |
| // See test/plan/v1/plan.proto |
| type DeviceUnderTest struct { |
| // Name identifying the device in the fleet. |
| // |
| // MUST be valid resource name per https://aip.dev/122. |
| // |
| // Pattern: duts/{dut} |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Configuration of scheduler options that apply to tasks that can execute on |
| // this DUT. |
| Scheduler *Scheduler `protobuf:"bytes,3,opt,name=scheduler,proto3" json:"scheduler,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *DeviceUnderTest) Reset() { *m = DeviceUnderTest{} } |
| func (m *DeviceUnderTest) String() string { return proto.CompactTextString(m) } |
| func (*DeviceUnderTest) ProtoMessage() {} |
| func (*DeviceUnderTest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_8fb9559b7923438a, []int{0} |
| } |
| |
| func (m *DeviceUnderTest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_DeviceUnderTest.Unmarshal(m, b) |
| } |
| func (m *DeviceUnderTest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_DeviceUnderTest.Marshal(b, m, deterministic) |
| } |
| func (m *DeviceUnderTest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_DeviceUnderTest.Merge(m, src) |
| } |
| func (m *DeviceUnderTest) XXX_Size() int { |
| return xxx_messageInfo_DeviceUnderTest.Size(m) |
| } |
| func (m *DeviceUnderTest) XXX_DiscardUnknown() { |
| xxx_messageInfo_DeviceUnderTest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_DeviceUnderTest proto.InternalMessageInfo |
| |
| func (m *DeviceUnderTest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *DeviceUnderTest) GetScheduler() *Scheduler { |
| if m != nil { |
| return m.Scheduler |
| } |
| return nil |
| } |
| |
| type Scheduler struct { |
| // The task scheduling pools this device may be used for. |
| // |
| // Historical note: The concept of managed pools (e.g.: DUT_POOL_CQ) was used |
| // for automatic balancing of healthy devices in critical pools. Due to |
| // merging of critical pools into a common scheduler pool, this auto-balancing |
| // service is no longer required. |
| // |
| // Old enum values are now serialized to the JSON encoding of those enums |
| // (e.g. "DUT_POOL_QUOTA"). |
| // See lab/device.proto:DeviceUnderTest::DutPool. |
| Pools []string `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Scheduler) Reset() { *m = Scheduler{} } |
| func (m *Scheduler) String() string { return proto.CompactTextString(m) } |
| func (*Scheduler) ProtoMessage() {} |
| func (*Scheduler) Descriptor() ([]byte, []int) { |
| return fileDescriptor_8fb9559b7923438a, []int{1} |
| } |
| |
| func (m *Scheduler) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Scheduler.Unmarshal(m, b) |
| } |
| func (m *Scheduler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Scheduler.Marshal(b, m, deterministic) |
| } |
| func (m *Scheduler) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Scheduler.Merge(m, src) |
| } |
| func (m *Scheduler) XXX_Size() int { |
| return xxx_messageInfo_Scheduler.Size(m) |
| } |
| func (m *Scheduler) XXX_DiscardUnknown() { |
| xxx_messageInfo_Scheduler.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Scheduler proto.InternalMessageInfo |
| |
| func (m *Scheduler) GetPools() []string { |
| if m != nil { |
| return m.Pools |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*DeviceUnderTest)(nil), "test.fleet.v1.DeviceUnderTest") |
| proto.RegisterType((*Scheduler)(nil), "test.fleet.v1.Scheduler") |
| } |
| |
| func init() { proto.RegisterFile("test/fleet/v1/dut.proto", fileDescriptor_8fb9559b7923438a) } |
| |
| var fileDescriptor_8fb9559b7923438a = []byte{ |
| // 205 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0xbb, 0x4b, 0xc7, 0x30, |
| 0x14, 0x85, 0x89, 0xfd, 0x55, 0x4c, 0x44, 0x94, 0x20, 0x98, 0xb1, 0x76, 0xea, 0x94, 0x4b, 0x15, |
| 0x5c, 0x44, 0x04, 0x71, 0x72, 0x8c, 0xba, 0xb8, 0xd5, 0xf6, 0xf6, 0x21, 0x6d, 0x6f, 0xc9, 0xa3, |
| 0x7f, 0xbf, 0x18, 0xa9, 0xd2, 0xed, 0x1c, 0xbe, 0xc3, 0x81, 0x4f, 0x5c, 0x79, 0x74, 0x1e, 0xda, |
| 0x11, 0xd1, 0xc3, 0x5a, 0x42, 0x13, 0xbc, 0x5e, 0x2c, 0x79, 0x92, 0x67, 0x3f, 0x40, 0x47, 0xa0, |
| 0xd7, 0x32, 0xff, 0x12, 0xe7, 0xcf, 0xb8, 0x0e, 0x35, 0xbe, 0xcf, 0x0d, 0xda, 0x37, 0x74, 0x5e, |
| 0x4a, 0x71, 0x98, 0xab, 0x09, 0x15, 0xcb, 0x58, 0xc1, 0x4d, 0xcc, 0xf2, 0x4e, 0x70, 0x57, 0xf7, |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