github.com/hyperledger/fabric-protos-go@v0.3.3/orderer/ab.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: orderer/ab.proto 3 4 package orderer 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 common "github.com/hyperledger/fabric-protos-go/common" 11 grpc "google.golang.org/grpc" 12 codes "google.golang.org/grpc/codes" 13 status "google.golang.org/grpc/status" 14 math "math" 15 ) 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = fmt.Errorf 20 var _ = math.Inf 21 22 // This is a compile-time assertion to ensure that this generated file 23 // is compatible with the proto package it is being compiled against. 24 // A compilation error at this line likely means your copy of the 25 // proto package needs to be updated. 26 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 27 28 // If BLOCK_UNTIL_READY is specified, the reply will block until the requested blocks are available, 29 // if FAIL_IF_NOT_READY is specified, the reply will return an error indicating that the block is not 30 // found. To request that all blocks be returned indefinitely as they are created, behavior should be 31 // set to BLOCK_UNTIL_READY and the stop should be set to specified with a number of MAX_UINT64 32 type SeekInfo_SeekBehavior int32 33 34 const ( 35 SeekInfo_BLOCK_UNTIL_READY SeekInfo_SeekBehavior = 0 36 SeekInfo_FAIL_IF_NOT_READY SeekInfo_SeekBehavior = 1 37 ) 38 39 var SeekInfo_SeekBehavior_name = map[int32]string{ 40 0: "BLOCK_UNTIL_READY", 41 1: "FAIL_IF_NOT_READY", 42 } 43 44 var SeekInfo_SeekBehavior_value = map[string]int32{ 45 "BLOCK_UNTIL_READY": 0, 46 "FAIL_IF_NOT_READY": 1, 47 } 48 49 func (x SeekInfo_SeekBehavior) String() string { 50 return proto.EnumName(SeekInfo_SeekBehavior_name, int32(x)) 51 } 52 53 func (SeekInfo_SeekBehavior) EnumDescriptor() ([]byte, []int) { 54 return fileDescriptor_79fce58dd8d86d62, []int{6, 0} 55 } 56 57 // SeekErrorTolerance indicates to the server how block provider errors should be tolerated. By default, 58 // if the deliver service detects a problem in the underlying block source (typically, in the orderer, 59 // a consenter error), it will begin to reject deliver requests. This is to prevent a client from waiting 60 // for blocks from an orderer which is stuck in an errored state. This is almost always the desired behavior 61 // and clients should stick with the default STRICT checking behavior. However, in some scenarios, particularly 62 // when attempting to recover from a crash or other corruption, it's desirable to force an orderer to respond 63 // with blocks on a best effort basis, even if the backing consensus implementation is in an errored state. 64 // In this case, set the SeekErrorResponse to BEST_EFFORT to ignore the consenter errors. 65 type SeekInfo_SeekErrorResponse int32 66 67 const ( 68 SeekInfo_STRICT SeekInfo_SeekErrorResponse = 0 69 SeekInfo_BEST_EFFORT SeekInfo_SeekErrorResponse = 1 70 ) 71 72 var SeekInfo_SeekErrorResponse_name = map[int32]string{ 73 0: "STRICT", 74 1: "BEST_EFFORT", 75 } 76 77 var SeekInfo_SeekErrorResponse_value = map[string]int32{ 78 "STRICT": 0, 79 "BEST_EFFORT": 1, 80 } 81 82 func (x SeekInfo_SeekErrorResponse) String() string { 83 return proto.EnumName(SeekInfo_SeekErrorResponse_name, int32(x)) 84 } 85 86 func (SeekInfo_SeekErrorResponse) EnumDescriptor() ([]byte, []int) { 87 return fileDescriptor_79fce58dd8d86d62, []int{6, 1} 88 } 89 90 // SeekContentType indicates what type of content to deliver in response to a request. If BLOCK is specified, 91 // the orderer will stream blocks back to the peer. This is the default behavior. If HEADER_WITH_SIG is specified, the 92 // orderer will stream only a the header and the signature, and the payload field will be set to nil. This allows 93 // the requester to ascertain that the respective signed block exists in the orderer (or cluster of orderers). 94 type SeekInfo_SeekContentType int32 95 96 const ( 97 SeekInfo_BLOCK SeekInfo_SeekContentType = 0 98 SeekInfo_HEADER_WITH_SIG SeekInfo_SeekContentType = 1 99 ) 100 101 var SeekInfo_SeekContentType_name = map[int32]string{ 102 0: "BLOCK", 103 1: "HEADER_WITH_SIG", 104 } 105 106 var SeekInfo_SeekContentType_value = map[string]int32{ 107 "BLOCK": 0, 108 "HEADER_WITH_SIG": 1, 109 } 110 111 func (x SeekInfo_SeekContentType) String() string { 112 return proto.EnumName(SeekInfo_SeekContentType_name, int32(x)) 113 } 114 115 func (SeekInfo_SeekContentType) EnumDescriptor() ([]byte, []int) { 116 return fileDescriptor_79fce58dd8d86d62, []int{6, 2} 117 } 118 119 type BroadcastResponse struct { 120 // Status code, which may be used to programatically respond to success/failure 121 Status common.Status `protobuf:"varint,1,opt,name=status,proto3,enum=common.Status" json:"status,omitempty"` 122 // Info string which may contain additional information about the status returned 123 Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` 124 XXX_NoUnkeyedLiteral struct{} `json:"-"` 125 XXX_unrecognized []byte `json:"-"` 126 XXX_sizecache int32 `json:"-"` 127 } 128 129 func (m *BroadcastResponse) Reset() { *m = BroadcastResponse{} } 130 func (m *BroadcastResponse) String() string { return proto.CompactTextString(m) } 131 func (*BroadcastResponse) ProtoMessage() {} 132 func (*BroadcastResponse) Descriptor() ([]byte, []int) { 133 return fileDescriptor_79fce58dd8d86d62, []int{0} 134 } 135 136 func (m *BroadcastResponse) XXX_Unmarshal(b []byte) error { 137 return xxx_messageInfo_BroadcastResponse.Unmarshal(m, b) 138 } 139 func (m *BroadcastResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 140 return xxx_messageInfo_BroadcastResponse.Marshal(b, m, deterministic) 141 } 142 func (m *BroadcastResponse) XXX_Merge(src proto.Message) { 143 xxx_messageInfo_BroadcastResponse.Merge(m, src) 144 } 145 func (m *BroadcastResponse) XXX_Size() int { 146 return xxx_messageInfo_BroadcastResponse.Size(m) 147 } 148 func (m *BroadcastResponse) XXX_DiscardUnknown() { 149 xxx_messageInfo_BroadcastResponse.DiscardUnknown(m) 150 } 151 152 var xxx_messageInfo_BroadcastResponse proto.InternalMessageInfo 153 154 func (m *BroadcastResponse) GetStatus() common.Status { 155 if m != nil { 156 return m.Status 157 } 158 return common.Status_UNKNOWN 159 } 160 161 func (m *BroadcastResponse) GetInfo() string { 162 if m != nil { 163 return m.Info 164 } 165 return "" 166 } 167 168 type SeekNewest struct { 169 XXX_NoUnkeyedLiteral struct{} `json:"-"` 170 XXX_unrecognized []byte `json:"-"` 171 XXX_sizecache int32 `json:"-"` 172 } 173 174 func (m *SeekNewest) Reset() { *m = SeekNewest{} } 175 func (m *SeekNewest) String() string { return proto.CompactTextString(m) } 176 func (*SeekNewest) ProtoMessage() {} 177 func (*SeekNewest) Descriptor() ([]byte, []int) { 178 return fileDescriptor_79fce58dd8d86d62, []int{1} 179 } 180 181 func (m *SeekNewest) XXX_Unmarshal(b []byte) error { 182 return xxx_messageInfo_SeekNewest.Unmarshal(m, b) 183 } 184 func (m *SeekNewest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 185 return xxx_messageInfo_SeekNewest.Marshal(b, m, deterministic) 186 } 187 func (m *SeekNewest) XXX_Merge(src proto.Message) { 188 xxx_messageInfo_SeekNewest.Merge(m, src) 189 } 190 func (m *SeekNewest) XXX_Size() int { 191 return xxx_messageInfo_SeekNewest.Size(m) 192 } 193 func (m *SeekNewest) XXX_DiscardUnknown() { 194 xxx_messageInfo_SeekNewest.DiscardUnknown(m) 195 } 196 197 var xxx_messageInfo_SeekNewest proto.InternalMessageInfo 198 199 type SeekOldest struct { 200 XXX_NoUnkeyedLiteral struct{} `json:"-"` 201 XXX_unrecognized []byte `json:"-"` 202 XXX_sizecache int32 `json:"-"` 203 } 204 205 func (m *SeekOldest) Reset() { *m = SeekOldest{} } 206 func (m *SeekOldest) String() string { return proto.CompactTextString(m) } 207 func (*SeekOldest) ProtoMessage() {} 208 func (*SeekOldest) Descriptor() ([]byte, []int) { 209 return fileDescriptor_79fce58dd8d86d62, []int{2} 210 } 211 212 func (m *SeekOldest) XXX_Unmarshal(b []byte) error { 213 return xxx_messageInfo_SeekOldest.Unmarshal(m, b) 214 } 215 func (m *SeekOldest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 216 return xxx_messageInfo_SeekOldest.Marshal(b, m, deterministic) 217 } 218 func (m *SeekOldest) XXX_Merge(src proto.Message) { 219 xxx_messageInfo_SeekOldest.Merge(m, src) 220 } 221 func (m *SeekOldest) XXX_Size() int { 222 return xxx_messageInfo_SeekOldest.Size(m) 223 } 224 func (m *SeekOldest) XXX_DiscardUnknown() { 225 xxx_messageInfo_SeekOldest.DiscardUnknown(m) 226 } 227 228 var xxx_messageInfo_SeekOldest proto.InternalMessageInfo 229 230 type SeekSpecified struct { 231 Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` 232 XXX_NoUnkeyedLiteral struct{} `json:"-"` 233 XXX_unrecognized []byte `json:"-"` 234 XXX_sizecache int32 `json:"-"` 235 } 236 237 func (m *SeekSpecified) Reset() { *m = SeekSpecified{} } 238 func (m *SeekSpecified) String() string { return proto.CompactTextString(m) } 239 func (*SeekSpecified) ProtoMessage() {} 240 func (*SeekSpecified) Descriptor() ([]byte, []int) { 241 return fileDescriptor_79fce58dd8d86d62, []int{3} 242 } 243 244 func (m *SeekSpecified) XXX_Unmarshal(b []byte) error { 245 return xxx_messageInfo_SeekSpecified.Unmarshal(m, b) 246 } 247 func (m *SeekSpecified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 248 return xxx_messageInfo_SeekSpecified.Marshal(b, m, deterministic) 249 } 250 func (m *SeekSpecified) XXX_Merge(src proto.Message) { 251 xxx_messageInfo_SeekSpecified.Merge(m, src) 252 } 253 func (m *SeekSpecified) XXX_Size() int { 254 return xxx_messageInfo_SeekSpecified.Size(m) 255 } 256 func (m *SeekSpecified) XXX_DiscardUnknown() { 257 xxx_messageInfo_SeekSpecified.DiscardUnknown(m) 258 } 259 260 var xxx_messageInfo_SeekSpecified proto.InternalMessageInfo 261 262 func (m *SeekSpecified) GetNumber() uint64 { 263 if m != nil { 264 return m.Number 265 } 266 return 0 267 } 268 269 // SeekNextCommit refers to the next block that will be committed 270 type SeekNextCommit struct { 271 XXX_NoUnkeyedLiteral struct{} `json:"-"` 272 XXX_unrecognized []byte `json:"-"` 273 XXX_sizecache int32 `json:"-"` 274 } 275 276 func (m *SeekNextCommit) Reset() { *m = SeekNextCommit{} } 277 func (m *SeekNextCommit) String() string { return proto.CompactTextString(m) } 278 func (*SeekNextCommit) ProtoMessage() {} 279 func (*SeekNextCommit) Descriptor() ([]byte, []int) { 280 return fileDescriptor_79fce58dd8d86d62, []int{4} 281 } 282 283 func (m *SeekNextCommit) XXX_Unmarshal(b []byte) error { 284 return xxx_messageInfo_SeekNextCommit.Unmarshal(m, b) 285 } 286 func (m *SeekNextCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 287 return xxx_messageInfo_SeekNextCommit.Marshal(b, m, deterministic) 288 } 289 func (m *SeekNextCommit) XXX_Merge(src proto.Message) { 290 xxx_messageInfo_SeekNextCommit.Merge(m, src) 291 } 292 func (m *SeekNextCommit) XXX_Size() int { 293 return xxx_messageInfo_SeekNextCommit.Size(m) 294 } 295 func (m *SeekNextCommit) XXX_DiscardUnknown() { 296 xxx_messageInfo_SeekNextCommit.DiscardUnknown(m) 297 } 298 299 var xxx_messageInfo_SeekNextCommit proto.InternalMessageInfo 300 301 type SeekPosition struct { 302 // Types that are valid to be assigned to Type: 303 // 304 // *SeekPosition_Newest 305 // *SeekPosition_Oldest 306 // *SeekPosition_Specified 307 // *SeekPosition_NextCommit 308 Type isSeekPosition_Type `protobuf_oneof:"Type"` 309 XXX_NoUnkeyedLiteral struct{} `json:"-"` 310 XXX_unrecognized []byte `json:"-"` 311 XXX_sizecache int32 `json:"-"` 312 } 313 314 func (m *SeekPosition) Reset() { *m = SeekPosition{} } 315 func (m *SeekPosition) String() string { return proto.CompactTextString(m) } 316 func (*SeekPosition) ProtoMessage() {} 317 func (*SeekPosition) Descriptor() ([]byte, []int) { 318 return fileDescriptor_79fce58dd8d86d62, []int{5} 319 } 320 321 func (m *SeekPosition) XXX_Unmarshal(b []byte) error { 322 return xxx_messageInfo_SeekPosition.Unmarshal(m, b) 323 } 324 func (m *SeekPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 325 return xxx_messageInfo_SeekPosition.Marshal(b, m, deterministic) 326 } 327 func (m *SeekPosition) XXX_Merge(src proto.Message) { 328 xxx_messageInfo_SeekPosition.Merge(m, src) 329 } 330 func (m *SeekPosition) XXX_Size() int { 331 return xxx_messageInfo_SeekPosition.Size(m) 332 } 333 func (m *SeekPosition) XXX_DiscardUnknown() { 334 xxx_messageInfo_SeekPosition.DiscardUnknown(m) 335 } 336 337 var xxx_messageInfo_SeekPosition proto.InternalMessageInfo 338 339 type isSeekPosition_Type interface { 340 isSeekPosition_Type() 341 } 342 343 type SeekPosition_Newest struct { 344 Newest *SeekNewest `protobuf:"bytes,1,opt,name=newest,proto3,oneof"` 345 } 346 347 type SeekPosition_Oldest struct { 348 Oldest *SeekOldest `protobuf:"bytes,2,opt,name=oldest,proto3,oneof"` 349 } 350 351 type SeekPosition_Specified struct { 352 Specified *SeekSpecified `protobuf:"bytes,3,opt,name=specified,proto3,oneof"` 353 } 354 355 type SeekPosition_NextCommit struct { 356 NextCommit *SeekNextCommit `protobuf:"bytes,4,opt,name=next_commit,json=nextCommit,proto3,oneof"` 357 } 358 359 func (*SeekPosition_Newest) isSeekPosition_Type() {} 360 361 func (*SeekPosition_Oldest) isSeekPosition_Type() {} 362 363 func (*SeekPosition_Specified) isSeekPosition_Type() {} 364 365 func (*SeekPosition_NextCommit) isSeekPosition_Type() {} 366 367 func (m *SeekPosition) GetType() isSeekPosition_Type { 368 if m != nil { 369 return m.Type 370 } 371 return nil 372 } 373 374 func (m *SeekPosition) GetNewest() *SeekNewest { 375 if x, ok := m.GetType().(*SeekPosition_Newest); ok { 376 return x.Newest 377 } 378 return nil 379 } 380 381 func (m *SeekPosition) GetOldest() *SeekOldest { 382 if x, ok := m.GetType().(*SeekPosition_Oldest); ok { 383 return x.Oldest 384 } 385 return nil 386 } 387 388 func (m *SeekPosition) GetSpecified() *SeekSpecified { 389 if x, ok := m.GetType().(*SeekPosition_Specified); ok { 390 return x.Specified 391 } 392 return nil 393 } 394 395 func (m *SeekPosition) GetNextCommit() *SeekNextCommit { 396 if x, ok := m.GetType().(*SeekPosition_NextCommit); ok { 397 return x.NextCommit 398 } 399 return nil 400 } 401 402 // XXX_OneofWrappers is for the internal use of the proto package. 403 func (*SeekPosition) XXX_OneofWrappers() []interface{} { 404 return []interface{}{ 405 (*SeekPosition_Newest)(nil), 406 (*SeekPosition_Oldest)(nil), 407 (*SeekPosition_Specified)(nil), 408 (*SeekPosition_NextCommit)(nil), 409 } 410 } 411 412 // SeekInfo specifies the range of requested blocks to return 413 // If the start position is not found, an error is immediately returned 414 // Otherwise, blocks are returned until a missing block is encountered, then behavior is dictated 415 // by the SeekBehavior specified. 416 type SeekInfo struct { 417 Start *SeekPosition `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` 418 Stop *SeekPosition `protobuf:"bytes,2,opt,name=stop,proto3" json:"stop,omitempty"` 419 Behavior SeekInfo_SeekBehavior `protobuf:"varint,3,opt,name=behavior,proto3,enum=orderer.SeekInfo_SeekBehavior" json:"behavior,omitempty"` 420 ErrorResponse SeekInfo_SeekErrorResponse `protobuf:"varint,4,opt,name=error_response,json=errorResponse,proto3,enum=orderer.SeekInfo_SeekErrorResponse" json:"error_response,omitempty"` 421 ContentType SeekInfo_SeekContentType `protobuf:"varint,5,opt,name=content_type,json=contentType,proto3,enum=orderer.SeekInfo_SeekContentType" json:"content_type,omitempty"` 422 XXX_NoUnkeyedLiteral struct{} `json:"-"` 423 XXX_unrecognized []byte `json:"-"` 424 XXX_sizecache int32 `json:"-"` 425 } 426 427 func (m *SeekInfo) Reset() { *m = SeekInfo{} } 428 func (m *SeekInfo) String() string { return proto.CompactTextString(m) } 429 func (*SeekInfo) ProtoMessage() {} 430 func (*SeekInfo) Descriptor() ([]byte, []int) { 431 return fileDescriptor_79fce58dd8d86d62, []int{6} 432 } 433 434 func (m *SeekInfo) XXX_Unmarshal(b []byte) error { 435 return xxx_messageInfo_SeekInfo.Unmarshal(m, b) 436 } 437 func (m *SeekInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 438 return xxx_messageInfo_SeekInfo.Marshal(b, m, deterministic) 439 } 440 func (m *SeekInfo) XXX_Merge(src proto.Message) { 441 xxx_messageInfo_SeekInfo.Merge(m, src) 442 } 443 func (m *SeekInfo) XXX_Size() int { 444 return xxx_messageInfo_SeekInfo.Size(m) 445 } 446 func (m *SeekInfo) XXX_DiscardUnknown() { 447 xxx_messageInfo_SeekInfo.DiscardUnknown(m) 448 } 449 450 var xxx_messageInfo_SeekInfo proto.InternalMessageInfo 451 452 func (m *SeekInfo) GetStart() *SeekPosition { 453 if m != nil { 454 return m.Start 455 } 456 return nil 457 } 458 459 func (m *SeekInfo) GetStop() *SeekPosition { 460 if m != nil { 461 return m.Stop 462 } 463 return nil 464 } 465 466 func (m *SeekInfo) GetBehavior() SeekInfo_SeekBehavior { 467 if m != nil { 468 return m.Behavior 469 } 470 return SeekInfo_BLOCK_UNTIL_READY 471 } 472 473 func (m *SeekInfo) GetErrorResponse() SeekInfo_SeekErrorResponse { 474 if m != nil { 475 return m.ErrorResponse 476 } 477 return SeekInfo_STRICT 478 } 479 480 func (m *SeekInfo) GetContentType() SeekInfo_SeekContentType { 481 if m != nil { 482 return m.ContentType 483 } 484 return SeekInfo_BLOCK 485 } 486 487 type DeliverResponse struct { 488 // Types that are valid to be assigned to Type: 489 // 490 // *DeliverResponse_Status 491 // *DeliverResponse_Block 492 Type isDeliverResponse_Type `protobuf_oneof:"Type"` 493 XXX_NoUnkeyedLiteral struct{} `json:"-"` 494 XXX_unrecognized []byte `json:"-"` 495 XXX_sizecache int32 `json:"-"` 496 } 497 498 func (m *DeliverResponse) Reset() { *m = DeliverResponse{} } 499 func (m *DeliverResponse) String() string { return proto.CompactTextString(m) } 500 func (*DeliverResponse) ProtoMessage() {} 501 func (*DeliverResponse) Descriptor() ([]byte, []int) { 502 return fileDescriptor_79fce58dd8d86d62, []int{7} 503 } 504 505 func (m *DeliverResponse) XXX_Unmarshal(b []byte) error { 506 return xxx_messageInfo_DeliverResponse.Unmarshal(m, b) 507 } 508 func (m *DeliverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 509 return xxx_messageInfo_DeliverResponse.Marshal(b, m, deterministic) 510 } 511 func (m *DeliverResponse) XXX_Merge(src proto.Message) { 512 xxx_messageInfo_DeliverResponse.Merge(m, src) 513 } 514 func (m *DeliverResponse) XXX_Size() int { 515 return xxx_messageInfo_DeliverResponse.Size(m) 516 } 517 func (m *DeliverResponse) XXX_DiscardUnknown() { 518 xxx_messageInfo_DeliverResponse.DiscardUnknown(m) 519 } 520 521 var xxx_messageInfo_DeliverResponse proto.InternalMessageInfo 522 523 type isDeliverResponse_Type interface { 524 isDeliverResponse_Type() 525 } 526 527 type DeliverResponse_Status struct { 528 Status common.Status `protobuf:"varint,1,opt,name=status,proto3,enum=common.Status,oneof"` 529 } 530 531 type DeliverResponse_Block struct { 532 Block *common.Block `protobuf:"bytes,2,opt,name=block,proto3,oneof"` 533 } 534 535 func (*DeliverResponse_Status) isDeliverResponse_Type() {} 536 537 func (*DeliverResponse_Block) isDeliverResponse_Type() {} 538 539 func (m *DeliverResponse) GetType() isDeliverResponse_Type { 540 if m != nil { 541 return m.Type 542 } 543 return nil 544 } 545 546 func (m *DeliverResponse) GetStatus() common.Status { 547 if x, ok := m.GetType().(*DeliverResponse_Status); ok { 548 return x.Status 549 } 550 return common.Status_UNKNOWN 551 } 552 553 func (m *DeliverResponse) GetBlock() *common.Block { 554 if x, ok := m.GetType().(*DeliverResponse_Block); ok { 555 return x.Block 556 } 557 return nil 558 } 559 560 // XXX_OneofWrappers is for the internal use of the proto package. 561 func (*DeliverResponse) XXX_OneofWrappers() []interface{} { 562 return []interface{}{ 563 (*DeliverResponse_Status)(nil), 564 (*DeliverResponse_Block)(nil), 565 } 566 } 567 568 func init() { 569 proto.RegisterEnum("orderer.SeekInfo_SeekBehavior", SeekInfo_SeekBehavior_name, SeekInfo_SeekBehavior_value) 570 proto.RegisterEnum("orderer.SeekInfo_SeekErrorResponse", SeekInfo_SeekErrorResponse_name, SeekInfo_SeekErrorResponse_value) 571 proto.RegisterEnum("orderer.SeekInfo_SeekContentType", SeekInfo_SeekContentType_name, SeekInfo_SeekContentType_value) 572 proto.RegisterType((*BroadcastResponse)(nil), "orderer.BroadcastResponse") 573 proto.RegisterType((*SeekNewest)(nil), "orderer.SeekNewest") 574 proto.RegisterType((*SeekOldest)(nil), "orderer.SeekOldest") 575 proto.RegisterType((*SeekSpecified)(nil), "orderer.SeekSpecified") 576 proto.RegisterType((*SeekNextCommit)(nil), "orderer.SeekNextCommit") 577 proto.RegisterType((*SeekPosition)(nil), "orderer.SeekPosition") 578 proto.RegisterType((*SeekInfo)(nil), "orderer.SeekInfo") 579 proto.RegisterType((*DeliverResponse)(nil), "orderer.DeliverResponse") 580 } 581 582 func init() { proto.RegisterFile("orderer/ab.proto", fileDescriptor_79fce58dd8d86d62) } 583 584 var fileDescriptor_79fce58dd8d86d62 = []byte{ 585 // 658 bytes of a gzipped FileDescriptorProto 586 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xdf, 0x6e, 0xda, 0x4a, 587 0x10, 0xc6, 0xed, 0x13, 0x20, 0x61, 0x48, 0xc0, 0xd9, 0x28, 0x39, 0x28, 0x17, 0x47, 0x39, 0xae, 588 0xd2, 0x52, 0x55, 0x81, 0x94, 0x4a, 0x95, 0x1a, 0xb5, 0x17, 0x18, 0x4c, 0x71, 0x1b, 0x85, 0x6a, 589 0x71, 0xd5, 0x3f, 0x37, 0x96, 0x6d, 0x16, 0xe2, 0x06, 0xbc, 0xd6, 0x7a, 0x93, 0x26, 0xcf, 0xd0, 590 0xc7, 0xeb, 0x4b, 0xf4, 0x31, 0xaa, 0x5d, 0xaf, 0x21, 0x21, 0x69, 0xaf, 0xf0, 0x8c, 0x7f, 0xdf, 591 0xcc, 0x37, 0xcb, 0xac, 0xc1, 0xa0, 0x6c, 0x4c, 0x18, 0x61, 0x2d, 0x3f, 0x68, 0x26, 0x8c, 0x72, 592 0x8a, 0xd6, 0x55, 0x66, 0x7f, 0x27, 0xa4, 0xf3, 0x39, 0x8d, 0x5b, 0xd9, 0x4f, 0xf6, 0xd6, 0x1c, 593 0xc2, 0xb6, 0xc5, 0xa8, 0x3f, 0x0e, 0xfd, 0x94, 0x63, 0x92, 0x26, 0x34, 0x4e, 0x09, 0x7a, 0x0c, 594 0xa5, 0x94, 0xfb, 0xfc, 0x32, 0xad, 0xeb, 0x07, 0x7a, 0xa3, 0xda, 0xae, 0x36, 0x95, 0x66, 0x24, 595 0xb3, 0x58, 0xbd, 0x45, 0x08, 0x0a, 0x51, 0x3c, 0xa1, 0xf5, 0x7f, 0x0e, 0xf4, 0x46, 0x19, 0xcb, 596 0x67, 0x73, 0x13, 0x60, 0x44, 0xc8, 0xc5, 0x19, 0xf9, 0x4e, 0x52, 0x9e, 0x47, 0xc3, 0xd9, 0x58, 597 0x44, 0x4f, 0x60, 0x4b, 0x44, 0xa3, 0x84, 0x84, 0xd1, 0x24, 0x22, 0x63, 0xb4, 0x07, 0xa5, 0xf8, 598 0x72, 0x1e, 0x10, 0x26, 0x1b, 0x15, 0xb0, 0x8a, 0x4c, 0x03, 0xaa, 0x59, 0x91, 0x6b, 0xde, 0xa5, 599 0xf3, 0x79, 0xc4, 0xcd, 0x5f, 0x3a, 0x6c, 0x8a, 0xd4, 0x07, 0x9a, 0x46, 0x3c, 0xa2, 0x31, 0x3a, 600 0x82, 0x52, 0x2c, 0x7b, 0x48, 0x69, 0xa5, 0xbd, 0xd3, 0x54, 0x73, 0x36, 0x97, 0xed, 0x07, 0x1a, 601 0x56, 0x90, 0xc0, 0xa9, 0x34, 0x21, 0xcd, 0xae, 0xe2, 0x99, 0x3f, 0x81, 0x67, 0x10, 0x7a, 0x09, 602 0xe5, 0x34, 0x77, 0x59, 0x5f, 0x93, 0x8a, 0xbd, 0x3b, 0x8a, 0xc5, 0x0c, 0x03, 0x0d, 0x2f, 0x51, 603 0x74, 0x02, 0x95, 0x98, 0x5c, 0x73, 0x2f, 0x94, 0xae, 0xeb, 0x05, 0xa9, 0xfc, 0x77, 0xc5, 0x5a, 604 0x3e, 0xd4, 0x40, 0xc3, 0x10, 0x2f, 0x22, 0xab, 0x04, 0x05, 0xf7, 0x26, 0x21, 0xe6, 0xcf, 0x35, 605 0xd8, 0x10, 0xa0, 0x13, 0x4f, 0x28, 0x7a, 0x06, 0xc5, 0x94, 0xfb, 0x2c, 0x9f, 0x72, 0xf7, 0x4e, 606 0xa9, 0xfc, 0x30, 0x70, 0xc6, 0xa0, 0xa7, 0x50, 0x48, 0x39, 0x4d, 0xd4, 0x88, 0x7f, 0x60, 0x25, 607 0x82, 0x4e, 0x60, 0x23, 0x20, 0xe7, 0xfe, 0x55, 0x44, 0x99, 0x9c, 0xaf, 0xda, 0xfe, 0xef, 0x0e, 608 0x2e, 0x9a, 0xcb, 0x07, 0x4b, 0x51, 0x78, 0xc1, 0xa3, 0x77, 0x50, 0x25, 0x8c, 0x51, 0xe6, 0x31, 609 0xb5, 0x30, 0x72, 0xce, 0x6a, 0xfb, 0xd1, 0xc3, 0x15, 0x6c, 0xc1, 0xe6, 0xbb, 0x85, 0xb7, 0xc8, 610 0xed, 0x10, 0xf5, 0x60, 0x33, 0xa4, 0x31, 0x27, 0x31, 0xf7, 0xf8, 0x4d, 0x42, 0xea, 0x45, 0x59, 611 0xe9, 0xff, 0x87, 0x2b, 0x75, 0x33, 0x52, 0x9c, 0x12, 0xae, 0x84, 0xcb, 0xc0, 0x7c, 0x9d, 0x2d, 612 0x47, 0xee, 0x15, 0xed, 0xc2, 0xb6, 0x75, 0x3a, 0xec, 0xbe, 0xf7, 0x3e, 0x9e, 0xb9, 0xce, 0xa9, 613 0x87, 0xed, 0x4e, 0xef, 0x8b, 0xa1, 0x89, 0x74, 0xbf, 0xe3, 0x9c, 0x7a, 0x4e, 0xdf, 0x3b, 0x1b, 614 0xba, 0x2a, 0xad, 0x9b, 0xc7, 0xb0, 0x7d, 0xcf, 0x27, 0x02, 0x28, 0x8d, 0x5c, 0xec, 0x74, 0x5d, 615 0x43, 0x43, 0x35, 0xa8, 0x58, 0xf6, 0xc8, 0xf5, 0xec, 0x7e, 0x7f, 0x88, 0x5d, 0x43, 0x37, 0x9f, 616 0x43, 0x6d, 0xc5, 0x0f, 0x2a, 0x43, 0x51, 0xb6, 0x34, 0x34, 0xb4, 0x03, 0xb5, 0x81, 0xdd, 0xe9, 617 0xd9, 0xd8, 0xfb, 0xe4, 0xb8, 0x03, 0x6f, 0xe4, 0xbc, 0x35, 0x74, 0xf3, 0x1b, 0xd4, 0x7a, 0x64, 618 0x16, 0x5d, 0x91, 0x65, 0x8b, 0xc6, 0xdf, 0xaf, 0x99, 0x58, 0x47, 0x75, 0xd1, 0x0e, 0xa1, 0x18, 619 0xcc, 0x68, 0x78, 0xa1, 0xfe, 0xd9, 0xad, 0x1c, 0xb4, 0x44, 0x72, 0xa0, 0xe1, 0xec, 0x6d, 0xbe, 620 0x41, 0xed, 0x1f, 0x3a, 0xd4, 0x3a, 0x9c, 0xce, 0xa3, 0x70, 0x71, 0xb7, 0xd1, 0x1b, 0x28, 0x2f, 621 0x03, 0x23, 0x2f, 0x60, 0xc7, 0x57, 0x64, 0x46, 0x13, 0xb2, 0xbf, 0xbf, 0x38, 0xf1, 0x7b, 0x9f, 622 0x83, 0x86, 0x7e, 0xac, 0xa3, 0x57, 0xb0, 0xae, 0xec, 0x3f, 0x20, 0xae, 0x2f, 0xc4, 0x2b, 0x23, 623 0x0a, 0xa9, 0xf5, 0x19, 0x0e, 0x29, 0x9b, 0x36, 0xcf, 0x6f, 0x12, 0xc2, 0x66, 0x64, 0x3c, 0x25, 624 0xac, 0x39, 0xf1, 0x03, 0x16, 0x85, 0xd9, 0x27, 0x28, 0xcd, 0xc5, 0x5f, 0x5b, 0xd3, 0x88, 0x9f, 625 0x5f, 0x06, 0xa2, 0x7c, 0xeb, 0x16, 0xdd, 0xca, 0xe8, 0xa3, 0x8c, 0x3e, 0x9a, 0xd2, 0x96, 0x12, 626 0x04, 0x25, 0x99, 0x7a, 0xf1, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x0f, 0x4e, 0x38, 0xe9, 0xf5, 0x04, 627 0x00, 0x00, 628 } 629 630 // Reference imports to suppress errors if they are not otherwise used. 631 var _ context.Context 632 var _ grpc.ClientConn 633 634 // This is a compile-time assertion to ensure that this generated file 635 // is compatible with the grpc package it is being compiled against. 636 const _ = grpc.SupportPackageIsVersion4 637 638 // AtomicBroadcastClient is the client API for AtomicBroadcast service. 639 // 640 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 641 type AtomicBroadcastClient interface { 642 // broadcast receives a reply of Acknowledgement for each common.Envelope in order, indicating success or type of failure 643 Broadcast(ctx context.Context, opts ...grpc.CallOption) (AtomicBroadcast_BroadcastClient, error) 644 // deliver first requires an Envelope of type DELIVER_SEEK_INFO with Payload data as a mashaled SeekInfo message, then a stream of block replies is received. 645 Deliver(ctx context.Context, opts ...grpc.CallOption) (AtomicBroadcast_DeliverClient, error) 646 } 647 648 type atomicBroadcastClient struct { 649 cc *grpc.ClientConn 650 } 651 652 func NewAtomicBroadcastClient(cc *grpc.ClientConn) AtomicBroadcastClient { 653 return &atomicBroadcastClient{cc} 654 } 655 656 func (c *atomicBroadcastClient) Broadcast(ctx context.Context, opts ...grpc.CallOption) (AtomicBroadcast_BroadcastClient, error) { 657 stream, err := c.cc.NewStream(ctx, &_AtomicBroadcast_serviceDesc.Streams[0], "/orderer.AtomicBroadcast/Broadcast", opts...) 658 if err != nil { 659 return nil, err 660 } 661 x := &atomicBroadcastBroadcastClient{stream} 662 return x, nil 663 } 664 665 type AtomicBroadcast_BroadcastClient interface { 666 Send(*common.Envelope) error 667 Recv() (*BroadcastResponse, error) 668 grpc.ClientStream 669 } 670 671 type atomicBroadcastBroadcastClient struct { 672 grpc.ClientStream 673 } 674 675 func (x *atomicBroadcastBroadcastClient) Send(m *common.Envelope) error { 676 return x.ClientStream.SendMsg(m) 677 } 678 679 func (x *atomicBroadcastBroadcastClient) Recv() (*BroadcastResponse, error) { 680 m := new(BroadcastResponse) 681 if err := x.ClientStream.RecvMsg(m); err != nil { 682 return nil, err 683 } 684 return m, nil 685 } 686 687 func (c *atomicBroadcastClient) Deliver(ctx context.Context, opts ...grpc.CallOption) (AtomicBroadcast_DeliverClient, error) { 688 stream, err := c.cc.NewStream(ctx, &_AtomicBroadcast_serviceDesc.Streams[1], "/orderer.AtomicBroadcast/Deliver", opts...) 689 if err != nil { 690 return nil, err 691 } 692 x := &atomicBroadcastDeliverClient{stream} 693 return x, nil 694 } 695 696 type AtomicBroadcast_DeliverClient interface { 697 Send(*common.Envelope) error 698 Recv() (*DeliverResponse, error) 699 grpc.ClientStream 700 } 701 702 type atomicBroadcastDeliverClient struct { 703 grpc.ClientStream 704 } 705 706 func (x *atomicBroadcastDeliverClient) Send(m *common.Envelope) error { 707 return x.ClientStream.SendMsg(m) 708 } 709 710 func (x *atomicBroadcastDeliverClient) Recv() (*DeliverResponse, error) { 711 m := new(DeliverResponse) 712 if err := x.ClientStream.RecvMsg(m); err != nil { 713 return nil, err 714 } 715 return m, nil 716 } 717 718 // AtomicBroadcastServer is the server API for AtomicBroadcast service. 719 type AtomicBroadcastServer interface { 720 // broadcast receives a reply of Acknowledgement for each common.Envelope in order, indicating success or type of failure 721 Broadcast(AtomicBroadcast_BroadcastServer) error 722 // deliver first requires an Envelope of type DELIVER_SEEK_INFO with Payload data as a mashaled SeekInfo message, then a stream of block replies is received. 723 Deliver(AtomicBroadcast_DeliverServer) error 724 } 725 726 // UnimplementedAtomicBroadcastServer can be embedded to have forward compatible implementations. 727 type UnimplementedAtomicBroadcastServer struct { 728 } 729 730 func (*UnimplementedAtomicBroadcastServer) Broadcast(srv AtomicBroadcast_BroadcastServer) error { 731 return status.Errorf(codes.Unimplemented, "method Broadcast not implemented") 732 } 733 func (*UnimplementedAtomicBroadcastServer) Deliver(srv AtomicBroadcast_DeliverServer) error { 734 return status.Errorf(codes.Unimplemented, "method Deliver not implemented") 735 } 736 737 func RegisterAtomicBroadcastServer(s *grpc.Server, srv AtomicBroadcastServer) { 738 s.RegisterService(&_AtomicBroadcast_serviceDesc, srv) 739 } 740 741 func _AtomicBroadcast_Broadcast_Handler(srv interface{}, stream grpc.ServerStream) error { 742 return srv.(AtomicBroadcastServer).Broadcast(&atomicBroadcastBroadcastServer{stream}) 743 } 744 745 type AtomicBroadcast_BroadcastServer interface { 746 Send(*BroadcastResponse) error 747 Recv() (*common.Envelope, error) 748 grpc.ServerStream 749 } 750 751 type atomicBroadcastBroadcastServer struct { 752 grpc.ServerStream 753 } 754 755 func (x *atomicBroadcastBroadcastServer) Send(m *BroadcastResponse) error { 756 return x.ServerStream.SendMsg(m) 757 } 758 759 func (x *atomicBroadcastBroadcastServer) Recv() (*common.Envelope, error) { 760 m := new(common.Envelope) 761 if err := x.ServerStream.RecvMsg(m); err != nil { 762 return nil, err 763 } 764 return m, nil 765 } 766 767 func _AtomicBroadcast_Deliver_Handler(srv interface{}, stream grpc.ServerStream) error { 768 return srv.(AtomicBroadcastServer).Deliver(&atomicBroadcastDeliverServer{stream}) 769 } 770 771 type AtomicBroadcast_DeliverServer interface { 772 Send(*DeliverResponse) error 773 Recv() (*common.Envelope, error) 774 grpc.ServerStream 775 } 776 777 type atomicBroadcastDeliverServer struct { 778 grpc.ServerStream 779 } 780 781 func (x *atomicBroadcastDeliverServer) Send(m *DeliverResponse) error { 782 return x.ServerStream.SendMsg(m) 783 } 784 785 func (x *atomicBroadcastDeliverServer) Recv() (*common.Envelope, error) { 786 m := new(common.Envelope) 787 if err := x.ServerStream.RecvMsg(m); err != nil { 788 return nil, err 789 } 790 return m, nil 791 } 792 793 var _AtomicBroadcast_serviceDesc = grpc.ServiceDesc{ 794 ServiceName: "orderer.AtomicBroadcast", 795 HandlerType: (*AtomicBroadcastServer)(nil), 796 Methods: []grpc.MethodDesc{}, 797 Streams: []grpc.StreamDesc{ 798 { 799 StreamName: "Broadcast", 800 Handler: _AtomicBroadcast_Broadcast_Handler, 801 ServerStreams: true, 802 ClientStreams: true, 803 }, 804 { 805 StreamName: "Deliver", 806 Handler: _AtomicBroadcast_Deliver_Handler, 807 ServerStreams: true, 808 ClientStreams: true, 809 }, 810 }, 811 Metadata: "orderer/ab.proto", 812 }