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" |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 10 | _ "github.com/opencord/voltha-protos/v3/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{ |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 328 | // 420 bytes of a gzipped FileDescriptorProto |
| 329 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0x4d, 0x8f, 0xd3, 0x30, |
| 330 | 0x10, 0xdd, 0xb4, 0xe9, 0xc7, 0x0e, 0xea, 0xee, 0x62, 0x10, 0xb2, 0x2a, 0x40, 0x55, 0x4e, 0xbd, |
| 331 | 0x90, 0x22, 0x2a, 0xc4, 0x19, 0x2a, 0xd4, 0x0b, 0xa7, 0xec, 0x8d, 0x0b, 0x4a, 0x1d, 0x27, 0x6b, |
| 332 | 0x6d, 0xe3, 0x89, 0x6c, 0x27, 0xd2, 0x4a, 0xfc, 0x2c, 0xce, 0xfc, 0x36, 0x64, 0x3b, 0x6e, 0x5a, |
| 333 | 0x89, 0xbd, 0xbd, 0x8f, 0x49, 0xfc, 0x9e, 0x3d, 0xf0, 0xb6, 0xc3, 0xa3, 0x79, 0xc8, 0x7f, 0x35, |
| 334 | 0x0a, 0x0d, 0xea, 0x4d, 0x5e, 0x2a, 0x6c, 0x0d, 0x57, 0xa9, 0xe3, 0x64, 0x1e, 0xf8, 0x72, 0x79, |
| 335 | 0x39, 0xc7, 0xb0, 0xae, 0x51, 0xfa, 0xa9, 0xe4, 0x07, 0x4c, 0x33, 0xae, 0xdb, 0xa3, 0x21, 0x14, |
| 336 | 0x66, 0xba, 0x65, 0x8c, 0x6b, 0x4d, 0xa3, 0x55, 0xb4, 0x9e, 0x67, 0x81, 0x92, 0xd7, 0x30, 0xe1, |
| 337 | 0x4a, 0xa1, 0xa2, 0xa3, 0x55, 0xb4, 0xbe, 0xce, 0x3c, 0x21, 0x04, 0x62, 0x21, 0x4b, 0xa4, 0x63, |
| 338 | 0x27, 0x3a, 0x9c, 0xcc, 0x60, 0xf2, 0xbd, 0x6e, 0xcc, 0x53, 0xf2, 0x0e, 0x26, 0x3b, 0x6c, 0xa5, |
| 339 | 0xb1, 0xdf, 0x32, 0x0b, 0xdc, 0x3f, 0x17, 0x99, 0x27, 0xc9, 0xdf, 0x08, 0xe2, 0x1d, 0x4a, 0x49, |
| 340 | 0xde, 0xc0, 0x54, 0x73, 0xd5, 0x71, 0xe5, 0xfc, 0xeb, 0xac, 0x67, 0xe4, 0x0e, 0xc6, 0xcd, 0x63, |
| 341 | 0xd5, 0x1f, 0x68, 0xa1, 0x55, 0x74, 0xc7, 0xfa, 0xd3, 0x2c, 0xb4, 0x81, 0xd9, 0xb1, 0xd5, 0x86, |
| 342 | 0x2b, 0x1a, 0x3b, 0x35, 0x50, 0xeb, 0x1c, 0x72, 0xf6, 0xc8, 0x65, 0x41, 0x27, 0xde, 0xe9, 0x29, |
| 343 | 0x79, 0x0f, 0xc0, 0x50, 0x4a, 0xce, 0x8c, 0x40, 0x49, 0xa7, 0xce, 0x3c, 0x53, 0x6c, 0xa9, 0xbc, |
| 344 | 0x28, 0x14, 0x9d, 0xf9, 0x52, 0x16, 0x5b, 0xad, 0x41, 0x65, 0xe8, 0x7c, 0x15, 0xad, 0xe3, 0xcc, |
| 345 | 0xe1, 0xe4, 0x37, 0xcc, 0xbf, 0x96, 0xa5, 0x90, 0xc2, 0x3c, 0xd9, 0x0e, 0xfe, 0xa2, 0x43, 0x07, |
| 346 | 0xcf, 0x6c, 0x75, 0x87, 0xc2, 0xb5, 0x39, 0x72, 0x9e, 0x7a, 0xfc, 0x6c, 0xea, 0xf8, 0x32, 0xf5, |
| 347 | 0x0d, 0x8c, 0x44, 0xa8, 0x32, 0x12, 0xc5, 0xa7, 0x3f, 0x11, 0x2c, 0x76, 0x28, 0x4b, 0x51, 0xb5, |
| 348 | 0x2a, 0x77, 0xb9, 0xb7, 0xb0, 0xb8, 0xe7, 0x66, 0x37, 0x14, 0xb9, 0x49, 0x4f, 0xeb, 0x60, 0xd5, |
| 349 | 0xe5, 0xdd, 0xc0, 0xfd, 0x7b, 0x27, 0x57, 0xe4, 0x33, 0xbc, 0xb8, 0xe7, 0xe6, 0xd4, 0x83, 0x0c, |
| 350 | 0x23, 0x41, 0xfb, 0xef, 0x67, 0x5f, 0xe0, 0xe5, 0x9e, 0x9b, 0x3d, 0x5a, 0x5d, 0x48, 0xee, 0xdf, |
| 351 | 0xf9, 0x76, 0x18, 0x74, 0x1b, 0xb0, 0xbc, 0x3d, 0x0f, 0x60, 0xdf, 0xfc, 0xea, 0xdb, 0x1e, 0x5e, |
| 352 | 0xa1, 0xaa, 0x52, 0x6c, 0xb8, 0x64, 0xa8, 0x8a, 0xd4, 0xaf, 0xe5, 0xcf, 0x8f, 0x95, 0x30, 0x0f, |
| 353 | 0xed, 0x21, 0x65, 0x58, 0x6f, 0x82, 0xb7, 0xf1, 0xde, 0x87, 0x7e, 0x65, 0xbb, 0xed, 0xa6, 0xc2, |
| 354 | 0xd3, 0x82, 0x1f, 0xa6, 0x4e, 0xde, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x28, 0xe9, 0x22, |
| 355 | 0x01, 0x03, 0x00, 0x00, |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 356 | } |
| 357 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 358 | // Reference imports to suppress errors if they are not otherwise used. |
| 359 | var _ context.Context |
| 360 | var _ grpc.ClientConn |
| 361 | |
| 362 | // This is a compile-time assertion to ensure that this generated file |
| 363 | // is compatible with the grpc package it is being compiled against. |
| 364 | const _ = grpc.SupportPackageIsVersion4 |
| 365 | |
| 366 | // ConfigurationClient is the client API for Configuration service. |
| 367 | // |
| 368 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 369 | type ConfigurationClient interface { |
| 370 | SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error) |
| 371 | SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error) |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 372 | GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 373 | } |
| 374 | |
| 375 | type configurationClient struct { |
| 376 | cc *grpc.ClientConn |
| 377 | } |
| 378 | |
| 379 | func NewConfigurationClient(cc *grpc.ClientConn) ConfigurationClient { |
| 380 | return &configurationClient{cc} |
| 381 | } |
| 382 | |
| 383 | func (c *configurationClient) SetConnection(ctx context.Context, in *Conn, opts ...grpc.CallOption) (*Result, error) { |
| 384 | out := new(Result) |
| 385 | err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetConnection", in, out, opts...) |
| 386 | if err != nil { |
| 387 | return nil, err |
| 388 | } |
| 389 | return out, nil |
| 390 | } |
| 391 | |
| 392 | func (c *configurationClient) SetAffinity(ctx context.Context, in *Affinity, opts ...grpc.CallOption) (*Result, error) { |
| 393 | out := new(Result) |
| 394 | err := c.cc.Invoke(ctx, "/afrouter.Configuration/SetAffinity", in, out, opts...) |
| 395 | if err != nil { |
| 396 | return nil, err |
| 397 | } |
| 398 | return out, nil |
| 399 | } |
| 400 | |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 401 | func (c *configurationClient) GetGoroutineCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) { |
| 402 | out := new(Count) |
| 403 | err := c.cc.Invoke(ctx, "/afrouter.Configuration/GetGoroutineCount", in, out, opts...) |
| 404 | if err != nil { |
| 405 | return nil, err |
| 406 | } |
| 407 | return out, nil |
| 408 | } |
| 409 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 410 | // ConfigurationServer is the server API for Configuration service. |
| 411 | type ConfigurationServer interface { |
| 412 | SetConnection(context.Context, *Conn) (*Result, error) |
| 413 | SetAffinity(context.Context, *Affinity) (*Result, error) |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 414 | GetGoroutineCount(context.Context, *Empty) (*Count, error) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 415 | } |
| 416 | |
| 417 | func RegisterConfigurationServer(s *grpc.Server, srv ConfigurationServer) { |
| 418 | s.RegisterService(&_Configuration_serviceDesc, srv) |
| 419 | } |
| 420 | |
| 421 | func _Configuration_SetConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 422 | in := new(Conn) |
| 423 | if err := dec(in); err != nil { |
| 424 | return nil, err |
| 425 | } |
| 426 | if interceptor == nil { |
| 427 | return srv.(ConfigurationServer).SetConnection(ctx, in) |
| 428 | } |
| 429 | info := &grpc.UnaryServerInfo{ |
| 430 | Server: srv, |
| 431 | FullMethod: "/afrouter.Configuration/SetConnection", |
| 432 | } |
| 433 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 434 | return srv.(ConfigurationServer).SetConnection(ctx, req.(*Conn)) |
| 435 | } |
| 436 | return interceptor(ctx, in, info, handler) |
| 437 | } |
| 438 | |
| 439 | func _Configuration_SetAffinity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 440 | in := new(Affinity) |
| 441 | if err := dec(in); err != nil { |
| 442 | return nil, err |
| 443 | } |
| 444 | if interceptor == nil { |
| 445 | return srv.(ConfigurationServer).SetAffinity(ctx, in) |
| 446 | } |
| 447 | info := &grpc.UnaryServerInfo{ |
| 448 | Server: srv, |
| 449 | FullMethod: "/afrouter.Configuration/SetAffinity", |
| 450 | } |
| 451 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 452 | return srv.(ConfigurationServer).SetAffinity(ctx, req.(*Affinity)) |
| 453 | } |
| 454 | return interceptor(ctx, in, info, handler) |
| 455 | } |
| 456 | |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 457 | func _Configuration_GetGoroutineCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 458 | in := new(Empty) |
| 459 | if err := dec(in); err != nil { |
| 460 | return nil, err |
| 461 | } |
| 462 | if interceptor == nil { |
| 463 | return srv.(ConfigurationServer).GetGoroutineCount(ctx, in) |
| 464 | } |
| 465 | info := &grpc.UnaryServerInfo{ |
| 466 | Server: srv, |
| 467 | FullMethod: "/afrouter.Configuration/GetGoroutineCount", |
| 468 | } |
| 469 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 470 | return srv.(ConfigurationServer).GetGoroutineCount(ctx, req.(*Empty)) |
| 471 | } |
| 472 | return interceptor(ctx, in, info, handler) |
| 473 | } |
| 474 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 475 | var _Configuration_serviceDesc = grpc.ServiceDesc{ |
| 476 | ServiceName: "afrouter.Configuration", |
| 477 | HandlerType: (*ConfigurationServer)(nil), |
| 478 | Methods: []grpc.MethodDesc{ |
| 479 | { |
| 480 | MethodName: "SetConnection", |
| 481 | Handler: _Configuration_SetConnection_Handler, |
| 482 | }, |
| 483 | { |
| 484 | MethodName: "SetAffinity", |
| 485 | Handler: _Configuration_SetAffinity_Handler, |
| 486 | }, |
William Kurkian | 9f2e64c | 2019-04-16 15:11:44 -0400 | [diff] [blame] | 487 | { |
| 488 | MethodName: "GetGoroutineCount", |
| 489 | Handler: _Configuration_GetGoroutineCount_Handler, |
| 490 | }, |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 491 | }, |
| 492 | Streams: []grpc.StreamDesc{}, |
| 493 | Metadata: "voltha_protos/afrouter.proto", |
| 494 | } |