github.com/ZihuaZhang/fabric-protos-go@v1.0.7/peer/events.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: peer/events.proto
     3  
     4  package peer
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	common "github.com/ZihuaZhang/fabric-protos-go/common"
    11  	rwset "github.com/ZihuaZhang/fabric-protos-go/ledger/rwset"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	math "math"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  // FilteredBlock is a minimal set of information about a block
    30  type FilteredBlock struct {
    31  	ChannelId            string                 `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
    32  	Number               uint64                 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
    33  	FilteredTransactions []*FilteredTransaction `protobuf:"bytes,4,rep,name=filtered_transactions,json=filteredTransactions,proto3" json:"filtered_transactions,omitempty"`
    34  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
    35  	XXX_unrecognized     []byte                 `json:"-"`
    36  	XXX_sizecache        int32                  `json:"-"`
    37  }
    38  
    39  func (m *FilteredBlock) Reset()         { *m = FilteredBlock{} }
    40  func (m *FilteredBlock) String() string { return proto.CompactTextString(m) }
    41  func (*FilteredBlock) ProtoMessage()    {}
    42  func (*FilteredBlock) Descriptor() ([]byte, []int) {
    43  	return fileDescriptor_5eedcc5fab2714e6, []int{0}
    44  }
    45  
    46  func (m *FilteredBlock) XXX_Unmarshal(b []byte) error {
    47  	return xxx_messageInfo_FilteredBlock.Unmarshal(m, b)
    48  }
    49  func (m *FilteredBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    50  	return xxx_messageInfo_FilteredBlock.Marshal(b, m, deterministic)
    51  }
    52  func (m *FilteredBlock) XXX_Merge(src proto.Message) {
    53  	xxx_messageInfo_FilteredBlock.Merge(m, src)
    54  }
    55  func (m *FilteredBlock) XXX_Size() int {
    56  	return xxx_messageInfo_FilteredBlock.Size(m)
    57  }
    58  func (m *FilteredBlock) XXX_DiscardUnknown() {
    59  	xxx_messageInfo_FilteredBlock.DiscardUnknown(m)
    60  }
    61  
    62  var xxx_messageInfo_FilteredBlock proto.InternalMessageInfo
    63  
    64  func (m *FilteredBlock) GetChannelId() string {
    65  	if m != nil {
    66  		return m.ChannelId
    67  	}
    68  	return ""
    69  }
    70  
    71  func (m *FilteredBlock) GetNumber() uint64 {
    72  	if m != nil {
    73  		return m.Number
    74  	}
    75  	return 0
    76  }
    77  
    78  func (m *FilteredBlock) GetFilteredTransactions() []*FilteredTransaction {
    79  	if m != nil {
    80  		return m.FilteredTransactions
    81  	}
    82  	return nil
    83  }
    84  
    85  // FilteredTransaction is a minimal set of information about a transaction
    86  // within a block
    87  type FilteredTransaction struct {
    88  	Txid             string            `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
    89  	Type             common.HeaderType `protobuf:"varint,2,opt,name=type,proto3,enum=common.HeaderType" json:"type,omitempty"`
    90  	TxValidationCode TxValidationCode  `protobuf:"varint,3,opt,name=tx_validation_code,json=txValidationCode,proto3,enum=protos.TxValidationCode" json:"tx_validation_code,omitempty"`
    91  	// Types that are valid to be assigned to Data:
    92  	//
    93  	//	*FilteredTransaction_TransactionActions
    94  	Data                 isFilteredTransaction_Data `protobuf_oneof:"Data"`
    95  	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
    96  	XXX_unrecognized     []byte                     `json:"-"`
    97  	XXX_sizecache        int32                      `json:"-"`
    98  }
    99  
   100  func (m *FilteredTransaction) Reset()         { *m = FilteredTransaction{} }
   101  func (m *FilteredTransaction) String() string { return proto.CompactTextString(m) }
   102  func (*FilteredTransaction) ProtoMessage()    {}
   103  func (*FilteredTransaction) Descriptor() ([]byte, []int) {
   104  	return fileDescriptor_5eedcc5fab2714e6, []int{1}
   105  }
   106  
   107  func (m *FilteredTransaction) XXX_Unmarshal(b []byte) error {
   108  	return xxx_messageInfo_FilteredTransaction.Unmarshal(m, b)
   109  }
   110  func (m *FilteredTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   111  	return xxx_messageInfo_FilteredTransaction.Marshal(b, m, deterministic)
   112  }
   113  func (m *FilteredTransaction) XXX_Merge(src proto.Message) {
   114  	xxx_messageInfo_FilteredTransaction.Merge(m, src)
   115  }
   116  func (m *FilteredTransaction) XXX_Size() int {
   117  	return xxx_messageInfo_FilteredTransaction.Size(m)
   118  }
   119  func (m *FilteredTransaction) XXX_DiscardUnknown() {
   120  	xxx_messageInfo_FilteredTransaction.DiscardUnknown(m)
   121  }
   122  
   123  var xxx_messageInfo_FilteredTransaction proto.InternalMessageInfo
   124  
   125  func (m *FilteredTransaction) GetTxid() string {
   126  	if m != nil {
   127  		return m.Txid
   128  	}
   129  	return ""
   130  }
   131  
   132  func (m *FilteredTransaction) GetType() common.HeaderType {
   133  	if m != nil {
   134  		return m.Type
   135  	}
   136  	return common.HeaderType_MESSAGE
   137  }
   138  
   139  func (m *FilteredTransaction) GetTxValidationCode() TxValidationCode {
   140  	if m != nil {
   141  		return m.TxValidationCode
   142  	}
   143  	return TxValidationCode_VALID
   144  }
   145  
   146  type isFilteredTransaction_Data interface {
   147  	isFilteredTransaction_Data()
   148  }
   149  
   150  type FilteredTransaction_TransactionActions struct {
   151  	TransactionActions *FilteredTransactionActions `protobuf:"bytes,4,opt,name=transaction_actions,json=transactionActions,proto3,oneof"`
   152  }
   153  
   154  func (*FilteredTransaction_TransactionActions) isFilteredTransaction_Data() {}
   155  
   156  func (m *FilteredTransaction) GetData() isFilteredTransaction_Data {
   157  	if m != nil {
   158  		return m.Data
   159  	}
   160  	return nil
   161  }
   162  
   163  func (m *FilteredTransaction) GetTransactionActions() *FilteredTransactionActions {
   164  	if x, ok := m.GetData().(*FilteredTransaction_TransactionActions); ok {
   165  		return x.TransactionActions
   166  	}
   167  	return nil
   168  }
   169  
   170  // XXX_OneofWrappers is for the internal use of the proto package.
   171  func (*FilteredTransaction) XXX_OneofWrappers() []interface{} {
   172  	return []interface{}{
   173  		(*FilteredTransaction_TransactionActions)(nil),
   174  	}
   175  }
   176  
   177  // FilteredTransactionActions is a wrapper for array of TransactionAction
   178  // message from regular block
   179  type FilteredTransactionActions struct {
   180  	ChaincodeActions     []*FilteredChaincodeAction `protobuf:"bytes,1,rep,name=chaincode_actions,json=chaincodeActions,proto3" json:"chaincode_actions,omitempty"`
   181  	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
   182  	XXX_unrecognized     []byte                     `json:"-"`
   183  	XXX_sizecache        int32                      `json:"-"`
   184  }
   185  
   186  func (m *FilteredTransactionActions) Reset()         { *m = FilteredTransactionActions{} }
   187  func (m *FilteredTransactionActions) String() string { return proto.CompactTextString(m) }
   188  func (*FilteredTransactionActions) ProtoMessage()    {}
   189  func (*FilteredTransactionActions) Descriptor() ([]byte, []int) {
   190  	return fileDescriptor_5eedcc5fab2714e6, []int{2}
   191  }
   192  
   193  func (m *FilteredTransactionActions) XXX_Unmarshal(b []byte) error {
   194  	return xxx_messageInfo_FilteredTransactionActions.Unmarshal(m, b)
   195  }
   196  func (m *FilteredTransactionActions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   197  	return xxx_messageInfo_FilteredTransactionActions.Marshal(b, m, deterministic)
   198  }
   199  func (m *FilteredTransactionActions) XXX_Merge(src proto.Message) {
   200  	xxx_messageInfo_FilteredTransactionActions.Merge(m, src)
   201  }
   202  func (m *FilteredTransactionActions) XXX_Size() int {
   203  	return xxx_messageInfo_FilteredTransactionActions.Size(m)
   204  }
   205  func (m *FilteredTransactionActions) XXX_DiscardUnknown() {
   206  	xxx_messageInfo_FilteredTransactionActions.DiscardUnknown(m)
   207  }
   208  
   209  var xxx_messageInfo_FilteredTransactionActions proto.InternalMessageInfo
   210  
   211  func (m *FilteredTransactionActions) GetChaincodeActions() []*FilteredChaincodeAction {
   212  	if m != nil {
   213  		return m.ChaincodeActions
   214  	}
   215  	return nil
   216  }
   217  
   218  // FilteredChaincodeAction is a minimal set of information about an action
   219  // within a transaction
   220  type FilteredChaincodeAction struct {
   221  	ChaincodeEvent       *ChaincodeEvent `protobuf:"bytes,1,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"`
   222  	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
   223  	XXX_unrecognized     []byte          `json:"-"`
   224  	XXX_sizecache        int32           `json:"-"`
   225  }
   226  
   227  func (m *FilteredChaincodeAction) Reset()         { *m = FilteredChaincodeAction{} }
   228  func (m *FilteredChaincodeAction) String() string { return proto.CompactTextString(m) }
   229  func (*FilteredChaincodeAction) ProtoMessage()    {}
   230  func (*FilteredChaincodeAction) Descriptor() ([]byte, []int) {
   231  	return fileDescriptor_5eedcc5fab2714e6, []int{3}
   232  }
   233  
   234  func (m *FilteredChaincodeAction) XXX_Unmarshal(b []byte) error {
   235  	return xxx_messageInfo_FilteredChaincodeAction.Unmarshal(m, b)
   236  }
   237  func (m *FilteredChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   238  	return xxx_messageInfo_FilteredChaincodeAction.Marshal(b, m, deterministic)
   239  }
   240  func (m *FilteredChaincodeAction) XXX_Merge(src proto.Message) {
   241  	xxx_messageInfo_FilteredChaincodeAction.Merge(m, src)
   242  }
   243  func (m *FilteredChaincodeAction) XXX_Size() int {
   244  	return xxx_messageInfo_FilteredChaincodeAction.Size(m)
   245  }
   246  func (m *FilteredChaincodeAction) XXX_DiscardUnknown() {
   247  	xxx_messageInfo_FilteredChaincodeAction.DiscardUnknown(m)
   248  }
   249  
   250  var xxx_messageInfo_FilteredChaincodeAction proto.InternalMessageInfo
   251  
   252  func (m *FilteredChaincodeAction) GetChaincodeEvent() *ChaincodeEvent {
   253  	if m != nil {
   254  		return m.ChaincodeEvent
   255  	}
   256  	return nil
   257  }
   258  
   259  // BlockAndPrivateData contains Block and a map from tx_seq_in_block to rwset.TxPvtReadWriteSet
   260  type BlockAndPrivateData struct {
   261  	Block *common.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
   262  	// map from tx_seq_in_block to rwset.TxPvtReadWriteSet
   263  	PrivateDataMap       map[uint64]*rwset.TxPvtReadWriteSet `protobuf:"bytes,2,rep,name=private_data_map,json=privateDataMap,proto3" json:"private_data_map,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   264  	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
   265  	XXX_unrecognized     []byte                              `json:"-"`
   266  	XXX_sizecache        int32                               `json:"-"`
   267  }
   268  
   269  func (m *BlockAndPrivateData) Reset()         { *m = BlockAndPrivateData{} }
   270  func (m *BlockAndPrivateData) String() string { return proto.CompactTextString(m) }
   271  func (*BlockAndPrivateData) ProtoMessage()    {}
   272  func (*BlockAndPrivateData) Descriptor() ([]byte, []int) {
   273  	return fileDescriptor_5eedcc5fab2714e6, []int{4}
   274  }
   275  
   276  func (m *BlockAndPrivateData) XXX_Unmarshal(b []byte) error {
   277  	return xxx_messageInfo_BlockAndPrivateData.Unmarshal(m, b)
   278  }
   279  func (m *BlockAndPrivateData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   280  	return xxx_messageInfo_BlockAndPrivateData.Marshal(b, m, deterministic)
   281  }
   282  func (m *BlockAndPrivateData) XXX_Merge(src proto.Message) {
   283  	xxx_messageInfo_BlockAndPrivateData.Merge(m, src)
   284  }
   285  func (m *BlockAndPrivateData) XXX_Size() int {
   286  	return xxx_messageInfo_BlockAndPrivateData.Size(m)
   287  }
   288  func (m *BlockAndPrivateData) XXX_DiscardUnknown() {
   289  	xxx_messageInfo_BlockAndPrivateData.DiscardUnknown(m)
   290  }
   291  
   292  var xxx_messageInfo_BlockAndPrivateData proto.InternalMessageInfo
   293  
   294  func (m *BlockAndPrivateData) GetBlock() *common.Block {
   295  	if m != nil {
   296  		return m.Block
   297  	}
   298  	return nil
   299  }
   300  
   301  func (m *BlockAndPrivateData) GetPrivateDataMap() map[uint64]*rwset.TxPvtReadWriteSet {
   302  	if m != nil {
   303  		return m.PrivateDataMap
   304  	}
   305  	return nil
   306  }
   307  
   308  // DeliverResponse
   309  type DeliverResponse struct {
   310  	// Types that are valid to be assigned to Type:
   311  	//
   312  	//	*DeliverResponse_Status
   313  	//	*DeliverResponse_Block
   314  	//	*DeliverResponse_FilteredBlock
   315  	//	*DeliverResponse_BlockAndPrivateData
   316  	Type                 isDeliverResponse_Type `protobuf_oneof:"Type"`
   317  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
   318  	XXX_unrecognized     []byte                 `json:"-"`
   319  	XXX_sizecache        int32                  `json:"-"`
   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) {
   326  	return fileDescriptor_5eedcc5fab2714e6, []int{5}
   327  }
   328  
   329  func (m *DeliverResponse) XXX_Unmarshal(b []byte) error {
   330  	return xxx_messageInfo_DeliverResponse.Unmarshal(m, b)
   331  }
   332  func (m *DeliverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   333  	return xxx_messageInfo_DeliverResponse.Marshal(b, m, deterministic)
   334  }
   335  func (m *DeliverResponse) XXX_Merge(src proto.Message) {
   336  	xxx_messageInfo_DeliverResponse.Merge(m, src)
   337  }
   338  func (m *DeliverResponse) XXX_Size() int {
   339  	return xxx_messageInfo_DeliverResponse.Size(m)
   340  }
   341  func (m *DeliverResponse) XXX_DiscardUnknown() {
   342  	xxx_messageInfo_DeliverResponse.DiscardUnknown(m)
   343  }
   344  
   345  var xxx_messageInfo_DeliverResponse proto.InternalMessageInfo
   346  
   347  type isDeliverResponse_Type interface {
   348  	isDeliverResponse_Type()
   349  }
   350  
   351  type DeliverResponse_Status struct {
   352  	Status common.Status `protobuf:"varint,1,opt,name=status,proto3,enum=common.Status,oneof"`
   353  }
   354  
   355  type DeliverResponse_Block struct {
   356  	Block *common.Block `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
   357  }
   358  
   359  type DeliverResponse_FilteredBlock struct {
   360  	FilteredBlock *FilteredBlock `protobuf:"bytes,3,opt,name=filtered_block,json=filteredBlock,proto3,oneof"`
   361  }
   362  
   363  type DeliverResponse_BlockAndPrivateData struct {
   364  	BlockAndPrivateData *BlockAndPrivateData `protobuf:"bytes,4,opt,name=block_and_private_data,json=blockAndPrivateData,proto3,oneof"`
   365  }
   366  
   367  func (*DeliverResponse_Status) isDeliverResponse_Type() {}
   368  
   369  func (*DeliverResponse_Block) isDeliverResponse_Type() {}
   370  
   371  func (*DeliverResponse_FilteredBlock) isDeliverResponse_Type() {}
   372  
   373  func (*DeliverResponse_BlockAndPrivateData) isDeliverResponse_Type() {}
   374  
   375  func (m *DeliverResponse) GetType() isDeliverResponse_Type {
   376  	if m != nil {
   377  		return m.Type
   378  	}
   379  	return nil
   380  }
   381  
   382  func (m *DeliverResponse) GetStatus() common.Status {
   383  	if x, ok := m.GetType().(*DeliverResponse_Status); ok {
   384  		return x.Status
   385  	}
   386  	return common.Status_UNKNOWN
   387  }
   388  
   389  func (m *DeliverResponse) GetBlock() *common.Block {
   390  	if x, ok := m.GetType().(*DeliverResponse_Block); ok {
   391  		return x.Block
   392  	}
   393  	return nil
   394  }
   395  
   396  func (m *DeliverResponse) GetFilteredBlock() *FilteredBlock {
   397  	if x, ok := m.GetType().(*DeliverResponse_FilteredBlock); ok {
   398  		return x.FilteredBlock
   399  	}
   400  	return nil
   401  }
   402  
   403  func (m *DeliverResponse) GetBlockAndPrivateData() *BlockAndPrivateData {
   404  	if x, ok := m.GetType().(*DeliverResponse_BlockAndPrivateData); ok {
   405  		return x.BlockAndPrivateData
   406  	}
   407  	return nil
   408  }
   409  
   410  // XXX_OneofWrappers is for the internal use of the proto package.
   411  func (*DeliverResponse) XXX_OneofWrappers() []interface{} {
   412  	return []interface{}{
   413  		(*DeliverResponse_Status)(nil),
   414  		(*DeliverResponse_Block)(nil),
   415  		(*DeliverResponse_FilteredBlock)(nil),
   416  		(*DeliverResponse_BlockAndPrivateData)(nil),
   417  	}
   418  }
   419  
   420  func init() {
   421  	proto.RegisterType((*FilteredBlock)(nil), "protos.FilteredBlock")
   422  	proto.RegisterType((*FilteredTransaction)(nil), "protos.FilteredTransaction")
   423  	proto.RegisterType((*FilteredTransactionActions)(nil), "protos.FilteredTransactionActions")
   424  	proto.RegisterType((*FilteredChaincodeAction)(nil), "protos.FilteredChaincodeAction")
   425  	proto.RegisterType((*BlockAndPrivateData)(nil), "protos.BlockAndPrivateData")
   426  	proto.RegisterMapType((map[uint64]*rwset.TxPvtReadWriteSet)(nil), "protos.BlockAndPrivateData.PrivateDataMapEntry")
   427  	proto.RegisterType((*DeliverResponse)(nil), "protos.DeliverResponse")
   428  }
   429  
   430  func init() { proto.RegisterFile("peer/events.proto", fileDescriptor_5eedcc5fab2714e6) }
   431  
   432  var fileDescriptor_5eedcc5fab2714e6 = []byte{
   433  	// 700 bytes of a gzipped FileDescriptorProto
   434  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4d, 0x6f, 0xda, 0x4a,
   435  	0x14, 0xc5, 0x40, 0x78, 0xca, 0x45, 0x10, 0x32, 0xbc, 0x10, 0x8b, 0xe8, 0xe9, 0x45, 0x7e, 0x7a,
   436  	0x15, 0x8b, 0xc6, 0x54, 0x74, 0x53, 0x65, 0xd1, 0x2a, 0xe4, 0x43, 0x44, 0x6a, 0x25, 0x34, 0xa1,
   437  	0x8d, 0x9a, 0x2e, 0xac, 0xc1, 0xbe, 0x80, 0x1b, 0x63, 0x5b, 0xf6, 0x40, 0xe1, 0x9f, 0xf4, 0x87,
   438  	0xf5, 0x97, 0x74, 0xd5, 0x55, 0x55, 0x79, 0xc6, 0xc3, 0x57, 0x48, 0xa4, 0x6c, 0xec, 0xf1, 0xbd,
   439  	0xe7, 0x9c, 0x3b, 0xf7, 0xf8, 0xce, 0xc0, 0x7e, 0x88, 0x18, 0x35, 0x71, 0x8a, 0x3e, 0x8f, 0xcd,
   440  	0x30, 0x0a, 0x78, 0x40, 0x0a, 0xe2, 0x15, 0xd7, 0xab, 0x76, 0x30, 0x1e, 0x07, 0x7e, 0x53, 0xbe,
   441  	0x64, 0xb2, 0xae, 0x7b, 0xe8, 0x0c, 0x31, 0x6a, 0x46, 0xdf, 0x62, 0xe4, 0xf2, 0x99, 0x66, 0xea,
   442  	0x42, 0xc9, 0x1e, 0x31, 0xd7, 0xb7, 0x03, 0x07, 0x2d, 0xa1, 0x99, 0xe6, 0x6a, 0x22, 0xc7, 0x23,
   443  	0xe6, 0xc7, 0xcc, 0xe6, 0xae, 0x52, 0x33, 0xbe, 0x6b, 0x50, 0xba, 0x72, 0x3d, 0x8e, 0x11, 0x3a,
   444  	0x6d, 0x2f, 0xb0, 0xef, 0xc9, 0x3f, 0x00, 0xf6, 0x88, 0xf9, 0x3e, 0x7a, 0x96, 0xeb, 0xe8, 0xda,
   445  	0xb1, 0xd6, 0xd8, 0xa5, 0xbb, 0x69, 0xe4, 0xda, 0x21, 0x35, 0x28, 0xf8, 0x93, 0x71, 0x1f, 0x23,
   446  	0x3d, 0x7b, 0xac, 0x35, 0xf2, 0x34, 0xfd, 0x22, 0x5d, 0x38, 0x18, 0xa4, 0x3a, 0xd6, 0x4a, 0x99,
   447  	0x58, 0xcf, 0x1f, 0xe7, 0x1a, 0xc5, 0xd6, 0x91, 0xac, 0x17, 0x9b, 0xaa, 0x58, 0x6f, 0x89, 0xa1,
   448  	0x7f, 0x0f, 0x1e, 0x06, 0x63, 0xe3, 0x97, 0x06, 0xd5, 0x2d, 0x68, 0x42, 0x20, 0xcf, 0x67, 0x8b,
   449  	0xad, 0x89, 0x35, 0x79, 0x01, 0x79, 0x3e, 0x0f, 0x51, 0xec, 0xa9, 0xdc, 0x22, 0x66, 0xea, 0x58,
   450  	0x07, 0x99, 0x83, 0x51, 0x6f, 0x1e, 0x22, 0x15, 0x79, 0x72, 0x05, 0x84, 0xcf, 0xac, 0x29, 0xf3,
   451  	0x5c, 0x87, 0x25, 0x62, 0x56, 0x62, 0x94, 0x9e, 0x13, 0x2c, 0x5d, 0x6d, 0xb1, 0x37, 0xfb, 0xb4,
   452  	0x00, 0x9c, 0x07, 0x0e, 0xd2, 0x0a, 0xdf, 0x88, 0x90, 0x8f, 0x50, 0x5d, 0x69, 0xd2, 0x5a, 0xf6,
   453  	0xaa, 0x35, 0x8a, 0x2d, 0xe3, 0x89, 0x5e, 0xcf, 0x24, 0xb2, 0x93, 0xa1, 0x84, 0x3f, 0x88, 0xb6,
   454  	0x0b, 0x90, 0xbf, 0x60, 0x9c, 0x19, 0x5f, 0xa1, 0xfe, 0x38, 0x97, 0xbc, 0x87, 0xfd, 0xe5, 0x4f,
   455  	0x56, 0xa5, 0x35, 0x61, 0xf3, 0xbf, 0x9b, 0xa5, 0xcf, 0x15, 0x50, 0x92, 0x69, 0xc5, 0x5e, 0x0f,
   456  	0xc4, 0xc6, 0x1d, 0x1c, 0x3e, 0x02, 0x26, 0xef, 0x60, 0x6f, 0x63, 0x9a, 0x84, 0xe9, 0xc5, 0x56,
   457  	0x4d, 0x95, 0x59, 0x30, 0x2e, 0x93, 0x2c, 0x2d, 0xdb, 0x6b, 0xdf, 0xc6, 0x4f, 0x0d, 0xaa, 0x62,
   458  	0xaa, 0xce, 0x7c, 0xa7, 0x1b, 0xb9, 0x53, 0xc6, 0x31, 0xe9, 0x8f, 0xfc, 0x07, 0x3b, 0xfd, 0x24,
   459  	0x9c, 0xca, 0x95, 0xd4, 0xff, 0x12, 0x58, 0x2a, 0x73, 0xe4, 0x33, 0x54, 0x42, 0xc9, 0xb1, 0x1c,
   460  	0xc6, 0x99, 0x35, 0x66, 0xa1, 0x9e, 0x15, 0x5d, 0x36, 0x55, 0xf9, 0x2d, 0xda, 0xe6, 0xca, 0xfa,
   461  	0x03, 0x0b, 0x2f, 0x7d, 0x1e, 0xcd, 0x69, 0x39, 0x5c, 0x0b, 0xd6, 0xbf, 0x40, 0x75, 0x0b, 0x8c,
   462  	0x54, 0x20, 0x77, 0x8f, 0x73, 0xb1, 0xa9, 0x3c, 0x4d, 0x96, 0xc4, 0x84, 0x9d, 0x29, 0xf3, 0x26,
   463  	0x72, 0xb0, 0x8a, 0x2d, 0xdd, 0x94, 0xe7, 0xad, 0x37, 0xeb, 0x4e, 0x39, 0x45, 0xe6, 0xdc, 0x46,
   464  	0x2e, 0xc7, 0x1b, 0xe4, 0x54, 0xc2, 0x4e, 0xb3, 0x6f, 0x34, 0xe3, 0xb7, 0x06, 0x7b, 0x17, 0xe8,
   465  	0xb9, 0x53, 0x8c, 0x28, 0xc6, 0x61, 0xe0, 0xc7, 0x48, 0x1a, 0x50, 0x88, 0x39, 0xe3, 0x93, 0x58,
   466  	0x88, 0x97, 0x5b, 0x65, 0xd5, 0xf1, 0x8d, 0x88, 0x76, 0x32, 0x34, 0xcd, 0x93, 0xff, 0x95, 0x35,
   467  	0xd9, 0x2d, 0xd6, 0x74, 0x32, 0xca, 0x9c, 0xb7, 0x50, 0x5e, 0x1c, 0x37, 0x89, 0xcf, 0x09, 0xfc,
   468  	0xc1, 0xe6, 0x00, 0x28, 0x5e, 0x69, 0xb0, 0x76, 0xca, 0x29, 0xd4, 0x04, 0xcd, 0x62, 0xbe, 0x63,
   469  	0xad, 0xda, 0x9c, 0xce, 0xf0, 0xd1, 0x13, 0x16, 0x77, 0x32, 0xb4, 0xda, 0x7f, 0x18, 0x4e, 0xa6,
   470  	0x37, 0x39, 0x6a, 0xad, 0x1f, 0x1a, 0xfc, 0x95, 0x1a, 0x40, 0x4e, 0x97, 0xcb, 0x8a, 0x6a, 0xe5,
   471  	0xd2, 0x9f, 0xa2, 0x17, 0x84, 0x58, 0x3f, 0x54, 0x45, 0x36, 0xec, 0x32, 0x32, 0x0d, 0xed, 0x95,
   472  	0x46, 0xda, 0x0b, 0x1f, 0x55, 0x33, 0xcf, 0xd7, 0xb8, 0x86, 0x5a, 0x9a, 0xb8, 0x75, 0xf9, 0x68,
   473  	0x75, 0x06, 0x9f, 0x2b, 0xd5, 0x66, 0x60, 0x04, 0xd1, 0xd0, 0x1c, 0xcd, 0x43, 0x8c, 0xe4, 0x1d,
   474  	0x6c, 0x0e, 0x58, 0x3f, 0x72, 0x6d, 0x45, 0x4b, 0xae, 0xd8, 0x76, 0x49, 0x4c, 0x7e, 0xdc, 0x65,
   475  	0xf6, 0x3d, 0x1b, 0xe2, 0xdd, 0xcb, 0xa1, 0xcb, 0x47, 0x93, 0x7e, 0x52, 0xab, 0xb9, 0xc2, 0x6c,
   476  	0x4a, 0xe6, 0x89, 0x64, 0x9e, 0x0c, 0x83, 0x66, 0x42, 0xee, 0xcb, 0x8b, 0xff, 0xf5, 0x9f, 0x00,
   477  	0x00, 0x00, 0xff, 0xff, 0xe9, 0x5f, 0xb5, 0x2a, 0x14, 0x06, 0x00, 0x00,
   478  }
   479  
   480  // Reference imports to suppress errors if they are not otherwise used.
   481  var _ context.Context
   482  var _ grpc.ClientConn
   483  
   484  // This is a compile-time assertion to ensure that this generated file
   485  // is compatible with the grpc package it is being compiled against.
   486  const _ = grpc.SupportPackageIsVersion4
   487  
   488  // DeliverClient is the client API for Deliver service.
   489  //
   490  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   491  type DeliverClient interface {
   492  	// Deliver first requires an Envelope of type ab.DELIVER_SEEK_INFO with
   493  	// Payload data as a marshaled orderer.SeekInfo message,
   494  	// then a stream of block replies is received
   495  	Deliver(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverClient, error)
   496  	// DeliverFiltered first requires an Envelope of type ab.DELIVER_SEEK_INFO with
   497  	// Payload data as a marshaled orderer.SeekInfo message,
   498  	// then a stream of **filtered** block replies is received
   499  	DeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverFilteredClient, error)
   500  	// DeliverWithPrivateData first requires an Envelope of type ab.DELIVER_SEEK_INFO with
   501  	// Payload data as a marshaled orderer.SeekInfo message,
   502  	// then a stream of block and private data replies is received
   503  	DeliverWithPrivateData(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverWithPrivateDataClient, error)
   504  }
   505  
   506  type deliverClient struct {
   507  	cc *grpc.ClientConn
   508  }
   509  
   510  func NewDeliverClient(cc *grpc.ClientConn) DeliverClient {
   511  	return &deliverClient{cc}
   512  }
   513  
   514  func (c *deliverClient) Deliver(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverClient, error) {
   515  	stream, err := c.cc.NewStream(ctx, &_Deliver_serviceDesc.Streams[0], "/protos.Deliver/Deliver", opts...)
   516  	if err != nil {
   517  		return nil, err
   518  	}
   519  	x := &deliverDeliverClient{stream}
   520  	return x, nil
   521  }
   522  
   523  type Deliver_DeliverClient interface {
   524  	Send(*common.Envelope) error
   525  	Recv() (*DeliverResponse, error)
   526  	grpc.ClientStream
   527  }
   528  
   529  type deliverDeliverClient struct {
   530  	grpc.ClientStream
   531  }
   532  
   533  func (x *deliverDeliverClient) Send(m *common.Envelope) error {
   534  	return x.ClientStream.SendMsg(m)
   535  }
   536  
   537  func (x *deliverDeliverClient) Recv() (*DeliverResponse, error) {
   538  	m := new(DeliverResponse)
   539  	if err := x.ClientStream.RecvMsg(m); err != nil {
   540  		return nil, err
   541  	}
   542  	return m, nil
   543  }
   544  
   545  func (c *deliverClient) DeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverFilteredClient, error) {
   546  	stream, err := c.cc.NewStream(ctx, &_Deliver_serviceDesc.Streams[1], "/protos.Deliver/DeliverFiltered", opts...)
   547  	if err != nil {
   548  		return nil, err
   549  	}
   550  	x := &deliverDeliverFilteredClient{stream}
   551  	return x, nil
   552  }
   553  
   554  type Deliver_DeliverFilteredClient interface {
   555  	Send(*common.Envelope) error
   556  	Recv() (*DeliverResponse, error)
   557  	grpc.ClientStream
   558  }
   559  
   560  type deliverDeliverFilteredClient struct {
   561  	grpc.ClientStream
   562  }
   563  
   564  func (x *deliverDeliverFilteredClient) Send(m *common.Envelope) error {
   565  	return x.ClientStream.SendMsg(m)
   566  }
   567  
   568  func (x *deliverDeliverFilteredClient) Recv() (*DeliverResponse, error) {
   569  	m := new(DeliverResponse)
   570  	if err := x.ClientStream.RecvMsg(m); err != nil {
   571  		return nil, err
   572  	}
   573  	return m, nil
   574  }
   575  
   576  func (c *deliverClient) DeliverWithPrivateData(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverWithPrivateDataClient, error) {
   577  	stream, err := c.cc.NewStream(ctx, &_Deliver_serviceDesc.Streams[2], "/protos.Deliver/DeliverWithPrivateData", opts...)
   578  	if err != nil {
   579  		return nil, err
   580  	}
   581  	x := &deliverDeliverWithPrivateDataClient{stream}
   582  	return x, nil
   583  }
   584  
   585  type Deliver_DeliverWithPrivateDataClient interface {
   586  	Send(*common.Envelope) error
   587  	Recv() (*DeliverResponse, error)
   588  	grpc.ClientStream
   589  }
   590  
   591  type deliverDeliverWithPrivateDataClient struct {
   592  	grpc.ClientStream
   593  }
   594  
   595  func (x *deliverDeliverWithPrivateDataClient) Send(m *common.Envelope) error {
   596  	return x.ClientStream.SendMsg(m)
   597  }
   598  
   599  func (x *deliverDeliverWithPrivateDataClient) Recv() (*DeliverResponse, error) {
   600  	m := new(DeliverResponse)
   601  	if err := x.ClientStream.RecvMsg(m); err != nil {
   602  		return nil, err
   603  	}
   604  	return m, nil
   605  }
   606  
   607  // DeliverServer is the server API for Deliver service.
   608  type DeliverServer interface {
   609  	// Deliver first requires an Envelope of type ab.DELIVER_SEEK_INFO with
   610  	// Payload data as a marshaled orderer.SeekInfo message,
   611  	// then a stream of block replies is received
   612  	Deliver(Deliver_DeliverServer) error
   613  	// DeliverFiltered first requires an Envelope of type ab.DELIVER_SEEK_INFO with
   614  	// Payload data as a marshaled orderer.SeekInfo message,
   615  	// then a stream of **filtered** block replies is received
   616  	DeliverFiltered(Deliver_DeliverFilteredServer) error
   617  	// DeliverWithPrivateData first requires an Envelope of type ab.DELIVER_SEEK_INFO with
   618  	// Payload data as a marshaled orderer.SeekInfo message,
   619  	// then a stream of block and private data replies is received
   620  	DeliverWithPrivateData(Deliver_DeliverWithPrivateDataServer) error
   621  }
   622  
   623  // UnimplementedDeliverServer can be embedded to have forward compatible implementations.
   624  type UnimplementedDeliverServer struct {
   625  }
   626  
   627  func (*UnimplementedDeliverServer) Deliver(srv Deliver_DeliverServer) error {
   628  	return status.Errorf(codes.Unimplemented, "method Deliver not implemented")
   629  }
   630  func (*UnimplementedDeliverServer) DeliverFiltered(srv Deliver_DeliverFilteredServer) error {
   631  	return status.Errorf(codes.Unimplemented, "method DeliverFiltered not implemented")
   632  }
   633  func (*UnimplementedDeliverServer) DeliverWithPrivateData(srv Deliver_DeliverWithPrivateDataServer) error {
   634  	return status.Errorf(codes.Unimplemented, "method DeliverWithPrivateData not implemented")
   635  }
   636  
   637  func RegisterDeliverServer(s *grpc.Server, srv DeliverServer) {
   638  	s.RegisterService(&_Deliver_serviceDesc, srv)
   639  }
   640  
   641  func _Deliver_Deliver_Handler(srv interface{}, stream grpc.ServerStream) error {
   642  	return srv.(DeliverServer).Deliver(&deliverDeliverServer{stream})
   643  }
   644  
   645  type Deliver_DeliverServer interface {
   646  	Send(*DeliverResponse) error
   647  	Recv() (*common.Envelope, error)
   648  	grpc.ServerStream
   649  }
   650  
   651  type deliverDeliverServer struct {
   652  	grpc.ServerStream
   653  }
   654  
   655  func (x *deliverDeliverServer) Send(m *DeliverResponse) error {
   656  	return x.ServerStream.SendMsg(m)
   657  }
   658  
   659  func (x *deliverDeliverServer) Recv() (*common.Envelope, error) {
   660  	m := new(common.Envelope)
   661  	if err := x.ServerStream.RecvMsg(m); err != nil {
   662  		return nil, err
   663  	}
   664  	return m, nil
   665  }
   666  
   667  func _Deliver_DeliverFiltered_Handler(srv interface{}, stream grpc.ServerStream) error {
   668  	return srv.(DeliverServer).DeliverFiltered(&deliverDeliverFilteredServer{stream})
   669  }
   670  
   671  type Deliver_DeliverFilteredServer interface {
   672  	Send(*DeliverResponse) error
   673  	Recv() (*common.Envelope, error)
   674  	grpc.ServerStream
   675  }
   676  
   677  type deliverDeliverFilteredServer struct {
   678  	grpc.ServerStream
   679  }
   680  
   681  func (x *deliverDeliverFilteredServer) Send(m *DeliverResponse) error {
   682  	return x.ServerStream.SendMsg(m)
   683  }
   684  
   685  func (x *deliverDeliverFilteredServer) Recv() (*common.Envelope, error) {
   686  	m := new(common.Envelope)
   687  	if err := x.ServerStream.RecvMsg(m); err != nil {
   688  		return nil, err
   689  	}
   690  	return m, nil
   691  }
   692  
   693  func _Deliver_DeliverWithPrivateData_Handler(srv interface{}, stream grpc.ServerStream) error {
   694  	return srv.(DeliverServer).DeliverWithPrivateData(&deliverDeliverWithPrivateDataServer{stream})
   695  }
   696  
   697  type Deliver_DeliverWithPrivateDataServer interface {
   698  	Send(*DeliverResponse) error
   699  	Recv() (*common.Envelope, error)
   700  	grpc.ServerStream
   701  }
   702  
   703  type deliverDeliverWithPrivateDataServer struct {
   704  	grpc.ServerStream
   705  }
   706  
   707  func (x *deliverDeliverWithPrivateDataServer) Send(m *DeliverResponse) error {
   708  	return x.ServerStream.SendMsg(m)
   709  }
   710  
   711  func (x *deliverDeliverWithPrivateDataServer) Recv() (*common.Envelope, error) {
   712  	m := new(common.Envelope)
   713  	if err := x.ServerStream.RecvMsg(m); err != nil {
   714  		return nil, err
   715  	}
   716  	return m, nil
   717  }
   718  
   719  var _Deliver_serviceDesc = grpc.ServiceDesc{
   720  	ServiceName: "protos.Deliver",
   721  	HandlerType: (*DeliverServer)(nil),
   722  	Methods:     []grpc.MethodDesc{},
   723  	Streams: []grpc.StreamDesc{
   724  		{
   725  			StreamName:    "Deliver",
   726  			Handler:       _Deliver_Deliver_Handler,
   727  			ServerStreams: true,
   728  			ClientStreams: true,
   729  		},
   730  		{
   731  			StreamName:    "DeliverFiltered",
   732  			Handler:       _Deliver_DeliverFiltered_Handler,
   733  			ServerStreams: true,
   734  			ClientStreams: true,
   735  		},
   736  		{
   737  			StreamName:    "DeliverWithPrivateData",
   738  			Handler:       _Deliver_DeliverWithPrivateData_Handler,
   739  			ServerStreams: true,
   740  			ClientStreams: true,
   741  		},
   742  	},
   743  	Metadata: "peer/events.proto",
   744  }