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" |
Scott Baker | 383964b | 2019-11-01 14:26:07 -0700 | [diff] [blame] | 10 | common "github.com/opencord/voltha-protos/v2/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 { |
| 26 | // Common adapter config attributes here |
William Kurkian | 12fc0af | 2019-04-18 14:27:45 -0400 | [diff] [blame] | 27 | LogLevel common.LogLevel_LogLevel `protobuf:"varint,1,opt,name=log_level,json=logLevel,proto3,enum=common.LogLevel_LogLevel" json:"log_level,omitempty"` |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 28 | // Custom (vendor-specific) configuration attributes |
| 29 | AdditionalConfig *any.Any `protobuf:"bytes,64,opt,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty"` |
| 30 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 31 | XXX_unrecognized []byte `json:"-"` |
| 32 | XXX_sizecache int32 `json:"-"` |
| 33 | } |
| 34 | |
| 35 | func (m *AdapterConfig) Reset() { *m = AdapterConfig{} } |
| 36 | func (m *AdapterConfig) String() string { return proto.CompactTextString(m) } |
| 37 | func (*AdapterConfig) ProtoMessage() {} |
| 38 | func (*AdapterConfig) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 39 | return fileDescriptor_7e998ce153307274, []int{0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 40 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 41 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 42 | func (m *AdapterConfig) XXX_Unmarshal(b []byte) error { |
| 43 | return xxx_messageInfo_AdapterConfig.Unmarshal(m, b) |
| 44 | } |
| 45 | func (m *AdapterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 46 | return xxx_messageInfo_AdapterConfig.Marshal(b, m, deterministic) |
| 47 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 48 | func (m *AdapterConfig) XXX_Merge(src proto.Message) { |
| 49 | xxx_messageInfo_AdapterConfig.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 50 | } |
| 51 | func (m *AdapterConfig) XXX_Size() int { |
| 52 | return xxx_messageInfo_AdapterConfig.Size(m) |
| 53 | } |
| 54 | func (m *AdapterConfig) XXX_DiscardUnknown() { |
| 55 | xxx_messageInfo_AdapterConfig.DiscardUnknown(m) |
| 56 | } |
| 57 | |
| 58 | var xxx_messageInfo_AdapterConfig proto.InternalMessageInfo |
| 59 | |
| 60 | func (m *AdapterConfig) GetLogLevel() common.LogLevel_LogLevel { |
| 61 | if m != nil { |
| 62 | return m.LogLevel |
| 63 | } |
| 64 | return common.LogLevel_DEBUG |
| 65 | } |
| 66 | |
| 67 | func (m *AdapterConfig) GetAdditionalConfig() *any.Any { |
| 68 | if m != nil { |
| 69 | return m.AdditionalConfig |
| 70 | } |
| 71 | return nil |
| 72 | } |
| 73 | |
| 74 | // Adapter (software plugin) |
| 75 | type Adapter struct { |
| 76 | // Unique name of adapter, matching the python package name under |
| 77 | // voltha/adapters. |
| 78 | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 79 | Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"` |
| 80 | Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` |
| 81 | // Adapter configuration |
| 82 | Config *AdapterConfig `protobuf:"bytes,16,opt,name=config,proto3" json:"config,omitempty"` |
| 83 | // Custom descriptors and custom configuration |
| 84 | AdditionalDescription *any.Any `protobuf:"bytes,64,opt,name=additional_description,json=additionalDescription,proto3" json:"additional_description,omitempty"` |
| 85 | LogicalDeviceIds []string `protobuf:"bytes,4,rep,name=logical_device_ids,json=logicalDeviceIds,proto3" json:"logical_device_ids,omitempty"` |
| 86 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 87 | XXX_unrecognized []byte `json:"-"` |
| 88 | XXX_sizecache int32 `json:"-"` |
| 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 | |
| 158 | type Adapters struct { |
| 159 | Items []*Adapter `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 160 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 161 | XXX_unrecognized []byte `json:"-"` |
| 162 | XXX_sizecache int32 `json:"-"` |
| 163 | } |
| 164 | |
| 165 | func (m *Adapters) Reset() { *m = Adapters{} } |
| 166 | func (m *Adapters) String() string { return proto.CompactTextString(m) } |
| 167 | func (*Adapters) ProtoMessage() {} |
| 168 | func (*Adapters) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 169 | return fileDescriptor_7e998ce153307274, []int{2} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 170 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 171 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 172 | func (m *Adapters) XXX_Unmarshal(b []byte) error { |
| 173 | return xxx_messageInfo_Adapters.Unmarshal(m, b) |
| 174 | } |
| 175 | func (m *Adapters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 176 | return xxx_messageInfo_Adapters.Marshal(b, m, deterministic) |
| 177 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 178 | func (m *Adapters) XXX_Merge(src proto.Message) { |
| 179 | xxx_messageInfo_Adapters.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 180 | } |
| 181 | func (m *Adapters) XXX_Size() int { |
| 182 | return xxx_messageInfo_Adapters.Size(m) |
| 183 | } |
| 184 | func (m *Adapters) XXX_DiscardUnknown() { |
| 185 | xxx_messageInfo_Adapters.DiscardUnknown(m) |
| 186 | } |
| 187 | |
| 188 | var xxx_messageInfo_Adapters proto.InternalMessageInfo |
| 189 | |
| 190 | func (m *Adapters) GetItems() []*Adapter { |
| 191 | if m != nil { |
| 192 | return m.Items |
| 193 | } |
| 194 | return nil |
| 195 | } |
| 196 | |
| 197 | func init() { |
| 198 | proto.RegisterType((*AdapterConfig)(nil), "voltha.AdapterConfig") |
| 199 | proto.RegisterType((*Adapter)(nil), "voltha.Adapter") |
| 200 | proto.RegisterType((*Adapters)(nil), "voltha.Adapters") |
| 201 | } |
| 202 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 203 | func init() { proto.RegisterFile("voltha_protos/adapter.proto", fileDescriptor_7e998ce153307274) } |
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 | var fileDescriptor_7e998ce153307274 = []byte{ |
Scott Baker | 383964b | 2019-11-01 14:26:07 -0700 | [diff] [blame] | 206 | // 380 bytes of a gzipped FileDescriptorProto |
| 207 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x8e, 0xda, 0x30, |
| 208 | 0x10, 0x86, 0x95, 0x50, 0x02, 0x18, 0xb5, 0xa5, 0x56, 0xa9, 0x02, 0x15, 0x6a, 0x84, 0x54, 0x29, |
| 209 | 0x87, 0xe2, 0xb4, 0xa9, 0xd4, 0x73, 0xa1, 0x5c, 0x2a, 0x71, 0xca, 0xb1, 0x97, 0x28, 0xc4, 0xc6, |
| 210 | 0x58, 0x72, 0x3c, 0x51, 0x12, 0x22, 0xf1, 0x0a, 0xbd, 0xed, 0x83, 0xed, 0x7b, 0xec, 0x13, 0xec, |
| 211 | 0x79, 0x85, 0x6d, 0x16, 0xd8, 0xc3, 0xde, 0xec, 0xff, 0x9b, 0x99, 0xff, 0xf7, 0x24, 0xe8, 0x73, |
| 212 | 0x0b, 0xb2, 0xd9, 0x67, 0x69, 0x59, 0x41, 0x03, 0x75, 0x94, 0xd1, 0xac, 0x6c, 0x58, 0x45, 0xf4, |
| 213 | 0x15, 0x7b, 0x06, 0x4e, 0x27, 0x1c, 0x80, 0x4b, 0x16, 0x69, 0x75, 0x7b, 0xd8, 0x45, 0x99, 0x3a, |
| 214 | 0x9a, 0x92, 0xe9, 0xf4, 0xb6, 0x3f, 0x87, 0xa2, 0x00, 0x65, 0x99, 0x7f, 0xcb, 0x0a, 0xd6, 0x64, |
| 215 | 0x86, 0xcc, 0xff, 0x3b, 0xe8, 0xed, 0xd2, 0x58, 0xfd, 0x01, 0xb5, 0x13, 0x1c, 0xff, 0x42, 0x03, |
| 216 | 0x09, 0x3c, 0x95, 0xac, 0x65, 0xd2, 0x77, 0x02, 0x27, 0x7c, 0x17, 0x4f, 0x88, 0x9d, 0xb6, 0x01, |
| 217 | 0xbe, 0x39, 0xe9, 0xcf, 0x87, 0xa4, 0x2f, 0xed, 0x09, 0x2f, 0xd1, 0x87, 0x8c, 0x52, 0xd1, 0x08, |
| 218 | 0x50, 0x99, 0x4c, 0x73, 0x3d, 0xcc, 0xff, 0x1d, 0x38, 0xe1, 0x30, 0xfe, 0x48, 0x4c, 0x6c, 0x72, |
| 219 | 0x8e, 0x4d, 0x96, 0xea, 0x98, 0x8c, 0x2e, 0xe5, 0xc6, 0x7a, 0x7e, 0xe7, 0xa2, 0x9e, 0x0d, 0x83, |
| 220 | 0xc7, 0xc8, 0x15, 0x54, 0xfb, 0x0f, 0x56, 0xdd, 0x87, 0xc7, 0xfb, 0x99, 0x93, 0xb8, 0x82, 0xe2, |
| 221 | 0x19, 0xf2, 0x5a, 0xa6, 0x28, 0x54, 0xbe, 0x7b, 0x8d, 0xac, 0x88, 0xbf, 0xa0, 0x5e, 0xcb, 0xaa, |
| 222 | 0x5a, 0x80, 0xf2, 0x3b, 0xd7, 0xfc, 0xac, 0xe2, 0x05, 0xf2, 0x6c, 0xb4, 0x91, 0x8e, 0x36, 0x26, |
| 223 | 0x66, 0x35, 0xe4, 0x66, 0x09, 0x89, 0x2d, 0xc2, 0x09, 0xfa, 0x74, 0xf5, 0x28, 0xca, 0xea, 0xbc, |
| 224 | 0x12, 0xe5, 0xe9, 0xf6, 0xda, 0xcb, 0xce, 0xa6, 0xe3, 0x4b, 0xeb, 0xfa, 0xd2, 0x89, 0xbf, 0x21, |
| 225 | 0x2c, 0x81, 0x8b, 0x5c, 0x0f, 0x6c, 0x45, 0xce, 0x52, 0x41, 0x6b, 0xff, 0x4d, 0xd0, 0x09, 0x07, |
| 226 | 0xc9, 0xc8, 0x92, 0xb5, 0x06, 0x7f, 0x69, 0x3d, 0xff, 0x81, 0xfa, 0x36, 0x5a, 0x8d, 0xbf, 0xa2, |
| 227 | 0xae, 0x68, 0x58, 0x51, 0xfb, 0x4e, 0xd0, 0x09, 0x87, 0xf1, 0xfb, 0x17, 0xd9, 0x13, 0x43, 0x57, |
| 228 | 0xdf, 0xff, 0x11, 0x2e, 0x9a, 0xfd, 0x61, 0x7b, 0xfa, 0x6c, 0x11, 0x94, 0x4c, 0xe5, 0x50, 0xd1, |
| 229 | 0xc8, 0x14, 0x2f, 0xec, 0x3f, 0xd0, 0xc6, 0x11, 0x07, 0xab, 0x6d, 0x3d, 0x2d, 0xfe, 0x7c, 0x0a, |
| 230 | 0x00, 0x00, 0xff, 0xff, 0x63, 0x35, 0x2c, 0x02, 0x84, 0x02, 0x00, 0x00, |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 231 | } |