github.com/micro/go-micro/v2@v2.9.1/auth/service/proto/auth.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: auth/service/proto/auth.proto
     3  
     4  package go_micro_auth
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	grpc "google.golang.org/grpc"
    11  	codes "google.golang.org/grpc/codes"
    12  	status "google.golang.org/grpc/status"
    13  	math "math"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  type Access int32
    28  
    29  const (
    30  	Access_UNKNOWN Access = 0
    31  	Access_GRANTED Access = 1
    32  	Access_DENIED  Access = 2
    33  )
    34  
    35  var Access_name = map[int32]string{
    36  	0: "UNKNOWN",
    37  	1: "GRANTED",
    38  	2: "DENIED",
    39  }
    40  
    41  var Access_value = map[string]int32{
    42  	"UNKNOWN": 0,
    43  	"GRANTED": 1,
    44  	"DENIED":  2,
    45  }
    46  
    47  func (x Access) String() string {
    48  	return proto.EnumName(Access_name, int32(x))
    49  }
    50  
    51  func (Access) EnumDescriptor() ([]byte, []int) {
    52  	return fileDescriptor_21300bfacc51fc2a, []int{0}
    53  }
    54  
    55  type ListAccountsRequest struct {
    56  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    57  	XXX_unrecognized     []byte   `json:"-"`
    58  	XXX_sizecache        int32    `json:"-"`
    59  }
    60  
    61  func (m *ListAccountsRequest) Reset()         { *m = ListAccountsRequest{} }
    62  func (m *ListAccountsRequest) String() string { return proto.CompactTextString(m) }
    63  func (*ListAccountsRequest) ProtoMessage()    {}
    64  func (*ListAccountsRequest) Descriptor() ([]byte, []int) {
    65  	return fileDescriptor_21300bfacc51fc2a, []int{0}
    66  }
    67  
    68  func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error {
    69  	return xxx_messageInfo_ListAccountsRequest.Unmarshal(m, b)
    70  }
    71  func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    72  	return xxx_messageInfo_ListAccountsRequest.Marshal(b, m, deterministic)
    73  }
    74  func (m *ListAccountsRequest) XXX_Merge(src proto.Message) {
    75  	xxx_messageInfo_ListAccountsRequest.Merge(m, src)
    76  }
    77  func (m *ListAccountsRequest) XXX_Size() int {
    78  	return xxx_messageInfo_ListAccountsRequest.Size(m)
    79  }
    80  func (m *ListAccountsRequest) XXX_DiscardUnknown() {
    81  	xxx_messageInfo_ListAccountsRequest.DiscardUnknown(m)
    82  }
    83  
    84  var xxx_messageInfo_ListAccountsRequest proto.InternalMessageInfo
    85  
    86  type ListAccountsResponse struct {
    87  	Accounts             []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
    88  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    89  	XXX_unrecognized     []byte     `json:"-"`
    90  	XXX_sizecache        int32      `json:"-"`
    91  }
    92  
    93  func (m *ListAccountsResponse) Reset()         { *m = ListAccountsResponse{} }
    94  func (m *ListAccountsResponse) String() string { return proto.CompactTextString(m) }
    95  func (*ListAccountsResponse) ProtoMessage()    {}
    96  func (*ListAccountsResponse) Descriptor() ([]byte, []int) {
    97  	return fileDescriptor_21300bfacc51fc2a, []int{1}
    98  }
    99  
   100  func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error {
   101  	return xxx_messageInfo_ListAccountsResponse.Unmarshal(m, b)
   102  }
   103  func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   104  	return xxx_messageInfo_ListAccountsResponse.Marshal(b, m, deterministic)
   105  }
   106  func (m *ListAccountsResponse) XXX_Merge(src proto.Message) {
   107  	xxx_messageInfo_ListAccountsResponse.Merge(m, src)
   108  }
   109  func (m *ListAccountsResponse) XXX_Size() int {
   110  	return xxx_messageInfo_ListAccountsResponse.Size(m)
   111  }
   112  func (m *ListAccountsResponse) XXX_DiscardUnknown() {
   113  	xxx_messageInfo_ListAccountsResponse.DiscardUnknown(m)
   114  }
   115  
   116  var xxx_messageInfo_ListAccountsResponse proto.InternalMessageInfo
   117  
   118  func (m *ListAccountsResponse) GetAccounts() []*Account {
   119  	if m != nil {
   120  		return m.Accounts
   121  	}
   122  	return nil
   123  }
   124  
   125  type Token struct {
   126  	AccessToken          string   `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
   127  	RefreshToken         string   `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
   128  	Created              int64    `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
   129  	Expiry               int64    `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
   130  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   131  	XXX_unrecognized     []byte   `json:"-"`
   132  	XXX_sizecache        int32    `json:"-"`
   133  }
   134  
   135  func (m *Token) Reset()         { *m = Token{} }
   136  func (m *Token) String() string { return proto.CompactTextString(m) }
   137  func (*Token) ProtoMessage()    {}
   138  func (*Token) Descriptor() ([]byte, []int) {
   139  	return fileDescriptor_21300bfacc51fc2a, []int{2}
   140  }
   141  
   142  func (m *Token) XXX_Unmarshal(b []byte) error {
   143  	return xxx_messageInfo_Token.Unmarshal(m, b)
   144  }
   145  func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   146  	return xxx_messageInfo_Token.Marshal(b, m, deterministic)
   147  }
   148  func (m *Token) XXX_Merge(src proto.Message) {
   149  	xxx_messageInfo_Token.Merge(m, src)
   150  }
   151  func (m *Token) XXX_Size() int {
   152  	return xxx_messageInfo_Token.Size(m)
   153  }
   154  func (m *Token) XXX_DiscardUnknown() {
   155  	xxx_messageInfo_Token.DiscardUnknown(m)
   156  }
   157  
   158  var xxx_messageInfo_Token proto.InternalMessageInfo
   159  
   160  func (m *Token) GetAccessToken() string {
   161  	if m != nil {
   162  		return m.AccessToken
   163  	}
   164  	return ""
   165  }
   166  
   167  func (m *Token) GetRefreshToken() string {
   168  	if m != nil {
   169  		return m.RefreshToken
   170  	}
   171  	return ""
   172  }
   173  
   174  func (m *Token) GetCreated() int64 {
   175  	if m != nil {
   176  		return m.Created
   177  	}
   178  	return 0
   179  }
   180  
   181  func (m *Token) GetExpiry() int64 {
   182  	if m != nil {
   183  		return m.Expiry
   184  	}
   185  	return 0
   186  }
   187  
   188  type Account struct {
   189  	Id                   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   190  	Type                 string            `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
   191  	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"`
   192  	Scopes               []string          `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"`
   193  	Issuer               string            `protobuf:"bytes,6,opt,name=issuer,proto3" json:"issuer,omitempty"`
   194  	Secret               string            `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"`
   195  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   196  	XXX_unrecognized     []byte            `json:"-"`
   197  	XXX_sizecache        int32             `json:"-"`
   198  }
   199  
   200  func (m *Account) Reset()         { *m = Account{} }
   201  func (m *Account) String() string { return proto.CompactTextString(m) }
   202  func (*Account) ProtoMessage()    {}
   203  func (*Account) Descriptor() ([]byte, []int) {
   204  	return fileDescriptor_21300bfacc51fc2a, []int{3}
   205  }
   206  
   207  func (m *Account) XXX_Unmarshal(b []byte) error {
   208  	return xxx_messageInfo_Account.Unmarshal(m, b)
   209  }
   210  func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   211  	return xxx_messageInfo_Account.Marshal(b, m, deterministic)
   212  }
   213  func (m *Account) XXX_Merge(src proto.Message) {
   214  	xxx_messageInfo_Account.Merge(m, src)
   215  }
   216  func (m *Account) XXX_Size() int {
   217  	return xxx_messageInfo_Account.Size(m)
   218  }
   219  func (m *Account) XXX_DiscardUnknown() {
   220  	xxx_messageInfo_Account.DiscardUnknown(m)
   221  }
   222  
   223  var xxx_messageInfo_Account proto.InternalMessageInfo
   224  
   225  func (m *Account) GetId() string {
   226  	if m != nil {
   227  		return m.Id
   228  	}
   229  	return ""
   230  }
   231  
   232  func (m *Account) GetType() string {
   233  	if m != nil {
   234  		return m.Type
   235  	}
   236  	return ""
   237  }
   238  
   239  func (m *Account) GetMetadata() map[string]string {
   240  	if m != nil {
   241  		return m.Metadata
   242  	}
   243  	return nil
   244  }
   245  
   246  func (m *Account) GetScopes() []string {
   247  	if m != nil {
   248  		return m.Scopes
   249  	}
   250  	return nil
   251  }
   252  
   253  func (m *Account) GetIssuer() string {
   254  	if m != nil {
   255  		return m.Issuer
   256  	}
   257  	return ""
   258  }
   259  
   260  func (m *Account) GetSecret() string {
   261  	if m != nil {
   262  		return m.Secret
   263  	}
   264  	return ""
   265  }
   266  
   267  type Resource struct {
   268  	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   269  	Type                 string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
   270  	Endpoint             string   `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
   271  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   272  	XXX_unrecognized     []byte   `json:"-"`
   273  	XXX_sizecache        int32    `json:"-"`
   274  }
   275  
   276  func (m *Resource) Reset()         { *m = Resource{} }
   277  func (m *Resource) String() string { return proto.CompactTextString(m) }
   278  func (*Resource) ProtoMessage()    {}
   279  func (*Resource) Descriptor() ([]byte, []int) {
   280  	return fileDescriptor_21300bfacc51fc2a, []int{4}
   281  }
   282  
   283  func (m *Resource) XXX_Unmarshal(b []byte) error {
   284  	return xxx_messageInfo_Resource.Unmarshal(m, b)
   285  }
   286  func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   287  	return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
   288  }
   289  func (m *Resource) XXX_Merge(src proto.Message) {
   290  	xxx_messageInfo_Resource.Merge(m, src)
   291  }
   292  func (m *Resource) XXX_Size() int {
   293  	return xxx_messageInfo_Resource.Size(m)
   294  }
   295  func (m *Resource) XXX_DiscardUnknown() {
   296  	xxx_messageInfo_Resource.DiscardUnknown(m)
   297  }
   298  
   299  var xxx_messageInfo_Resource proto.InternalMessageInfo
   300  
   301  func (m *Resource) GetName() string {
   302  	if m != nil {
   303  		return m.Name
   304  	}
   305  	return ""
   306  }
   307  
   308  func (m *Resource) GetType() string {
   309  	if m != nil {
   310  		return m.Type
   311  	}
   312  	return ""
   313  }
   314  
   315  func (m *Resource) GetEndpoint() string {
   316  	if m != nil {
   317  		return m.Endpoint
   318  	}
   319  	return ""
   320  }
   321  
   322  type GenerateRequest struct {
   323  	Id                   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   324  	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"`
   325  	Scopes               []string          `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"`
   326  	Secret               string            `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
   327  	Type                 string            `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
   328  	Provider             string            `protobuf:"bytes,7,opt,name=provider,proto3" json:"provider,omitempty"`
   329  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   330  	XXX_unrecognized     []byte            `json:"-"`
   331  	XXX_sizecache        int32             `json:"-"`
   332  }
   333  
   334  func (m *GenerateRequest) Reset()         { *m = GenerateRequest{} }
   335  func (m *GenerateRequest) String() string { return proto.CompactTextString(m) }
   336  func (*GenerateRequest) ProtoMessage()    {}
   337  func (*GenerateRequest) Descriptor() ([]byte, []int) {
   338  	return fileDescriptor_21300bfacc51fc2a, []int{5}
   339  }
   340  
   341  func (m *GenerateRequest) XXX_Unmarshal(b []byte) error {
   342  	return xxx_messageInfo_GenerateRequest.Unmarshal(m, b)
   343  }
   344  func (m *GenerateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   345  	return xxx_messageInfo_GenerateRequest.Marshal(b, m, deterministic)
   346  }
   347  func (m *GenerateRequest) XXX_Merge(src proto.Message) {
   348  	xxx_messageInfo_GenerateRequest.Merge(m, src)
   349  }
   350  func (m *GenerateRequest) XXX_Size() int {
   351  	return xxx_messageInfo_GenerateRequest.Size(m)
   352  }
   353  func (m *GenerateRequest) XXX_DiscardUnknown() {
   354  	xxx_messageInfo_GenerateRequest.DiscardUnknown(m)
   355  }
   356  
   357  var xxx_messageInfo_GenerateRequest proto.InternalMessageInfo
   358  
   359  func (m *GenerateRequest) GetId() string {
   360  	if m != nil {
   361  		return m.Id
   362  	}
   363  	return ""
   364  }
   365  
   366  func (m *GenerateRequest) GetMetadata() map[string]string {
   367  	if m != nil {
   368  		return m.Metadata
   369  	}
   370  	return nil
   371  }
   372  
   373  func (m *GenerateRequest) GetScopes() []string {
   374  	if m != nil {
   375  		return m.Scopes
   376  	}
   377  	return nil
   378  }
   379  
   380  func (m *GenerateRequest) GetSecret() string {
   381  	if m != nil {
   382  		return m.Secret
   383  	}
   384  	return ""
   385  }
   386  
   387  func (m *GenerateRequest) GetType() string {
   388  	if m != nil {
   389  		return m.Type
   390  	}
   391  	return ""
   392  }
   393  
   394  func (m *GenerateRequest) GetProvider() string {
   395  	if m != nil {
   396  		return m.Provider
   397  	}
   398  	return ""
   399  }
   400  
   401  type GenerateResponse struct {
   402  	Account              *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
   403  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   404  	XXX_unrecognized     []byte   `json:"-"`
   405  	XXX_sizecache        int32    `json:"-"`
   406  }
   407  
   408  func (m *GenerateResponse) Reset()         { *m = GenerateResponse{} }
   409  func (m *GenerateResponse) String() string { return proto.CompactTextString(m) }
   410  func (*GenerateResponse) ProtoMessage()    {}
   411  func (*GenerateResponse) Descriptor() ([]byte, []int) {
   412  	return fileDescriptor_21300bfacc51fc2a, []int{6}
   413  }
   414  
   415  func (m *GenerateResponse) XXX_Unmarshal(b []byte) error {
   416  	return xxx_messageInfo_GenerateResponse.Unmarshal(m, b)
   417  }
   418  func (m *GenerateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   419  	return xxx_messageInfo_GenerateResponse.Marshal(b, m, deterministic)
   420  }
   421  func (m *GenerateResponse) XXX_Merge(src proto.Message) {
   422  	xxx_messageInfo_GenerateResponse.Merge(m, src)
   423  }
   424  func (m *GenerateResponse) XXX_Size() int {
   425  	return xxx_messageInfo_GenerateResponse.Size(m)
   426  }
   427  func (m *GenerateResponse) XXX_DiscardUnknown() {
   428  	xxx_messageInfo_GenerateResponse.DiscardUnknown(m)
   429  }
   430  
   431  var xxx_messageInfo_GenerateResponse proto.InternalMessageInfo
   432  
   433  func (m *GenerateResponse) GetAccount() *Account {
   434  	if m != nil {
   435  		return m.Account
   436  	}
   437  	return nil
   438  }
   439  
   440  type GrantRequest struct {
   441  	Scope                string    `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
   442  	Resource             *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
   443  	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
   444  	XXX_unrecognized     []byte    `json:"-"`
   445  	XXX_sizecache        int32     `json:"-"`
   446  }
   447  
   448  func (m *GrantRequest) Reset()         { *m = GrantRequest{} }
   449  func (m *GrantRequest) String() string { return proto.CompactTextString(m) }
   450  func (*GrantRequest) ProtoMessage()    {}
   451  func (*GrantRequest) Descriptor() ([]byte, []int) {
   452  	return fileDescriptor_21300bfacc51fc2a, []int{7}
   453  }
   454  
   455  func (m *GrantRequest) XXX_Unmarshal(b []byte) error {
   456  	return xxx_messageInfo_GrantRequest.Unmarshal(m, b)
   457  }
   458  func (m *GrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   459  	return xxx_messageInfo_GrantRequest.Marshal(b, m, deterministic)
   460  }
   461  func (m *GrantRequest) XXX_Merge(src proto.Message) {
   462  	xxx_messageInfo_GrantRequest.Merge(m, src)
   463  }
   464  func (m *GrantRequest) XXX_Size() int {
   465  	return xxx_messageInfo_GrantRequest.Size(m)
   466  }
   467  func (m *GrantRequest) XXX_DiscardUnknown() {
   468  	xxx_messageInfo_GrantRequest.DiscardUnknown(m)
   469  }
   470  
   471  var xxx_messageInfo_GrantRequest proto.InternalMessageInfo
   472  
   473  func (m *GrantRequest) GetScope() string {
   474  	if m != nil {
   475  		return m.Scope
   476  	}
   477  	return ""
   478  }
   479  
   480  func (m *GrantRequest) GetResource() *Resource {
   481  	if m != nil {
   482  		return m.Resource
   483  	}
   484  	return nil
   485  }
   486  
   487  type GrantResponse struct {
   488  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   489  	XXX_unrecognized     []byte   `json:"-"`
   490  	XXX_sizecache        int32    `json:"-"`
   491  }
   492  
   493  func (m *GrantResponse) Reset()         { *m = GrantResponse{} }
   494  func (m *GrantResponse) String() string { return proto.CompactTextString(m) }
   495  func (*GrantResponse) ProtoMessage()    {}
   496  func (*GrantResponse) Descriptor() ([]byte, []int) {
   497  	return fileDescriptor_21300bfacc51fc2a, []int{8}
   498  }
   499  
   500  func (m *GrantResponse) XXX_Unmarshal(b []byte) error {
   501  	return xxx_messageInfo_GrantResponse.Unmarshal(m, b)
   502  }
   503  func (m *GrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   504  	return xxx_messageInfo_GrantResponse.Marshal(b, m, deterministic)
   505  }
   506  func (m *GrantResponse) XXX_Merge(src proto.Message) {
   507  	xxx_messageInfo_GrantResponse.Merge(m, src)
   508  }
   509  func (m *GrantResponse) XXX_Size() int {
   510  	return xxx_messageInfo_GrantResponse.Size(m)
   511  }
   512  func (m *GrantResponse) XXX_DiscardUnknown() {
   513  	xxx_messageInfo_GrantResponse.DiscardUnknown(m)
   514  }
   515  
   516  var xxx_messageInfo_GrantResponse proto.InternalMessageInfo
   517  
   518  type RevokeRequest struct {
   519  	Scope                string    `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
   520  	Resource             *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
   521  	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
   522  	XXX_unrecognized     []byte    `json:"-"`
   523  	XXX_sizecache        int32     `json:"-"`
   524  }
   525  
   526  func (m *RevokeRequest) Reset()         { *m = RevokeRequest{} }
   527  func (m *RevokeRequest) String() string { return proto.CompactTextString(m) }
   528  func (*RevokeRequest) ProtoMessage()    {}
   529  func (*RevokeRequest) Descriptor() ([]byte, []int) {
   530  	return fileDescriptor_21300bfacc51fc2a, []int{9}
   531  }
   532  
   533  func (m *RevokeRequest) XXX_Unmarshal(b []byte) error {
   534  	return xxx_messageInfo_RevokeRequest.Unmarshal(m, b)
   535  }
   536  func (m *RevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   537  	return xxx_messageInfo_RevokeRequest.Marshal(b, m, deterministic)
   538  }
   539  func (m *RevokeRequest) XXX_Merge(src proto.Message) {
   540  	xxx_messageInfo_RevokeRequest.Merge(m, src)
   541  }
   542  func (m *RevokeRequest) XXX_Size() int {
   543  	return xxx_messageInfo_RevokeRequest.Size(m)
   544  }
   545  func (m *RevokeRequest) XXX_DiscardUnknown() {
   546  	xxx_messageInfo_RevokeRequest.DiscardUnknown(m)
   547  }
   548  
   549  var xxx_messageInfo_RevokeRequest proto.InternalMessageInfo
   550  
   551  func (m *RevokeRequest) GetScope() string {
   552  	if m != nil {
   553  		return m.Scope
   554  	}
   555  	return ""
   556  }
   557  
   558  func (m *RevokeRequest) GetResource() *Resource {
   559  	if m != nil {
   560  		return m.Resource
   561  	}
   562  	return nil
   563  }
   564  
   565  type RevokeResponse struct {
   566  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   567  	XXX_unrecognized     []byte   `json:"-"`
   568  	XXX_sizecache        int32    `json:"-"`
   569  }
   570  
   571  func (m *RevokeResponse) Reset()         { *m = RevokeResponse{} }
   572  func (m *RevokeResponse) String() string { return proto.CompactTextString(m) }
   573  func (*RevokeResponse) ProtoMessage()    {}
   574  func (*RevokeResponse) Descriptor() ([]byte, []int) {
   575  	return fileDescriptor_21300bfacc51fc2a, []int{10}
   576  }
   577  
   578  func (m *RevokeResponse) XXX_Unmarshal(b []byte) error {
   579  	return xxx_messageInfo_RevokeResponse.Unmarshal(m, b)
   580  }
   581  func (m *RevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   582  	return xxx_messageInfo_RevokeResponse.Marshal(b, m, deterministic)
   583  }
   584  func (m *RevokeResponse) XXX_Merge(src proto.Message) {
   585  	xxx_messageInfo_RevokeResponse.Merge(m, src)
   586  }
   587  func (m *RevokeResponse) XXX_Size() int {
   588  	return xxx_messageInfo_RevokeResponse.Size(m)
   589  }
   590  func (m *RevokeResponse) XXX_DiscardUnknown() {
   591  	xxx_messageInfo_RevokeResponse.DiscardUnknown(m)
   592  }
   593  
   594  var xxx_messageInfo_RevokeResponse proto.InternalMessageInfo
   595  
   596  type InspectRequest struct {
   597  	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
   598  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   599  	XXX_unrecognized     []byte   `json:"-"`
   600  	XXX_sizecache        int32    `json:"-"`
   601  }
   602  
   603  func (m *InspectRequest) Reset()         { *m = InspectRequest{} }
   604  func (m *InspectRequest) String() string { return proto.CompactTextString(m) }
   605  func (*InspectRequest) ProtoMessage()    {}
   606  func (*InspectRequest) Descriptor() ([]byte, []int) {
   607  	return fileDescriptor_21300bfacc51fc2a, []int{11}
   608  }
   609  
   610  func (m *InspectRequest) XXX_Unmarshal(b []byte) error {
   611  	return xxx_messageInfo_InspectRequest.Unmarshal(m, b)
   612  }
   613  func (m *InspectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   614  	return xxx_messageInfo_InspectRequest.Marshal(b, m, deterministic)
   615  }
   616  func (m *InspectRequest) XXX_Merge(src proto.Message) {
   617  	xxx_messageInfo_InspectRequest.Merge(m, src)
   618  }
   619  func (m *InspectRequest) XXX_Size() int {
   620  	return xxx_messageInfo_InspectRequest.Size(m)
   621  }
   622  func (m *InspectRequest) XXX_DiscardUnknown() {
   623  	xxx_messageInfo_InspectRequest.DiscardUnknown(m)
   624  }
   625  
   626  var xxx_messageInfo_InspectRequest proto.InternalMessageInfo
   627  
   628  func (m *InspectRequest) GetToken() string {
   629  	if m != nil {
   630  		return m.Token
   631  	}
   632  	return ""
   633  }
   634  
   635  type InspectResponse struct {
   636  	Account              *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
   637  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   638  	XXX_unrecognized     []byte   `json:"-"`
   639  	XXX_sizecache        int32    `json:"-"`
   640  }
   641  
   642  func (m *InspectResponse) Reset()         { *m = InspectResponse{} }
   643  func (m *InspectResponse) String() string { return proto.CompactTextString(m) }
   644  func (*InspectResponse) ProtoMessage()    {}
   645  func (*InspectResponse) Descriptor() ([]byte, []int) {
   646  	return fileDescriptor_21300bfacc51fc2a, []int{12}
   647  }
   648  
   649  func (m *InspectResponse) XXX_Unmarshal(b []byte) error {
   650  	return xxx_messageInfo_InspectResponse.Unmarshal(m, b)
   651  }
   652  func (m *InspectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   653  	return xxx_messageInfo_InspectResponse.Marshal(b, m, deterministic)
   654  }
   655  func (m *InspectResponse) XXX_Merge(src proto.Message) {
   656  	xxx_messageInfo_InspectResponse.Merge(m, src)
   657  }
   658  func (m *InspectResponse) XXX_Size() int {
   659  	return xxx_messageInfo_InspectResponse.Size(m)
   660  }
   661  func (m *InspectResponse) XXX_DiscardUnknown() {
   662  	xxx_messageInfo_InspectResponse.DiscardUnknown(m)
   663  }
   664  
   665  var xxx_messageInfo_InspectResponse proto.InternalMessageInfo
   666  
   667  func (m *InspectResponse) GetAccount() *Account {
   668  	if m != nil {
   669  		return m.Account
   670  	}
   671  	return nil
   672  }
   673  
   674  type TokenRequest struct {
   675  	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   676  	Secret               string   `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
   677  	RefreshToken         string   `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
   678  	TokenExpiry          int64    `protobuf:"varint,4,opt,name=token_expiry,json=tokenExpiry,proto3" json:"token_expiry,omitempty"`
   679  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   680  	XXX_unrecognized     []byte   `json:"-"`
   681  	XXX_sizecache        int32    `json:"-"`
   682  }
   683  
   684  func (m *TokenRequest) Reset()         { *m = TokenRequest{} }
   685  func (m *TokenRequest) String() string { return proto.CompactTextString(m) }
   686  func (*TokenRequest) ProtoMessage()    {}
   687  func (*TokenRequest) Descriptor() ([]byte, []int) {
   688  	return fileDescriptor_21300bfacc51fc2a, []int{13}
   689  }
   690  
   691  func (m *TokenRequest) XXX_Unmarshal(b []byte) error {
   692  	return xxx_messageInfo_TokenRequest.Unmarshal(m, b)
   693  }
   694  func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   695  	return xxx_messageInfo_TokenRequest.Marshal(b, m, deterministic)
   696  }
   697  func (m *TokenRequest) XXX_Merge(src proto.Message) {
   698  	xxx_messageInfo_TokenRequest.Merge(m, src)
   699  }
   700  func (m *TokenRequest) XXX_Size() int {
   701  	return xxx_messageInfo_TokenRequest.Size(m)
   702  }
   703  func (m *TokenRequest) XXX_DiscardUnknown() {
   704  	xxx_messageInfo_TokenRequest.DiscardUnknown(m)
   705  }
   706  
   707  var xxx_messageInfo_TokenRequest proto.InternalMessageInfo
   708  
   709  func (m *TokenRequest) GetId() string {
   710  	if m != nil {
   711  		return m.Id
   712  	}
   713  	return ""
   714  }
   715  
   716  func (m *TokenRequest) GetSecret() string {
   717  	if m != nil {
   718  		return m.Secret
   719  	}
   720  	return ""
   721  }
   722  
   723  func (m *TokenRequest) GetRefreshToken() string {
   724  	if m != nil {
   725  		return m.RefreshToken
   726  	}
   727  	return ""
   728  }
   729  
   730  func (m *TokenRequest) GetTokenExpiry() int64 {
   731  	if m != nil {
   732  		return m.TokenExpiry
   733  	}
   734  	return 0
   735  }
   736  
   737  type TokenResponse struct {
   738  	Token                *Token   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
   739  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   740  	XXX_unrecognized     []byte   `json:"-"`
   741  	XXX_sizecache        int32    `json:"-"`
   742  }
   743  
   744  func (m *TokenResponse) Reset()         { *m = TokenResponse{} }
   745  func (m *TokenResponse) String() string { return proto.CompactTextString(m) }
   746  func (*TokenResponse) ProtoMessage()    {}
   747  func (*TokenResponse) Descriptor() ([]byte, []int) {
   748  	return fileDescriptor_21300bfacc51fc2a, []int{14}
   749  }
   750  
   751  func (m *TokenResponse) XXX_Unmarshal(b []byte) error {
   752  	return xxx_messageInfo_TokenResponse.Unmarshal(m, b)
   753  }
   754  func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   755  	return xxx_messageInfo_TokenResponse.Marshal(b, m, deterministic)
   756  }
   757  func (m *TokenResponse) XXX_Merge(src proto.Message) {
   758  	xxx_messageInfo_TokenResponse.Merge(m, src)
   759  }
   760  func (m *TokenResponse) XXX_Size() int {
   761  	return xxx_messageInfo_TokenResponse.Size(m)
   762  }
   763  func (m *TokenResponse) XXX_DiscardUnknown() {
   764  	xxx_messageInfo_TokenResponse.DiscardUnknown(m)
   765  }
   766  
   767  var xxx_messageInfo_TokenResponse proto.InternalMessageInfo
   768  
   769  func (m *TokenResponse) GetToken() *Token {
   770  	if m != nil {
   771  		return m.Token
   772  	}
   773  	return nil
   774  }
   775  
   776  type Rule struct {
   777  	Id                   string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   778  	Scope                string    `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
   779  	Resource             *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
   780  	Access               Access    `protobuf:"varint,4,opt,name=access,proto3,enum=go.micro.auth.Access" json:"access,omitempty"`
   781  	Priority             int32     `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"`
   782  	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
   783  	XXX_unrecognized     []byte    `json:"-"`
   784  	XXX_sizecache        int32     `json:"-"`
   785  }
   786  
   787  func (m *Rule) Reset()         { *m = Rule{} }
   788  func (m *Rule) String() string { return proto.CompactTextString(m) }
   789  func (*Rule) ProtoMessage()    {}
   790  func (*Rule) Descriptor() ([]byte, []int) {
   791  	return fileDescriptor_21300bfacc51fc2a, []int{15}
   792  }
   793  
   794  func (m *Rule) XXX_Unmarshal(b []byte) error {
   795  	return xxx_messageInfo_Rule.Unmarshal(m, b)
   796  }
   797  func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   798  	return xxx_messageInfo_Rule.Marshal(b, m, deterministic)
   799  }
   800  func (m *Rule) XXX_Merge(src proto.Message) {
   801  	xxx_messageInfo_Rule.Merge(m, src)
   802  }
   803  func (m *Rule) XXX_Size() int {
   804  	return xxx_messageInfo_Rule.Size(m)
   805  }
   806  func (m *Rule) XXX_DiscardUnknown() {
   807  	xxx_messageInfo_Rule.DiscardUnknown(m)
   808  }
   809  
   810  var xxx_messageInfo_Rule proto.InternalMessageInfo
   811  
   812  func (m *Rule) GetId() string {
   813  	if m != nil {
   814  		return m.Id
   815  	}
   816  	return ""
   817  }
   818  
   819  func (m *Rule) GetScope() string {
   820  	if m != nil {
   821  		return m.Scope
   822  	}
   823  	return ""
   824  }
   825  
   826  func (m *Rule) GetResource() *Resource {
   827  	if m != nil {
   828  		return m.Resource
   829  	}
   830  	return nil
   831  }
   832  
   833  func (m *Rule) GetAccess() Access {
   834  	if m != nil {
   835  		return m.Access
   836  	}
   837  	return Access_UNKNOWN
   838  }
   839  
   840  func (m *Rule) GetPriority() int32 {
   841  	if m != nil {
   842  		return m.Priority
   843  	}
   844  	return 0
   845  }
   846  
   847  type CreateRequest struct {
   848  	Rule                 *Rule    `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
   849  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   850  	XXX_unrecognized     []byte   `json:"-"`
   851  	XXX_sizecache        int32    `json:"-"`
   852  }
   853  
   854  func (m *CreateRequest) Reset()         { *m = CreateRequest{} }
   855  func (m *CreateRequest) String() string { return proto.CompactTextString(m) }
   856  func (*CreateRequest) ProtoMessage()    {}
   857  func (*CreateRequest) Descriptor() ([]byte, []int) {
   858  	return fileDescriptor_21300bfacc51fc2a, []int{16}
   859  }
   860  
   861  func (m *CreateRequest) XXX_Unmarshal(b []byte) error {
   862  	return xxx_messageInfo_CreateRequest.Unmarshal(m, b)
   863  }
   864  func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   865  	return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic)
   866  }
   867  func (m *CreateRequest) XXX_Merge(src proto.Message) {
   868  	xxx_messageInfo_CreateRequest.Merge(m, src)
   869  }
   870  func (m *CreateRequest) XXX_Size() int {
   871  	return xxx_messageInfo_CreateRequest.Size(m)
   872  }
   873  func (m *CreateRequest) XXX_DiscardUnknown() {
   874  	xxx_messageInfo_CreateRequest.DiscardUnknown(m)
   875  }
   876  
   877  var xxx_messageInfo_CreateRequest proto.InternalMessageInfo
   878  
   879  func (m *CreateRequest) GetRule() *Rule {
   880  	if m != nil {
   881  		return m.Rule
   882  	}
   883  	return nil
   884  }
   885  
   886  type CreateResponse struct {
   887  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   888  	XXX_unrecognized     []byte   `json:"-"`
   889  	XXX_sizecache        int32    `json:"-"`
   890  }
   891  
   892  func (m *CreateResponse) Reset()         { *m = CreateResponse{} }
   893  func (m *CreateResponse) String() string { return proto.CompactTextString(m) }
   894  func (*CreateResponse) ProtoMessage()    {}
   895  func (*CreateResponse) Descriptor() ([]byte, []int) {
   896  	return fileDescriptor_21300bfacc51fc2a, []int{17}
   897  }
   898  
   899  func (m *CreateResponse) XXX_Unmarshal(b []byte) error {
   900  	return xxx_messageInfo_CreateResponse.Unmarshal(m, b)
   901  }
   902  func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   903  	return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic)
   904  }
   905  func (m *CreateResponse) XXX_Merge(src proto.Message) {
   906  	xxx_messageInfo_CreateResponse.Merge(m, src)
   907  }
   908  func (m *CreateResponse) XXX_Size() int {
   909  	return xxx_messageInfo_CreateResponse.Size(m)
   910  }
   911  func (m *CreateResponse) XXX_DiscardUnknown() {
   912  	xxx_messageInfo_CreateResponse.DiscardUnknown(m)
   913  }
   914  
   915  var xxx_messageInfo_CreateResponse proto.InternalMessageInfo
   916  
   917  type DeleteRequest struct {
   918  	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   919  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   920  	XXX_unrecognized     []byte   `json:"-"`
   921  	XXX_sizecache        int32    `json:"-"`
   922  }
   923  
   924  func (m *DeleteRequest) Reset()         { *m = DeleteRequest{} }
   925  func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
   926  func (*DeleteRequest) ProtoMessage()    {}
   927  func (*DeleteRequest) Descriptor() ([]byte, []int) {
   928  	return fileDescriptor_21300bfacc51fc2a, []int{18}
   929  }
   930  
   931  func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
   932  	return xxx_messageInfo_DeleteRequest.Unmarshal(m, b)
   933  }
   934  func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   935  	return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic)
   936  }
   937  func (m *DeleteRequest) XXX_Merge(src proto.Message) {
   938  	xxx_messageInfo_DeleteRequest.Merge(m, src)
   939  }
   940  func (m *DeleteRequest) XXX_Size() int {
   941  	return xxx_messageInfo_DeleteRequest.Size(m)
   942  }
   943  func (m *DeleteRequest) XXX_DiscardUnknown() {
   944  	xxx_messageInfo_DeleteRequest.DiscardUnknown(m)
   945  }
   946  
   947  var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
   948  
   949  func (m *DeleteRequest) GetId() string {
   950  	if m != nil {
   951  		return m.Id
   952  	}
   953  	return ""
   954  }
   955  
   956  type DeleteResponse struct {
   957  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   958  	XXX_unrecognized     []byte   `json:"-"`
   959  	XXX_sizecache        int32    `json:"-"`
   960  }
   961  
   962  func (m *DeleteResponse) Reset()         { *m = DeleteResponse{} }
   963  func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
   964  func (*DeleteResponse) ProtoMessage()    {}
   965  func (*DeleteResponse) Descriptor() ([]byte, []int) {
   966  	return fileDescriptor_21300bfacc51fc2a, []int{19}
   967  }
   968  
   969  func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
   970  	return xxx_messageInfo_DeleteResponse.Unmarshal(m, b)
   971  }
   972  func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   973  	return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic)
   974  }
   975  func (m *DeleteResponse) XXX_Merge(src proto.Message) {
   976  	xxx_messageInfo_DeleteResponse.Merge(m, src)
   977  }
   978  func (m *DeleteResponse) XXX_Size() int {
   979  	return xxx_messageInfo_DeleteResponse.Size(m)
   980  }
   981  func (m *DeleteResponse) XXX_DiscardUnknown() {
   982  	xxx_messageInfo_DeleteResponse.DiscardUnknown(m)
   983  }
   984  
   985  var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
   986  
   987  type ListRequest struct {
   988  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   989  	XXX_unrecognized     []byte   `json:"-"`
   990  	XXX_sizecache        int32    `json:"-"`
   991  }
   992  
   993  func (m *ListRequest) Reset()         { *m = ListRequest{} }
   994  func (m *ListRequest) String() string { return proto.CompactTextString(m) }
   995  func (*ListRequest) ProtoMessage()    {}
   996  func (*ListRequest) Descriptor() ([]byte, []int) {
   997  	return fileDescriptor_21300bfacc51fc2a, []int{20}
   998  }
   999  
  1000  func (m *ListRequest) XXX_Unmarshal(b []byte) error {
  1001  	return xxx_messageInfo_ListRequest.Unmarshal(m, b)
  1002  }
  1003  func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1004  	return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic)
  1005  }
  1006  func (m *ListRequest) XXX_Merge(src proto.Message) {
  1007  	xxx_messageInfo_ListRequest.Merge(m, src)
  1008  }
  1009  func (m *ListRequest) XXX_Size() int {
  1010  	return xxx_messageInfo_ListRequest.Size(m)
  1011  }
  1012  func (m *ListRequest) XXX_DiscardUnknown() {
  1013  	xxx_messageInfo_ListRequest.DiscardUnknown(m)
  1014  }
  1015  
  1016  var xxx_messageInfo_ListRequest proto.InternalMessageInfo
  1017  
  1018  type ListResponse struct {
  1019  	Rules                []*Rule  `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
  1020  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1021  	XXX_unrecognized     []byte   `json:"-"`
  1022  	XXX_sizecache        int32    `json:"-"`
  1023  }
  1024  
  1025  func (m *ListResponse) Reset()         { *m = ListResponse{} }
  1026  func (m *ListResponse) String() string { return proto.CompactTextString(m) }
  1027  func (*ListResponse) ProtoMessage()    {}
  1028  func (*ListResponse) Descriptor() ([]byte, []int) {
  1029  	return fileDescriptor_21300bfacc51fc2a, []int{21}
  1030  }
  1031  
  1032  func (m *ListResponse) XXX_Unmarshal(b []byte) error {
  1033  	return xxx_messageInfo_ListResponse.Unmarshal(m, b)
  1034  }
  1035  func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1036  	return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic)
  1037  }
  1038  func (m *ListResponse) XXX_Merge(src proto.Message) {
  1039  	xxx_messageInfo_ListResponse.Merge(m, src)
  1040  }
  1041  func (m *ListResponse) XXX_Size() int {
  1042  	return xxx_messageInfo_ListResponse.Size(m)
  1043  }
  1044  func (m *ListResponse) XXX_DiscardUnknown() {
  1045  	xxx_messageInfo_ListResponse.DiscardUnknown(m)
  1046  }
  1047  
  1048  var xxx_messageInfo_ListResponse proto.InternalMessageInfo
  1049  
  1050  func (m *ListResponse) GetRules() []*Rule {
  1051  	if m != nil {
  1052  		return m.Rules
  1053  	}
  1054  	return nil
  1055  }
  1056  
  1057  func init() {
  1058  	proto.RegisterEnum("go.micro.auth.Access", Access_name, Access_value)
  1059  	proto.RegisterType((*ListAccountsRequest)(nil), "go.micro.auth.ListAccountsRequest")
  1060  	proto.RegisterType((*ListAccountsResponse)(nil), "go.micro.auth.ListAccountsResponse")
  1061  	proto.RegisterType((*Token)(nil), "go.micro.auth.Token")
  1062  	proto.RegisterType((*Account)(nil), "go.micro.auth.Account")
  1063  	proto.RegisterMapType((map[string]string)(nil), "go.micro.auth.Account.MetadataEntry")
  1064  	proto.RegisterType((*Resource)(nil), "go.micro.auth.Resource")
  1065  	proto.RegisterType((*GenerateRequest)(nil), "go.micro.auth.GenerateRequest")
  1066  	proto.RegisterMapType((map[string]string)(nil), "go.micro.auth.GenerateRequest.MetadataEntry")
  1067  	proto.RegisterType((*GenerateResponse)(nil), "go.micro.auth.GenerateResponse")
  1068  	proto.RegisterType((*GrantRequest)(nil), "go.micro.auth.GrantRequest")
  1069  	proto.RegisterType((*GrantResponse)(nil), "go.micro.auth.GrantResponse")
  1070  	proto.RegisterType((*RevokeRequest)(nil), "go.micro.auth.RevokeRequest")
  1071  	proto.RegisterType((*RevokeResponse)(nil), "go.micro.auth.RevokeResponse")
  1072  	proto.RegisterType((*InspectRequest)(nil), "go.micro.auth.InspectRequest")
  1073  	proto.RegisterType((*InspectResponse)(nil), "go.micro.auth.InspectResponse")
  1074  	proto.RegisterType((*TokenRequest)(nil), "go.micro.auth.TokenRequest")
  1075  	proto.RegisterType((*TokenResponse)(nil), "go.micro.auth.TokenResponse")
  1076  	proto.RegisterType((*Rule)(nil), "go.micro.auth.Rule")
  1077  	proto.RegisterType((*CreateRequest)(nil), "go.micro.auth.CreateRequest")
  1078  	proto.RegisterType((*CreateResponse)(nil), "go.micro.auth.CreateResponse")
  1079  	proto.RegisterType((*DeleteRequest)(nil), "go.micro.auth.DeleteRequest")
  1080  	proto.RegisterType((*DeleteResponse)(nil), "go.micro.auth.DeleteResponse")
  1081  	proto.RegisterType((*ListRequest)(nil), "go.micro.auth.ListRequest")
  1082  	proto.RegisterType((*ListResponse)(nil), "go.micro.auth.ListResponse")
  1083  }
  1084  
  1085  func init() { proto.RegisterFile("auth/service/proto/auth.proto", fileDescriptor_21300bfacc51fc2a) }
  1086  
  1087  var fileDescriptor_21300bfacc51fc2a = []byte{
  1088  	// 872 bytes of a gzipped FileDescriptorProto
  1089  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x51, 0x8f, 0xdb, 0x44,
  1090  	0x10, 0x3e, 0x27, 0xb1, 0x93, 0x9b, 0xc4, 0x77, 0xd1, 0xf6, 0x5a, 0xac, 0x94, 0x6b, 0xaf, 0x2e,
  1091  	0x82, 0xa3, 0x82, 0x1c, 0x4a, 0x5f, 0x0a, 0x7d, 0xe1, 0xd4, 0x44, 0xa1, 0x85, 0x06, 0x61, 0x15,
  1092  	0x21, 0x90, 0x50, 0x65, 0x9c, 0x81, 0xb3, 0x2e, 0x67, 0x9b, 0xdd, 0xf5, 0x89, 0xbc, 0x20, 0xf1,
  1093  	0xc6, 0x8f, 0xe1, 0x27, 0xf1, 0xce, 0x1f, 0xe0, 0x07, 0x20, 0xef, 0xce, 0xba, 0xb1, 0xe3, 0x54,
  1094  	0x15, 0x88, 0x37, 0xcf, 0xec, 0xb7, 0xb3, 0xf3, 0x7d, 0x3b, 0x33, 0x6b, 0x38, 0x0e, 0x73, 0x79,
  1095  	0x71, 0x26, 0x90, 0x5f, 0xc7, 0x11, 0x9e, 0x65, 0x3c, 0x95, 0xe9, 0x59, 0xe1, 0x1a, 0xab, 0x4f,
  1096  	0xe6, 0xfe, 0x94, 0x8e, 0xaf, 0xe2, 0x88, 0xa7, 0xe3, 0xc2, 0xe9, 0xdf, 0x84, 0x1b, 0x5f, 0xc4,
  1097  	0x42, 0x9e, 0x47, 0x51, 0x9a, 0x27, 0x52, 0x04, 0xf8, 0x73, 0x8e, 0x42, 0xfa, 0xcf, 0xe0, 0xa8,
  1098  	0xea, 0x16, 0x59, 0x9a, 0x08, 0x64, 0x13, 0xe8, 0x85, 0xe4, 0xf3, 0xac, 0x93, 0xf6, 0x69, 0x7f,
  1099  	0x72, 0x6b, 0x5c, 0x09, 0x38, 0xa6, 0x2d, 0x41, 0x89, 0xf3, 0x7f, 0xb3, 0xc0, 0x7e, 0x91, 0x5e,
  1100  	0x62, 0xc2, 0xee, 0xc1, 0x20, 0x8c, 0x22, 0x14, 0xe2, 0xa5, 0x2c, 0x6c, 0xcf, 0x3a, 0xb1, 0x4e,
  1101  	0xf7, 0x83, 0xbe, 0xf6, 0x69, 0xc8, 0x7d, 0x70, 0x39, 0xfe, 0xc8, 0x51, 0x5c, 0x10, 0xa6, 0xa5,
  1102  	0x30, 0x03, 0x72, 0x6a, 0x90, 0x07, 0xdd, 0x88, 0x63, 0x28, 0x71, 0xe9, 0xb5, 0x4f, 0xac, 0xd3,
  1103  	0x76, 0x60, 0x4c, 0x76, 0x0b, 0x1c, 0xfc, 0x25, 0x8b, 0xf9, 0xda, 0xeb, 0xa8, 0x05, 0xb2, 0xfc,
  1104  	0xbf, 0x2d, 0xe8, 0x52, 0x66, 0xec, 0x00, 0x5a, 0xf1, 0x92, 0xce, 0x6e, 0xc5, 0x4b, 0xc6, 0xa0,
  1105  	0x23, 0xd7, 0x19, 0xd2, 0x49, 0xea, 0x9b, 0x7d, 0x0a, 0xbd, 0x2b, 0x94, 0xe1, 0x32, 0x94, 0xa1,
  1106  	0xd7, 0x51, 0x3c, 0xdf, 0x69, 0xe6, 0x39, 0x7e, 0x4e, 0xb0, 0x59, 0x22, 0xf9, 0x3a, 0x28, 0x77,
  1107  	0x15, 0x99, 0x88, 0x28, 0xcd, 0x50, 0x78, 0xf6, 0x49, 0xfb, 0x74, 0x3f, 0x20, 0xab, 0xf0, 0xc7,
  1108  	0x42, 0xe4, 0xc8, 0x3d, 0x47, 0x9d, 0x47, 0x96, 0xc2, 0x63, 0xc4, 0x51, 0x7a, 0x5d, 0xed, 0xd7,
  1109  	0xd6, 0xe8, 0x31, 0xb8, 0x95, 0x23, 0xd8, 0x10, 0xda, 0x97, 0xb8, 0xa6, 0xfc, 0x8b, 0x4f, 0x76,
  1110  	0x04, 0xf6, 0x75, 0xb8, 0xca, 0x0d, 0x03, 0x6d, 0x7c, 0xd2, 0x7a, 0x64, 0xf9, 0x0b, 0xe8, 0x05,
  1111  	0x28, 0xd2, 0x9c, 0x47, 0x58, 0xd0, 0x4c, 0xc2, 0x2b, 0xa4, 0x8d, 0xea, 0xbb, 0x91, 0xfa, 0x08,
  1112  	0x7a, 0x98, 0x2c, 0xb3, 0x34, 0x4e, 0xa4, 0x52, 0x77, 0x3f, 0x28, 0x6d, 0xff, 0xf7, 0x16, 0x1c,
  1113  	0xce, 0x31, 0x41, 0x1e, 0x4a, 0xa4, 0x52, 0xd9, 0x92, 0xf3, 0xb3, 0x0d, 0xe9, 0xda, 0x4a, 0xba,
  1114  	0x0f, 0x6a, 0xd2, 0xd5, 0x22, 0xbc, 0x81, 0x84, 0x9d, 0xba, 0x84, 0x24, 0x95, 0xbd, 0x29, 0x55,
  1115  	0xc9, 0xc6, 0xa9, 0xb2, 0xc9, 0x78, 0x7a, 0x1d, 0x2f, 0x91, 0x93, 0xb0, 0xa5, 0xfd, 0xdf, 0xa4,
  1116  	0x9d, 0xc2, 0xf0, 0x15, 0x0f, 0xea, 0x8e, 0x8f, 0xa0, 0x4b, 0x55, 0xaf, 0x62, 0xec, 0x6e, 0x0e,
  1117  	0x03, 0xf3, 0xbf, 0x85, 0xc1, 0x9c, 0x87, 0x89, 0x34, 0x62, 0x1e, 0x81, 0xad, 0x48, 0x52, 0x0e,
  1118  	0xda, 0x60, 0x0f, 0xa1, 0xc7, 0xe9, 0x1a, 0x55, 0x22, 0xfd, 0xc9, 0x5b, 0xb5, 0xc0, 0xe6, 0x96,
  1119  	0x83, 0x12, 0xe8, 0x1f, 0x82, 0x4b, 0xa1, 0x75, 0x76, 0xfe, 0x77, 0xe0, 0x06, 0x78, 0x9d, 0x5e,
  1120  	0xe2, 0xff, 0x70, 0xd8, 0x10, 0x0e, 0x4c, 0x6c, 0x3a, 0xed, 0x5d, 0x38, 0x78, 0x9a, 0x88, 0x0c,
  1121  	0xa3, 0x4d, 0x6e, 0x9b, 0x6d, 0xaf, 0x0d, 0xff, 0x09, 0x1c, 0x96, 0xb8, 0x7f, 0x2d, 0xe3, 0xaf,
  1122  	0x30, 0x50, 0x93, 0x61, 0x57, 0x4d, 0xbe, 0xaa, 0x98, 0x56, 0xa5, 0x62, 0xb6, 0xa6, 0x4d, 0xbb,
  1123  	0x61, 0xda, 0xdc, 0x83, 0x81, 0x5a, 0x7c, 0x59, 0x99, 0x2c, 0x7d, 0xe5, 0x9b, 0xe9, 0xf1, 0xf2,
  1124  	0x18, 0x5c, 0x3a, 0x9f, 0x28, 0x3c, 0xd8, 0xe4, 0xda, 0x9f, 0x1c, 0xd5, 0x08, 0x68, 0x30, 0x29,
  1125  	0xf0, 0x87, 0x05, 0x9d, 0x20, 0x5f, 0xe1, 0x56, 0xd6, 0xe5, 0xfd, 0xb4, 0x76, 0xdd, 0x4f, 0xfb,
  1126  	0x0d, 0xef, 0x87, 0x7d, 0x08, 0x8e, 0x9e, 0xb2, 0x2a, 0xfb, 0x83, 0xc9, 0xcd, 0x6d, 0x45, 0x51,
  1127  	0x88, 0x80, 0x40, 0xba, 0x6b, 0xe2, 0x94, 0xc7, 0x72, 0xad, 0x7a, 0xcc, 0x0e, 0x4a, 0xdb, 0x7f,
  1128  	0x04, 0xee, 0x13, 0x35, 0x6d, 0x8d, 0xd8, 0xef, 0x41, 0x87, 0xe7, 0x2b, 0x24, 0xaa, 0x37, 0xea,
  1129  	0xc9, 0xe4, 0x2b, 0x0c, 0x14, 0xa0, 0x28, 0x12, 0xb3, 0x93, 0x8a, 0xe4, 0x2e, 0xb8, 0x53, 0x5c,
  1130  	0xe1, 0xce, 0x61, 0x52, 0x6c, 0x31, 0x00, 0xda, 0xe2, 0x42, 0xbf, 0x78, 0x99, 0xcc, 0x43, 0xf5,
  1131  	0x31, 0x0c, 0xb4, 0x49, 0xc2, 0xbf, 0x0f, 0x76, 0x71, 0x96, 0x79, 0x9d, 0x1a, 0xb3, 0xd1, 0x88,
  1132  	0x07, 0x63, 0x70, 0x34, 0x6d, 0xd6, 0x87, 0xee, 0xd7, 0x8b, 0xcf, 0x17, 0x5f, 0x7e, 0xb3, 0x18,
  1133  	0xee, 0x15, 0xc6, 0x3c, 0x38, 0x5f, 0xbc, 0x98, 0x4d, 0x87, 0x16, 0x03, 0x70, 0xa6, 0xb3, 0xc5,
  1134  	0xd3, 0xd9, 0x74, 0xd8, 0x9a, 0xfc, 0x65, 0x41, 0xe7, 0x3c, 0x97, 0x17, 0xec, 0x39, 0xf4, 0x4c,
  1135  	0xeb, 0xb3, 0x3b, 0xaf, 0x9f, 0x6d, 0xa3, 0xbb, 0x3b, 0xd7, 0x89, 0xcf, 0x1e, 0x7b, 0x06, 0x5d,
  1136  	0xea, 0x00, 0x76, 0x5c, 0x43, 0x57, 0x3b, 0x68, 0x74, 0x67, 0xd7, 0x72, 0x19, 0x6b, 0x6a, 0x9e,
  1137  	0xda, 0xdb, 0x8d, 0x15, 0x47, 0x71, 0xde, 0x6e, 0x5e, 0x34, 0x51, 0x26, 0xdf, 0x43, 0xcf, 0xbc,
  1138  	0xfc, 0xec, 0x2b, 0xe8, 0x14, 0x02, 0x33, 0xbf, 0xb6, 0xa7, 0xe1, 0xaf, 0x61, 0x74, 0xff, 0xb5,
  1139  	0x98, 0x32, 0xfc, 0x9f, 0x16, 0xd8, 0xc5, 0x45, 0x08, 0x36, 0x07, 0x47, 0x57, 0x04, 0xab, 0xa7,
  1140  	0x54, 0x29, 0xb1, 0xd1, 0xf1, 0x8e, 0xd5, 0x92, 0xf7, 0x1c, 0x1c, 0x5d, 0x27, 0x5b, 0x81, 0x2a,
  1141  	0xf5, 0xb5, 0x15, 0xa8, 0x56, 0x5c, 0x7b, 0xec, 0x9c, 0xe8, 0x8e, 0x1a, 0xa8, 0x98, 0x20, 0xb7,
  1142  	0x1b, 0xd7, 0x4c, 0x88, 0x1f, 0x1c, 0xf5, 0xa3, 0xf5, 0xf0, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff,
  1143  	0x52, 0x12, 0xc2, 0xdb, 0x89, 0x09, 0x00, 0x00,
  1144  }
  1145  
  1146  // Reference imports to suppress errors if they are not otherwise used.
  1147  var _ context.Context
  1148  var _ grpc.ClientConn
  1149  
  1150  // This is a compile-time assertion to ensure that this generated file
  1151  // is compatible with the grpc package it is being compiled against.
  1152  const _ = grpc.SupportPackageIsVersion4
  1153  
  1154  // AuthClient is the client API for Auth service.
  1155  //
  1156  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1157  type AuthClient interface {
  1158  	Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error)
  1159  	Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectResponse, error)
  1160  	Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
  1161  }
  1162  
  1163  type authClient struct {
  1164  	cc *grpc.ClientConn
  1165  }
  1166  
  1167  func NewAuthClient(cc *grpc.ClientConn) AuthClient {
  1168  	return &authClient{cc}
  1169  }
  1170  
  1171  func (c *authClient) Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error) {
  1172  	out := new(GenerateResponse)
  1173  	err := c.cc.Invoke(ctx, "/go.micro.auth.Auth/Generate", in, out, opts...)
  1174  	if err != nil {
  1175  		return nil, err
  1176  	}
  1177  	return out, nil
  1178  }
  1179  
  1180  func (c *authClient) Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectResponse, error) {
  1181  	out := new(InspectResponse)
  1182  	err := c.cc.Invoke(ctx, "/go.micro.auth.Auth/Inspect", in, out, opts...)
  1183  	if err != nil {
  1184  		return nil, err
  1185  	}
  1186  	return out, nil
  1187  }
  1188  
  1189  func (c *authClient) Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) {
  1190  	out := new(TokenResponse)
  1191  	err := c.cc.Invoke(ctx, "/go.micro.auth.Auth/Token", in, out, opts...)
  1192  	if err != nil {
  1193  		return nil, err
  1194  	}
  1195  	return out, nil
  1196  }
  1197  
  1198  // AuthServer is the server API for Auth service.
  1199  type AuthServer interface {
  1200  	Generate(context.Context, *GenerateRequest) (*GenerateResponse, error)
  1201  	Inspect(context.Context, *InspectRequest) (*InspectResponse, error)
  1202  	Token(context.Context, *TokenRequest) (*TokenResponse, error)
  1203  }
  1204  
  1205  // UnimplementedAuthServer can be embedded to have forward compatible implementations.
  1206  type UnimplementedAuthServer struct {
  1207  }
  1208  
  1209  func (*UnimplementedAuthServer) Generate(ctx context.Context, req *GenerateRequest) (*GenerateResponse, error) {
  1210  	return nil, status.Errorf(codes.Unimplemented, "method Generate not implemented")
  1211  }
  1212  func (*UnimplementedAuthServer) Inspect(ctx context.Context, req *InspectRequest) (*InspectResponse, error) {
  1213  	return nil, status.Errorf(codes.Unimplemented, "method Inspect not implemented")
  1214  }
  1215  func (*UnimplementedAuthServer) Token(ctx context.Context, req *TokenRequest) (*TokenResponse, error) {
  1216  	return nil, status.Errorf(codes.Unimplemented, "method Token not implemented")
  1217  }
  1218  
  1219  func RegisterAuthServer(s *grpc.Server, srv AuthServer) {
  1220  	s.RegisterService(&_Auth_serviceDesc, srv)
  1221  }
  1222  
  1223  func _Auth_Generate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1224  	in := new(GenerateRequest)
  1225  	if err := dec(in); err != nil {
  1226  		return nil, err
  1227  	}
  1228  	if interceptor == nil {
  1229  		return srv.(AuthServer).Generate(ctx, in)
  1230  	}
  1231  	info := &grpc.UnaryServerInfo{
  1232  		Server:     srv,
  1233  		FullMethod: "/go.micro.auth.Auth/Generate",
  1234  	}
  1235  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1236  		return srv.(AuthServer).Generate(ctx, req.(*GenerateRequest))
  1237  	}
  1238  	return interceptor(ctx, in, info, handler)
  1239  }
  1240  
  1241  func _Auth_Inspect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1242  	in := new(InspectRequest)
  1243  	if err := dec(in); err != nil {
  1244  		return nil, err
  1245  	}
  1246  	if interceptor == nil {
  1247  		return srv.(AuthServer).Inspect(ctx, in)
  1248  	}
  1249  	info := &grpc.UnaryServerInfo{
  1250  		Server:     srv,
  1251  		FullMethod: "/go.micro.auth.Auth/Inspect",
  1252  	}
  1253  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1254  		return srv.(AuthServer).Inspect(ctx, req.(*InspectRequest))
  1255  	}
  1256  	return interceptor(ctx, in, info, handler)
  1257  }
  1258  
  1259  func _Auth_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1260  	in := new(TokenRequest)
  1261  	if err := dec(in); err != nil {
  1262  		return nil, err
  1263  	}
  1264  	if interceptor == nil {
  1265  		return srv.(AuthServer).Token(ctx, in)
  1266  	}
  1267  	info := &grpc.UnaryServerInfo{
  1268  		Server:     srv,
  1269  		FullMethod: "/go.micro.auth.Auth/Token",
  1270  	}
  1271  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1272  		return srv.(AuthServer).Token(ctx, req.(*TokenRequest))
  1273  	}
  1274  	return interceptor(ctx, in, info, handler)
  1275  }
  1276  
  1277  var _Auth_serviceDesc = grpc.ServiceDesc{
  1278  	ServiceName: "go.micro.auth.Auth",
  1279  	HandlerType: (*AuthServer)(nil),
  1280  	Methods: []grpc.MethodDesc{
  1281  		{
  1282  			MethodName: "Generate",
  1283  			Handler:    _Auth_Generate_Handler,
  1284  		},
  1285  		{
  1286  			MethodName: "Inspect",
  1287  			Handler:    _Auth_Inspect_Handler,
  1288  		},
  1289  		{
  1290  			MethodName: "Token",
  1291  			Handler:    _Auth_Token_Handler,
  1292  		},
  1293  	},
  1294  	Streams:  []grpc.StreamDesc{},
  1295  	Metadata: "auth/service/proto/auth.proto",
  1296  }
  1297  
  1298  // AccountsClient is the client API for Accounts service.
  1299  //
  1300  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1301  type AccountsClient interface {
  1302  	List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
  1303  }
  1304  
  1305  type accountsClient struct {
  1306  	cc *grpc.ClientConn
  1307  }
  1308  
  1309  func NewAccountsClient(cc *grpc.ClientConn) AccountsClient {
  1310  	return &accountsClient{cc}
  1311  }
  1312  
  1313  func (c *accountsClient) List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) {
  1314  	out := new(ListAccountsResponse)
  1315  	err := c.cc.Invoke(ctx, "/go.micro.auth.Accounts/List", in, out, opts...)
  1316  	if err != nil {
  1317  		return nil, err
  1318  	}
  1319  	return out, nil
  1320  }
  1321  
  1322  // AccountsServer is the server API for Accounts service.
  1323  type AccountsServer interface {
  1324  	List(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
  1325  }
  1326  
  1327  // UnimplementedAccountsServer can be embedded to have forward compatible implementations.
  1328  type UnimplementedAccountsServer struct {
  1329  }
  1330  
  1331  func (*UnimplementedAccountsServer) List(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error) {
  1332  	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
  1333  }
  1334  
  1335  func RegisterAccountsServer(s *grpc.Server, srv AccountsServer) {
  1336  	s.RegisterService(&_Accounts_serviceDesc, srv)
  1337  }
  1338  
  1339  func _Accounts_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1340  	in := new(ListAccountsRequest)
  1341  	if err := dec(in); err != nil {
  1342  		return nil, err
  1343  	}
  1344  	if interceptor == nil {
  1345  		return srv.(AccountsServer).List(ctx, in)
  1346  	}
  1347  	info := &grpc.UnaryServerInfo{
  1348  		Server:     srv,
  1349  		FullMethod: "/go.micro.auth.Accounts/List",
  1350  	}
  1351  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1352  		return srv.(AccountsServer).List(ctx, req.(*ListAccountsRequest))
  1353  	}
  1354  	return interceptor(ctx, in, info, handler)
  1355  }
  1356  
  1357  var _Accounts_serviceDesc = grpc.ServiceDesc{
  1358  	ServiceName: "go.micro.auth.Accounts",
  1359  	HandlerType: (*AccountsServer)(nil),
  1360  	Methods: []grpc.MethodDesc{
  1361  		{
  1362  			MethodName: "List",
  1363  			Handler:    _Accounts_List_Handler,
  1364  		},
  1365  	},
  1366  	Streams:  []grpc.StreamDesc{},
  1367  	Metadata: "auth/service/proto/auth.proto",
  1368  }
  1369  
  1370  // RulesClient is the client API for Rules service.
  1371  //
  1372  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1373  type RulesClient interface {
  1374  	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
  1375  	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
  1376  	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
  1377  }
  1378  
  1379  type rulesClient struct {
  1380  	cc *grpc.ClientConn
  1381  }
  1382  
  1383  func NewRulesClient(cc *grpc.ClientConn) RulesClient {
  1384  	return &rulesClient{cc}
  1385  }
  1386  
  1387  func (c *rulesClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) {
  1388  	out := new(CreateResponse)
  1389  	err := c.cc.Invoke(ctx, "/go.micro.auth.Rules/Create", in, out, opts...)
  1390  	if err != nil {
  1391  		return nil, err
  1392  	}
  1393  	return out, nil
  1394  }
  1395  
  1396  func (c *rulesClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
  1397  	out := new(DeleteResponse)
  1398  	err := c.cc.Invoke(ctx, "/go.micro.auth.Rules/Delete", in, out, opts...)
  1399  	if err != nil {
  1400  		return nil, err
  1401  	}
  1402  	return out, nil
  1403  }
  1404  
  1405  func (c *rulesClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
  1406  	out := new(ListResponse)
  1407  	err := c.cc.Invoke(ctx, "/go.micro.auth.Rules/List", in, out, opts...)
  1408  	if err != nil {
  1409  		return nil, err
  1410  	}
  1411  	return out, nil
  1412  }
  1413  
  1414  // RulesServer is the server API for Rules service.
  1415  type RulesServer interface {
  1416  	Create(context.Context, *CreateRequest) (*CreateResponse, error)
  1417  	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
  1418  	List(context.Context, *ListRequest) (*ListResponse, error)
  1419  }
  1420  
  1421  // UnimplementedRulesServer can be embedded to have forward compatible implementations.
  1422  type UnimplementedRulesServer struct {
  1423  }
  1424  
  1425  func (*UnimplementedRulesServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) {
  1426  	return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
  1427  }
  1428  func (*UnimplementedRulesServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) {
  1429  	return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
  1430  }
  1431  func (*UnimplementedRulesServer) List(ctx context.Context, req *ListRequest) (*ListResponse, error) {
  1432  	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
  1433  }
  1434  
  1435  func RegisterRulesServer(s *grpc.Server, srv RulesServer) {
  1436  	s.RegisterService(&_Rules_serviceDesc, srv)
  1437  }
  1438  
  1439  func _Rules_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1440  	in := new(CreateRequest)
  1441  	if err := dec(in); err != nil {
  1442  		return nil, err
  1443  	}
  1444  	if interceptor == nil {
  1445  		return srv.(RulesServer).Create(ctx, in)
  1446  	}
  1447  	info := &grpc.UnaryServerInfo{
  1448  		Server:     srv,
  1449  		FullMethod: "/go.micro.auth.Rules/Create",
  1450  	}
  1451  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1452  		return srv.(RulesServer).Create(ctx, req.(*CreateRequest))
  1453  	}
  1454  	return interceptor(ctx, in, info, handler)
  1455  }
  1456  
  1457  func _Rules_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1458  	in := new(DeleteRequest)
  1459  	if err := dec(in); err != nil {
  1460  		return nil, err
  1461  	}
  1462  	if interceptor == nil {
  1463  		return srv.(RulesServer).Delete(ctx, in)
  1464  	}
  1465  	info := &grpc.UnaryServerInfo{
  1466  		Server:     srv,
  1467  		FullMethod: "/go.micro.auth.Rules/Delete",
  1468  	}
  1469  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1470  		return srv.(RulesServer).Delete(ctx, req.(*DeleteRequest))
  1471  	}
  1472  	return interceptor(ctx, in, info, handler)
  1473  }
  1474  
  1475  func _Rules_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1476  	in := new(ListRequest)
  1477  	if err := dec(in); err != nil {
  1478  		return nil, err
  1479  	}
  1480  	if interceptor == nil {
  1481  		return srv.(RulesServer).List(ctx, in)
  1482  	}
  1483  	info := &grpc.UnaryServerInfo{
  1484  		Server:     srv,
  1485  		FullMethod: "/go.micro.auth.Rules/List",
  1486  	}
  1487  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1488  		return srv.(RulesServer).List(ctx, req.(*ListRequest))
  1489  	}
  1490  	return interceptor(ctx, in, info, handler)
  1491  }
  1492  
  1493  var _Rules_serviceDesc = grpc.ServiceDesc{
  1494  	ServiceName: "go.micro.auth.Rules",
  1495  	HandlerType: (*RulesServer)(nil),
  1496  	Methods: []grpc.MethodDesc{
  1497  		{
  1498  			MethodName: "Create",
  1499  			Handler:    _Rules_Create_Handler,
  1500  		},
  1501  		{
  1502  			MethodName: "Delete",
  1503  			Handler:    _Rules_Delete_Handler,
  1504  		},
  1505  		{
  1506  			MethodName: "List",
  1507  			Handler:    _Rules_List_Handler,
  1508  		},
  1509  	},
  1510  	Streams:  []grpc.StreamDesc{},
  1511  	Metadata: "auth/service/proto/auth.proto",
  1512  }