blob: 9359dc1bdef2c86f9076fb3b9dfb6ff6f555e9c3 [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 {
Matteo Scandolo1403e742020-04-06 11:38:40 -070068 // the adapter ID has to be unique,
69 // it will be generated as Type + CurrentReplica
William Kurkian1b363f42019-03-12 15:28:12 -040070 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
Matteo Scandolo1403e742020-04-06 11:38:40 -070079 LastCommunication *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_communication,json=lastCommunication,proto3" json:"last_communication,omitempty"`
80 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"`
83 // all replicas of the same adapter will have the same type
84 // it is used to associate a device to an adapter
85 Type string `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"`
86 XXX_NoUnkeyedLiteral struct{} `json:"-"`
87 XXX_unrecognized []byte `json:"-"`
88 XXX_sizecache int32 `json:"-"`
William Kurkian1b363f42019-03-12 15:28:12 -040089}
90
91func (m *Adapter) Reset() { *m = Adapter{} }
92func (m *Adapter) String() string { return proto.CompactTextString(m) }
93func (*Adapter) ProtoMessage() {}
94func (*Adapter) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -040095 return fileDescriptor_7e998ce153307274, []int{1}
William Kurkian1b363f42019-03-12 15:28:12 -040096}
William Kurkianad745652019-03-20 08:45:51 -040097
William Kurkian1b363f42019-03-12 15:28:12 -040098func (m *Adapter) XXX_Unmarshal(b []byte) error {
99 return xxx_messageInfo_Adapter.Unmarshal(m, b)
100}
101func (m *Adapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
102 return xxx_messageInfo_Adapter.Marshal(b, m, deterministic)
103}
William Kurkianad745652019-03-20 08:45:51 -0400104func (m *Adapter) XXX_Merge(src proto.Message) {
105 xxx_messageInfo_Adapter.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400106}
107func (m *Adapter) XXX_Size() int {
108 return xxx_messageInfo_Adapter.Size(m)
109}
110func (m *Adapter) XXX_DiscardUnknown() {
111 xxx_messageInfo_Adapter.DiscardUnknown(m)
112}
113
114var xxx_messageInfo_Adapter proto.InternalMessageInfo
115
116func (m *Adapter) GetId() string {
117 if m != nil {
118 return m.Id
119 }
120 return ""
121}
122
123func (m *Adapter) GetVendor() string {
124 if m != nil {
125 return m.Vendor
126 }
127 return ""
128}
129
130func (m *Adapter) GetVersion() string {
131 if m != nil {
132 return m.Version
133 }
134 return ""
135}
136
137func (m *Adapter) GetConfig() *AdapterConfig {
138 if m != nil {
139 return m.Config
140 }
141 return nil
142}
143
144func (m *Adapter) GetAdditionalDescription() *any.Any {
145 if m != nil {
146 return m.AdditionalDescription
147 }
148 return nil
149}
150
151func (m *Adapter) GetLogicalDeviceIds() []string {
152 if m != nil {
153 return m.LogicalDeviceIds
154 }
155 return nil
156}
157
Kent Hagerman801796c2019-12-16 15:07:50 -0500158func (m *Adapter) GetLastCommunication() *timestamp.Timestamp {
159 if m != nil {
160 return m.LastCommunication
161 }
162 return nil
163}
164
Matteo Scandoloae3f4182020-03-30 13:09:09 -0700165func (m *Adapter) GetCurrentReplica() int32 {
166 if m != nil {
167 return m.CurrentReplica
168 }
169 return 0
170}
171
172func (m *Adapter) GetTotalReplicas() int32 {
173 if m != nil {
174 return m.TotalReplicas
175 }
176 return 0
177}
178
179func (m *Adapter) GetEndpoint() string {
180 if m != nil {
181 return m.Endpoint
182 }
183 return ""
184}
185
Matteo Scandolo1403e742020-04-06 11:38:40 -0700186func (m *Adapter) GetType() string {
187 if m != nil {
188 return m.Type
189 }
190 return ""
191}
192
William Kurkian1b363f42019-03-12 15:28:12 -0400193type Adapters struct {
194 Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
195 XXX_NoUnkeyedLiteral struct{} `json:"-"`
196 XXX_unrecognized []byte `json:"-"`
197 XXX_sizecache int32 `json:"-"`
198}
199
200func (m *Adapters) Reset() { *m = Adapters{} }
201func (m *Adapters) String() string { return proto.CompactTextString(m) }
202func (*Adapters) ProtoMessage() {}
203func (*Adapters) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400204 return fileDescriptor_7e998ce153307274, []int{2}
William Kurkian1b363f42019-03-12 15:28:12 -0400205}
William Kurkianad745652019-03-20 08:45:51 -0400206
William Kurkian1b363f42019-03-12 15:28:12 -0400207func (m *Adapters) XXX_Unmarshal(b []byte) error {
208 return xxx_messageInfo_Adapters.Unmarshal(m, b)
209}
210func (m *Adapters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
211 return xxx_messageInfo_Adapters.Marshal(b, m, deterministic)
212}
William Kurkianad745652019-03-20 08:45:51 -0400213func (m *Adapters) XXX_Merge(src proto.Message) {
214 xxx_messageInfo_Adapters.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400215}
216func (m *Adapters) XXX_Size() int {
217 return xxx_messageInfo_Adapters.Size(m)
218}
219func (m *Adapters) XXX_DiscardUnknown() {
220 xxx_messageInfo_Adapters.DiscardUnknown(m)
221}
222
223var xxx_messageInfo_Adapters proto.InternalMessageInfo
224
225func (m *Adapters) GetItems() []*Adapter {
226 if m != nil {
227 return m.Items
228 }
229 return nil
230}
231
232func init() {
233 proto.RegisterType((*AdapterConfig)(nil), "voltha.AdapterConfig")
234 proto.RegisterType((*Adapter)(nil), "voltha.Adapter")
235 proto.RegisterType((*Adapters)(nil), "voltha.Adapters")
236}
237
William Kurkianad745652019-03-20 08:45:51 -0400238func init() { proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_7e998ce153307274) }
William Kurkian1b363f42019-03-12 15:28:12 -0400239
William Kurkianad745652019-03-20 08:45:51 -0400240var fileDescriptor_7e998ce153307274 = []byte{
Matteo Scandolo1403e742020-04-06 11:38:40 -0700241 // 463 bytes of a gzipped FileDescriptorProto
242 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0xdd, 0x6e, 0xd3, 0x30,
243 0x14, 0x56, 0xda, 0x35, 0x6d, 0x3d, 0x15, 0x3a, 0x43, 0x91, 0x09, 0x9a, 0x16, 0x55, 0x80, 0x72,
244 0xc1, 0x12, 0xb1, 0xbd, 0x00, 0xed, 0x76, 0xb3, 0x5b, 0x6b, 0xe2, 0x82, 0x9b, 0xca, 0xb5, 0xbd,
245 0xcc, 0x52, 0xe2, 0x13, 0xc5, 0x6e, 0xa4, 0x3e, 0x24, 0x2f, 0xc0, 0x13, 0xf0, 0x04, 0x5c, 0xa3,
246 0x3a, 0x0e, 0xfd, 0x41, 0xda, 0x55, 0x72, 0xbe, 0xef, 0x3b, 0xdf, 0xf9, 0x33, 0xfa, 0xd0, 0x40,
247 0x61, 0x9f, 0xd9, 0xaa, 0xaa, 0xc1, 0x82, 0xc9, 0x98, 0x60, 0x95, 0x95, 0x75, 0xea, 0x42, 0x1c,
248 0xb6, 0x64, 0xf4, 0x3e, 0x07, 0xc8, 0x0b, 0x99, 0x39, 0x74, 0xbd, 0x79, 0xca, 0x98, 0xde, 0xb6,
249 0x92, 0x28, 0x3a, 0xce, 0xe7, 0x50, 0x96, 0xa0, 0x3d, 0x47, 0x8e, 0xb9, 0x52, 0x5a, 0xe6, 0x99,
250 0xab, 0x53, 0x43, 0xab, 0x4a, 0x69, 0x2c, 0x2b, 0xab, 0x56, 0x30, 0xa7, 0x68, 0xb2, 0x68, 0x5b,
251 0xb9, 0x03, 0xfd, 0xa4, 0x72, 0xbc, 0x40, 0x17, 0x4c, 0x08, 0x65, 0x15, 0x68, 0x56, 0xac, 0xb8,
252 0x03, 0xc9, 0xb7, 0x38, 0x48, 0xce, 0x6f, 0xde, 0xa6, 0xad, 0x5b, 0xda, 0xb9, 0xa5, 0x0b, 0xbd,
253 0xa5, 0xd3, 0xbd, 0xbc, 0xb5, 0x98, 0xff, 0xea, 0xa3, 0xa1, 0x37, 0xc5, 0x33, 0xd4, 0x53, 0x82,
254 0x04, 0x71, 0x90, 0x8c, 0x97, 0x83, 0xdf, 0x7f, 0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ff, 0xfc, 0x2b, 0x1a, 0xf9,
266 0x1d, 0x1b, 0xfc, 0x09, 0x0d, 0x94, 0x95, 0xa5, 0x21, 0x41, 0xdc, 0x4f, 0xce, 0x6f, 0x5e, 0x9f,
267 0x1c, 0x81, 0xb6, 0xec, 0xf2, 0x11, 0xbd, 0x81, 0x3a, 0x4f, 0xa1, 0x92, 0x9a, 0x43, 0x2d, 0xbc,
268 0x6a, 0x39, 0xf9, 0xee, 0xbe, 0x5e, 0xfc, 0x23, 0xcd, 0x95, 0x7d, 0xde, 0xac, 0x53, 0x0e, 0x65,
269 0xd6, 0x49, 0xb3, 0x56, 0x7a, 0xed, 0x1f, 0x76, 0x73, 0x9b, 0xe5, 0xe0, 0xb1, 0x75, 0xe8, 0xc0,
270 0xdb, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xef, 0x64, 0x5e, 0x10, 0x59, 0x03, 0x00, 0x00,
William Kurkian1b363f42019-03-12 15:28:12 -0400271}