William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/adapter.proto |
| 3 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 4 | package voltha |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 5 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | any "github.com/golang/protobuf/ptypes/any" |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 10 | _ "github.com/opencord/voltha-protos/v5/go/common" |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 11 | math "math" |
| 12 | ) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 13 | |
| 14 | // Reference imports to suppress errors if they are not otherwise used. |
| 15 | var _ = proto.Marshal |
| 16 | var _ = fmt.Errorf |
| 17 | var _ = math.Inf |
| 18 | |
| 19 | // This is a compile-time assertion to ensure that this generated file |
| 20 | // is compatible with the proto package it is being compiled against. |
| 21 | // A compilation error at this line likely means your copy of the |
| 22 | // proto package needs to be updated. |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 23 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 24 | |
| 25 | type AdapterConfig struct { |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 26 | // Custom (vendor-specific) configuration attributes |
| 27 | AdditionalConfig *any.Any `protobuf:"bytes,64,opt,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty"` |
| 28 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 29 | XXX_unrecognized []byte `json:"-"` |
| 30 | XXX_sizecache int32 `json:"-"` |
| 31 | } |
| 32 | |
| 33 | func (m *AdapterConfig) Reset() { *m = AdapterConfig{} } |
| 34 | func (m *AdapterConfig) String() string { return proto.CompactTextString(m) } |
| 35 | func (*AdapterConfig) ProtoMessage() {} |
| 36 | func (*AdapterConfig) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 37 | return fileDescriptor_7e998ce153307274, []int{0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 38 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 39 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 40 | func (m *AdapterConfig) XXX_Unmarshal(b []byte) error { |
| 41 | return xxx_messageInfo_AdapterConfig.Unmarshal(m, b) |
| 42 | } |
| 43 | func (m *AdapterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 44 | return xxx_messageInfo_AdapterConfig.Marshal(b, m, deterministic) |
| 45 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 46 | func (m *AdapterConfig) XXX_Merge(src proto.Message) { |
| 47 | xxx_messageInfo_AdapterConfig.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 48 | } |
| 49 | func (m *AdapterConfig) XXX_Size() int { |
| 50 | return xxx_messageInfo_AdapterConfig.Size(m) |
| 51 | } |
| 52 | func (m *AdapterConfig) XXX_DiscardUnknown() { |
| 53 | xxx_messageInfo_AdapterConfig.DiscardUnknown(m) |
| 54 | } |
| 55 | |
| 56 | var xxx_messageInfo_AdapterConfig proto.InternalMessageInfo |
| 57 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 58 | func (m *AdapterConfig) GetAdditionalConfig() *any.Any { |
| 59 | if m != nil { |
| 60 | return m.AdditionalConfig |
| 61 | } |
| 62 | return nil |
| 63 | } |
| 64 | |
| 65 | // Adapter (software plugin) |
| 66 | type Adapter struct { |
Matteo Scandolo | 1403e74 | 2020-04-06 11:38:40 -0700 | [diff] [blame] | 67 | // the adapter ID has to be unique, |
| 68 | // it will be generated as Type + CurrentReplica |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 69 | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 70 | Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"` |
| 71 | Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` |
| 72 | // Adapter configuration |
| 73 | Config *AdapterConfig `protobuf:"bytes,16,opt,name=config,proto3" json:"config,omitempty"` |
| 74 | // Custom descriptors and custom configuration |
| 75 | AdditionalDescription *any.Any `protobuf:"bytes,64,opt,name=additional_description,json=additionalDescription,proto3" json:"additional_description,omitempty"` |
| 76 | LogicalDeviceIds []string `protobuf:"bytes,4,rep,name=logical_device_ids,json=logicalDeviceIds,proto3" json:"logical_device_ids,omitempty"` |
Kent Hagerman | 801796c | 2019-12-16 15:07:50 -0500 | [diff] [blame] | 77 | // timestamp when the adapter last sent a message to the core |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 78 | LastCommunication int64 `protobuf:"varint,5,opt,name=last_communication,json=lastCommunication,proto3" json:"last_communication,omitempty"` |
| 79 | CurrentReplica int32 `protobuf:"varint,6,opt,name=currentReplica,proto3" json:"currentReplica,omitempty"` |
| 80 | TotalReplicas int32 `protobuf:"varint,7,opt,name=totalReplicas,proto3" json:"totalReplicas,omitempty"` |
| 81 | Endpoint string `protobuf:"bytes,8,opt,name=endpoint,proto3" json:"endpoint,omitempty"` |
Matteo Scandolo | 1403e74 | 2020-04-06 11:38:40 -0700 | [diff] [blame] | 82 | // all replicas of the same adapter will have the same type |
| 83 | // it is used to associate a device to an adapter |
| 84 | Type string `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"` |
| 85 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 86 | XXX_unrecognized []byte `json:"-"` |
| 87 | XXX_sizecache int32 `json:"-"` |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 88 | } |
| 89 | |
| 90 | func (m *Adapter) Reset() { *m = Adapter{} } |
| 91 | func (m *Adapter) String() string { return proto.CompactTextString(m) } |
| 92 | func (*Adapter) ProtoMessage() {} |
| 93 | func (*Adapter) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 94 | return fileDescriptor_7e998ce153307274, []int{1} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 95 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 96 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 97 | func (m *Adapter) XXX_Unmarshal(b []byte) error { |
| 98 | return xxx_messageInfo_Adapter.Unmarshal(m, b) |
| 99 | } |
| 100 | func (m *Adapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 101 | return xxx_messageInfo_Adapter.Marshal(b, m, deterministic) |
| 102 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 103 | func (m *Adapter) XXX_Merge(src proto.Message) { |
| 104 | xxx_messageInfo_Adapter.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 105 | } |
| 106 | func (m *Adapter) XXX_Size() int { |
| 107 | return xxx_messageInfo_Adapter.Size(m) |
| 108 | } |
| 109 | func (m *Adapter) XXX_DiscardUnknown() { |
| 110 | xxx_messageInfo_Adapter.DiscardUnknown(m) |
| 111 | } |
| 112 | |
| 113 | var xxx_messageInfo_Adapter proto.InternalMessageInfo |
| 114 | |
| 115 | func (m *Adapter) GetId() string { |
| 116 | if m != nil { |
| 117 | return m.Id |
| 118 | } |
| 119 | return "" |
| 120 | } |
| 121 | |
| 122 | func (m *Adapter) GetVendor() string { |
| 123 | if m != nil { |
| 124 | return m.Vendor |
| 125 | } |
| 126 | return "" |
| 127 | } |
| 128 | |
| 129 | func (m *Adapter) GetVersion() string { |
| 130 | if m != nil { |
| 131 | return m.Version |
| 132 | } |
| 133 | return "" |
| 134 | } |
| 135 | |
| 136 | func (m *Adapter) GetConfig() *AdapterConfig { |
| 137 | if m != nil { |
| 138 | return m.Config |
| 139 | } |
| 140 | return nil |
| 141 | } |
| 142 | |
| 143 | func (m *Adapter) GetAdditionalDescription() *any.Any { |
| 144 | if m != nil { |
| 145 | return m.AdditionalDescription |
| 146 | } |
| 147 | return nil |
| 148 | } |
| 149 | |
| 150 | func (m *Adapter) GetLogicalDeviceIds() []string { |
| 151 | if m != nil { |
| 152 | return m.LogicalDeviceIds |
| 153 | } |
| 154 | return nil |
| 155 | } |
| 156 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 157 | func (m *Adapter) GetLastCommunication() int64 { |
Kent Hagerman | 801796c | 2019-12-16 15:07:50 -0500 | [diff] [blame] | 158 | if m != nil { |
| 159 | return m.LastCommunication |
| 160 | } |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 161 | return 0 |
Kent Hagerman | 801796c | 2019-12-16 15:07:50 -0500 | [diff] [blame] | 162 | } |
| 163 | |
Matteo Scandolo | ae3f418 | 2020-03-30 13:09:09 -0700 | [diff] [blame] | 164 | func (m *Adapter) GetCurrentReplica() int32 { |
| 165 | if m != nil { |
| 166 | return m.CurrentReplica |
| 167 | } |
| 168 | return 0 |
| 169 | } |
| 170 | |
| 171 | func (m *Adapter) GetTotalReplicas() int32 { |
| 172 | if m != nil { |
| 173 | return m.TotalReplicas |
| 174 | } |
| 175 | return 0 |
| 176 | } |
| 177 | |
| 178 | func (m *Adapter) GetEndpoint() string { |
| 179 | if m != nil { |
| 180 | return m.Endpoint |
| 181 | } |
| 182 | return "" |
| 183 | } |
| 184 | |
Matteo Scandolo | 1403e74 | 2020-04-06 11:38:40 -0700 | [diff] [blame] | 185 | func (m *Adapter) GetType() string { |
| 186 | if m != nil { |
| 187 | return m.Type |
| 188 | } |
| 189 | return "" |
| 190 | } |
| 191 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 192 | type Adapters struct { |
| 193 | Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 194 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 195 | XXX_unrecognized []byte `json:"-"` |
| 196 | XXX_sizecache int32 `json:"-"` |
| 197 | } |
| 198 | |
| 199 | func (m *Adapters) Reset() { *m = Adapters{} } |
| 200 | func (m *Adapters) String() string { return proto.CompactTextString(m) } |
| 201 | func (*Adapters) ProtoMessage() {} |
| 202 | func (*Adapters) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 203 | return fileDescriptor_7e998ce153307274, []int{2} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 204 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 205 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 206 | func (m *Adapters) XXX_Unmarshal(b []byte) error { |
| 207 | return xxx_messageInfo_Adapters.Unmarshal(m, b) |
| 208 | } |
| 209 | func (m *Adapters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 210 | return xxx_messageInfo_Adapters.Marshal(b, m, deterministic) |
| 211 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 212 | func (m *Adapters) XXX_Merge(src proto.Message) { |
| 213 | xxx_messageInfo_Adapters.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 214 | } |
| 215 | func (m *Adapters) XXX_Size() int { |
| 216 | return xxx_messageInfo_Adapters.Size(m) |
| 217 | } |
| 218 | func (m *Adapters) XXX_DiscardUnknown() { |
| 219 | xxx_messageInfo_Adapters.DiscardUnknown(m) |
| 220 | } |
| 221 | |
| 222 | var xxx_messageInfo_Adapters proto.InternalMessageInfo |
| 223 | |
| 224 | func (m *Adapters) GetItems() []*Adapter { |
| 225 | if m != nil { |
| 226 | return m.Items |
| 227 | } |
| 228 | return nil |
| 229 | } |
| 230 | |
| 231 | func init() { |
| 232 | proto.RegisterType((*AdapterConfig)(nil), "voltha.AdapterConfig") |
| 233 | proto.RegisterType((*Adapter)(nil), "voltha.Adapter") |
| 234 | proto.RegisterType((*Adapters)(nil), "voltha.Adapters") |
| 235 | } |
| 236 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 237 | func init() { proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_7e998ce153307274) } |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 238 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 239 | var fileDescriptor_7e998ce153307274 = []byte{ |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 240 | // 439 bytes of a gzipped FileDescriptorProto |
| 241 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x8e, 0xd3, 0x30, |
| 242 | 0x14, 0x45, 0x95, 0x66, 0x9a, 0xb6, 0x6f, 0x54, 0xe8, 0x18, 0x8a, 0x4c, 0xd1, 0x88, 0xa8, 0x02, |
| 243 | 0x94, 0x05, 0x4d, 0xc4, 0x20, 0xf6, 0xb4, 0x33, 0x1b, 0xb6, 0x16, 0x62, 0xc1, 0xa6, 0x72, 0x6d, |
| 244 | 0x4f, 0xc6, 0x52, 0xe2, 0x17, 0x25, 0x6e, 0xa4, 0xfe, 0x1c, 0x7f, 0xc0, 0x7f, 0xf0, 0x05, 0xac, |
| 245 | 0x51, 0x1d, 0x97, 0xb6, 0xb3, 0x98, 0x55, 0x7b, 0xef, 0x3d, 0xbe, 0xf6, 0x7b, 0x0a, 0xbc, 0x69, |
| 246 | 0xb1, 0xb0, 0x0f, 0x7c, 0x5d, 0xd5, 0x68, 0xb1, 0xc9, 0xb8, 0xe4, 0x95, 0x55, 0x75, 0xea, 0x24, |
| 247 | 0x89, 0xba, 0x70, 0x46, 0xcf, 0xa1, 0x52, 0x59, 0xde, 0x11, 0xb3, 0xd7, 0x39, 0x62, 0x5e, 0xa8, |
| 248 | 0xcc, 0xa9, 0xcd, 0xf6, 0x3e, 0xe3, 0x66, 0xd7, 0x45, 0x73, 0x06, 0xe3, 0x65, 0xd7, 0x76, 0x8b, |
| 249 | 0xe6, 0x5e, 0xe7, 0x64, 0x09, 0x57, 0x5c, 0x4a, 0x6d, 0x35, 0x1a, 0x5e, 0xac, 0x85, 0x33, 0xe9, |
| 250 | 0xd7, 0x38, 0x48, 0x2e, 0x6f, 0x5e, 0xa6, 0x5d, 0x4f, 0x7a, 0xe8, 0x49, 0x97, 0x66, 0xc7, 0x26, |
| 251 | 0x47, 0xbc, 0xab, 0x98, 0xff, 0x0a, 0x61, 0xe0, 0x4b, 0xc9, 0x14, 0x7a, 0x5a, 0xd2, 0x20, 0x0e, |
| 252 | 0x92, 0xd1, 0xaa, 0xff, 0xe7, 0xef, 0xef, 0xeb, 0x80, 0xf5, 0xb4, 0x24, 0xd7, 0x10, 0xb5, 0xca, |
| 253 | 0x48, 0xac, 0x69, 0xef, 0x34, 0xf2, 0x26, 0x79, 0x0b, 0x83, 0x56, 0xd5, 0x8d, 0x46, 0x43, 0xc3, |
| 254 | 0xd3, 0xfc, 0xe0, 0x92, 0x05, 0x44, 0xfe, 0x69, 0x13, 0xf7, 0xb4, 0x69, 0xda, 0x0d, 0x9f, 0x9e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0xa9, 0xd5, 0xf8, 0x87, 0xfb, 0xf5, 0xf0, 0xcf, |
| 266 | 0x34, 0xd7, 0xf6, 0x61, 0xbb, 0x49, 0x05, 0x96, 0xd9, 0x01, 0xcd, 0x3a, 0x74, 0xe1, 0x3f, 0xdb, |
| 267 | 0xf6, 0x4b, 0x96, 0xa3, 0xf7, 0x36, 0x91, 0x33, 0x3f, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xe1, |
| 268 | 0x88, 0x17, 0x78, 0x00, 0x03, 0x00, 0x00, |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 269 | } |