github.com/infraboard/keyauth@v0.8.1/apps/token/token.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.19.1
     5  // source: apps/token/pb/token.proto
     6  
     7  package token
     8  
     9  import (
    10  	types "github.com/infraboard/keyauth/apps/user/types"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type GrantType int32
    25  
    26  const (
    27  	GrantType_NULL        GrantType = 0
    28  	GrantType_UNKNOWN     GrantType = 1
    29  	GrantType_PASSWORD    GrantType = 2
    30  	GrantType_LDAP        GrantType = 3
    31  	GrantType_REFRESH     GrantType = 4
    32  	GrantType_ACCESS      GrantType = 5
    33  	GrantType_CLIENT      GrantType = 6
    34  	GrantType_AUTH_CODE   GrantType = 7
    35  	GrantType_IMPLICIT    GrantType = 8
    36  	GrantType_WECHAT_WORK GrantType = 9
    37  )
    38  
    39  // Enum value maps for GrantType.
    40  var (
    41  	GrantType_name = map[int32]string{
    42  		0: "NULL",
    43  		1: "UNKNOWN",
    44  		2: "PASSWORD",
    45  		3: "LDAP",
    46  		4: "REFRESH",
    47  		5: "ACCESS",
    48  		6: "CLIENT",
    49  		7: "AUTH_CODE",
    50  		8: "IMPLICIT",
    51  		9: "WECHAT_WORK",
    52  	}
    53  	GrantType_value = map[string]int32{
    54  		"NULL":        0,
    55  		"UNKNOWN":     1,
    56  		"PASSWORD":    2,
    57  		"LDAP":        3,
    58  		"REFRESH":     4,
    59  		"ACCESS":      5,
    60  		"CLIENT":      6,
    61  		"AUTH_CODE":   7,
    62  		"IMPLICIT":    8,
    63  		"WECHAT_WORK": 9,
    64  	}
    65  )
    66  
    67  func (x GrantType) Enum() *GrantType {
    68  	p := new(GrantType)
    69  	*p = x
    70  	return p
    71  }
    72  
    73  func (x GrantType) String() string {
    74  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    75  }
    76  
    77  func (GrantType) Descriptor() protoreflect.EnumDescriptor {
    78  	return file_apps_token_pb_token_proto_enumTypes[0].Descriptor()
    79  }
    80  
    81  func (GrantType) Type() protoreflect.EnumType {
    82  	return &file_apps_token_pb_token_proto_enumTypes[0]
    83  }
    84  
    85  func (x GrantType) Number() protoreflect.EnumNumber {
    86  	return protoreflect.EnumNumber(x)
    87  }
    88  
    89  // Deprecated: Use GrantType.Descriptor instead.
    90  func (GrantType) EnumDescriptor() ([]byte, []int) {
    91  	return file_apps_token_pb_token_proto_rawDescGZIP(), []int{0}
    92  }
    93  
    94  type TokenType int32
    95  
    96  const (
    97  	TokenType_BEARER TokenType = 0
    98  	TokenType_MAC    TokenType = 1
    99  	TokenType_JWT    TokenType = 2
   100  )
   101  
   102  // Enum value maps for TokenType.
   103  var (
   104  	TokenType_name = map[int32]string{
   105  		0: "BEARER",
   106  		1: "MAC",
   107  		2: "JWT",
   108  	}
   109  	TokenType_value = map[string]int32{
   110  		"BEARER": 0,
   111  		"MAC":    1,
   112  		"JWT":    2,
   113  	}
   114  )
   115  
   116  func (x TokenType) Enum() *TokenType {
   117  	p := new(TokenType)
   118  	*p = x
   119  	return p
   120  }
   121  
   122  func (x TokenType) String() string {
   123  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   124  }
   125  
   126  func (TokenType) Descriptor() protoreflect.EnumDescriptor {
   127  	return file_apps_token_pb_token_proto_enumTypes[1].Descriptor()
   128  }
   129  
   130  func (TokenType) Type() protoreflect.EnumType {
   131  	return &file_apps_token_pb_token_proto_enumTypes[1]
   132  }
   133  
   134  func (x TokenType) Number() protoreflect.EnumNumber {
   135  	return protoreflect.EnumNumber(x)
   136  }
   137  
   138  // Deprecated: Use TokenType.Descriptor instead.
   139  func (TokenType) EnumDescriptor() ([]byte, []int) {
   140  	return file_apps_token_pb_token_proto_rawDescGZIP(), []int{1}
   141  }
   142  
   143  type BlockType int32
   144  
   145  const (
   146  	BlockType_SESSION_TERMINATED     BlockType = 0
   147  	BlockType_OTHER_CLIENT_LOGGED_IN BlockType = 1
   148  	BlockType_OTHER_PLACE_LOGGED_IN  BlockType = 2
   149  	BlockType_OTHER_IP_LOGGED_IN     BlockType = 3
   150  )
   151  
   152  // Enum value maps for BlockType.
   153  var (
   154  	BlockType_name = map[int32]string{
   155  		0: "SESSION_TERMINATED",
   156  		1: "OTHER_CLIENT_LOGGED_IN",
   157  		2: "OTHER_PLACE_LOGGED_IN",
   158  		3: "OTHER_IP_LOGGED_IN",
   159  	}
   160  	BlockType_value = map[string]int32{
   161  		"SESSION_TERMINATED":     0,
   162  		"OTHER_CLIENT_LOGGED_IN": 1,
   163  		"OTHER_PLACE_LOGGED_IN":  2,
   164  		"OTHER_IP_LOGGED_IN":     3,
   165  	}
   166  )
   167  
   168  func (x BlockType) Enum() *BlockType {
   169  	p := new(BlockType)
   170  	*p = x
   171  	return p
   172  }
   173  
   174  func (x BlockType) String() string {
   175  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   176  }
   177  
   178  func (BlockType) Descriptor() protoreflect.EnumDescriptor {
   179  	return file_apps_token_pb_token_proto_enumTypes[2].Descriptor()
   180  }
   181  
   182  func (BlockType) Type() protoreflect.EnumType {
   183  	return &file_apps_token_pb_token_proto_enumTypes[2]
   184  }
   185  
   186  func (x BlockType) Number() protoreflect.EnumNumber {
   187  	return protoreflect.EnumNumber(x)
   188  }
   189  
   190  // Deprecated: Use BlockType.Descriptor instead.
   191  func (BlockType) EnumDescriptor() ([]byte, []int) {
   192  	return file_apps_token_pb_token_proto_rawDescGZIP(), []int{2}
   193  }
   194  
   195  type Token struct {
   196  	state         protoimpl.MessageState
   197  	sizeCache     protoimpl.SizeCache
   198  	unknownFields protoimpl.UnknownFields
   199  
   200  	// @gotags: bson:"session_id" json:"session_id"
   201  	SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id" bson:"session_id"`
   202  	// @gotags: bson:"_id" json:"access_token"
   203  	AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token" bson:"_id"`
   204  	// @gotags: bson:"refresh_token" json:"refresh_token,omitempty"
   205  	RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty" bson:"refresh_token"`
   206  	// @gotags: bson:"create_at" json:"create_at,omitempty"
   207  	CreateAt int64 `protobuf:"varint,5,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty" bson:"create_at"`
   208  	// @gotags: bson:"access_expired_at" json:"access_expired_at,omitempty"
   209  	AccessExpiredAt int64 `protobuf:"varint,6,opt,name=access_expired_at,json=accessExpiredAt,proto3" json:"access_expired_at,omitempty" bson:"access_expired_at"`
   210  	// @gotags: bson:"refresh_expired_at" json:"refresh_expired_at,omitempty"
   211  	RefreshExpiredAt int64 `protobuf:"varint,7,opt,name=refresh_expired_at,json=refreshExpiredAt,proto3" json:"refresh_expired_at,omitempty" bson:"refresh_expired_at"`
   212  	// @gotags: bson:"domain" json:"domain,omitempty"
   213  	Domain string `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain,omitempty" bson:"domain"`
   214  	// @gotags: bson:"user_type" json:"user_type"
   215  	UserType types.UserType `protobuf:"varint,9,opt,name=user_type,json=userType,proto3,enum=infraboard.keyauth.user.UserType" json:"user_type" bson:"user_type"`
   216  	// @gotags: bson:"account" json:"account"
   217  	Account string `protobuf:"bytes,10,opt,name=account,proto3" json:"account" bson:"account"`
   218  	// @gotags: bson:"application_id" json:"application_id"
   219  	ApplicationId string `protobuf:"bytes,11,opt,name=application_id,json=applicationId,proto3" json:"application_id" bson:"application_id"`
   220  	// @gotags: bson:"application_name" json:"application_name"
   221  	ApplicationName string `protobuf:"bytes,12,opt,name=application_name,json=applicationName,proto3" json:"application_name" bson:"application_name"`
   222  	// @gotags: bson:"client_id" json:"client_id"
   223  	ClientId string `protobuf:"bytes,13,opt,name=client_id,json=clientId,proto3" json:"client_id" bson:"client_id"`
   224  	// @gotags: bson:"start_grant_type" json:"start_grant_type"
   225  	StartGrantType GrantType `protobuf:"varint,14,opt,name=start_grant_type,json=startGrantType,proto3,enum=infraboard.keyauth.token.GrantType" json:"start_grant_type" bson:"start_grant_type"`
   226  	// @gotags: bson:"grant_type" json:"grant_type"
   227  	GrantType GrantType `protobuf:"varint,15,opt,name=grant_type,json=grantType,proto3,enum=infraboard.keyauth.token.GrantType" json:"grant_type" bson:"grant_type"`
   228  	// @gotags: bson:"type" json:"type"
   229  	Type TokenType `protobuf:"varint,16,opt,name=type,proto3,enum=infraboard.keyauth.token.TokenType" json:"type" bson:"type"`
   230  	// @gotags: bson:"namespace_id" json:"namespace_id"
   231  	NamespaceId string `protobuf:"bytes,25,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id" bson:"namespace_id"`
   232  	// @gotags: bson:"namespace_name" json:"namespace_name"
   233  	NamespaceName string `protobuf:"bytes,27,opt,name=namespace_name,json=namespaceName,proto3" json:"namespace_name" bson:"namespace_name"`
   234  	// @gotags: bson:"scope" json:"scope"
   235  	Scope string `protobuf:"bytes,17,opt,name=scope,proto3" json:"scope" bson:"scope"`
   236  	// @gotags: bson:"description" json:"description"
   237  	Description string `protobuf:"bytes,18,opt,name=description,proto3" json:"description" bson:"description"`
   238  	// @gotags: bson:"is_block" json:"is_block"
   239  	IsBlock bool `protobuf:"varint,19,opt,name=is_block,json=isBlock,proto3" json:"is_block" bson:"is_block"`
   240  	// @gotags: bson:"block_type" json:"block_type"
   241  	BlockType BlockType `protobuf:"varint,20,opt,name=block_type,json=blockType,proto3,enum=infraboard.keyauth.token.BlockType" json:"block_type" bson:"block_type"`
   242  	// @gotags: bson:"block_at" json:"block_at"
   243  	BlockAt int64 `protobuf:"varint,21,opt,name=block_at,json=blockAt,proto3" json:"block_at" bson:"block_at"`
   244  	// @gotags: bson:"block_reason" json:"block_reason"
   245  	BlockReason string `protobuf:"bytes,22,opt,name=block_reason,json=blockReason,proto3" json:"block_reason" bson:"block_reason"`
   246  	// @gotags: bson:"-" json:"-"
   247  	RemoteIp string `protobuf:"bytes,23,opt,name=remote_ip,json=remoteIp,proto3" json:"-" bson:"-"`
   248  	// @gotags: bson:"-" json:"-"
   249  	UserAgent string `protobuf:"bytes,24,opt,name=user_agent,json=userAgent,proto3" json:"-" bson:"-"`
   250  	// @gotags: bson:"-" json:"available_namespace"
   251  	AvailableNamespace []string `protobuf:"bytes,26,rep,name=available_namespace,json=availableNamespace,proto3" json:"available_namespace" bson:"-"`
   252  }
   253  
   254  func (x *Token) Reset() {
   255  	*x = Token{}
   256  	if protoimpl.UnsafeEnabled {
   257  		mi := &file_apps_token_pb_token_proto_msgTypes[0]
   258  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   259  		ms.StoreMessageInfo(mi)
   260  	}
   261  }
   262  
   263  func (x *Token) String() string {
   264  	return protoimpl.X.MessageStringOf(x)
   265  }
   266  
   267  func (*Token) ProtoMessage() {}
   268  
   269  func (x *Token) ProtoReflect() protoreflect.Message {
   270  	mi := &file_apps_token_pb_token_proto_msgTypes[0]
   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 Token.ProtoReflect.Descriptor instead.
   282  func (*Token) Descriptor() ([]byte, []int) {
   283  	return file_apps_token_pb_token_proto_rawDescGZIP(), []int{0}
   284  }
   285  
   286  func (x *Token) GetSessionId() string {
   287  	if x != nil {
   288  		return x.SessionId
   289  	}
   290  	return ""
   291  }
   292  
   293  func (x *Token) GetAccessToken() string {
   294  	if x != nil {
   295  		return x.AccessToken
   296  	}
   297  	return ""
   298  }
   299  
   300  func (x *Token) GetRefreshToken() string {
   301  	if x != nil {
   302  		return x.RefreshToken
   303  	}
   304  	return ""
   305  }
   306  
   307  func (x *Token) GetCreateAt() int64 {
   308  	if x != nil {
   309  		return x.CreateAt
   310  	}
   311  	return 0
   312  }
   313  
   314  func (x *Token) GetAccessExpiredAt() int64 {
   315  	if x != nil {
   316  		return x.AccessExpiredAt
   317  	}
   318  	return 0
   319  }
   320  
   321  func (x *Token) GetRefreshExpiredAt() int64 {
   322  	if x != nil {
   323  		return x.RefreshExpiredAt
   324  	}
   325  	return 0
   326  }
   327  
   328  func (x *Token) GetDomain() string {
   329  	if x != nil {
   330  		return x.Domain
   331  	}
   332  	return ""
   333  }
   334  
   335  func (x *Token) GetUserType() types.UserType {
   336  	if x != nil {
   337  		return x.UserType
   338  	}
   339  	return types.UserType(0)
   340  }
   341  
   342  func (x *Token) GetAccount() string {
   343  	if x != nil {
   344  		return x.Account
   345  	}
   346  	return ""
   347  }
   348  
   349  func (x *Token) GetApplicationId() string {
   350  	if x != nil {
   351  		return x.ApplicationId
   352  	}
   353  	return ""
   354  }
   355  
   356  func (x *Token) GetApplicationName() string {
   357  	if x != nil {
   358  		return x.ApplicationName
   359  	}
   360  	return ""
   361  }
   362  
   363  func (x *Token) GetClientId() string {
   364  	if x != nil {
   365  		return x.ClientId
   366  	}
   367  	return ""
   368  }
   369  
   370  func (x *Token) GetStartGrantType() GrantType {
   371  	if x != nil {
   372  		return x.StartGrantType
   373  	}
   374  	return GrantType_NULL
   375  }
   376  
   377  func (x *Token) GetGrantType() GrantType {
   378  	if x != nil {
   379  		return x.GrantType
   380  	}
   381  	return GrantType_NULL
   382  }
   383  
   384  func (x *Token) GetType() TokenType {
   385  	if x != nil {
   386  		return x.Type
   387  	}
   388  	return TokenType_BEARER
   389  }
   390  
   391  func (x *Token) GetNamespaceId() string {
   392  	if x != nil {
   393  		return x.NamespaceId
   394  	}
   395  	return ""
   396  }
   397  
   398  func (x *Token) GetNamespaceName() string {
   399  	if x != nil {
   400  		return x.NamespaceName
   401  	}
   402  	return ""
   403  }
   404  
   405  func (x *Token) GetScope() string {
   406  	if x != nil {
   407  		return x.Scope
   408  	}
   409  	return ""
   410  }
   411  
   412  func (x *Token) GetDescription() string {
   413  	if x != nil {
   414  		return x.Description
   415  	}
   416  	return ""
   417  }
   418  
   419  func (x *Token) GetIsBlock() bool {
   420  	if x != nil {
   421  		return x.IsBlock
   422  	}
   423  	return false
   424  }
   425  
   426  func (x *Token) GetBlockType() BlockType {
   427  	if x != nil {
   428  		return x.BlockType
   429  	}
   430  	return BlockType_SESSION_TERMINATED
   431  }
   432  
   433  func (x *Token) GetBlockAt() int64 {
   434  	if x != nil {
   435  		return x.BlockAt
   436  	}
   437  	return 0
   438  }
   439  
   440  func (x *Token) GetBlockReason() string {
   441  	if x != nil {
   442  		return x.BlockReason
   443  	}
   444  	return ""
   445  }
   446  
   447  func (x *Token) GetRemoteIp() string {
   448  	if x != nil {
   449  		return x.RemoteIp
   450  	}
   451  	return ""
   452  }
   453  
   454  func (x *Token) GetUserAgent() string {
   455  	if x != nil {
   456  		return x.UserAgent
   457  	}
   458  	return ""
   459  }
   460  
   461  func (x *Token) GetAvailableNamespace() []string {
   462  	if x != nil {
   463  		return x.AvailableNamespace
   464  	}
   465  	return nil
   466  }
   467  
   468  type Set struct {
   469  	state         protoimpl.MessageState
   470  	sizeCache     protoimpl.SizeCache
   471  	unknownFields protoimpl.UnknownFields
   472  
   473  	// @gotags: bson:"total" json:"total"
   474  	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"`
   475  	// @gotags: bson:"items" json:"items"
   476  	Items []*Token `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
   477  }
   478  
   479  func (x *Set) Reset() {
   480  	*x = Set{}
   481  	if protoimpl.UnsafeEnabled {
   482  		mi := &file_apps_token_pb_token_proto_msgTypes[1]
   483  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   484  		ms.StoreMessageInfo(mi)
   485  	}
   486  }
   487  
   488  func (x *Set) String() string {
   489  	return protoimpl.X.MessageStringOf(x)
   490  }
   491  
   492  func (*Set) ProtoMessage() {}
   493  
   494  func (x *Set) ProtoReflect() protoreflect.Message {
   495  	mi := &file_apps_token_pb_token_proto_msgTypes[1]
   496  	if protoimpl.UnsafeEnabled && x != nil {
   497  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   498  		if ms.LoadMessageInfo() == nil {
   499  			ms.StoreMessageInfo(mi)
   500  		}
   501  		return ms
   502  	}
   503  	return mi.MessageOf(x)
   504  }
   505  
   506  // Deprecated: Use Set.ProtoReflect.Descriptor instead.
   507  func (*Set) Descriptor() ([]byte, []int) {
   508  	return file_apps_token_pb_token_proto_rawDescGZIP(), []int{1}
   509  }
   510  
   511  func (x *Set) GetTotal() int64 {
   512  	if x != nil {
   513  		return x.Total
   514  	}
   515  	return 0
   516  }
   517  
   518  func (x *Set) GetItems() []*Token {
   519  	if x != nil {
   520  		return x.Items
   521  	}
   522  	return nil
   523  }
   524  
   525  var File_apps_token_pb_token_proto protoreflect.FileDescriptor
   526  
   527  var file_apps_token_pb_token_proto_rawDesc = []byte{
   528  	0x0a, 0x19, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2f,
   529  	0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x69, 0x6e, 0x66,
   530  	0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e,
   531  	0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x18, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72,
   532  	0x2f, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
   533  	0x9e, 0x08, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73,
   534  	0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73,
   535  	0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65,
   536  	0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
   537  	0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72,
   538  	0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01,
   539  	0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
   540  	0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20,
   541  	0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x2a, 0x0a,
   542  	0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f,
   543  	0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
   544  	0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x66,
   545  	0x72, 0x65, 0x73, 0x68, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
   546  	0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x45, 0x78,
   547  	0x70, 0x69, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69,
   548  	0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12,
   549  	0x3e, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01,
   550  	0x28, 0x0e, 0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e,
   551  	0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65,
   552  	0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12,
   553  	0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
   554  	0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x70, 0x70,
   555  	0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28,
   556  	0x09, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,
   557  	0x12, 0x29, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
   558  	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c,
   559  	0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63,
   560  	0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
   561  	0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x4d, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x72,
   562  	0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01,
   563  	0x28, 0x0e, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e,
   564  	0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x47, 0x72,
   565  	0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x47, 0x72,
   566  	0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74,
   567  	0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x69, 0x6e,
   568  	0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68,
   569  	0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65,
   570  	0x52, 0x09, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x74,
   571  	0x79, 0x70, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x66, 0x72,
   572  	0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x74,
   573  	0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
   574  	0x74, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63,
   575  	0x65, 0x5f, 0x69, 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x61, 0x6d, 0x65,
   576  	0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x73,
   577  	0x70, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52,
   578  	0x0d, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14,
   579  	0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73,
   580  	0x63, 0x6f, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
   581  	0x69, 0x6f, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
   582  	0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x62, 0x6c, 0x6f,
   583  	0x63, 0x6b, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x42, 0x6c, 0x6f, 0x63,
   584  	0x6b, 0x12, 0x42, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
   585  	0x14, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61,
   586  	0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
   587  	0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63,
   588  	0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x61,
   589  	0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x74,
   590  	0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e,
   591  	0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x61,
   592  	0x73, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x69, 0x70,
   593  	0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x49, 0x70,
   594  	0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x18,
   595  	0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12,
   596  	0x2f, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d,
   597  	0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x61, 0x76,
   598  	0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
   599  	0x22, 0x52, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c,
   600  	0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x35, 0x0a,
   601  	0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x69,
   602  	0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74,
   603  	0x68, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x69,
   604  	0x74, 0x65, 0x6d, 0x73, 0x2a, 0x8d, 0x01, 0x0a, 0x09, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79,
   605  	0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,
   606  	0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53,
   607  	0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x44, 0x41, 0x50, 0x10,
   608  	0x03, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x46, 0x52, 0x45, 0x53, 0x48, 0x10, 0x04, 0x12, 0x0a,
   609  	0x0a, 0x06, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4c,
   610  	0x49, 0x45, 0x4e, 0x54, 0x10, 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x43,
   611  	0x4f, 0x44, 0x45, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4d, 0x50, 0x4c, 0x49, 0x43, 0x49,
   612  	0x54, 0x10, 0x08, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x45, 0x43, 0x48, 0x41, 0x54, 0x5f, 0x57, 0x4f,
   613  	0x52, 0x4b, 0x10, 0x09, 0x2a, 0x29, 0x0a, 0x09, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70,
   614  	0x65, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x45, 0x41, 0x52, 0x45, 0x52, 0x10, 0x00, 0x12, 0x07, 0x0a,
   615  	0x03, 0x4d, 0x41, 0x43, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4a, 0x57, 0x54, 0x10, 0x02, 0x2a,
   616  	0x72, 0x0a, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12,
   617  	0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54,
   618  	0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x5f, 0x43, 0x4c,
   619  	0x49, 0x45, 0x4e, 0x54, 0x5f, 0x4c, 0x4f, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x49, 0x4e, 0x10, 0x01,
   620  	0x12, 0x19, 0x0a, 0x15, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x5f, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x5f,
   621  	0x4c, 0x4f, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x4f,
   622  	0x54, 0x48, 0x45, 0x52, 0x5f, 0x49, 0x50, 0x5f, 0x4c, 0x4f, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x49,
   623  	0x4e, 0x10, 0x03, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
   624  	0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79,
   625  	0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x62,
   626  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   627  }
   628  
   629  var (
   630  	file_apps_token_pb_token_proto_rawDescOnce sync.Once
   631  	file_apps_token_pb_token_proto_rawDescData = file_apps_token_pb_token_proto_rawDesc
   632  )
   633  
   634  func file_apps_token_pb_token_proto_rawDescGZIP() []byte {
   635  	file_apps_token_pb_token_proto_rawDescOnce.Do(func() {
   636  		file_apps_token_pb_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_token_pb_token_proto_rawDescData)
   637  	})
   638  	return file_apps_token_pb_token_proto_rawDescData
   639  }
   640  
   641  var file_apps_token_pb_token_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
   642  var file_apps_token_pb_token_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   643  var file_apps_token_pb_token_proto_goTypes = []interface{}{
   644  	(GrantType)(0),      // 0: infraboard.keyauth.token.GrantType
   645  	(TokenType)(0),      // 1: infraboard.keyauth.token.TokenType
   646  	(BlockType)(0),      // 2: infraboard.keyauth.token.BlockType
   647  	(*Token)(nil),       // 3: infraboard.keyauth.token.Token
   648  	(*Set)(nil),         // 4: infraboard.keyauth.token.Set
   649  	(types.UserType)(0), // 5: infraboard.keyauth.user.UserType
   650  }
   651  var file_apps_token_pb_token_proto_depIdxs = []int32{
   652  	5, // 0: infraboard.keyauth.token.Token.user_type:type_name -> infraboard.keyauth.user.UserType
   653  	0, // 1: infraboard.keyauth.token.Token.start_grant_type:type_name -> infraboard.keyauth.token.GrantType
   654  	0, // 2: infraboard.keyauth.token.Token.grant_type:type_name -> infraboard.keyauth.token.GrantType
   655  	1, // 3: infraboard.keyauth.token.Token.type:type_name -> infraboard.keyauth.token.TokenType
   656  	2, // 4: infraboard.keyauth.token.Token.block_type:type_name -> infraboard.keyauth.token.BlockType
   657  	3, // 5: infraboard.keyauth.token.Set.items:type_name -> infraboard.keyauth.token.Token
   658  	6, // [6:6] is the sub-list for method output_type
   659  	6, // [6:6] is the sub-list for method input_type
   660  	6, // [6:6] is the sub-list for extension type_name
   661  	6, // [6:6] is the sub-list for extension extendee
   662  	0, // [0:6] is the sub-list for field type_name
   663  }
   664  
   665  func init() { file_apps_token_pb_token_proto_init() }
   666  func file_apps_token_pb_token_proto_init() {
   667  	if File_apps_token_pb_token_proto != nil {
   668  		return
   669  	}
   670  	if !protoimpl.UnsafeEnabled {
   671  		file_apps_token_pb_token_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   672  			switch v := v.(*Token); i {
   673  			case 0:
   674  				return &v.state
   675  			case 1:
   676  				return &v.sizeCache
   677  			case 2:
   678  				return &v.unknownFields
   679  			default:
   680  				return nil
   681  			}
   682  		}
   683  		file_apps_token_pb_token_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   684  			switch v := v.(*Set); i {
   685  			case 0:
   686  				return &v.state
   687  			case 1:
   688  				return &v.sizeCache
   689  			case 2:
   690  				return &v.unknownFields
   691  			default:
   692  				return nil
   693  			}
   694  		}
   695  	}
   696  	type x struct{}
   697  	out := protoimpl.TypeBuilder{
   698  		File: protoimpl.DescBuilder{
   699  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   700  			RawDescriptor: file_apps_token_pb_token_proto_rawDesc,
   701  			NumEnums:      3,
   702  			NumMessages:   2,
   703  			NumExtensions: 0,
   704  			NumServices:   0,
   705  		},
   706  		GoTypes:           file_apps_token_pb_token_proto_goTypes,
   707  		DependencyIndexes: file_apps_token_pb_token_proto_depIdxs,
   708  		EnumInfos:         file_apps_token_pb_token_proto_enumTypes,
   709  		MessageInfos:      file_apps_token_pb_token_proto_msgTypes,
   710  	}.Build()
   711  	File_apps_token_pb_token_proto = out.File
   712  	file_apps_token_pb_token_proto_rawDesc = nil
   713  	file_apps_token_pb_token_proto_goTypes = nil
   714  	file_apps_token_pb_token_proto_depIdxs = nil
   715  }