github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/protos/orderer/ab.pb.go (about)

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