2 Star 0 Fork 0

jmash/rbac

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rbac_resource_message.pb.go 60.98 KB
一键复制 编辑 原始数据 按行查看 历史
百圆汽车保养 提交于 2024-04-21 19:32 . rbac
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v4.25.1
// source: jmash/rbac/protobuf/rbac_resource_message.proto
package rbac
import (
basic "gitee.com/jmash/jmash/trunk/jmash-core-gateway/src/jmash/basic"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 资源类型
type ResourceType int32
const (
// 目录
ResourceType_catalog ResourceType = 0
// 菜单
ResourceType_menu ResourceType = 1
// 其他
ResourceType_other ResourceType = 2
)
// Enum value maps for ResourceType.
var (
ResourceType_name = map[int32]string{
0: "catalog",
1: "menu",
2: "other",
}
ResourceType_value = map[string]int32{
"catalog": 0,
"menu": 1,
"other": 2,
}
)
func (x ResourceType) Enum() *ResourceType {
p := new(ResourceType)
*p = x
return p
}
func (x ResourceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ResourceType) Descriptor() protoreflect.EnumDescriptor {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_enumTypes[0].Descriptor()
}
func (ResourceType) Type() protoreflect.EnumType {
return &file_jmash_rbac_protobuf_rbac_resource_message_proto_enumTypes[0]
}
func (x ResourceType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ResourceType.Descriptor instead.
func (ResourceType) EnumDescriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{0}
}
// 资源表查询
type ResourceReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 获取资源ID及其孩子
ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// 模块ID
ModuleId string `protobuf:"bytes,5,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`
// 资源编码
ResourceCode string `protobuf:"bytes,6,opt,name=resource_code,json=resourceCode,proto3" json:"resource_code,omitempty"`
// 资源名称
LikeResourceName string `protobuf:"bytes,7,opt,name=like_resource_name,json=likeResourceName,proto3" json:"like_resource_name,omitempty"`
// 资源类型
ResourceType string `protobuf:"bytes,8,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
// 父资源ID
ParentId string `protobuf:"bytes,9,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
// 是否包含Hidden字段.
HasHidden bool `protobuf:"varint,10,opt,name=has_hidden,json=hasHidden,proto3" json:"has_hidden,omitempty"`
// 是否隐藏
Hidden_ bool `protobuf:"varint,11,opt,name=hidden_,json=hidden,proto3" json:"hidden_,omitempty"`
// 需要隐藏的资源
ExcludeId string `protobuf:"bytes,12,opt,name=exclude_id,json=excludeId,proto3" json:"exclude_id,omitempty"`
}
func (x *ResourceReq) Reset() {
*x = ResourceReq{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceReq) ProtoMessage() {}
func (x *ResourceReq) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceReq.ProtoReflect.Descriptor instead.
func (*ResourceReq) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{0}
}
func (x *ResourceReq) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *ResourceReq) GetResourceId() string {
if x != nil {
return x.ResourceId
}
return ""
}
func (x *ResourceReq) GetModuleId() string {
if x != nil {
return x.ModuleId
}
return ""
}
func (x *ResourceReq) GetResourceCode() string {
if x != nil {
return x.ResourceCode
}
return ""
}
func (x *ResourceReq) GetLikeResourceName() string {
if x != nil {
return x.LikeResourceName
}
return ""
}
func (x *ResourceReq) GetResourceType() string {
if x != nil {
return x.ResourceType
}
return ""
}
func (x *ResourceReq) GetParentId() string {
if x != nil {
return x.ParentId
}
return ""
}
func (x *ResourceReq) GetHasHidden() bool {
if x != nil {
return x.HasHidden
}
return false
}
func (x *ResourceReq) GetHidden_() bool {
if x != nil {
return x.Hidden_
}
return false
}
func (x *ResourceReq) GetExcludeId() string {
if x != nil {
return x.ExcludeId
}
return ""
}
// 资源表实体
type ResourceModel struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 资源ID
ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// 模块ID
ModuleId string `protobuf:"bytes,2,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`
// 资源编码
ResourceCode string `protobuf:"bytes,3,opt,name=resource_code,json=resourceCode,proto3" json:"resource_code,omitempty"`
// 资源名称
ResourceName string `protobuf:"bytes,4,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
// 资源类型
ResourceType string `protobuf:"bytes,5,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
// 父资源ID
ParentId string `protobuf:"bytes,6,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
// 深度
Depth_ int32 `protobuf:"varint,7,opt,name=depth_,json=depth,proto3" json:"depth_,omitempty"`
// 排序
OrderBy int32 `protobuf:"varint,8,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// 目标
Target_ string `protobuf:"bytes,9,opt,name=target_,json=target,proto3" json:"target_,omitempty"`
// URL
Url_ string `protobuf:"bytes,10,opt,name=url_,json=url,proto3" json:"url_,omitempty"`
// 是否隐藏
Hidden_ bool `protobuf:"varint,11,opt,name=hidden_,json=hidden,proto3" json:"hidden_,omitempty"`
// 孩子资源列表
Children []*ResourceModel `protobuf:"bytes,12,rep,name=children,proto3" json:"children,omitempty"`
// 操作编码列表
OperCodes []string `protobuf:"bytes,13,rep,name=oper_codes,json=operCodes,proto3" json:"oper_codes,omitempty"`
// 模块名称
ModuleName string `protobuf:"bytes,14,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
// 图标
Icon_ string `protobuf:"bytes,15,opt,name=icon_,json=icon,proto3" json:"icon_,omitempty"`
}
func (x *ResourceModel) Reset() {
*x = ResourceModel{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceModel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceModel) ProtoMessage() {}
func (x *ResourceModel) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceModel.ProtoReflect.Descriptor instead.
func (*ResourceModel) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{1}
}
func (x *ResourceModel) GetResourceId() string {
if x != nil {
return x.ResourceId
}
return ""
}
func (x *ResourceModel) GetModuleId() string {
if x != nil {
return x.ModuleId
}
return ""
}
func (x *ResourceModel) GetResourceCode() string {
if x != nil {
return x.ResourceCode
}
return ""
}
func (x *ResourceModel) GetResourceName() string {
if x != nil {
return x.ResourceName
}
return ""
}
func (x *ResourceModel) GetResourceType() string {
if x != nil {
return x.ResourceType
}
return ""
}
func (x *ResourceModel) GetParentId() string {
if x != nil {
return x.ParentId
}
return ""
}
func (x *ResourceModel) GetDepth_() int32 {
if x != nil {
return x.Depth_
}
return 0
}
func (x *ResourceModel) GetOrderBy() int32 {
if x != nil {
return x.OrderBy
}
return 0
}
func (x *ResourceModel) GetTarget_() string {
if x != nil {
return x.Target_
}
return ""
}
func (x *ResourceModel) GetUrl_() string {
if x != nil {
return x.Url_
}
return ""
}
func (x *ResourceModel) GetHidden_() bool {
if x != nil {
return x.Hidden_
}
return false
}
func (x *ResourceModel) GetChildren() []*ResourceModel {
if x != nil {
return x.Children
}
return nil
}
func (x *ResourceModel) GetOperCodes() []string {
if x != nil {
return x.OperCodes
}
return nil
}
func (x *ResourceModel) GetModuleName() string {
if x != nil {
return x.ModuleName
}
return ""
}
func (x *ResourceModel) GetIcon_() string {
if x != nil {
return x.Icon_
}
return ""
}
// 资源表列表
type ResourceList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 当前页内容
Results []*ResourceModel `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
}
func (x *ResourceList) Reset() {
*x = ResourceList{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceList) ProtoMessage() {}
func (x *ResourceList) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceList.ProtoReflect.Descriptor instead.
func (*ResourceList) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{2}
}
func (x *ResourceList) GetResults() []*ResourceModel {
if x != nil {
return x.Results
}
return nil
}
// 资源表分页
type ResourcePage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 当前页内容
Results []*ResourceModel `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// 当前页码
CurPage int32 `protobuf:"varint,2,opt,name=cur_page,json=curPage,proto3" json:"cur_page,omitempty"`
// 页尺寸
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 总记录数
TotalSize int32 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
// 本页小计
SubTotalDto *ResourceModelTotal `protobuf:"bytes,5,opt,name=sub_total_dto,json=subTotalDto,proto3" json:"sub_total_dto,omitempty"`
// 合计
TotalDto *ResourceModelTotal `protobuf:"bytes,6,opt,name=total_dto,json=totalDto,proto3" json:"total_dto,omitempty"`
}
func (x *ResourcePage) Reset() {
*x = ResourcePage{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourcePage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourcePage) ProtoMessage() {}
func (x *ResourcePage) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourcePage.ProtoReflect.Descriptor instead.
func (*ResourcePage) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{3}
}
func (x *ResourcePage) GetResults() []*ResourceModel {
if x != nil {
return x.Results
}
return nil
}
func (x *ResourcePage) GetCurPage() int32 {
if x != nil {
return x.CurPage
}
return 0
}
func (x *ResourcePage) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ResourcePage) GetTotalSize() int32 {
if x != nil {
return x.TotalSize
}
return 0
}
func (x *ResourcePage) GetSubTotalDto() *ResourceModelTotal {
if x != nil {
return x.SubTotalDto
}
return nil
}
func (x *ResourcePage) GetTotalDto() *ResourceModelTotal {
if x != nil {
return x.TotalDto
}
return nil
}
// 合计
type ResourceModelTotal struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 总记录数
TotalSize int32 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
}
func (x *ResourceModelTotal) Reset() {
*x = ResourceModelTotal{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceModelTotal) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceModelTotal) ProtoMessage() {}
func (x *ResourceModelTotal) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceModelTotal.ProtoReflect.Descriptor instead.
func (*ResourceModelTotal) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{4}
}
func (x *ResourceModelTotal) GetTotalSize() int32 {
if x != nil {
return x.TotalSize
}
return 0
}
// 资源表List
type ResourceKey struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
}
func (x *ResourceKey) Reset() {
*x = ResourceKey{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceKey) ProtoMessage() {}
func (x *ResourceKey) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceKey.ProtoReflect.Descriptor instead.
func (*ResourceKey) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{5}
}
func (x *ResourceKey) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *ResourceKey) GetResourceId() string {
if x != nil {
return x.ResourceId
}
return ""
}
// 资源表List
type ResourceKeyList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
ResourceId []string `protobuf:"bytes,2,rep,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
}
func (x *ResourceKeyList) Reset() {
*x = ResourceKeyList{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceKeyList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceKeyList) ProtoMessage() {}
func (x *ResourceKeyList) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceKeyList.ProtoReflect.Descriptor instead.
func (*ResourceKeyList) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{6}
}
func (x *ResourceKeyList) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *ResourceKeyList) GetResourceId() []string {
if x != nil {
return x.ResourceId
}
return nil
}
// 资源表新增实体
type ResourceCreateReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 用于检测重复请求的唯一字符串ID
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// 如果为true,则表示给定的请求仅需要被检验,而不是被执行
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// 模块ID
ModuleId string `protobuf:"bytes,4,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`
// 资源编码
ResourceCode string `protobuf:"bytes,5,opt,name=resource_code,json=resourceCode,proto3" json:"resource_code,omitempty"`
// 资源名称
ResourceName string `protobuf:"bytes,6,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
// 资源类型
ResourceType ResourceType `protobuf:"varint,7,opt,name=resource_type,json=resourceType,proto3,enum=jmash.rbac.ResourceType" json:"resource_type,omitempty"`
// 父资源ID
ParentId string `protobuf:"bytes,8,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
// 目标
Target_ string `protobuf:"bytes,9,opt,name=target_,json=target,proto3" json:"target_,omitempty"`
// URL
Url_ string `protobuf:"bytes,10,opt,name=url_,json=url,proto3" json:"url_,omitempty"`
// 是否隐藏
Hidden_ bool `protobuf:"varint,11,opt,name=hidden_,json=hidden,proto3" json:"hidden_,omitempty"`
// 图标
Icon_ string `protobuf:"bytes,12,opt,name=icon_,json=icon,proto3" json:"icon_,omitempty"`
// 操作ID列表
OperCodes []string `protobuf:"bytes,13,rep,name=oper_codes,json=operCodes,proto3" json:"oper_codes,omitempty"`
}
func (x *ResourceCreateReq) Reset() {
*x = ResourceCreateReq{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceCreateReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceCreateReq) ProtoMessage() {}
func (x *ResourceCreateReq) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceCreateReq.ProtoReflect.Descriptor instead.
func (*ResourceCreateReq) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{7}
}
func (x *ResourceCreateReq) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *ResourceCreateReq) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
func (x *ResourceCreateReq) GetValidateOnly() bool {
if x != nil {
return x.ValidateOnly
}
return false
}
func (x *ResourceCreateReq) GetModuleId() string {
if x != nil {
return x.ModuleId
}
return ""
}
func (x *ResourceCreateReq) GetResourceCode() string {
if x != nil {
return x.ResourceCode
}
return ""
}
func (x *ResourceCreateReq) GetResourceName() string {
if x != nil {
return x.ResourceName
}
return ""
}
func (x *ResourceCreateReq) GetResourceType() ResourceType {
if x != nil {
return x.ResourceType
}
return ResourceType_catalog
}
func (x *ResourceCreateReq) GetParentId() string {
if x != nil {
return x.ParentId
}
return ""
}
func (x *ResourceCreateReq) GetTarget_() string {
if x != nil {
return x.Target_
}
return ""
}
func (x *ResourceCreateReq) GetUrl_() string {
if x != nil {
return x.Url_
}
return ""
}
func (x *ResourceCreateReq) GetHidden_() bool {
if x != nil {
return x.Hidden_
}
return false
}
func (x *ResourceCreateReq) GetIcon_() string {
if x != nil {
return x.Icon_
}
return ""
}
func (x *ResourceCreateReq) GetOperCodes() []string {
if x != nil {
return x.OperCodes
}
return nil
}
// 资源表修改实体
type ResourceUpdateReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 用于检测重复请求的唯一字符串ID
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// 如果为true,则表示给定的请求仅需要被检验,而不是被执行
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// 更新字段掩码.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// 资源ID
ResourceId string `protobuf:"bytes,5,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// 模块ID
ModuleId string `protobuf:"bytes,6,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`
// 资源编码
ResourceCode string `protobuf:"bytes,7,opt,name=resource_code,json=resourceCode,proto3" json:"resource_code,omitempty"`
// 资源名称
ResourceName string `protobuf:"bytes,8,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
// 资源类型
ResourceType ResourceType `protobuf:"varint,9,opt,name=resource_type,json=resourceType,proto3,enum=jmash.rbac.ResourceType" json:"resource_type,omitempty"`
// 父资源ID
ParentId string `protobuf:"bytes,10,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
// 目标
Target_ string `protobuf:"bytes,11,opt,name=target_,json=target,proto3" json:"target_,omitempty"`
// URL
Url_ string `protobuf:"bytes,12,opt,name=url_,json=url,proto3" json:"url_,omitempty"`
// 是否隐藏
Hidden_ bool `protobuf:"varint,13,opt,name=hidden_,json=hidden,proto3" json:"hidden_,omitempty"`
// 图标
Icon_ string `protobuf:"bytes,14,opt,name=icon_,json=icon,proto3" json:"icon_,omitempty"`
// 操作ID列表
OperCodes []string `protobuf:"bytes,15,rep,name=oper_codes,json=operCodes,proto3" json:"oper_codes,omitempty"`
}
func (x *ResourceUpdateReq) Reset() {
*x = ResourceUpdateReq{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceUpdateReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceUpdateReq) ProtoMessage() {}
func (x *ResourceUpdateReq) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceUpdateReq.ProtoReflect.Descriptor instead.
func (*ResourceUpdateReq) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{8}
}
func (x *ResourceUpdateReq) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *ResourceUpdateReq) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
func (x *ResourceUpdateReq) GetValidateOnly() bool {
if x != nil {
return x.ValidateOnly
}
return false
}
func (x *ResourceUpdateReq) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
func (x *ResourceUpdateReq) GetResourceId() string {
if x != nil {
return x.ResourceId
}
return ""
}
func (x *ResourceUpdateReq) GetModuleId() string {
if x != nil {
return x.ModuleId
}
return ""
}
func (x *ResourceUpdateReq) GetResourceCode() string {
if x != nil {
return x.ResourceCode
}
return ""
}
func (x *ResourceUpdateReq) GetResourceName() string {
if x != nil {
return x.ResourceName
}
return ""
}
func (x *ResourceUpdateReq) GetResourceType() ResourceType {
if x != nil {
return x.ResourceType
}
return ResourceType_catalog
}
func (x *ResourceUpdateReq) GetParentId() string {
if x != nil {
return x.ParentId
}
return ""
}
func (x *ResourceUpdateReq) GetTarget_() string {
if x != nil {
return x.Target_
}
return ""
}
func (x *ResourceUpdateReq) GetUrl_() string {
if x != nil {
return x.Url_
}
return ""
}
func (x *ResourceUpdateReq) GetHidden_() bool {
if x != nil {
return x.Hidden_
}
return false
}
func (x *ResourceUpdateReq) GetIcon_() string {
if x != nil {
return x.Icon_
}
return ""
}
func (x *ResourceUpdateReq) GetOperCodes() []string {
if x != nil {
return x.OperCodes
}
return nil
}
type ResourceExportReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 标题
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// 字段列表
TableHeads []*basic.TableHead `protobuf:"bytes,3,rep,name=table_heads,json=tableHeads,proto3" json:"table_heads,omitempty"`
// 显示文件名
FileName string `protobuf:"bytes,4,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
// 资源ID
ResourceId string `protobuf:"bytes,5,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// 筛选条件
Req *ResourceReq `protobuf:"bytes,6,opt,name=req,proto3" json:"req,omitempty"`
}
func (x *ResourceExportReq) Reset() {
*x = ResourceExportReq{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceExportReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceExportReq) ProtoMessage() {}
func (x *ResourceExportReq) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceExportReq.ProtoReflect.Descriptor instead.
func (*ResourceExportReq) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{9}
}
func (x *ResourceExportReq) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *ResourceExportReq) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *ResourceExportReq) GetTableHeads() []*basic.TableHead {
if x != nil {
return x.TableHeads
}
return nil
}
func (x *ResourceExportReq) GetFileName() string {
if x != nil {
return x.FileName
}
return ""
}
func (x *ResourceExportReq) GetResourceId() string {
if x != nil {
return x.ResourceId
}
return ""
}
func (x *ResourceExportReq) GetReq() *ResourceReq {
if x != nil {
return x.Req
}
return nil
}
// 资源导入请求
type ResourceImportReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 用于检测重复请求的唯一字符串ID
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// 文件名
FileNames string `protobuf:"bytes,3,opt,name=file_names,json=fileNames,proto3" json:"file_names,omitempty"`
// 是否新增标识
AddFlag bool `protobuf:"varint,4,opt,name=add_flag,json=addFlag,proto3" json:"add_flag,omitempty"`
// 更新字段掩码.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *ResourceImportReq) Reset() {
*x = ResourceImportReq{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceImportReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceImportReq) ProtoMessage() {}
func (x *ResourceImportReq) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceImportReq.ProtoReflect.Descriptor instead.
func (*ResourceImportReq) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{10}
}
func (x *ResourceImportReq) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *ResourceImportReq) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
func (x *ResourceImportReq) GetFileNames() string {
if x != nil {
return x.FileNames
}
return ""
}
func (x *ResourceImportReq) GetAddFlag() bool {
if x != nil {
return x.AddFlag
}
return false
}
func (x *ResourceImportReq) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
// 校验资源信息
type VerifyResourceReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 资源路径
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
}
func (x *VerifyResourceReq) Reset() {
*x = VerifyResourceReq{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VerifyResourceReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VerifyResourceReq) ProtoMessage() {}
func (x *VerifyResourceReq) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VerifyResourceReq.ProtoReflect.Descriptor instead.
func (*VerifyResourceReq) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{11}
}
func (x *VerifyResourceReq) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *VerifyResourceReq) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
type ResourceMoveKey struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 租户.
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
// 资源ID
ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// 移动方式
Up bool `protobuf:"varint,3,opt,name=up,proto3" json:"up,omitempty"`
}
func (x *ResourceMoveKey) Reset() {
*x = ResourceMoveKey{}
if protoimpl.UnsafeEnabled {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceMoveKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceMoveKey) ProtoMessage() {}
func (x *ResourceMoveKey) ProtoReflect() protoreflect.Message {
mi := &file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceMoveKey.ProtoReflect.Descriptor instead.
func (*ResourceMoveKey) Descriptor() ([]byte, []int) {
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP(), []int{12}
}
func (x *ResourceMoveKey) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *ResourceMoveKey) GetResourceId() string {
if x != nil {
return x.ResourceId
}
return ""
}
func (x *ResourceMoveKey) GetUp() bool {
if x != nil {
return x.Up
}
return false
}
var File_jmash_rbac_protobuf_rbac_resource_message_proto protoreflect.FileDescriptor
var file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDesc = []byte{
0x0a, 0x2f, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2f, 0x72, 0x62, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x72, 0x62, 0x61, 0x63, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x0a, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x1a, 0x20, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66,
0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x1a, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
0x62, 0x61, 0x73, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x02, 0x0a, 0x0b,
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74,
0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e,
0x61, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x69,
0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49,
0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f,
0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x69, 0x6b, 0x65, 0x5f, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01,
0x28, 0x09, 0x52, 0x10, 0x6c, 0x69, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72,
0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x68, 0x69,
0x64, 0x64, 0x65, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x48,
0x69, 0x64, 0x64, 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x5f,
0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x12, 0x1d,
0x0a, 0x0a, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x49, 0x64, 0x22, 0xdc, 0x03,
0x0a, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12,
0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64,
0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a,
0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f,
0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09,
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x64, 0x65, 0x70,
0x74, 0x68, 0x5f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x64, 0x65, 0x70, 0x74, 0x68,
0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x08, 0x20, 0x01,
0x28, 0x05, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x74,
0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61,
0x72, 0x67, 0x65, 0x74, 0x12, 0x11, 0x0a, 0x04, 0x75, 0x72, 0x6c, 0x5f, 0x18, 0x0a, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x69, 0x64, 0x64, 0x65,
0x6e, 0x5f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e,
0x12, 0x35, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x0c, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e,
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x08, 0x63,
0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x5f,
0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x65,
0x72, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x64,
0x75, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x13, 0x0a, 0x05, 0x69, 0x63, 0x6f, 0x6e, 0x5f,
0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x22, 0x43, 0x0a, 0x0c,
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x07,
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e,
0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
0x73, 0x22, 0x9b, 0x02, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61,
0x67, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63,
0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x07,
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x5f, 0x70,
0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x75, 0x72, 0x50, 0x61,
0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20,
0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x42,
0x0a, 0x0d, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x74, 0x6f, 0x18,
0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62,
0x61, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c,
0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x44,
0x74, 0x6f, 0x12, 0x3b, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x74, 0x6f, 0x18,
0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62,
0x61, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c,
0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x74, 0x6f, 0x22,
0x33, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c,
0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73,
0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c,
0x53, 0x69, 0x7a, 0x65, 0x22, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x0f,
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12,
0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x22, 0xab, 0x03, 0x0a, 0x11, 0x52, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16,
0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x6f,
0x64, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d,
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d,
0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79,
0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68,
0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79,
0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65,
0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20,
0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a,
0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x11, 0x0a, 0x04, 0x75, 0x72, 0x6c, 0x5f, 0x18, 0x0a,
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x69, 0x64,
0x64, 0x65, 0x6e, 0x5f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x69, 0x64, 0x64,
0x65, 0x6e, 0x12, 0x13, 0x0a, 0x05, 0x69, 0x63, 0x6f, 0x6e, 0x5f, 0x18, 0x0c, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x5f,
0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x65,
0x72, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x89, 0x04, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06,
0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65,
0x6e, 0x61, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f,
0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69,
0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,
0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
0x63, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a,
0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61,
0x63, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09,
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52,
0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x72,
0x67, 0x65, 0x74, 0x5f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67,
0x65, 0x74, 0x12, 0x11, 0x0a, 0x04, 0x75, 0x72, 0x6c, 0x5f, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09,
0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x5f,
0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x12, 0x13,
0x0a, 0x05, 0x69, 0x63, 0x6f, 0x6e, 0x5f, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69,
0x63, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65,
0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x43, 0x6f, 0x64,
0x65, 0x73, 0x22, 0xe6, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45,
0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61,
0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74,
0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
0x68, 0x65, 0x61, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6a, 0x6d,
0x61, 0x73, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x61, 0x62,
0x6c, 0x65, 0x48, 0x65, 0x61, 0x64, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x65, 0x61,
0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64,
0x12, 0x29, 0x0a, 0x03, 0x72, 0x65, 0x71, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x52, 0x03, 0x72, 0x65, 0x71, 0x22, 0xc1, 0x01, 0x0a, 0x11,
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65,
0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69,
0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x64, 0x64, 0x5f, 0x66,
0x6c, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x61, 0x64, 0x64, 0x46, 0x6c,
0x61, 0x67, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,
0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d,
0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22,
0x3d, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03,
0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x5a,
0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x76, 0x65, 0x4b, 0x65,
0x79, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x75, 0x70,
0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x75, 0x70, 0x2a, 0x54, 0x0a, 0x0c, 0x52, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x61,
0x74, 0x61, 0x6c, 0x6f, 0x67, 0x10, 0x00, 0x1a, 0x0a, 0x8a, 0xb5, 0x18, 0x06, 0xe7, 0x9b, 0xae,
0xe5, 0xbd, 0x95, 0x12, 0x14, 0x0a, 0x04, 0x6d, 0x65, 0x6e, 0x75, 0x10, 0x01, 0x1a, 0x0a, 0x8a,
0xb5, 0x18, 0x06, 0xe8, 0x8f, 0x9c, 0xe5, 0x8d, 0x95, 0x12, 0x15, 0x0a, 0x05, 0x6f, 0x74, 0x68,
0x65, 0x72, 0x10, 0x02, 0x1a, 0x0a, 0x8a, 0xb5, 0x18, 0x06, 0xe5, 0x85, 0xb6, 0xe4, 0xbb, 0x96,
0x42, 0x37, 0x0a, 0x13, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x0f, 0x6a, 0x6d, 0x61, 0x73, 0x68, 0x2f,
0x72, 0x62, 0x61, 0x63, 0x3b, 0x72, 0x62, 0x61, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescOnce sync.Once
file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescData = file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDesc
)
func file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescGZIP() []byte {
file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescOnce.Do(func() {
file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescData)
})
return file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDescData
}
var file_jmash_rbac_protobuf_rbac_resource_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_jmash_rbac_protobuf_rbac_resource_message_proto_goTypes = []interface{}{
(ResourceType)(0), // 0: jmash.rbac.ResourceType
(*ResourceReq)(nil), // 1: jmash.rbac.ResourceReq
(*ResourceModel)(nil), // 2: jmash.rbac.ResourceModel
(*ResourceList)(nil), // 3: jmash.rbac.ResourceList
(*ResourcePage)(nil), // 4: jmash.rbac.ResourcePage
(*ResourceModelTotal)(nil), // 5: jmash.rbac.ResourceModelTotal
(*ResourceKey)(nil), // 6: jmash.rbac.ResourceKey
(*ResourceKeyList)(nil), // 7: jmash.rbac.ResourceKeyList
(*ResourceCreateReq)(nil), // 8: jmash.rbac.ResourceCreateReq
(*ResourceUpdateReq)(nil), // 9: jmash.rbac.ResourceUpdateReq
(*ResourceExportReq)(nil), // 10: jmash.rbac.ResourceExportReq
(*ResourceImportReq)(nil), // 11: jmash.rbac.ResourceImportReq
(*VerifyResourceReq)(nil), // 12: jmash.rbac.VerifyResourceReq
(*ResourceMoveKey)(nil), // 13: jmash.rbac.ResourceMoveKey
(*fieldmaskpb.FieldMask)(nil), // 14: google.protobuf.FieldMask
(*basic.TableHead)(nil), // 15: jmash.protobuf.TableHead
}
var file_jmash_rbac_protobuf_rbac_resource_message_proto_depIdxs = []int32{
2, // 0: jmash.rbac.ResourceModel.children:type_name -> jmash.rbac.ResourceModel
2, // 1: jmash.rbac.ResourceList.results:type_name -> jmash.rbac.ResourceModel
2, // 2: jmash.rbac.ResourcePage.results:type_name -> jmash.rbac.ResourceModel
5, // 3: jmash.rbac.ResourcePage.sub_total_dto:type_name -> jmash.rbac.ResourceModelTotal
5, // 4: jmash.rbac.ResourcePage.total_dto:type_name -> jmash.rbac.ResourceModelTotal
0, // 5: jmash.rbac.ResourceCreateReq.resource_type:type_name -> jmash.rbac.ResourceType
14, // 6: jmash.rbac.ResourceUpdateReq.update_mask:type_name -> google.protobuf.FieldMask
0, // 7: jmash.rbac.ResourceUpdateReq.resource_type:type_name -> jmash.rbac.ResourceType
15, // 8: jmash.rbac.ResourceExportReq.table_heads:type_name -> jmash.protobuf.TableHead
1, // 9: jmash.rbac.ResourceExportReq.req:type_name -> jmash.rbac.ResourceReq
14, // 10: jmash.rbac.ResourceImportReq.update_mask:type_name -> google.protobuf.FieldMask
11, // [11:11] is the sub-list for method output_type
11, // [11:11] is the sub-list for method input_type
11, // [11:11] is the sub-list for extension type_name
11, // [11:11] is the sub-list for extension extendee
0, // [0:11] is the sub-list for field type_name
}
func init() { file_jmash_rbac_protobuf_rbac_resource_message_proto_init() }
func file_jmash_rbac_protobuf_rbac_resource_message_proto_init() {
if File_jmash_rbac_protobuf_rbac_resource_message_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceModel); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceList); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourcePage); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceModelTotal); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceKey); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceKeyList); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceCreateReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceUpdateReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceExportReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceImportReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*VerifyResourceReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ResourceMoveKey); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDesc,
NumEnums: 1,
NumMessages: 13,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_jmash_rbac_protobuf_rbac_resource_message_proto_goTypes,
DependencyIndexes: file_jmash_rbac_protobuf_rbac_resource_message_proto_depIdxs,
EnumInfos: file_jmash_rbac_protobuf_rbac_resource_message_proto_enumTypes,
MessageInfos: file_jmash_rbac_protobuf_rbac_resource_message_proto_msgTypes,
}.Build()
File_jmash_rbac_protobuf_rbac_resource_message_proto = out.File
file_jmash_rbac_protobuf_rbac_resource_message_proto_rawDesc = nil
file_jmash_rbac_protobuf_rbac_resource_message_proto_goTypes = nil
file_jmash_rbac_protobuf_rbac_resource_message_proto_depIdxs = nil
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/jmash/rbac.git
git@gitee.com:jmash/rbac.git
jmash
rbac
rbac
70d519264d5b

搜索帮助