blob: 4cc76e085b7f990825849df6834ddbfc49b27e2a [file] [log] [blame]
William Kurkian1b363f42019-03-12 15:28:12 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/adapter.proto
3
William Kurkianad745652019-03-20 08:45:51 -04004package voltha
William Kurkian1b363f42019-03-12 15:28:12 -04005
William Kurkianad745652019-03-20 08:45:51 -04006import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 any "github.com/golang/protobuf/ptypes/any"
Kent Hagerman801796c2019-12-16 15:07:50 -050010 timestamp "github.com/golang/protobuf/ptypes/timestamp"
divyadesaid11cf312020-02-26 12:23:31 +000011 _ "github.com/opencord/voltha-protos/v3/go/common"
William Kurkianad745652019-03-20 08:45:51 -040012 math "math"
13)
William Kurkian1b363f42019-03-12 15:28:12 -040014
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = math.Inf
19
20// This is a compile-time assertion to ensure that this generated file
21// is compatible with the proto package it is being compiled against.
22// A compilation error at this line likely means your copy of the
23// proto package needs to be updated.
William Kurkianad745652019-03-20 08:45:51 -040024const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
William Kurkian1b363f42019-03-12 15:28:12 -040025
26type AdapterConfig struct {
William Kurkian1b363f42019-03-12 15:28:12 -040027 // Custom (vendor-specific) configuration attributes
28 AdditionalConfig *any.Any `protobuf:"bytes,64,opt,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty"`
29 XXX_NoUnkeyedLiteral struct{} `json:"-"`
30 XXX_unrecognized []byte `json:"-"`
31 XXX_sizecache int32 `json:"-"`
32}
33
34func (m *AdapterConfig) Reset() { *m = AdapterConfig{} }
35func (m *AdapterConfig) String() string { return proto.CompactTextString(m) }
36func (*AdapterConfig) ProtoMessage() {}
37func (*AdapterConfig) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -040038 return fileDescriptor_7e998ce153307274, []int{0}
William Kurkian1b363f42019-03-12 15:28:12 -040039}
William Kurkianad745652019-03-20 08:45:51 -040040
William Kurkian1b363f42019-03-12 15:28:12 -040041func (m *AdapterConfig) XXX_Unmarshal(b []byte) error {
42 return xxx_messageInfo_AdapterConfig.Unmarshal(m, b)
43}
44func (m *AdapterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
45 return xxx_messageInfo_AdapterConfig.Marshal(b, m, deterministic)
46}
William Kurkianad745652019-03-20 08:45:51 -040047func (m *AdapterConfig) XXX_Merge(src proto.Message) {
48 xxx_messageInfo_AdapterConfig.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -040049}
50func (m *AdapterConfig) XXX_Size() int {
51 return xxx_messageInfo_AdapterConfig.Size(m)
52}
53func (m *AdapterConfig) XXX_DiscardUnknown() {
54 xxx_messageInfo_AdapterConfig.DiscardUnknown(m)
55}
56
57var xxx_messageInfo_AdapterConfig proto.InternalMessageInfo
58
William Kurkian1b363f42019-03-12 15:28:12 -040059func (m *AdapterConfig) GetAdditionalConfig() *any.Any {
60 if m != nil {
61 return m.AdditionalConfig
62 }
63 return nil
64}
65
66// Adapter (software plugin)
67type Adapter struct {
68 // Unique name of adapter, matching the python package name under
69 // voltha/adapters.
70 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
71 Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"`
72 Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
73 // Adapter configuration
74 Config *AdapterConfig `protobuf:"bytes,16,opt,name=config,proto3" json:"config,omitempty"`
75 // Custom descriptors and custom configuration
76 AdditionalDescription *any.Any `protobuf:"bytes,64,opt,name=additional_description,json=additionalDescription,proto3" json:"additional_description,omitempty"`
77 LogicalDeviceIds []string `protobuf:"bytes,4,rep,name=logical_device_ids,json=logicalDeviceIds,proto3" json:"logical_device_ids,omitempty"`
Kent Hagerman801796c2019-12-16 15:07:50 -050078 // timestamp when the adapter last sent a message to the core
79 LastCommunication *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_communication,json=lastCommunication,proto3" json:"last_communication,omitempty"`
80 XXX_NoUnkeyedLiteral struct{} `json:"-"`
81 XXX_unrecognized []byte `json:"-"`
82 XXX_sizecache int32 `json:"-"`
William Kurkian1b363f42019-03-12 15:28:12 -040083}
84
85func (m *Adapter) Reset() { *m = Adapter{} }
86func (m *Adapter) String() string { return proto.CompactTextString(m) }
87func (*Adapter) ProtoMessage() {}
88func (*Adapter) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -040089 return fileDescriptor_7e998ce153307274, []int{1}
William Kurkian1b363f42019-03-12 15:28:12 -040090}
William Kurkianad745652019-03-20 08:45:51 -040091
William Kurkian1b363f42019-03-12 15:28:12 -040092func (m *Adapter) XXX_Unmarshal(b []byte) error {
93 return xxx_messageInfo_Adapter.Unmarshal(m, b)
94}
95func (m *Adapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
96 return xxx_messageInfo_Adapter.Marshal(b, m, deterministic)
97}
William Kurkianad745652019-03-20 08:45:51 -040098func (m *Adapter) XXX_Merge(src proto.Message) {
99 xxx_messageInfo_Adapter.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400100}
101func (m *Adapter) XXX_Size() int {
102 return xxx_messageInfo_Adapter.Size(m)
103}
104func (m *Adapter) XXX_DiscardUnknown() {
105 xxx_messageInfo_Adapter.DiscardUnknown(m)
106}
107
108var xxx_messageInfo_Adapter proto.InternalMessageInfo
109
110func (m *Adapter) GetId() string {
111 if m != nil {
112 return m.Id
113 }
114 return ""
115}
116
117func (m *Adapter) GetVendor() string {
118 if m != nil {
119 return m.Vendor
120 }
121 return ""
122}
123
124func (m *Adapter) GetVersion() string {
125 if m != nil {
126 return m.Version
127 }
128 return ""
129}
130
131func (m *Adapter) GetConfig() *AdapterConfig {
132 if m != nil {
133 return m.Config
134 }
135 return nil
136}
137
138func (m *Adapter) GetAdditionalDescription() *any.Any {
139 if m != nil {
140 return m.AdditionalDescription
141 }
142 return nil
143}
144
145func (m *Adapter) GetLogicalDeviceIds() []string {
146 if m != nil {
147 return m.LogicalDeviceIds
148 }
149 return nil
150}
151
Kent Hagerman801796c2019-12-16 15:07:50 -0500152func (m *Adapter) GetLastCommunication() *timestamp.Timestamp {
153 if m != nil {
154 return m.LastCommunication
155 }
156 return nil
157}
158
William Kurkian1b363f42019-03-12 15:28:12 -0400159type Adapters struct {
160 Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
161 XXX_NoUnkeyedLiteral struct{} `json:"-"`
162 XXX_unrecognized []byte `json:"-"`
163 XXX_sizecache int32 `json:"-"`
164}
165
166func (m *Adapters) Reset() { *m = Adapters{} }
167func (m *Adapters) String() string { return proto.CompactTextString(m) }
168func (*Adapters) ProtoMessage() {}
169func (*Adapters) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400170 return fileDescriptor_7e998ce153307274, []int{2}
William Kurkian1b363f42019-03-12 15:28:12 -0400171}
William Kurkianad745652019-03-20 08:45:51 -0400172
William Kurkian1b363f42019-03-12 15:28:12 -0400173func (m *Adapters) XXX_Unmarshal(b []byte) error {
174 return xxx_messageInfo_Adapters.Unmarshal(m, b)
175}
176func (m *Adapters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
177 return xxx_messageInfo_Adapters.Marshal(b, m, deterministic)
178}
William Kurkianad745652019-03-20 08:45:51 -0400179func (m *Adapters) XXX_Merge(src proto.Message) {
180 xxx_messageInfo_Adapters.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400181}
182func (m *Adapters) XXX_Size() int {
183 return xxx_messageInfo_Adapters.Size(m)
184}
185func (m *Adapters) XXX_DiscardUnknown() {
186 xxx_messageInfo_Adapters.DiscardUnknown(m)
187}
188
189var xxx_messageInfo_Adapters proto.InternalMessageInfo
190
191func (m *Adapters) GetItems() []*Adapter {
192 if m != nil {
193 return m.Items
194 }
195 return nil
196}
197
198func init() {
199 proto.RegisterType((*AdapterConfig)(nil), "voltha.AdapterConfig")
200 proto.RegisterType((*Adapter)(nil), "voltha.Adapter")
201 proto.RegisterType((*Adapters)(nil), "voltha.Adapters")
202}
203
William Kurkianad745652019-03-20 08:45:51 -0400204func init() { proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_7e998ce153307274) }
William Kurkian1b363f42019-03-12 15:28:12 -0400205
William Kurkianad745652019-03-20 08:45:51 -0400206var fileDescriptor_7e998ce153307274 = []byte{
divyadesaid11cf312020-02-26 12:23:31 +0000207 // 405 bytes of a gzipped FileDescriptorProto
208 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xd1, 0x6a, 0xdb, 0x30,
209 0x14, 0x86, 0x71, 0xb2, 0xb8, 0xab, 0x4a, 0x59, 0xaa, 0x2d, 0xc3, 0xf3, 0x28, 0x35, 0x81, 0x81,
210 0x2f, 0x56, 0x99, 0xb5, 0x2f, 0xb0, 0xa4, 0xbd, 0xe9, 0xad, 0x28, 0xbb, 0xd8, 0x8d, 0x51, 0x24,
211 0xd5, 0x15, 0xd8, 0x3a, 0xc6, 0x52, 0x0c, 0x7d, 0xc8, 0xbd, 0xc1, 0x1e, 0x60, 0x4f, 0xb0, 0xeb,
212 0x11, 0x49, 0x26, 0x4e, 0x06, 0xbd, 0x32, 0xfa, 0xbf, 0xff, 0xfc, 0xe7, 0x1c, 0xc9, 0xe8, 0x73,
213 0x0f, 0xb5, 0x7d, 0x66, 0x65, 0xdb, 0x81, 0x05, 0x53, 0x30, 0xc1, 0x5a, 0x2b, 0x3b, 0xe2, 0x8e,
214 0x38, 0xf6, 0x30, 0xfd, 0x54, 0x01, 0x54, 0xb5, 0x2c, 0x9c, 0xba, 0xd9, 0x3e, 0x15, 0x4c, 0xbf,
215 0x78, 0x4b, 0x9a, 0x1e, 0xd6, 0x73, 0x68, 0x1a, 0xd0, 0x81, 0x25, 0x87, 0xac, 0x91, 0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 0xee, 0x33, 0xd7, 0x3d, 0xfd, 0xaf, 0xfb, 0xe3, 0xf0, 0x4a, 0xf4, 0x62, 0x57, 0x75,
228 0x37, 0x2e, 0x5a, 0x7e, 0x43, 0x6f, 0xc3, 0x96, 0x06, 0x7f, 0x41, 0x33, 0x65, 0x65, 0x63, 0x92,
229 0x28, 0x9b, 0xe6, 0x67, 0x37, 0xef, 0x8e, 0xae, 0x81, 0x7a, 0xba, 0x7e, 0x44, 0xef, 0xa1, 0xab,
230 0x08, 0xb4, 0x52, 0x73, 0xe8, 0x44, 0x70, 0xad, 0xcf, 0x7f, 0xb8, 0x6f, 0x30, 0xff, 0x24, 0x95,
231 0xb2, 0xcf, 0xdb, 0x0d, 0xe1, 0xd0, 0x14, 0x83, 0xb5, 0xf0, 0xd6, 0xeb, 0xf0, 0x6b, 0xf5, 0xb7,
232 0x45, 0x05, 0x41, 0xdb, 0xc4, 0x4e, 0xbc, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, 0x4e, 0xc5, 0xdf,
233 0x09, 0xdb, 0x02, 0x00, 0x00,
William Kurkian1b363f42019-03-12 15:28:12 -0400234}