github.com/myafeier/fabric@v1.0.1-0.20170722181825-3a4b1f2bce86/protos/orderer/ab.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: orderer/ab.proto
     3  
     4  /*
     5  Package orderer is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	orderer/ab.proto
     9  	orderer/configuration.proto
    10  	orderer/kafka.proto
    11  
    12  It has these top-level messages:
    13  	BroadcastResponse
    14  	SeekNewest
    15  	SeekOldest
    16  	SeekSpecified
    17  	SeekPosition
    18  	SeekInfo
    19  	DeliverResponse
    20  	ConsensusType
    21  	BatchSize
    22  	BatchTimeout
    23  	KafkaBrokers
    24  	ChannelRestrictions
    25  	KafkaMessage
    26  	KafkaMessageRegular
    27  	KafkaMessageTimeToCut
    28  	KafkaMessageConnect
    29  	KafkaMetadata
    30  */
    31  package orderer
    32  
    33  import proto "github.com/golang/protobuf/proto"
    34  import fmt "fmt"
    35  import math "math"
    36  import common "github.com/hyperledger/fabric/protos/common"
    37  
    38  import (
    39  	context "golang.org/x/net/context"
    40  	grpc "google.golang.org/grpc"
    41  )
    42  
    43  // Reference imports to suppress errors if they are not otherwise used.
    44  var _ = proto.Marshal
    45  var _ = fmt.Errorf
    46  var _ = math.Inf
    47  
    48  // This is a compile-time assertion to ensure that this generated file
    49  // is compatible with the proto package it is being compiled against.
    50  // A compilation error at this line likely means your copy of the
    51  // proto package needs to be updated.
    52  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    53  
    54  type SeekInfo_SeekBehavior int32
    55  
    56  const (
    57  	SeekInfo_BLOCK_UNTIL_READY SeekInfo_SeekBehavior = 0
    58  	SeekInfo_FAIL_IF_NOT_READY SeekInfo_SeekBehavior = 1
    59  )
    60  
    61  var SeekInfo_SeekBehavior_name = map[int32]string{
    62  	0: "BLOCK_UNTIL_READY",
    63  	1: "FAIL_IF_NOT_READY",
    64  }
    65  var SeekInfo_SeekBehavior_value = map[string]int32{
    66  	"BLOCK_UNTIL_READY": 0,
    67  	"FAIL_IF_NOT_READY": 1,
    68  }
    69  
    70  func (x SeekInfo_SeekBehavior) String() string {
    71  	return proto.EnumName(SeekInfo_SeekBehavior_name, int32(x))
    72  }
    73  func (SeekInfo_SeekBehavior) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{5, 0} }
    74  
    75  type BroadcastResponse struct {
    76  	Status common.Status `protobuf:"varint,1,opt,name=status,enum=common.Status" json:"status,omitempty"`
    77  }
    78  
    79  func (m *BroadcastResponse) Reset()                    { *m = BroadcastResponse{} }
    80  func (m *BroadcastResponse) String() string            { return proto.CompactTextString(m) }
    81  func (*BroadcastResponse) ProtoMessage()               {}
    82  func (*BroadcastResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    83  
    84  func (m *BroadcastResponse) GetStatus() common.Status {
    85  	if m != nil {
    86  		return m.Status
    87  	}
    88  	return common.Status_UNKNOWN
    89  }
    90  
    91  type SeekNewest struct {
    92  }
    93  
    94  func (m *SeekNewest) Reset()                    { *m = SeekNewest{} }
    95  func (m *SeekNewest) String() string            { return proto.CompactTextString(m) }
    96  func (*SeekNewest) ProtoMessage()               {}
    97  func (*SeekNewest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
    98  
    99  type SeekOldest struct {
   100  }
   101  
   102  func (m *SeekOldest) Reset()                    { *m = SeekOldest{} }
   103  func (m *SeekOldest) String() string            { return proto.CompactTextString(m) }
   104  func (*SeekOldest) ProtoMessage()               {}
   105  func (*SeekOldest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
   106  
   107  type SeekSpecified struct {
   108  	Number uint64 `protobuf:"varint,1,opt,name=number" json:"number,omitempty"`
   109  }
   110  
   111  func (m *SeekSpecified) Reset()                    { *m = SeekSpecified{} }
   112  func (m *SeekSpecified) String() string            { return proto.CompactTextString(m) }
   113  func (*SeekSpecified) ProtoMessage()               {}
   114  func (*SeekSpecified) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
   115  
   116  func (m *SeekSpecified) GetNumber() uint64 {
   117  	if m != nil {
   118  		return m.Number
   119  	}
   120  	return 0
   121  }
   122  
   123  type SeekPosition struct {
   124  	// Types that are valid to be assigned to Type:
   125  	//	*SeekPosition_Newest
   126  	//	*SeekPosition_Oldest
   127  	//	*SeekPosition_Specified
   128  	Type isSeekPosition_Type `protobuf_oneof:"Type"`
   129  }
   130  
   131  func (m *SeekPosition) Reset()                    { *m = SeekPosition{} }
   132  func (m *SeekPosition) String() string            { return proto.CompactTextString(m) }
   133  func (*SeekPosition) ProtoMessage()               {}
   134  func (*SeekPosition) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
   135  
   136  type isSeekPosition_Type interface {
   137  	isSeekPosition_Type()
   138  }
   139  
   140  type SeekPosition_Newest struct {
   141  	Newest *SeekNewest `protobuf:"bytes,1,opt,name=newest,oneof"`
   142  }
   143  type SeekPosition_Oldest struct {
   144  	Oldest *SeekOldest `protobuf:"bytes,2,opt,name=oldest,oneof"`
   145  }
   146  type SeekPosition_Specified struct {
   147  	Specified *SeekSpecified `protobuf:"bytes,3,opt,name=specified,oneof"`
   148  }
   149  
   150  func (*SeekPosition_Newest) isSeekPosition_Type()    {}
   151  func (*SeekPosition_Oldest) isSeekPosition_Type()    {}
   152  func (*SeekPosition_Specified) isSeekPosition_Type() {}
   153  
   154  func (m *SeekPosition) GetType() isSeekPosition_Type {
   155  	if m != nil {
   156  		return m.Type
   157  	}
   158  	return nil
   159  }
   160  
   161  func (m *SeekPosition) GetNewest() *SeekNewest {
   162  	if x, ok := m.GetType().(*SeekPosition_Newest); ok {
   163  		return x.Newest
   164  	}
   165  	return nil
   166  }
   167  
   168  func (m *SeekPosition) GetOldest() *SeekOldest {
   169  	if x, ok := m.GetType().(*SeekPosition_Oldest); ok {
   170  		return x.Oldest
   171  	}
   172  	return nil
   173  }
   174  
   175  func (m *SeekPosition) GetSpecified() *SeekSpecified {
   176  	if x, ok := m.GetType().(*SeekPosition_Specified); ok {
   177  		return x.Specified
   178  	}
   179  	return nil
   180  }
   181  
   182  // XXX_OneofFuncs is for the internal use of the proto package.
   183  func (*SeekPosition) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
   184  	return _SeekPosition_OneofMarshaler, _SeekPosition_OneofUnmarshaler, _SeekPosition_OneofSizer, []interface{}{
   185  		(*SeekPosition_Newest)(nil),
   186  		(*SeekPosition_Oldest)(nil),
   187  		(*SeekPosition_Specified)(nil),
   188  	}
   189  }
   190  
   191  func _SeekPosition_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
   192  	m := msg.(*SeekPosition)
   193  	// Type
   194  	switch x := m.Type.(type) {
   195  	case *SeekPosition_Newest:
   196  		b.EncodeVarint(1<<3 | proto.WireBytes)
   197  		if err := b.EncodeMessage(x.Newest); err != nil {
   198  			return err
   199  		}
   200  	case *SeekPosition_Oldest:
   201  		b.EncodeVarint(2<<3 | proto.WireBytes)
   202  		if err := b.EncodeMessage(x.Oldest); err != nil {
   203  			return err
   204  		}
   205  	case *SeekPosition_Specified:
   206  		b.EncodeVarint(3<<3 | proto.WireBytes)
   207  		if err := b.EncodeMessage(x.Specified); err != nil {
   208  			return err
   209  		}
   210  	case nil:
   211  	default:
   212  		return fmt.Errorf("SeekPosition.Type has unexpected type %T", x)
   213  	}
   214  	return nil
   215  }
   216  
   217  func _SeekPosition_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
   218  	m := msg.(*SeekPosition)
   219  	switch tag {
   220  	case 1: // Type.newest
   221  		if wire != proto.WireBytes {
   222  			return true, proto.ErrInternalBadWireType
   223  		}
   224  		msg := new(SeekNewest)
   225  		err := b.DecodeMessage(msg)
   226  		m.Type = &SeekPosition_Newest{msg}
   227  		return true, err
   228  	case 2: // Type.oldest
   229  		if wire != proto.WireBytes {
   230  			return true, proto.ErrInternalBadWireType
   231  		}
   232  		msg := new(SeekOldest)
   233  		err := b.DecodeMessage(msg)
   234  		m.Type = &SeekPosition_Oldest{msg}
   235  		return true, err
   236  	case 3: // Type.specified
   237  		if wire != proto.WireBytes {
   238  			return true, proto.ErrInternalBadWireType
   239  		}
   240  		msg := new(SeekSpecified)
   241  		err := b.DecodeMessage(msg)
   242  		m.Type = &SeekPosition_Specified{msg}
   243  		return true, err
   244  	default:
   245  		return false, nil
   246  	}
   247  }
   248  
   249  func _SeekPosition_OneofSizer(msg proto.Message) (n int) {
   250  	m := msg.(*SeekPosition)
   251  	// Type
   252  	switch x := m.Type.(type) {
   253  	case *SeekPosition_Newest:
   254  		s := proto.Size(x.Newest)
   255  		n += proto.SizeVarint(1<<3 | proto.WireBytes)
   256  		n += proto.SizeVarint(uint64(s))
   257  		n += s
   258  	case *SeekPosition_Oldest:
   259  		s := proto.Size(x.Oldest)
   260  		n += proto.SizeVarint(2<<3 | proto.WireBytes)
   261  		n += proto.SizeVarint(uint64(s))
   262  		n += s
   263  	case *SeekPosition_Specified:
   264  		s := proto.Size(x.Specified)
   265  		n += proto.SizeVarint(3<<3 | proto.WireBytes)
   266  		n += proto.SizeVarint(uint64(s))
   267  		n += s
   268  	case nil:
   269  	default:
   270  		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
   271  	}
   272  	return n
   273  }
   274  
   275  // SeekInfo specifies the range of requested blocks to return
   276  // If the start position is not found, an error is immediately returned
   277  // Otherwise, blocks are returned until a missing block is encountered, then behavior is dictated
   278  // by the SeekBehavior specified.  If BLOCK_UNTIL_READY is specified, the reply will block until
   279  // the requested blocks are available, if FAIL_IF_NOT_READY is specified, the reply will return an
   280  // error indicating that the block is not found.  To request that all blocks be returned indefinitely
   281  // as they are created, behavior should be set to BLOCK_UNTIL_READY and the stop should be set to
   282  // specified with a number of MAX_UINT64
   283  type SeekInfo struct {
   284  	Start    *SeekPosition         `protobuf:"bytes,1,opt,name=start" json:"start,omitempty"`
   285  	Stop     *SeekPosition         `protobuf:"bytes,2,opt,name=stop" json:"stop,omitempty"`
   286  	Behavior SeekInfo_SeekBehavior `protobuf:"varint,3,opt,name=behavior,enum=orderer.SeekInfo_SeekBehavior" json:"behavior,omitempty"`
   287  }
   288  
   289  func (m *SeekInfo) Reset()                    { *m = SeekInfo{} }
   290  func (m *SeekInfo) String() string            { return proto.CompactTextString(m) }
   291  func (*SeekInfo) ProtoMessage()               {}
   292  func (*SeekInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
   293  
   294  func (m *SeekInfo) GetStart() *SeekPosition {
   295  	if m != nil {
   296  		return m.Start
   297  	}
   298  	return nil
   299  }
   300  
   301  func (m *SeekInfo) GetStop() *SeekPosition {
   302  	if m != nil {
   303  		return m.Stop
   304  	}
   305  	return nil
   306  }
   307  
   308  func (m *SeekInfo) GetBehavior() SeekInfo_SeekBehavior {
   309  	if m != nil {
   310  		return m.Behavior
   311  	}
   312  	return SeekInfo_BLOCK_UNTIL_READY
   313  }
   314  
   315  type DeliverResponse struct {
   316  	// Types that are valid to be assigned to Type:
   317  	//	*DeliverResponse_Status
   318  	//	*DeliverResponse_Block
   319  	Type isDeliverResponse_Type `protobuf_oneof:"Type"`
   320  }
   321  
   322  func (m *DeliverResponse) Reset()                    { *m = DeliverResponse{} }
   323  func (m *DeliverResponse) String() string            { return proto.CompactTextString(m) }
   324  func (*DeliverResponse) ProtoMessage()               {}
   325  func (*DeliverResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
   326  
   327  type isDeliverResponse_Type interface {
   328  	isDeliverResponse_Type()
   329  }
   330  
   331  type DeliverResponse_Status struct {
   332  	Status common.Status `protobuf:"varint,1,opt,name=status,enum=common.Status,oneof"`
   333  }
   334  type DeliverResponse_Block struct {
   335  	Block *common.Block `protobuf:"bytes,2,opt,name=block,oneof"`
   336  }
   337  
   338  func (*DeliverResponse_Status) isDeliverResponse_Type() {}
   339  func (*DeliverResponse_Block) isDeliverResponse_Type()  {}
   340  
   341  func (m *DeliverResponse) GetType() isDeliverResponse_Type {
   342  	if m != nil {
   343  		return m.Type
   344  	}
   345  	return nil
   346  }
   347  
   348  func (m *DeliverResponse) GetStatus() common.Status {
   349  	if x, ok := m.GetType().(*DeliverResponse_Status); ok {
   350  		return x.Status
   351  	}
   352  	return common.Status_UNKNOWN
   353  }
   354  
   355  func (m *DeliverResponse) GetBlock() *common.Block {
   356  	if x, ok := m.GetType().(*DeliverResponse_Block); ok {
   357  		return x.Block
   358  	}
   359  	return nil
   360  }
   361  
   362  // XXX_OneofFuncs is for the internal use of the proto package.
   363  func (*DeliverResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
   364  	return _DeliverResponse_OneofMarshaler, _DeliverResponse_OneofUnmarshaler, _DeliverResponse_OneofSizer, []interface{}{
   365  		(*DeliverResponse_Status)(nil),
   366  		(*DeliverResponse_Block)(nil),
   367  	}
   368  }
   369  
   370  func _DeliverResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
   371  	m := msg.(*DeliverResponse)
   372  	// Type
   373  	switch x := m.Type.(type) {
   374  	case *DeliverResponse_Status:
   375  		b.EncodeVarint(1<<3 | proto.WireVarint)
   376  		b.EncodeVarint(uint64(x.Status))
   377  	case *DeliverResponse_Block:
   378  		b.EncodeVarint(2<<3 | proto.WireBytes)
   379  		if err := b.EncodeMessage(x.Block); err != nil {
   380  			return err
   381  		}
   382  	case nil:
   383  	default:
   384  		return fmt.Errorf("DeliverResponse.Type has unexpected type %T", x)
   385  	}
   386  	return nil
   387  }
   388  
   389  func _DeliverResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
   390  	m := msg.(*DeliverResponse)
   391  	switch tag {
   392  	case 1: // Type.status
   393  		if wire != proto.WireVarint {
   394  			return true, proto.ErrInternalBadWireType
   395  		}
   396  		x, err := b.DecodeVarint()
   397  		m.Type = &DeliverResponse_Status{common.Status(x)}
   398  		return true, err
   399  	case 2: // Type.block
   400  		if wire != proto.WireBytes {
   401  			return true, proto.ErrInternalBadWireType
   402  		}
   403  		msg := new(common.Block)
   404  		err := b.DecodeMessage(msg)
   405  		m.Type = &DeliverResponse_Block{msg}
   406  		return true, err
   407  	default:
   408  		return false, nil
   409  	}
   410  }
   411  
   412  func _DeliverResponse_OneofSizer(msg proto.Message) (n int) {
   413  	m := msg.(*DeliverResponse)
   414  	// Type
   415  	switch x := m.Type.(type) {
   416  	case *DeliverResponse_Status:
   417  		n += proto.SizeVarint(1<<3 | proto.WireVarint)
   418  		n += proto.SizeVarint(uint64(x.Status))
   419  	case *DeliverResponse_Block:
   420  		s := proto.Size(x.Block)
   421  		n += proto.SizeVarint(2<<3 | proto.WireBytes)
   422  		n += proto.SizeVarint(uint64(s))
   423  		n += s
   424  	case nil:
   425  	default:
   426  		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
   427  	}
   428  	return n
   429  }
   430  
   431  func init() {
   432  	proto.RegisterType((*BroadcastResponse)(nil), "orderer.BroadcastResponse")
   433  	proto.RegisterType((*SeekNewest)(nil), "orderer.SeekNewest")
   434  	proto.RegisterType((*SeekOldest)(nil), "orderer.SeekOldest")
   435  	proto.RegisterType((*SeekSpecified)(nil), "orderer.SeekSpecified")
   436  	proto.RegisterType((*SeekPosition)(nil), "orderer.SeekPosition")
   437  	proto.RegisterType((*SeekInfo)(nil), "orderer.SeekInfo")
   438  	proto.RegisterType((*DeliverResponse)(nil), "orderer.DeliverResponse")
   439  	proto.RegisterEnum("orderer.SeekInfo_SeekBehavior", SeekInfo_SeekBehavior_name, SeekInfo_SeekBehavior_value)
   440  }
   441  
   442  // Reference imports to suppress errors if they are not otherwise used.
   443  var _ context.Context
   444  var _ grpc.ClientConn
   445  
   446  // This is a compile-time assertion to ensure that this generated file
   447  // is compatible with the grpc package it is being compiled against.
   448  const _ = grpc.SupportPackageIsVersion4
   449  
   450  // Client API for AtomicBroadcast service
   451  
   452  type AtomicBroadcastClient interface {
   453  	// broadcast receives a reply of Acknowledgement for each common.Envelope in order, indicating success or type of failure
   454  	Broadcast(ctx context.Context, opts ...grpc.CallOption) (AtomicBroadcast_BroadcastClient, error)
   455  	// 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.
   456  	Deliver(ctx context.Context, opts ...grpc.CallOption) (AtomicBroadcast_DeliverClient, error)
   457  }
   458  
   459  type atomicBroadcastClient struct {
   460  	cc *grpc.ClientConn
   461  }
   462  
   463  func NewAtomicBroadcastClient(cc *grpc.ClientConn) AtomicBroadcastClient {
   464  	return &atomicBroadcastClient{cc}
   465  }
   466  
   467  func (c *atomicBroadcastClient) Broadcast(ctx context.Context, opts ...grpc.CallOption) (AtomicBroadcast_BroadcastClient, error) {
   468  	stream, err := grpc.NewClientStream(ctx, &_AtomicBroadcast_serviceDesc.Streams[0], c.cc, "/orderer.AtomicBroadcast/Broadcast", opts...)
   469  	if err != nil {
   470  		return nil, err
   471  	}
   472  	x := &atomicBroadcastBroadcastClient{stream}
   473  	return x, nil
   474  }
   475  
   476  type AtomicBroadcast_BroadcastClient interface {
   477  	Send(*common.Envelope) error
   478  	Recv() (*BroadcastResponse, error)
   479  	grpc.ClientStream
   480  }
   481  
   482  type atomicBroadcastBroadcastClient struct {
   483  	grpc.ClientStream
   484  }
   485  
   486  func (x *atomicBroadcastBroadcastClient) Send(m *common.Envelope) error {
   487  	return x.ClientStream.SendMsg(m)
   488  }
   489  
   490  func (x *atomicBroadcastBroadcastClient) Recv() (*BroadcastResponse, error) {
   491  	m := new(BroadcastResponse)
   492  	if err := x.ClientStream.RecvMsg(m); err != nil {
   493  		return nil, err
   494  	}
   495  	return m, nil
   496  }
   497  
   498  func (c *atomicBroadcastClient) Deliver(ctx context.Context, opts ...grpc.CallOption) (AtomicBroadcast_DeliverClient, error) {
   499  	stream, err := grpc.NewClientStream(ctx, &_AtomicBroadcast_serviceDesc.Streams[1], c.cc, "/orderer.AtomicBroadcast/Deliver", opts...)
   500  	if err != nil {
   501  		return nil, err
   502  	}
   503  	x := &atomicBroadcastDeliverClient{stream}
   504  	return x, nil
   505  }
   506  
   507  type AtomicBroadcast_DeliverClient interface {
   508  	Send(*common.Envelope) error
   509  	Recv() (*DeliverResponse, error)
   510  	grpc.ClientStream
   511  }
   512  
   513  type atomicBroadcastDeliverClient struct {
   514  	grpc.ClientStream
   515  }
   516  
   517  func (x *atomicBroadcastDeliverClient) Send(m *common.Envelope) error {
   518  	return x.ClientStream.SendMsg(m)
   519  }
   520  
   521  func (x *atomicBroadcastDeliverClient) Recv() (*DeliverResponse, error) {
   522  	m := new(DeliverResponse)
   523  	if err := x.ClientStream.RecvMsg(m); err != nil {
   524  		return nil, err
   525  	}
   526  	return m, nil
   527  }
   528  
   529  // Server API for AtomicBroadcast service
   530  
   531  type AtomicBroadcastServer interface {
   532  	// broadcast receives a reply of Acknowledgement for each common.Envelope in order, indicating success or type of failure
   533  	Broadcast(AtomicBroadcast_BroadcastServer) error
   534  	// 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.
   535  	Deliver(AtomicBroadcast_DeliverServer) error
   536  }
   537  
   538  func RegisterAtomicBroadcastServer(s *grpc.Server, srv AtomicBroadcastServer) {
   539  	s.RegisterService(&_AtomicBroadcast_serviceDesc, srv)
   540  }
   541  
   542  func _AtomicBroadcast_Broadcast_Handler(srv interface{}, stream grpc.ServerStream) error {
   543  	return srv.(AtomicBroadcastServer).Broadcast(&atomicBroadcastBroadcastServer{stream})
   544  }
   545  
   546  type AtomicBroadcast_BroadcastServer interface {
   547  	Send(*BroadcastResponse) error
   548  	Recv() (*common.Envelope, error)
   549  	grpc.ServerStream
   550  }
   551  
   552  type atomicBroadcastBroadcastServer struct {
   553  	grpc.ServerStream
   554  }
   555  
   556  func (x *atomicBroadcastBroadcastServer) Send(m *BroadcastResponse) error {
   557  	return x.ServerStream.SendMsg(m)
   558  }
   559  
   560  func (x *atomicBroadcastBroadcastServer) Recv() (*common.Envelope, error) {
   561  	m := new(common.Envelope)
   562  	if err := x.ServerStream.RecvMsg(m); err != nil {
   563  		return nil, err
   564  	}
   565  	return m, nil
   566  }
   567  
   568  func _AtomicBroadcast_Deliver_Handler(srv interface{}, stream grpc.ServerStream) error {
   569  	return srv.(AtomicBroadcastServer).Deliver(&atomicBroadcastDeliverServer{stream})
   570  }
   571  
   572  type AtomicBroadcast_DeliverServer interface {
   573  	Send(*DeliverResponse) error
   574  	Recv() (*common.Envelope, error)
   575  	grpc.ServerStream
   576  }
   577  
   578  type atomicBroadcastDeliverServer struct {
   579  	grpc.ServerStream
   580  }
   581  
   582  func (x *atomicBroadcastDeliverServer) Send(m *DeliverResponse) error {
   583  	return x.ServerStream.SendMsg(m)
   584  }
   585  
   586  func (x *atomicBroadcastDeliverServer) Recv() (*common.Envelope, error) {
   587  	m := new(common.Envelope)
   588  	if err := x.ServerStream.RecvMsg(m); err != nil {
   589  		return nil, err
   590  	}
   591  	return m, nil
   592  }
   593  
   594  var _AtomicBroadcast_serviceDesc = grpc.ServiceDesc{
   595  	ServiceName: "orderer.AtomicBroadcast",
   596  	HandlerType: (*AtomicBroadcastServer)(nil),
   597  	Methods:     []grpc.MethodDesc{},
   598  	Streams: []grpc.StreamDesc{
   599  		{
   600  			StreamName:    "Broadcast",
   601  			Handler:       _AtomicBroadcast_Broadcast_Handler,
   602  			ServerStreams: true,
   603  			ClientStreams: true,
   604  		},
   605  		{
   606  			StreamName:    "Deliver",
   607  			Handler:       _AtomicBroadcast_Deliver_Handler,
   608  			ServerStreams: true,
   609  			ClientStreams: true,
   610  		},
   611  	},
   612  	Metadata: "orderer/ab.proto",
   613  }
   614  
   615  func init() { proto.RegisterFile("orderer/ab.proto", fileDescriptor0) }
   616  
   617  var fileDescriptor0 = []byte{
   618  	// 492 bytes of a gzipped FileDescriptorProto
   619  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x93, 0xdb, 0x6e, 0xd3, 0x4c,
   620  	0x10, 0xc7, 0xe3, 0xef, 0x4b, 0xd3, 0x76, 0x68, 0xd3, 0x74, 0xab, 0x56, 0x51, 0x2e, 0x10, 0xb2,
   621  	0x54, 0x08, 0x02, 0x6c, 0x14, 0x24, 0x2e, 0x28, 0x12, 0x8a, 0x69, 0xab, 0x44, 0x44, 0x09, 0x72,
   622  	0xd2, 0x0b, 0xb8, 0x89, 0x7c, 0x98, 0x24, 0xa6, 0x8e, 0xd7, 0xda, 0xdd, 0x04, 0xf5, 0x29, 0x78,
   623  	0x11, 0x1e, 0x89, 0x87, 0x41, 0x7b, 0xb0, 0x43, 0xa0, 0x70, 0x65, 0xcf, 0xcc, 0xef, 0x3f, 0x27,
   624  	0xcd, 0x42, 0x83, 0xb2, 0x18, 0x19, 0x32, 0x37, 0x08, 0x9d, 0x9c, 0x51, 0x41, 0xc9, 0xae, 0xf1,
   625  	0xb4, 0x4e, 0x22, 0xba, 0x5c, 0xd2, 0xcc, 0xd5, 0x1f, 0x1d, 0xb5, 0x2f, 0xe0, 0xd8, 0x63, 0x34,
   626  	0x88, 0xa3, 0x80, 0x0b, 0x1f, 0x79, 0x4e, 0x33, 0x8e, 0xe4, 0x31, 0xd4, 0xb8, 0x08, 0xc4, 0x8a,
   627  	0x37, 0xad, 0x47, 0x56, 0xbb, 0xde, 0xa9, 0x3b, 0x46, 0x33, 0x56, 0x5e, 0xdf, 0x44, 0xed, 0x03,
   628  	0x80, 0x31, 0xe2, 0xed, 0x10, 0xbf, 0x22, 0x17, 0x85, 0x35, 0x4a, 0x63, 0x69, 0x3d, 0x81, 0x43,
   629  	0x69, 0x8d, 0x73, 0x8c, 0x92, 0x59, 0x82, 0x31, 0x39, 0x83, 0x5a, 0xb6, 0x5a, 0x86, 0xc8, 0x54,
   630  	0xd2, 0xaa, 0x6f, 0x2c, 0xfb, 0xbb, 0x05, 0x07, 0x92, 0xfc, 0x48, 0x79, 0x22, 0x12, 0x9a, 0x91,
   631  	0x17, 0x50, 0xcb, 0x54, 0x46, 0x05, 0x3e, 0xe8, 0x9c, 0x38, 0x66, 0x02, 0x67, 0x53, 0xac, 0x57,
   632  	0xf1, 0x0d, 0x24, 0x71, 0xaa, 0x4a, 0x36, 0xff, 0xbb, 0x07, 0xd7, 0xdd, 0x48, 0x5c, 0x43, 0xe4,
   633  	0x35, 0xec, 0xf3, 0xa2, 0xa7, 0xe6, 0xff, 0x4a, 0x71, 0xb6, 0xa5, 0x28, 0x3b, 0xee, 0x55, 0xfc,
   634  	0x0d, 0xea, 0xd5, 0xa0, 0x3a, 0xb9, 0xcb, 0xd1, 0xfe, 0x61, 0xc1, 0x9e, 0xc4, 0xfa, 0xd9, 0x8c,
   635  	0x92, 0x67, 0xb0, 0xc3, 0x45, 0xc0, 0x8a, 0x4e, 0x4f, 0xb7, 0x12, 0x15, 0x03, 0xf9, 0x9a, 0x21,
   636  	0x4f, 0xa1, 0xca, 0x05, 0xcd, 0x4d, 0x9b, 0x7f, 0x61, 0x15, 0x42, 0xde, 0xc0, 0x5e, 0x88, 0x8b,
   637  	0x60, 0x9d, 0x50, 0xa6, 0x7a, 0xac, 0x77, 0x1e, 0x6e, 0xe1, 0xb2, 0xb8, 0xfa, 0xf1, 0x0c, 0xe5,
   638  	0x97, 0xbc, 0xfd, 0x56, 0xaf, 0xb3, 0x88, 0x90, 0x53, 0x38, 0xf6, 0x06, 0xa3, 0xf7, 0x1f, 0xa6,
   639  	0x37, 0xc3, 0x49, 0x7f, 0x30, 0xf5, 0xaf, 0xba, 0x97, 0x9f, 0x1a, 0x15, 0xe9, 0xbe, 0xee, 0xf6,
   640  	0x07, 0xd3, 0xfe, 0xf5, 0x74, 0x38, 0x9a, 0x18, 0xb7, 0x65, 0x7f, 0x81, 0xa3, 0x4b, 0x4c, 0x93,
   641  	0x35, 0xb2, 0xf2, 0x1a, 0xda, 0xff, 0xbe, 0x06, 0xb9, 0x5b, 0x1d, 0x27, 0xe7, 0xb0, 0x13, 0xa6,
   642  	0x34, 0xba, 0x35, 0x23, 0x1e, 0x16, 0xa0, 0x27, 0x9d, 0xbd, 0x8a, 0xaf, 0xa3, 0xc5, 0x2a, 0x3b,
   643  	0xdf, 0x2c, 0x38, 0xea, 0x0a, 0xba, 0x4c, 0xa2, 0xf2, 0x04, 0xc9, 0x3b, 0xd8, 0xdf, 0x18, 0x8d,
   644  	0x22, 0xc1, 0x55, 0xb6, 0xc6, 0x94, 0xe6, 0xd8, 0x6a, 0x95, 0x6b, 0xf8, 0xe3, 0x6a, 0xed, 0x4a,
   645  	0xdb, 0x7a, 0x69, 0x91, 0x0b, 0xd8, 0x35, 0x03, 0xdc, 0x23, 0x6f, 0x96, 0xf2, 0xdf, 0x86, 0xd4,
   646  	0x62, 0xef, 0x06, 0xce, 0x29, 0x9b, 0x3b, 0x8b, 0xbb, 0x1c, 0x59, 0x8a, 0xf1, 0x1c, 0x99, 0x33,
   647  	0x0b, 0x42, 0x96, 0x44, 0xfa, 0xb5, 0xf0, 0x42, 0xfe, 0xf9, 0xf9, 0x3c, 0x11, 0x8b, 0x55, 0x28,
   648  	0x0b, 0xb8, 0xbf, 0xd0, 0xae, 0xa6, 0x5d, 0x4d, 0xbb, 0x86, 0x0e, 0x6b, 0xca, 0x7e, 0xf5, 0x33,
   649  	0x00, 0x00, 0xff, 0xff, 0xee, 0xc5, 0xfc, 0x14, 0x9d, 0x03, 0x00, 0x00,
   650  }