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