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" |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 11 | common "github.com/opencord/voltha-protos/v3/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 { |
| 27 | // Common adapter config attributes here |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 28 | LogLevel common.LogLevel_Types `protobuf:"varint,1,opt,name=log_level,json=logLevel,proto3,enum=common.LogLevel_Types" json:"log_level,omitempty"` |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 29 | // Custom (vendor-specific) configuration attributes |
| 30 | AdditionalConfig *any.Any `protobuf:"bytes,64,opt,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty"` |
| 31 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 32 | XXX_unrecognized []byte `json:"-"` |
| 33 | XXX_sizecache int32 `json:"-"` |
| 34 | } |
| 35 | |
| 36 | func (m *AdapterConfig) Reset() { *m = AdapterConfig{} } |
| 37 | func (m *AdapterConfig) String() string { return proto.CompactTextString(m) } |
| 38 | func (*AdapterConfig) ProtoMessage() {} |
| 39 | func (*AdapterConfig) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 40 | return fileDescriptor_7e998ce153307274, []int{0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 41 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 42 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 43 | func (m *AdapterConfig) XXX_Unmarshal(b []byte) error { |
| 44 | return xxx_messageInfo_AdapterConfig.Unmarshal(m, b) |
| 45 | } |
| 46 | func (m *AdapterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 47 | return xxx_messageInfo_AdapterConfig.Marshal(b, m, deterministic) |
| 48 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 49 | func (m *AdapterConfig) XXX_Merge(src proto.Message) { |
| 50 | xxx_messageInfo_AdapterConfig.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 51 | } |
| 52 | func (m *AdapterConfig) XXX_Size() int { |
| 53 | return xxx_messageInfo_AdapterConfig.Size(m) |
| 54 | } |
| 55 | func (m *AdapterConfig) XXX_DiscardUnknown() { |
| 56 | xxx_messageInfo_AdapterConfig.DiscardUnknown(m) |
| 57 | } |
| 58 | |
| 59 | var xxx_messageInfo_AdapterConfig proto.InternalMessageInfo |
| 60 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 61 | func (m *AdapterConfig) GetLogLevel() common.LogLevel_Types { |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 62 | if m != nil { |
| 63 | return m.LogLevel |
| 64 | } |
| 65 | return common.LogLevel_DEBUG |
| 66 | } |
| 67 | |
| 68 | func (m *AdapterConfig) GetAdditionalConfig() *any.Any { |
| 69 | if m != nil { |
| 70 | return m.AdditionalConfig |
| 71 | } |
| 72 | return nil |
| 73 | } |
| 74 | |
| 75 | // Adapter (software plugin) |
| 76 | type Adapter struct { |
| 77 | // Unique name of adapter, matching the python package name under |
| 78 | // voltha/adapters. |
| 79 | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 80 | Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"` |
| 81 | Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` |
| 82 | // Adapter configuration |
| 83 | Config *AdapterConfig `protobuf:"bytes,16,opt,name=config,proto3" json:"config,omitempty"` |
| 84 | // Custom descriptors and custom configuration |
| 85 | AdditionalDescription *any.Any `protobuf:"bytes,64,opt,name=additional_description,json=additionalDescription,proto3" json:"additional_description,omitempty"` |
| 86 | 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] | 87 | // timestamp when the adapter last sent a message to the core |
| 88 | LastCommunication *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_communication,json=lastCommunication,proto3" json:"last_communication,omitempty"` |
| 89 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 90 | XXX_unrecognized []byte `json:"-"` |
| 91 | XXX_sizecache int32 `json:"-"` |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | func (m *Adapter) Reset() { *m = Adapter{} } |
| 95 | func (m *Adapter) String() string { return proto.CompactTextString(m) } |
| 96 | func (*Adapter) ProtoMessage() {} |
| 97 | func (*Adapter) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 98 | return fileDescriptor_7e998ce153307274, []int{1} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 99 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 100 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 101 | func (m *Adapter) XXX_Unmarshal(b []byte) error { |
| 102 | return xxx_messageInfo_Adapter.Unmarshal(m, b) |
| 103 | } |
| 104 | func (m *Adapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 105 | return xxx_messageInfo_Adapter.Marshal(b, m, deterministic) |
| 106 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 107 | func (m *Adapter) XXX_Merge(src proto.Message) { |
| 108 | xxx_messageInfo_Adapter.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 109 | } |
| 110 | func (m *Adapter) XXX_Size() int { |
| 111 | return xxx_messageInfo_Adapter.Size(m) |
| 112 | } |
| 113 | func (m *Adapter) XXX_DiscardUnknown() { |
| 114 | xxx_messageInfo_Adapter.DiscardUnknown(m) |
| 115 | } |
| 116 | |
| 117 | var xxx_messageInfo_Adapter proto.InternalMessageInfo |
| 118 | |
| 119 | func (m *Adapter) GetId() string { |
| 120 | if m != nil { |
| 121 | return m.Id |
| 122 | } |
| 123 | return "" |
| 124 | } |
| 125 | |
| 126 | func (m *Adapter) GetVendor() string { |
| 127 | if m != nil { |
| 128 | return m.Vendor |
| 129 | } |
| 130 | return "" |
| 131 | } |
| 132 | |
| 133 | func (m *Adapter) GetVersion() string { |
| 134 | if m != nil { |
| 135 | return m.Version |
| 136 | } |
| 137 | return "" |
| 138 | } |
| 139 | |
| 140 | func (m *Adapter) GetConfig() *AdapterConfig { |
| 141 | if m != nil { |
| 142 | return m.Config |
| 143 | } |
| 144 | return nil |
| 145 | } |
| 146 | |
| 147 | func (m *Adapter) GetAdditionalDescription() *any.Any { |
| 148 | if m != nil { |
| 149 | return m.AdditionalDescription |
| 150 | } |
| 151 | return nil |
| 152 | } |
| 153 | |
| 154 | func (m *Adapter) GetLogicalDeviceIds() []string { |
| 155 | if m != nil { |
| 156 | return m.LogicalDeviceIds |
| 157 | } |
| 158 | return nil |
| 159 | } |
| 160 | |
Kent Hagerman | 801796c | 2019-12-16 15:07:50 -0500 | [diff] [blame] | 161 | func (m *Adapter) GetLastCommunication() *timestamp.Timestamp { |
| 162 | if m != nil { |
| 163 | return m.LastCommunication |
| 164 | } |
| 165 | return nil |
| 166 | } |
| 167 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 168 | type Adapters struct { |
| 169 | Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 170 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 171 | XXX_unrecognized []byte `json:"-"` |
| 172 | XXX_sizecache int32 `json:"-"` |
| 173 | } |
| 174 | |
| 175 | func (m *Adapters) Reset() { *m = Adapters{} } |
| 176 | func (m *Adapters) String() string { return proto.CompactTextString(m) } |
| 177 | func (*Adapters) ProtoMessage() {} |
| 178 | func (*Adapters) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 179 | return fileDescriptor_7e998ce153307274, []int{2} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 180 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 181 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 182 | func (m *Adapters) XXX_Unmarshal(b []byte) error { |
| 183 | return xxx_messageInfo_Adapters.Unmarshal(m, b) |
| 184 | } |
| 185 | func (m *Adapters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 186 | return xxx_messageInfo_Adapters.Marshal(b, m, deterministic) |
| 187 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 188 | func (m *Adapters) XXX_Merge(src proto.Message) { |
| 189 | xxx_messageInfo_Adapters.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 190 | } |
| 191 | func (m *Adapters) XXX_Size() int { |
| 192 | return xxx_messageInfo_Adapters.Size(m) |
| 193 | } |
| 194 | func (m *Adapters) XXX_DiscardUnknown() { |
| 195 | xxx_messageInfo_Adapters.DiscardUnknown(m) |
| 196 | } |
| 197 | |
| 198 | var xxx_messageInfo_Adapters proto.InternalMessageInfo |
| 199 | |
| 200 | func (m *Adapters) GetItems() []*Adapter { |
| 201 | if m != nil { |
| 202 | return m.Items |
| 203 | } |
| 204 | return nil |
| 205 | } |
| 206 | |
| 207 | func init() { |
| 208 | proto.RegisterType((*AdapterConfig)(nil), "voltha.AdapterConfig") |
| 209 | proto.RegisterType((*Adapter)(nil), "voltha.Adapter") |
| 210 | proto.RegisterType((*Adapters)(nil), "voltha.Adapters") |
| 211 | } |
| 212 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 213 | func init() { proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_7e998ce153307274) } |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 214 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 215 | var fileDescriptor_7e998ce153307274 = []byte{ |
Kent Hagerman | 801796c | 2019-12-16 15:07:50 -0500 | [diff] [blame] | 216 | // 439 bytes of a gzipped FileDescriptorProto |
| 217 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0xdd, 0x6a, 0xdb, 0x30, |
| 218 | 0x14, 0xc6, 0xc9, 0x92, 0x36, 0x2a, 0xdd, 0x52, 0x6d, 0x29, 0x5e, 0x46, 0x69, 0x08, 0x0c, 0x72, |
| 219 | 0xb1, 0xca, 0x2c, 0x79, 0x81, 0x25, 0xed, 0x4d, 0xa1, 0x57, 0x26, 0xec, 0x62, 0x37, 0x46, 0xb1, |
| 220 | 0x54, 0x55, 0x20, 0xeb, 0x18, 0x4b, 0x31, 0xe4, 0x09, 0xf6, 0x74, 0x7b, 0x83, 0x3d, 0xc0, 0x9e, |
| 221 | 0x60, 0xd7, 0xc3, 0x92, 0x4c, 0x7e, 0x06, 0xbd, 0x32, 0xe7, 0xfb, 0xbe, 0x73, 0xbe, 0xef, 0x1c, |
| 222 | 0x0b, 0x7d, 0xaa, 0x41, 0xd9, 0x17, 0x9a, 0x95, 0x15, 0x58, 0x30, 0x09, 0x65, 0xb4, 0xb4, 0xbc, |
| 223 | 0x22, 0xae, 0xc4, 0x7d, 0x4f, 0x8e, 0x3f, 0x0a, 0x00, 0xa1, 0x78, 0xe2, 0xd0, 0xcd, 0xf6, 0x39, |
| 224 | 0xa1, 0x7a, 0xe7, 0x25, 0xe3, 0xf1, 0x71, 0x7f, 0x0e, 0x45, 0x01, 0x3a, 0x70, 0xf1, 0x31, 0x57, |
| 225 | 0x70, 0x4b, 0x03, 0x73, 0x7b, 0x3a, 0xd0, 0xca, 0x82, 0x1b, 0x4b, 0x8b, 0xd2, 0x0b, 0xa6, 0x3f, |
| 226 | 0x23, 0x74, 0xb9, 0xf4, 0x59, 0xee, 0x41, 0x3f, 0x4b, 0x81, 0x17, 0x68, 0xa0, 0x40, 0x64, 0x8a, |
| 227 | 0xd7, 0x5c, 0xc5, 0xd1, 0x24, 0x9a, 0xbd, 0x9d, 0x5f, 0x93, 0x60, 0xf7, 0x04, 0xe2, 0xa9, 0xc1, |
| 228 | 0xc9, 0x7a, 0x57, 0x72, 0x93, 0x9e, 0xab, 0x50, 0xe3, 0x25, 0xba, 0xa2, 0x8c, 0x49, 0x2b, 0x41, |
| 229 | 0x53, 0x95, 0xe5, 0x6e, 0x52, 0xfc, 0x6d, 0x12, 0xcd, 0x2e, 0xe6, 0x1f, 0x88, 0xcf, 0x40, 0xda, |
| 230 | 0x0c, 0x64, 0xa9, 0x77, 0xe9, 0x70, 0x2f, 0xf7, 0xbe, 0xd3, 0xdf, 0x1d, 0x74, 0x16, 0x92, 0xe0, |
| 231 | 0x11, 0xea, 0x48, 0xe6, 0xcc, 0x07, 0xab, 0xde, 0x9f, 0xbf, 0xbf, 0x6e, 0xa2, 0xb4, 0x23, 0x19, |
| 232 | 0xbe, 0x41, 0xfd, 0x9a, 0x6b, 0x06, 0x55, 0xdc, 0x39, 0xa4, 0x02, 0x88, 0x6f, 0xd1, 0x59, 0xcd, |
| 233 | 0x2b, 0x23, 0x41, 0xc7, 0xdd, 0x43, 0xbe, 0x45, 0xf1, 0x1d, 0xea, 0x87, 0x68, 0x43, 0x17, 0x6d, |
| 234 | 0x44, 0xfc, 0xe1, 0xc8, 0xd1, 0x05, 0xd2, 0x20, 0xc2, 0x29, 0xba, 0x3e, 0x58, 0x8a, 0x71, 0x93, |
| 235 | 0x57, 0xb2, 0x6c, 0xaa, 0xd7, 0x36, 0x6b, 0x4d, 0x47, 0xfb, 0xd6, 0x87, 0x7d, 0x27, 0xfe, 0x82, |
| 236 | 0xb0, 0x02, 0x21, 0x73, 0x37, 0xb0, 0x96, 0x39, 0xcf, 0x24, 0x33, 0xf1, 0x9b, 0x49, 0x77, 0x36, |
| 237 | 0x48, 0x87, 0x81, 0x79, 0x70, 0xc4, 0x23, 0x33, 0xf8, 0x11, 0x61, 0x45, 0x8d, 0xcd, 0x9a, 0xf3, |
| 238 | 0x6f, 0xb5, 0xcc, 0xa9, 0x73, 0xef, 0x39, 0xf7, 0xf1, 0x7f, 0xee, 0xeb, 0xf6, 0xdf, 0xa6, 0x57, |
| 239 | 0x4d, 0xd7, 0xfd, 0x61, 0xd3, 0xf4, 0x2b, 0x3a, 0x0f, 0x5b, 0x1a, 0xfc, 0x19, 0xf5, 0xa4, 0xe5, |
| 240 | 0x85, 0x89, 0xa3, 0x49, 0x77, 0x76, 0x31, 0x7f, 0x77, 0x72, 0x86, 0xd4, 0xb3, 0xab, 0x35, 0x7a, |
| 241 | 0x0f, 0x95, 0x20, 0x50, 0x72, 0x9d, 0x43, 0xc5, 0x82, 0x6a, 0x75, 0xf9, 0xdd, 0x7d, 0x83, 0xf8, |
| 242 | 0x07, 0x11, 0xd2, 0xbe, 0x6c, 0x37, 0xcd, 0x13, 0x49, 0x5a, 0x69, 0xe2, 0xa5, 0x77, 0xe1, 0x41, |
| 243 | 0xd6, 0x8b, 0x44, 0x40, 0xc0, 0x36, 0x7d, 0x07, 0x2e, 0xfe, 0x05, 0x00, 0x00, 0xff, 0xff, 0x4d, |
| 244 | 0xb1, 0x4a, 0xa8, 0x11, 0x03, 0x00, 0x00, |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 245 | } |