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