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" |
Kent Hagerman | 801796c | 2019-12-16 15:07:50 -0500 | [diff] [blame] | 10 | timestamp "github.com/golang/protobuf/ptypes/timestamp" |
Matteo Scandolo | b3c08ae | 2020-10-14 13:15:43 -0700 | [diff] [blame] | 11 | _ "github.com/opencord/voltha-protos/v4/go/common" |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 12 | math "math" |
| 13 | ) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 14 | |
| 15 | // Reference imports to suppress errors if they are not otherwise used. |
| 16 | var _ = proto.Marshal |
| 17 | var _ = fmt.Errorf |
| 18 | var _ = 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 24 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 25 | |
| 26 | type AdapterConfig struct { |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 27 | // 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 | |
| 34 | func (m *AdapterConfig) Reset() { *m = AdapterConfig{} } |
| 35 | func (m *AdapterConfig) String() string { return proto.CompactTextString(m) } |
| 36 | func (*AdapterConfig) ProtoMessage() {} |
| 37 | func (*AdapterConfig) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 38 | return fileDescriptor_7e998ce153307274, []int{0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 39 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 40 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 41 | func (m *AdapterConfig) XXX_Unmarshal(b []byte) error { |
| 42 | return xxx_messageInfo_AdapterConfig.Unmarshal(m, b) |
| 43 | } |
| 44 | func (m *AdapterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 45 | return xxx_messageInfo_AdapterConfig.Marshal(b, m, deterministic) |
| 46 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 47 | func (m *AdapterConfig) XXX_Merge(src proto.Message) { |
| 48 | xxx_messageInfo_AdapterConfig.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 49 | } |
| 50 | func (m *AdapterConfig) XXX_Size() int { |
| 51 | return xxx_messageInfo_AdapterConfig.Size(m) |
| 52 | } |
| 53 | func (m *AdapterConfig) XXX_DiscardUnknown() { |
| 54 | xxx_messageInfo_AdapterConfig.DiscardUnknown(m) |
| 55 | } |
| 56 | |
| 57 | var xxx_messageInfo_AdapterConfig proto.InternalMessageInfo |
| 58 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 59 | func (m *AdapterConfig) GetAdditionalConfig() *any.Any { |
| 60 | if m != nil { |
| 61 | return m.AdditionalConfig |
| 62 | } |
| 63 | return nil |
| 64 | } |
| 65 | |
| 66 | // Adapter (software plugin) |
| 67 | type Adapter struct { |
Matteo Scandolo | 1403e74 | 2020-04-06 11:38:40 -0700 | [diff] [blame] | 68 | // the adapter ID has to be unique, |
| 69 | // it will be generated as Type + CurrentReplica |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 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 Hagerman | 801796c | 2019-12-16 15:07:50 -0500 | [diff] [blame] | 78 | // timestamp when the adapter last sent a message to the core |
Matteo Scandolo | 1403e74 | 2020-04-06 11:38:40 -0700 | [diff] [blame] | 79 | 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 89 | } |
| 90 | |
| 91 | func (m *Adapter) Reset() { *m = Adapter{} } |
| 92 | func (m *Adapter) String() string { return proto.CompactTextString(m) } |
| 93 | func (*Adapter) ProtoMessage() {} |
| 94 | func (*Adapter) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 95 | return fileDescriptor_7e998ce153307274, []int{1} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 96 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 97 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 98 | func (m *Adapter) XXX_Unmarshal(b []byte) error { |
| 99 | return xxx_messageInfo_Adapter.Unmarshal(m, b) |
| 100 | } |
| 101 | func (m *Adapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 102 | return xxx_messageInfo_Adapter.Marshal(b, m, deterministic) |
| 103 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 104 | func (m *Adapter) XXX_Merge(src proto.Message) { |
| 105 | xxx_messageInfo_Adapter.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 106 | } |
| 107 | func (m *Adapter) XXX_Size() int { |
| 108 | return xxx_messageInfo_Adapter.Size(m) |
| 109 | } |
| 110 | func (m *Adapter) XXX_DiscardUnknown() { |
| 111 | xxx_messageInfo_Adapter.DiscardUnknown(m) |
| 112 | } |
| 113 | |
| 114 | var xxx_messageInfo_Adapter proto.InternalMessageInfo |
| 115 | |
| 116 | func (m *Adapter) GetId() string { |
| 117 | if m != nil { |
| 118 | return m.Id |
| 119 | } |
| 120 | return "" |
| 121 | } |
| 122 | |
| 123 | func (m *Adapter) GetVendor() string { |
| 124 | if m != nil { |
| 125 | return m.Vendor |
| 126 | } |
| 127 | return "" |
| 128 | } |
| 129 | |
| 130 | func (m *Adapter) GetVersion() string { |
| 131 | if m != nil { |
| 132 | return m.Version |
| 133 | } |
| 134 | return "" |
| 135 | } |
| 136 | |
| 137 | func (m *Adapter) GetConfig() *AdapterConfig { |
| 138 | if m != nil { |
| 139 | return m.Config |
| 140 | } |
| 141 | return nil |
| 142 | } |
| 143 | |
| 144 | func (m *Adapter) GetAdditionalDescription() *any.Any { |
| 145 | if m != nil { |
| 146 | return m.AdditionalDescription |
| 147 | } |
| 148 | return nil |
| 149 | } |
| 150 | |
| 151 | func (m *Adapter) GetLogicalDeviceIds() []string { |
| 152 | if m != nil { |
| 153 | return m.LogicalDeviceIds |
| 154 | } |
| 155 | return nil |
| 156 | } |
| 157 | |
Kent Hagerman | 801796c | 2019-12-16 15:07:50 -0500 | [diff] [blame] | 158 | func (m *Adapter) GetLastCommunication() *timestamp.Timestamp { |
| 159 | if m != nil { |
| 160 | return m.LastCommunication |
| 161 | } |
| 162 | return nil |
| 163 | } |
| 164 | |
Matteo Scandolo | ae3f418 | 2020-03-30 13:09:09 -0700 | [diff] [blame] | 165 | func (m *Adapter) GetCurrentReplica() int32 { |
| 166 | if m != nil { |
| 167 | return m.CurrentReplica |
| 168 | } |
| 169 | return 0 |
| 170 | } |
| 171 | |
| 172 | func (m *Adapter) GetTotalReplicas() int32 { |
| 173 | if m != nil { |
| 174 | return m.TotalReplicas |
| 175 | } |
| 176 | return 0 |
| 177 | } |
| 178 | |
| 179 | func (m *Adapter) GetEndpoint() string { |
| 180 | if m != nil { |
| 181 | return m.Endpoint |
| 182 | } |
| 183 | return "" |
| 184 | } |
| 185 | |
Matteo Scandolo | 1403e74 | 2020-04-06 11:38:40 -0700 | [diff] [blame] | 186 | func (m *Adapter) GetType() string { |
| 187 | if m != nil { |
| 188 | return m.Type |
| 189 | } |
| 190 | return "" |
| 191 | } |
| 192 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 193 | type 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 | |
| 200 | func (m *Adapters) Reset() { *m = Adapters{} } |
| 201 | func (m *Adapters) String() string { return proto.CompactTextString(m) } |
| 202 | func (*Adapters) ProtoMessage() {} |
| 203 | func (*Adapters) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 204 | return fileDescriptor_7e998ce153307274, []int{2} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 205 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 206 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 207 | func (m *Adapters) XXX_Unmarshal(b []byte) error { |
| 208 | return xxx_messageInfo_Adapters.Unmarshal(m, b) |
| 209 | } |
| 210 | func (m *Adapters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 211 | return xxx_messageInfo_Adapters.Marshal(b, m, deterministic) |
| 212 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 213 | func (m *Adapters) XXX_Merge(src proto.Message) { |
| 214 | xxx_messageInfo_Adapters.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 215 | } |
| 216 | func (m *Adapters) XXX_Size() int { |
| 217 | return xxx_messageInfo_Adapters.Size(m) |
| 218 | } |
| 219 | func (m *Adapters) XXX_DiscardUnknown() { |
| 220 | xxx_messageInfo_Adapters.DiscardUnknown(m) |
| 221 | } |
| 222 | |
| 223 | var xxx_messageInfo_Adapters proto.InternalMessageInfo |
| 224 | |
| 225 | func (m *Adapters) GetItems() []*Adapter { |
| 226 | if m != nil { |
| 227 | return m.Items |
| 228 | } |
| 229 | return nil |
| 230 | } |
| 231 | |
| 232 | func 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 238 | func init() { proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_7e998ce153307274) } |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 239 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 240 | var fileDescriptor_7e998ce153307274 = []byte{ |
Kent Hagerman | 66e56b4 | 2020-07-09 14:30:23 -0400 | [diff] [blame] | 241 | // 455 bytes of a gzipped FileDescriptorProto |
Matteo Scandolo | 1403e74 | 2020-04-06 11:38:40 -0700 | [diff] [blame] | 242 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0xdd, 0x6e, 0xd3, 0x30, |
Kent Hagerman | 66e56b4 | 2020-07-09 14:30:23 -0400 | [diff] [blame] | 243 | 0x14, 0x56, 0xda, 0xf5, 0xcf, 0x53, 0xa1, 0x33, 0x14, 0x99, 0xa2, 0x69, 0x51, 0x05, 0x28, 0x17, |
Matteo Scandolo | b3c08ae | 2020-10-14 13:15:43 -0700 | [diff] [blame] | 244 | 0x2c, 0x11, 0x83, 0x07, 0xa0, 0xdd, 0x6e, 0x76, 0x6b, 0x4d, 0x5c, 0x70, 0x53, 0xb9, 0xb6, 0x97, |
| 245 | 0x59, 0x4a, 0x7c, 0xa2, 0xd8, 0x8d, 0xd4, 0x87, 0xe4, 0x05, 0x78, 0x02, 0x9e, 0x80, 0x6b, 0x54, |
| 246 | 0xdb, 0xa1, 0x3f, 0x48, 0xbb, 0x4a, 0xce, 0xf7, 0x73, 0x3e, 0x9f, 0x63, 0xa3, 0x77, 0x0d, 0x14, |
| 247 | 0xf6, 0x89, 0xad, 0xaa, 0x1a, 0x2c, 0x98, 0x8c, 0x09, 0x56, 0x59, 0x59, 0xa7, 0xae, 0xc4, 0x7d, |
| 248 | 0x4f, 0xce, 0xde, 0xe6, 0x00, 0x79, 0x21, 0x33, 0x87, 0xae, 0x37, 0x8f, 0x19, 0xd3, 0x5b, 0x2f, |
| 249 | 0x99, 0x91, 0x63, 0x7f, 0x29, 0x2d, 0x0b, 0xcc, 0xd5, 0xa9, 0xc9, 0xaa, 0x52, 0x1a, 0xcb, 0xca, |
| 250 | 0xca, 0x0b, 0xe6, 0x14, 0x8d, 0x17, 0x3e, 0xee, 0x16, 0xf4, 0xa3, 0xca, 0xf1, 0x02, 0x5d, 0x30, |
| 251 | 0x21, 0x94, 0x55, 0xa0, 0x59, 0xb1, 0xe2, 0x0e, 0x24, 0xdf, 0xe2, 0x28, 0x39, 0xbf, 0x79, 0x9d, |
| 252 | 0xfa, 0x6e, 0x69, 0xdb, 0x2d, 0x5d, 0xe8, 0x2d, 0x9d, 0xec, 0xe5, 0xbe, 0xc5, 0xfc, 0x57, 0x17, |
| 253 | 0x0d, 0x42, 0x53, 0x3c, 0x45, 0x1d, 0x25, 0x48, 0x14, 0x47, 0xc9, 0x68, 0xd9, 0xfb, 0xfd, 0xe7, |
| 254 | 0xe7, 0x65, 0x44, 0x3b, 0x4a, 0xe0, 0x4b, 0xd4, 0x6f, 0xa4, 0x16, 0x50, 0x93, 0xce, 0x21, 0x15, |
| 255 | 0x40, 0x7c, 0x85, 0x06, 0x8d, 0xac, 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xd2, |
| 266 | 0x90, 0x28, 0xee, 0x26, 0xe7, 0x37, 0x2f, 0x4f, 0x2e, 0x81, 0x7a, 0x76, 0xf9, 0x80, 0x5e, 0x41, |
| 267 | 0x9d, 0xa7, 0x50, 0x49, 0xcd, 0xa1, 0x16, 0x41, 0xb5, 0x1c, 0x7f, 0x77, 0xdf, 0x20, 0xfe, 0x91, |
| 268 | 0xe6, 0xca, 0x3e, 0x6d, 0xd6, 0x29, 0x87, 0x32, 0x6b, 0xa5, 0x99, 0x97, 0x5e, 0x87, 0x87, 0xdd, |
| 269 | 0x7c, 0xcd, 0x72, 0x08, 0xd8, 0xba, 0xef, 0xc0, 0x2f, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x07, |
| 270 | 0xa4, 0x0d, 0x2b, 0x3d, 0x03, 0x00, 0x00, |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 271 | } |