blob: 3249b594982fb730f78449cd082398fe5996b8d6 [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"`
Matteo Scandoloae3f4182020-03-30 13:09:09 -070080 CurrentReplica int32 `protobuf:"varint,6,opt,name=currentReplica,proto3" json:"currentReplica,omitempty"`
81 TotalReplicas int32 `protobuf:"varint,7,opt,name=totalReplicas,proto3" json:"totalReplicas,omitempty"`
82 Endpoint string `protobuf:"bytes,8,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
Kent Hagerman801796c2019-12-16 15:07:50 -050083 XXX_NoUnkeyedLiteral struct{} `json:"-"`
84 XXX_unrecognized []byte `json:"-"`
85 XXX_sizecache int32 `json:"-"`
William Kurkian1b363f42019-03-12 15:28:12 -040086}
87
88func (m *Adapter) Reset() { *m = Adapter{} }
89func (m *Adapter) String() string { return proto.CompactTextString(m) }
90func (*Adapter) ProtoMessage() {}
91func (*Adapter) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -040092 return fileDescriptor_7e998ce153307274, []int{1}
William Kurkian1b363f42019-03-12 15:28:12 -040093}
William Kurkianad745652019-03-20 08:45:51 -040094
William Kurkian1b363f42019-03-12 15:28:12 -040095func (m *Adapter) XXX_Unmarshal(b []byte) error {
96 return xxx_messageInfo_Adapter.Unmarshal(m, b)
97}
98func (m *Adapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
99 return xxx_messageInfo_Adapter.Marshal(b, m, deterministic)
100}
William Kurkianad745652019-03-20 08:45:51 -0400101func (m *Adapter) XXX_Merge(src proto.Message) {
102 xxx_messageInfo_Adapter.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400103}
104func (m *Adapter) XXX_Size() int {
105 return xxx_messageInfo_Adapter.Size(m)
106}
107func (m *Adapter) XXX_DiscardUnknown() {
108 xxx_messageInfo_Adapter.DiscardUnknown(m)
109}
110
111var xxx_messageInfo_Adapter proto.InternalMessageInfo
112
113func (m *Adapter) GetId() string {
114 if m != nil {
115 return m.Id
116 }
117 return ""
118}
119
120func (m *Adapter) GetVendor() string {
121 if m != nil {
122 return m.Vendor
123 }
124 return ""
125}
126
127func (m *Adapter) GetVersion() string {
128 if m != nil {
129 return m.Version
130 }
131 return ""
132}
133
134func (m *Adapter) GetConfig() *AdapterConfig {
135 if m != nil {
136 return m.Config
137 }
138 return nil
139}
140
141func (m *Adapter) GetAdditionalDescription() *any.Any {
142 if m != nil {
143 return m.AdditionalDescription
144 }
145 return nil
146}
147
148func (m *Adapter) GetLogicalDeviceIds() []string {
149 if m != nil {
150 return m.LogicalDeviceIds
151 }
152 return nil
153}
154
Kent Hagerman801796c2019-12-16 15:07:50 -0500155func (m *Adapter) GetLastCommunication() *timestamp.Timestamp {
156 if m != nil {
157 return m.LastCommunication
158 }
159 return nil
160}
161
Matteo Scandoloae3f4182020-03-30 13:09:09 -0700162func (m *Adapter) GetCurrentReplica() int32 {
163 if m != nil {
164 return m.CurrentReplica
165 }
166 return 0
167}
168
169func (m *Adapter) GetTotalReplicas() int32 {
170 if m != nil {
171 return m.TotalReplicas
172 }
173 return 0
174}
175
176func (m *Adapter) GetEndpoint() string {
177 if m != nil {
178 return m.Endpoint
179 }
180 return ""
181}
182
William Kurkian1b363f42019-03-12 15:28:12 -0400183type Adapters struct {
184 Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
185 XXX_NoUnkeyedLiteral struct{} `json:"-"`
186 XXX_unrecognized []byte `json:"-"`
187 XXX_sizecache int32 `json:"-"`
188}
189
190func (m *Adapters) Reset() { *m = Adapters{} }
191func (m *Adapters) String() string { return proto.CompactTextString(m) }
192func (*Adapters) ProtoMessage() {}
193func (*Adapters) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400194 return fileDescriptor_7e998ce153307274, []int{2}
William Kurkian1b363f42019-03-12 15:28:12 -0400195}
William Kurkianad745652019-03-20 08:45:51 -0400196
William Kurkian1b363f42019-03-12 15:28:12 -0400197func (m *Adapters) XXX_Unmarshal(b []byte) error {
198 return xxx_messageInfo_Adapters.Unmarshal(m, b)
199}
200func (m *Adapters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
201 return xxx_messageInfo_Adapters.Marshal(b, m, deterministic)
202}
William Kurkianad745652019-03-20 08:45:51 -0400203func (m *Adapters) XXX_Merge(src proto.Message) {
204 xxx_messageInfo_Adapters.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400205}
206func (m *Adapters) XXX_Size() int {
207 return xxx_messageInfo_Adapters.Size(m)
208}
209func (m *Adapters) XXX_DiscardUnknown() {
210 xxx_messageInfo_Adapters.DiscardUnknown(m)
211}
212
213var xxx_messageInfo_Adapters proto.InternalMessageInfo
214
215func (m *Adapters) GetItems() []*Adapter {
216 if m != nil {
217 return m.Items
218 }
219 return nil
220}
221
222func init() {
223 proto.RegisterType((*AdapterConfig)(nil), "voltha.AdapterConfig")
224 proto.RegisterType((*Adapter)(nil), "voltha.Adapter")
225 proto.RegisterType((*Adapters)(nil), "voltha.Adapters")
226}
227
William Kurkianad745652019-03-20 08:45:51 -0400228func init() { proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_7e998ce153307274) }
William Kurkian1b363f42019-03-12 15:28:12 -0400229
William Kurkianad745652019-03-20 08:45:51 -0400230var fileDescriptor_7e998ce153307274 = []byte{
Matteo Scandoloae3f4182020-03-30 13:09:09 -0700231 // 450 bytes of a gzipped FileDescriptorProto
232 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0xcd, 0x6e, 0xd3, 0x30,
233 0x1c, 0x57, 0x56, 0x9a, 0x76, 0x9e, 0x0a, 0x9d, 0xa1, 0xc8, 0x04, 0x4d, 0x8b, 0x2a, 0x40, 0x39,
234 0xb0, 0x44, 0x6c, 0x2f, 0x40, 0xbb, 0x5d, 0x76, 0xb5, 0x26, 0x0e, 0x5c, 0x2a, 0xd7, 0xf6, 0x32,
235 0x4b, 0x89, 0xff, 0x51, 0xec, 0x46, 0xda, 0x0b, 0x72, 0xe3, 0x3d, 0x78, 0x02, 0xce, 0xa8, 0xb6,
236 0x43, 0x3f, 0x90, 0x38, 0x45, 0xff, 0xdf, 0xd7, 0xff, 0xc3, 0x41, 0xef, 0x3b, 0xa8, 0xec, 0x13,
237 0x5b, 0x35, 0x2d, 0x58, 0x30, 0x05, 0x13, 0xac, 0xb1, 0xb2, 0xcd, 0x5d, 0x89, 0x63, 0x4f, 0x26,
238 0xef, 0x4a, 0x80, 0xb2, 0x92, 0x85, 0x43, 0xd7, 0x9b, 0xc7, 0x82, 0xe9, 0x67, 0x2f, 0x49, 0x92,
239 0x43, 0x3f, 0x87, 0xba, 0x06, 0x1d, 0x38, 0x72, 0xc8, 0xd5, 0xd2, 0xb2, 0xc0, 0x5c, 0x1e, 0x07,
240 0x5a, 0x55, 0x4b, 0x63, 0x59, 0xdd, 0x78, 0xc1, 0x9c, 0xa2, 0xc9, 0xc2, 0x8f, 0x72, 0x0b, 0xfa,
241 0x51, 0x95, 0x78, 0x81, 0xce, 0x99, 0x10, 0xca, 0x2a, 0xd0, 0xac, 0x5a, 0x71, 0x07, 0x92, 0xaf,
242 0x69, 0x94, 0x9d, 0x5d, 0xbf, 0xc9, 0x7d, 0x5a, 0xde, 0xa7, 0xe5, 0x0b, 0xfd, 0x4c, 0xa7, 0x3b,
243 0xb9, 0x8f, 0x98, 0xff, 0x18, 0xa0, 0x51, 0x08, 0xc5, 0x33, 0x74, 0xa2, 0x04, 0x89, 0xd2, 0x28,
244 0x3b, 0x5d, 0x0e, 0x7f, 0xfd, 0xfe, 0x79, 0x11, 0xd1, 0x13, 0x25, 0xf0, 0x05, 0x8a, 0x3b, 0xa9,
245 0x05, 0xb4, 0xe4, 0x64, 0x9f, 0x0a, 0x20, 0xbe, 0x44, 0xa3, 0x4e, 0xb6, 0x46, 0x81, 0x26, 0x83,
246 0x7d, 0xbe, 0x47, 0xf1, 0x15, 0x8a, 0xc3, 0x68, 0x53, 0x37, 0xda, 0x2c, 0xf7, 0x27, 0xc8, 0x0f,
247 0x96, 0xa1, 0x41, 0x84, 0x29, 0x7a, 0xbb, 0xb7, 0x94, 0x90, 0x86, 0xb7, 0xaa, 0xd9, 0x56, 0xff,
248 0xdb, 0xac, 0x6f, 0x3a, 0xdb, 0x59, 0xef, 0x76, 0x4e, 0xfc, 0x19, 0xe1, 0x0a, 0x4a, 0xc5, 0x5d,
249 0x60, 0xa7, 0xb8, 0x5c, 0x29, 0x61, 0xc8, 0x8b, 0x74, 0x90, 0x9d, 0xd2, 0x69, 0x60, 0xee, 0x1c,
250 0x71, 0x2f, 0x0c, 0xbe, 0x47, 0xb8, 0x62, 0xc6, 0xae, 0xb6, 0xef, 0xb6, 0xd1, 0x8a, 0x33, 0xd7,
251 0x7d, 0xe8, 0xba, 0x27, 0xff, 0x74, 0x7f, 0xe8, 0x5f, 0x89, 0x9e, 0x6f, 0x5d, 0xb7, 0xfb, 0x26,
252 0xfc, 0x09, 0xbd, 0xe4, 0x9b, 0xb6, 0x95, 0xda, 0x52, 0xd9, 0x54, 0x8a, 0x33, 0x12, 0xa7, 0x51,
253 0x36, 0xa4, 0x47, 0x28, 0xfe, 0x80, 0x26, 0x16, 0x2c, 0xab, 0x42, 0x6d, 0xc8, 0xc8, 0xc9, 0x0e,
254 0x41, 0x9c, 0xa0, 0xb1, 0xd4, 0xa2, 0x01, 0xa5, 0x2d, 0x19, 0x6f, 0x6f, 0x4d, 0xff, 0xd6, 0xf3,
255 0x2f, 0x68, 0x1c, 0xee, 0x69, 0xf0, 0x47, 0x34, 0x54, 0x56, 0xd6, 0x86, 0x44, 0xe9, 0x20, 0x3b,
256 0xbb, 0x7e, 0x75, 0x74, 0x70, 0xea, 0xd9, 0xe5, 0x03, 0x7a, 0x0d, 0x6d, 0x99, 0x43, 0x23, 0x35,
257 0x87, 0x56, 0x04, 0xd5, 0x72, 0xf2, 0xcd, 0x7d, 0x83, 0xf8, 0x7b, 0x5e, 0x2a, 0xfb, 0xb4, 0x59,
258 0xe7, 0x1c, 0xea, 0xa2, 0x97, 0x16, 0x5e, 0x7a, 0x15, 0x7e, 0xe2, 0xee, 0xa6, 0x28, 0x21, 0x60,
259 0xeb, 0xd8, 0x81, 0x37, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb6, 0xe4, 0x94, 0x8c, 0x45, 0x03,
260 0x00, 0x00,
William Kurkian1b363f42019-03-12 15:28:12 -0400261}