github.com/annwntech/go-micro/v2@v2.9.5/registry/service/proto/registry.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.13.0
     5  // source: registry/service/proto/registry.proto
     6  
     7  package go_micro_registry
     8  
     9  import (
    10  	context "context"
    11  	proto "github.com/golang/protobuf/proto"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    16  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    17  	reflect "reflect"
    18  	sync "sync"
    19  )
    20  
    21  const (
    22  	// Verify that this generated code is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    24  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    25  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    26  )
    27  
    28  // This is a compile-time assertion that a sufficiently up-to-date version
    29  // of the legacy proto package is being used.
    30  const _ = proto.ProtoPackageIsVersion4
    31  
    32  // EventType defines the type of event
    33  type EventType int32
    34  
    35  const (
    36  	EventType_Create EventType = 0
    37  	EventType_Delete EventType = 1
    38  	EventType_Update EventType = 2
    39  )
    40  
    41  // Enum value maps for EventType.
    42  var (
    43  	EventType_name = map[int32]string{
    44  		0: "Create",
    45  		1: "Delete",
    46  		2: "Update",
    47  	}
    48  	EventType_value = map[string]int32{
    49  		"Create": 0,
    50  		"Delete": 1,
    51  		"Update": 2,
    52  	}
    53  )
    54  
    55  func (x EventType) Enum() *EventType {
    56  	p := new(EventType)
    57  	*p = x
    58  	return p
    59  }
    60  
    61  func (x EventType) String() string {
    62  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    63  }
    64  
    65  func (EventType) Descriptor() protoreflect.EnumDescriptor {
    66  	return file_registry_service_proto_registry_proto_enumTypes[0].Descriptor()
    67  }
    68  
    69  func (EventType) Type() protoreflect.EnumType {
    70  	return &file_registry_service_proto_registry_proto_enumTypes[0]
    71  }
    72  
    73  func (x EventType) Number() protoreflect.EnumNumber {
    74  	return protoreflect.EnumNumber(x)
    75  }
    76  
    77  // Deprecated: Use EventType.Descriptor instead.
    78  func (EventType) EnumDescriptor() ([]byte, []int) {
    79  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{0}
    80  }
    81  
    82  // Service represents a go-micro service
    83  type Service struct {
    84  	state         protoimpl.MessageState
    85  	sizeCache     protoimpl.SizeCache
    86  	unknownFields protoimpl.UnknownFields
    87  
    88  	Name      string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    89  	Version   string            `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
    90  	Metadata  map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    91  	Endpoints []*Endpoint       `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
    92  	Nodes     []*Node           `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"`
    93  	Options   *Options          `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"`
    94  }
    95  
    96  func (x *Service) Reset() {
    97  	*x = Service{}
    98  	if protoimpl.UnsafeEnabled {
    99  		mi := &file_registry_service_proto_registry_proto_msgTypes[0]
   100  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   101  		ms.StoreMessageInfo(mi)
   102  	}
   103  }
   104  
   105  func (x *Service) String() string {
   106  	return protoimpl.X.MessageStringOf(x)
   107  }
   108  
   109  func (*Service) ProtoMessage() {}
   110  
   111  func (x *Service) ProtoReflect() protoreflect.Message {
   112  	mi := &file_registry_service_proto_registry_proto_msgTypes[0]
   113  	if protoimpl.UnsafeEnabled && x != nil {
   114  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   115  		if ms.LoadMessageInfo() == nil {
   116  			ms.StoreMessageInfo(mi)
   117  		}
   118  		return ms
   119  	}
   120  	return mi.MessageOf(x)
   121  }
   122  
   123  // Deprecated: Use Service.ProtoReflect.Descriptor instead.
   124  func (*Service) Descriptor() ([]byte, []int) {
   125  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{0}
   126  }
   127  
   128  func (x *Service) GetName() string {
   129  	if x != nil {
   130  		return x.Name
   131  	}
   132  	return ""
   133  }
   134  
   135  func (x *Service) GetVersion() string {
   136  	if x != nil {
   137  		return x.Version
   138  	}
   139  	return ""
   140  }
   141  
   142  func (x *Service) GetMetadata() map[string]string {
   143  	if x != nil {
   144  		return x.Metadata
   145  	}
   146  	return nil
   147  }
   148  
   149  func (x *Service) GetEndpoints() []*Endpoint {
   150  	if x != nil {
   151  		return x.Endpoints
   152  	}
   153  	return nil
   154  }
   155  
   156  func (x *Service) GetNodes() []*Node {
   157  	if x != nil {
   158  		return x.Nodes
   159  	}
   160  	return nil
   161  }
   162  
   163  func (x *Service) GetOptions() *Options {
   164  	if x != nil {
   165  		return x.Options
   166  	}
   167  	return nil
   168  }
   169  
   170  // Node represents the node the service is on
   171  type Node struct {
   172  	state         protoimpl.MessageState
   173  	sizeCache     protoimpl.SizeCache
   174  	unknownFields protoimpl.UnknownFields
   175  
   176  	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   177  	Address  string            `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
   178  	Port     int64             `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
   179  	Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   180  }
   181  
   182  func (x *Node) Reset() {
   183  	*x = Node{}
   184  	if protoimpl.UnsafeEnabled {
   185  		mi := &file_registry_service_proto_registry_proto_msgTypes[1]
   186  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   187  		ms.StoreMessageInfo(mi)
   188  	}
   189  }
   190  
   191  func (x *Node) String() string {
   192  	return protoimpl.X.MessageStringOf(x)
   193  }
   194  
   195  func (*Node) ProtoMessage() {}
   196  
   197  func (x *Node) ProtoReflect() protoreflect.Message {
   198  	mi := &file_registry_service_proto_registry_proto_msgTypes[1]
   199  	if protoimpl.UnsafeEnabled && x != nil {
   200  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   201  		if ms.LoadMessageInfo() == nil {
   202  			ms.StoreMessageInfo(mi)
   203  		}
   204  		return ms
   205  	}
   206  	return mi.MessageOf(x)
   207  }
   208  
   209  // Deprecated: Use Node.ProtoReflect.Descriptor instead.
   210  func (*Node) Descriptor() ([]byte, []int) {
   211  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{1}
   212  }
   213  
   214  func (x *Node) GetId() string {
   215  	if x != nil {
   216  		return x.Id
   217  	}
   218  	return ""
   219  }
   220  
   221  func (x *Node) GetAddress() string {
   222  	if x != nil {
   223  		return x.Address
   224  	}
   225  	return ""
   226  }
   227  
   228  func (x *Node) GetPort() int64 {
   229  	if x != nil {
   230  		return x.Port
   231  	}
   232  	return 0
   233  }
   234  
   235  func (x *Node) GetMetadata() map[string]string {
   236  	if x != nil {
   237  		return x.Metadata
   238  	}
   239  	return nil
   240  }
   241  
   242  // Endpoint is a endpoint provided by a service
   243  type Endpoint struct {
   244  	state         protoimpl.MessageState
   245  	sizeCache     protoimpl.SizeCache
   246  	unknownFields protoimpl.UnknownFields
   247  
   248  	Name     string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   249  	Request  *Value            `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
   250  	Response *Value            `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
   251  	Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   252  }
   253  
   254  func (x *Endpoint) Reset() {
   255  	*x = Endpoint{}
   256  	if protoimpl.UnsafeEnabled {
   257  		mi := &file_registry_service_proto_registry_proto_msgTypes[2]
   258  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   259  		ms.StoreMessageInfo(mi)
   260  	}
   261  }
   262  
   263  func (x *Endpoint) String() string {
   264  	return protoimpl.X.MessageStringOf(x)
   265  }
   266  
   267  func (*Endpoint) ProtoMessage() {}
   268  
   269  func (x *Endpoint) ProtoReflect() protoreflect.Message {
   270  	mi := &file_registry_service_proto_registry_proto_msgTypes[2]
   271  	if protoimpl.UnsafeEnabled && x != nil {
   272  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   273  		if ms.LoadMessageInfo() == nil {
   274  			ms.StoreMessageInfo(mi)
   275  		}
   276  		return ms
   277  	}
   278  	return mi.MessageOf(x)
   279  }
   280  
   281  // Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.
   282  func (*Endpoint) Descriptor() ([]byte, []int) {
   283  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{2}
   284  }
   285  
   286  func (x *Endpoint) GetName() string {
   287  	if x != nil {
   288  		return x.Name
   289  	}
   290  	return ""
   291  }
   292  
   293  func (x *Endpoint) GetRequest() *Value {
   294  	if x != nil {
   295  		return x.Request
   296  	}
   297  	return nil
   298  }
   299  
   300  func (x *Endpoint) GetResponse() *Value {
   301  	if x != nil {
   302  		return x.Response
   303  	}
   304  	return nil
   305  }
   306  
   307  func (x *Endpoint) GetMetadata() map[string]string {
   308  	if x != nil {
   309  		return x.Metadata
   310  	}
   311  	return nil
   312  }
   313  
   314  // Value is an opaque value for a request or response
   315  type Value struct {
   316  	state         protoimpl.MessageState
   317  	sizeCache     protoimpl.SizeCache
   318  	unknownFields protoimpl.UnknownFields
   319  
   320  	Name   string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   321  	Type   string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
   322  	Values []*Value `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
   323  }
   324  
   325  func (x *Value) Reset() {
   326  	*x = Value{}
   327  	if protoimpl.UnsafeEnabled {
   328  		mi := &file_registry_service_proto_registry_proto_msgTypes[3]
   329  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   330  		ms.StoreMessageInfo(mi)
   331  	}
   332  }
   333  
   334  func (x *Value) String() string {
   335  	return protoimpl.X.MessageStringOf(x)
   336  }
   337  
   338  func (*Value) ProtoMessage() {}
   339  
   340  func (x *Value) ProtoReflect() protoreflect.Message {
   341  	mi := &file_registry_service_proto_registry_proto_msgTypes[3]
   342  	if protoimpl.UnsafeEnabled && x != nil {
   343  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   344  		if ms.LoadMessageInfo() == nil {
   345  			ms.StoreMessageInfo(mi)
   346  		}
   347  		return ms
   348  	}
   349  	return mi.MessageOf(x)
   350  }
   351  
   352  // Deprecated: Use Value.ProtoReflect.Descriptor instead.
   353  func (*Value) Descriptor() ([]byte, []int) {
   354  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{3}
   355  }
   356  
   357  func (x *Value) GetName() string {
   358  	if x != nil {
   359  		return x.Name
   360  	}
   361  	return ""
   362  }
   363  
   364  func (x *Value) GetType() string {
   365  	if x != nil {
   366  		return x.Type
   367  	}
   368  	return ""
   369  }
   370  
   371  func (x *Value) GetValues() []*Value {
   372  	if x != nil {
   373  		return x.Values
   374  	}
   375  	return nil
   376  }
   377  
   378  // Options are registry options
   379  type Options struct {
   380  	state         protoimpl.MessageState
   381  	sizeCache     protoimpl.SizeCache
   382  	unknownFields protoimpl.UnknownFields
   383  
   384  	Ttl int64 `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"`
   385  }
   386  
   387  func (x *Options) Reset() {
   388  	*x = Options{}
   389  	if protoimpl.UnsafeEnabled {
   390  		mi := &file_registry_service_proto_registry_proto_msgTypes[4]
   391  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   392  		ms.StoreMessageInfo(mi)
   393  	}
   394  }
   395  
   396  func (x *Options) String() string {
   397  	return protoimpl.X.MessageStringOf(x)
   398  }
   399  
   400  func (*Options) ProtoMessage() {}
   401  
   402  func (x *Options) ProtoReflect() protoreflect.Message {
   403  	mi := &file_registry_service_proto_registry_proto_msgTypes[4]
   404  	if protoimpl.UnsafeEnabled && x != nil {
   405  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   406  		if ms.LoadMessageInfo() == nil {
   407  			ms.StoreMessageInfo(mi)
   408  		}
   409  		return ms
   410  	}
   411  	return mi.MessageOf(x)
   412  }
   413  
   414  // Deprecated: Use Options.ProtoReflect.Descriptor instead.
   415  func (*Options) Descriptor() ([]byte, []int) {
   416  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{4}
   417  }
   418  
   419  func (x *Options) GetTtl() int64 {
   420  	if x != nil {
   421  		return x.Ttl
   422  	}
   423  	return 0
   424  }
   425  
   426  // Result is returns by the watcher
   427  type Result struct {
   428  	state         protoimpl.MessageState
   429  	sizeCache     protoimpl.SizeCache
   430  	unknownFields protoimpl.UnknownFields
   431  
   432  	Action    string   `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` // create, update, delete
   433  	Service   *Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
   434  	Timestamp int64    `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // unix timestamp
   435  }
   436  
   437  func (x *Result) Reset() {
   438  	*x = Result{}
   439  	if protoimpl.UnsafeEnabled {
   440  		mi := &file_registry_service_proto_registry_proto_msgTypes[5]
   441  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   442  		ms.StoreMessageInfo(mi)
   443  	}
   444  }
   445  
   446  func (x *Result) String() string {
   447  	return protoimpl.X.MessageStringOf(x)
   448  }
   449  
   450  func (*Result) ProtoMessage() {}
   451  
   452  func (x *Result) ProtoReflect() protoreflect.Message {
   453  	mi := &file_registry_service_proto_registry_proto_msgTypes[5]
   454  	if protoimpl.UnsafeEnabled && x != nil {
   455  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   456  		if ms.LoadMessageInfo() == nil {
   457  			ms.StoreMessageInfo(mi)
   458  		}
   459  		return ms
   460  	}
   461  	return mi.MessageOf(x)
   462  }
   463  
   464  // Deprecated: Use Result.ProtoReflect.Descriptor instead.
   465  func (*Result) Descriptor() ([]byte, []int) {
   466  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{5}
   467  }
   468  
   469  func (x *Result) GetAction() string {
   470  	if x != nil {
   471  		return x.Action
   472  	}
   473  	return ""
   474  }
   475  
   476  func (x *Result) GetService() *Service {
   477  	if x != nil {
   478  		return x.Service
   479  	}
   480  	return nil
   481  }
   482  
   483  func (x *Result) GetTimestamp() int64 {
   484  	if x != nil {
   485  		return x.Timestamp
   486  	}
   487  	return 0
   488  }
   489  
   490  type EmptyResponse struct {
   491  	state         protoimpl.MessageState
   492  	sizeCache     protoimpl.SizeCache
   493  	unknownFields protoimpl.UnknownFields
   494  }
   495  
   496  func (x *EmptyResponse) Reset() {
   497  	*x = EmptyResponse{}
   498  	if protoimpl.UnsafeEnabled {
   499  		mi := &file_registry_service_proto_registry_proto_msgTypes[6]
   500  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   501  		ms.StoreMessageInfo(mi)
   502  	}
   503  }
   504  
   505  func (x *EmptyResponse) String() string {
   506  	return protoimpl.X.MessageStringOf(x)
   507  }
   508  
   509  func (*EmptyResponse) ProtoMessage() {}
   510  
   511  func (x *EmptyResponse) ProtoReflect() protoreflect.Message {
   512  	mi := &file_registry_service_proto_registry_proto_msgTypes[6]
   513  	if protoimpl.UnsafeEnabled && x != nil {
   514  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   515  		if ms.LoadMessageInfo() == nil {
   516  			ms.StoreMessageInfo(mi)
   517  		}
   518  		return ms
   519  	}
   520  	return mi.MessageOf(x)
   521  }
   522  
   523  // Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.
   524  func (*EmptyResponse) Descriptor() ([]byte, []int) {
   525  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{6}
   526  }
   527  
   528  type GetRequest struct {
   529  	state         protoimpl.MessageState
   530  	sizeCache     protoimpl.SizeCache
   531  	unknownFields protoimpl.UnknownFields
   532  
   533  	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
   534  }
   535  
   536  func (x *GetRequest) Reset() {
   537  	*x = GetRequest{}
   538  	if protoimpl.UnsafeEnabled {
   539  		mi := &file_registry_service_proto_registry_proto_msgTypes[7]
   540  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   541  		ms.StoreMessageInfo(mi)
   542  	}
   543  }
   544  
   545  func (x *GetRequest) String() string {
   546  	return protoimpl.X.MessageStringOf(x)
   547  }
   548  
   549  func (*GetRequest) ProtoMessage() {}
   550  
   551  func (x *GetRequest) ProtoReflect() protoreflect.Message {
   552  	mi := &file_registry_service_proto_registry_proto_msgTypes[7]
   553  	if protoimpl.UnsafeEnabled && x != nil {
   554  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   555  		if ms.LoadMessageInfo() == nil {
   556  			ms.StoreMessageInfo(mi)
   557  		}
   558  		return ms
   559  	}
   560  	return mi.MessageOf(x)
   561  }
   562  
   563  // Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
   564  func (*GetRequest) Descriptor() ([]byte, []int) {
   565  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{7}
   566  }
   567  
   568  func (x *GetRequest) GetService() string {
   569  	if x != nil {
   570  		return x.Service
   571  	}
   572  	return ""
   573  }
   574  
   575  type GetResponse struct {
   576  	state         protoimpl.MessageState
   577  	sizeCache     protoimpl.SizeCache
   578  	unknownFields protoimpl.UnknownFields
   579  
   580  	Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
   581  }
   582  
   583  func (x *GetResponse) Reset() {
   584  	*x = GetResponse{}
   585  	if protoimpl.UnsafeEnabled {
   586  		mi := &file_registry_service_proto_registry_proto_msgTypes[8]
   587  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   588  		ms.StoreMessageInfo(mi)
   589  	}
   590  }
   591  
   592  func (x *GetResponse) String() string {
   593  	return protoimpl.X.MessageStringOf(x)
   594  }
   595  
   596  func (*GetResponse) ProtoMessage() {}
   597  
   598  func (x *GetResponse) ProtoReflect() protoreflect.Message {
   599  	mi := &file_registry_service_proto_registry_proto_msgTypes[8]
   600  	if protoimpl.UnsafeEnabled && x != nil {
   601  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   602  		if ms.LoadMessageInfo() == nil {
   603  			ms.StoreMessageInfo(mi)
   604  		}
   605  		return ms
   606  	}
   607  	return mi.MessageOf(x)
   608  }
   609  
   610  // Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
   611  func (*GetResponse) Descriptor() ([]byte, []int) {
   612  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{8}
   613  }
   614  
   615  func (x *GetResponse) GetServices() []*Service {
   616  	if x != nil {
   617  		return x.Services
   618  	}
   619  	return nil
   620  }
   621  
   622  type ListRequest struct {
   623  	state         protoimpl.MessageState
   624  	sizeCache     protoimpl.SizeCache
   625  	unknownFields protoimpl.UnknownFields
   626  }
   627  
   628  func (x *ListRequest) Reset() {
   629  	*x = ListRequest{}
   630  	if protoimpl.UnsafeEnabled {
   631  		mi := &file_registry_service_proto_registry_proto_msgTypes[9]
   632  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   633  		ms.StoreMessageInfo(mi)
   634  	}
   635  }
   636  
   637  func (x *ListRequest) String() string {
   638  	return protoimpl.X.MessageStringOf(x)
   639  }
   640  
   641  func (*ListRequest) ProtoMessage() {}
   642  
   643  func (x *ListRequest) ProtoReflect() protoreflect.Message {
   644  	mi := &file_registry_service_proto_registry_proto_msgTypes[9]
   645  	if protoimpl.UnsafeEnabled && x != nil {
   646  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   647  		if ms.LoadMessageInfo() == nil {
   648  			ms.StoreMessageInfo(mi)
   649  		}
   650  		return ms
   651  	}
   652  	return mi.MessageOf(x)
   653  }
   654  
   655  // Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
   656  func (*ListRequest) Descriptor() ([]byte, []int) {
   657  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{9}
   658  }
   659  
   660  type ListResponse struct {
   661  	state         protoimpl.MessageState
   662  	sizeCache     protoimpl.SizeCache
   663  	unknownFields protoimpl.UnknownFields
   664  
   665  	Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
   666  }
   667  
   668  func (x *ListResponse) Reset() {
   669  	*x = ListResponse{}
   670  	if protoimpl.UnsafeEnabled {
   671  		mi := &file_registry_service_proto_registry_proto_msgTypes[10]
   672  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   673  		ms.StoreMessageInfo(mi)
   674  	}
   675  }
   676  
   677  func (x *ListResponse) String() string {
   678  	return protoimpl.X.MessageStringOf(x)
   679  }
   680  
   681  func (*ListResponse) ProtoMessage() {}
   682  
   683  func (x *ListResponse) ProtoReflect() protoreflect.Message {
   684  	mi := &file_registry_service_proto_registry_proto_msgTypes[10]
   685  	if protoimpl.UnsafeEnabled && x != nil {
   686  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   687  		if ms.LoadMessageInfo() == nil {
   688  			ms.StoreMessageInfo(mi)
   689  		}
   690  		return ms
   691  	}
   692  	return mi.MessageOf(x)
   693  }
   694  
   695  // Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
   696  func (*ListResponse) Descriptor() ([]byte, []int) {
   697  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{10}
   698  }
   699  
   700  func (x *ListResponse) GetServices() []*Service {
   701  	if x != nil {
   702  		return x.Services
   703  	}
   704  	return nil
   705  }
   706  
   707  type WatchRequest struct {
   708  	state         protoimpl.MessageState
   709  	sizeCache     protoimpl.SizeCache
   710  	unknownFields protoimpl.UnknownFields
   711  
   712  	// service is optional
   713  	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
   714  }
   715  
   716  func (x *WatchRequest) Reset() {
   717  	*x = WatchRequest{}
   718  	if protoimpl.UnsafeEnabled {
   719  		mi := &file_registry_service_proto_registry_proto_msgTypes[11]
   720  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   721  		ms.StoreMessageInfo(mi)
   722  	}
   723  }
   724  
   725  func (x *WatchRequest) String() string {
   726  	return protoimpl.X.MessageStringOf(x)
   727  }
   728  
   729  func (*WatchRequest) ProtoMessage() {}
   730  
   731  func (x *WatchRequest) ProtoReflect() protoreflect.Message {
   732  	mi := &file_registry_service_proto_registry_proto_msgTypes[11]
   733  	if protoimpl.UnsafeEnabled && x != nil {
   734  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   735  		if ms.LoadMessageInfo() == nil {
   736  			ms.StoreMessageInfo(mi)
   737  		}
   738  		return ms
   739  	}
   740  	return mi.MessageOf(x)
   741  }
   742  
   743  // Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
   744  func (*WatchRequest) Descriptor() ([]byte, []int) {
   745  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{11}
   746  }
   747  
   748  func (x *WatchRequest) GetService() string {
   749  	if x != nil {
   750  		return x.Service
   751  	}
   752  	return ""
   753  }
   754  
   755  // Event is registry event
   756  type Event struct {
   757  	state         protoimpl.MessageState
   758  	sizeCache     protoimpl.SizeCache
   759  	unknownFields protoimpl.UnknownFields
   760  
   761  	// Event Id
   762  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   763  	// type of event
   764  	Type EventType `protobuf:"varint,2,opt,name=type,proto3,enum=go.micro.registry.EventType" json:"type,omitempty"`
   765  	// unix timestamp of event
   766  	Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   767  	// service entry
   768  	Service *Service `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"`
   769  }
   770  
   771  func (x *Event) Reset() {
   772  	*x = Event{}
   773  	if protoimpl.UnsafeEnabled {
   774  		mi := &file_registry_service_proto_registry_proto_msgTypes[12]
   775  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   776  		ms.StoreMessageInfo(mi)
   777  	}
   778  }
   779  
   780  func (x *Event) String() string {
   781  	return protoimpl.X.MessageStringOf(x)
   782  }
   783  
   784  func (*Event) ProtoMessage() {}
   785  
   786  func (x *Event) ProtoReflect() protoreflect.Message {
   787  	mi := &file_registry_service_proto_registry_proto_msgTypes[12]
   788  	if protoimpl.UnsafeEnabled && x != nil {
   789  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   790  		if ms.LoadMessageInfo() == nil {
   791  			ms.StoreMessageInfo(mi)
   792  		}
   793  		return ms
   794  	}
   795  	return mi.MessageOf(x)
   796  }
   797  
   798  // Deprecated: Use Event.ProtoReflect.Descriptor instead.
   799  func (*Event) Descriptor() ([]byte, []int) {
   800  	return file_registry_service_proto_registry_proto_rawDescGZIP(), []int{12}
   801  }
   802  
   803  func (x *Event) GetId() string {
   804  	if x != nil {
   805  		return x.Id
   806  	}
   807  	return ""
   808  }
   809  
   810  func (x *Event) GetType() EventType {
   811  	if x != nil {
   812  		return x.Type
   813  	}
   814  	return EventType_Create
   815  }
   816  
   817  func (x *Event) GetTimestamp() int64 {
   818  	if x != nil {
   819  		return x.Timestamp
   820  	}
   821  	return 0
   822  }
   823  
   824  func (x *Event) GetService() *Service {
   825  	if x != nil {
   826  		return x.Service
   827  	}
   828  	return nil
   829  }
   830  
   831  var File_registry_service_proto_registry_proto protoreflect.FileDescriptor
   832  
   833  var file_registry_service_proto_registry_proto_rawDesc = []byte{
   834  	0x0a, 0x25, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
   835  	0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
   836  	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72,
   837  	0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x22, 0xda, 0x02, 0x0a, 0x07, 0x53,
   838  	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
   839  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65,
   840  	0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72,
   841  	0x73, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
   842  	0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72,
   843  	0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69,
   844  	0x63, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79,
   845  	0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x09, 0x65, 0x6e,
   846  	0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e,
   847  	0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
   848  	0x79, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70,
   849  	0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2d, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05,
   850  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e,
   851  	0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e,
   852  	0x6f, 0x64, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
   853  	0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f,
   854  	0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
   855  	0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65,
   856  	0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
   857  	0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
   858  	0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
   859  	0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc4, 0x01, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65,
   860  	0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
   861  	0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
   862  	0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f,
   863  	0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x41,
   864  	0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
   865  	0x32, 0x25, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69,
   866  	0x73, 0x74, 0x72, 0x79, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
   867  	0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
   868  	0x61, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74,
   869  	0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   870  	0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
   871  	0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x8c,
   872  	0x02, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e,
   873  	0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
   874  	0x32, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
   875  	0x32, 0x18, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69,
   876  	0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75,
   877  	0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18,
   878  	0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f,
   879  	0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
   880  	0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x08, 0x6d, 0x65, 0x74,
   881  	0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f,
   882  	0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e,
   883  	0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
   884  	0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
   885  	0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72,
   886  	0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
   887  	0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
   888  	0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x61, 0x0a,
   889  	0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
   890  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
   891  	0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x30,
   892  	0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18,
   893  	0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
   894  	0x72, 0x79, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
   895  	0x22, 0x1b, 0x0a, 0x07, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74,
   896  	0x74, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x74, 0x74, 0x6c, 0x22, 0x74, 0x0a,
   897  	0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f,
   898  	0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,
   899  	0x34, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
   900  	0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69,
   901  	0x73, 0x74, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65,
   902  	0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
   903  	0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
   904  	0x61, 0x6d, 0x70, 0x22, 0x0f, 0x0a, 0x0d, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70,
   905  	0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
   906  	0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20,
   907  	0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x45, 0x0a, 0x0b,
   908  	0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x73,
   909  	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
   910  	0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
   911  	0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69,
   912  	0x63, 0x65, 0x73, 0x22, 0x0d, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
   913  	0x73, 0x74, 0x22, 0x46, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   914  	0x73, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01,
   915  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e,
   916  	0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
   917  	0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x28, 0x0a, 0x0c, 0x57, 0x61,
   918  	0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65,
   919  	0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72,
   920  	0x76, 0x69, 0x63, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e,
   921  	0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30,
   922  	0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67,
   923  	0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
   924  	0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
   925  	0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20,
   926  	0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34,
   927  	0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
   928  	0x1a, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73,
   929  	0x74, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72,
   930  	0x76, 0x69, 0x63, 0x65, 0x2a, 0x2f, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70,
   931  	0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x0a, 0x0a,
   932  	0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x70, 0x64,
   933  	0x61, 0x74, 0x65, 0x10, 0x02, 0x32, 0x8f, 0x03, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
   934  	0x72, 0x79, 0x12, 0x4d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
   935  	0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69,
   936  	0x73, 0x74, 0x72, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
   937  	0x1e, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73,
   938  	0x74, 0x72, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
   939  	0x00, 0x12, 0x4a, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x2e,
   940  	0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
   941  	0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x20, 0x2e, 0x67, 0x6f, 0x2e, 0x6d,
   942  	0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x45, 0x6d,
   943  	0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a,
   944  	0x0a, 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x67, 0x6f,
   945  	0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e,
   946  	0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x20, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63,
   947  	0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x45, 0x6d, 0x70, 0x74,
   948  	0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x4c,
   949  	0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x67, 0x6f,
   950  	0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e,
   951  	0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6f,
   952  	0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e,
   953  	0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47,
   954  	0x0a, 0x05, 0x57, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63,
   955  	0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x57, 0x61, 0x74, 0x63,
   956  	0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69,
   957  	0x63, 0x72, 0x6f, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x52, 0x65, 0x73,
   958  	0x75, 0x6c, 0x74, 0x22, 0x00, 0x30, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   959  }
   960  
   961  var (
   962  	file_registry_service_proto_registry_proto_rawDescOnce sync.Once
   963  	file_registry_service_proto_registry_proto_rawDescData = file_registry_service_proto_registry_proto_rawDesc
   964  )
   965  
   966  func file_registry_service_proto_registry_proto_rawDescGZIP() []byte {
   967  	file_registry_service_proto_registry_proto_rawDescOnce.Do(func() {
   968  		file_registry_service_proto_registry_proto_rawDescData = protoimpl.X.CompressGZIP(file_registry_service_proto_registry_proto_rawDescData)
   969  	})
   970  	return file_registry_service_proto_registry_proto_rawDescData
   971  }
   972  
   973  var file_registry_service_proto_registry_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   974  var file_registry_service_proto_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
   975  var file_registry_service_proto_registry_proto_goTypes = []interface{}{
   976  	(EventType)(0),        // 0: go.micro.registry.EventType
   977  	(*Service)(nil),       // 1: go.micro.registry.Service
   978  	(*Node)(nil),          // 2: go.micro.registry.Node
   979  	(*Endpoint)(nil),      // 3: go.micro.registry.Endpoint
   980  	(*Value)(nil),         // 4: go.micro.registry.Value
   981  	(*Options)(nil),       // 5: go.micro.registry.Options
   982  	(*Result)(nil),        // 6: go.micro.registry.Result
   983  	(*EmptyResponse)(nil), // 7: go.micro.registry.EmptyResponse
   984  	(*GetRequest)(nil),    // 8: go.micro.registry.GetRequest
   985  	(*GetResponse)(nil),   // 9: go.micro.registry.GetResponse
   986  	(*ListRequest)(nil),   // 10: go.micro.registry.ListRequest
   987  	(*ListResponse)(nil),  // 11: go.micro.registry.ListResponse
   988  	(*WatchRequest)(nil),  // 12: go.micro.registry.WatchRequest
   989  	(*Event)(nil),         // 13: go.micro.registry.Event
   990  	nil,                   // 14: go.micro.registry.Service.MetadataEntry
   991  	nil,                   // 15: go.micro.registry.Node.MetadataEntry
   992  	nil,                   // 16: go.micro.registry.Endpoint.MetadataEntry
   993  }
   994  var file_registry_service_proto_registry_proto_depIdxs = []int32{
   995  	14, // 0: go.micro.registry.Service.metadata:type_name -> go.micro.registry.Service.MetadataEntry
   996  	3,  // 1: go.micro.registry.Service.endpoints:type_name -> go.micro.registry.Endpoint
   997  	2,  // 2: go.micro.registry.Service.nodes:type_name -> go.micro.registry.Node
   998  	5,  // 3: go.micro.registry.Service.options:type_name -> go.micro.registry.Options
   999  	15, // 4: go.micro.registry.Node.metadata:type_name -> go.micro.registry.Node.MetadataEntry
  1000  	4,  // 5: go.micro.registry.Endpoint.request:type_name -> go.micro.registry.Value
  1001  	4,  // 6: go.micro.registry.Endpoint.response:type_name -> go.micro.registry.Value
  1002  	16, // 7: go.micro.registry.Endpoint.metadata:type_name -> go.micro.registry.Endpoint.MetadataEntry
  1003  	4,  // 8: go.micro.registry.Value.values:type_name -> go.micro.registry.Value
  1004  	1,  // 9: go.micro.registry.Result.service:type_name -> go.micro.registry.Service
  1005  	1,  // 10: go.micro.registry.GetResponse.services:type_name -> go.micro.registry.Service
  1006  	1,  // 11: go.micro.registry.ListResponse.services:type_name -> go.micro.registry.Service
  1007  	0,  // 12: go.micro.registry.Event.type:type_name -> go.micro.registry.EventType
  1008  	1,  // 13: go.micro.registry.Event.service:type_name -> go.micro.registry.Service
  1009  	8,  // 14: go.micro.registry.Registry.GetService:input_type -> go.micro.registry.GetRequest
  1010  	1,  // 15: go.micro.registry.Registry.Register:input_type -> go.micro.registry.Service
  1011  	1,  // 16: go.micro.registry.Registry.Deregister:input_type -> go.micro.registry.Service
  1012  	10, // 17: go.micro.registry.Registry.ListServices:input_type -> go.micro.registry.ListRequest
  1013  	12, // 18: go.micro.registry.Registry.Watch:input_type -> go.micro.registry.WatchRequest
  1014  	9,  // 19: go.micro.registry.Registry.GetService:output_type -> go.micro.registry.GetResponse
  1015  	7,  // 20: go.micro.registry.Registry.Register:output_type -> go.micro.registry.EmptyResponse
  1016  	7,  // 21: go.micro.registry.Registry.Deregister:output_type -> go.micro.registry.EmptyResponse
  1017  	11, // 22: go.micro.registry.Registry.ListServices:output_type -> go.micro.registry.ListResponse
  1018  	6,  // 23: go.micro.registry.Registry.Watch:output_type -> go.micro.registry.Result
  1019  	19, // [19:24] is the sub-list for method output_type
  1020  	14, // [14:19] is the sub-list for method input_type
  1021  	14, // [14:14] is the sub-list for extension type_name
  1022  	14, // [14:14] is the sub-list for extension extendee
  1023  	0,  // [0:14] is the sub-list for field type_name
  1024  }
  1025  
  1026  func init() { file_registry_service_proto_registry_proto_init() }
  1027  func file_registry_service_proto_registry_proto_init() {
  1028  	if File_registry_service_proto_registry_proto != nil {
  1029  		return
  1030  	}
  1031  	if !protoimpl.UnsafeEnabled {
  1032  		file_registry_service_proto_registry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1033  			switch v := v.(*Service); i {
  1034  			case 0:
  1035  				return &v.state
  1036  			case 1:
  1037  				return &v.sizeCache
  1038  			case 2:
  1039  				return &v.unknownFields
  1040  			default:
  1041  				return nil
  1042  			}
  1043  		}
  1044  		file_registry_service_proto_registry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1045  			switch v := v.(*Node); i {
  1046  			case 0:
  1047  				return &v.state
  1048  			case 1:
  1049  				return &v.sizeCache
  1050  			case 2:
  1051  				return &v.unknownFields
  1052  			default:
  1053  				return nil
  1054  			}
  1055  		}
  1056  		file_registry_service_proto_registry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1057  			switch v := v.(*Endpoint); i {
  1058  			case 0:
  1059  				return &v.state
  1060  			case 1:
  1061  				return &v.sizeCache
  1062  			case 2:
  1063  				return &v.unknownFields
  1064  			default:
  1065  				return nil
  1066  			}
  1067  		}
  1068  		file_registry_service_proto_registry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1069  			switch v := v.(*Value); i {
  1070  			case 0:
  1071  				return &v.state
  1072  			case 1:
  1073  				return &v.sizeCache
  1074  			case 2:
  1075  				return &v.unknownFields
  1076  			default:
  1077  				return nil
  1078  			}
  1079  		}
  1080  		file_registry_service_proto_registry_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1081  			switch v := v.(*Options); i {
  1082  			case 0:
  1083  				return &v.state
  1084  			case 1:
  1085  				return &v.sizeCache
  1086  			case 2:
  1087  				return &v.unknownFields
  1088  			default:
  1089  				return nil
  1090  			}
  1091  		}
  1092  		file_registry_service_proto_registry_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1093  			switch v := v.(*Result); i {
  1094  			case 0:
  1095  				return &v.state
  1096  			case 1:
  1097  				return &v.sizeCache
  1098  			case 2:
  1099  				return &v.unknownFields
  1100  			default:
  1101  				return nil
  1102  			}
  1103  		}
  1104  		file_registry_service_proto_registry_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1105  			switch v := v.(*EmptyResponse); i {
  1106  			case 0:
  1107  				return &v.state
  1108  			case 1:
  1109  				return &v.sizeCache
  1110  			case 2:
  1111  				return &v.unknownFields
  1112  			default:
  1113  				return nil
  1114  			}
  1115  		}
  1116  		file_registry_service_proto_registry_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1117  			switch v := v.(*GetRequest); i {
  1118  			case 0:
  1119  				return &v.state
  1120  			case 1:
  1121  				return &v.sizeCache
  1122  			case 2:
  1123  				return &v.unknownFields
  1124  			default:
  1125  				return nil
  1126  			}
  1127  		}
  1128  		file_registry_service_proto_registry_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1129  			switch v := v.(*GetResponse); i {
  1130  			case 0:
  1131  				return &v.state
  1132  			case 1:
  1133  				return &v.sizeCache
  1134  			case 2:
  1135  				return &v.unknownFields
  1136  			default:
  1137  				return nil
  1138  			}
  1139  		}
  1140  		file_registry_service_proto_registry_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1141  			switch v := v.(*ListRequest); i {
  1142  			case 0:
  1143  				return &v.state
  1144  			case 1:
  1145  				return &v.sizeCache
  1146  			case 2:
  1147  				return &v.unknownFields
  1148  			default:
  1149  				return nil
  1150  			}
  1151  		}
  1152  		file_registry_service_proto_registry_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1153  			switch v := v.(*ListResponse); i {
  1154  			case 0:
  1155  				return &v.state
  1156  			case 1:
  1157  				return &v.sizeCache
  1158  			case 2:
  1159  				return &v.unknownFields
  1160  			default:
  1161  				return nil
  1162  			}
  1163  		}
  1164  		file_registry_service_proto_registry_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1165  			switch v := v.(*WatchRequest); i {
  1166  			case 0:
  1167  				return &v.state
  1168  			case 1:
  1169  				return &v.sizeCache
  1170  			case 2:
  1171  				return &v.unknownFields
  1172  			default:
  1173  				return nil
  1174  			}
  1175  		}
  1176  		file_registry_service_proto_registry_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1177  			switch v := v.(*Event); i {
  1178  			case 0:
  1179  				return &v.state
  1180  			case 1:
  1181  				return &v.sizeCache
  1182  			case 2:
  1183  				return &v.unknownFields
  1184  			default:
  1185  				return nil
  1186  			}
  1187  		}
  1188  	}
  1189  	type x struct{}
  1190  	out := protoimpl.TypeBuilder{
  1191  		File: protoimpl.DescBuilder{
  1192  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1193  			RawDescriptor: file_registry_service_proto_registry_proto_rawDesc,
  1194  			NumEnums:      1,
  1195  			NumMessages:   16,
  1196  			NumExtensions: 0,
  1197  			NumServices:   1,
  1198  		},
  1199  		GoTypes:           file_registry_service_proto_registry_proto_goTypes,
  1200  		DependencyIndexes: file_registry_service_proto_registry_proto_depIdxs,
  1201  		EnumInfos:         file_registry_service_proto_registry_proto_enumTypes,
  1202  		MessageInfos:      file_registry_service_proto_registry_proto_msgTypes,
  1203  	}.Build()
  1204  	File_registry_service_proto_registry_proto = out.File
  1205  	file_registry_service_proto_registry_proto_rawDesc = nil
  1206  	file_registry_service_proto_registry_proto_goTypes = nil
  1207  	file_registry_service_proto_registry_proto_depIdxs = nil
  1208  }
  1209  
  1210  // Reference imports to suppress errors if they are not otherwise used.
  1211  var _ context.Context
  1212  var _ grpc.ClientConnInterface
  1213  
  1214  // This is a compile-time assertion to ensure that this generated file
  1215  // is compatible with the grpc package it is being compiled against.
  1216  const _ = grpc.SupportPackageIsVersion6
  1217  
  1218  // RegistryClient is the client API for Registry service.
  1219  //
  1220  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1221  type RegistryClient interface {
  1222  	GetService(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
  1223  	Register(ctx context.Context, in *Service, opts ...grpc.CallOption) (*EmptyResponse, error)
  1224  	Deregister(ctx context.Context, in *Service, opts ...grpc.CallOption) (*EmptyResponse, error)
  1225  	ListServices(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
  1226  	Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Registry_WatchClient, error)
  1227  }
  1228  
  1229  type registryClient struct {
  1230  	cc grpc.ClientConnInterface
  1231  }
  1232  
  1233  func NewRegistryClient(cc grpc.ClientConnInterface) RegistryClient {
  1234  	return &registryClient{cc}
  1235  }
  1236  
  1237  func (c *registryClient) GetService(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
  1238  	out := new(GetResponse)
  1239  	err := c.cc.Invoke(ctx, "/go.micro.registry.Registry/GetService", in, out, opts...)
  1240  	if err != nil {
  1241  		return nil, err
  1242  	}
  1243  	return out, nil
  1244  }
  1245  
  1246  func (c *registryClient) Register(ctx context.Context, in *Service, opts ...grpc.CallOption) (*EmptyResponse, error) {
  1247  	out := new(EmptyResponse)
  1248  	err := c.cc.Invoke(ctx, "/go.micro.registry.Registry/Register", in, out, opts...)
  1249  	if err != nil {
  1250  		return nil, err
  1251  	}
  1252  	return out, nil
  1253  }
  1254  
  1255  func (c *registryClient) Deregister(ctx context.Context, in *Service, opts ...grpc.CallOption) (*EmptyResponse, error) {
  1256  	out := new(EmptyResponse)
  1257  	err := c.cc.Invoke(ctx, "/go.micro.registry.Registry/Deregister", in, out, opts...)
  1258  	if err != nil {
  1259  		return nil, err
  1260  	}
  1261  	return out, nil
  1262  }
  1263  
  1264  func (c *registryClient) ListServices(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
  1265  	out := new(ListResponse)
  1266  	err := c.cc.Invoke(ctx, "/go.micro.registry.Registry/ListServices", in, out, opts...)
  1267  	if err != nil {
  1268  		return nil, err
  1269  	}
  1270  	return out, nil
  1271  }
  1272  
  1273  func (c *registryClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Registry_WatchClient, error) {
  1274  	stream, err := c.cc.NewStream(ctx, &_Registry_serviceDesc.Streams[0], "/go.micro.registry.Registry/Watch", opts...)
  1275  	if err != nil {
  1276  		return nil, err
  1277  	}
  1278  	x := &registryWatchClient{stream}
  1279  	if err := x.ClientStream.SendMsg(in); err != nil {
  1280  		return nil, err
  1281  	}
  1282  	if err := x.ClientStream.CloseSend(); err != nil {
  1283  		return nil, err
  1284  	}
  1285  	return x, nil
  1286  }
  1287  
  1288  type Registry_WatchClient interface {
  1289  	Recv() (*Result, error)
  1290  	grpc.ClientStream
  1291  }
  1292  
  1293  type registryWatchClient struct {
  1294  	grpc.ClientStream
  1295  }
  1296  
  1297  func (x *registryWatchClient) Recv() (*Result, error) {
  1298  	m := new(Result)
  1299  	if err := x.ClientStream.RecvMsg(m); err != nil {
  1300  		return nil, err
  1301  	}
  1302  	return m, nil
  1303  }
  1304  
  1305  // RegistryServer is the server API for Registry service.
  1306  type RegistryServer interface {
  1307  	GetService(context.Context, *GetRequest) (*GetResponse, error)
  1308  	Register(context.Context, *Service) (*EmptyResponse, error)
  1309  	Deregister(context.Context, *Service) (*EmptyResponse, error)
  1310  	ListServices(context.Context, *ListRequest) (*ListResponse, error)
  1311  	Watch(*WatchRequest, Registry_WatchServer) error
  1312  }
  1313  
  1314  // UnimplementedRegistryServer can be embedded to have forward compatible implementations.
  1315  type UnimplementedRegistryServer struct {
  1316  }
  1317  
  1318  func (*UnimplementedRegistryServer) GetService(context.Context, *GetRequest) (*GetResponse, error) {
  1319  	return nil, status.Errorf(codes.Unimplemented, "method GetService not implemented")
  1320  }
  1321  func (*UnimplementedRegistryServer) Register(context.Context, *Service) (*EmptyResponse, error) {
  1322  	return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
  1323  }
  1324  func (*UnimplementedRegistryServer) Deregister(context.Context, *Service) (*EmptyResponse, error) {
  1325  	return nil, status.Errorf(codes.Unimplemented, "method Deregister not implemented")
  1326  }
  1327  func (*UnimplementedRegistryServer) ListServices(context.Context, *ListRequest) (*ListResponse, error) {
  1328  	return nil, status.Errorf(codes.Unimplemented, "method ListServices not implemented")
  1329  }
  1330  func (*UnimplementedRegistryServer) Watch(*WatchRequest, Registry_WatchServer) error {
  1331  	return status.Errorf(codes.Unimplemented, "method Watch not implemented")
  1332  }
  1333  
  1334  func RegisterRegistryServer(s *grpc.Server, srv RegistryServer) {
  1335  	s.RegisterService(&_Registry_serviceDesc, srv)
  1336  }
  1337  
  1338  func _Registry_GetService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1339  	in := new(GetRequest)
  1340  	if err := dec(in); err != nil {
  1341  		return nil, err
  1342  	}
  1343  	if interceptor == nil {
  1344  		return srv.(RegistryServer).GetService(ctx, in)
  1345  	}
  1346  	info := &grpc.UnaryServerInfo{
  1347  		Server:     srv,
  1348  		FullMethod: "/go.micro.registry.Registry/GetService",
  1349  	}
  1350  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1351  		return srv.(RegistryServer).GetService(ctx, req.(*GetRequest))
  1352  	}
  1353  	return interceptor(ctx, in, info, handler)
  1354  }
  1355  
  1356  func _Registry_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1357  	in := new(Service)
  1358  	if err := dec(in); err != nil {
  1359  		return nil, err
  1360  	}
  1361  	if interceptor == nil {
  1362  		return srv.(RegistryServer).Register(ctx, in)
  1363  	}
  1364  	info := &grpc.UnaryServerInfo{
  1365  		Server:     srv,
  1366  		FullMethod: "/go.micro.registry.Registry/Register",
  1367  	}
  1368  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1369  		return srv.(RegistryServer).Register(ctx, req.(*Service))
  1370  	}
  1371  	return interceptor(ctx, in, info, handler)
  1372  }
  1373  
  1374  func _Registry_Deregister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1375  	in := new(Service)
  1376  	if err := dec(in); err != nil {
  1377  		return nil, err
  1378  	}
  1379  	if interceptor == nil {
  1380  		return srv.(RegistryServer).Deregister(ctx, in)
  1381  	}
  1382  	info := &grpc.UnaryServerInfo{
  1383  		Server:     srv,
  1384  		FullMethod: "/go.micro.registry.Registry/Deregister",
  1385  	}
  1386  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1387  		return srv.(RegistryServer).Deregister(ctx, req.(*Service))
  1388  	}
  1389  	return interceptor(ctx, in, info, handler)
  1390  }
  1391  
  1392  func _Registry_ListServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1393  	in := new(ListRequest)
  1394  	if err := dec(in); err != nil {
  1395  		return nil, err
  1396  	}
  1397  	if interceptor == nil {
  1398  		return srv.(RegistryServer).ListServices(ctx, in)
  1399  	}
  1400  	info := &grpc.UnaryServerInfo{
  1401  		Server:     srv,
  1402  		FullMethod: "/go.micro.registry.Registry/ListServices",
  1403  	}
  1404  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1405  		return srv.(RegistryServer).ListServices(ctx, req.(*ListRequest))
  1406  	}
  1407  	return interceptor(ctx, in, info, handler)
  1408  }
  1409  
  1410  func _Registry_Watch_Handler(srv interface{}, stream grpc.ServerStream) error {
  1411  	m := new(WatchRequest)
  1412  	if err := stream.RecvMsg(m); err != nil {
  1413  		return err
  1414  	}
  1415  	return srv.(RegistryServer).Watch(m, &registryWatchServer{stream})
  1416  }
  1417  
  1418  type Registry_WatchServer interface {
  1419  	Send(*Result) error
  1420  	grpc.ServerStream
  1421  }
  1422  
  1423  type registryWatchServer struct {
  1424  	grpc.ServerStream
  1425  }
  1426  
  1427  func (x *registryWatchServer) Send(m *Result) error {
  1428  	return x.ServerStream.SendMsg(m)
  1429  }
  1430  
  1431  var _Registry_serviceDesc = grpc.ServiceDesc{
  1432  	ServiceName: "go.micro.registry.Registry",
  1433  	HandlerType: (*RegistryServer)(nil),
  1434  	Methods: []grpc.MethodDesc{
  1435  		{
  1436  			MethodName: "GetService",
  1437  			Handler:    _Registry_GetService_Handler,
  1438  		},
  1439  		{
  1440  			MethodName: "Register",
  1441  			Handler:    _Registry_Register_Handler,
  1442  		},
  1443  		{
  1444  			MethodName: "Deregister",
  1445  			Handler:    _Registry_Deregister_Handler,
  1446  		},
  1447  		{
  1448  			MethodName: "ListServices",
  1449  			Handler:    _Registry_ListServices_Handler,
  1450  		},
  1451  	},
  1452  	Streams: []grpc.StreamDesc{
  1453  		{
  1454  			StreamName:    "Watch",
  1455  			Handler:       _Registry_Watch_Handler,
  1456  			ServerStreams: true,
  1457  		},
  1458  	},
  1459  	Metadata: "registry/service/proto/registry.proto",
  1460  }