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