github.com/hyperledger/fabric-protos-go@v0.3.3/gateway/gateway.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: gateway/gateway.proto
     3  
     4  package gateway
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	common "github.com/hyperledger/fabric-protos-go/common"
    11  	orderer "github.com/hyperledger/fabric-protos-go/orderer"
    12  	peer "github.com/hyperledger/fabric-protos-go/peer"
    13  	grpc "google.golang.org/grpc"
    14  	codes "google.golang.org/grpc/codes"
    15  	status "google.golang.org/grpc/status"
    16  	math "math"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var _ = proto.Marshal
    21  var _ = fmt.Errorf
    22  var _ = math.Inf
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    29  
    30  // EndorseRequest contains the details required to obtain sufficient endorsements for a
    31  // transaction to be committed to the ledger.
    32  type EndorseRequest struct {
    33  	// The unique identifier for the transaction.
    34  	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
    35  	// Identifier of the channel this request is bound for.
    36  	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
    37  	// The signed proposal ready for endorsement.
    38  	ProposedTransaction *peer.SignedProposal `protobuf:"bytes,3,opt,name=proposed_transaction,json=proposedTransaction,proto3" json:"proposed_transaction,omitempty"`
    39  	// If targeting the peers of specific organizations (e.g. for private data scenarios),
    40  	// the list of organizations' MSPIDs should be supplied here.
    41  	EndorsingOrganizations []string `protobuf:"bytes,4,rep,name=endorsing_organizations,json=endorsingOrganizations,proto3" json:"endorsing_organizations,omitempty"`
    42  	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
    43  	XXX_unrecognized       []byte   `json:"-"`
    44  	XXX_sizecache          int32    `json:"-"`
    45  }
    46  
    47  func (m *EndorseRequest) Reset()         { *m = EndorseRequest{} }
    48  func (m *EndorseRequest) String() string { return proto.CompactTextString(m) }
    49  func (*EndorseRequest) ProtoMessage()    {}
    50  func (*EndorseRequest) Descriptor() ([]byte, []int) {
    51  	return fileDescriptor_285396c8df15061f, []int{0}
    52  }
    53  
    54  func (m *EndorseRequest) XXX_Unmarshal(b []byte) error {
    55  	return xxx_messageInfo_EndorseRequest.Unmarshal(m, b)
    56  }
    57  func (m *EndorseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    58  	return xxx_messageInfo_EndorseRequest.Marshal(b, m, deterministic)
    59  }
    60  func (m *EndorseRequest) XXX_Merge(src proto.Message) {
    61  	xxx_messageInfo_EndorseRequest.Merge(m, src)
    62  }
    63  func (m *EndorseRequest) XXX_Size() int {
    64  	return xxx_messageInfo_EndorseRequest.Size(m)
    65  }
    66  func (m *EndorseRequest) XXX_DiscardUnknown() {
    67  	xxx_messageInfo_EndorseRequest.DiscardUnknown(m)
    68  }
    69  
    70  var xxx_messageInfo_EndorseRequest proto.InternalMessageInfo
    71  
    72  func (m *EndorseRequest) GetTransactionId() string {
    73  	if m != nil {
    74  		return m.TransactionId
    75  	}
    76  	return ""
    77  }
    78  
    79  func (m *EndorseRequest) GetChannelId() string {
    80  	if m != nil {
    81  		return m.ChannelId
    82  	}
    83  	return ""
    84  }
    85  
    86  func (m *EndorseRequest) GetProposedTransaction() *peer.SignedProposal {
    87  	if m != nil {
    88  		return m.ProposedTransaction
    89  	}
    90  	return nil
    91  }
    92  
    93  func (m *EndorseRequest) GetEndorsingOrganizations() []string {
    94  	if m != nil {
    95  		return m.EndorsingOrganizations
    96  	}
    97  	return nil
    98  }
    99  
   100  // EndorseResponse returns the result of endorsing a transaction.
   101  type EndorseResponse struct {
   102  	// The unsigned set of transaction responses from the endorsing peers for signing by the client
   103  	// before submitting to ordering service (via gateway).
   104  	PreparedTransaction  *common.Envelope `protobuf:"bytes,1,opt,name=prepared_transaction,json=preparedTransaction,proto3" json:"prepared_transaction,omitempty"`
   105  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
   106  	XXX_unrecognized     []byte           `json:"-"`
   107  	XXX_sizecache        int32            `json:"-"`
   108  }
   109  
   110  func (m *EndorseResponse) Reset()         { *m = EndorseResponse{} }
   111  func (m *EndorseResponse) String() string { return proto.CompactTextString(m) }
   112  func (*EndorseResponse) ProtoMessage()    {}
   113  func (*EndorseResponse) Descriptor() ([]byte, []int) {
   114  	return fileDescriptor_285396c8df15061f, []int{1}
   115  }
   116  
   117  func (m *EndorseResponse) XXX_Unmarshal(b []byte) error {
   118  	return xxx_messageInfo_EndorseResponse.Unmarshal(m, b)
   119  }
   120  func (m *EndorseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   121  	return xxx_messageInfo_EndorseResponse.Marshal(b, m, deterministic)
   122  }
   123  func (m *EndorseResponse) XXX_Merge(src proto.Message) {
   124  	xxx_messageInfo_EndorseResponse.Merge(m, src)
   125  }
   126  func (m *EndorseResponse) XXX_Size() int {
   127  	return xxx_messageInfo_EndorseResponse.Size(m)
   128  }
   129  func (m *EndorseResponse) XXX_DiscardUnknown() {
   130  	xxx_messageInfo_EndorseResponse.DiscardUnknown(m)
   131  }
   132  
   133  var xxx_messageInfo_EndorseResponse proto.InternalMessageInfo
   134  
   135  func (m *EndorseResponse) GetPreparedTransaction() *common.Envelope {
   136  	if m != nil {
   137  		return m.PreparedTransaction
   138  	}
   139  	return nil
   140  }
   141  
   142  // SubmitRequest contains the details required to submit a transaction (update the ledger).
   143  type SubmitRequest struct {
   144  	// Identifier of the transaction to submit.
   145  	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
   146  	// Identifier of the channel this request is bound for.
   147  	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
   148  	// The signed set of endorsed transaction responses to submit.
   149  	PreparedTransaction  *common.Envelope `protobuf:"bytes,3,opt,name=prepared_transaction,json=preparedTransaction,proto3" json:"prepared_transaction,omitempty"`
   150  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
   151  	XXX_unrecognized     []byte           `json:"-"`
   152  	XXX_sizecache        int32            `json:"-"`
   153  }
   154  
   155  func (m *SubmitRequest) Reset()         { *m = SubmitRequest{} }
   156  func (m *SubmitRequest) String() string { return proto.CompactTextString(m) }
   157  func (*SubmitRequest) ProtoMessage()    {}
   158  func (*SubmitRequest) Descriptor() ([]byte, []int) {
   159  	return fileDescriptor_285396c8df15061f, []int{2}
   160  }
   161  
   162  func (m *SubmitRequest) XXX_Unmarshal(b []byte) error {
   163  	return xxx_messageInfo_SubmitRequest.Unmarshal(m, b)
   164  }
   165  func (m *SubmitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   166  	return xxx_messageInfo_SubmitRequest.Marshal(b, m, deterministic)
   167  }
   168  func (m *SubmitRequest) XXX_Merge(src proto.Message) {
   169  	xxx_messageInfo_SubmitRequest.Merge(m, src)
   170  }
   171  func (m *SubmitRequest) XXX_Size() int {
   172  	return xxx_messageInfo_SubmitRequest.Size(m)
   173  }
   174  func (m *SubmitRequest) XXX_DiscardUnknown() {
   175  	xxx_messageInfo_SubmitRequest.DiscardUnknown(m)
   176  }
   177  
   178  var xxx_messageInfo_SubmitRequest proto.InternalMessageInfo
   179  
   180  func (m *SubmitRequest) GetTransactionId() string {
   181  	if m != nil {
   182  		return m.TransactionId
   183  	}
   184  	return ""
   185  }
   186  
   187  func (m *SubmitRequest) GetChannelId() string {
   188  	if m != nil {
   189  		return m.ChannelId
   190  	}
   191  	return ""
   192  }
   193  
   194  func (m *SubmitRequest) GetPreparedTransaction() *common.Envelope {
   195  	if m != nil {
   196  		return m.PreparedTransaction
   197  	}
   198  	return nil
   199  }
   200  
   201  // SubmitResponse returns the result of submitting a transaction.
   202  type SubmitResponse struct {
   203  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   204  	XXX_unrecognized     []byte   `json:"-"`
   205  	XXX_sizecache        int32    `json:"-"`
   206  }
   207  
   208  func (m *SubmitResponse) Reset()         { *m = SubmitResponse{} }
   209  func (m *SubmitResponse) String() string { return proto.CompactTextString(m) }
   210  func (*SubmitResponse) ProtoMessage()    {}
   211  func (*SubmitResponse) Descriptor() ([]byte, []int) {
   212  	return fileDescriptor_285396c8df15061f, []int{3}
   213  }
   214  
   215  func (m *SubmitResponse) XXX_Unmarshal(b []byte) error {
   216  	return xxx_messageInfo_SubmitResponse.Unmarshal(m, b)
   217  }
   218  func (m *SubmitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   219  	return xxx_messageInfo_SubmitResponse.Marshal(b, m, deterministic)
   220  }
   221  func (m *SubmitResponse) XXX_Merge(src proto.Message) {
   222  	xxx_messageInfo_SubmitResponse.Merge(m, src)
   223  }
   224  func (m *SubmitResponse) XXX_Size() int {
   225  	return xxx_messageInfo_SubmitResponse.Size(m)
   226  }
   227  func (m *SubmitResponse) XXX_DiscardUnknown() {
   228  	xxx_messageInfo_SubmitResponse.DiscardUnknown(m)
   229  }
   230  
   231  var xxx_messageInfo_SubmitResponse proto.InternalMessageInfo
   232  
   233  // SignedCommitStatusRequest contains a serialized CommitStatusRequest message, and a digital signature for the
   234  // serialized request message.
   235  type SignedCommitStatusRequest struct {
   236  	// Serialized CommitStatusRequest message.
   237  	Request []byte `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
   238  	// Signature for request message.
   239  	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
   240  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   241  	XXX_unrecognized     []byte   `json:"-"`
   242  	XXX_sizecache        int32    `json:"-"`
   243  }
   244  
   245  func (m *SignedCommitStatusRequest) Reset()         { *m = SignedCommitStatusRequest{} }
   246  func (m *SignedCommitStatusRequest) String() string { return proto.CompactTextString(m) }
   247  func (*SignedCommitStatusRequest) ProtoMessage()    {}
   248  func (*SignedCommitStatusRequest) Descriptor() ([]byte, []int) {
   249  	return fileDescriptor_285396c8df15061f, []int{4}
   250  }
   251  
   252  func (m *SignedCommitStatusRequest) XXX_Unmarshal(b []byte) error {
   253  	return xxx_messageInfo_SignedCommitStatusRequest.Unmarshal(m, b)
   254  }
   255  func (m *SignedCommitStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   256  	return xxx_messageInfo_SignedCommitStatusRequest.Marshal(b, m, deterministic)
   257  }
   258  func (m *SignedCommitStatusRequest) XXX_Merge(src proto.Message) {
   259  	xxx_messageInfo_SignedCommitStatusRequest.Merge(m, src)
   260  }
   261  func (m *SignedCommitStatusRequest) XXX_Size() int {
   262  	return xxx_messageInfo_SignedCommitStatusRequest.Size(m)
   263  }
   264  func (m *SignedCommitStatusRequest) XXX_DiscardUnknown() {
   265  	xxx_messageInfo_SignedCommitStatusRequest.DiscardUnknown(m)
   266  }
   267  
   268  var xxx_messageInfo_SignedCommitStatusRequest proto.InternalMessageInfo
   269  
   270  func (m *SignedCommitStatusRequest) GetRequest() []byte {
   271  	if m != nil {
   272  		return m.Request
   273  	}
   274  	return nil
   275  }
   276  
   277  func (m *SignedCommitStatusRequest) GetSignature() []byte {
   278  	if m != nil {
   279  		return m.Signature
   280  	}
   281  	return nil
   282  }
   283  
   284  // CommitStatusRequest contains the details required to check whether a transaction has been
   285  // successfully committed.
   286  type CommitStatusRequest struct {
   287  	// Identifier of the transaction to check.
   288  	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
   289  	// Identifier of the channel this request is bound for.
   290  	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
   291  	// Client requestor identity.
   292  	Identity             []byte   `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
   293  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   294  	XXX_unrecognized     []byte   `json:"-"`
   295  	XXX_sizecache        int32    `json:"-"`
   296  }
   297  
   298  func (m *CommitStatusRequest) Reset()         { *m = CommitStatusRequest{} }
   299  func (m *CommitStatusRequest) String() string { return proto.CompactTextString(m) }
   300  func (*CommitStatusRequest) ProtoMessage()    {}
   301  func (*CommitStatusRequest) Descriptor() ([]byte, []int) {
   302  	return fileDescriptor_285396c8df15061f, []int{5}
   303  }
   304  
   305  func (m *CommitStatusRequest) XXX_Unmarshal(b []byte) error {
   306  	return xxx_messageInfo_CommitStatusRequest.Unmarshal(m, b)
   307  }
   308  func (m *CommitStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   309  	return xxx_messageInfo_CommitStatusRequest.Marshal(b, m, deterministic)
   310  }
   311  func (m *CommitStatusRequest) XXX_Merge(src proto.Message) {
   312  	xxx_messageInfo_CommitStatusRequest.Merge(m, src)
   313  }
   314  func (m *CommitStatusRequest) XXX_Size() int {
   315  	return xxx_messageInfo_CommitStatusRequest.Size(m)
   316  }
   317  func (m *CommitStatusRequest) XXX_DiscardUnknown() {
   318  	xxx_messageInfo_CommitStatusRequest.DiscardUnknown(m)
   319  }
   320  
   321  var xxx_messageInfo_CommitStatusRequest proto.InternalMessageInfo
   322  
   323  func (m *CommitStatusRequest) GetTransactionId() string {
   324  	if m != nil {
   325  		return m.TransactionId
   326  	}
   327  	return ""
   328  }
   329  
   330  func (m *CommitStatusRequest) GetChannelId() string {
   331  	if m != nil {
   332  		return m.ChannelId
   333  	}
   334  	return ""
   335  }
   336  
   337  func (m *CommitStatusRequest) GetIdentity() []byte {
   338  	if m != nil {
   339  		return m.Identity
   340  	}
   341  	return nil
   342  }
   343  
   344  // CommitStatusResponse returns the result of committing a transaction.
   345  type CommitStatusResponse struct {
   346  	// The result of the transaction commit, as defined in peer/transaction.proto.
   347  	Result peer.TxValidationCode `protobuf:"varint,1,opt,name=result,proto3,enum=protos.TxValidationCode" json:"result,omitempty"`
   348  	// Block number that contains the transaction.
   349  	BlockNumber          uint64   `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
   350  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   351  	XXX_unrecognized     []byte   `json:"-"`
   352  	XXX_sizecache        int32    `json:"-"`
   353  }
   354  
   355  func (m *CommitStatusResponse) Reset()         { *m = CommitStatusResponse{} }
   356  func (m *CommitStatusResponse) String() string { return proto.CompactTextString(m) }
   357  func (*CommitStatusResponse) ProtoMessage()    {}
   358  func (*CommitStatusResponse) Descriptor() ([]byte, []int) {
   359  	return fileDescriptor_285396c8df15061f, []int{6}
   360  }
   361  
   362  func (m *CommitStatusResponse) XXX_Unmarshal(b []byte) error {
   363  	return xxx_messageInfo_CommitStatusResponse.Unmarshal(m, b)
   364  }
   365  func (m *CommitStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   366  	return xxx_messageInfo_CommitStatusResponse.Marshal(b, m, deterministic)
   367  }
   368  func (m *CommitStatusResponse) XXX_Merge(src proto.Message) {
   369  	xxx_messageInfo_CommitStatusResponse.Merge(m, src)
   370  }
   371  func (m *CommitStatusResponse) XXX_Size() int {
   372  	return xxx_messageInfo_CommitStatusResponse.Size(m)
   373  }
   374  func (m *CommitStatusResponse) XXX_DiscardUnknown() {
   375  	xxx_messageInfo_CommitStatusResponse.DiscardUnknown(m)
   376  }
   377  
   378  var xxx_messageInfo_CommitStatusResponse proto.InternalMessageInfo
   379  
   380  func (m *CommitStatusResponse) GetResult() peer.TxValidationCode {
   381  	if m != nil {
   382  		return m.Result
   383  	}
   384  	return peer.TxValidationCode_VALID
   385  }
   386  
   387  func (m *CommitStatusResponse) GetBlockNumber() uint64 {
   388  	if m != nil {
   389  		return m.BlockNumber
   390  	}
   391  	return 0
   392  }
   393  
   394  // EvaluateRequest contains the details required to evaluate a transaction (query the ledger).
   395  type EvaluateRequest struct {
   396  	// Identifier of the transaction to evaluate.
   397  	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
   398  	// Identifier of the channel this request is bound for.
   399  	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
   400  	// The signed proposal ready for evaluation.
   401  	ProposedTransaction *peer.SignedProposal `protobuf:"bytes,3,opt,name=proposed_transaction,json=proposedTransaction,proto3" json:"proposed_transaction,omitempty"`
   402  	// If targeting the peers of specific organizations (e.g. for private data scenarios),
   403  	// the list of organizations' MSPIDs should be supplied here.
   404  	TargetOrganizations  []string `protobuf:"bytes,4,rep,name=target_organizations,json=targetOrganizations,proto3" json:"target_organizations,omitempty"`
   405  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   406  	XXX_unrecognized     []byte   `json:"-"`
   407  	XXX_sizecache        int32    `json:"-"`
   408  }
   409  
   410  func (m *EvaluateRequest) Reset()         { *m = EvaluateRequest{} }
   411  func (m *EvaluateRequest) String() string { return proto.CompactTextString(m) }
   412  func (*EvaluateRequest) ProtoMessage()    {}
   413  func (*EvaluateRequest) Descriptor() ([]byte, []int) {
   414  	return fileDescriptor_285396c8df15061f, []int{7}
   415  }
   416  
   417  func (m *EvaluateRequest) XXX_Unmarshal(b []byte) error {
   418  	return xxx_messageInfo_EvaluateRequest.Unmarshal(m, b)
   419  }
   420  func (m *EvaluateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   421  	return xxx_messageInfo_EvaluateRequest.Marshal(b, m, deterministic)
   422  }
   423  func (m *EvaluateRequest) XXX_Merge(src proto.Message) {
   424  	xxx_messageInfo_EvaluateRequest.Merge(m, src)
   425  }
   426  func (m *EvaluateRequest) XXX_Size() int {
   427  	return xxx_messageInfo_EvaluateRequest.Size(m)
   428  }
   429  func (m *EvaluateRequest) XXX_DiscardUnknown() {
   430  	xxx_messageInfo_EvaluateRequest.DiscardUnknown(m)
   431  }
   432  
   433  var xxx_messageInfo_EvaluateRequest proto.InternalMessageInfo
   434  
   435  func (m *EvaluateRequest) GetTransactionId() string {
   436  	if m != nil {
   437  		return m.TransactionId
   438  	}
   439  	return ""
   440  }
   441  
   442  func (m *EvaluateRequest) GetChannelId() string {
   443  	if m != nil {
   444  		return m.ChannelId
   445  	}
   446  	return ""
   447  }
   448  
   449  func (m *EvaluateRequest) GetProposedTransaction() *peer.SignedProposal {
   450  	if m != nil {
   451  		return m.ProposedTransaction
   452  	}
   453  	return nil
   454  }
   455  
   456  func (m *EvaluateRequest) GetTargetOrganizations() []string {
   457  	if m != nil {
   458  		return m.TargetOrganizations
   459  	}
   460  	return nil
   461  }
   462  
   463  // EvaluateResponse returns the result of evaluating a transaction.
   464  type EvaluateResponse struct {
   465  	// The response that is returned by the transaction function, as defined
   466  	// in peer/proposal_response.proto.
   467  	Result               *peer.Response `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
   468  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   469  	XXX_unrecognized     []byte         `json:"-"`
   470  	XXX_sizecache        int32          `json:"-"`
   471  }
   472  
   473  func (m *EvaluateResponse) Reset()         { *m = EvaluateResponse{} }
   474  func (m *EvaluateResponse) String() string { return proto.CompactTextString(m) }
   475  func (*EvaluateResponse) ProtoMessage()    {}
   476  func (*EvaluateResponse) Descriptor() ([]byte, []int) {
   477  	return fileDescriptor_285396c8df15061f, []int{8}
   478  }
   479  
   480  func (m *EvaluateResponse) XXX_Unmarshal(b []byte) error {
   481  	return xxx_messageInfo_EvaluateResponse.Unmarshal(m, b)
   482  }
   483  func (m *EvaluateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   484  	return xxx_messageInfo_EvaluateResponse.Marshal(b, m, deterministic)
   485  }
   486  func (m *EvaluateResponse) XXX_Merge(src proto.Message) {
   487  	xxx_messageInfo_EvaluateResponse.Merge(m, src)
   488  }
   489  func (m *EvaluateResponse) XXX_Size() int {
   490  	return xxx_messageInfo_EvaluateResponse.Size(m)
   491  }
   492  func (m *EvaluateResponse) XXX_DiscardUnknown() {
   493  	xxx_messageInfo_EvaluateResponse.DiscardUnknown(m)
   494  }
   495  
   496  var xxx_messageInfo_EvaluateResponse proto.InternalMessageInfo
   497  
   498  func (m *EvaluateResponse) GetResult() *peer.Response {
   499  	if m != nil {
   500  		return m.Result
   501  	}
   502  	return nil
   503  }
   504  
   505  // SignedChaincodeEventsRequest contains a serialized ChaincodeEventsRequest message, and a digital signature for the
   506  // serialized request message.
   507  type SignedChaincodeEventsRequest struct {
   508  	// Serialized ChaincodeEventsRequest message.
   509  	Request []byte `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
   510  	// Signature for request message.
   511  	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
   512  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   513  	XXX_unrecognized     []byte   `json:"-"`
   514  	XXX_sizecache        int32    `json:"-"`
   515  }
   516  
   517  func (m *SignedChaincodeEventsRequest) Reset()         { *m = SignedChaincodeEventsRequest{} }
   518  func (m *SignedChaincodeEventsRequest) String() string { return proto.CompactTextString(m) }
   519  func (*SignedChaincodeEventsRequest) ProtoMessage()    {}
   520  func (*SignedChaincodeEventsRequest) Descriptor() ([]byte, []int) {
   521  	return fileDescriptor_285396c8df15061f, []int{9}
   522  }
   523  
   524  func (m *SignedChaincodeEventsRequest) XXX_Unmarshal(b []byte) error {
   525  	return xxx_messageInfo_SignedChaincodeEventsRequest.Unmarshal(m, b)
   526  }
   527  func (m *SignedChaincodeEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   528  	return xxx_messageInfo_SignedChaincodeEventsRequest.Marshal(b, m, deterministic)
   529  }
   530  func (m *SignedChaincodeEventsRequest) XXX_Merge(src proto.Message) {
   531  	xxx_messageInfo_SignedChaincodeEventsRequest.Merge(m, src)
   532  }
   533  func (m *SignedChaincodeEventsRequest) XXX_Size() int {
   534  	return xxx_messageInfo_SignedChaincodeEventsRequest.Size(m)
   535  }
   536  func (m *SignedChaincodeEventsRequest) XXX_DiscardUnknown() {
   537  	xxx_messageInfo_SignedChaincodeEventsRequest.DiscardUnknown(m)
   538  }
   539  
   540  var xxx_messageInfo_SignedChaincodeEventsRequest proto.InternalMessageInfo
   541  
   542  func (m *SignedChaincodeEventsRequest) GetRequest() []byte {
   543  	if m != nil {
   544  		return m.Request
   545  	}
   546  	return nil
   547  }
   548  
   549  func (m *SignedChaincodeEventsRequest) GetSignature() []byte {
   550  	if m != nil {
   551  		return m.Signature
   552  	}
   553  	return nil
   554  }
   555  
   556  // ChaincodeEventsRequest contains details of the chaincode events that the caller wants to receive.
   557  type ChaincodeEventsRequest struct {
   558  	// Identifier of the channel this request is bound for.
   559  	ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
   560  	// Name of the chaincode for which events are requested.
   561  	ChaincodeId string `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"`
   562  	// Client requestor identity.
   563  	Identity []byte `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
   564  	// Position within the ledger at which to start reading events.
   565  	StartPosition *orderer.SeekPosition `protobuf:"bytes,4,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"`
   566  	// Only returns events after this transaction ID. Transactions up to and including this one should be ignored. This
   567  	// is used to allow resume of event listening from a certain position within a start block specified by
   568  	// start_position.
   569  	AfterTransactionId   string   `protobuf:"bytes,5,opt,name=after_transaction_id,json=afterTransactionId,proto3" json:"after_transaction_id,omitempty"`
   570  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   571  	XXX_unrecognized     []byte   `json:"-"`
   572  	XXX_sizecache        int32    `json:"-"`
   573  }
   574  
   575  func (m *ChaincodeEventsRequest) Reset()         { *m = ChaincodeEventsRequest{} }
   576  func (m *ChaincodeEventsRequest) String() string { return proto.CompactTextString(m) }
   577  func (*ChaincodeEventsRequest) ProtoMessage()    {}
   578  func (*ChaincodeEventsRequest) Descriptor() ([]byte, []int) {
   579  	return fileDescriptor_285396c8df15061f, []int{10}
   580  }
   581  
   582  func (m *ChaincodeEventsRequest) XXX_Unmarshal(b []byte) error {
   583  	return xxx_messageInfo_ChaincodeEventsRequest.Unmarshal(m, b)
   584  }
   585  func (m *ChaincodeEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   586  	return xxx_messageInfo_ChaincodeEventsRequest.Marshal(b, m, deterministic)
   587  }
   588  func (m *ChaincodeEventsRequest) XXX_Merge(src proto.Message) {
   589  	xxx_messageInfo_ChaincodeEventsRequest.Merge(m, src)
   590  }
   591  func (m *ChaincodeEventsRequest) XXX_Size() int {
   592  	return xxx_messageInfo_ChaincodeEventsRequest.Size(m)
   593  }
   594  func (m *ChaincodeEventsRequest) XXX_DiscardUnknown() {
   595  	xxx_messageInfo_ChaincodeEventsRequest.DiscardUnknown(m)
   596  }
   597  
   598  var xxx_messageInfo_ChaincodeEventsRequest proto.InternalMessageInfo
   599  
   600  func (m *ChaincodeEventsRequest) GetChannelId() string {
   601  	if m != nil {
   602  		return m.ChannelId
   603  	}
   604  	return ""
   605  }
   606  
   607  func (m *ChaincodeEventsRequest) GetChaincodeId() string {
   608  	if m != nil {
   609  		return m.ChaincodeId
   610  	}
   611  	return ""
   612  }
   613  
   614  func (m *ChaincodeEventsRequest) GetIdentity() []byte {
   615  	if m != nil {
   616  		return m.Identity
   617  	}
   618  	return nil
   619  }
   620  
   621  func (m *ChaincodeEventsRequest) GetStartPosition() *orderer.SeekPosition {
   622  	if m != nil {
   623  		return m.StartPosition
   624  	}
   625  	return nil
   626  }
   627  
   628  func (m *ChaincodeEventsRequest) GetAfterTransactionId() string {
   629  	if m != nil {
   630  		return m.AfterTransactionId
   631  	}
   632  	return ""
   633  }
   634  
   635  // ChaincodeEventsResponse returns chaincode events emitted from a specific block.
   636  type ChaincodeEventsResponse struct {
   637  	// Chaincode events emitted by the requested chaincode. The events are presented in the same order that the
   638  	// transactions that emitted them appear within the block.
   639  	Events []*peer.ChaincodeEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
   640  	// Block number in which the chaincode events were emitted.
   641  	BlockNumber          uint64   `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
   642  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   643  	XXX_unrecognized     []byte   `json:"-"`
   644  	XXX_sizecache        int32    `json:"-"`
   645  }
   646  
   647  func (m *ChaincodeEventsResponse) Reset()         { *m = ChaincodeEventsResponse{} }
   648  func (m *ChaincodeEventsResponse) String() string { return proto.CompactTextString(m) }
   649  func (*ChaincodeEventsResponse) ProtoMessage()    {}
   650  func (*ChaincodeEventsResponse) Descriptor() ([]byte, []int) {
   651  	return fileDescriptor_285396c8df15061f, []int{11}
   652  }
   653  
   654  func (m *ChaincodeEventsResponse) XXX_Unmarshal(b []byte) error {
   655  	return xxx_messageInfo_ChaincodeEventsResponse.Unmarshal(m, b)
   656  }
   657  func (m *ChaincodeEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   658  	return xxx_messageInfo_ChaincodeEventsResponse.Marshal(b, m, deterministic)
   659  }
   660  func (m *ChaincodeEventsResponse) XXX_Merge(src proto.Message) {
   661  	xxx_messageInfo_ChaincodeEventsResponse.Merge(m, src)
   662  }
   663  func (m *ChaincodeEventsResponse) XXX_Size() int {
   664  	return xxx_messageInfo_ChaincodeEventsResponse.Size(m)
   665  }
   666  func (m *ChaincodeEventsResponse) XXX_DiscardUnknown() {
   667  	xxx_messageInfo_ChaincodeEventsResponse.DiscardUnknown(m)
   668  }
   669  
   670  var xxx_messageInfo_ChaincodeEventsResponse proto.InternalMessageInfo
   671  
   672  func (m *ChaincodeEventsResponse) GetEvents() []*peer.ChaincodeEvent {
   673  	if m != nil {
   674  		return m.Events
   675  	}
   676  	return nil
   677  }
   678  
   679  func (m *ChaincodeEventsResponse) GetBlockNumber() uint64 {
   680  	if m != nil {
   681  		return m.BlockNumber
   682  	}
   683  	return 0
   684  }
   685  
   686  // If any of the functions in the Gateway service returns an error, then it will be in the format of
   687  // a google.rpc.Status message. The 'details' field of this message will be populated with extra
   688  // information if the error is a result of one or more failed requests to remote peers or orderer nodes.
   689  // ErrorDetail contains details of errors that are received by any of the endorsing peers
   690  // as a result of processing the Evaluate or Endorse services, or from the ordering node(s) as a result of
   691  // processing the Submit service.
   692  type ErrorDetail struct {
   693  	// The address of the endorsing peer or ordering node that returned an error.
   694  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   695  	// The MSP Identifier of this node.
   696  	MspId string `protobuf:"bytes,2,opt,name=msp_id,json=mspId,proto3" json:"msp_id,omitempty"`
   697  	// The error message returned by this node.
   698  	Message              string   `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
   699  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   700  	XXX_unrecognized     []byte   `json:"-"`
   701  	XXX_sizecache        int32    `json:"-"`
   702  }
   703  
   704  func (m *ErrorDetail) Reset()         { *m = ErrorDetail{} }
   705  func (m *ErrorDetail) String() string { return proto.CompactTextString(m) }
   706  func (*ErrorDetail) ProtoMessage()    {}
   707  func (*ErrorDetail) Descriptor() ([]byte, []int) {
   708  	return fileDescriptor_285396c8df15061f, []int{12}
   709  }
   710  
   711  func (m *ErrorDetail) XXX_Unmarshal(b []byte) error {
   712  	return xxx_messageInfo_ErrorDetail.Unmarshal(m, b)
   713  }
   714  func (m *ErrorDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   715  	return xxx_messageInfo_ErrorDetail.Marshal(b, m, deterministic)
   716  }
   717  func (m *ErrorDetail) XXX_Merge(src proto.Message) {
   718  	xxx_messageInfo_ErrorDetail.Merge(m, src)
   719  }
   720  func (m *ErrorDetail) XXX_Size() int {
   721  	return xxx_messageInfo_ErrorDetail.Size(m)
   722  }
   723  func (m *ErrorDetail) XXX_DiscardUnknown() {
   724  	xxx_messageInfo_ErrorDetail.DiscardUnknown(m)
   725  }
   726  
   727  var xxx_messageInfo_ErrorDetail proto.InternalMessageInfo
   728  
   729  func (m *ErrorDetail) GetAddress() string {
   730  	if m != nil {
   731  		return m.Address
   732  	}
   733  	return ""
   734  }
   735  
   736  func (m *ErrorDetail) GetMspId() string {
   737  	if m != nil {
   738  		return m.MspId
   739  	}
   740  	return ""
   741  }
   742  
   743  func (m *ErrorDetail) GetMessage() string {
   744  	if m != nil {
   745  		return m.Message
   746  	}
   747  	return ""
   748  }
   749  
   750  // ProposedTransaction contains the details required for offline signing prior to evaluating or endorsing
   751  // a transaction.
   752  type ProposedTransaction struct {
   753  	// Identifier of the proposed transaction.
   754  	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
   755  	// The signed proposal.
   756  	Proposal *peer.SignedProposal `protobuf:"bytes,2,opt,name=proposal,proto3" json:"proposal,omitempty"`
   757  	// The list of endorsing organizations.
   758  	EndorsingOrganizations []string `protobuf:"bytes,3,rep,name=endorsing_organizations,json=endorsingOrganizations,proto3" json:"endorsing_organizations,omitempty"`
   759  	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
   760  	XXX_unrecognized       []byte   `json:"-"`
   761  	XXX_sizecache          int32    `json:"-"`
   762  }
   763  
   764  func (m *ProposedTransaction) Reset()         { *m = ProposedTransaction{} }
   765  func (m *ProposedTransaction) String() string { return proto.CompactTextString(m) }
   766  func (*ProposedTransaction) ProtoMessage()    {}
   767  func (*ProposedTransaction) Descriptor() ([]byte, []int) {
   768  	return fileDescriptor_285396c8df15061f, []int{13}
   769  }
   770  
   771  func (m *ProposedTransaction) XXX_Unmarshal(b []byte) error {
   772  	return xxx_messageInfo_ProposedTransaction.Unmarshal(m, b)
   773  }
   774  func (m *ProposedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   775  	return xxx_messageInfo_ProposedTransaction.Marshal(b, m, deterministic)
   776  }
   777  func (m *ProposedTransaction) XXX_Merge(src proto.Message) {
   778  	xxx_messageInfo_ProposedTransaction.Merge(m, src)
   779  }
   780  func (m *ProposedTransaction) XXX_Size() int {
   781  	return xxx_messageInfo_ProposedTransaction.Size(m)
   782  }
   783  func (m *ProposedTransaction) XXX_DiscardUnknown() {
   784  	xxx_messageInfo_ProposedTransaction.DiscardUnknown(m)
   785  }
   786  
   787  var xxx_messageInfo_ProposedTransaction proto.InternalMessageInfo
   788  
   789  func (m *ProposedTransaction) GetTransactionId() string {
   790  	if m != nil {
   791  		return m.TransactionId
   792  	}
   793  	return ""
   794  }
   795  
   796  func (m *ProposedTransaction) GetProposal() *peer.SignedProposal {
   797  	if m != nil {
   798  		return m.Proposal
   799  	}
   800  	return nil
   801  }
   802  
   803  func (m *ProposedTransaction) GetEndorsingOrganizations() []string {
   804  	if m != nil {
   805  		return m.EndorsingOrganizations
   806  	}
   807  	return nil
   808  }
   809  
   810  // PreparedTransaction contains the details required for offline signing prior to submitting a transaction.
   811  type PreparedTransaction struct {
   812  	// Identifier of the prepared transaction.
   813  	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
   814  	// The transaction envelope.
   815  	Envelope             *common.Envelope `protobuf:"bytes,2,opt,name=envelope,proto3" json:"envelope,omitempty"`
   816  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
   817  	XXX_unrecognized     []byte           `json:"-"`
   818  	XXX_sizecache        int32            `json:"-"`
   819  }
   820  
   821  func (m *PreparedTransaction) Reset()         { *m = PreparedTransaction{} }
   822  func (m *PreparedTransaction) String() string { return proto.CompactTextString(m) }
   823  func (*PreparedTransaction) ProtoMessage()    {}
   824  func (*PreparedTransaction) Descriptor() ([]byte, []int) {
   825  	return fileDescriptor_285396c8df15061f, []int{14}
   826  }
   827  
   828  func (m *PreparedTransaction) XXX_Unmarshal(b []byte) error {
   829  	return xxx_messageInfo_PreparedTransaction.Unmarshal(m, b)
   830  }
   831  func (m *PreparedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   832  	return xxx_messageInfo_PreparedTransaction.Marshal(b, m, deterministic)
   833  }
   834  func (m *PreparedTransaction) XXX_Merge(src proto.Message) {
   835  	xxx_messageInfo_PreparedTransaction.Merge(m, src)
   836  }
   837  func (m *PreparedTransaction) XXX_Size() int {
   838  	return xxx_messageInfo_PreparedTransaction.Size(m)
   839  }
   840  func (m *PreparedTransaction) XXX_DiscardUnknown() {
   841  	xxx_messageInfo_PreparedTransaction.DiscardUnknown(m)
   842  }
   843  
   844  var xxx_messageInfo_PreparedTransaction proto.InternalMessageInfo
   845  
   846  func (m *PreparedTransaction) GetTransactionId() string {
   847  	if m != nil {
   848  		return m.TransactionId
   849  	}
   850  	return ""
   851  }
   852  
   853  func (m *PreparedTransaction) GetEnvelope() *common.Envelope {
   854  	if m != nil {
   855  		return m.Envelope
   856  	}
   857  	return nil
   858  }
   859  
   860  func init() {
   861  	proto.RegisterType((*EndorseRequest)(nil), "gateway.EndorseRequest")
   862  	proto.RegisterType((*EndorseResponse)(nil), "gateway.EndorseResponse")
   863  	proto.RegisterType((*SubmitRequest)(nil), "gateway.SubmitRequest")
   864  	proto.RegisterType((*SubmitResponse)(nil), "gateway.SubmitResponse")
   865  	proto.RegisterType((*SignedCommitStatusRequest)(nil), "gateway.SignedCommitStatusRequest")
   866  	proto.RegisterType((*CommitStatusRequest)(nil), "gateway.CommitStatusRequest")
   867  	proto.RegisterType((*CommitStatusResponse)(nil), "gateway.CommitStatusResponse")
   868  	proto.RegisterType((*EvaluateRequest)(nil), "gateway.EvaluateRequest")
   869  	proto.RegisterType((*EvaluateResponse)(nil), "gateway.EvaluateResponse")
   870  	proto.RegisterType((*SignedChaincodeEventsRequest)(nil), "gateway.SignedChaincodeEventsRequest")
   871  	proto.RegisterType((*ChaincodeEventsRequest)(nil), "gateway.ChaincodeEventsRequest")
   872  	proto.RegisterType((*ChaincodeEventsResponse)(nil), "gateway.ChaincodeEventsResponse")
   873  	proto.RegisterType((*ErrorDetail)(nil), "gateway.ErrorDetail")
   874  	proto.RegisterType((*ProposedTransaction)(nil), "gateway.ProposedTransaction")
   875  	proto.RegisterType((*PreparedTransaction)(nil), "gateway.PreparedTransaction")
   876  }
   877  
   878  func init() { proto.RegisterFile("gateway/gateway.proto", fileDescriptor_285396c8df15061f) }
   879  
   880  var fileDescriptor_285396c8df15061f = []byte{
   881  	// 875 bytes of a gzipped FileDescriptorProto
   882  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x6e, 0xe3, 0x44,
   883  	0x14, 0x96, 0x37, 0xdd, 0xb4, 0x39, 0x4d, 0xd3, 0x6a, 0xd2, 0xa6, 0x59, 0xab, 0x2b, 0x65, 0x2d,
   884  	0x55, 0xea, 0x05, 0xeb, 0x94, 0x72, 0x81, 0x90, 0x2a, 0x21, 0x6d, 0x89, 0x50, 0x6f, 0x20, 0x38,
   885  	0x55, 0x85, 0x10, 0x52, 0x34, 0x89, 0xcf, 0x3a, 0xa6, 0xb6, 0xc7, 0xcc, 0x8c, 0xbb, 0x94, 0x47,
   886  	0xe1, 0x0d, 0x78, 0x20, 0x6e, 0x78, 0x00, 0x9e, 0x80, 0x07, 0x40, 0x1e, 0xcf, 0x38, 0x76, 0x92,
   887  	0x56, 0x45, 0xec, 0x05, 0x57, 0xc9, 0x9c, 0x9f, 0x99, 0xef, 0x7c, 0xf3, 0xcd, 0x39, 0x86, 0xa3,
   888  	0x80, 0x4a, 0xfc, 0x40, 0x1f, 0x86, 0xfa, 0xd7, 0x4d, 0x39, 0x93, 0x8c, 0x6c, 0xeb, 0xa5, 0x6d,
   889  	0xa7, 0x88, 0x7c, 0x38, 0x5f, 0xd0, 0x30, 0x99, 0x33, 0x1f, 0xa7, 0x78, 0x8f, 0x89, 0x2c, 0x82,
   890  	0xec, 0xae, 0xf2, 0xa5, 0x9c, 0xa5, 0x4c, 0xd0, 0x48, 0x1b, 0x4f, 0x6a, 0xc6, 0x29, 0x47, 0x91,
   891  	0xb2, 0x44, 0xa0, 0xf6, 0xf6, 0x94, 0x57, 0x72, 0x9a, 0x08, 0x3a, 0x97, 0x21, 0x4b, 0xcc, 0x56,
   892  	0x73, 0x16, 0xc7, 0x2c, 0x19, 0x16, 0x3f, 0xda, 0x78, 0xc0, 0xb8, 0x8f, 0x1c, 0xf9, 0x90, 0xce,
   893  	0x0a, 0x8b, 0xf3, 0xa7, 0x05, 0x9d, 0x51, 0xe2, 0x33, 0x2e, 0xd0, 0xc3, 0x9f, 0x33, 0x14, 0x92,
   894  	0x9c, 0x42, 0xa7, 0xb2, 0xdd, 0x34, 0xf4, 0xfb, 0xd6, 0xc0, 0x3a, 0x6b, 0x79, 0x7b, 0x15, 0xeb,
   895  	0xb5, 0x4f, 0x5e, 0x03, 0xcc, 0x17, 0x34, 0x49, 0x30, 0xca, 0x43, 0x5e, 0xa8, 0x90, 0x96, 0xb6,
   896  	0x5c, 0xfb, 0xe4, 0x1a, 0x0e, 0x0b, 0xc8, 0xe8, 0x4f, 0x2b, 0x89, 0xfd, 0xc6, 0xc0, 0x3a, 0xdb,
   897  	0xbd, 0xe8, 0x15, 0xc7, 0x0b, 0x77, 0x12, 0x06, 0x09, 0xfa, 0x63, 0x5d, 0x9c, 0xd7, 0x35, 0x39,
   898  	0x37, 0xcb, 0x14, 0xf2, 0x39, 0x1c, 0xa3, 0x82, 0x18, 0x26, 0xc1, 0x94, 0xf1, 0x80, 0x26, 0xe1,
   899  	0xaf, 0x34, 0xf7, 0x88, 0xfe, 0xd6, 0xa0, 0x71, 0xd6, 0xf2, 0x7a, 0xa5, 0xfb, 0xdb, 0xaa, 0xd7,
   900  	0xb9, 0x85, 0xfd, 0xb2, 0xb6, 0x82, 0x34, 0x72, 0x95, 0xc3, 0xc2, 0x94, 0xf2, 0x15, 0x58, 0x96,
   901  	0x82, 0x75, 0xe0, 0x6a, 0xba, 0x46, 0xc9, 0x3d, 0x46, 0x2c, 0xc5, 0x1c, 0x50, 0x11, 0x5d, 0x01,
   902  	0xe4, 0xfc, 0x66, 0xc1, 0xde, 0x24, 0x9b, 0xc5, 0xa1, 0xfc, 0xb8, 0x9c, 0x3d, 0x06, 0xae, 0xf1,
   903  	0x6f, 0xc0, 0x1d, 0x40, 0xc7, 0x60, 0x2b, 0x6a, 0x76, 0x26, 0xf0, 0xaa, 0xa0, 0xf9, 0x8a, 0xc5,
   904  	0x71, 0x28, 0x27, 0x92, 0xca, 0x4c, 0x18, 0xe4, 0x7d, 0xd8, 0xe6, 0xc5, 0x5f, 0x05, 0xb9, 0xed,
   905  	0x99, 0x25, 0x39, 0x81, 0x96, 0x08, 0x83, 0x84, 0xca, 0x8c, 0xa3, 0xc2, 0xda, 0xf6, 0x96, 0x06,
   906  	0xe7, 0x03, 0x74, 0x37, 0x6d, 0xf7, 0x71, 0x88, 0xb0, 0x61, 0x27, 0xf4, 0x31, 0x91, 0xa1, 0x7c,
   907  	0x50, 0xc5, 0xb7, 0xbd, 0x72, 0xed, 0xdc, 0xc1, 0x61, 0xfd, 0x60, 0x7d, 0xb3, 0xe7, 0xd0, 0xe4,
   908  	0x28, 0xb2, 0xa8, 0xa8, 0xa3, 0x73, 0xd1, 0x37, 0x12, 0xbb, 0xf9, 0xe5, 0x96, 0x46, 0xa1, 0xaf,
   909  	0x34, 0x71, 0xc5, 0x7c, 0xf4, 0x74, 0x1c, 0x79, 0x03, 0xed, 0x59, 0xc4, 0xe6, 0x77, 0xd3, 0x24,
   910  	0x8b, 0x67, 0xc8, 0x15, 0x8c, 0x2d, 0x6f, 0x57, 0xd9, 0xbe, 0x51, 0x26, 0xe7, 0x0f, 0x0b, 0xf6,
   911  	0x47, 0xf7, 0x34, 0xca, 0xa8, 0xfc, 0xff, 0xbe, 0x8f, 0x4f, 0xe1, 0x50, 0x52, 0x1e, 0xa0, 0xdc,
   912  	0xf8, 0x38, 0xba, 0x85, 0xaf, 0xfe, 0x32, 0x2e, 0xe1, 0x60, 0x59, 0x96, 0x26, 0xf0, 0xac, 0x46,
   913  	0x60, 0xae, 0x37, 0x8d, 0xc1, 0x44, 0x18, 0xe2, 0x9c, 0x5b, 0x38, 0xd1, 0x82, 0x32, 0x5d, 0x6c,
   914  	0x94, 0x37, 0xb1, 0xff, 0xac, 0xa9, 0xbf, 0x2c, 0xe8, 0x3d, 0xb2, 0x65, 0x9d, 0x4d, 0x6b, 0x95,
   915  	0xcd, 0x37, 0xd0, 0x5e, 0x76, 0xd4, 0x92, 0xee, 0xdd, 0xd2, 0xf6, 0xb4, 0xa6, 0xc8, 0x25, 0x74,
   916  	0x84, 0xa4, 0x5c, 0x4e, 0x53, 0x26, 0x42, 0x75, 0x0d, 0x5b, 0x8a, 0x82, 0x23, 0x57, 0x37, 0x4c,
   917  	0x77, 0x82, 0x78, 0x37, 0xd6, 0x4e, 0x6f, 0x4f, 0x05, 0x9b, 0x25, 0x39, 0x87, 0x43, 0xfa, 0x5e,
   918  	0x22, 0x9f, 0xae, 0xc8, 0xe2, 0xa5, 0x02, 0x41, 0x94, 0xef, 0xa6, 0xaa, 0x0d, 0x27, 0x82, 0xe3,
   919  	0xb5, 0x3a, 0xf5, 0x2d, 0xb8, 0xd0, 0x54, 0x13, 0x41, 0xf4, 0xad, 0x41, 0xa3, 0xaa, 0x84, 0x7a,
   920  	0x82, 0xa7, 0xa3, 0x9e, 0x23, 0xe2, 0xef, 0x61, 0x77, 0xc4, 0x39, 0xe3, 0x5f, 0xa1, 0xa4, 0x61,
   921  	0x94, 0xdf, 0x0e, 0xf5, 0x7d, 0x8e, 0x42, 0x68, 0x1e, 0xcd, 0x92, 0x1c, 0x41, 0x33, 0x16, 0xe9,
   922  	0x92, 0xbf, 0x97, 0xb1, 0x48, 0xaf, 0xfd, 0x3c, 0x21, 0x46, 0x21, 0x68, 0x80, 0x8a, 0xb8, 0x96,
   923  	0x67, 0x96, 0xce, 0xef, 0x16, 0x74, 0xc7, 0x1b, 0x14, 0xf9, 0xcc, 0x27, 0x72, 0x01, 0x3b, 0x66,
   924  	0xac, 0xa9, 0x13, 0x1f, 0xd7, 0x7d, 0x19, 0xf7, 0xd4, 0x30, 0x68, 0x3c, 0x39, 0x0c, 0x7e, 0xca,
   925  	0xa1, 0xae, 0xb5, 0xcb, 0xe7, 0x42, 0xfd, 0x04, 0x76, 0x50, 0xb7, 0x5d, 0x0d, 0x75, 0xbd, 0x1d,
   926  	0x97, 0x11, 0x17, 0x7f, 0xbf, 0x80, 0xed, 0xaf, 0x8b, 0x79, 0x4f, 0x2e, 0x61, 0x5b, 0x0f, 0x21,
   927  	0x72, 0xec, 0x9a, 0x6f, 0x82, 0xfa, 0xc8, 0xb5, 0xfb, 0xeb, 0x0e, 0x2d, 0x87, 0x2f, 0xa0, 0x59,
   928  	0x74, 0x73, 0xd2, 0x2b, 0x63, 0x6a, 0xa3, 0xc7, 0x3e, 0x5e, 0xb3, 0xeb, 0xd4, 0xef, 0xa0, 0x5d,
   929  	0x6d, 0x94, 0xc4, 0x59, 0x06, 0x3e, 0x36, 0x0d, 0xec, 0xd7, 0x65, 0xcc, 0xc6, 0x1e, 0xfb, 0x25,
   930  	0xec, 0x98, 0xb6, 0x41, 0x2a, 0x98, 0xeb, 0x0d, 0xd2, 0x7e, 0xb5, 0xc1, 0xa3, 0x37, 0xf8, 0x11,
   931  	0xf6, 0x57, 0x84, 0x4f, 0x4e, 0x57, 0x61, 0x6d, 0x6c, 0x00, 0xf6, 0x60, 0x89, 0x6c, 0xf3, 0xcb,
   932  	0x39, 0xb7, 0xde, 0x2d, 0xe0, 0x94, 0xf1, 0xc0, 0x5d, 0x3c, 0xa4, 0xc8, 0x23, 0xf4, 0x03, 0xe4,
   933  	0xee, 0x7b, 0x3a, 0xe3, 0xe1, 0xdc, 0xa8, 0x4a, 0x6f, 0xf1, 0xae, 0xad, 0x2f, 0x67, 0x9c, 0x9b,
   934  	0xc7, 0xd6, 0x0f, 0xc3, 0x20, 0x94, 0x8b, 0x6c, 0x96, 0xdf, 0xe8, 0xb0, 0x92, 0x3d, 0x2c, 0xb2,
   935  	0xdf, 0x16, 0xd9, 0x6f, 0x03, 0x66, 0xbe, 0xe9, 0x66, 0x4d, 0x65, 0xfa, 0xec, 0x9f, 0x00, 0x00,
   936  	0x00, 0xff, 0xff, 0x41, 0xfb, 0x4e, 0xca, 0xed, 0x09, 0x00, 0x00,
   937  }
   938  
   939  // Reference imports to suppress errors if they are not otherwise used.
   940  var _ context.Context
   941  var _ grpc.ClientConn
   942  
   943  // This is a compile-time assertion to ensure that this generated file
   944  // is compatible with the grpc package it is being compiled against.
   945  const _ = grpc.SupportPackageIsVersion4
   946  
   947  // GatewayClient is the client API for Gateway service.
   948  //
   949  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   950  type GatewayClient interface {
   951  	// The Endorse service passes a proposed transaction to the gateway in order to
   952  	// obtain sufficient endorsement.
   953  	// The gateway will determine the endorsement plan for the requested chaincode and
   954  	// forward to the appropriate peers for endorsement. It will return to the client a
   955  	// prepared transaction in the form of an Envelope message as defined
   956  	// in common/common.proto. The client must sign the contents of this envelope
   957  	// before invoking the Submit service.
   958  	Endorse(ctx context.Context, in *EndorseRequest, opts ...grpc.CallOption) (*EndorseResponse, error)
   959  	// The Submit service will process the prepared transaction returned from Endorse service
   960  	// once it has been signed by the client. It will wait for the transaction to be submitted to the
   961  	// ordering service but the client must invoke the CommitStatus service to wait for the transaction
   962  	// to be committed.
   963  	Submit(ctx context.Context, in *SubmitRequest, opts ...grpc.CallOption) (*SubmitResponse, error)
   964  	// The CommitStatus service will indicate whether a prepared transaction previously submitted to
   965  	// the Submit service has been committed. It will wait for the commit to occur if it hasn’t already
   966  	// committed.
   967  	CommitStatus(ctx context.Context, in *SignedCommitStatusRequest, opts ...grpc.CallOption) (*CommitStatusResponse, error)
   968  	// The Evaluate service passes a proposed transaction to the gateway in order to invoke the
   969  	// transaction function and return the result to the client. No ledger updates are made.
   970  	// The gateway will select an appropriate peer to query based on block height and load.
   971  	Evaluate(ctx context.Context, in *EvaluateRequest, opts ...grpc.CallOption) (*EvaluateResponse, error)
   972  	// The ChaincodeEvents service supplies a stream of responses, each containing all the events emitted by the
   973  	// requested chaincode for a specific block. The streamed responses are ordered by ascending block number. Responses
   974  	// are only returned for blocks that contain the requested events, while blocks not containing any of the requested
   975  	// events are skipped.
   976  	ChaincodeEvents(ctx context.Context, in *SignedChaincodeEventsRequest, opts ...grpc.CallOption) (Gateway_ChaincodeEventsClient, error)
   977  }
   978  
   979  type gatewayClient struct {
   980  	cc *grpc.ClientConn
   981  }
   982  
   983  func NewGatewayClient(cc *grpc.ClientConn) GatewayClient {
   984  	return &gatewayClient{cc}
   985  }
   986  
   987  func (c *gatewayClient) Endorse(ctx context.Context, in *EndorseRequest, opts ...grpc.CallOption) (*EndorseResponse, error) {
   988  	out := new(EndorseResponse)
   989  	err := c.cc.Invoke(ctx, "/gateway.Gateway/Endorse", in, out, opts...)
   990  	if err != nil {
   991  		return nil, err
   992  	}
   993  	return out, nil
   994  }
   995  
   996  func (c *gatewayClient) Submit(ctx context.Context, in *SubmitRequest, opts ...grpc.CallOption) (*SubmitResponse, error) {
   997  	out := new(SubmitResponse)
   998  	err := c.cc.Invoke(ctx, "/gateway.Gateway/Submit", in, out, opts...)
   999  	if err != nil {
  1000  		return nil, err
  1001  	}
  1002  	return out, nil
  1003  }
  1004  
  1005  func (c *gatewayClient) CommitStatus(ctx context.Context, in *SignedCommitStatusRequest, opts ...grpc.CallOption) (*CommitStatusResponse, error) {
  1006  	out := new(CommitStatusResponse)
  1007  	err := c.cc.Invoke(ctx, "/gateway.Gateway/CommitStatus", in, out, opts...)
  1008  	if err != nil {
  1009  		return nil, err
  1010  	}
  1011  	return out, nil
  1012  }
  1013  
  1014  func (c *gatewayClient) Evaluate(ctx context.Context, in *EvaluateRequest, opts ...grpc.CallOption) (*EvaluateResponse, error) {
  1015  	out := new(EvaluateResponse)
  1016  	err := c.cc.Invoke(ctx, "/gateway.Gateway/Evaluate", in, out, opts...)
  1017  	if err != nil {
  1018  		return nil, err
  1019  	}
  1020  	return out, nil
  1021  }
  1022  
  1023  func (c *gatewayClient) ChaincodeEvents(ctx context.Context, in *SignedChaincodeEventsRequest, opts ...grpc.CallOption) (Gateway_ChaincodeEventsClient, error) {
  1024  	stream, err := c.cc.NewStream(ctx, &_Gateway_serviceDesc.Streams[0], "/gateway.Gateway/ChaincodeEvents", opts...)
  1025  	if err != nil {
  1026  		return nil, err
  1027  	}
  1028  	x := &gatewayChaincodeEventsClient{stream}
  1029  	if err := x.ClientStream.SendMsg(in); err != nil {
  1030  		return nil, err
  1031  	}
  1032  	if err := x.ClientStream.CloseSend(); err != nil {
  1033  		return nil, err
  1034  	}
  1035  	return x, nil
  1036  }
  1037  
  1038  type Gateway_ChaincodeEventsClient interface {
  1039  	Recv() (*ChaincodeEventsResponse, error)
  1040  	grpc.ClientStream
  1041  }
  1042  
  1043  type gatewayChaincodeEventsClient struct {
  1044  	grpc.ClientStream
  1045  }
  1046  
  1047  func (x *gatewayChaincodeEventsClient) Recv() (*ChaincodeEventsResponse, error) {
  1048  	m := new(ChaincodeEventsResponse)
  1049  	if err := x.ClientStream.RecvMsg(m); err != nil {
  1050  		return nil, err
  1051  	}
  1052  	return m, nil
  1053  }
  1054  
  1055  // GatewayServer is the server API for Gateway service.
  1056  type GatewayServer interface {
  1057  	// The Endorse service passes a proposed transaction to the gateway in order to
  1058  	// obtain sufficient endorsement.
  1059  	// The gateway will determine the endorsement plan for the requested chaincode and
  1060  	// forward to the appropriate peers for endorsement. It will return to the client a
  1061  	// prepared transaction in the form of an Envelope message as defined
  1062  	// in common/common.proto. The client must sign the contents of this envelope
  1063  	// before invoking the Submit service.
  1064  	Endorse(context.Context, *EndorseRequest) (*EndorseResponse, error)
  1065  	// The Submit service will process the prepared transaction returned from Endorse service
  1066  	// once it has been signed by the client. It will wait for the transaction to be submitted to the
  1067  	// ordering service but the client must invoke the CommitStatus service to wait for the transaction
  1068  	// to be committed.
  1069  	Submit(context.Context, *SubmitRequest) (*SubmitResponse, error)
  1070  	// The CommitStatus service will indicate whether a prepared transaction previously submitted to
  1071  	// the Submit service has been committed. It will wait for the commit to occur if it hasn’t already
  1072  	// committed.
  1073  	CommitStatus(context.Context, *SignedCommitStatusRequest) (*CommitStatusResponse, error)
  1074  	// The Evaluate service passes a proposed transaction to the gateway in order to invoke the
  1075  	// transaction function and return the result to the client. No ledger updates are made.
  1076  	// The gateway will select an appropriate peer to query based on block height and load.
  1077  	Evaluate(context.Context, *EvaluateRequest) (*EvaluateResponse, error)
  1078  	// The ChaincodeEvents service supplies a stream of responses, each containing all the events emitted by the
  1079  	// requested chaincode for a specific block. The streamed responses are ordered by ascending block number. Responses
  1080  	// are only returned for blocks that contain the requested events, while blocks not containing any of the requested
  1081  	// events are skipped.
  1082  	ChaincodeEvents(*SignedChaincodeEventsRequest, Gateway_ChaincodeEventsServer) error
  1083  }
  1084  
  1085  // UnimplementedGatewayServer can be embedded to have forward compatible implementations.
  1086  type UnimplementedGatewayServer struct {
  1087  }
  1088  
  1089  func (*UnimplementedGatewayServer) Endorse(ctx context.Context, req *EndorseRequest) (*EndorseResponse, error) {
  1090  	return nil, status.Errorf(codes.Unimplemented, "method Endorse not implemented")
  1091  }
  1092  func (*UnimplementedGatewayServer) Submit(ctx context.Context, req *SubmitRequest) (*SubmitResponse, error) {
  1093  	return nil, status.Errorf(codes.Unimplemented, "method Submit not implemented")
  1094  }
  1095  func (*UnimplementedGatewayServer) CommitStatus(ctx context.Context, req *SignedCommitStatusRequest) (*CommitStatusResponse, error) {
  1096  	return nil, status.Errorf(codes.Unimplemented, "method CommitStatus not implemented")
  1097  }
  1098  func (*UnimplementedGatewayServer) Evaluate(ctx context.Context, req *EvaluateRequest) (*EvaluateResponse, error) {
  1099  	return nil, status.Errorf(codes.Unimplemented, "method Evaluate not implemented")
  1100  }
  1101  func (*UnimplementedGatewayServer) ChaincodeEvents(req *SignedChaincodeEventsRequest, srv Gateway_ChaincodeEventsServer) error {
  1102  	return status.Errorf(codes.Unimplemented, "method ChaincodeEvents not implemented")
  1103  }
  1104  
  1105  func RegisterGatewayServer(s *grpc.Server, srv GatewayServer) {
  1106  	s.RegisterService(&_Gateway_serviceDesc, srv)
  1107  }
  1108  
  1109  func _Gateway_Endorse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1110  	in := new(EndorseRequest)
  1111  	if err := dec(in); err != nil {
  1112  		return nil, err
  1113  	}
  1114  	if interceptor == nil {
  1115  		return srv.(GatewayServer).Endorse(ctx, in)
  1116  	}
  1117  	info := &grpc.UnaryServerInfo{
  1118  		Server:     srv,
  1119  		FullMethod: "/gateway.Gateway/Endorse",
  1120  	}
  1121  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1122  		return srv.(GatewayServer).Endorse(ctx, req.(*EndorseRequest))
  1123  	}
  1124  	return interceptor(ctx, in, info, handler)
  1125  }
  1126  
  1127  func _Gateway_Submit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1128  	in := new(SubmitRequest)
  1129  	if err := dec(in); err != nil {
  1130  		return nil, err
  1131  	}
  1132  	if interceptor == nil {
  1133  		return srv.(GatewayServer).Submit(ctx, in)
  1134  	}
  1135  	info := &grpc.UnaryServerInfo{
  1136  		Server:     srv,
  1137  		FullMethod: "/gateway.Gateway/Submit",
  1138  	}
  1139  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1140  		return srv.(GatewayServer).Submit(ctx, req.(*SubmitRequest))
  1141  	}
  1142  	return interceptor(ctx, in, info, handler)
  1143  }
  1144  
  1145  func _Gateway_CommitStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1146  	in := new(SignedCommitStatusRequest)
  1147  	if err := dec(in); err != nil {
  1148  		return nil, err
  1149  	}
  1150  	if interceptor == nil {
  1151  		return srv.(GatewayServer).CommitStatus(ctx, in)
  1152  	}
  1153  	info := &grpc.UnaryServerInfo{
  1154  		Server:     srv,
  1155  		FullMethod: "/gateway.Gateway/CommitStatus",
  1156  	}
  1157  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1158  		return srv.(GatewayServer).CommitStatus(ctx, req.(*SignedCommitStatusRequest))
  1159  	}
  1160  	return interceptor(ctx, in, info, handler)
  1161  }
  1162  
  1163  func _Gateway_Evaluate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1164  	in := new(EvaluateRequest)
  1165  	if err := dec(in); err != nil {
  1166  		return nil, err
  1167  	}
  1168  	if interceptor == nil {
  1169  		return srv.(GatewayServer).Evaluate(ctx, in)
  1170  	}
  1171  	info := &grpc.UnaryServerInfo{
  1172  		Server:     srv,
  1173  		FullMethod: "/gateway.Gateway/Evaluate",
  1174  	}
  1175  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1176  		return srv.(GatewayServer).Evaluate(ctx, req.(*EvaluateRequest))
  1177  	}
  1178  	return interceptor(ctx, in, info, handler)
  1179  }
  1180  
  1181  func _Gateway_ChaincodeEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
  1182  	m := new(SignedChaincodeEventsRequest)
  1183  	if err := stream.RecvMsg(m); err != nil {
  1184  		return err
  1185  	}
  1186  	return srv.(GatewayServer).ChaincodeEvents(m, &gatewayChaincodeEventsServer{stream})
  1187  }
  1188  
  1189  type Gateway_ChaincodeEventsServer interface {
  1190  	Send(*ChaincodeEventsResponse) error
  1191  	grpc.ServerStream
  1192  }
  1193  
  1194  type gatewayChaincodeEventsServer struct {
  1195  	grpc.ServerStream
  1196  }
  1197  
  1198  func (x *gatewayChaincodeEventsServer) Send(m *ChaincodeEventsResponse) error {
  1199  	return x.ServerStream.SendMsg(m)
  1200  }
  1201  
  1202  var _Gateway_serviceDesc = grpc.ServiceDesc{
  1203  	ServiceName: "gateway.Gateway",
  1204  	HandlerType: (*GatewayServer)(nil),
  1205  	Methods: []grpc.MethodDesc{
  1206  		{
  1207  			MethodName: "Endorse",
  1208  			Handler:    _Gateway_Endorse_Handler,
  1209  		},
  1210  		{
  1211  			MethodName: "Submit",
  1212  			Handler:    _Gateway_Submit_Handler,
  1213  		},
  1214  		{
  1215  			MethodName: "CommitStatus",
  1216  			Handler:    _Gateway_CommitStatus_Handler,
  1217  		},
  1218  		{
  1219  			MethodName: "Evaluate",
  1220  			Handler:    _Gateway_Evaluate_Handler,
  1221  		},
  1222  	},
  1223  	Streams: []grpc.StreamDesc{
  1224  		{
  1225  			StreamName:    "ChaincodeEvents",
  1226  			Handler:       _Gateway_ChaincodeEvents_Handler,
  1227  			ServerStreams: true,
  1228  		},
  1229  	},
  1230  	Metadata: "gateway/gateway.proto",
  1231  }