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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: discovery/protocol.proto
     3  
     4  package discovery
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	gossip "github.com/ZihuaZhang/fabric-protos-go/gossip"
    11  	msp "github.com/hyperledger/fabric-protos-go/msp"
    12  	peer "github.com/ZihuaZhang/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  // SignedRequest contains a serialized Request in the payload field
    31  // and a signature.
    32  // The identity that is used to verify the signature
    33  // can be extracted from the authentication field of type AuthInfo
    34  // in the Request itself after deserializing it.
    35  type SignedRequest struct {
    36  	Payload              []byte   `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
    37  	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
    38  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    39  	XXX_unrecognized     []byte   `json:"-"`
    40  	XXX_sizecache        int32    `json:"-"`
    41  }
    42  
    43  func (m *SignedRequest) Reset()         { *m = SignedRequest{} }
    44  func (m *SignedRequest) String() string { return proto.CompactTextString(m) }
    45  func (*SignedRequest) ProtoMessage()    {}
    46  func (*SignedRequest) Descriptor() ([]byte, []int) {
    47  	return fileDescriptor_ce69bf33982206ff, []int{0}
    48  }
    49  
    50  func (m *SignedRequest) XXX_Unmarshal(b []byte) error {
    51  	return xxx_messageInfo_SignedRequest.Unmarshal(m, b)
    52  }
    53  func (m *SignedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    54  	return xxx_messageInfo_SignedRequest.Marshal(b, m, deterministic)
    55  }
    56  func (m *SignedRequest) XXX_Merge(src proto.Message) {
    57  	xxx_messageInfo_SignedRequest.Merge(m, src)
    58  }
    59  func (m *SignedRequest) XXX_Size() int {
    60  	return xxx_messageInfo_SignedRequest.Size(m)
    61  }
    62  func (m *SignedRequest) XXX_DiscardUnknown() {
    63  	xxx_messageInfo_SignedRequest.DiscardUnknown(m)
    64  }
    65  
    66  var xxx_messageInfo_SignedRequest proto.InternalMessageInfo
    67  
    68  func (m *SignedRequest) GetPayload() []byte {
    69  	if m != nil {
    70  		return m.Payload
    71  	}
    72  	return nil
    73  }
    74  
    75  func (m *SignedRequest) GetSignature() []byte {
    76  	if m != nil {
    77  		return m.Signature
    78  	}
    79  	return nil
    80  }
    81  
    82  // Request contains authentication info about the client that sent the request
    83  // and the queries it wishes to query the service
    84  type Request struct {
    85  	// authentication contains information that the service uses to check
    86  	// the client's eligibility for the queries.
    87  	Authentication *AuthInfo `protobuf:"bytes,1,opt,name=authentication,proto3" json:"authentication,omitempty"`
    88  	// queries
    89  	Queries              []*Query `protobuf:"bytes,2,rep,name=queries,proto3" json:"queries,omitempty"`
    90  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    91  	XXX_unrecognized     []byte   `json:"-"`
    92  	XXX_sizecache        int32    `json:"-"`
    93  }
    94  
    95  func (m *Request) Reset()         { *m = Request{} }
    96  func (m *Request) String() string { return proto.CompactTextString(m) }
    97  func (*Request) ProtoMessage()    {}
    98  func (*Request) Descriptor() ([]byte, []int) {
    99  	return fileDescriptor_ce69bf33982206ff, []int{1}
   100  }
   101  
   102  func (m *Request) XXX_Unmarshal(b []byte) error {
   103  	return xxx_messageInfo_Request.Unmarshal(m, b)
   104  }
   105  func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   106  	return xxx_messageInfo_Request.Marshal(b, m, deterministic)
   107  }
   108  func (m *Request) XXX_Merge(src proto.Message) {
   109  	xxx_messageInfo_Request.Merge(m, src)
   110  }
   111  func (m *Request) XXX_Size() int {
   112  	return xxx_messageInfo_Request.Size(m)
   113  }
   114  func (m *Request) XXX_DiscardUnknown() {
   115  	xxx_messageInfo_Request.DiscardUnknown(m)
   116  }
   117  
   118  var xxx_messageInfo_Request proto.InternalMessageInfo
   119  
   120  func (m *Request) GetAuthentication() *AuthInfo {
   121  	if m != nil {
   122  		return m.Authentication
   123  	}
   124  	return nil
   125  }
   126  
   127  func (m *Request) GetQueries() []*Query {
   128  	if m != nil {
   129  		return m.Queries
   130  	}
   131  	return nil
   132  }
   133  
   134  type Response struct {
   135  	// The results are returned in the same order of the queries
   136  	Results              []*QueryResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
   137  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   138  	XXX_unrecognized     []byte         `json:"-"`
   139  	XXX_sizecache        int32          `json:"-"`
   140  }
   141  
   142  func (m *Response) Reset()         { *m = Response{} }
   143  func (m *Response) String() string { return proto.CompactTextString(m) }
   144  func (*Response) ProtoMessage()    {}
   145  func (*Response) Descriptor() ([]byte, []int) {
   146  	return fileDescriptor_ce69bf33982206ff, []int{2}
   147  }
   148  
   149  func (m *Response) XXX_Unmarshal(b []byte) error {
   150  	return xxx_messageInfo_Response.Unmarshal(m, b)
   151  }
   152  func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   153  	return xxx_messageInfo_Response.Marshal(b, m, deterministic)
   154  }
   155  func (m *Response) XXX_Merge(src proto.Message) {
   156  	xxx_messageInfo_Response.Merge(m, src)
   157  }
   158  func (m *Response) XXX_Size() int {
   159  	return xxx_messageInfo_Response.Size(m)
   160  }
   161  func (m *Response) XXX_DiscardUnknown() {
   162  	xxx_messageInfo_Response.DiscardUnknown(m)
   163  }
   164  
   165  var xxx_messageInfo_Response proto.InternalMessageInfo
   166  
   167  func (m *Response) GetResults() []*QueryResult {
   168  	if m != nil {
   169  		return m.Results
   170  	}
   171  	return nil
   172  }
   173  
   174  // AuthInfo aggregates authentication information that the server uses
   175  // to authenticate the client
   176  type AuthInfo struct {
   177  	// This is the identity of the client that is used to verify the signature
   178  	// on the SignedRequest's payload.
   179  	// It is a msp.SerializedIdentity in bytes form
   180  	ClientIdentity []byte `protobuf:"bytes,1,opt,name=client_identity,json=clientIdentity,proto3" json:"client_identity,omitempty"`
   181  	// This is the hash of the client's TLS cert.
   182  	// When the network is running with TLS, clients that don't include a certificate
   183  	// will be denied access to the service.
   184  	// Since the Request is encapsulated with a SignedRequest (which is signed),
   185  	// this binds the TLS session to the enrollement identity of the client and
   186  	// therefore both authenticates the client to the server,
   187  	// and also prevents the server from relaying the request message to another server.
   188  	ClientTlsCertHash    []byte   `protobuf:"bytes,2,opt,name=client_tls_cert_hash,json=clientTlsCertHash,proto3" json:"client_tls_cert_hash,omitempty"`
   189  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   190  	XXX_unrecognized     []byte   `json:"-"`
   191  	XXX_sizecache        int32    `json:"-"`
   192  }
   193  
   194  func (m *AuthInfo) Reset()         { *m = AuthInfo{} }
   195  func (m *AuthInfo) String() string { return proto.CompactTextString(m) }
   196  func (*AuthInfo) ProtoMessage()    {}
   197  func (*AuthInfo) Descriptor() ([]byte, []int) {
   198  	return fileDescriptor_ce69bf33982206ff, []int{3}
   199  }
   200  
   201  func (m *AuthInfo) XXX_Unmarshal(b []byte) error {
   202  	return xxx_messageInfo_AuthInfo.Unmarshal(m, b)
   203  }
   204  func (m *AuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   205  	return xxx_messageInfo_AuthInfo.Marshal(b, m, deterministic)
   206  }
   207  func (m *AuthInfo) XXX_Merge(src proto.Message) {
   208  	xxx_messageInfo_AuthInfo.Merge(m, src)
   209  }
   210  func (m *AuthInfo) XXX_Size() int {
   211  	return xxx_messageInfo_AuthInfo.Size(m)
   212  }
   213  func (m *AuthInfo) XXX_DiscardUnknown() {
   214  	xxx_messageInfo_AuthInfo.DiscardUnknown(m)
   215  }
   216  
   217  var xxx_messageInfo_AuthInfo proto.InternalMessageInfo
   218  
   219  func (m *AuthInfo) GetClientIdentity() []byte {
   220  	if m != nil {
   221  		return m.ClientIdentity
   222  	}
   223  	return nil
   224  }
   225  
   226  func (m *AuthInfo) GetClientTlsCertHash() []byte {
   227  	if m != nil {
   228  		return m.ClientTlsCertHash
   229  	}
   230  	return nil
   231  }
   232  
   233  // Query asks for information in the context of a specific channel
   234  type Query struct {
   235  	Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
   236  	// Types that are valid to be assigned to Query:
   237  	//
   238  	//	*Query_ConfigQuery
   239  	//	*Query_PeerQuery
   240  	//	*Query_CcQuery
   241  	//	*Query_LocalPeers
   242  	Query                isQuery_Query `protobuf_oneof:"query"`
   243  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
   244  	XXX_unrecognized     []byte        `json:"-"`
   245  	XXX_sizecache        int32         `json:"-"`
   246  }
   247  
   248  func (m *Query) Reset()         { *m = Query{} }
   249  func (m *Query) String() string { return proto.CompactTextString(m) }
   250  func (*Query) ProtoMessage()    {}
   251  func (*Query) Descriptor() ([]byte, []int) {
   252  	return fileDescriptor_ce69bf33982206ff, []int{4}
   253  }
   254  
   255  func (m *Query) XXX_Unmarshal(b []byte) error {
   256  	return xxx_messageInfo_Query.Unmarshal(m, b)
   257  }
   258  func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   259  	return xxx_messageInfo_Query.Marshal(b, m, deterministic)
   260  }
   261  func (m *Query) XXX_Merge(src proto.Message) {
   262  	xxx_messageInfo_Query.Merge(m, src)
   263  }
   264  func (m *Query) XXX_Size() int {
   265  	return xxx_messageInfo_Query.Size(m)
   266  }
   267  func (m *Query) XXX_DiscardUnknown() {
   268  	xxx_messageInfo_Query.DiscardUnknown(m)
   269  }
   270  
   271  var xxx_messageInfo_Query proto.InternalMessageInfo
   272  
   273  func (m *Query) GetChannel() string {
   274  	if m != nil {
   275  		return m.Channel
   276  	}
   277  	return ""
   278  }
   279  
   280  type isQuery_Query interface {
   281  	isQuery_Query()
   282  }
   283  
   284  type Query_ConfigQuery struct {
   285  	ConfigQuery *ConfigQuery `protobuf:"bytes,2,opt,name=config_query,json=configQuery,proto3,oneof"`
   286  }
   287  
   288  type Query_PeerQuery struct {
   289  	PeerQuery *PeerMembershipQuery `protobuf:"bytes,3,opt,name=peer_query,json=peerQuery,proto3,oneof"`
   290  }
   291  
   292  type Query_CcQuery struct {
   293  	CcQuery *ChaincodeQuery `protobuf:"bytes,4,opt,name=cc_query,json=ccQuery,proto3,oneof"`
   294  }
   295  
   296  type Query_LocalPeers struct {
   297  	LocalPeers *LocalPeerQuery `protobuf:"bytes,5,opt,name=local_peers,json=localPeers,proto3,oneof"`
   298  }
   299  
   300  func (*Query_ConfigQuery) isQuery_Query() {}
   301  
   302  func (*Query_PeerQuery) isQuery_Query() {}
   303  
   304  func (*Query_CcQuery) isQuery_Query() {}
   305  
   306  func (*Query_LocalPeers) isQuery_Query() {}
   307  
   308  func (m *Query) GetQuery() isQuery_Query {
   309  	if m != nil {
   310  		return m.Query
   311  	}
   312  	return nil
   313  }
   314  
   315  func (m *Query) GetConfigQuery() *ConfigQuery {
   316  	if x, ok := m.GetQuery().(*Query_ConfigQuery); ok {
   317  		return x.ConfigQuery
   318  	}
   319  	return nil
   320  }
   321  
   322  func (m *Query) GetPeerQuery() *PeerMembershipQuery {
   323  	if x, ok := m.GetQuery().(*Query_PeerQuery); ok {
   324  		return x.PeerQuery
   325  	}
   326  	return nil
   327  }
   328  
   329  func (m *Query) GetCcQuery() *ChaincodeQuery {
   330  	if x, ok := m.GetQuery().(*Query_CcQuery); ok {
   331  		return x.CcQuery
   332  	}
   333  	return nil
   334  }
   335  
   336  func (m *Query) GetLocalPeers() *LocalPeerQuery {
   337  	if x, ok := m.GetQuery().(*Query_LocalPeers); ok {
   338  		return x.LocalPeers
   339  	}
   340  	return nil
   341  }
   342  
   343  // XXX_OneofWrappers is for the internal use of the proto package.
   344  func (*Query) XXX_OneofWrappers() []interface{} {
   345  	return []interface{}{
   346  		(*Query_ConfigQuery)(nil),
   347  		(*Query_PeerQuery)(nil),
   348  		(*Query_CcQuery)(nil),
   349  		(*Query_LocalPeers)(nil),
   350  	}
   351  }
   352  
   353  // QueryResult contains a result for a given Query.
   354  // The corresponding Query can be inferred by the index of the QueryResult from
   355  // its enclosing Response message.
   356  // QueryResults are ordered in the same order as the Queries are ordered in their enclosing Request.
   357  type QueryResult struct {
   358  	// Types that are valid to be assigned to Result:
   359  	//
   360  	//	*QueryResult_Error
   361  	//	*QueryResult_ConfigResult
   362  	//	*QueryResult_CcQueryRes
   363  	//	*QueryResult_Members
   364  	Result               isQueryResult_Result `protobuf_oneof:"result"`
   365  	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
   366  	XXX_unrecognized     []byte               `json:"-"`
   367  	XXX_sizecache        int32                `json:"-"`
   368  }
   369  
   370  func (m *QueryResult) Reset()         { *m = QueryResult{} }
   371  func (m *QueryResult) String() string { return proto.CompactTextString(m) }
   372  func (*QueryResult) ProtoMessage()    {}
   373  func (*QueryResult) Descriptor() ([]byte, []int) {
   374  	return fileDescriptor_ce69bf33982206ff, []int{5}
   375  }
   376  
   377  func (m *QueryResult) XXX_Unmarshal(b []byte) error {
   378  	return xxx_messageInfo_QueryResult.Unmarshal(m, b)
   379  }
   380  func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   381  	return xxx_messageInfo_QueryResult.Marshal(b, m, deterministic)
   382  }
   383  func (m *QueryResult) XXX_Merge(src proto.Message) {
   384  	xxx_messageInfo_QueryResult.Merge(m, src)
   385  }
   386  func (m *QueryResult) XXX_Size() int {
   387  	return xxx_messageInfo_QueryResult.Size(m)
   388  }
   389  func (m *QueryResult) XXX_DiscardUnknown() {
   390  	xxx_messageInfo_QueryResult.DiscardUnknown(m)
   391  }
   392  
   393  var xxx_messageInfo_QueryResult proto.InternalMessageInfo
   394  
   395  type isQueryResult_Result interface {
   396  	isQueryResult_Result()
   397  }
   398  
   399  type QueryResult_Error struct {
   400  	Error *Error `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
   401  }
   402  
   403  type QueryResult_ConfigResult struct {
   404  	ConfigResult *ConfigResult `protobuf:"bytes,2,opt,name=config_result,json=configResult,proto3,oneof"`
   405  }
   406  
   407  type QueryResult_CcQueryRes struct {
   408  	CcQueryRes *ChaincodeQueryResult `protobuf:"bytes,3,opt,name=cc_query_res,json=ccQueryRes,proto3,oneof"`
   409  }
   410  
   411  type QueryResult_Members struct {
   412  	Members *PeerMembershipResult `protobuf:"bytes,4,opt,name=members,proto3,oneof"`
   413  }
   414  
   415  func (*QueryResult_Error) isQueryResult_Result() {}
   416  
   417  func (*QueryResult_ConfigResult) isQueryResult_Result() {}
   418  
   419  func (*QueryResult_CcQueryRes) isQueryResult_Result() {}
   420  
   421  func (*QueryResult_Members) isQueryResult_Result() {}
   422  
   423  func (m *QueryResult) GetResult() isQueryResult_Result {
   424  	if m != nil {
   425  		return m.Result
   426  	}
   427  	return nil
   428  }
   429  
   430  func (m *QueryResult) GetError() *Error {
   431  	if x, ok := m.GetResult().(*QueryResult_Error); ok {
   432  		return x.Error
   433  	}
   434  	return nil
   435  }
   436  
   437  func (m *QueryResult) GetConfigResult() *ConfigResult {
   438  	if x, ok := m.GetResult().(*QueryResult_ConfigResult); ok {
   439  		return x.ConfigResult
   440  	}
   441  	return nil
   442  }
   443  
   444  func (m *QueryResult) GetCcQueryRes() *ChaincodeQueryResult {
   445  	if x, ok := m.GetResult().(*QueryResult_CcQueryRes); ok {
   446  		return x.CcQueryRes
   447  	}
   448  	return nil
   449  }
   450  
   451  func (m *QueryResult) GetMembers() *PeerMembershipResult {
   452  	if x, ok := m.GetResult().(*QueryResult_Members); ok {
   453  		return x.Members
   454  	}
   455  	return nil
   456  }
   457  
   458  // XXX_OneofWrappers is for the internal use of the proto package.
   459  func (*QueryResult) XXX_OneofWrappers() []interface{} {
   460  	return []interface{}{
   461  		(*QueryResult_Error)(nil),
   462  		(*QueryResult_ConfigResult)(nil),
   463  		(*QueryResult_CcQueryRes)(nil),
   464  		(*QueryResult_Members)(nil),
   465  	}
   466  }
   467  
   468  // ConfigQuery requests a ConfigResult
   469  type ConfigQuery struct {
   470  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   471  	XXX_unrecognized     []byte   `json:"-"`
   472  	XXX_sizecache        int32    `json:"-"`
   473  }
   474  
   475  func (m *ConfigQuery) Reset()         { *m = ConfigQuery{} }
   476  func (m *ConfigQuery) String() string { return proto.CompactTextString(m) }
   477  func (*ConfigQuery) ProtoMessage()    {}
   478  func (*ConfigQuery) Descriptor() ([]byte, []int) {
   479  	return fileDescriptor_ce69bf33982206ff, []int{6}
   480  }
   481  
   482  func (m *ConfigQuery) XXX_Unmarshal(b []byte) error {
   483  	return xxx_messageInfo_ConfigQuery.Unmarshal(m, b)
   484  }
   485  func (m *ConfigQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   486  	return xxx_messageInfo_ConfigQuery.Marshal(b, m, deterministic)
   487  }
   488  func (m *ConfigQuery) XXX_Merge(src proto.Message) {
   489  	xxx_messageInfo_ConfigQuery.Merge(m, src)
   490  }
   491  func (m *ConfigQuery) XXX_Size() int {
   492  	return xxx_messageInfo_ConfigQuery.Size(m)
   493  }
   494  func (m *ConfigQuery) XXX_DiscardUnknown() {
   495  	xxx_messageInfo_ConfigQuery.DiscardUnknown(m)
   496  }
   497  
   498  var xxx_messageInfo_ConfigQuery proto.InternalMessageInfo
   499  
   500  type ConfigResult struct {
   501  	// msps is a map from MSP_ID to FabricMSPConfig
   502  	Msps map[string]*msp.FabricMSPConfig `protobuf:"bytes,1,rep,name=msps,proto3" json:"msps,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   503  	// orderers is a map from MSP_ID to endpoint lists of orderers
   504  	Orderers             map[string]*Endpoints `protobuf:"bytes,2,rep,name=orderers,proto3" json:"orderers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   505  	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
   506  	XXX_unrecognized     []byte                `json:"-"`
   507  	XXX_sizecache        int32                 `json:"-"`
   508  }
   509  
   510  func (m *ConfigResult) Reset()         { *m = ConfigResult{} }
   511  func (m *ConfigResult) String() string { return proto.CompactTextString(m) }
   512  func (*ConfigResult) ProtoMessage()    {}
   513  func (*ConfigResult) Descriptor() ([]byte, []int) {
   514  	return fileDescriptor_ce69bf33982206ff, []int{7}
   515  }
   516  
   517  func (m *ConfigResult) XXX_Unmarshal(b []byte) error {
   518  	return xxx_messageInfo_ConfigResult.Unmarshal(m, b)
   519  }
   520  func (m *ConfigResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   521  	return xxx_messageInfo_ConfigResult.Marshal(b, m, deterministic)
   522  }
   523  func (m *ConfigResult) XXX_Merge(src proto.Message) {
   524  	xxx_messageInfo_ConfigResult.Merge(m, src)
   525  }
   526  func (m *ConfigResult) XXX_Size() int {
   527  	return xxx_messageInfo_ConfigResult.Size(m)
   528  }
   529  func (m *ConfigResult) XXX_DiscardUnknown() {
   530  	xxx_messageInfo_ConfigResult.DiscardUnknown(m)
   531  }
   532  
   533  var xxx_messageInfo_ConfigResult proto.InternalMessageInfo
   534  
   535  func (m *ConfigResult) GetMsps() map[string]*msp.FabricMSPConfig {
   536  	if m != nil {
   537  		return m.Msps
   538  	}
   539  	return nil
   540  }
   541  
   542  func (m *ConfigResult) GetOrderers() map[string]*Endpoints {
   543  	if m != nil {
   544  		return m.Orderers
   545  	}
   546  	return nil
   547  }
   548  
   549  // PeerMembershipQuery requests PeerMembershipResult.
   550  // The filter field may be optionally populated in order
   551  // for the peer membership to be filtered according to
   552  // chaincodes that are installed on peers and collection
   553  // access control policies.
   554  type PeerMembershipQuery struct {
   555  	Filter               *peer.ChaincodeInterest `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
   556  	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
   557  	XXX_unrecognized     []byte                  `json:"-"`
   558  	XXX_sizecache        int32                   `json:"-"`
   559  }
   560  
   561  func (m *PeerMembershipQuery) Reset()         { *m = PeerMembershipQuery{} }
   562  func (m *PeerMembershipQuery) String() string { return proto.CompactTextString(m) }
   563  func (*PeerMembershipQuery) ProtoMessage()    {}
   564  func (*PeerMembershipQuery) Descriptor() ([]byte, []int) {
   565  	return fileDescriptor_ce69bf33982206ff, []int{8}
   566  }
   567  
   568  func (m *PeerMembershipQuery) XXX_Unmarshal(b []byte) error {
   569  	return xxx_messageInfo_PeerMembershipQuery.Unmarshal(m, b)
   570  }
   571  func (m *PeerMembershipQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   572  	return xxx_messageInfo_PeerMembershipQuery.Marshal(b, m, deterministic)
   573  }
   574  func (m *PeerMembershipQuery) XXX_Merge(src proto.Message) {
   575  	xxx_messageInfo_PeerMembershipQuery.Merge(m, src)
   576  }
   577  func (m *PeerMembershipQuery) XXX_Size() int {
   578  	return xxx_messageInfo_PeerMembershipQuery.Size(m)
   579  }
   580  func (m *PeerMembershipQuery) XXX_DiscardUnknown() {
   581  	xxx_messageInfo_PeerMembershipQuery.DiscardUnknown(m)
   582  }
   583  
   584  var xxx_messageInfo_PeerMembershipQuery proto.InternalMessageInfo
   585  
   586  func (m *PeerMembershipQuery) GetFilter() *peer.ChaincodeInterest {
   587  	if m != nil {
   588  		return m.Filter
   589  	}
   590  	return nil
   591  }
   592  
   593  // PeerMembershipResult contains peers mapped by their organizations (MSP_ID)
   594  type PeerMembershipResult struct {
   595  	PeersByOrg           map[string]*Peers `protobuf:"bytes,1,rep,name=peers_by_org,json=peersByOrg,proto3" json:"peers_by_org,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   596  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   597  	XXX_unrecognized     []byte            `json:"-"`
   598  	XXX_sizecache        int32             `json:"-"`
   599  }
   600  
   601  func (m *PeerMembershipResult) Reset()         { *m = PeerMembershipResult{} }
   602  func (m *PeerMembershipResult) String() string { return proto.CompactTextString(m) }
   603  func (*PeerMembershipResult) ProtoMessage()    {}
   604  func (*PeerMembershipResult) Descriptor() ([]byte, []int) {
   605  	return fileDescriptor_ce69bf33982206ff, []int{9}
   606  }
   607  
   608  func (m *PeerMembershipResult) XXX_Unmarshal(b []byte) error {
   609  	return xxx_messageInfo_PeerMembershipResult.Unmarshal(m, b)
   610  }
   611  func (m *PeerMembershipResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   612  	return xxx_messageInfo_PeerMembershipResult.Marshal(b, m, deterministic)
   613  }
   614  func (m *PeerMembershipResult) XXX_Merge(src proto.Message) {
   615  	xxx_messageInfo_PeerMembershipResult.Merge(m, src)
   616  }
   617  func (m *PeerMembershipResult) XXX_Size() int {
   618  	return xxx_messageInfo_PeerMembershipResult.Size(m)
   619  }
   620  func (m *PeerMembershipResult) XXX_DiscardUnknown() {
   621  	xxx_messageInfo_PeerMembershipResult.DiscardUnknown(m)
   622  }
   623  
   624  var xxx_messageInfo_PeerMembershipResult proto.InternalMessageInfo
   625  
   626  func (m *PeerMembershipResult) GetPeersByOrg() map[string]*Peers {
   627  	if m != nil {
   628  		return m.PeersByOrg
   629  	}
   630  	return nil
   631  }
   632  
   633  // ChaincodeQuery requests ChaincodeQueryResults for a given
   634  // list of chaincode invocations.
   635  // Each invocation is a separate one, and the endorsement policy
   636  // is evaluated independantly for each given interest.
   637  type ChaincodeQuery struct {
   638  	Interests            []*peer.ChaincodeInterest `protobuf:"bytes,1,rep,name=interests,proto3" json:"interests,omitempty"`
   639  	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
   640  	XXX_unrecognized     []byte                    `json:"-"`
   641  	XXX_sizecache        int32                     `json:"-"`
   642  }
   643  
   644  func (m *ChaincodeQuery) Reset()         { *m = ChaincodeQuery{} }
   645  func (m *ChaincodeQuery) String() string { return proto.CompactTextString(m) }
   646  func (*ChaincodeQuery) ProtoMessage()    {}
   647  func (*ChaincodeQuery) Descriptor() ([]byte, []int) {
   648  	return fileDescriptor_ce69bf33982206ff, []int{10}
   649  }
   650  
   651  func (m *ChaincodeQuery) XXX_Unmarshal(b []byte) error {
   652  	return xxx_messageInfo_ChaincodeQuery.Unmarshal(m, b)
   653  }
   654  func (m *ChaincodeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   655  	return xxx_messageInfo_ChaincodeQuery.Marshal(b, m, deterministic)
   656  }
   657  func (m *ChaincodeQuery) XXX_Merge(src proto.Message) {
   658  	xxx_messageInfo_ChaincodeQuery.Merge(m, src)
   659  }
   660  func (m *ChaincodeQuery) XXX_Size() int {
   661  	return xxx_messageInfo_ChaincodeQuery.Size(m)
   662  }
   663  func (m *ChaincodeQuery) XXX_DiscardUnknown() {
   664  	xxx_messageInfo_ChaincodeQuery.DiscardUnknown(m)
   665  }
   666  
   667  var xxx_messageInfo_ChaincodeQuery proto.InternalMessageInfo
   668  
   669  func (m *ChaincodeQuery) GetInterests() []*peer.ChaincodeInterest {
   670  	if m != nil {
   671  		return m.Interests
   672  	}
   673  	return nil
   674  }
   675  
   676  // ChaincodeQueryResult contains EndorsementDescriptors for
   677  // chaincodes
   678  type ChaincodeQueryResult struct {
   679  	Content              []*EndorsementDescriptor `protobuf:"bytes,1,rep,name=content,proto3" json:"content,omitempty"`
   680  	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
   681  	XXX_unrecognized     []byte                   `json:"-"`
   682  	XXX_sizecache        int32                    `json:"-"`
   683  }
   684  
   685  func (m *ChaincodeQueryResult) Reset()         { *m = ChaincodeQueryResult{} }
   686  func (m *ChaincodeQueryResult) String() string { return proto.CompactTextString(m) }
   687  func (*ChaincodeQueryResult) ProtoMessage()    {}
   688  func (*ChaincodeQueryResult) Descriptor() ([]byte, []int) {
   689  	return fileDescriptor_ce69bf33982206ff, []int{11}
   690  }
   691  
   692  func (m *ChaincodeQueryResult) XXX_Unmarshal(b []byte) error {
   693  	return xxx_messageInfo_ChaincodeQueryResult.Unmarshal(m, b)
   694  }
   695  func (m *ChaincodeQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   696  	return xxx_messageInfo_ChaincodeQueryResult.Marshal(b, m, deterministic)
   697  }
   698  func (m *ChaincodeQueryResult) XXX_Merge(src proto.Message) {
   699  	xxx_messageInfo_ChaincodeQueryResult.Merge(m, src)
   700  }
   701  func (m *ChaincodeQueryResult) XXX_Size() int {
   702  	return xxx_messageInfo_ChaincodeQueryResult.Size(m)
   703  }
   704  func (m *ChaincodeQueryResult) XXX_DiscardUnknown() {
   705  	xxx_messageInfo_ChaincodeQueryResult.DiscardUnknown(m)
   706  }
   707  
   708  var xxx_messageInfo_ChaincodeQueryResult proto.InternalMessageInfo
   709  
   710  func (m *ChaincodeQueryResult) GetContent() []*EndorsementDescriptor {
   711  	if m != nil {
   712  		return m.Content
   713  	}
   714  	return nil
   715  }
   716  
   717  // LocalPeerQuery queries for peers in a non channel context
   718  type LocalPeerQuery struct {
   719  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   720  	XXX_unrecognized     []byte   `json:"-"`
   721  	XXX_sizecache        int32    `json:"-"`
   722  }
   723  
   724  func (m *LocalPeerQuery) Reset()         { *m = LocalPeerQuery{} }
   725  func (m *LocalPeerQuery) String() string { return proto.CompactTextString(m) }
   726  func (*LocalPeerQuery) ProtoMessage()    {}
   727  func (*LocalPeerQuery) Descriptor() ([]byte, []int) {
   728  	return fileDescriptor_ce69bf33982206ff, []int{12}
   729  }
   730  
   731  func (m *LocalPeerQuery) XXX_Unmarshal(b []byte) error {
   732  	return xxx_messageInfo_LocalPeerQuery.Unmarshal(m, b)
   733  }
   734  func (m *LocalPeerQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   735  	return xxx_messageInfo_LocalPeerQuery.Marshal(b, m, deterministic)
   736  }
   737  func (m *LocalPeerQuery) XXX_Merge(src proto.Message) {
   738  	xxx_messageInfo_LocalPeerQuery.Merge(m, src)
   739  }
   740  func (m *LocalPeerQuery) XXX_Size() int {
   741  	return xxx_messageInfo_LocalPeerQuery.Size(m)
   742  }
   743  func (m *LocalPeerQuery) XXX_DiscardUnknown() {
   744  	xxx_messageInfo_LocalPeerQuery.DiscardUnknown(m)
   745  }
   746  
   747  var xxx_messageInfo_LocalPeerQuery proto.InternalMessageInfo
   748  
   749  // EndorsementDescriptor contains information about which peers can be used
   750  // to request endorsement from, such that the endorsement policy would be fulfilled.
   751  // Here is how to compute a set of peers to ask an endorsement from, given an EndorsementDescriptor:
   752  // Let e: G --> P be the endorsers_by_groups field that maps a group to a set of peers.
   753  // Note that applying e on a group g yields a set of peers.
   754  //  1. Select a layout l: G --> N out of the layouts given.
   755  //     l is the quantities_by_group field of a Layout, and it maps a group to an integer.
   756  //  2. R = {}  (an empty set of peers)
   757  //  3. For each group g in the layout l, compute n = l(g)
   758  //     3.1) Denote P_g as a set of n random peers {p0, p1, ... p_n} selected from e(g)
   759  //     3.2) R = R U P_g  (add P_g to R)
   760  //  4. The set of peers R is the peers the client needs to request endorsements from
   761  type EndorsementDescriptor struct {
   762  	Chaincode string `protobuf:"bytes,1,opt,name=chaincode,proto3" json:"chaincode,omitempty"`
   763  	// Specifies the endorsers, separated to groups.
   764  	EndorsersByGroups map[string]*Peers `protobuf:"bytes,2,rep,name=endorsers_by_groups,json=endorsersByGroups,proto3" json:"endorsers_by_groups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   765  	// Specifies options of fulfulling the endorsement policy.
   766  	// Each option lists the group names, and the amount of signatures needed
   767  	// from each group.
   768  	Layouts              []*Layout `protobuf:"bytes,3,rep,name=layouts,proto3" json:"layouts,omitempty"`
   769  	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
   770  	XXX_unrecognized     []byte    `json:"-"`
   771  	XXX_sizecache        int32     `json:"-"`
   772  }
   773  
   774  func (m *EndorsementDescriptor) Reset()         { *m = EndorsementDescriptor{} }
   775  func (m *EndorsementDescriptor) String() string { return proto.CompactTextString(m) }
   776  func (*EndorsementDescriptor) ProtoMessage()    {}
   777  func (*EndorsementDescriptor) Descriptor() ([]byte, []int) {
   778  	return fileDescriptor_ce69bf33982206ff, []int{13}
   779  }
   780  
   781  func (m *EndorsementDescriptor) XXX_Unmarshal(b []byte) error {
   782  	return xxx_messageInfo_EndorsementDescriptor.Unmarshal(m, b)
   783  }
   784  func (m *EndorsementDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   785  	return xxx_messageInfo_EndorsementDescriptor.Marshal(b, m, deterministic)
   786  }
   787  func (m *EndorsementDescriptor) XXX_Merge(src proto.Message) {
   788  	xxx_messageInfo_EndorsementDescriptor.Merge(m, src)
   789  }
   790  func (m *EndorsementDescriptor) XXX_Size() int {
   791  	return xxx_messageInfo_EndorsementDescriptor.Size(m)
   792  }
   793  func (m *EndorsementDescriptor) XXX_DiscardUnknown() {
   794  	xxx_messageInfo_EndorsementDescriptor.DiscardUnknown(m)
   795  }
   796  
   797  var xxx_messageInfo_EndorsementDescriptor proto.InternalMessageInfo
   798  
   799  func (m *EndorsementDescriptor) GetChaincode() string {
   800  	if m != nil {
   801  		return m.Chaincode
   802  	}
   803  	return ""
   804  }
   805  
   806  func (m *EndorsementDescriptor) GetEndorsersByGroups() map[string]*Peers {
   807  	if m != nil {
   808  		return m.EndorsersByGroups
   809  	}
   810  	return nil
   811  }
   812  
   813  func (m *EndorsementDescriptor) GetLayouts() []*Layout {
   814  	if m != nil {
   815  		return m.Layouts
   816  	}
   817  	return nil
   818  }
   819  
   820  // Layout contains a mapping from a group name to number of peers
   821  // that are needed for fulfilling an endorsement policy
   822  type Layout struct {
   823  	// Specifies how many non repeated signatures of each group
   824  	// are needed for endorsement
   825  	QuantitiesByGroup    map[string]uint32 `protobuf:"bytes,1,rep,name=quantities_by_group,json=quantitiesByGroup,proto3" json:"quantities_by_group,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
   826  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   827  	XXX_unrecognized     []byte            `json:"-"`
   828  	XXX_sizecache        int32             `json:"-"`
   829  }
   830  
   831  func (m *Layout) Reset()         { *m = Layout{} }
   832  func (m *Layout) String() string { return proto.CompactTextString(m) }
   833  func (*Layout) ProtoMessage()    {}
   834  func (*Layout) Descriptor() ([]byte, []int) {
   835  	return fileDescriptor_ce69bf33982206ff, []int{14}
   836  }
   837  
   838  func (m *Layout) XXX_Unmarshal(b []byte) error {
   839  	return xxx_messageInfo_Layout.Unmarshal(m, b)
   840  }
   841  func (m *Layout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   842  	return xxx_messageInfo_Layout.Marshal(b, m, deterministic)
   843  }
   844  func (m *Layout) XXX_Merge(src proto.Message) {
   845  	xxx_messageInfo_Layout.Merge(m, src)
   846  }
   847  func (m *Layout) XXX_Size() int {
   848  	return xxx_messageInfo_Layout.Size(m)
   849  }
   850  func (m *Layout) XXX_DiscardUnknown() {
   851  	xxx_messageInfo_Layout.DiscardUnknown(m)
   852  }
   853  
   854  var xxx_messageInfo_Layout proto.InternalMessageInfo
   855  
   856  func (m *Layout) GetQuantitiesByGroup() map[string]uint32 {
   857  	if m != nil {
   858  		return m.QuantitiesByGroup
   859  	}
   860  	return nil
   861  }
   862  
   863  // Peers contains a list of Peer(s)
   864  type Peers struct {
   865  	Peers                []*Peer  `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
   866  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   867  	XXX_unrecognized     []byte   `json:"-"`
   868  	XXX_sizecache        int32    `json:"-"`
   869  }
   870  
   871  func (m *Peers) Reset()         { *m = Peers{} }
   872  func (m *Peers) String() string { return proto.CompactTextString(m) }
   873  func (*Peers) ProtoMessage()    {}
   874  func (*Peers) Descriptor() ([]byte, []int) {
   875  	return fileDescriptor_ce69bf33982206ff, []int{15}
   876  }
   877  
   878  func (m *Peers) XXX_Unmarshal(b []byte) error {
   879  	return xxx_messageInfo_Peers.Unmarshal(m, b)
   880  }
   881  func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   882  	return xxx_messageInfo_Peers.Marshal(b, m, deterministic)
   883  }
   884  func (m *Peers) XXX_Merge(src proto.Message) {
   885  	xxx_messageInfo_Peers.Merge(m, src)
   886  }
   887  func (m *Peers) XXX_Size() int {
   888  	return xxx_messageInfo_Peers.Size(m)
   889  }
   890  func (m *Peers) XXX_DiscardUnknown() {
   891  	xxx_messageInfo_Peers.DiscardUnknown(m)
   892  }
   893  
   894  var xxx_messageInfo_Peers proto.InternalMessageInfo
   895  
   896  func (m *Peers) GetPeers() []*Peer {
   897  	if m != nil {
   898  		return m.Peers
   899  	}
   900  	return nil
   901  }
   902  
   903  // Peer contains information about the peer such as its channel specific
   904  // state, and membership information.
   905  type Peer struct {
   906  	// This is an Envelope of a GossipMessage with a gossip.StateInfo message
   907  	StateInfo *gossip.Envelope `protobuf:"bytes,1,opt,name=state_info,json=stateInfo,proto3" json:"state_info,omitempty"`
   908  	// This is an Envelope of a GossipMessage with a gossip.AliveMessage message
   909  	MembershipInfo *gossip.Envelope `protobuf:"bytes,2,opt,name=membership_info,json=membershipInfo,proto3" json:"membership_info,omitempty"`
   910  	// This is the msp.SerializedIdentity of the peer, represented in bytes.
   911  	Identity             []byte   `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
   912  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   913  	XXX_unrecognized     []byte   `json:"-"`
   914  	XXX_sizecache        int32    `json:"-"`
   915  }
   916  
   917  func (m *Peer) Reset()         { *m = Peer{} }
   918  func (m *Peer) String() string { return proto.CompactTextString(m) }
   919  func (*Peer) ProtoMessage()    {}
   920  func (*Peer) Descriptor() ([]byte, []int) {
   921  	return fileDescriptor_ce69bf33982206ff, []int{16}
   922  }
   923  
   924  func (m *Peer) XXX_Unmarshal(b []byte) error {
   925  	return xxx_messageInfo_Peer.Unmarshal(m, b)
   926  }
   927  func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   928  	return xxx_messageInfo_Peer.Marshal(b, m, deterministic)
   929  }
   930  func (m *Peer) XXX_Merge(src proto.Message) {
   931  	xxx_messageInfo_Peer.Merge(m, src)
   932  }
   933  func (m *Peer) XXX_Size() int {
   934  	return xxx_messageInfo_Peer.Size(m)
   935  }
   936  func (m *Peer) XXX_DiscardUnknown() {
   937  	xxx_messageInfo_Peer.DiscardUnknown(m)
   938  }
   939  
   940  var xxx_messageInfo_Peer proto.InternalMessageInfo
   941  
   942  func (m *Peer) GetStateInfo() *gossip.Envelope {
   943  	if m != nil {
   944  		return m.StateInfo
   945  	}
   946  	return nil
   947  }
   948  
   949  func (m *Peer) GetMembershipInfo() *gossip.Envelope {
   950  	if m != nil {
   951  		return m.MembershipInfo
   952  	}
   953  	return nil
   954  }
   955  
   956  func (m *Peer) GetIdentity() []byte {
   957  	if m != nil {
   958  		return m.Identity
   959  	}
   960  	return nil
   961  }
   962  
   963  // Error denotes that something went wrong and contains the error message
   964  type Error struct {
   965  	Content              string   `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
   966  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   967  	XXX_unrecognized     []byte   `json:"-"`
   968  	XXX_sizecache        int32    `json:"-"`
   969  }
   970  
   971  func (m *Error) Reset()         { *m = Error{} }
   972  func (m *Error) String() string { return proto.CompactTextString(m) }
   973  func (*Error) ProtoMessage()    {}
   974  func (*Error) Descriptor() ([]byte, []int) {
   975  	return fileDescriptor_ce69bf33982206ff, []int{17}
   976  }
   977  
   978  func (m *Error) XXX_Unmarshal(b []byte) error {
   979  	return xxx_messageInfo_Error.Unmarshal(m, b)
   980  }
   981  func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   982  	return xxx_messageInfo_Error.Marshal(b, m, deterministic)
   983  }
   984  func (m *Error) XXX_Merge(src proto.Message) {
   985  	xxx_messageInfo_Error.Merge(m, src)
   986  }
   987  func (m *Error) XXX_Size() int {
   988  	return xxx_messageInfo_Error.Size(m)
   989  }
   990  func (m *Error) XXX_DiscardUnknown() {
   991  	xxx_messageInfo_Error.DiscardUnknown(m)
   992  }
   993  
   994  var xxx_messageInfo_Error proto.InternalMessageInfo
   995  
   996  func (m *Error) GetContent() string {
   997  	if m != nil {
   998  		return m.Content
   999  	}
  1000  	return ""
  1001  }
  1002  
  1003  // Endpoints is a list of Endpoint(s)
  1004  type Endpoints struct {
  1005  	Endpoint             []*Endpoint `protobuf:"bytes,1,rep,name=endpoint,proto3" json:"endpoint,omitempty"`
  1006  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
  1007  	XXX_unrecognized     []byte      `json:"-"`
  1008  	XXX_sizecache        int32       `json:"-"`
  1009  }
  1010  
  1011  func (m *Endpoints) Reset()         { *m = Endpoints{} }
  1012  func (m *Endpoints) String() string { return proto.CompactTextString(m) }
  1013  func (*Endpoints) ProtoMessage()    {}
  1014  func (*Endpoints) Descriptor() ([]byte, []int) {
  1015  	return fileDescriptor_ce69bf33982206ff, []int{18}
  1016  }
  1017  
  1018  func (m *Endpoints) XXX_Unmarshal(b []byte) error {
  1019  	return xxx_messageInfo_Endpoints.Unmarshal(m, b)
  1020  }
  1021  func (m *Endpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1022  	return xxx_messageInfo_Endpoints.Marshal(b, m, deterministic)
  1023  }
  1024  func (m *Endpoints) XXX_Merge(src proto.Message) {
  1025  	xxx_messageInfo_Endpoints.Merge(m, src)
  1026  }
  1027  func (m *Endpoints) XXX_Size() int {
  1028  	return xxx_messageInfo_Endpoints.Size(m)
  1029  }
  1030  func (m *Endpoints) XXX_DiscardUnknown() {
  1031  	xxx_messageInfo_Endpoints.DiscardUnknown(m)
  1032  }
  1033  
  1034  var xxx_messageInfo_Endpoints proto.InternalMessageInfo
  1035  
  1036  func (m *Endpoints) GetEndpoint() []*Endpoint {
  1037  	if m != nil {
  1038  		return m.Endpoint
  1039  	}
  1040  	return nil
  1041  }
  1042  
  1043  // Endpoint is a combination of a host and a port
  1044  type Endpoint struct {
  1045  	Host                 string   `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
  1046  	Port                 uint32   `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  1047  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1048  	XXX_unrecognized     []byte   `json:"-"`
  1049  	XXX_sizecache        int32    `json:"-"`
  1050  }
  1051  
  1052  func (m *Endpoint) Reset()         { *m = Endpoint{} }
  1053  func (m *Endpoint) String() string { return proto.CompactTextString(m) }
  1054  func (*Endpoint) ProtoMessage()    {}
  1055  func (*Endpoint) Descriptor() ([]byte, []int) {
  1056  	return fileDescriptor_ce69bf33982206ff, []int{19}
  1057  }
  1058  
  1059  func (m *Endpoint) XXX_Unmarshal(b []byte) error {
  1060  	return xxx_messageInfo_Endpoint.Unmarshal(m, b)
  1061  }
  1062  func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1063  	return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic)
  1064  }
  1065  func (m *Endpoint) XXX_Merge(src proto.Message) {
  1066  	xxx_messageInfo_Endpoint.Merge(m, src)
  1067  }
  1068  func (m *Endpoint) XXX_Size() int {
  1069  	return xxx_messageInfo_Endpoint.Size(m)
  1070  }
  1071  func (m *Endpoint) XXX_DiscardUnknown() {
  1072  	xxx_messageInfo_Endpoint.DiscardUnknown(m)
  1073  }
  1074  
  1075  var xxx_messageInfo_Endpoint proto.InternalMessageInfo
  1076  
  1077  func (m *Endpoint) GetHost() string {
  1078  	if m != nil {
  1079  		return m.Host
  1080  	}
  1081  	return ""
  1082  }
  1083  
  1084  func (m *Endpoint) GetPort() uint32 {
  1085  	if m != nil {
  1086  		return m.Port
  1087  	}
  1088  	return 0
  1089  }
  1090  
  1091  func init() {
  1092  	proto.RegisterType((*SignedRequest)(nil), "discovery.SignedRequest")
  1093  	proto.RegisterType((*Request)(nil), "discovery.Request")
  1094  	proto.RegisterType((*Response)(nil), "discovery.Response")
  1095  	proto.RegisterType((*AuthInfo)(nil), "discovery.AuthInfo")
  1096  	proto.RegisterType((*Query)(nil), "discovery.Query")
  1097  	proto.RegisterType((*QueryResult)(nil), "discovery.QueryResult")
  1098  	proto.RegisterType((*ConfigQuery)(nil), "discovery.ConfigQuery")
  1099  	proto.RegisterType((*ConfigResult)(nil), "discovery.ConfigResult")
  1100  	proto.RegisterMapType((map[string]*msp.FabricMSPConfig)(nil), "discovery.ConfigResult.MspsEntry")
  1101  	proto.RegisterMapType((map[string]*Endpoints)(nil), "discovery.ConfigResult.OrderersEntry")
  1102  	proto.RegisterType((*PeerMembershipQuery)(nil), "discovery.PeerMembershipQuery")
  1103  	proto.RegisterType((*PeerMembershipResult)(nil), "discovery.PeerMembershipResult")
  1104  	proto.RegisterMapType((map[string]*Peers)(nil), "discovery.PeerMembershipResult.PeersByOrgEntry")
  1105  	proto.RegisterType((*ChaincodeQuery)(nil), "discovery.ChaincodeQuery")
  1106  	proto.RegisterType((*ChaincodeQueryResult)(nil), "discovery.ChaincodeQueryResult")
  1107  	proto.RegisterType((*LocalPeerQuery)(nil), "discovery.LocalPeerQuery")
  1108  	proto.RegisterType((*EndorsementDescriptor)(nil), "discovery.EndorsementDescriptor")
  1109  	proto.RegisterMapType((map[string]*Peers)(nil), "discovery.EndorsementDescriptor.EndorsersByGroupsEntry")
  1110  	proto.RegisterType((*Layout)(nil), "discovery.Layout")
  1111  	proto.RegisterMapType((map[string]uint32)(nil), "discovery.Layout.QuantitiesByGroupEntry")
  1112  	proto.RegisterType((*Peers)(nil), "discovery.Peers")
  1113  	proto.RegisterType((*Peer)(nil), "discovery.Peer")
  1114  	proto.RegisterType((*Error)(nil), "discovery.Error")
  1115  	proto.RegisterType((*Endpoints)(nil), "discovery.Endpoints")
  1116  	proto.RegisterType((*Endpoint)(nil), "discovery.Endpoint")
  1117  }
  1118  
  1119  func init() { proto.RegisterFile("discovery/protocol.proto", fileDescriptor_ce69bf33982206ff) }
  1120  
  1121  var fileDescriptor_ce69bf33982206ff = []byte{
  1122  	// 1113 bytes of a gzipped FileDescriptorProto
  1123  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x5b, 0x6f, 0xe3, 0x44,
  1124  	0x14, 0x6e, 0xd2, 0xa6, 0x49, 0x4e, 0x7a, 0x9d, 0x86, 0x92, 0x8d, 0x56, 0x6c, 0xd7, 0xd2, 0xb2,
  1125  	0xd5, 0xa2, 0x75, 0xd8, 0x22, 0x58, 0x76, 0x5b, 0x81, 0xb6, 0x97, 0xdd, 0x54, 0xa2, 0x6a, 0xeb,
  1126  	0x45, 0x08, 0x21, 0xa4, 0xc8, 0x75, 0x4e, 0x6d, 0x0b, 0xdb, 0xe3, 0xce, 0x8c, 0x2b, 0xf9, 0x99,
  1127  	0x77, 0x7e, 0x02, 0x2f, 0xbc, 0x20, 0x7e, 0x02, 0xbf, 0x0e, 0x79, 0x2e, 0x8e, 0x93, 0xa6, 0x2c,
  1128  	0x12, 0x6f, 0x33, 0x67, 0xbe, 0xef, 0x5c, 0xbe, 0x73, 0x3c, 0x63, 0xe8, 0x8d, 0x43, 0xee, 0xd1,
  1129  	0x5b, 0x64, 0xf9, 0x20, 0x65, 0x54, 0x50, 0x8f, 0x46, 0xb6, 0x5c, 0x90, 0x76, 0x79, 0xd2, 0xef,
  1130  	0xfa, 0x94, 0xf3, 0x30, 0x1d, 0xc4, 0xc8, 0xb9, 0xeb, 0xa3, 0x02, 0xf4, 0xbb, 0x31, 0x4f, 0x07,
  1131  	0x31, 0x4f, 0x47, 0x1e, 0x4d, 0xae, 0x43, 0x5f, 0x5b, 0x1f, 0xa6, 0x88, 0xac, 0xf0, 0x95, 0x52,
  1132  	0xee, 0x46, 0x23, 0x86, 0x3c, 0xa5, 0x09, 0xd7, 0x1c, 0xeb, 0x1d, 0xac, 0xbe, 0x0f, 0xfd, 0x04,
  1133  	0xc7, 0x0e, 0xde, 0x64, 0xc8, 0x05, 0xe9, 0x41, 0x33, 0x75, 0xf3, 0x88, 0xba, 0xe3, 0x5e, 0x6d,
  1134  	0xa7, 0xb6, 0xbb, 0xe2, 0x98, 0x2d, 0x79, 0x08, 0x6d, 0x1e, 0xfa, 0x89, 0x2b, 0x32, 0x86, 0xbd,
  1135  	0xba, 0x3c, 0x9b, 0x18, 0x2c, 0x06, 0x4d, 0xe3, 0x62, 0x1f, 0xd6, 0xdc, 0x4c, 0x04, 0x98, 0x88,
  1136  	0xd0, 0x73, 0x45, 0x48, 0x13, 0xe9, 0xa9, 0xb3, 0xb7, 0x65, 0x97, 0x15, 0xd8, 0x6f, 0x32, 0x11,
  1137  	0x9c, 0x26, 0xd7, 0xd4, 0x99, 0x81, 0x92, 0x67, 0xd0, 0xbc, 0xc9, 0x90, 0x85, 0xc8, 0x7b, 0xf5,
  1138  	0x9d, 0xc5, 0xdd, 0xce, 0xde, 0x46, 0x85, 0x75, 0x99, 0x21, 0xcb, 0x1d, 0x03, 0xb0, 0x0e, 0xa0,
  1139  	0xe5, 0xe8, 0x72, 0xc8, 0xe7, 0xd0, 0x64, 0xc8, 0xb3, 0x48, 0xf0, 0x5e, 0x4d, 0xf2, 0xb6, 0xef,
  1140  	0xf0, 0xe4, 0xb1, 0x63, 0x60, 0xd6, 0x18, 0x5a, 0x26, 0x0b, 0xf2, 0x14, 0xd6, 0xbd, 0x28, 0xc4,
  1141  	0x44, 0x8c, 0xc2, 0x71, 0x91, 0x8c, 0xc8, 0x75, 0xf5, 0x6b, 0xca, 0x7c, 0xaa, 0xad, 0x64, 0x00,
  1142  	0x5d, 0x0d, 0x14, 0x11, 0x1f, 0x79, 0xc8, 0xc4, 0x28, 0x70, 0x79, 0xa0, 0xf5, 0xd8, 0x54, 0x67,
  1143  	0xdf, 0x47, 0xfc, 0x08, 0x99, 0x18, 0xba, 0x3c, 0xb0, 0x7e, 0xaf, 0x43, 0x43, 0x86, 0x2f, 0x94,
  1144  	0xf5, 0x02, 0x37, 0x49, 0x30, 0x92, 0xbe, 0xdb, 0x8e, 0xd9, 0x92, 0x7d, 0x58, 0x51, 0x2d, 0x1b,
  1145  	0x15, 0x95, 0xe5, 0xd2, 0xd9, 0x74, 0x01, 0x47, 0xf2, 0x58, 0xfa, 0x19, 0x2e, 0x38, 0x1d, 0x6f,
  1146  	0xb2, 0x25, 0xdf, 0x02, 0x14, 0x1d, 0xd6, 0xd4, 0x45, 0x49, 0xfd, 0xa4, 0x42, 0xbd, 0x40, 0x64,
  1147  	0x67, 0x18, 0x5f, 0x21, 0xe3, 0x41, 0x98, 0x1a, 0x17, 0xed, 0x82, 0xa3, 0x1c, 0x7c, 0x05, 0x2d,
  1148  	0xcf, 0xd3, 0xf4, 0x25, 0x49, 0x7f, 0x50, 0x8d, 0x1c, 0xb8, 0x61, 0xe2, 0xd1, 0x31, 0x1a, 0x66,
  1149  	0xd3, 0xf3, 0x14, 0xef, 0x00, 0x3a, 0x11, 0xf5, 0xdc, 0x68, 0x54, 0xb8, 0xe2, 0xbd, 0xc6, 0x1d,
  1150  	0xea, 0x77, 0xc5, 0xe9, 0x85, 0x89, 0x33, 0x5c, 0x70, 0x20, 0x32, 0x16, 0x7e, 0xd8, 0x84, 0x86,
  1151  	0x0c, 0x69, 0xfd, 0x5a, 0x87, 0x4e, 0xa5, 0x3f, 0x64, 0x17, 0x1a, 0xc8, 0x18, 0x65, 0x7a, 0x68,
  1152  	0xaa, 0xed, 0x3f, 0x29, 0xec, 0xc3, 0x05, 0x47, 0x01, 0xc8, 0x37, 0xb0, 0xaa, 0x65, 0x53, 0x2d,
  1153  	0xd5, 0xba, 0x7d, 0x7c, 0x47, 0x37, 0xe5, 0x79, 0xb8, 0xe0, 0x68, 0x99, 0x75, 0xa4, 0x23, 0x58,
  1154  	0x31, 0x85, 0x17, 0x1e, 0xb4, 0x76, 0x8f, 0xee, 0x2d, 0xbe, 0x74, 0x03, 0x5a, 0x02, 0x07, 0x39,
  1155  	0xd9, 0x87, 0x66, 0xac, 0xd4, 0xd5, 0xe2, 0x3d, 0xba, 0x57, 0xfb, 0x92, 0x6f, 0x18, 0x87, 0x2d,
  1156  	0x58, 0x56, 0xa9, 0x5b, 0xab, 0xd0, 0xa9, 0xf4, 0xd8, 0xfa, 0xab, 0x0e, 0x2b, 0xd5, 0xdc, 0xc9,
  1157  	0x97, 0xb0, 0x14, 0xf3, 0xd4, 0xcc, 0xf6, 0xe3, 0x7b, 0x4a, 0xb4, 0xcf, 0x78, 0xca, 0x4f, 0x12,
  1158  	0xc1, 0x72, 0x47, 0xc2, 0xc9, 0x1b, 0x68, 0x51, 0x36, 0x46, 0x56, 0xa4, 0xa7, 0x3e, 0xa7, 0x27,
  1159  	0xf7, 0x51, 0xcf, 0x35, 0x4e, 0xd1, 0x4b, 0x5a, 0xff, 0x0c, 0xda, 0xa5, 0x57, 0xb2, 0x01, 0x8b,
  1160  	0xbf, 0x60, 0xae, 0xe7, 0xb7, 0x58, 0x92, 0x67, 0xd0, 0xb8, 0x75, 0xa3, 0x0c, 0xb5, 0xf8, 0x5d,
  1161  	0x3b, 0xe6, 0xa9, 0xfd, 0xd6, 0xbd, 0x62, 0xa1, 0x77, 0xf6, 0xfe, 0x42, 0x47, 0x50, 0x90, 0xd7,
  1162  	0xf5, 0xaf, 0x6b, 0xfd, 0x4b, 0x58, 0x9d, 0x8a, 0xf4, 0x5f, 0x5c, 0x56, 0x26, 0x20, 0x19, 0xa7,
  1163  	0x34, 0x4c, 0x04, 0xaf, 0xb8, 0xb4, 0x86, 0xb0, 0x35, 0x67, 0xc8, 0xc9, 0x0b, 0x58, 0xbe, 0x0e,
  1164  	0x23, 0x81, 0x66, 0x92, 0x1e, 0xa8, 0x2b, 0x8f, 0x4f, 0xba, 0x7a, 0x9a, 0x08, 0x64, 0xc8, 0x85,
  1165  	0xa3, 0x81, 0xd6, 0xdf, 0x35, 0xe8, 0xce, 0xeb, 0x19, 0xb9, 0x84, 0x15, 0x39, 0xe5, 0xa3, 0xab,
  1166  	0x7c, 0x44, 0x99, 0xaf, 0xdb, 0x30, 0xf8, 0x40, 0xab, 0x6d, 0x35, 0xea, 0xf9, 0x39, 0xf3, 0x95,
  1167  	0xaa, 0xf2, 0x4b, 0x55, 0x86, 0xfe, 0x39, 0xac, 0xcf, 0x1c, 0xcf, 0x91, 0xe2, 0xd3, 0x69, 0x29,
  1168  	0x36, 0x66, 0x02, 0x4e, 0xc9, 0x70, 0x0a, 0x6b, 0xd3, 0xf3, 0x4a, 0x5e, 0x42, 0x3b, 0xd4, 0x25,
  1169  	0x9a, 0xc9, 0xf9, 0x17, 0x11, 0x26, 0x58, 0xcb, 0x81, 0xee, 0xbc, 0xd1, 0x27, 0xaf, 0xa1, 0xe9,
  1170  	0xd1, 0x44, 0x60, 0x22, 0xb4, 0xbb, 0x9d, 0xe9, 0xde, 0x50, 0xc6, 0x31, 0xc6, 0x44, 0x1c, 0x23,
  1171  	0xf7, 0x58, 0x98, 0x0a, 0xca, 0x1c, 0x43, 0xb0, 0x36, 0x60, 0x6d, 0xfa, 0x42, 0xb0, 0xfe, 0xa8,
  1172  	0xc3, 0x47, 0x73, 0x49, 0xc5, 0x53, 0xe3, 0x99, 0xf8, 0x5a, 0x8e, 0x89, 0x81, 0xf8, 0xb0, 0x85,
  1173  	0x8a, 0xa6, 0x1a, 0xe2, 0x33, 0x9a, 0xa5, 0x66, 0xbe, 0x5f, 0x7e, 0x28, 0x23, 0x63, 0x2d, 0x94,
  1174  	0x7f, 0x27, 0x99, 0xaa, 0x37, 0x9b, 0x38, 0x6b, 0x27, 0x9f, 0x41, 0x33, 0x72, 0x73, 0x9a, 0x89,
  1175  	0xe2, 0x6e, 0x28, 0x9c, 0x6f, 0x56, 0x6f, 0x37, 0x79, 0xe2, 0x18, 0x44, 0xff, 0x07, 0xd8, 0x9e,
  1176  	0xef, 0xf9, 0x7f, 0xb6, 0xf5, 0xcf, 0x1a, 0x2c, 0xab, 0x58, 0xe4, 0x47, 0xd8, 0xba, 0xc9, 0xdc,
  1177  	0xe2, 0x21, 0x0a, 0x71, 0x52, 0xb9, 0x6e, 0xc5, 0xee, 0x9d, 0xdc, 0xec, 0xcb, 0x12, 0xac, 0x13,
  1178  	0xd2, 0x95, 0xde, 0xcc, 0xda, 0xfb, 0xc7, 0xb0, 0x3d, 0x1f, 0x3c, 0x27, 0xf9, 0x6e, 0x35, 0xf9,
  1179  	0xd5, 0x6a, 0xaa, 0x36, 0x34, 0x64, 0xfa, 0xe4, 0x09, 0x34, 0xd4, 0xa3, 0xa0, 0x52, 0x5b, 0x9f,
  1180  	0xa9, 0xcf, 0x51, 0xa7, 0xd6, 0x6f, 0x35, 0x58, 0x2a, 0xf6, 0x64, 0x00, 0xc0, 0x85, 0x2b, 0x70,
  1181  	0x14, 0x26, 0xd7, 0xb4, 0xbc, 0xf8, 0xd5, 0x4f, 0x8e, 0x7d, 0x92, 0xdc, 0x62, 0x44, 0x53, 0x74,
  1182  	0xda, 0x12, 0x23, 0xdf, 0xeb, 0x57, 0xb0, 0x1e, 0x97, 0x1f, 0x9b, 0x62, 0xd5, 0xef, 0x61, 0xad,
  1183  	0x4d, 0x80, 0x92, 0xda, 0x87, 0x56, 0xf9, 0xc6, 0x2f, 0xca, 0x57, 0xbb, 0xdc, 0x5b, 0x8f, 0xa1,
  1184  	0x21, 0xdf, 0x18, 0xf9, 0x56, 0x97, 0x83, 0xae, 0xde, 0x6a, 0x3d, 0xc6, 0x07, 0xd0, 0x2e, 0x2f,
  1185  	0x21, 0x32, 0x80, 0x16, 0xea, 0x8d, 0x2e, 0x75, 0x6b, 0xce, 0x65, 0xe5, 0x94, 0x20, 0x6b, 0x0f,
  1186  	0x5a, 0xc6, 0x4a, 0x08, 0x2c, 0x05, 0x94, 0x9b, 0x00, 0x72, 0x5d, 0xd8, 0x52, 0xca, 0x84, 0x96,
  1187  	0x56, 0xae, 0xf7, 0xde, 0x42, 0xfb, 0xd8, 0xf8, 0x24, 0xaf, 0xa0, 0x65, 0x36, 0xa4, 0x57, 0x89,
  1188  	0x35, 0xf5, 0x13, 0xd7, 0xaf, 0x66, 0x61, 0xfe, 0x90, 0x0e, 0x7f, 0x86, 0xa7, 0x94, 0xf9, 0x76,
  1189  	0x90, 0xa7, 0xc8, 0x22, 0x1c, 0xfb, 0xc8, 0xec, 0x6b, 0x79, 0x4f, 0x9b, 0x2b, 0xa1, 0xe4, 0xfc,
  1190  	0xf4, 0xc2, 0x0f, 0x45, 0x90, 0x5d, 0xd9, 0x1e, 0x8d, 0x07, 0x15, 0xfc, 0x40, 0xe1, 0x9f, 0x2b,
  1191  	0xfc, 0x73, 0x9f, 0x0e, 0x4a, 0xca, 0xd5, 0xb2, 0x34, 0x7e, 0xf1, 0x4f, 0x00, 0x00, 0x00, 0xff,
  1192  	0xff, 0xc5, 0x26, 0x97, 0xc6, 0xc0, 0x0a, 0x00, 0x00,
  1193  }
  1194  
  1195  // Reference imports to suppress errors if they are not otherwise used.
  1196  var _ context.Context
  1197  var _ grpc.ClientConn
  1198  
  1199  // This is a compile-time assertion to ensure that this generated file
  1200  // is compatible with the grpc package it is being compiled against.
  1201  const _ = grpc.SupportPackageIsVersion4
  1202  
  1203  // DiscoveryClient is the client API for Discovery service.
  1204  //
  1205  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1206  type DiscoveryClient interface {
  1207  	// Discover receives a signed request, and returns a response.
  1208  	Discover(ctx context.Context, in *SignedRequest, opts ...grpc.CallOption) (*Response, error)
  1209  }
  1210  
  1211  type discoveryClient struct {
  1212  	cc *grpc.ClientConn
  1213  }
  1214  
  1215  func NewDiscoveryClient(cc *grpc.ClientConn) DiscoveryClient {
  1216  	return &discoveryClient{cc}
  1217  }
  1218  
  1219  func (c *discoveryClient) Discover(ctx context.Context, in *SignedRequest, opts ...grpc.CallOption) (*Response, error) {
  1220  	out := new(Response)
  1221  	err := c.cc.Invoke(ctx, "/discovery.Discovery/Discover", in, out, opts...)
  1222  	if err != nil {
  1223  		return nil, err
  1224  	}
  1225  	return out, nil
  1226  }
  1227  
  1228  // DiscoveryServer is the server API for Discovery service.
  1229  type DiscoveryServer interface {
  1230  	// Discover receives a signed request, and returns a response.
  1231  	Discover(context.Context, *SignedRequest) (*Response, error)
  1232  }
  1233  
  1234  // UnimplementedDiscoveryServer can be embedded to have forward compatible implementations.
  1235  type UnimplementedDiscoveryServer struct {
  1236  }
  1237  
  1238  func (*UnimplementedDiscoveryServer) Discover(ctx context.Context, req *SignedRequest) (*Response, error) {
  1239  	return nil, status.Errorf(codes.Unimplemented, "method Discover not implemented")
  1240  }
  1241  
  1242  func RegisterDiscoveryServer(s *grpc.Server, srv DiscoveryServer) {
  1243  	s.RegisterService(&_Discovery_serviceDesc, srv)
  1244  }
  1245  
  1246  func _Discovery_Discover_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1247  	in := new(SignedRequest)
  1248  	if err := dec(in); err != nil {
  1249  		return nil, err
  1250  	}
  1251  	if interceptor == nil {
  1252  		return srv.(DiscoveryServer).Discover(ctx, in)
  1253  	}
  1254  	info := &grpc.UnaryServerInfo{
  1255  		Server:     srv,
  1256  		FullMethod: "/discovery.Discovery/Discover",
  1257  	}
  1258  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1259  		return srv.(DiscoveryServer).Discover(ctx, req.(*SignedRequest))
  1260  	}
  1261  	return interceptor(ctx, in, info, handler)
  1262  }
  1263  
  1264  var _Discovery_serviceDesc = grpc.ServiceDesc{
  1265  	ServiceName: "discovery.Discovery",
  1266  	HandlerType: (*DiscoveryServer)(nil),
  1267  	Methods: []grpc.MethodDesc{
  1268  		{
  1269  			MethodName: "Discover",
  1270  			Handler:    _Discovery_Discover_Handler,
  1271  		},
  1272  	},
  1273  	Streams:  []grpc.StreamDesc{},
  1274  	Metadata: "discovery/protocol.proto",
  1275  }