github.com/infraboard/keyauth@v0.8.1/apps/policy/policy.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/policy/pb/policy.proto
     6  
     7  package policy
     8  
     9  import (
    10  	namespace "github.com/infraboard/keyauth/apps/namespace"
    11  	role "github.com/infraboard/keyauth/apps/role"
    12  	types "github.com/infraboard/keyauth/apps/user/types"
    13  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    14  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    15  	reflect "reflect"
    16  	sync "sync"
    17  )
    18  
    19  const (
    20  	// Verify that this generated code is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    22  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    24  )
    25  
    26  // Policy 权限策略
    27  type Policy struct {
    28  	state         protoimpl.MessageState
    29  	sizeCache     protoimpl.SizeCache
    30  	unknownFields protoimpl.UnknownFields
    31  
    32  	// 策略ID
    33  	// @gotags: bson:"_id" json:"id"
    34  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
    35  	// 创建时间
    36  	// @gotags: bson:"create_at" json:"create_at"
    37  	CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"`
    38  	// 更新时间
    39  	// @gotags: bson:"update_at" json:"update_at"
    40  	UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"`
    41  	// 策略所属域
    42  	// @gotags: bson:"domain" json:"domain"
    43  	Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain" bson:"domain"`
    44  	// 创建者ID
    45  	// @gotags: bson:"creater" json:"creater"
    46  	Creater string `protobuf:"bytes,5,opt,name=creater,proto3" json:"creater" bson:"creater"`
    47  	// 用户类型
    48  	// @gotags: bson:"user_type" json:"user_type"
    49  	UserType types.UserType `protobuf:"varint,6,opt,name=user_type,json=userType,proto3,enum=infraboard.keyauth.user.UserType" json:"user_type" bson:"user_type"`
    50  	// 范围
    51  	// @gotags: bson:"namespace_id" json:"namespace_id"
    52  	NamespaceId string `protobuf:"bytes,7,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id" bson:"namespace_id"`
    53  	// 用户
    54  	// @gotags: bson:"account" json:"account"
    55  	Account string `protobuf:"bytes,8,opt,name=account,proto3" json:"account" bson:"account"`
    56  	// 角色名称
    57  	// @gotags: bson:"role_id" json:"role_id"
    58  	RoleId string `protobuf:"bytes,9,opt,name=role_id,json=roleId,proto3" json:"role_id" bson:"role_id"`
    59  	// 范围控制
    60  	// @gotags: bson:"scope" json:"scope"
    61  	Scope string `protobuf:"bytes,10,opt,name=scope,proto3" json:"scope" bson:"scope"`
    62  	// 策略过期时间
    63  	// @gotags: bson:"expired_time" json:"expired_time"
    64  	ExpiredTime int64 `protobuf:"varint,11,opt,name=expired_time,json=expiredTime,proto3" json:"expired_time" bson:"expired_time"`
    65  	// 策略的类型
    66  	// @gotags: bson:"type" json:"type"
    67  	Type PolicyType `protobuf:"varint,12,opt,name=type,proto3,enum=infraboard.keyauth.policy.PolicyType" json:"type" bson:"type"`
    68  	// 关联的角色对象
    69  	// @gotags: bson:"-" json:"role,omitempty"
    70  	Role *role.Role `protobuf:"bytes,13,opt,name=role,proto3" json:"role,omitempty" bson:"-"`
    71  	// 关联的空间信息
    72  	// @gotags: bson:"-" json:"namespace,omitempty"
    73  	Namespace *namespace.Namespace `protobuf:"bytes,14,opt,name=namespace,proto3" json:"namespace,omitempty" bson:"-"`
    74  }
    75  
    76  func (x *Policy) Reset() {
    77  	*x = Policy{}
    78  	if protoimpl.UnsafeEnabled {
    79  		mi := &file_apps_policy_pb_policy_proto_msgTypes[0]
    80  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    81  		ms.StoreMessageInfo(mi)
    82  	}
    83  }
    84  
    85  func (x *Policy) String() string {
    86  	return protoimpl.X.MessageStringOf(x)
    87  }
    88  
    89  func (*Policy) ProtoMessage() {}
    90  
    91  func (x *Policy) ProtoReflect() protoreflect.Message {
    92  	mi := &file_apps_policy_pb_policy_proto_msgTypes[0]
    93  	if protoimpl.UnsafeEnabled && x != nil {
    94  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    95  		if ms.LoadMessageInfo() == nil {
    96  			ms.StoreMessageInfo(mi)
    97  		}
    98  		return ms
    99  	}
   100  	return mi.MessageOf(x)
   101  }
   102  
   103  // Deprecated: Use Policy.ProtoReflect.Descriptor instead.
   104  func (*Policy) Descriptor() ([]byte, []int) {
   105  	return file_apps_policy_pb_policy_proto_rawDescGZIP(), []int{0}
   106  }
   107  
   108  func (x *Policy) GetId() string {
   109  	if x != nil {
   110  		return x.Id
   111  	}
   112  	return ""
   113  }
   114  
   115  func (x *Policy) GetCreateAt() int64 {
   116  	if x != nil {
   117  		return x.CreateAt
   118  	}
   119  	return 0
   120  }
   121  
   122  func (x *Policy) GetUpdateAt() int64 {
   123  	if x != nil {
   124  		return x.UpdateAt
   125  	}
   126  	return 0
   127  }
   128  
   129  func (x *Policy) GetDomain() string {
   130  	if x != nil {
   131  		return x.Domain
   132  	}
   133  	return ""
   134  }
   135  
   136  func (x *Policy) GetCreater() string {
   137  	if x != nil {
   138  		return x.Creater
   139  	}
   140  	return ""
   141  }
   142  
   143  func (x *Policy) GetUserType() types.UserType {
   144  	if x != nil {
   145  		return x.UserType
   146  	}
   147  	return types.UserType(0)
   148  }
   149  
   150  func (x *Policy) GetNamespaceId() string {
   151  	if x != nil {
   152  		return x.NamespaceId
   153  	}
   154  	return ""
   155  }
   156  
   157  func (x *Policy) GetAccount() string {
   158  	if x != nil {
   159  		return x.Account
   160  	}
   161  	return ""
   162  }
   163  
   164  func (x *Policy) GetRoleId() string {
   165  	if x != nil {
   166  		return x.RoleId
   167  	}
   168  	return ""
   169  }
   170  
   171  func (x *Policy) GetScope() string {
   172  	if x != nil {
   173  		return x.Scope
   174  	}
   175  	return ""
   176  }
   177  
   178  func (x *Policy) GetExpiredTime() int64 {
   179  	if x != nil {
   180  		return x.ExpiredTime
   181  	}
   182  	return 0
   183  }
   184  
   185  func (x *Policy) GetType() PolicyType {
   186  	if x != nil {
   187  		return x.Type
   188  	}
   189  	return PolicyType_NULL
   190  }
   191  
   192  func (x *Policy) GetRole() *role.Role {
   193  	if x != nil {
   194  		return x.Role
   195  	}
   196  	return nil
   197  }
   198  
   199  func (x *Policy) GetNamespace() *namespace.Namespace {
   200  	if x != nil {
   201  		return x.Namespace
   202  	}
   203  	return nil
   204  }
   205  
   206  type Set struct {
   207  	state         protoimpl.MessageState
   208  	sizeCache     protoimpl.SizeCache
   209  	unknownFields protoimpl.UnknownFields
   210  
   211  	// @gotags: bson:"total" json:"total"
   212  	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"`
   213  	// @gotags: bson:"items" json:"items"
   214  	Items []*Policy `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
   215  }
   216  
   217  func (x *Set) Reset() {
   218  	*x = Set{}
   219  	if protoimpl.UnsafeEnabled {
   220  		mi := &file_apps_policy_pb_policy_proto_msgTypes[1]
   221  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   222  		ms.StoreMessageInfo(mi)
   223  	}
   224  }
   225  
   226  func (x *Set) String() string {
   227  	return protoimpl.X.MessageStringOf(x)
   228  }
   229  
   230  func (*Set) ProtoMessage() {}
   231  
   232  func (x *Set) ProtoReflect() protoreflect.Message {
   233  	mi := &file_apps_policy_pb_policy_proto_msgTypes[1]
   234  	if protoimpl.UnsafeEnabled && x != nil {
   235  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   236  		if ms.LoadMessageInfo() == nil {
   237  			ms.StoreMessageInfo(mi)
   238  		}
   239  		return ms
   240  	}
   241  	return mi.MessageOf(x)
   242  }
   243  
   244  // Deprecated: Use Set.ProtoReflect.Descriptor instead.
   245  func (*Set) Descriptor() ([]byte, []int) {
   246  	return file_apps_policy_pb_policy_proto_rawDescGZIP(), []int{1}
   247  }
   248  
   249  func (x *Set) GetTotal() int64 {
   250  	if x != nil {
   251  		return x.Total
   252  	}
   253  	return 0
   254  }
   255  
   256  func (x *Set) GetItems() []*Policy {
   257  	if x != nil {
   258  		return x.Items
   259  	}
   260  	return nil
   261  }
   262  
   263  var File_apps_policy_pb_policy_proto protoreflect.FileDescriptor
   264  
   265  var file_apps_policy_pb_policy_proto_rawDesc = []byte{
   266  	0x0a, 0x1b, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x70, 0x62,
   267  	0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x69,
   268  	0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74,
   269  	0x68, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x1a, 0x18, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75,
   270  	0x73, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   271  	0x74, 0x6f, 0x1a, 0x17, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x62,
   272  	0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x70, 0x70,
   273  	0x73, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x6e,
   274  	0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19,
   275  	0x61, 0x70, 0x70, 0x73, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x70, 0x62, 0x2f, 0x65,
   276  	0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x04, 0x0a, 0x06, 0x50, 0x6f,
   277  	0x6c, 0x69, 0x63, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   278  	0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61,
   279  	0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
   280  	0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x03,
   281  	0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x16,
   282  	0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
   283  	0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
   284  	0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x72,
   285  	0x12, 0x3e, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20,
   286  	0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64,
   287  	0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73,
   288  	0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65,
   289  	0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64,
   290  	0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63,
   291  	0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08,
   292  	0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x17, 0x0a,
   293  	0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
   294  	0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18,
   295  	0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c,
   296  	0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01,
   297  	0x28, 0x03, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12,
   298  	0x39, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e,
   299  	0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75,
   300  	0x74, 0x68, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
   301  	0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x72, 0x6f,
   302  	0x6c, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61,
   303  	0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f,
   304  	0x6c, 0x65, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x45, 0x0a,
   305  	0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b,
   306  	0x32, 0x27, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65,
   307  	0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e,
   308  	0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73,
   309  	0x70, 0x61, 0x63, 0x65, 0x22, 0x54, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74,
   310  	0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61,
   311  	0x6c, 0x12, 0x37, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
   312  	0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65,
   313  	0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x50, 0x6f, 0x6c,
   314  	0x69, 0x63, 0x79, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x2b, 0x5a, 0x29, 0x67, 0x69,
   315  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f,
   316  	0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73,
   317  	0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   318  }
   319  
   320  var (
   321  	file_apps_policy_pb_policy_proto_rawDescOnce sync.Once
   322  	file_apps_policy_pb_policy_proto_rawDescData = file_apps_policy_pb_policy_proto_rawDesc
   323  )
   324  
   325  func file_apps_policy_pb_policy_proto_rawDescGZIP() []byte {
   326  	file_apps_policy_pb_policy_proto_rawDescOnce.Do(func() {
   327  		file_apps_policy_pb_policy_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_policy_pb_policy_proto_rawDescData)
   328  	})
   329  	return file_apps_policy_pb_policy_proto_rawDescData
   330  }
   331  
   332  var file_apps_policy_pb_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   333  var file_apps_policy_pb_policy_proto_goTypes = []interface{}{
   334  	(*Policy)(nil),              // 0: infraboard.keyauth.policy.Policy
   335  	(*Set)(nil),                 // 1: infraboard.keyauth.policy.Set
   336  	(types.UserType)(0),         // 2: infraboard.keyauth.user.UserType
   337  	(PolicyType)(0),             // 3: infraboard.keyauth.policy.PolicyType
   338  	(*role.Role)(nil),           // 4: infraboard.keyauth.role.Role
   339  	(*namespace.Namespace)(nil), // 5: infraboard.keyauth.namespace.Namespace
   340  }
   341  var file_apps_policy_pb_policy_proto_depIdxs = []int32{
   342  	2, // 0: infraboard.keyauth.policy.Policy.user_type:type_name -> infraboard.keyauth.user.UserType
   343  	3, // 1: infraboard.keyauth.policy.Policy.type:type_name -> infraboard.keyauth.policy.PolicyType
   344  	4, // 2: infraboard.keyauth.policy.Policy.role:type_name -> infraboard.keyauth.role.Role
   345  	5, // 3: infraboard.keyauth.policy.Policy.namespace:type_name -> infraboard.keyauth.namespace.Namespace
   346  	0, // 4: infraboard.keyauth.policy.Set.items:type_name -> infraboard.keyauth.policy.Policy
   347  	5, // [5:5] is the sub-list for method output_type
   348  	5, // [5:5] is the sub-list for method input_type
   349  	5, // [5:5] is the sub-list for extension type_name
   350  	5, // [5:5] is the sub-list for extension extendee
   351  	0, // [0:5] is the sub-list for field type_name
   352  }
   353  
   354  func init() { file_apps_policy_pb_policy_proto_init() }
   355  func file_apps_policy_pb_policy_proto_init() {
   356  	if File_apps_policy_pb_policy_proto != nil {
   357  		return
   358  	}
   359  	file_apps_policy_pb_enum_proto_init()
   360  	if !protoimpl.UnsafeEnabled {
   361  		file_apps_policy_pb_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   362  			switch v := v.(*Policy); i {
   363  			case 0:
   364  				return &v.state
   365  			case 1:
   366  				return &v.sizeCache
   367  			case 2:
   368  				return &v.unknownFields
   369  			default:
   370  				return nil
   371  			}
   372  		}
   373  		file_apps_policy_pb_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   374  			switch v := v.(*Set); i {
   375  			case 0:
   376  				return &v.state
   377  			case 1:
   378  				return &v.sizeCache
   379  			case 2:
   380  				return &v.unknownFields
   381  			default:
   382  				return nil
   383  			}
   384  		}
   385  	}
   386  	type x struct{}
   387  	out := protoimpl.TypeBuilder{
   388  		File: protoimpl.DescBuilder{
   389  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   390  			RawDescriptor: file_apps_policy_pb_policy_proto_rawDesc,
   391  			NumEnums:      0,
   392  			NumMessages:   2,
   393  			NumExtensions: 0,
   394  			NumServices:   0,
   395  		},
   396  		GoTypes:           file_apps_policy_pb_policy_proto_goTypes,
   397  		DependencyIndexes: file_apps_policy_pb_policy_proto_depIdxs,
   398  		MessageInfos:      file_apps_policy_pb_policy_proto_msgTypes,
   399  	}.Build()
   400  	File_apps_policy_pb_policy_proto = out.File
   401  	file_apps_policy_pb_policy_proto_rawDesc = nil
   402  	file_apps_policy_pb_policy_proto_goTypes = nil
   403  	file_apps_policy_pb_policy_proto_depIdxs = nil
   404  }