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/afrouter.proto |
| 3 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 4 | package afrouter |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 5 | |
| 6 | import ( |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
Scott Baker | 383964b | 2019-11-01 14:26:07 -0700 | [diff] [blame] | 10 | common "github.com/opencord/voltha-protos/v2/go/common" |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 11 | grpc "google.golang.org/grpc" |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 12 | math "math" |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 13 | ) |
| 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 Result struct { |
| 27 | Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` |
| 28 | Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 29 | Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 30 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 31 | XXX_unrecognized []byte `json:"-"` |
| 32 | XXX_sizecache int32 `json:"-"` |
| 33 | } |
| 34 | |
| 35 | func (m *Result) Reset() { *m = Result{} } |
| 36 | func (m *Result) String() string { return proto.CompactTextString(m) } |
| 37 | func (*Result) ProtoMessage() {} |
| 38 | func (*Result) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 39 | return fileDescriptor_be7e2f565b9e1c96, []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 *Result) XXX_Unmarshal(b []byte) error { |
| 43 | return xxx_messageInfo_Result.Unmarshal(m, b) |
| 44 | } |
| 45 | func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 46 | return xxx_messageInfo_Result.Marshal(b, m, deterministic) |
| 47 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 48 | func (m *Result) XXX_Merge(src proto.Message) { |
| 49 | xxx_messageInfo_Result.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 50 | } |
| 51 | func (m *Result) XXX_Size() int { |
| 52 | return xxx_messageInfo_Result.Size(m) |
| 53 | } |
| 54 | func (m *Result) XXX_DiscardUnknown() { |
| 55 | xxx_messageInfo_Result.DiscardUnknown(m) |
| 56 | } |
| 57 | |
| 58 | var xxx_messageInfo_Result proto.InternalMessageInfo |
| 59 | |
| 60 | func (m *Result) GetSuccess() bool { |
| 61 | if m != nil { |
| 62 | return m.Success |
| 63 | } |
| 64 | return false |
| 65 | } |
| 66 | |
| 67 | func (m *Result) GetError() string { |
| 68 | if m != nil { |
| 69 | return m.Error |
| 70 | } |
| 71 | return "" |
| 72 | } |
| 73 | |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 74 | func (m *Result) GetInfo() string { |
| 75 | if m != nil { |
| 76 | return m.Info |
| 77 | } |
| 78 | return "" |
| 79 | } |
| 80 | |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 81 | type Empty struct { |
| 82 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 83 | XXX_unrecognized []byte `json:"-"` |
| 84 | XXX_sizecache int32 `json:"-"` |
| 85 | } |
| 86 | |
| 87 | func (m *Empty) Reset() { *m = Empty{} } |
| 88 | func (m *Empty) String() string { return proto.CompactTextString(m) } |
| 89 | func (*Empty) ProtoMessage() {} |
| 90 | func (*Empty) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 91 | return fileDescriptor_be7e2f565b9e1c96, []int{1} |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 92 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 93 | |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 94 | func (m *Empty) XXX_Unmarshal(b []byte) error { |
| 95 | return xxx_messageInfo_Empty.Unmarshal(m, b) |
| 96 | } |
| 97 | func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 98 | return xxx_messageInfo_Empty.Marshal(b, m, deterministic) |
| 99 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 100 | func (m *Empty) XXX_Merge(src proto.Message) { |
| 101 | xxx_messageInfo_Empty.Merge(m, src) |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 102 | } |
| 103 | func (m *Empty) XXX_Size() int { |
| 104 | return xxx_messageInfo_Empty.Size(m) |
| 105 | } |
| 106 | func (m *Empty) XXX_DiscardUnknown() { |
| 107 | xxx_messageInfo_Empty.DiscardUnknown(m) |
| 108 | } |
| 109 | |
| 110 | var xxx_messageInfo_Empty proto.InternalMessageInfo |
| 111 | |
| 112 | type Count struct { |
| 113 | Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` |
| 114 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 115 | XXX_unrecognized []byte `json:"-"` |
| 116 | XXX_sizecache int32 `json:"-"` |
| 117 | } |
| 118 | |
| 119 | func (m *Count) Reset() { *m = Count{} } |
| 120 | func (m *Count) String() string { return proto.CompactTextString(m) } |
| 121 | func (*Count) ProtoMessage() {} |
| 122 | func (*Count) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 123 | return fileDescriptor_be7e2f565b9e1c96, []int{2} |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 124 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 125 | |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 126 | func (m *Count) XXX_Unmarshal(b []byte) error { |
| 127 | return xxx_messageInfo_Count.Unmarshal(m, b) |
| 128 | } |
| 129 | func (m *Count) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 130 | return xxx_messageInfo_Count.Marshal(b, m, deterministic) |
| 131 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 132 | func (m *Count) XXX_Merge(src proto.Message) { |
| 133 | xxx_messageInfo_Count.Merge(m, src) |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 134 | } |
| 135 | func (m *Count) XXX_Size() int { |
| 136 | return xxx_messageInfo_Count.Size(m) |
| 137 | } |
| 138 | func (m *Count) XXX_DiscardUnknown() { |
| 139 | xxx_messageInfo_Count.DiscardUnknown(m) |
| 140 | } |
| 141 | |
| 142 | var xxx_messageInfo_Count proto.InternalMessageInfo |
| 143 | |
| 144 | func (m *Count) GetCount() uint32 { |
| 145 | if m != nil { |
| 146 | return m.Count |
| 147 | } |
| 148 | return 0 |
| 149 | } |
| 150 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 151 | type Conn struct { |
| 152 | Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` |
| 153 | Pkg string `protobuf:"bytes,2,opt,name=pkg,proto3" json:"pkg,omitempty"` |
| 154 | Svc string `protobuf:"bytes,3,opt,name=svc,proto3" json:"svc,omitempty"` |
| 155 | Cluster string `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"` |
| 156 | Backend string `protobuf:"bytes,5,opt,name=backend,proto3" json:"backend,omitempty"` |
| 157 | Connection string `protobuf:"bytes,6,opt,name=connection,proto3" json:"connection,omitempty"` |
| 158 | Addr string `protobuf:"bytes,7,opt,name=addr,proto3" json:"addr,omitempty"` |
| 159 | Port uint64 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"` |
| 160 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 161 | XXX_unrecognized []byte `json:"-"` |
| 162 | XXX_sizecache int32 `json:"-"` |
| 163 | } |
| 164 | |
| 165 | func (m *Conn) Reset() { *m = Conn{} } |
| 166 | func (m *Conn) String() string { return proto.CompactTextString(m) } |
| 167 | func (*Conn) ProtoMessage() {} |
| 168 | func (*Conn) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 169 | return fileDescriptor_be7e2f565b9e1c96, []int{3} |
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 *Conn) XXX_Unmarshal(b []byte) error { |
| 173 | return xxx_messageInfo_Conn.Unmarshal(m, b) |
| 174 | } |
| 175 | func (m *Conn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 176 | return xxx_messageInfo_Conn.Marshal(b, m, deterministic) |
| 177 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 178 | func (m *Conn) XXX_Merge(src proto.Message) { |
| 179 | xxx_messageInfo_Conn.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 180 | } |
| 181 | func (m *Conn) XXX_Size() int { |
| 182 | return xxx_messageInfo_Conn.Size(m) |
| 183 | } |
| 184 | func (m *Conn) XXX_DiscardUnknown() { |
| 185 | xxx_messageInfo_Conn.DiscardUnknown(m) |
| 186 | } |
| 187 | |
| 188 | var xxx_messageInfo_Conn proto.InternalMessageInfo |
| 189 | |
| 190 | func (m *Conn) GetServer() string { |
| 191 | if m != nil { |
| 192 | return m.Server |
| 193 | } |
| 194 | return "" |
| 195 | } |
| 196 | |
| 197 | func (m *Conn) GetPkg() string { |
| 198 | if m != nil { |
| 199 | return m.Pkg |
| 200 | } |
| 201 | return "" |
| 202 | } |
| 203 | |
| 204 | func (m *Conn) GetSvc() string { |
| 205 | if m != nil { |
| 206 | return m.Svc |
| 207 | } |
| 208 | return "" |
| 209 | } |
| 210 | |
| 211 | func (m *Conn) GetCluster() string { |
| 212 | if m != nil { |
| 213 | return m.Cluster |
| 214 | } |
| 215 | return "" |
| 216 | } |
| 217 | |
| 218 | func (m *Conn) GetBackend() string { |
| 219 | if m != nil { |
| 220 | return m.Backend |
| 221 | } |
| 222 | return "" |
| 223 | } |
| 224 | |
| 225 | func (m *Conn) GetConnection() string { |
| 226 | if m != nil { |
| 227 | return m.Connection |
| 228 | } |
| 229 | return "" |
| 230 | } |
| 231 | |
| 232 | func (m *Conn) GetAddr() string { |
| 233 | if m != nil { |
| 234 | return m.Addr |
| 235 | } |
| 236 | return "" |
| 237 | } |
| 238 | |
| 239 | func (m *Conn) GetPort() uint64 { |
| 240 | if m != nil { |
| 241 | return m.Port |
| 242 | } |
| 243 | return 0 |
| 244 | } |
| 245 | |
| 246 | type Affinity struct { |
| 247 | Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"` |
| 248 | Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` |
| 249 | Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` |
| 250 | Backend string `protobuf:"bytes,4,opt,name=backend,proto3" json:"backend,omitempty"` |
| 251 | Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` |
| 252 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 253 | XXX_unrecognized []byte `json:"-"` |
| 254 | XXX_sizecache int32 `json:"-"` |
| 255 | } |
| 256 | |
| 257 | func (m *Affinity) Reset() { *m = Affinity{} } |
| 258 | func (m *Affinity) String() string { return proto.CompactTextString(m) } |
| 259 | func (*Affinity) ProtoMessage() {} |
| 260 | func (*Affinity) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 261 | return fileDescriptor_be7e2f565b9e1c96, []int{4} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 262 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 263 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 264 | func (m *Affinity) XXX_Unmarshal(b []byte) error { |
| 265 | return xxx_messageInfo_Affinity.Unmarshal(m, b) |
| 266 | } |
| 267 | func (m *Affinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 268 | return xxx_messageInfo_Affinity.Marshal(b, m, deterministic) |
| 269 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 270 | func (m *Affinity) XXX_Merge(src proto.Message) { |
| 271 | xxx_messageInfo_Affinity.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 272 | } |
| 273 | func (m *Affinity) XXX_Size() int { |
| 274 | return xxx_messageInfo_Affinity.Size(m) |
| 275 | } |
| 276 | func (m *Affinity) XXX_DiscardUnknown() { |
| 277 | xxx_messageInfo_Affinity.DiscardUnknown(m) |
| 278 | } |
| 279 | |
| 280 | var xxx_messageInfo_Affinity proto.InternalMessageInfo |
| 281 | |
| 282 | func (m *Affinity) GetRouter() string { |
| 283 | if m != nil { |
| 284 | return m.Router |
| 285 | } |
| 286 | return "" |
| 287 | } |
| 288 | |
| 289 | func (m *Affinity) GetRoute() string { |
| 290 | if m != nil { |
| 291 | return m.Route |
| 292 | } |
| 293 | return "" |
| 294 | } |
| 295 | |
| 296 | func (m *Affinity) GetCluster() string { |
| 297 | if m != nil { |
| 298 | return m.Cluster |
| 299 | } |
| 300 | return "" |
| 301 | } |
| 302 | |
| 303 | func (m *Affinity) GetBackend() string { |
| 304 | if m != nil { |
| 305 | return m.Backend |
| 306 | } |
| 307 | return "" |
| 308 | } |
| 309 | |
| 310 | func (m *Affinity) GetId() string { |
| 311 | if m != nil { |
| 312 | return m.Id |
| 313 | } |
| 314 | return "" |
| 315 | } |
| 316 | |
| 317 | func init() { |
| 318 | proto.RegisterType((*Result)(nil), "afrouter.Result") |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 319 | proto.RegisterType((*Empty)(nil), "afrouter.Empty") |
| 320 | proto.RegisterType((*Count)(nil), "afrouter.Count") |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 321 | proto.RegisterType((*Conn)(nil), "afrouter.Conn") |
| 322 | proto.RegisterType((*Affinity)(nil), "afrouter.Affinity") |
| 323 | } |
| 324 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 325 | func init() { proto.RegisterFile("voltha_protos/afrouter.proto", fileDescriptor_be7e2f565b9e1c96) } |
| 326 | |
| 327 | var fileDescriptor_be7e2f565b9e1c96 = []byte{ |
Scott Baker | 383964b | 2019-11-01 14:26:07 -0700 | [diff] [blame] | 328 | // 466 bytes of a gzipped FileDescriptorProto |
Scott Baker | 99af94e | 2019-08-20 10:45:06 -0700 | [diff] [blame] | 329 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0xcb, 0x8e, 0xd3, 0x30, |
Scott Baker | 383964b | 2019-11-01 14:26:07 -0700 | [diff] [blame] | 330 | 0x14, 0xed, 0x23, 0x7d, 0xcc, 0x85, 0x3e, 0xb0, 0x10, 0xb2, 0x22, 0x40, 0x55, 0x56, 0xdd, 0xd0, |
| 331 | 0xa2, 0x0e, 0x88, 0x0d, 0x1b, 0x88, 0x50, 0x37, 0x5d, 0x65, 0xc4, 0x86, 0x0d, 0x4a, 0x1d, 0x27, |
| 332 | 0x63, 0x4d, 0xeb, 0x1b, 0xd9, 0x4e, 0xa4, 0x91, 0xf8, 0x20, 0xbe, 0x82, 0x6f, 0x43, 0xb6, 0x93, |
| 333 | 0xb6, 0x53, 0xc1, 0xee, 0x9c, 0x73, 0xef, 0xb5, 0xcf, 0xf1, 0x03, 0x5e, 0xd7, 0x78, 0x30, 0xf7, |
| 334 | 0xe9, 0xcf, 0x52, 0xa1, 0x41, 0xbd, 0x4e, 0x73, 0x85, 0x95, 0xe1, 0x6a, 0xe5, 0x38, 0x19, 0xb7, |
| 335 | 0x3c, 0x0c, 0x9f, 0xf6, 0x31, 0x3c, 0x1e, 0x51, 0xfa, 0xae, 0x68, 0x07, 0xc3, 0x84, 0xeb, 0xea, |
| 336 | 0x60, 0x08, 0x85, 0x91, 0xae, 0x18, 0xe3, 0x5a, 0xd3, 0xee, 0xa2, 0xbb, 0x1c, 0x27, 0x2d, 0x25, |
| 337 | 0x2f, 0x61, 0xc0, 0x95, 0x42, 0x45, 0x7b, 0x8b, 0xee, 0xf2, 0x26, 0xf1, 0x84, 0x10, 0x08, 0x84, |
| 338 | 0xcc, 0x91, 0xf6, 0x9d, 0xe8, 0x70, 0x34, 0x82, 0xc1, 0xb7, 0x63, 0x69, 0x1e, 0xa3, 0x37, 0x30, |
| 339 | 0x88, 0xb1, 0x92, 0xc6, 0xce, 0x32, 0x0b, 0xdc, 0x9a, 0x93, 0xc4, 0x93, 0xe8, 0x4f, 0x17, 0x82, |
| 340 | 0x18, 0xa5, 0x24, 0xaf, 0x60, 0xa8, 0xb9, 0xaa, 0xb9, 0x72, 0xf5, 0x9b, 0xa4, 0x61, 0x64, 0x0e, |
| 341 | 0xfd, 0xf2, 0xa1, 0x68, 0x36, 0xb4, 0xd0, 0x2a, 0xba, 0x66, 0xcd, 0x6e, 0x16, 0x5a, 0xc3, 0xec, |
| 342 | 0x50, 0x69, 0xc3, 0x15, 0x0d, 0x9c, 0xda, 0x52, 0x5b, 0xd9, 0xa7, 0xec, 0x81, 0xcb, 0x8c, 0x0e, |
| 343 | 0x7c, 0xa5, 0xa1, 0xe4, 0x2d, 0x00, 0x43, 0x29, 0x39, 0x33, 0x02, 0x25, 0x1d, 0xba, 0xe2, 0x85, |
| 344 | 0x62, 0x43, 0xa5, 0x59, 0xa6, 0xe8, 0xc8, 0x87, 0xb2, 0xd8, 0x6a, 0x25, 0x2a, 0x43, 0xc7, 0x8b, |
| 345 | 0xee, 0x32, 0x48, 0x1c, 0x8e, 0x7e, 0xc1, 0xf8, 0x4b, 0x9e, 0x0b, 0x29, 0xcc, 0xa3, 0xcd, 0xe0, |
| 346 | 0x0f, 0xba, 0xcd, 0xe0, 0x99, 0x8d, 0xee, 0x50, 0x7b, 0x6c, 0x8e, 0x5c, 0xba, 0xee, 0xff, 0xd7, |
| 347 | 0x75, 0xf0, 0xd4, 0xf5, 0x14, 0x7a, 0xa2, 0x8d, 0xd2, 0x13, 0xd9, 0xe6, 0x77, 0x0f, 0x26, 0x31, |
| 348 | 0xca, 0x5c, 0x14, 0x95, 0x4a, 0x9d, 0xef, 0x5b, 0x98, 0xdc, 0x71, 0x13, 0x9f, 0x83, 0x4c, 0x57, |
| 349 | 0xa7, 0xe7, 0x60, 0xd5, 0x70, 0x7e, 0xe6, 0xfe, 0xbe, 0xa3, 0x0e, 0xf9, 0x08, 0xcf, 0xee, 0xb8, |
| 350 | 0x39, 0xe5, 0x20, 0xe7, 0x96, 0x56, 0xfb, 0xe7, 0xd8, 0x27, 0x78, 0xb1, 0xe5, 0x66, 0x8b, 0x56, |
| 351 | 0x17, 0x92, 0xfb, 0x7b, 0x9e, 0x9d, 0x1b, 0xdd, 0x0b, 0x08, 0x67, 0x97, 0x06, 0xec, 0x9d, 0x77, |
| 352 | 0xc8, 0x07, 0x98, 0x7e, 0x2f, 0xb3, 0xd4, 0xf0, 0x1d, 0x16, 0x3b, 0x5e, 0xf3, 0x03, 0x99, 0xad, |
| 353 | 0x9a, 0xc7, 0xb8, 0xc3, 0xa2, 0x10, 0xb2, 0x08, 0xaf, 0x97, 0x89, 0x3a, 0xe4, 0x33, 0x3c, 0xdf, |
| 354 | 0x72, 0xd3, 0x8e, 0x68, 0x42, 0xaf, 0x66, 0x62, 0x3c, 0x96, 0x28, 0xb9, 0x34, 0xe1, 0xfc, 0xaa, |
| 355 | 0xa2, 0xa3, 0xce, 0xd7, 0xcd, 0x8f, 0xf7, 0x85, 0x30, 0xf7, 0xd5, 0xde, 0xd6, 0xd6, 0x58, 0x72, |
| 356 | 0xc9, 0x50, 0x65, 0x6b, 0xff, 0x23, 0xde, 0x35, 0x3f, 0xa2, 0xde, 0xac, 0x0b, 0x3c, 0xfd, 0x9f, |
| 357 | 0xfd, 0xd0, 0xc9, 0xb7, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x68, 0x29, 0xa2, 0x00, 0x60, 0x03, |
| 358 | 0x00, 0x00, |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 359 | } |
| 360 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 361 | // Reference imports to suppress errors if they are not otherwise used. |
| 362 | var _ context.Context |
| 363 | var _ grpc.ClientConn |
| 364 | |
| 365 | // This is a compile-time assertion to ensure that this generated file |
| 366 | // is compatible with the grpc package it is being compiled against. |
| 367 | const _ = grpc.SupportPackageIsVersion4 |
| 368 | |
| 369 | // ConfigurationClient is the client API for Configuration service. |
| 370 | // |
| 371 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 372 | type ConfigurationClient interface { |
| 373 | SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error) |
| 374 | SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error) |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 375 | GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) |
Scott Baker | 99af94e | 2019-08-20 10:45:06 -0700 | [diff] [blame] | 376 | UpdateLogLevel(ctx context.Context, in *common.Logging, opts ...grpc.CallOption) (*Empty, error) |
| 377 | GetLogLevels(ctx context.Context, in *common.LoggingComponent, opts ...grpc.CallOption) (*common.Loggings, error) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 378 | } |
| 379 | |
| 380 | type configurationClient struct { |
| 381 | cc *grpc.ClientConn |
| 382 | } |
| 383 | |
| 384 | func NewConfigurationClient(cc *grpc.ClientConn) ConfigurationClient { |
| 385 | return &configurationClient{cc} |
| 386 | } |
| 387 | |
| 388 | func (c *configurationClient) SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error) { |
| 389 | out := new(Result) |
| 390 | err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetConnection", in, out, opts...) |
| 391 | if err != nil { |
| 392 | return nil, err |
| 393 | } |
| 394 | return out, nil |
| 395 | } |
| 396 | |
| 397 | func (c *configurationClient) SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error) { |
| 398 | out := new(Result) |
| 399 | err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetAffinity", in, out, opts...) |
| 400 | if err != nil { |
| 401 | return nil, err |
| 402 | } |
| 403 | return out, nil |
| 404 | } |
| 405 | |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 406 | func (c *configurationClient) GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) { |
| 407 | out := new(Count) |
| 408 | err := c.cc.Invoke(ctx, "/afrouter.Configuration/GetGoroutineCount", in, out, opts...) |
| 409 | if err != nil { |
| 410 | return nil, err |
| 411 | } |
| 412 | return out, nil |
| 413 | } |
| 414 | |
Scott Baker | 99af94e | 2019-08-20 10:45:06 -0700 | [diff] [blame] | 415 | func (c *configurationClient) UpdateLogLevel(ctx context.Context, in *common.Logging, opts ...grpc.CallOption) (*Empty, error) { |
| 416 | out := new(Empty) |
| 417 | err := c.cc.Invoke(ctx, "/afrouter.Configuration/UpdateLogLevel", in, out, opts...) |
| 418 | if err != nil { |
| 419 | return nil, err |
| 420 | } |
| 421 | return out, nil |
| 422 | } |
| 423 | |
| 424 | func (c *configurationClient) GetLogLevels(ctx context.Context, in *common.LoggingComponent, opts ...grpc.CallOption) (*common.Loggings, error) { |
| 425 | out := new(common.Loggings) |
| 426 | err := c.cc.Invoke(ctx, "/afrouter.Configuration/GetLogLevels", in, out, opts...) |
| 427 | if err != nil { |
| 428 | return nil, err |
| 429 | } |
| 430 | return out, nil |
| 431 | } |
| 432 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 433 | // ConfigurationServer is the server API for Configuration service. |
| 434 | type ConfigurationServer interface { |
| 435 | SetConnection(context.Context, *Conn) (*Result, error) |
| 436 | SetAffinity(context.Context, *Affinity) (*Result, error) |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 437 | GetGoroutineCount(context.Context, *Empty) (*Count, error) |
Scott Baker | 99af94e | 2019-08-20 10:45:06 -0700 | [diff] [blame] | 438 | UpdateLogLevel(context.Context, *common.Logging) (*Empty, error) |
| 439 | GetLogLevels(context.Context, *common.LoggingComponent) (*common.Loggings, error) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 440 | } |
| 441 | |
| 442 | func RegisterConfigurationServer(s *grpc.Server, srv ConfigurationServer) { |
| 443 | s.RegisterService(&_Configuration_serviceDesc, srv) |
| 444 | } |
| 445 | |
| 446 | func _Configuration_SetConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 447 | in := new(Conn) |
| 448 | if err := dec(in); err != nil { |
| 449 | return nil, err |
| 450 | } |
| 451 | if interceptor == nil { |
| 452 | return srv.(ConfigurationServer).SetConnection(ctx, in) |
| 453 | } |
| 454 | info := &grpc.UnaryServerInfo{ |
| 455 | Server: srv, |
| 456 | FullMethod: "/afrouter.Configuration/SetConnection", |
| 457 | } |
| 458 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 459 | return srv.(ConfigurationServer).SetConnection(ctx, req.(*Conn)) |
| 460 | } |
| 461 | return interceptor(ctx, in, info, handler) |
| 462 | } |
| 463 | |
| 464 | func _Configuration_SetAffinity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 465 | in := new(Affinity) |
| 466 | if err := dec(in); err != nil { |
| 467 | return nil, err |
| 468 | } |
| 469 | if interceptor == nil { |
| 470 | return srv.(ConfigurationServer).SetAffinity(ctx, in) |
| 471 | } |
| 472 | info := &grpc.UnaryServerInfo{ |
| 473 | Server: srv, |
| 474 | FullMethod: "/afrouter.Configuration/SetAffinity", |
| 475 | } |
| 476 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 477 | return srv.(ConfigurationServer).SetAffinity(ctx, req.(*Affinity)) |
| 478 | } |
| 479 | return interceptor(ctx, in, info, handler) |
| 480 | } |
| 481 | |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 482 | func _Configuration_GetGoroutineCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 483 | in := new(Empty) |
| 484 | if err := dec(in); err != nil { |
| 485 | return nil, err |
| 486 | } |
| 487 | if interceptor == nil { |
| 488 | return srv.(ConfigurationServer).GetGoroutineCount(ctx, in) |
| 489 | } |
| 490 | info := &grpc.UnaryServerInfo{ |
| 491 | Server: srv, |
| 492 | FullMethod: "/afrouter.Configuration/GetGoroutineCount", |
| 493 | } |
| 494 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 495 | return srv.(ConfigurationServer).GetGoroutineCount(ctx, req.(*Empty)) |
| 496 | } |
| 497 | return interceptor(ctx, in, info, handler) |
| 498 | } |
| 499 | |
Scott Baker | 99af94e | 2019-08-20 10:45:06 -0700 | [diff] [blame] | 500 | func _Configuration_UpdateLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 501 | in := new(common.Logging) |
| 502 | if err := dec(in); err != nil { |
| 503 | return nil, err |
| 504 | } |
| 505 | if interceptor == nil { |
| 506 | return srv.(ConfigurationServer).UpdateLogLevel(ctx, in) |
| 507 | } |
| 508 | info := &grpc.UnaryServerInfo{ |
| 509 | Server: srv, |
| 510 | FullMethod: "/afrouter.Configuration/UpdateLogLevel", |
| 511 | } |
| 512 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 513 | return srv.(ConfigurationServer).UpdateLogLevel(ctx, req.(*common.Logging)) |
| 514 | } |
| 515 | return interceptor(ctx, in, info, handler) |
| 516 | } |
| 517 | |
| 518 | func _Configuration_GetLogLevels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 519 | in := new(common.LoggingComponent) |
| 520 | if err := dec(in); err != nil { |
| 521 | return nil, err |
| 522 | } |
| 523 | if interceptor == nil { |
| 524 | return srv.(ConfigurationServer).GetLogLevels(ctx, in) |
| 525 | } |
| 526 | info := &grpc.UnaryServerInfo{ |
| 527 | Server: srv, |
| 528 | FullMethod: "/afrouter.Configuration/GetLogLevels", |
| 529 | } |
| 530 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 531 | return srv.(ConfigurationServer).GetLogLevels(ctx, req.(*common.LoggingComponent)) |
| 532 | } |
| 533 | return interceptor(ctx, in, info, handler) |
| 534 | } |
| 535 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 536 | var _Configuration_serviceDesc = grpc.ServiceDesc{ |
| 537 | ServiceName: "afrouter.Configuration", |
| 538 | HandlerType: (*ConfigurationServer)(nil), |
| 539 | Methods: []grpc.MethodDesc{ |
| 540 | { |
| 541 | MethodName: "SetConnection", |
| 542 | Handler: _Configuration_SetConnection_Handler, |
| 543 | }, |
| 544 | { |
| 545 | MethodName: "SetAffinity", |
| 546 | Handler: _Configuration_SetAffinity_Handler, |
| 547 | }, |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 548 | { |
| 549 | MethodName: "GetGoroutineCount", |
| 550 | Handler: _Configuration_GetGoroutineCount_Handler, |
| 551 | }, |
Scott Baker | 99af94e | 2019-08-20 10:45:06 -0700 | [diff] [blame] | 552 | { |
| 553 | MethodName: "UpdateLogLevel", |
| 554 | Handler: _Configuration_UpdateLogLevel_Handler, |
| 555 | }, |
| 556 | { |
| 557 | MethodName: "GetLogLevels", |
| 558 | Handler: _Configuration_GetLogLevels_Handler, |
| 559 | }, |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 560 | }, |
| 561 | Streams: []grpc.StreamDesc{}, |
| 562 | Metadata: "voltha_protos/afrouter.proto", |
| 563 | } |