github.com/onosproject/onos-api/go@v0.10.32/onos/a1t/a1/ei.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: onos/a1t/a1/ei.proto 3 4 // Package onos.a1t.a1 defines the interior gRPC interfaces for xApps to interact with A1T. 5 6 package a1 7 8 import ( 9 context "context" 10 fmt "fmt" 11 _ "github.com/gogo/protobuf/gogoproto" 12 proto "github.com/gogo/protobuf/proto" 13 golang_proto "github.com/golang/protobuf/proto" 14 grpc "google.golang.org/grpc" 15 codes "google.golang.org/grpc/codes" 16 status "google.golang.org/grpc/status" 17 io "io" 18 math "math" 19 math_bits "math/bits" 20 ) 21 22 // Reference imports to suppress errors if they are not otherwise used. 23 var _ = proto.Marshal 24 var _ = golang_proto.Marshal 25 var _ = fmt.Errorf 26 var _ = math.Inf 27 28 // This is a compile-time assertion to ensure that this generated file 29 // is compatible with the proto package it is being compiled against. 30 // A compilation error at this line likely means your copy of the 31 // proto package needs to be updated. 32 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 33 34 type EIRequestMessage struct { 35 EiJobId string `protobuf:"bytes,1,opt,name=ei_job_id,json=eiJobId,proto3" json:"ei_job_id,omitempty"` 36 Message *RequestMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 37 } 38 39 func (m *EIRequestMessage) Reset() { *m = EIRequestMessage{} } 40 func (m *EIRequestMessage) String() string { return proto.CompactTextString(m) } 41 func (*EIRequestMessage) ProtoMessage() {} 42 func (*EIRequestMessage) Descriptor() ([]byte, []int) { 43 return fileDescriptor_628d83a4c6742c6e, []int{0} 44 } 45 func (m *EIRequestMessage) XXX_Unmarshal(b []byte) error { 46 return m.Unmarshal(b) 47 } 48 func (m *EIRequestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 49 if deterministic { 50 return xxx_messageInfo_EIRequestMessage.Marshal(b, m, deterministic) 51 } else { 52 b = b[:cap(b)] 53 n, err := m.MarshalToSizedBuffer(b) 54 if err != nil { 55 return nil, err 56 } 57 return b[:n], nil 58 } 59 } 60 func (m *EIRequestMessage) XXX_Merge(src proto.Message) { 61 xxx_messageInfo_EIRequestMessage.Merge(m, src) 62 } 63 func (m *EIRequestMessage) XXX_Size() int { 64 return m.Size() 65 } 66 func (m *EIRequestMessage) XXX_DiscardUnknown() { 67 xxx_messageInfo_EIRequestMessage.DiscardUnknown(m) 68 } 69 70 var xxx_messageInfo_EIRequestMessage proto.InternalMessageInfo 71 72 func (m *EIRequestMessage) GetEiJobId() string { 73 if m != nil { 74 return m.EiJobId 75 } 76 return "" 77 } 78 79 func (m *EIRequestMessage) GetMessage() *RequestMessage { 80 if m != nil { 81 return m.Message 82 } 83 return nil 84 } 85 86 type EIResultMessage struct { 87 EiJobId string `protobuf:"bytes,1,opt,name=ei_job_id,json=eiJobId,proto3" json:"ei_job_id,omitempty"` 88 Message *ResultMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 89 } 90 91 func (m *EIResultMessage) Reset() { *m = EIResultMessage{} } 92 func (m *EIResultMessage) String() string { return proto.CompactTextString(m) } 93 func (*EIResultMessage) ProtoMessage() {} 94 func (*EIResultMessage) Descriptor() ([]byte, []int) { 95 return fileDescriptor_628d83a4c6742c6e, []int{1} 96 } 97 func (m *EIResultMessage) XXX_Unmarshal(b []byte) error { 98 return m.Unmarshal(b) 99 } 100 func (m *EIResultMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 101 if deterministic { 102 return xxx_messageInfo_EIResultMessage.Marshal(b, m, deterministic) 103 } else { 104 b = b[:cap(b)] 105 n, err := m.MarshalToSizedBuffer(b) 106 if err != nil { 107 return nil, err 108 } 109 return b[:n], nil 110 } 111 } 112 func (m *EIResultMessage) XXX_Merge(src proto.Message) { 113 xxx_messageInfo_EIResultMessage.Merge(m, src) 114 } 115 func (m *EIResultMessage) XXX_Size() int { 116 return m.Size() 117 } 118 func (m *EIResultMessage) XXX_DiscardUnknown() { 119 xxx_messageInfo_EIResultMessage.DiscardUnknown(m) 120 } 121 122 var xxx_messageInfo_EIResultMessage proto.InternalMessageInfo 123 124 func (m *EIResultMessage) GetEiJobId() string { 125 if m != nil { 126 return m.EiJobId 127 } 128 return "" 129 } 130 131 func (m *EIResultMessage) GetMessage() *ResultMessage { 132 if m != nil { 133 return m.Message 134 } 135 return nil 136 } 137 138 type EIStatusMessage struct { 139 EiJobId string `protobuf:"bytes,1,opt,name=ei_job_id,json=eiJobId,proto3" json:"ei_job_id,omitempty"` 140 Message *StatusMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 141 } 142 143 func (m *EIStatusMessage) Reset() { *m = EIStatusMessage{} } 144 func (m *EIStatusMessage) String() string { return proto.CompactTextString(m) } 145 func (*EIStatusMessage) ProtoMessage() {} 146 func (*EIStatusMessage) Descriptor() ([]byte, []int) { 147 return fileDescriptor_628d83a4c6742c6e, []int{2} 148 } 149 func (m *EIStatusMessage) XXX_Unmarshal(b []byte) error { 150 return m.Unmarshal(b) 151 } 152 func (m *EIStatusMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 153 if deterministic { 154 return xxx_messageInfo_EIStatusMessage.Marshal(b, m, deterministic) 155 } else { 156 b = b[:cap(b)] 157 n, err := m.MarshalToSizedBuffer(b) 158 if err != nil { 159 return nil, err 160 } 161 return b[:n], nil 162 } 163 } 164 func (m *EIStatusMessage) XXX_Merge(src proto.Message) { 165 xxx_messageInfo_EIStatusMessage.Merge(m, src) 166 } 167 func (m *EIStatusMessage) XXX_Size() int { 168 return m.Size() 169 } 170 func (m *EIStatusMessage) XXX_DiscardUnknown() { 171 xxx_messageInfo_EIStatusMessage.DiscardUnknown(m) 172 } 173 174 var xxx_messageInfo_EIStatusMessage proto.InternalMessageInfo 175 176 func (m *EIStatusMessage) GetEiJobId() string { 177 if m != nil { 178 return m.EiJobId 179 } 180 return "" 181 } 182 183 func (m *EIStatusMessage) GetMessage() *StatusMessage { 184 if m != nil { 185 return m.Message 186 } 187 return nil 188 } 189 190 type EIAckMessage struct { 191 EiJobId string `protobuf:"bytes,1,opt,name=ei_job_id,json=eiJobId,proto3" json:"ei_job_id,omitempty"` 192 Message *AckMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 193 } 194 195 func (m *EIAckMessage) Reset() { *m = EIAckMessage{} } 196 func (m *EIAckMessage) String() string { return proto.CompactTextString(m) } 197 func (*EIAckMessage) ProtoMessage() {} 198 func (*EIAckMessage) Descriptor() ([]byte, []int) { 199 return fileDescriptor_628d83a4c6742c6e, []int{3} 200 } 201 func (m *EIAckMessage) XXX_Unmarshal(b []byte) error { 202 return m.Unmarshal(b) 203 } 204 func (m *EIAckMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 205 if deterministic { 206 return xxx_messageInfo_EIAckMessage.Marshal(b, m, deterministic) 207 } else { 208 b = b[:cap(b)] 209 n, err := m.MarshalToSizedBuffer(b) 210 if err != nil { 211 return nil, err 212 } 213 return b[:n], nil 214 } 215 } 216 func (m *EIAckMessage) XXX_Merge(src proto.Message) { 217 xxx_messageInfo_EIAckMessage.Merge(m, src) 218 } 219 func (m *EIAckMessage) XXX_Size() int { 220 return m.Size() 221 } 222 func (m *EIAckMessage) XXX_DiscardUnknown() { 223 xxx_messageInfo_EIAckMessage.DiscardUnknown(m) 224 } 225 226 var xxx_messageInfo_EIAckMessage proto.InternalMessageInfo 227 228 func (m *EIAckMessage) GetEiJobId() string { 229 if m != nil { 230 return m.EiJobId 231 } 232 return "" 233 } 234 235 func (m *EIAckMessage) GetMessage() *AckMessage { 236 if m != nil { 237 return m.Message 238 } 239 return nil 240 } 241 242 func init() { 243 proto.RegisterType((*EIRequestMessage)(nil), "onos.a1t.a1.EIRequestMessage") 244 golang_proto.RegisterType((*EIRequestMessage)(nil), "onos.a1t.a1.EIRequestMessage") 245 proto.RegisterType((*EIResultMessage)(nil), "onos.a1t.a1.EIResultMessage") 246 golang_proto.RegisterType((*EIResultMessage)(nil), "onos.a1t.a1.EIResultMessage") 247 proto.RegisterType((*EIStatusMessage)(nil), "onos.a1t.a1.EIStatusMessage") 248 golang_proto.RegisterType((*EIStatusMessage)(nil), "onos.a1t.a1.EIStatusMessage") 249 proto.RegisterType((*EIAckMessage)(nil), "onos.a1t.a1.EIAckMessage") 250 golang_proto.RegisterType((*EIAckMessage)(nil), "onos.a1t.a1.EIAckMessage") 251 } 252 253 func init() { proto.RegisterFile("onos/a1t/a1/ei.proto", fileDescriptor_628d83a4c6742c6e) } 254 func init() { golang_proto.RegisterFile("onos/a1t/a1/ei.proto", fileDescriptor_628d83a4c6742c6e) } 255 256 var fileDescriptor_628d83a4c6742c6e = []byte{ 257 // 368 bytes of a gzipped FileDescriptorProto 258 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xc1, 0x4e, 0xf2, 0x40, 259 0x10, 0x80, 0xd9, 0x3f, 0x7f, 0x24, 0x0c, 0x26, 0x6a, 0x25, 0x11, 0x2b, 0x6e, 0x08, 0x27, 0x4e, 260 0xad, 0x45, 0x7d, 0x00, 0x0d, 0x3d, 0x94, 0x08, 0x89, 0x34, 0x1e, 0x0d, 0xd9, 0xc2, 0x48, 0x56, 261 0xd1, 0x45, 0xba, 0x25, 0xf1, 0x2d, 0x7c, 0x1d, 0x6f, 0x1e, 0x3d, 0x72, 0xf4, 0x68, 0xda, 0x17, 262 0x31, 0x6d, 0xa3, 0xb4, 0x25, 0x46, 0x12, 0x7b, 0x6b, 0x66, 0x67, 0xbf, 0x6f, 0x3a, 0x33, 0x0b, 263 0x15, 0xf1, 0x20, 0x5c, 0x9d, 0x19, 0x52, 0x67, 0x86, 0x8e, 0x5c, 0x9b, 0xce, 0x84, 0x14, 0x4a, 264 0x39, 0x8c, 0x6a, 0xcc, 0x90, 0x1a, 0x33, 0xd4, 0xca, 0x58, 0x8c, 0x45, 0x14, 0xd7, 0xc3, 0xaf, 265 0x38, 0x45, 0x4d, 0x5d, 0x64, 0x46, 0x1c, 0x6d, 0x20, 0x6c, 0x9b, 0x56, 0x1f, 0x1f, 0x3d, 0x74, 266 0x65, 0x17, 0x5d, 0x97, 0x8d, 0x51, 0x51, 0xa1, 0x84, 0x7c, 0x70, 0x2b, 0x9c, 0x01, 0x1f, 0x55, 267 0x49, 0x9d, 0x34, 0x4b, 0xfd, 0x22, 0xf2, 0x8e, 0x70, 0xac, 0x91, 0x72, 0x0a, 0xc5, 0xfb, 0x38, 268 0xad, 0xfa, 0xaf, 0x4e, 0x9a, 0xe5, 0xd6, 0x81, 0x96, 0x50, 0x6b, 0x69, 0x52, 0xff, 0x2b, 0xb7, 269 0x31, 0x84, 0xad, 0x50, 0xe3, 0x7a, 0x93, 0xb5, 0x2c, 0x27, 0x59, 0x8b, 0x9a, 0xb1, 0x24, 0x40, 270 0x19, 0x89, 0x2d, 0x99, 0xf4, 0xdc, 0x1c, 0x24, 0x29, 0xd0, 0x52, 0x72, 0x0d, 0x9b, 0xa6, 0x75, 271 0x36, 0xbc, 0x5b, 0xc7, 0x60, 0x64, 0x0d, 0x7b, 0x29, 0xc3, 0x92, 0xf2, 0x8d, 0x6f, 0xbd, 0xfc, 272 0x87, 0x92, 0x69, 0xd9, 0x38, 0x9b, 0xf3, 0x21, 0x2a, 0x1d, 0x28, 0x9a, 0xd6, 0xa5, 0x87, 0xb3, 273 0x27, 0xa5, 0x96, 0xba, 0x9a, 0x69, 0xa6, 0x7a, 0xb8, 0x72, 0x9a, 0x9c, 0x43, 0x93, 0x1c, 0x11, 274 0xa5, 0x0b, 0x60, 0x5a, 0x1d, 0xe1, 0xd8, 0x28, 0xbd, 0xe9, 0xdf, 0x71, 0x3d, 0x28, 0x47, 0xb8, 275 0xab, 0xe9, 0x88, 0x49, 0xcc, 0x8f, 0xd7, 0xc6, 0x09, 0xe6, 0xc1, 0xb3, 0xc3, 0xc5, 0x0e, 0x7f, 276 0x37, 0x1a, 0x63, 0x4e, 0x3d, 0xbc, 0x80, 0x9d, 0x04, 0xb4, 0x27, 0x24, 0xbf, 0x59, 0xa5, 0xa6, 277 0x16, 0x47, 0xdd, 0xcf, 0x9c, 0x26, 0x56, 0xa7, 0x07, 0xbb, 0x11, 0x2d, 0x2e, 0xa3, 0x8d, 0x13, 278 0x3e, 0xff, 0xbd, 0xca, 0x9f, 0x79, 0xe7, 0xb5, 0x37, 0x9f, 0x92, 0x85, 0x4f, 0xc9, 0x87, 0x4f, 279 0xc9, 0x73, 0x40, 0x0b, 0xaf, 0x01, 0x25, 0x8b, 0x80, 0x16, 0xde, 0x03, 0x5a, 0x70, 0x36, 0xa2, 280 0x07, 0x7f, 0xfc, 0x19, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x1e, 0x16, 0x09, 0x41, 0x04, 0x00, 0x00, 281 } 282 283 // Reference imports to suppress errors if they are not otherwise used. 284 var _ context.Context 285 var _ grpc.ClientConn 286 287 // This is a compile-time assertion to ensure that this generated file 288 // is compatible with the grpc package it is being compiled against. 289 const _ = grpc.SupportPackageIsVersion4 290 291 // EIServiceClient is the client API for EIService service. 292 // 293 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 294 type EIServiceClient interface { 295 EIQuery(ctx context.Context, opts ...grpc.CallOption) (EIService_EIQueryClient, error) 296 EIJobSetup(ctx context.Context, opts ...grpc.CallOption) (EIService_EIJobSetupClient, error) 297 EIJobUpdate(ctx context.Context, opts ...grpc.CallOption) (EIService_EIJobUpdateClient, error) 298 EIJobDelete(ctx context.Context, opts ...grpc.CallOption) (EIService_EIJobDeleteClient, error) 299 EIJobStatusQuery(ctx context.Context, opts ...grpc.CallOption) (EIService_EIJobStatusQueryClient, error) 300 EIJobStatusNotify(ctx context.Context, in *EIStatusMessage, opts ...grpc.CallOption) (*EIAckMessage, error) 301 EIJobResultDelivery(ctx context.Context, in *EIResultMessage, opts ...grpc.CallOption) (*EIAckMessage, error) 302 } 303 304 type eIServiceClient struct { 305 cc *grpc.ClientConn 306 } 307 308 func NewEIServiceClient(cc *grpc.ClientConn) EIServiceClient { 309 return &eIServiceClient{cc} 310 } 311 312 func (c *eIServiceClient) EIQuery(ctx context.Context, opts ...grpc.CallOption) (EIService_EIQueryClient, error) { 313 stream, err := c.cc.NewStream(ctx, &_EIService_serviceDesc.Streams[0], "/onos.a1t.a1.EIService/EIQuery", opts...) 314 if err != nil { 315 return nil, err 316 } 317 x := &eIServiceEIQueryClient{stream} 318 return x, nil 319 } 320 321 type EIService_EIQueryClient interface { 322 Send(*EIResultMessage) error 323 Recv() (*EIRequestMessage, error) 324 grpc.ClientStream 325 } 326 327 type eIServiceEIQueryClient struct { 328 grpc.ClientStream 329 } 330 331 func (x *eIServiceEIQueryClient) Send(m *EIResultMessage) error { 332 return x.ClientStream.SendMsg(m) 333 } 334 335 func (x *eIServiceEIQueryClient) Recv() (*EIRequestMessage, error) { 336 m := new(EIRequestMessage) 337 if err := x.ClientStream.RecvMsg(m); err != nil { 338 return nil, err 339 } 340 return m, nil 341 } 342 343 func (c *eIServiceClient) EIJobSetup(ctx context.Context, opts ...grpc.CallOption) (EIService_EIJobSetupClient, error) { 344 stream, err := c.cc.NewStream(ctx, &_EIService_serviceDesc.Streams[1], "/onos.a1t.a1.EIService/EIJobSetup", opts...) 345 if err != nil { 346 return nil, err 347 } 348 x := &eIServiceEIJobSetupClient{stream} 349 return x, nil 350 } 351 352 type EIService_EIJobSetupClient interface { 353 Send(*EIResultMessage) error 354 Recv() (*EIRequestMessage, error) 355 grpc.ClientStream 356 } 357 358 type eIServiceEIJobSetupClient struct { 359 grpc.ClientStream 360 } 361 362 func (x *eIServiceEIJobSetupClient) Send(m *EIResultMessage) error { 363 return x.ClientStream.SendMsg(m) 364 } 365 366 func (x *eIServiceEIJobSetupClient) Recv() (*EIRequestMessage, error) { 367 m := new(EIRequestMessage) 368 if err := x.ClientStream.RecvMsg(m); err != nil { 369 return nil, err 370 } 371 return m, nil 372 } 373 374 func (c *eIServiceClient) EIJobUpdate(ctx context.Context, opts ...grpc.CallOption) (EIService_EIJobUpdateClient, error) { 375 stream, err := c.cc.NewStream(ctx, &_EIService_serviceDesc.Streams[2], "/onos.a1t.a1.EIService/EIJobUpdate", opts...) 376 if err != nil { 377 return nil, err 378 } 379 x := &eIServiceEIJobUpdateClient{stream} 380 return x, nil 381 } 382 383 type EIService_EIJobUpdateClient interface { 384 Send(*EIResultMessage) error 385 Recv() (*EIRequestMessage, error) 386 grpc.ClientStream 387 } 388 389 type eIServiceEIJobUpdateClient struct { 390 grpc.ClientStream 391 } 392 393 func (x *eIServiceEIJobUpdateClient) Send(m *EIResultMessage) error { 394 return x.ClientStream.SendMsg(m) 395 } 396 397 func (x *eIServiceEIJobUpdateClient) Recv() (*EIRequestMessage, error) { 398 m := new(EIRequestMessage) 399 if err := x.ClientStream.RecvMsg(m); err != nil { 400 return nil, err 401 } 402 return m, nil 403 } 404 405 func (c *eIServiceClient) EIJobDelete(ctx context.Context, opts ...grpc.CallOption) (EIService_EIJobDeleteClient, error) { 406 stream, err := c.cc.NewStream(ctx, &_EIService_serviceDesc.Streams[3], "/onos.a1t.a1.EIService/EIJobDelete", opts...) 407 if err != nil { 408 return nil, err 409 } 410 x := &eIServiceEIJobDeleteClient{stream} 411 return x, nil 412 } 413 414 type EIService_EIJobDeleteClient interface { 415 Send(*EIResultMessage) error 416 Recv() (*EIRequestMessage, error) 417 grpc.ClientStream 418 } 419 420 type eIServiceEIJobDeleteClient struct { 421 grpc.ClientStream 422 } 423 424 func (x *eIServiceEIJobDeleteClient) Send(m *EIResultMessage) error { 425 return x.ClientStream.SendMsg(m) 426 } 427 428 func (x *eIServiceEIJobDeleteClient) Recv() (*EIRequestMessage, error) { 429 m := new(EIRequestMessage) 430 if err := x.ClientStream.RecvMsg(m); err != nil { 431 return nil, err 432 } 433 return m, nil 434 } 435 436 func (c *eIServiceClient) EIJobStatusQuery(ctx context.Context, opts ...grpc.CallOption) (EIService_EIJobStatusQueryClient, error) { 437 stream, err := c.cc.NewStream(ctx, &_EIService_serviceDesc.Streams[4], "/onos.a1t.a1.EIService/EIJobStatusQuery", opts...) 438 if err != nil { 439 return nil, err 440 } 441 x := &eIServiceEIJobStatusQueryClient{stream} 442 return x, nil 443 } 444 445 type EIService_EIJobStatusQueryClient interface { 446 Send(*EIResultMessage) error 447 Recv() (*EIRequestMessage, error) 448 grpc.ClientStream 449 } 450 451 type eIServiceEIJobStatusQueryClient struct { 452 grpc.ClientStream 453 } 454 455 func (x *eIServiceEIJobStatusQueryClient) Send(m *EIResultMessage) error { 456 return x.ClientStream.SendMsg(m) 457 } 458 459 func (x *eIServiceEIJobStatusQueryClient) Recv() (*EIRequestMessage, error) { 460 m := new(EIRequestMessage) 461 if err := x.ClientStream.RecvMsg(m); err != nil { 462 return nil, err 463 } 464 return m, nil 465 } 466 467 func (c *eIServiceClient) EIJobStatusNotify(ctx context.Context, in *EIStatusMessage, opts ...grpc.CallOption) (*EIAckMessage, error) { 468 out := new(EIAckMessage) 469 err := c.cc.Invoke(ctx, "/onos.a1t.a1.EIService/EIJobStatusNotify", in, out, opts...) 470 if err != nil { 471 return nil, err 472 } 473 return out, nil 474 } 475 476 func (c *eIServiceClient) EIJobResultDelivery(ctx context.Context, in *EIResultMessage, opts ...grpc.CallOption) (*EIAckMessage, error) { 477 out := new(EIAckMessage) 478 err := c.cc.Invoke(ctx, "/onos.a1t.a1.EIService/EIJobResultDelivery", in, out, opts...) 479 if err != nil { 480 return nil, err 481 } 482 return out, nil 483 } 484 485 // EIServiceServer is the server API for EIService service. 486 type EIServiceServer interface { 487 EIQuery(EIService_EIQueryServer) error 488 EIJobSetup(EIService_EIJobSetupServer) error 489 EIJobUpdate(EIService_EIJobUpdateServer) error 490 EIJobDelete(EIService_EIJobDeleteServer) error 491 EIJobStatusQuery(EIService_EIJobStatusQueryServer) error 492 EIJobStatusNotify(context.Context, *EIStatusMessage) (*EIAckMessage, error) 493 EIJobResultDelivery(context.Context, *EIResultMessage) (*EIAckMessage, error) 494 } 495 496 // UnimplementedEIServiceServer can be embedded to have forward compatible implementations. 497 type UnimplementedEIServiceServer struct { 498 } 499 500 func (*UnimplementedEIServiceServer) EIQuery(srv EIService_EIQueryServer) error { 501 return status.Errorf(codes.Unimplemented, "method EIQuery not implemented") 502 } 503 func (*UnimplementedEIServiceServer) EIJobSetup(srv EIService_EIJobSetupServer) error { 504 return status.Errorf(codes.Unimplemented, "method EIJobSetup not implemented") 505 } 506 func (*UnimplementedEIServiceServer) EIJobUpdate(srv EIService_EIJobUpdateServer) error { 507 return status.Errorf(codes.Unimplemented, "method EIJobUpdate not implemented") 508 } 509 func (*UnimplementedEIServiceServer) EIJobDelete(srv EIService_EIJobDeleteServer) error { 510 return status.Errorf(codes.Unimplemented, "method EIJobDelete not implemented") 511 } 512 func (*UnimplementedEIServiceServer) EIJobStatusQuery(srv EIService_EIJobStatusQueryServer) error { 513 return status.Errorf(codes.Unimplemented, "method EIJobStatusQuery not implemented") 514 } 515 func (*UnimplementedEIServiceServer) EIJobStatusNotify(ctx context.Context, req *EIStatusMessage) (*EIAckMessage, error) { 516 return nil, status.Errorf(codes.Unimplemented, "method EIJobStatusNotify not implemented") 517 } 518 func (*UnimplementedEIServiceServer) EIJobResultDelivery(ctx context.Context, req *EIResultMessage) (*EIAckMessage, error) { 519 return nil, status.Errorf(codes.Unimplemented, "method EIJobResultDelivery not implemented") 520 } 521 522 func RegisterEIServiceServer(s *grpc.Server, srv EIServiceServer) { 523 s.RegisterService(&_EIService_serviceDesc, srv) 524 } 525 526 func _EIService_EIQuery_Handler(srv interface{}, stream grpc.ServerStream) error { 527 return srv.(EIServiceServer).EIQuery(&eIServiceEIQueryServer{stream}) 528 } 529 530 type EIService_EIQueryServer interface { 531 Send(*EIRequestMessage) error 532 Recv() (*EIResultMessage, error) 533 grpc.ServerStream 534 } 535 536 type eIServiceEIQueryServer struct { 537 grpc.ServerStream 538 } 539 540 func (x *eIServiceEIQueryServer) Send(m *EIRequestMessage) error { 541 return x.ServerStream.SendMsg(m) 542 } 543 544 func (x *eIServiceEIQueryServer) Recv() (*EIResultMessage, error) { 545 m := new(EIResultMessage) 546 if err := x.ServerStream.RecvMsg(m); err != nil { 547 return nil, err 548 } 549 return m, nil 550 } 551 552 func _EIService_EIJobSetup_Handler(srv interface{}, stream grpc.ServerStream) error { 553 return srv.(EIServiceServer).EIJobSetup(&eIServiceEIJobSetupServer{stream}) 554 } 555 556 type EIService_EIJobSetupServer interface { 557 Send(*EIRequestMessage) error 558 Recv() (*EIResultMessage, error) 559 grpc.ServerStream 560 } 561 562 type eIServiceEIJobSetupServer struct { 563 grpc.ServerStream 564 } 565 566 func (x *eIServiceEIJobSetupServer) Send(m *EIRequestMessage) error { 567 return x.ServerStream.SendMsg(m) 568 } 569 570 func (x *eIServiceEIJobSetupServer) Recv() (*EIResultMessage, error) { 571 m := new(EIResultMessage) 572 if err := x.ServerStream.RecvMsg(m); err != nil { 573 return nil, err 574 } 575 return m, nil 576 } 577 578 func _EIService_EIJobUpdate_Handler(srv interface{}, stream grpc.ServerStream) error { 579 return srv.(EIServiceServer).EIJobUpdate(&eIServiceEIJobUpdateServer{stream}) 580 } 581 582 type EIService_EIJobUpdateServer interface { 583 Send(*EIRequestMessage) error 584 Recv() (*EIResultMessage, error) 585 grpc.ServerStream 586 } 587 588 type eIServiceEIJobUpdateServer struct { 589 grpc.ServerStream 590 } 591 592 func (x *eIServiceEIJobUpdateServer) Send(m *EIRequestMessage) error { 593 return x.ServerStream.SendMsg(m) 594 } 595 596 func (x *eIServiceEIJobUpdateServer) Recv() (*EIResultMessage, error) { 597 m := new(EIResultMessage) 598 if err := x.ServerStream.RecvMsg(m); err != nil { 599 return nil, err 600 } 601 return m, nil 602 } 603 604 func _EIService_EIJobDelete_Handler(srv interface{}, stream grpc.ServerStream) error { 605 return srv.(EIServiceServer).EIJobDelete(&eIServiceEIJobDeleteServer{stream}) 606 } 607 608 type EIService_EIJobDeleteServer interface { 609 Send(*EIRequestMessage) error 610 Recv() (*EIResultMessage, error) 611 grpc.ServerStream 612 } 613 614 type eIServiceEIJobDeleteServer struct { 615 grpc.ServerStream 616 } 617 618 func (x *eIServiceEIJobDeleteServer) Send(m *EIRequestMessage) error { 619 return x.ServerStream.SendMsg(m) 620 } 621 622 func (x *eIServiceEIJobDeleteServer) Recv() (*EIResultMessage, error) { 623 m := new(EIResultMessage) 624 if err := x.ServerStream.RecvMsg(m); err != nil { 625 return nil, err 626 } 627 return m, nil 628 } 629 630 func _EIService_EIJobStatusQuery_Handler(srv interface{}, stream grpc.ServerStream) error { 631 return srv.(EIServiceServer).EIJobStatusQuery(&eIServiceEIJobStatusQueryServer{stream}) 632 } 633 634 type EIService_EIJobStatusQueryServer interface { 635 Send(*EIRequestMessage) error 636 Recv() (*EIResultMessage, error) 637 grpc.ServerStream 638 } 639 640 type eIServiceEIJobStatusQueryServer struct { 641 grpc.ServerStream 642 } 643 644 func (x *eIServiceEIJobStatusQueryServer) Send(m *EIRequestMessage) error { 645 return x.ServerStream.SendMsg(m) 646 } 647 648 func (x *eIServiceEIJobStatusQueryServer) Recv() (*EIResultMessage, error) { 649 m := new(EIResultMessage) 650 if err := x.ServerStream.RecvMsg(m); err != nil { 651 return nil, err 652 } 653 return m, nil 654 } 655 656 func _EIService_EIJobStatusNotify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 657 in := new(EIStatusMessage) 658 if err := dec(in); err != nil { 659 return nil, err 660 } 661 if interceptor == nil { 662 return srv.(EIServiceServer).EIJobStatusNotify(ctx, in) 663 } 664 info := &grpc.UnaryServerInfo{ 665 Server: srv, 666 FullMethod: "/onos.a1t.a1.EIService/EIJobStatusNotify", 667 } 668 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 669 return srv.(EIServiceServer).EIJobStatusNotify(ctx, req.(*EIStatusMessage)) 670 } 671 return interceptor(ctx, in, info, handler) 672 } 673 674 func _EIService_EIJobResultDelivery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 675 in := new(EIResultMessage) 676 if err := dec(in); err != nil { 677 return nil, err 678 } 679 if interceptor == nil { 680 return srv.(EIServiceServer).EIJobResultDelivery(ctx, in) 681 } 682 info := &grpc.UnaryServerInfo{ 683 Server: srv, 684 FullMethod: "/onos.a1t.a1.EIService/EIJobResultDelivery", 685 } 686 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 687 return srv.(EIServiceServer).EIJobResultDelivery(ctx, req.(*EIResultMessage)) 688 } 689 return interceptor(ctx, in, info, handler) 690 } 691 692 var _EIService_serviceDesc = grpc.ServiceDesc{ 693 ServiceName: "onos.a1t.a1.EIService", 694 HandlerType: (*EIServiceServer)(nil), 695 Methods: []grpc.MethodDesc{ 696 { 697 MethodName: "EIJobStatusNotify", 698 Handler: _EIService_EIJobStatusNotify_Handler, 699 }, 700 { 701 MethodName: "EIJobResultDelivery", 702 Handler: _EIService_EIJobResultDelivery_Handler, 703 }, 704 }, 705 Streams: []grpc.StreamDesc{ 706 { 707 StreamName: "EIQuery", 708 Handler: _EIService_EIQuery_Handler, 709 ServerStreams: true, 710 ClientStreams: true, 711 }, 712 { 713 StreamName: "EIJobSetup", 714 Handler: _EIService_EIJobSetup_Handler, 715 ServerStreams: true, 716 ClientStreams: true, 717 }, 718 { 719 StreamName: "EIJobUpdate", 720 Handler: _EIService_EIJobUpdate_Handler, 721 ServerStreams: true, 722 ClientStreams: true, 723 }, 724 { 725 StreamName: "EIJobDelete", 726 Handler: _EIService_EIJobDelete_Handler, 727 ServerStreams: true, 728 ClientStreams: true, 729 }, 730 { 731 StreamName: "EIJobStatusQuery", 732 Handler: _EIService_EIJobStatusQuery_Handler, 733 ServerStreams: true, 734 ClientStreams: true, 735 }, 736 }, 737 Metadata: "onos/a1t/a1/ei.proto", 738 } 739 740 func (m *EIRequestMessage) Marshal() (dAtA []byte, err error) { 741 size := m.Size() 742 dAtA = make([]byte, size) 743 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 744 if err != nil { 745 return nil, err 746 } 747 return dAtA[:n], nil 748 } 749 750 func (m *EIRequestMessage) MarshalTo(dAtA []byte) (int, error) { 751 size := m.Size() 752 return m.MarshalToSizedBuffer(dAtA[:size]) 753 } 754 755 func (m *EIRequestMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { 756 i := len(dAtA) 757 _ = i 758 var l int 759 _ = l 760 if m.Message != nil { 761 { 762 size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) 763 if err != nil { 764 return 0, err 765 } 766 i -= size 767 i = encodeVarintEi(dAtA, i, uint64(size)) 768 } 769 i-- 770 dAtA[i] = 0x12 771 } 772 if len(m.EiJobId) > 0 { 773 i -= len(m.EiJobId) 774 copy(dAtA[i:], m.EiJobId) 775 i = encodeVarintEi(dAtA, i, uint64(len(m.EiJobId))) 776 i-- 777 dAtA[i] = 0xa 778 } 779 return len(dAtA) - i, nil 780 } 781 782 func (m *EIResultMessage) Marshal() (dAtA []byte, err error) { 783 size := m.Size() 784 dAtA = make([]byte, size) 785 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 786 if err != nil { 787 return nil, err 788 } 789 return dAtA[:n], nil 790 } 791 792 func (m *EIResultMessage) MarshalTo(dAtA []byte) (int, error) { 793 size := m.Size() 794 return m.MarshalToSizedBuffer(dAtA[:size]) 795 } 796 797 func (m *EIResultMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { 798 i := len(dAtA) 799 _ = i 800 var l int 801 _ = l 802 if m.Message != nil { 803 { 804 size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) 805 if err != nil { 806 return 0, err 807 } 808 i -= size 809 i = encodeVarintEi(dAtA, i, uint64(size)) 810 } 811 i-- 812 dAtA[i] = 0x12 813 } 814 if len(m.EiJobId) > 0 { 815 i -= len(m.EiJobId) 816 copy(dAtA[i:], m.EiJobId) 817 i = encodeVarintEi(dAtA, i, uint64(len(m.EiJobId))) 818 i-- 819 dAtA[i] = 0xa 820 } 821 return len(dAtA) - i, nil 822 } 823 824 func (m *EIStatusMessage) Marshal() (dAtA []byte, err error) { 825 size := m.Size() 826 dAtA = make([]byte, size) 827 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 828 if err != nil { 829 return nil, err 830 } 831 return dAtA[:n], nil 832 } 833 834 func (m *EIStatusMessage) MarshalTo(dAtA []byte) (int, error) { 835 size := m.Size() 836 return m.MarshalToSizedBuffer(dAtA[:size]) 837 } 838 839 func (m *EIStatusMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { 840 i := len(dAtA) 841 _ = i 842 var l int 843 _ = l 844 if m.Message != nil { 845 { 846 size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) 847 if err != nil { 848 return 0, err 849 } 850 i -= size 851 i = encodeVarintEi(dAtA, i, uint64(size)) 852 } 853 i-- 854 dAtA[i] = 0x12 855 } 856 if len(m.EiJobId) > 0 { 857 i -= len(m.EiJobId) 858 copy(dAtA[i:], m.EiJobId) 859 i = encodeVarintEi(dAtA, i, uint64(len(m.EiJobId))) 860 i-- 861 dAtA[i] = 0xa 862 } 863 return len(dAtA) - i, nil 864 } 865 866 func (m *EIAckMessage) Marshal() (dAtA []byte, err error) { 867 size := m.Size() 868 dAtA = make([]byte, size) 869 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 870 if err != nil { 871 return nil, err 872 } 873 return dAtA[:n], nil 874 } 875 876 func (m *EIAckMessage) MarshalTo(dAtA []byte) (int, error) { 877 size := m.Size() 878 return m.MarshalToSizedBuffer(dAtA[:size]) 879 } 880 881 func (m *EIAckMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { 882 i := len(dAtA) 883 _ = i 884 var l int 885 _ = l 886 if m.Message != nil { 887 { 888 size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) 889 if err != nil { 890 return 0, err 891 } 892 i -= size 893 i = encodeVarintEi(dAtA, i, uint64(size)) 894 } 895 i-- 896 dAtA[i] = 0x12 897 } 898 if len(m.EiJobId) > 0 { 899 i -= len(m.EiJobId) 900 copy(dAtA[i:], m.EiJobId) 901 i = encodeVarintEi(dAtA, i, uint64(len(m.EiJobId))) 902 i-- 903 dAtA[i] = 0xa 904 } 905 return len(dAtA) - i, nil 906 } 907 908 func encodeVarintEi(dAtA []byte, offset int, v uint64) int { 909 offset -= sovEi(v) 910 base := offset 911 for v >= 1<<7 { 912 dAtA[offset] = uint8(v&0x7f | 0x80) 913 v >>= 7 914 offset++ 915 } 916 dAtA[offset] = uint8(v) 917 return base 918 } 919 func (m *EIRequestMessage) Size() (n int) { 920 if m == nil { 921 return 0 922 } 923 var l int 924 _ = l 925 l = len(m.EiJobId) 926 if l > 0 { 927 n += 1 + l + sovEi(uint64(l)) 928 } 929 if m.Message != nil { 930 l = m.Message.Size() 931 n += 1 + l + sovEi(uint64(l)) 932 } 933 return n 934 } 935 936 func (m *EIResultMessage) Size() (n int) { 937 if m == nil { 938 return 0 939 } 940 var l int 941 _ = l 942 l = len(m.EiJobId) 943 if l > 0 { 944 n += 1 + l + sovEi(uint64(l)) 945 } 946 if m.Message != nil { 947 l = m.Message.Size() 948 n += 1 + l + sovEi(uint64(l)) 949 } 950 return n 951 } 952 953 func (m *EIStatusMessage) Size() (n int) { 954 if m == nil { 955 return 0 956 } 957 var l int 958 _ = l 959 l = len(m.EiJobId) 960 if l > 0 { 961 n += 1 + l + sovEi(uint64(l)) 962 } 963 if m.Message != nil { 964 l = m.Message.Size() 965 n += 1 + l + sovEi(uint64(l)) 966 } 967 return n 968 } 969 970 func (m *EIAckMessage) Size() (n int) { 971 if m == nil { 972 return 0 973 } 974 var l int 975 _ = l 976 l = len(m.EiJobId) 977 if l > 0 { 978 n += 1 + l + sovEi(uint64(l)) 979 } 980 if m.Message != nil { 981 l = m.Message.Size() 982 n += 1 + l + sovEi(uint64(l)) 983 } 984 return n 985 } 986 987 func sovEi(x uint64) (n int) { 988 return (math_bits.Len64(x|1) + 6) / 7 989 } 990 func sozEi(x uint64) (n int) { 991 return sovEi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 992 } 993 func (m *EIRequestMessage) Unmarshal(dAtA []byte) error { 994 l := len(dAtA) 995 iNdEx := 0 996 for iNdEx < l { 997 preIndex := iNdEx 998 var wire uint64 999 for shift := uint(0); ; shift += 7 { 1000 if shift >= 64 { 1001 return ErrIntOverflowEi 1002 } 1003 if iNdEx >= l { 1004 return io.ErrUnexpectedEOF 1005 } 1006 b := dAtA[iNdEx] 1007 iNdEx++ 1008 wire |= uint64(b&0x7F) << shift 1009 if b < 0x80 { 1010 break 1011 } 1012 } 1013 fieldNum := int32(wire >> 3) 1014 wireType := int(wire & 0x7) 1015 if wireType == 4 { 1016 return fmt.Errorf("proto: EIRequestMessage: wiretype end group for non-group") 1017 } 1018 if fieldNum <= 0 { 1019 return fmt.Errorf("proto: EIRequestMessage: illegal tag %d (wire type %d)", fieldNum, wire) 1020 } 1021 switch fieldNum { 1022 case 1: 1023 if wireType != 2 { 1024 return fmt.Errorf("proto: wrong wireType = %d for field EiJobId", wireType) 1025 } 1026 var stringLen uint64 1027 for shift := uint(0); ; shift += 7 { 1028 if shift >= 64 { 1029 return ErrIntOverflowEi 1030 } 1031 if iNdEx >= l { 1032 return io.ErrUnexpectedEOF 1033 } 1034 b := dAtA[iNdEx] 1035 iNdEx++ 1036 stringLen |= uint64(b&0x7F) << shift 1037 if b < 0x80 { 1038 break 1039 } 1040 } 1041 intStringLen := int(stringLen) 1042 if intStringLen < 0 { 1043 return ErrInvalidLengthEi 1044 } 1045 postIndex := iNdEx + intStringLen 1046 if postIndex < 0 { 1047 return ErrInvalidLengthEi 1048 } 1049 if postIndex > l { 1050 return io.ErrUnexpectedEOF 1051 } 1052 m.EiJobId = string(dAtA[iNdEx:postIndex]) 1053 iNdEx = postIndex 1054 case 2: 1055 if wireType != 2 { 1056 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 1057 } 1058 var msglen int 1059 for shift := uint(0); ; shift += 7 { 1060 if shift >= 64 { 1061 return ErrIntOverflowEi 1062 } 1063 if iNdEx >= l { 1064 return io.ErrUnexpectedEOF 1065 } 1066 b := dAtA[iNdEx] 1067 iNdEx++ 1068 msglen |= int(b&0x7F) << shift 1069 if b < 0x80 { 1070 break 1071 } 1072 } 1073 if msglen < 0 { 1074 return ErrInvalidLengthEi 1075 } 1076 postIndex := iNdEx + msglen 1077 if postIndex < 0 { 1078 return ErrInvalidLengthEi 1079 } 1080 if postIndex > l { 1081 return io.ErrUnexpectedEOF 1082 } 1083 if m.Message == nil { 1084 m.Message = &RequestMessage{} 1085 } 1086 if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1087 return err 1088 } 1089 iNdEx = postIndex 1090 default: 1091 iNdEx = preIndex 1092 skippy, err := skipEi(dAtA[iNdEx:]) 1093 if err != nil { 1094 return err 1095 } 1096 if (skippy < 0) || (iNdEx+skippy) < 0 { 1097 return ErrInvalidLengthEi 1098 } 1099 if (iNdEx + skippy) > l { 1100 return io.ErrUnexpectedEOF 1101 } 1102 iNdEx += skippy 1103 } 1104 } 1105 1106 if iNdEx > l { 1107 return io.ErrUnexpectedEOF 1108 } 1109 return nil 1110 } 1111 func (m *EIResultMessage) Unmarshal(dAtA []byte) error { 1112 l := len(dAtA) 1113 iNdEx := 0 1114 for iNdEx < l { 1115 preIndex := iNdEx 1116 var wire uint64 1117 for shift := uint(0); ; shift += 7 { 1118 if shift >= 64 { 1119 return ErrIntOverflowEi 1120 } 1121 if iNdEx >= l { 1122 return io.ErrUnexpectedEOF 1123 } 1124 b := dAtA[iNdEx] 1125 iNdEx++ 1126 wire |= uint64(b&0x7F) << shift 1127 if b < 0x80 { 1128 break 1129 } 1130 } 1131 fieldNum := int32(wire >> 3) 1132 wireType := int(wire & 0x7) 1133 if wireType == 4 { 1134 return fmt.Errorf("proto: EIResultMessage: wiretype end group for non-group") 1135 } 1136 if fieldNum <= 0 { 1137 return fmt.Errorf("proto: EIResultMessage: illegal tag %d (wire type %d)", fieldNum, wire) 1138 } 1139 switch fieldNum { 1140 case 1: 1141 if wireType != 2 { 1142 return fmt.Errorf("proto: wrong wireType = %d for field EiJobId", wireType) 1143 } 1144 var stringLen uint64 1145 for shift := uint(0); ; shift += 7 { 1146 if shift >= 64 { 1147 return ErrIntOverflowEi 1148 } 1149 if iNdEx >= l { 1150 return io.ErrUnexpectedEOF 1151 } 1152 b := dAtA[iNdEx] 1153 iNdEx++ 1154 stringLen |= uint64(b&0x7F) << shift 1155 if b < 0x80 { 1156 break 1157 } 1158 } 1159 intStringLen := int(stringLen) 1160 if intStringLen < 0 { 1161 return ErrInvalidLengthEi 1162 } 1163 postIndex := iNdEx + intStringLen 1164 if postIndex < 0 { 1165 return ErrInvalidLengthEi 1166 } 1167 if postIndex > l { 1168 return io.ErrUnexpectedEOF 1169 } 1170 m.EiJobId = string(dAtA[iNdEx:postIndex]) 1171 iNdEx = postIndex 1172 case 2: 1173 if wireType != 2 { 1174 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 1175 } 1176 var msglen int 1177 for shift := uint(0); ; shift += 7 { 1178 if shift >= 64 { 1179 return ErrIntOverflowEi 1180 } 1181 if iNdEx >= l { 1182 return io.ErrUnexpectedEOF 1183 } 1184 b := dAtA[iNdEx] 1185 iNdEx++ 1186 msglen |= int(b&0x7F) << shift 1187 if b < 0x80 { 1188 break 1189 } 1190 } 1191 if msglen < 0 { 1192 return ErrInvalidLengthEi 1193 } 1194 postIndex := iNdEx + msglen 1195 if postIndex < 0 { 1196 return ErrInvalidLengthEi 1197 } 1198 if postIndex > l { 1199 return io.ErrUnexpectedEOF 1200 } 1201 if m.Message == nil { 1202 m.Message = &ResultMessage{} 1203 } 1204 if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1205 return err 1206 } 1207 iNdEx = postIndex 1208 default: 1209 iNdEx = preIndex 1210 skippy, err := skipEi(dAtA[iNdEx:]) 1211 if err != nil { 1212 return err 1213 } 1214 if (skippy < 0) || (iNdEx+skippy) < 0 { 1215 return ErrInvalidLengthEi 1216 } 1217 if (iNdEx + skippy) > l { 1218 return io.ErrUnexpectedEOF 1219 } 1220 iNdEx += skippy 1221 } 1222 } 1223 1224 if iNdEx > l { 1225 return io.ErrUnexpectedEOF 1226 } 1227 return nil 1228 } 1229 func (m *EIStatusMessage) Unmarshal(dAtA []byte) error { 1230 l := len(dAtA) 1231 iNdEx := 0 1232 for iNdEx < l { 1233 preIndex := iNdEx 1234 var wire uint64 1235 for shift := uint(0); ; shift += 7 { 1236 if shift >= 64 { 1237 return ErrIntOverflowEi 1238 } 1239 if iNdEx >= l { 1240 return io.ErrUnexpectedEOF 1241 } 1242 b := dAtA[iNdEx] 1243 iNdEx++ 1244 wire |= uint64(b&0x7F) << shift 1245 if b < 0x80 { 1246 break 1247 } 1248 } 1249 fieldNum := int32(wire >> 3) 1250 wireType := int(wire & 0x7) 1251 if wireType == 4 { 1252 return fmt.Errorf("proto: EIStatusMessage: wiretype end group for non-group") 1253 } 1254 if fieldNum <= 0 { 1255 return fmt.Errorf("proto: EIStatusMessage: illegal tag %d (wire type %d)", fieldNum, wire) 1256 } 1257 switch fieldNum { 1258 case 1: 1259 if wireType != 2 { 1260 return fmt.Errorf("proto: wrong wireType = %d for field EiJobId", wireType) 1261 } 1262 var stringLen uint64 1263 for shift := uint(0); ; shift += 7 { 1264 if shift >= 64 { 1265 return ErrIntOverflowEi 1266 } 1267 if iNdEx >= l { 1268 return io.ErrUnexpectedEOF 1269 } 1270 b := dAtA[iNdEx] 1271 iNdEx++ 1272 stringLen |= uint64(b&0x7F) << shift 1273 if b < 0x80 { 1274 break 1275 } 1276 } 1277 intStringLen := int(stringLen) 1278 if intStringLen < 0 { 1279 return ErrInvalidLengthEi 1280 } 1281 postIndex := iNdEx + intStringLen 1282 if postIndex < 0 { 1283 return ErrInvalidLengthEi 1284 } 1285 if postIndex > l { 1286 return io.ErrUnexpectedEOF 1287 } 1288 m.EiJobId = string(dAtA[iNdEx:postIndex]) 1289 iNdEx = postIndex 1290 case 2: 1291 if wireType != 2 { 1292 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 1293 } 1294 var msglen int 1295 for shift := uint(0); ; shift += 7 { 1296 if shift >= 64 { 1297 return ErrIntOverflowEi 1298 } 1299 if iNdEx >= l { 1300 return io.ErrUnexpectedEOF 1301 } 1302 b := dAtA[iNdEx] 1303 iNdEx++ 1304 msglen |= int(b&0x7F) << shift 1305 if b < 0x80 { 1306 break 1307 } 1308 } 1309 if msglen < 0 { 1310 return ErrInvalidLengthEi 1311 } 1312 postIndex := iNdEx + msglen 1313 if postIndex < 0 { 1314 return ErrInvalidLengthEi 1315 } 1316 if postIndex > l { 1317 return io.ErrUnexpectedEOF 1318 } 1319 if m.Message == nil { 1320 m.Message = &StatusMessage{} 1321 } 1322 if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1323 return err 1324 } 1325 iNdEx = postIndex 1326 default: 1327 iNdEx = preIndex 1328 skippy, err := skipEi(dAtA[iNdEx:]) 1329 if err != nil { 1330 return err 1331 } 1332 if (skippy < 0) || (iNdEx+skippy) < 0 { 1333 return ErrInvalidLengthEi 1334 } 1335 if (iNdEx + skippy) > l { 1336 return io.ErrUnexpectedEOF 1337 } 1338 iNdEx += skippy 1339 } 1340 } 1341 1342 if iNdEx > l { 1343 return io.ErrUnexpectedEOF 1344 } 1345 return nil 1346 } 1347 func (m *EIAckMessage) Unmarshal(dAtA []byte) error { 1348 l := len(dAtA) 1349 iNdEx := 0 1350 for iNdEx < l { 1351 preIndex := iNdEx 1352 var wire uint64 1353 for shift := uint(0); ; shift += 7 { 1354 if shift >= 64 { 1355 return ErrIntOverflowEi 1356 } 1357 if iNdEx >= l { 1358 return io.ErrUnexpectedEOF 1359 } 1360 b := dAtA[iNdEx] 1361 iNdEx++ 1362 wire |= uint64(b&0x7F) << shift 1363 if b < 0x80 { 1364 break 1365 } 1366 } 1367 fieldNum := int32(wire >> 3) 1368 wireType := int(wire & 0x7) 1369 if wireType == 4 { 1370 return fmt.Errorf("proto: EIAckMessage: wiretype end group for non-group") 1371 } 1372 if fieldNum <= 0 { 1373 return fmt.Errorf("proto: EIAckMessage: illegal tag %d (wire type %d)", fieldNum, wire) 1374 } 1375 switch fieldNum { 1376 case 1: 1377 if wireType != 2 { 1378 return fmt.Errorf("proto: wrong wireType = %d for field EiJobId", wireType) 1379 } 1380 var stringLen uint64 1381 for shift := uint(0); ; shift += 7 { 1382 if shift >= 64 { 1383 return ErrIntOverflowEi 1384 } 1385 if iNdEx >= l { 1386 return io.ErrUnexpectedEOF 1387 } 1388 b := dAtA[iNdEx] 1389 iNdEx++ 1390 stringLen |= uint64(b&0x7F) << shift 1391 if b < 0x80 { 1392 break 1393 } 1394 } 1395 intStringLen := int(stringLen) 1396 if intStringLen < 0 { 1397 return ErrInvalidLengthEi 1398 } 1399 postIndex := iNdEx + intStringLen 1400 if postIndex < 0 { 1401 return ErrInvalidLengthEi 1402 } 1403 if postIndex > l { 1404 return io.ErrUnexpectedEOF 1405 } 1406 m.EiJobId = string(dAtA[iNdEx:postIndex]) 1407 iNdEx = postIndex 1408 case 2: 1409 if wireType != 2 { 1410 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 1411 } 1412 var msglen int 1413 for shift := uint(0); ; shift += 7 { 1414 if shift >= 64 { 1415 return ErrIntOverflowEi 1416 } 1417 if iNdEx >= l { 1418 return io.ErrUnexpectedEOF 1419 } 1420 b := dAtA[iNdEx] 1421 iNdEx++ 1422 msglen |= int(b&0x7F) << shift 1423 if b < 0x80 { 1424 break 1425 } 1426 } 1427 if msglen < 0 { 1428 return ErrInvalidLengthEi 1429 } 1430 postIndex := iNdEx + msglen 1431 if postIndex < 0 { 1432 return ErrInvalidLengthEi 1433 } 1434 if postIndex > l { 1435 return io.ErrUnexpectedEOF 1436 } 1437 if m.Message == nil { 1438 m.Message = &AckMessage{} 1439 } 1440 if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1441 return err 1442 } 1443 iNdEx = postIndex 1444 default: 1445 iNdEx = preIndex 1446 skippy, err := skipEi(dAtA[iNdEx:]) 1447 if err != nil { 1448 return err 1449 } 1450 if (skippy < 0) || (iNdEx+skippy) < 0 { 1451 return ErrInvalidLengthEi 1452 } 1453 if (iNdEx + skippy) > l { 1454 return io.ErrUnexpectedEOF 1455 } 1456 iNdEx += skippy 1457 } 1458 } 1459 1460 if iNdEx > l { 1461 return io.ErrUnexpectedEOF 1462 } 1463 return nil 1464 } 1465 func skipEi(dAtA []byte) (n int, err error) { 1466 l := len(dAtA) 1467 iNdEx := 0 1468 depth := 0 1469 for iNdEx < l { 1470 var wire uint64 1471 for shift := uint(0); ; shift += 7 { 1472 if shift >= 64 { 1473 return 0, ErrIntOverflowEi 1474 } 1475 if iNdEx >= l { 1476 return 0, io.ErrUnexpectedEOF 1477 } 1478 b := dAtA[iNdEx] 1479 iNdEx++ 1480 wire |= (uint64(b) & 0x7F) << shift 1481 if b < 0x80 { 1482 break 1483 } 1484 } 1485 wireType := int(wire & 0x7) 1486 switch wireType { 1487 case 0: 1488 for shift := uint(0); ; shift += 7 { 1489 if shift >= 64 { 1490 return 0, ErrIntOverflowEi 1491 } 1492 if iNdEx >= l { 1493 return 0, io.ErrUnexpectedEOF 1494 } 1495 iNdEx++ 1496 if dAtA[iNdEx-1] < 0x80 { 1497 break 1498 } 1499 } 1500 case 1: 1501 iNdEx += 8 1502 case 2: 1503 var length int 1504 for shift := uint(0); ; shift += 7 { 1505 if shift >= 64 { 1506 return 0, ErrIntOverflowEi 1507 } 1508 if iNdEx >= l { 1509 return 0, io.ErrUnexpectedEOF 1510 } 1511 b := dAtA[iNdEx] 1512 iNdEx++ 1513 length |= (int(b) & 0x7F) << shift 1514 if b < 0x80 { 1515 break 1516 } 1517 } 1518 if length < 0 { 1519 return 0, ErrInvalidLengthEi 1520 } 1521 iNdEx += length 1522 case 3: 1523 depth++ 1524 case 4: 1525 if depth == 0 { 1526 return 0, ErrUnexpectedEndOfGroupEi 1527 } 1528 depth-- 1529 case 5: 1530 iNdEx += 4 1531 default: 1532 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1533 } 1534 if iNdEx < 0 { 1535 return 0, ErrInvalidLengthEi 1536 } 1537 if depth == 0 { 1538 return iNdEx, nil 1539 } 1540 } 1541 return 0, io.ErrUnexpectedEOF 1542 } 1543 1544 var ( 1545 ErrInvalidLengthEi = fmt.Errorf("proto: negative length found during unmarshaling") 1546 ErrIntOverflowEi = fmt.Errorf("proto: integer overflow") 1547 ErrUnexpectedEndOfGroupEi = fmt.Errorf("proto: unexpected end of group") 1548 )