validate.pb.go 102 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617
  1. // Copyright 2025 Kuban Technologies
  2. //
  3. // 自定义字段验证框架 - 基于 buf/validate 优化设计
  4. // 提供简化的 API、中文支持和业务规则集成
  5. // Code generated by protoc-gen-go. DO NOT EDIT.
  6. // versions:
  7. // protoc-gen-go v1.36.6-modify
  8. // protoc v6.31.1
  9. // source: kuban/api/validate/validate.proto
  10. package validate
  11. import (
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. descriptorpb "google.golang.org/protobuf/types/descriptorpb"
  15. reflect "reflect"
  16. sync "sync"
  17. unsafe "unsafe"
  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. type IgnoreRule int32
  27. const (
  28. // 未指定 - 默认行为(字段未设置时不验证)
  29. IgnoreRule_IGNORE_UNSPECIFIED IgnoreRule = 0
  30. // 字段为零值时忽略验证
  31. IgnoreRule_IGNORE_IF_ZERO IgnoreRule = 1
  32. // 始终忽略验证
  33. IgnoreRule_IGNORE_ALWAYS IgnoreRule = 2
  34. // 从不忽略验证(即使未设置也验证)
  35. IgnoreRule_IGNORE_NEVER IgnoreRule = 3
  36. )
  37. // Enum value maps for IgnoreRule.
  38. var (
  39. IgnoreRule_name = map[int32]string{
  40. 0: "IGNORE_UNSPECIFIED",
  41. 1: "IGNORE_IF_ZERO",
  42. 2: "IGNORE_ALWAYS",
  43. 3: "IGNORE_NEVER",
  44. }
  45. IgnoreRule_value = map[string]int32{
  46. "IGNORE_UNSPECIFIED": 0,
  47. "IGNORE_IF_ZERO": 1,
  48. "IGNORE_ALWAYS": 2,
  49. "IGNORE_NEVER": 3,
  50. }
  51. )
  52. func (x IgnoreRule) Enum() *IgnoreRule {
  53. p := new(IgnoreRule)
  54. *p = x
  55. return p
  56. }
  57. func (x IgnoreRule) String() string {
  58. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  59. }
  60. func (IgnoreRule) Descriptor() protoreflect.EnumDescriptor {
  61. return file_kuban_api_validate_validate_proto_enumTypes[0].Descriptor()
  62. }
  63. func (IgnoreRule) Type() protoreflect.EnumType {
  64. return &file_kuban_api_validate_validate_proto_enumTypes[0]
  65. }
  66. func (x IgnoreRule) Number() protoreflect.EnumNumber {
  67. return protoreflect.EnumNumber(x)
  68. }
  69. // Deprecated: Use IgnoreRule.Descriptor instead.
  70. func (IgnoreRule) EnumDescriptor() ([]byte, []int) {
  71. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{0}
  72. }
  73. // CEL 验证规则
  74. // 使用 Common Expression Language 编写自定义验证逻辑
  75. type Rule struct {
  76. state protoimpl.MessageState `protogen:"open.v1"`
  77. // 规则唯一标识符
  78. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
  79. // 错误消息(中文)
  80. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message"`
  81. // 错误消息(英文) - 可选,用于国际化
  82. MessageEn string `protobuf:"bytes,3,opt,name=message_en,json=messageEn,proto3" json:"message_en"`
  83. // CEL 表达式 - 返回 true 表示验证通过
  84. Expression string `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression"`
  85. unknownFields protoimpl.UnknownFields
  86. sizeCache protoimpl.SizeCache
  87. }
  88. func (x *Rule) Reset() {
  89. *x = Rule{}
  90. mi := &file_kuban_api_validate_validate_proto_msgTypes[0]
  91. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  92. ms.StoreMessageInfo(mi)
  93. }
  94. func (x *Rule) String() string {
  95. return protoimpl.X.MessageStringOf(x)
  96. }
  97. func (*Rule) ProtoMessage() {}
  98. func (x *Rule) ProtoReflect() protoreflect.Message {
  99. mi := &file_kuban_api_validate_validate_proto_msgTypes[0]
  100. if x != nil {
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. if ms.LoadMessageInfo() == nil {
  103. ms.StoreMessageInfo(mi)
  104. }
  105. return ms
  106. }
  107. return mi.MessageOf(x)
  108. }
  109. // Deprecated: Use Rule.ProtoReflect.Descriptor instead.
  110. func (*Rule) Descriptor() ([]byte, []int) {
  111. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{0}
  112. }
  113. func (x *Rule) GetId() string {
  114. if x != nil {
  115. return x.Id
  116. }
  117. return ""
  118. }
  119. func (x *Rule) GetMessage() string {
  120. if x != nil {
  121. return x.Message
  122. }
  123. return ""
  124. }
  125. func (x *Rule) GetMessageEn() string {
  126. if x != nil {
  127. return x.MessageEn
  128. }
  129. return ""
  130. }
  131. func (x *Rule) GetExpression() string {
  132. if x != nil {
  133. return x.Expression
  134. }
  135. return ""
  136. }
  137. // 消息级别验证规则
  138. type MessageRules struct {
  139. state protoimpl.MessageState `protogen:"open.v1"`
  140. // CEL 自定义规则列表
  141. Cel []*Rule `protobuf:"bytes,1,rep,name=cel,proto3" json:"cel"`
  142. // 是否禁用所有字段验证
  143. Disabled bool `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled"`
  144. // 验证组 - 用于分组验证
  145. Groups []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups"`
  146. unknownFields protoimpl.UnknownFields
  147. sizeCache protoimpl.SizeCache
  148. }
  149. func (x *MessageRules) Reset() {
  150. *x = MessageRules{}
  151. mi := &file_kuban_api_validate_validate_proto_msgTypes[1]
  152. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  153. ms.StoreMessageInfo(mi)
  154. }
  155. func (x *MessageRules) String() string {
  156. return protoimpl.X.MessageStringOf(x)
  157. }
  158. func (*MessageRules) ProtoMessage() {}
  159. func (x *MessageRules) ProtoReflect() protoreflect.Message {
  160. mi := &file_kuban_api_validate_validate_proto_msgTypes[1]
  161. if x != nil {
  162. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  163. if ms.LoadMessageInfo() == nil {
  164. ms.StoreMessageInfo(mi)
  165. }
  166. return ms
  167. }
  168. return mi.MessageOf(x)
  169. }
  170. // Deprecated: Use MessageRules.ProtoReflect.Descriptor instead.
  171. func (*MessageRules) Descriptor() ([]byte, []int) {
  172. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{1}
  173. }
  174. func (x *MessageRules) GetCel() []*Rule {
  175. if x != nil {
  176. return x.Cel
  177. }
  178. return nil
  179. }
  180. func (x *MessageRules) GetDisabled() bool {
  181. if x != nil {
  182. return x.Disabled
  183. }
  184. return false
  185. }
  186. func (x *MessageRules) GetGroups() []string {
  187. if x != nil {
  188. return x.Groups
  189. }
  190. return nil
  191. }
  192. // Oneof 验证规则
  193. type OneofRules struct {
  194. state protoimpl.MessageState `protogen:"open.v1"`
  195. // 是否必须选择一个字段
  196. Required bool `protobuf:"varint,1,opt,name=required,proto3" json:"required"`
  197. unknownFields protoimpl.UnknownFields
  198. sizeCache protoimpl.SizeCache
  199. }
  200. func (x *OneofRules) Reset() {
  201. *x = OneofRules{}
  202. mi := &file_kuban_api_validate_validate_proto_msgTypes[2]
  203. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  204. ms.StoreMessageInfo(mi)
  205. }
  206. func (x *OneofRules) String() string {
  207. return protoimpl.X.MessageStringOf(x)
  208. }
  209. func (*OneofRules) ProtoMessage() {}
  210. func (x *OneofRules) ProtoReflect() protoreflect.Message {
  211. mi := &file_kuban_api_validate_validate_proto_msgTypes[2]
  212. if x != nil {
  213. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  214. if ms.LoadMessageInfo() == nil {
  215. ms.StoreMessageInfo(mi)
  216. }
  217. return ms
  218. }
  219. return mi.MessageOf(x)
  220. }
  221. // Deprecated: Use OneofRules.ProtoReflect.Descriptor instead.
  222. func (*OneofRules) Descriptor() ([]byte, []int) {
  223. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{2}
  224. }
  225. func (x *OneofRules) GetRequired() bool {
  226. if x != nil {
  227. return x.Required
  228. }
  229. return false
  230. }
  231. // 字段级别验证规则
  232. type FieldRules struct {
  233. state protoimpl.MessageState `protogen:"open.v1"`
  234. // CEL 自定义规则列表
  235. Cel []*Rule `protobuf:"bytes,1,rep,name=cel,proto3" json:"cel"`
  236. // 字段是否必填 (Proto3 不需要 optional 关键字)
  237. Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required"`
  238. // 忽略策略
  239. Ignore IgnoreRule `protobuf:"varint,3,opt,name=ignore,proto3,enum=kuban.api.validate.IgnoreRule" json:"ignore"`
  240. // 验证组 - 只在指定组中验证
  241. Groups []string `protobuf:"bytes,4,rep,name=groups,proto3" json:"groups"`
  242. // 通用错误消息(中文) - 覆盖所有验证规则的默认消息
  243. ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message"`
  244. // 通用错误消息(英文)
  245. ErrorMessageEn string `protobuf:"bytes,6,opt,name=error_message_en,json=errorMessageEn,proto3" json:"error_message_en"`
  246. // required 验证专用错误消息(中文)
  247. RequiredMessage string `protobuf:"bytes,7,opt,name=required_message,json=requiredMessage,proto3" json:"required_message"`
  248. // required 验证专用错误消息(英文)
  249. RequiredMessageEn string `protobuf:"bytes,8,opt,name=required_message_en,json=requiredMessageEn,proto3" json:"required_message_en"`
  250. // 类型特定的验证规则
  251. //
  252. // Types that are valid to be assigned to Type:
  253. //
  254. // *FieldRules_Float
  255. // *FieldRules_Double
  256. // *FieldRules_Int32
  257. // *FieldRules_Int64
  258. // *FieldRules_Uint32
  259. // *FieldRules_Uint64
  260. // *FieldRules_Sint32
  261. // *FieldRules_Sint64
  262. // *FieldRules_Fixed32
  263. // *FieldRules_Fixed64
  264. // *FieldRules_Sfixed32
  265. // *FieldRules_Sfixed64
  266. // *FieldRules_Bool
  267. // *FieldRules_String_
  268. // *FieldRules_Bytes
  269. // *FieldRules_Enum
  270. // *FieldRules_Repeated
  271. // *FieldRules_Map
  272. // *FieldRules_Duration
  273. // *FieldRules_Timestamp
  274. Type isFieldRules_Type `protobuf_oneof:"type"`
  275. unknownFields protoimpl.UnknownFields
  276. sizeCache protoimpl.SizeCache
  277. }
  278. func (x *FieldRules) Reset() {
  279. *x = FieldRules{}
  280. mi := &file_kuban_api_validate_validate_proto_msgTypes[3]
  281. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  282. ms.StoreMessageInfo(mi)
  283. }
  284. func (x *FieldRules) String() string {
  285. return protoimpl.X.MessageStringOf(x)
  286. }
  287. func (*FieldRules) ProtoMessage() {}
  288. func (x *FieldRules) ProtoReflect() protoreflect.Message {
  289. mi := &file_kuban_api_validate_validate_proto_msgTypes[3]
  290. if x != nil {
  291. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  292. if ms.LoadMessageInfo() == nil {
  293. ms.StoreMessageInfo(mi)
  294. }
  295. return ms
  296. }
  297. return mi.MessageOf(x)
  298. }
  299. // Deprecated: Use FieldRules.ProtoReflect.Descriptor instead.
  300. func (*FieldRules) Descriptor() ([]byte, []int) {
  301. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{3}
  302. }
  303. func (x *FieldRules) GetCel() []*Rule {
  304. if x != nil {
  305. return x.Cel
  306. }
  307. return nil
  308. }
  309. func (x *FieldRules) GetRequired() bool {
  310. if x != nil {
  311. return x.Required
  312. }
  313. return false
  314. }
  315. func (x *FieldRules) GetIgnore() IgnoreRule {
  316. if x != nil {
  317. return x.Ignore
  318. }
  319. return IgnoreRule_IGNORE_UNSPECIFIED
  320. }
  321. func (x *FieldRules) GetGroups() []string {
  322. if x != nil {
  323. return x.Groups
  324. }
  325. return nil
  326. }
  327. func (x *FieldRules) GetErrorMessage() string {
  328. if x != nil {
  329. return x.ErrorMessage
  330. }
  331. return ""
  332. }
  333. func (x *FieldRules) GetErrorMessageEn() string {
  334. if x != nil {
  335. return x.ErrorMessageEn
  336. }
  337. return ""
  338. }
  339. func (x *FieldRules) GetRequiredMessage() string {
  340. if x != nil {
  341. return x.RequiredMessage
  342. }
  343. return ""
  344. }
  345. func (x *FieldRules) GetRequiredMessageEn() string {
  346. if x != nil {
  347. return x.RequiredMessageEn
  348. }
  349. return ""
  350. }
  351. func (x *FieldRules) GetType() isFieldRules_Type {
  352. if x != nil {
  353. return x.Type
  354. }
  355. return nil
  356. }
  357. func (x *FieldRules) GetFloat() *FloatRules {
  358. if x != nil {
  359. if x, ok := x.Type.(*FieldRules_Float); ok {
  360. return x.Float
  361. }
  362. }
  363. return nil
  364. }
  365. func (x *FieldRules) GetDouble() *DoubleRules {
  366. if x != nil {
  367. if x, ok := x.Type.(*FieldRules_Double); ok {
  368. return x.Double
  369. }
  370. }
  371. return nil
  372. }
  373. func (x *FieldRules) GetInt32() *Int32Rules {
  374. if x != nil {
  375. if x, ok := x.Type.(*FieldRules_Int32); ok {
  376. return x.Int32
  377. }
  378. }
  379. return nil
  380. }
  381. func (x *FieldRules) GetInt64() *Int64Rules {
  382. if x != nil {
  383. if x, ok := x.Type.(*FieldRules_Int64); ok {
  384. return x.Int64
  385. }
  386. }
  387. return nil
  388. }
  389. func (x *FieldRules) GetUint32() *UInt32Rules {
  390. if x != nil {
  391. if x, ok := x.Type.(*FieldRules_Uint32); ok {
  392. return x.Uint32
  393. }
  394. }
  395. return nil
  396. }
  397. func (x *FieldRules) GetUint64() *UInt64Rules {
  398. if x != nil {
  399. if x, ok := x.Type.(*FieldRules_Uint64); ok {
  400. return x.Uint64
  401. }
  402. }
  403. return nil
  404. }
  405. func (x *FieldRules) GetSint32() *SInt32Rules {
  406. if x != nil {
  407. if x, ok := x.Type.(*FieldRules_Sint32); ok {
  408. return x.Sint32
  409. }
  410. }
  411. return nil
  412. }
  413. func (x *FieldRules) GetSint64() *SInt64Rules {
  414. if x != nil {
  415. if x, ok := x.Type.(*FieldRules_Sint64); ok {
  416. return x.Sint64
  417. }
  418. }
  419. return nil
  420. }
  421. func (x *FieldRules) GetFixed32() *Fixed32Rules {
  422. if x != nil {
  423. if x, ok := x.Type.(*FieldRules_Fixed32); ok {
  424. return x.Fixed32
  425. }
  426. }
  427. return nil
  428. }
  429. func (x *FieldRules) GetFixed64() *Fixed64Rules {
  430. if x != nil {
  431. if x, ok := x.Type.(*FieldRules_Fixed64); ok {
  432. return x.Fixed64
  433. }
  434. }
  435. return nil
  436. }
  437. func (x *FieldRules) GetSfixed32() *SFixed32Rules {
  438. if x != nil {
  439. if x, ok := x.Type.(*FieldRules_Sfixed32); ok {
  440. return x.Sfixed32
  441. }
  442. }
  443. return nil
  444. }
  445. func (x *FieldRules) GetSfixed64() *SFixed64Rules {
  446. if x != nil {
  447. if x, ok := x.Type.(*FieldRules_Sfixed64); ok {
  448. return x.Sfixed64
  449. }
  450. }
  451. return nil
  452. }
  453. func (x *FieldRules) GetBool() *BoolRules {
  454. if x != nil {
  455. if x, ok := x.Type.(*FieldRules_Bool); ok {
  456. return x.Bool
  457. }
  458. }
  459. return nil
  460. }
  461. func (x *FieldRules) GetString_() *StringRules {
  462. if x != nil {
  463. if x, ok := x.Type.(*FieldRules_String_); ok {
  464. return x.String_
  465. }
  466. }
  467. return nil
  468. }
  469. func (x *FieldRules) GetBytes() *BytesRules {
  470. if x != nil {
  471. if x, ok := x.Type.(*FieldRules_Bytes); ok {
  472. return x.Bytes
  473. }
  474. }
  475. return nil
  476. }
  477. func (x *FieldRules) GetEnum() *EnumRules {
  478. if x != nil {
  479. if x, ok := x.Type.(*FieldRules_Enum); ok {
  480. return x.Enum
  481. }
  482. }
  483. return nil
  484. }
  485. func (x *FieldRules) GetRepeated() *RepeatedRules {
  486. if x != nil {
  487. if x, ok := x.Type.(*FieldRules_Repeated); ok {
  488. return x.Repeated
  489. }
  490. }
  491. return nil
  492. }
  493. func (x *FieldRules) GetMap() *MapRules {
  494. if x != nil {
  495. if x, ok := x.Type.(*FieldRules_Map); ok {
  496. return x.Map
  497. }
  498. }
  499. return nil
  500. }
  501. func (x *FieldRules) GetDuration() *DurationRules {
  502. if x != nil {
  503. if x, ok := x.Type.(*FieldRules_Duration); ok {
  504. return x.Duration
  505. }
  506. }
  507. return nil
  508. }
  509. func (x *FieldRules) GetTimestamp() *TimestampRules {
  510. if x != nil {
  511. if x, ok := x.Type.(*FieldRules_Timestamp); ok {
  512. return x.Timestamp
  513. }
  514. }
  515. return nil
  516. }
  517. type isFieldRules_Type interface {
  518. isFieldRules_Type()
  519. }
  520. type FieldRules_Float struct {
  521. // 数值类型
  522. Float *FloatRules `protobuf:"bytes,10,opt,name=float,proto3,oneof"`
  523. }
  524. type FieldRules_Double struct {
  525. Double *DoubleRules `protobuf:"bytes,11,opt,name=double,proto3,oneof"`
  526. }
  527. type FieldRules_Int32 struct {
  528. Int32 *Int32Rules `protobuf:"bytes,12,opt,name=int32,proto3,oneof"`
  529. }
  530. type FieldRules_Int64 struct {
  531. Int64 *Int64Rules `protobuf:"bytes,13,opt,name=int64,proto3,oneof"`
  532. }
  533. type FieldRules_Uint32 struct {
  534. Uint32 *UInt32Rules `protobuf:"bytes,14,opt,name=uint32,proto3,oneof"`
  535. }
  536. type FieldRules_Uint64 struct {
  537. Uint64 *UInt64Rules `protobuf:"bytes,15,opt,name=uint64,proto3,oneof"`
  538. }
  539. type FieldRules_Sint32 struct {
  540. Sint32 *SInt32Rules `protobuf:"bytes,16,opt,name=sint32,proto3,oneof"`
  541. }
  542. type FieldRules_Sint64 struct {
  543. Sint64 *SInt64Rules `protobuf:"bytes,17,opt,name=sint64,proto3,oneof"`
  544. }
  545. type FieldRules_Fixed32 struct {
  546. Fixed32 *Fixed32Rules `protobuf:"bytes,18,opt,name=fixed32,proto3,oneof"`
  547. }
  548. type FieldRules_Fixed64 struct {
  549. Fixed64 *Fixed64Rules `protobuf:"bytes,19,opt,name=fixed64,proto3,oneof"`
  550. }
  551. type FieldRules_Sfixed32 struct {
  552. Sfixed32 *SFixed32Rules `protobuf:"bytes,20,opt,name=sfixed32,proto3,oneof"`
  553. }
  554. type FieldRules_Sfixed64 struct {
  555. Sfixed64 *SFixed64Rules `protobuf:"bytes,21,opt,name=sfixed64,proto3,oneof"`
  556. }
  557. type FieldRules_Bool struct {
  558. // 布尔和字符串
  559. Bool *BoolRules `protobuf:"bytes,30,opt,name=bool,proto3,oneof"`
  560. }
  561. type FieldRules_String_ struct {
  562. String_ *StringRules `protobuf:"bytes,31,opt,name=string,proto3,oneof"`
  563. }
  564. type FieldRules_Bytes struct {
  565. Bytes *BytesRules `protobuf:"bytes,32,opt,name=bytes,proto3,oneof"`
  566. }
  567. type FieldRules_Enum struct {
  568. // 复杂类型
  569. Enum *EnumRules `protobuf:"bytes,40,opt,name=enum,proto3,oneof"`
  570. }
  571. type FieldRules_Repeated struct {
  572. Repeated *RepeatedRules `protobuf:"bytes,41,opt,name=repeated,proto3,oneof"`
  573. }
  574. type FieldRules_Map struct {
  575. Map *MapRules `protobuf:"bytes,42,opt,name=map,proto3,oneof"`
  576. }
  577. type FieldRules_Duration struct {
  578. // Well-Known Types
  579. Duration *DurationRules `protobuf:"bytes,50,opt,name=duration,proto3,oneof"`
  580. }
  581. type FieldRules_Timestamp struct {
  582. Timestamp *TimestampRules `protobuf:"bytes,51,opt,name=timestamp,proto3,oneof"`
  583. }
  584. func (*FieldRules_Float) isFieldRules_Type() {}
  585. func (*FieldRules_Double) isFieldRules_Type() {}
  586. func (*FieldRules_Int32) isFieldRules_Type() {}
  587. func (*FieldRules_Int64) isFieldRules_Type() {}
  588. func (*FieldRules_Uint32) isFieldRules_Type() {}
  589. func (*FieldRules_Uint64) isFieldRules_Type() {}
  590. func (*FieldRules_Sint32) isFieldRules_Type() {}
  591. func (*FieldRules_Sint64) isFieldRules_Type() {}
  592. func (*FieldRules_Fixed32) isFieldRules_Type() {}
  593. func (*FieldRules_Fixed64) isFieldRules_Type() {}
  594. func (*FieldRules_Sfixed32) isFieldRules_Type() {}
  595. func (*FieldRules_Sfixed64) isFieldRules_Type() {}
  596. func (*FieldRules_Bool) isFieldRules_Type() {}
  597. func (*FieldRules_String_) isFieldRules_Type() {}
  598. func (*FieldRules_Bytes) isFieldRules_Type() {}
  599. func (*FieldRules_Enum) isFieldRules_Type() {}
  600. func (*FieldRules_Repeated) isFieldRules_Type() {}
  601. func (*FieldRules_Map) isFieldRules_Type() {}
  602. func (*FieldRules_Duration) isFieldRules_Type() {}
  603. func (*FieldRules_Timestamp) isFieldRules_Type() {}
  604. // 预定义规则(用于规则扩展)
  605. type PredefinedRules struct {
  606. state protoimpl.MessageState `protogen:"open.v1"`
  607. Cel []*Rule `protobuf:"bytes,1,rep,name=cel,proto3" json:"cel"`
  608. unknownFields protoimpl.UnknownFields
  609. sizeCache protoimpl.SizeCache
  610. }
  611. func (x *PredefinedRules) Reset() {
  612. *x = PredefinedRules{}
  613. mi := &file_kuban_api_validate_validate_proto_msgTypes[4]
  614. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  615. ms.StoreMessageInfo(mi)
  616. }
  617. func (x *PredefinedRules) String() string {
  618. return protoimpl.X.MessageStringOf(x)
  619. }
  620. func (*PredefinedRules) ProtoMessage() {}
  621. func (x *PredefinedRules) ProtoReflect() protoreflect.Message {
  622. mi := &file_kuban_api_validate_validate_proto_msgTypes[4]
  623. if x != nil {
  624. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  625. if ms.LoadMessageInfo() == nil {
  626. ms.StoreMessageInfo(mi)
  627. }
  628. return ms
  629. }
  630. return mi.MessageOf(x)
  631. }
  632. // Deprecated: Use PredefinedRules.ProtoReflect.Descriptor instead.
  633. func (*PredefinedRules) Descriptor() ([]byte, []int) {
  634. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{4}
  635. }
  636. func (x *PredefinedRules) GetCel() []*Rule {
  637. if x != nil {
  638. return x.Cel
  639. }
  640. return nil
  641. }
  642. // 浮点数验证规则
  643. type FloatRules struct {
  644. state protoimpl.MessageState `protogen:"open.v1"`
  645. // 常量值 - 字段必须等于此值
  646. Const *float32 `protobuf:"fixed32,1,opt,name=const,proto3,oneof" json:"const"`
  647. // 小于
  648. Lt *float32 `protobuf:"fixed32,2,opt,name=lt,proto3,oneof" json:"lt"`
  649. // 小于等于
  650. Lte *float32 `protobuf:"fixed32,3,opt,name=lte,proto3,oneof" json:"lte"`
  651. // 大于
  652. Gt *float32 `protobuf:"fixed32,4,opt,name=gt,proto3,oneof" json:"gt"`
  653. // 大于等于
  654. Gte *float32 `protobuf:"fixed32,5,opt,name=gte,proto3,oneof" json:"gte"`
  655. // 在值列表中
  656. In []float32 `protobuf:"fixed32,6,rep,packed,name=in,proto3" json:"in"`
  657. // 不在值列表中
  658. NotIn []float32 `protobuf:"fixed32,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  659. // 是否为有限数(非 NaN/Inf)
  660. Finite *bool `protobuf:"varint,8,opt,name=finite,proto3,oneof" json:"finite"`
  661. unknownFields protoimpl.UnknownFields
  662. sizeCache protoimpl.SizeCache
  663. }
  664. func (x *FloatRules) Reset() {
  665. *x = FloatRules{}
  666. mi := &file_kuban_api_validate_validate_proto_msgTypes[5]
  667. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  668. ms.StoreMessageInfo(mi)
  669. }
  670. func (x *FloatRules) String() string {
  671. return protoimpl.X.MessageStringOf(x)
  672. }
  673. func (*FloatRules) ProtoMessage() {}
  674. func (x *FloatRules) ProtoReflect() protoreflect.Message {
  675. mi := &file_kuban_api_validate_validate_proto_msgTypes[5]
  676. if x != nil {
  677. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  678. if ms.LoadMessageInfo() == nil {
  679. ms.StoreMessageInfo(mi)
  680. }
  681. return ms
  682. }
  683. return mi.MessageOf(x)
  684. }
  685. // Deprecated: Use FloatRules.ProtoReflect.Descriptor instead.
  686. func (*FloatRules) Descriptor() ([]byte, []int) {
  687. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{5}
  688. }
  689. func (x *FloatRules) GetConst() float32 {
  690. if x != nil && x.Const != nil {
  691. return *x.Const
  692. }
  693. return 0
  694. }
  695. func (x *FloatRules) GetLt() float32 {
  696. if x != nil && x.Lt != nil {
  697. return *x.Lt
  698. }
  699. return 0
  700. }
  701. func (x *FloatRules) GetLte() float32 {
  702. if x != nil && x.Lte != nil {
  703. return *x.Lte
  704. }
  705. return 0
  706. }
  707. func (x *FloatRules) GetGt() float32 {
  708. if x != nil && x.Gt != nil {
  709. return *x.Gt
  710. }
  711. return 0
  712. }
  713. func (x *FloatRules) GetGte() float32 {
  714. if x != nil && x.Gte != nil {
  715. return *x.Gte
  716. }
  717. return 0
  718. }
  719. func (x *FloatRules) GetIn() []float32 {
  720. if x != nil {
  721. return x.In
  722. }
  723. return nil
  724. }
  725. func (x *FloatRules) GetNotIn() []float32 {
  726. if x != nil {
  727. return x.NotIn
  728. }
  729. return nil
  730. }
  731. func (x *FloatRules) GetFinite() bool {
  732. if x != nil && x.Finite != nil {
  733. return *x.Finite
  734. }
  735. return false
  736. }
  737. // 双精度浮点数验证规则
  738. type DoubleRules struct {
  739. state protoimpl.MessageState `protogen:"open.v1"`
  740. Const *float64 `protobuf:"fixed64,1,opt,name=const,proto3,oneof" json:"const"`
  741. Lt *float64 `protobuf:"fixed64,2,opt,name=lt,proto3,oneof" json:"lt"`
  742. Lte *float64 `protobuf:"fixed64,3,opt,name=lte,proto3,oneof" json:"lte"`
  743. Gt *float64 `protobuf:"fixed64,4,opt,name=gt,proto3,oneof" json:"gt"`
  744. Gte *float64 `protobuf:"fixed64,5,opt,name=gte,proto3,oneof" json:"gte"`
  745. In []float64 `protobuf:"fixed64,6,rep,packed,name=in,proto3" json:"in"`
  746. NotIn []float64 `protobuf:"fixed64,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  747. Finite *bool `protobuf:"varint,8,opt,name=finite,proto3,oneof" json:"finite"`
  748. unknownFields protoimpl.UnknownFields
  749. sizeCache protoimpl.SizeCache
  750. }
  751. func (x *DoubleRules) Reset() {
  752. *x = DoubleRules{}
  753. mi := &file_kuban_api_validate_validate_proto_msgTypes[6]
  754. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  755. ms.StoreMessageInfo(mi)
  756. }
  757. func (x *DoubleRules) String() string {
  758. return protoimpl.X.MessageStringOf(x)
  759. }
  760. func (*DoubleRules) ProtoMessage() {}
  761. func (x *DoubleRules) ProtoReflect() protoreflect.Message {
  762. mi := &file_kuban_api_validate_validate_proto_msgTypes[6]
  763. if x != nil {
  764. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  765. if ms.LoadMessageInfo() == nil {
  766. ms.StoreMessageInfo(mi)
  767. }
  768. return ms
  769. }
  770. return mi.MessageOf(x)
  771. }
  772. // Deprecated: Use DoubleRules.ProtoReflect.Descriptor instead.
  773. func (*DoubleRules) Descriptor() ([]byte, []int) {
  774. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{6}
  775. }
  776. func (x *DoubleRules) GetConst() float64 {
  777. if x != nil && x.Const != nil {
  778. return *x.Const
  779. }
  780. return 0
  781. }
  782. func (x *DoubleRules) GetLt() float64 {
  783. if x != nil && x.Lt != nil {
  784. return *x.Lt
  785. }
  786. return 0
  787. }
  788. func (x *DoubleRules) GetLte() float64 {
  789. if x != nil && x.Lte != nil {
  790. return *x.Lte
  791. }
  792. return 0
  793. }
  794. func (x *DoubleRules) GetGt() float64 {
  795. if x != nil && x.Gt != nil {
  796. return *x.Gt
  797. }
  798. return 0
  799. }
  800. func (x *DoubleRules) GetGte() float64 {
  801. if x != nil && x.Gte != nil {
  802. return *x.Gte
  803. }
  804. return 0
  805. }
  806. func (x *DoubleRules) GetIn() []float64 {
  807. if x != nil {
  808. return x.In
  809. }
  810. return nil
  811. }
  812. func (x *DoubleRules) GetNotIn() []float64 {
  813. if x != nil {
  814. return x.NotIn
  815. }
  816. return nil
  817. }
  818. func (x *DoubleRules) GetFinite() bool {
  819. if x != nil && x.Finite != nil {
  820. return *x.Finite
  821. }
  822. return false
  823. }
  824. // Int32 验证规则
  825. type Int32Rules struct {
  826. state protoimpl.MessageState `protogen:"open.v1"`
  827. Const *int32 `protobuf:"varint,1,opt,name=const,proto3,oneof" json:"const"`
  828. Lt *int32 `protobuf:"varint,2,opt,name=lt,proto3,oneof" json:"lt"`
  829. Lte *int32 `protobuf:"varint,3,opt,name=lte,proto3,oneof" json:"lte"`
  830. Gt *int32 `protobuf:"varint,4,opt,name=gt,proto3,oneof" json:"gt"`
  831. Gte *int32 `protobuf:"varint,5,opt,name=gte,proto3,oneof" json:"gte"`
  832. In []int32 `protobuf:"varint,6,rep,packed,name=in,proto3" json:"in"`
  833. NotIn []int32 `protobuf:"varint,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  834. unknownFields protoimpl.UnknownFields
  835. sizeCache protoimpl.SizeCache
  836. }
  837. func (x *Int32Rules) Reset() {
  838. *x = Int32Rules{}
  839. mi := &file_kuban_api_validate_validate_proto_msgTypes[7]
  840. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  841. ms.StoreMessageInfo(mi)
  842. }
  843. func (x *Int32Rules) String() string {
  844. return protoimpl.X.MessageStringOf(x)
  845. }
  846. func (*Int32Rules) ProtoMessage() {}
  847. func (x *Int32Rules) ProtoReflect() protoreflect.Message {
  848. mi := &file_kuban_api_validate_validate_proto_msgTypes[7]
  849. if x != nil {
  850. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  851. if ms.LoadMessageInfo() == nil {
  852. ms.StoreMessageInfo(mi)
  853. }
  854. return ms
  855. }
  856. return mi.MessageOf(x)
  857. }
  858. // Deprecated: Use Int32Rules.ProtoReflect.Descriptor instead.
  859. func (*Int32Rules) Descriptor() ([]byte, []int) {
  860. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{7}
  861. }
  862. func (x *Int32Rules) GetConst() int32 {
  863. if x != nil && x.Const != nil {
  864. return *x.Const
  865. }
  866. return 0
  867. }
  868. func (x *Int32Rules) GetLt() int32 {
  869. if x != nil && x.Lt != nil {
  870. return *x.Lt
  871. }
  872. return 0
  873. }
  874. func (x *Int32Rules) GetLte() int32 {
  875. if x != nil && x.Lte != nil {
  876. return *x.Lte
  877. }
  878. return 0
  879. }
  880. func (x *Int32Rules) GetGt() int32 {
  881. if x != nil && x.Gt != nil {
  882. return *x.Gt
  883. }
  884. return 0
  885. }
  886. func (x *Int32Rules) GetGte() int32 {
  887. if x != nil && x.Gte != nil {
  888. return *x.Gte
  889. }
  890. return 0
  891. }
  892. func (x *Int32Rules) GetIn() []int32 {
  893. if x != nil {
  894. return x.In
  895. }
  896. return nil
  897. }
  898. func (x *Int32Rules) GetNotIn() []int32 {
  899. if x != nil {
  900. return x.NotIn
  901. }
  902. return nil
  903. }
  904. // Int64 验证规则
  905. type Int64Rules struct {
  906. state protoimpl.MessageState `protogen:"open.v1"`
  907. Const *int64 `protobuf:"varint,1,opt,name=const,proto3,oneof" json:"const"`
  908. Lt *int64 `protobuf:"varint,2,opt,name=lt,proto3,oneof" json:"lt"`
  909. Lte *int64 `protobuf:"varint,3,opt,name=lte,proto3,oneof" json:"lte"`
  910. Gt *int64 `protobuf:"varint,4,opt,name=gt,proto3,oneof" json:"gt"`
  911. Gte *int64 `protobuf:"varint,5,opt,name=gte,proto3,oneof" json:"gte"`
  912. In []int64 `protobuf:"varint,6,rep,packed,name=in,proto3" json:"in"`
  913. NotIn []int64 `protobuf:"varint,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  914. unknownFields protoimpl.UnknownFields
  915. sizeCache protoimpl.SizeCache
  916. }
  917. func (x *Int64Rules) Reset() {
  918. *x = Int64Rules{}
  919. mi := &file_kuban_api_validate_validate_proto_msgTypes[8]
  920. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  921. ms.StoreMessageInfo(mi)
  922. }
  923. func (x *Int64Rules) String() string {
  924. return protoimpl.X.MessageStringOf(x)
  925. }
  926. func (*Int64Rules) ProtoMessage() {}
  927. func (x *Int64Rules) ProtoReflect() protoreflect.Message {
  928. mi := &file_kuban_api_validate_validate_proto_msgTypes[8]
  929. if x != nil {
  930. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  931. if ms.LoadMessageInfo() == nil {
  932. ms.StoreMessageInfo(mi)
  933. }
  934. return ms
  935. }
  936. return mi.MessageOf(x)
  937. }
  938. // Deprecated: Use Int64Rules.ProtoReflect.Descriptor instead.
  939. func (*Int64Rules) Descriptor() ([]byte, []int) {
  940. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{8}
  941. }
  942. func (x *Int64Rules) GetConst() int64 {
  943. if x != nil && x.Const != nil {
  944. return *x.Const
  945. }
  946. return 0
  947. }
  948. func (x *Int64Rules) GetLt() int64 {
  949. if x != nil && x.Lt != nil {
  950. return *x.Lt
  951. }
  952. return 0
  953. }
  954. func (x *Int64Rules) GetLte() int64 {
  955. if x != nil && x.Lte != nil {
  956. return *x.Lte
  957. }
  958. return 0
  959. }
  960. func (x *Int64Rules) GetGt() int64 {
  961. if x != nil && x.Gt != nil {
  962. return *x.Gt
  963. }
  964. return 0
  965. }
  966. func (x *Int64Rules) GetGte() int64 {
  967. if x != nil && x.Gte != nil {
  968. return *x.Gte
  969. }
  970. return 0
  971. }
  972. func (x *Int64Rules) GetIn() []int64 {
  973. if x != nil {
  974. return x.In
  975. }
  976. return nil
  977. }
  978. func (x *Int64Rules) GetNotIn() []int64 {
  979. if x != nil {
  980. return x.NotIn
  981. }
  982. return nil
  983. }
  984. // UInt32 验证规则
  985. type UInt32Rules struct {
  986. state protoimpl.MessageState `protogen:"open.v1"`
  987. Const *uint32 `protobuf:"varint,1,opt,name=const,proto3,oneof" json:"const"`
  988. Lt *uint32 `protobuf:"varint,2,opt,name=lt,proto3,oneof" json:"lt"`
  989. Lte *uint32 `protobuf:"varint,3,opt,name=lte,proto3,oneof" json:"lte"`
  990. Gt *uint32 `protobuf:"varint,4,opt,name=gt,proto3,oneof" json:"gt"`
  991. Gte *uint32 `protobuf:"varint,5,opt,name=gte,proto3,oneof" json:"gte"`
  992. In []uint32 `protobuf:"varint,6,rep,packed,name=in,proto3" json:"in"`
  993. NotIn []uint32 `protobuf:"varint,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  994. unknownFields protoimpl.UnknownFields
  995. sizeCache protoimpl.SizeCache
  996. }
  997. func (x *UInt32Rules) Reset() {
  998. *x = UInt32Rules{}
  999. mi := &file_kuban_api_validate_validate_proto_msgTypes[9]
  1000. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1001. ms.StoreMessageInfo(mi)
  1002. }
  1003. func (x *UInt32Rules) String() string {
  1004. return protoimpl.X.MessageStringOf(x)
  1005. }
  1006. func (*UInt32Rules) ProtoMessage() {}
  1007. func (x *UInt32Rules) ProtoReflect() protoreflect.Message {
  1008. mi := &file_kuban_api_validate_validate_proto_msgTypes[9]
  1009. if x != nil {
  1010. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1011. if ms.LoadMessageInfo() == nil {
  1012. ms.StoreMessageInfo(mi)
  1013. }
  1014. return ms
  1015. }
  1016. return mi.MessageOf(x)
  1017. }
  1018. // Deprecated: Use UInt32Rules.ProtoReflect.Descriptor instead.
  1019. func (*UInt32Rules) Descriptor() ([]byte, []int) {
  1020. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{9}
  1021. }
  1022. func (x *UInt32Rules) GetConst() uint32 {
  1023. if x != nil && x.Const != nil {
  1024. return *x.Const
  1025. }
  1026. return 0
  1027. }
  1028. func (x *UInt32Rules) GetLt() uint32 {
  1029. if x != nil && x.Lt != nil {
  1030. return *x.Lt
  1031. }
  1032. return 0
  1033. }
  1034. func (x *UInt32Rules) GetLte() uint32 {
  1035. if x != nil && x.Lte != nil {
  1036. return *x.Lte
  1037. }
  1038. return 0
  1039. }
  1040. func (x *UInt32Rules) GetGt() uint32 {
  1041. if x != nil && x.Gt != nil {
  1042. return *x.Gt
  1043. }
  1044. return 0
  1045. }
  1046. func (x *UInt32Rules) GetGte() uint32 {
  1047. if x != nil && x.Gte != nil {
  1048. return *x.Gte
  1049. }
  1050. return 0
  1051. }
  1052. func (x *UInt32Rules) GetIn() []uint32 {
  1053. if x != nil {
  1054. return x.In
  1055. }
  1056. return nil
  1057. }
  1058. func (x *UInt32Rules) GetNotIn() []uint32 {
  1059. if x != nil {
  1060. return x.NotIn
  1061. }
  1062. return nil
  1063. }
  1064. // UInt64 验证规则
  1065. type UInt64Rules struct {
  1066. state protoimpl.MessageState `protogen:"open.v1"`
  1067. Const *uint64 `protobuf:"varint,1,opt,name=const,proto3,oneof" json:"const"`
  1068. Lt *uint64 `protobuf:"varint,2,opt,name=lt,proto3,oneof" json:"lt"`
  1069. Lte *uint64 `protobuf:"varint,3,opt,name=lte,proto3,oneof" json:"lte"`
  1070. Gt *uint64 `protobuf:"varint,4,opt,name=gt,proto3,oneof" json:"gt"`
  1071. Gte *uint64 `protobuf:"varint,5,opt,name=gte,proto3,oneof" json:"gte"`
  1072. In []uint64 `protobuf:"varint,6,rep,packed,name=in,proto3" json:"in"`
  1073. NotIn []uint64 `protobuf:"varint,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  1074. unknownFields protoimpl.UnknownFields
  1075. sizeCache protoimpl.SizeCache
  1076. }
  1077. func (x *UInt64Rules) Reset() {
  1078. *x = UInt64Rules{}
  1079. mi := &file_kuban_api_validate_validate_proto_msgTypes[10]
  1080. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1081. ms.StoreMessageInfo(mi)
  1082. }
  1083. func (x *UInt64Rules) String() string {
  1084. return protoimpl.X.MessageStringOf(x)
  1085. }
  1086. func (*UInt64Rules) ProtoMessage() {}
  1087. func (x *UInt64Rules) ProtoReflect() protoreflect.Message {
  1088. mi := &file_kuban_api_validate_validate_proto_msgTypes[10]
  1089. if x != nil {
  1090. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1091. if ms.LoadMessageInfo() == nil {
  1092. ms.StoreMessageInfo(mi)
  1093. }
  1094. return ms
  1095. }
  1096. return mi.MessageOf(x)
  1097. }
  1098. // Deprecated: Use UInt64Rules.ProtoReflect.Descriptor instead.
  1099. func (*UInt64Rules) Descriptor() ([]byte, []int) {
  1100. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{10}
  1101. }
  1102. func (x *UInt64Rules) GetConst() uint64 {
  1103. if x != nil && x.Const != nil {
  1104. return *x.Const
  1105. }
  1106. return 0
  1107. }
  1108. func (x *UInt64Rules) GetLt() uint64 {
  1109. if x != nil && x.Lt != nil {
  1110. return *x.Lt
  1111. }
  1112. return 0
  1113. }
  1114. func (x *UInt64Rules) GetLte() uint64 {
  1115. if x != nil && x.Lte != nil {
  1116. return *x.Lte
  1117. }
  1118. return 0
  1119. }
  1120. func (x *UInt64Rules) GetGt() uint64 {
  1121. if x != nil && x.Gt != nil {
  1122. return *x.Gt
  1123. }
  1124. return 0
  1125. }
  1126. func (x *UInt64Rules) GetGte() uint64 {
  1127. if x != nil && x.Gte != nil {
  1128. return *x.Gte
  1129. }
  1130. return 0
  1131. }
  1132. func (x *UInt64Rules) GetIn() []uint64 {
  1133. if x != nil {
  1134. return x.In
  1135. }
  1136. return nil
  1137. }
  1138. func (x *UInt64Rules) GetNotIn() []uint64 {
  1139. if x != nil {
  1140. return x.NotIn
  1141. }
  1142. return nil
  1143. }
  1144. // SInt32 验证规则
  1145. type SInt32Rules struct {
  1146. state protoimpl.MessageState `protogen:"open.v1"`
  1147. Const *int32 `protobuf:"zigzag32,1,opt,name=const,proto3,oneof" json:"const"`
  1148. Lt *int32 `protobuf:"zigzag32,2,opt,name=lt,proto3,oneof" json:"lt"`
  1149. Lte *int32 `protobuf:"zigzag32,3,opt,name=lte,proto3,oneof" json:"lte"`
  1150. Gt *int32 `protobuf:"zigzag32,4,opt,name=gt,proto3,oneof" json:"gt"`
  1151. Gte *int32 `protobuf:"zigzag32,5,opt,name=gte,proto3,oneof" json:"gte"`
  1152. In []int32 `protobuf:"zigzag32,6,rep,packed,name=in,proto3" json:"in"`
  1153. NotIn []int32 `protobuf:"zigzag32,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  1154. unknownFields protoimpl.UnknownFields
  1155. sizeCache protoimpl.SizeCache
  1156. }
  1157. func (x *SInt32Rules) Reset() {
  1158. *x = SInt32Rules{}
  1159. mi := &file_kuban_api_validate_validate_proto_msgTypes[11]
  1160. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1161. ms.StoreMessageInfo(mi)
  1162. }
  1163. func (x *SInt32Rules) String() string {
  1164. return protoimpl.X.MessageStringOf(x)
  1165. }
  1166. func (*SInt32Rules) ProtoMessage() {}
  1167. func (x *SInt32Rules) ProtoReflect() protoreflect.Message {
  1168. mi := &file_kuban_api_validate_validate_proto_msgTypes[11]
  1169. if x != nil {
  1170. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1171. if ms.LoadMessageInfo() == nil {
  1172. ms.StoreMessageInfo(mi)
  1173. }
  1174. return ms
  1175. }
  1176. return mi.MessageOf(x)
  1177. }
  1178. // Deprecated: Use SInt32Rules.ProtoReflect.Descriptor instead.
  1179. func (*SInt32Rules) Descriptor() ([]byte, []int) {
  1180. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{11}
  1181. }
  1182. func (x *SInt32Rules) GetConst() int32 {
  1183. if x != nil && x.Const != nil {
  1184. return *x.Const
  1185. }
  1186. return 0
  1187. }
  1188. func (x *SInt32Rules) GetLt() int32 {
  1189. if x != nil && x.Lt != nil {
  1190. return *x.Lt
  1191. }
  1192. return 0
  1193. }
  1194. func (x *SInt32Rules) GetLte() int32 {
  1195. if x != nil && x.Lte != nil {
  1196. return *x.Lte
  1197. }
  1198. return 0
  1199. }
  1200. func (x *SInt32Rules) GetGt() int32 {
  1201. if x != nil && x.Gt != nil {
  1202. return *x.Gt
  1203. }
  1204. return 0
  1205. }
  1206. func (x *SInt32Rules) GetGte() int32 {
  1207. if x != nil && x.Gte != nil {
  1208. return *x.Gte
  1209. }
  1210. return 0
  1211. }
  1212. func (x *SInt32Rules) GetIn() []int32 {
  1213. if x != nil {
  1214. return x.In
  1215. }
  1216. return nil
  1217. }
  1218. func (x *SInt32Rules) GetNotIn() []int32 {
  1219. if x != nil {
  1220. return x.NotIn
  1221. }
  1222. return nil
  1223. }
  1224. // SInt64 验证规则
  1225. type SInt64Rules struct {
  1226. state protoimpl.MessageState `protogen:"open.v1"`
  1227. Const *int64 `protobuf:"zigzag64,1,opt,name=const,proto3,oneof" json:"const"`
  1228. Lt *int64 `protobuf:"zigzag64,2,opt,name=lt,proto3,oneof" json:"lt"`
  1229. Lte *int64 `protobuf:"zigzag64,3,opt,name=lte,proto3,oneof" json:"lte"`
  1230. Gt *int64 `protobuf:"zigzag64,4,opt,name=gt,proto3,oneof" json:"gt"`
  1231. Gte *int64 `protobuf:"zigzag64,5,opt,name=gte,proto3,oneof" json:"gte"`
  1232. In []int64 `protobuf:"zigzag64,6,rep,packed,name=in,proto3" json:"in"`
  1233. NotIn []int64 `protobuf:"zigzag64,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  1234. unknownFields protoimpl.UnknownFields
  1235. sizeCache protoimpl.SizeCache
  1236. }
  1237. func (x *SInt64Rules) Reset() {
  1238. *x = SInt64Rules{}
  1239. mi := &file_kuban_api_validate_validate_proto_msgTypes[12]
  1240. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1241. ms.StoreMessageInfo(mi)
  1242. }
  1243. func (x *SInt64Rules) String() string {
  1244. return protoimpl.X.MessageStringOf(x)
  1245. }
  1246. func (*SInt64Rules) ProtoMessage() {}
  1247. func (x *SInt64Rules) ProtoReflect() protoreflect.Message {
  1248. mi := &file_kuban_api_validate_validate_proto_msgTypes[12]
  1249. if x != nil {
  1250. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1251. if ms.LoadMessageInfo() == nil {
  1252. ms.StoreMessageInfo(mi)
  1253. }
  1254. return ms
  1255. }
  1256. return mi.MessageOf(x)
  1257. }
  1258. // Deprecated: Use SInt64Rules.ProtoReflect.Descriptor instead.
  1259. func (*SInt64Rules) Descriptor() ([]byte, []int) {
  1260. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{12}
  1261. }
  1262. func (x *SInt64Rules) GetConst() int64 {
  1263. if x != nil && x.Const != nil {
  1264. return *x.Const
  1265. }
  1266. return 0
  1267. }
  1268. func (x *SInt64Rules) GetLt() int64 {
  1269. if x != nil && x.Lt != nil {
  1270. return *x.Lt
  1271. }
  1272. return 0
  1273. }
  1274. func (x *SInt64Rules) GetLte() int64 {
  1275. if x != nil && x.Lte != nil {
  1276. return *x.Lte
  1277. }
  1278. return 0
  1279. }
  1280. func (x *SInt64Rules) GetGt() int64 {
  1281. if x != nil && x.Gt != nil {
  1282. return *x.Gt
  1283. }
  1284. return 0
  1285. }
  1286. func (x *SInt64Rules) GetGte() int64 {
  1287. if x != nil && x.Gte != nil {
  1288. return *x.Gte
  1289. }
  1290. return 0
  1291. }
  1292. func (x *SInt64Rules) GetIn() []int64 {
  1293. if x != nil {
  1294. return x.In
  1295. }
  1296. return nil
  1297. }
  1298. func (x *SInt64Rules) GetNotIn() []int64 {
  1299. if x != nil {
  1300. return x.NotIn
  1301. }
  1302. return nil
  1303. }
  1304. // Fixed32 验证规则
  1305. type Fixed32Rules struct {
  1306. state protoimpl.MessageState `protogen:"open.v1"`
  1307. Const *uint32 `protobuf:"fixed32,1,opt,name=const,proto3,oneof" json:"const"`
  1308. Lt *uint32 `protobuf:"fixed32,2,opt,name=lt,proto3,oneof" json:"lt"`
  1309. Lte *uint32 `protobuf:"fixed32,3,opt,name=lte,proto3,oneof" json:"lte"`
  1310. Gt *uint32 `protobuf:"fixed32,4,opt,name=gt,proto3,oneof" json:"gt"`
  1311. Gte *uint32 `protobuf:"fixed32,5,opt,name=gte,proto3,oneof" json:"gte"`
  1312. In []uint32 `protobuf:"fixed32,6,rep,packed,name=in,proto3" json:"in"`
  1313. NotIn []uint32 `protobuf:"fixed32,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  1314. unknownFields protoimpl.UnknownFields
  1315. sizeCache protoimpl.SizeCache
  1316. }
  1317. func (x *Fixed32Rules) Reset() {
  1318. *x = Fixed32Rules{}
  1319. mi := &file_kuban_api_validate_validate_proto_msgTypes[13]
  1320. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1321. ms.StoreMessageInfo(mi)
  1322. }
  1323. func (x *Fixed32Rules) String() string {
  1324. return protoimpl.X.MessageStringOf(x)
  1325. }
  1326. func (*Fixed32Rules) ProtoMessage() {}
  1327. func (x *Fixed32Rules) ProtoReflect() protoreflect.Message {
  1328. mi := &file_kuban_api_validate_validate_proto_msgTypes[13]
  1329. if x != nil {
  1330. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1331. if ms.LoadMessageInfo() == nil {
  1332. ms.StoreMessageInfo(mi)
  1333. }
  1334. return ms
  1335. }
  1336. return mi.MessageOf(x)
  1337. }
  1338. // Deprecated: Use Fixed32Rules.ProtoReflect.Descriptor instead.
  1339. func (*Fixed32Rules) Descriptor() ([]byte, []int) {
  1340. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{13}
  1341. }
  1342. func (x *Fixed32Rules) GetConst() uint32 {
  1343. if x != nil && x.Const != nil {
  1344. return *x.Const
  1345. }
  1346. return 0
  1347. }
  1348. func (x *Fixed32Rules) GetLt() uint32 {
  1349. if x != nil && x.Lt != nil {
  1350. return *x.Lt
  1351. }
  1352. return 0
  1353. }
  1354. func (x *Fixed32Rules) GetLte() uint32 {
  1355. if x != nil && x.Lte != nil {
  1356. return *x.Lte
  1357. }
  1358. return 0
  1359. }
  1360. func (x *Fixed32Rules) GetGt() uint32 {
  1361. if x != nil && x.Gt != nil {
  1362. return *x.Gt
  1363. }
  1364. return 0
  1365. }
  1366. func (x *Fixed32Rules) GetGte() uint32 {
  1367. if x != nil && x.Gte != nil {
  1368. return *x.Gte
  1369. }
  1370. return 0
  1371. }
  1372. func (x *Fixed32Rules) GetIn() []uint32 {
  1373. if x != nil {
  1374. return x.In
  1375. }
  1376. return nil
  1377. }
  1378. func (x *Fixed32Rules) GetNotIn() []uint32 {
  1379. if x != nil {
  1380. return x.NotIn
  1381. }
  1382. return nil
  1383. }
  1384. // Fixed64 验证规则
  1385. type Fixed64Rules struct {
  1386. state protoimpl.MessageState `protogen:"open.v1"`
  1387. Const *uint64 `protobuf:"fixed64,1,opt,name=const,proto3,oneof" json:"const"`
  1388. Lt *uint64 `protobuf:"fixed64,2,opt,name=lt,proto3,oneof" json:"lt"`
  1389. Lte *uint64 `protobuf:"fixed64,3,opt,name=lte,proto3,oneof" json:"lte"`
  1390. Gt *uint64 `protobuf:"fixed64,4,opt,name=gt,proto3,oneof" json:"gt"`
  1391. Gte *uint64 `protobuf:"fixed64,5,opt,name=gte,proto3,oneof" json:"gte"`
  1392. In []uint64 `protobuf:"fixed64,6,rep,packed,name=in,proto3" json:"in"`
  1393. NotIn []uint64 `protobuf:"fixed64,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  1394. unknownFields protoimpl.UnknownFields
  1395. sizeCache protoimpl.SizeCache
  1396. }
  1397. func (x *Fixed64Rules) Reset() {
  1398. *x = Fixed64Rules{}
  1399. mi := &file_kuban_api_validate_validate_proto_msgTypes[14]
  1400. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1401. ms.StoreMessageInfo(mi)
  1402. }
  1403. func (x *Fixed64Rules) String() string {
  1404. return protoimpl.X.MessageStringOf(x)
  1405. }
  1406. func (*Fixed64Rules) ProtoMessage() {}
  1407. func (x *Fixed64Rules) ProtoReflect() protoreflect.Message {
  1408. mi := &file_kuban_api_validate_validate_proto_msgTypes[14]
  1409. if x != nil {
  1410. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1411. if ms.LoadMessageInfo() == nil {
  1412. ms.StoreMessageInfo(mi)
  1413. }
  1414. return ms
  1415. }
  1416. return mi.MessageOf(x)
  1417. }
  1418. // Deprecated: Use Fixed64Rules.ProtoReflect.Descriptor instead.
  1419. func (*Fixed64Rules) Descriptor() ([]byte, []int) {
  1420. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{14}
  1421. }
  1422. func (x *Fixed64Rules) GetConst() uint64 {
  1423. if x != nil && x.Const != nil {
  1424. return *x.Const
  1425. }
  1426. return 0
  1427. }
  1428. func (x *Fixed64Rules) GetLt() uint64 {
  1429. if x != nil && x.Lt != nil {
  1430. return *x.Lt
  1431. }
  1432. return 0
  1433. }
  1434. func (x *Fixed64Rules) GetLte() uint64 {
  1435. if x != nil && x.Lte != nil {
  1436. return *x.Lte
  1437. }
  1438. return 0
  1439. }
  1440. func (x *Fixed64Rules) GetGt() uint64 {
  1441. if x != nil && x.Gt != nil {
  1442. return *x.Gt
  1443. }
  1444. return 0
  1445. }
  1446. func (x *Fixed64Rules) GetGte() uint64 {
  1447. if x != nil && x.Gte != nil {
  1448. return *x.Gte
  1449. }
  1450. return 0
  1451. }
  1452. func (x *Fixed64Rules) GetIn() []uint64 {
  1453. if x != nil {
  1454. return x.In
  1455. }
  1456. return nil
  1457. }
  1458. func (x *Fixed64Rules) GetNotIn() []uint64 {
  1459. if x != nil {
  1460. return x.NotIn
  1461. }
  1462. return nil
  1463. }
  1464. // SFixed32 验证规则
  1465. type SFixed32Rules struct {
  1466. state protoimpl.MessageState `protogen:"open.v1"`
  1467. Const *int32 `protobuf:"fixed32,1,opt,name=const,proto3,oneof" json:"const"`
  1468. Lt *int32 `protobuf:"fixed32,2,opt,name=lt,proto3,oneof" json:"lt"`
  1469. Lte *int32 `protobuf:"fixed32,3,opt,name=lte,proto3,oneof" json:"lte"`
  1470. Gt *int32 `protobuf:"fixed32,4,opt,name=gt,proto3,oneof" json:"gt"`
  1471. Gte *int32 `protobuf:"fixed32,5,opt,name=gte,proto3,oneof" json:"gte"`
  1472. In []int32 `protobuf:"fixed32,6,rep,packed,name=in,proto3" json:"in"`
  1473. NotIn []int32 `protobuf:"fixed32,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  1474. unknownFields protoimpl.UnknownFields
  1475. sizeCache protoimpl.SizeCache
  1476. }
  1477. func (x *SFixed32Rules) Reset() {
  1478. *x = SFixed32Rules{}
  1479. mi := &file_kuban_api_validate_validate_proto_msgTypes[15]
  1480. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1481. ms.StoreMessageInfo(mi)
  1482. }
  1483. func (x *SFixed32Rules) String() string {
  1484. return protoimpl.X.MessageStringOf(x)
  1485. }
  1486. func (*SFixed32Rules) ProtoMessage() {}
  1487. func (x *SFixed32Rules) ProtoReflect() protoreflect.Message {
  1488. mi := &file_kuban_api_validate_validate_proto_msgTypes[15]
  1489. if x != nil {
  1490. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1491. if ms.LoadMessageInfo() == nil {
  1492. ms.StoreMessageInfo(mi)
  1493. }
  1494. return ms
  1495. }
  1496. return mi.MessageOf(x)
  1497. }
  1498. // Deprecated: Use SFixed32Rules.ProtoReflect.Descriptor instead.
  1499. func (*SFixed32Rules) Descriptor() ([]byte, []int) {
  1500. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{15}
  1501. }
  1502. func (x *SFixed32Rules) GetConst() int32 {
  1503. if x != nil && x.Const != nil {
  1504. return *x.Const
  1505. }
  1506. return 0
  1507. }
  1508. func (x *SFixed32Rules) GetLt() int32 {
  1509. if x != nil && x.Lt != nil {
  1510. return *x.Lt
  1511. }
  1512. return 0
  1513. }
  1514. func (x *SFixed32Rules) GetLte() int32 {
  1515. if x != nil && x.Lte != nil {
  1516. return *x.Lte
  1517. }
  1518. return 0
  1519. }
  1520. func (x *SFixed32Rules) GetGt() int32 {
  1521. if x != nil && x.Gt != nil {
  1522. return *x.Gt
  1523. }
  1524. return 0
  1525. }
  1526. func (x *SFixed32Rules) GetGte() int32 {
  1527. if x != nil && x.Gte != nil {
  1528. return *x.Gte
  1529. }
  1530. return 0
  1531. }
  1532. func (x *SFixed32Rules) GetIn() []int32 {
  1533. if x != nil {
  1534. return x.In
  1535. }
  1536. return nil
  1537. }
  1538. func (x *SFixed32Rules) GetNotIn() []int32 {
  1539. if x != nil {
  1540. return x.NotIn
  1541. }
  1542. return nil
  1543. }
  1544. // SFixed64 验证规则
  1545. type SFixed64Rules struct {
  1546. state protoimpl.MessageState `protogen:"open.v1"`
  1547. Const *int64 `protobuf:"fixed64,1,opt,name=const,proto3,oneof" json:"const"`
  1548. Lt *int64 `protobuf:"fixed64,2,opt,name=lt,proto3,oneof" json:"lt"`
  1549. Lte *int64 `protobuf:"fixed64,3,opt,name=lte,proto3,oneof" json:"lte"`
  1550. Gt *int64 `protobuf:"fixed64,4,opt,name=gt,proto3,oneof" json:"gt"`
  1551. Gte *int64 `protobuf:"fixed64,5,opt,name=gte,proto3,oneof" json:"gte"`
  1552. In []int64 `protobuf:"fixed64,6,rep,packed,name=in,proto3" json:"in"`
  1553. NotIn []int64 `protobuf:"fixed64,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  1554. unknownFields protoimpl.UnknownFields
  1555. sizeCache protoimpl.SizeCache
  1556. }
  1557. func (x *SFixed64Rules) Reset() {
  1558. *x = SFixed64Rules{}
  1559. mi := &file_kuban_api_validate_validate_proto_msgTypes[16]
  1560. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1561. ms.StoreMessageInfo(mi)
  1562. }
  1563. func (x *SFixed64Rules) String() string {
  1564. return protoimpl.X.MessageStringOf(x)
  1565. }
  1566. func (*SFixed64Rules) ProtoMessage() {}
  1567. func (x *SFixed64Rules) ProtoReflect() protoreflect.Message {
  1568. mi := &file_kuban_api_validate_validate_proto_msgTypes[16]
  1569. if x != nil {
  1570. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1571. if ms.LoadMessageInfo() == nil {
  1572. ms.StoreMessageInfo(mi)
  1573. }
  1574. return ms
  1575. }
  1576. return mi.MessageOf(x)
  1577. }
  1578. // Deprecated: Use SFixed64Rules.ProtoReflect.Descriptor instead.
  1579. func (*SFixed64Rules) Descriptor() ([]byte, []int) {
  1580. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{16}
  1581. }
  1582. func (x *SFixed64Rules) GetConst() int64 {
  1583. if x != nil && x.Const != nil {
  1584. return *x.Const
  1585. }
  1586. return 0
  1587. }
  1588. func (x *SFixed64Rules) GetLt() int64 {
  1589. if x != nil && x.Lt != nil {
  1590. return *x.Lt
  1591. }
  1592. return 0
  1593. }
  1594. func (x *SFixed64Rules) GetLte() int64 {
  1595. if x != nil && x.Lte != nil {
  1596. return *x.Lte
  1597. }
  1598. return 0
  1599. }
  1600. func (x *SFixed64Rules) GetGt() int64 {
  1601. if x != nil && x.Gt != nil {
  1602. return *x.Gt
  1603. }
  1604. return 0
  1605. }
  1606. func (x *SFixed64Rules) GetGte() int64 {
  1607. if x != nil && x.Gte != nil {
  1608. return *x.Gte
  1609. }
  1610. return 0
  1611. }
  1612. func (x *SFixed64Rules) GetIn() []int64 {
  1613. if x != nil {
  1614. return x.In
  1615. }
  1616. return nil
  1617. }
  1618. func (x *SFixed64Rules) GetNotIn() []int64 {
  1619. if x != nil {
  1620. return x.NotIn
  1621. }
  1622. return nil
  1623. }
  1624. // 布尔值验证规则
  1625. type BoolRules struct {
  1626. state protoimpl.MessageState `protogen:"open.v1"`
  1627. Const *bool `protobuf:"varint,1,opt,name=const,proto3,oneof" json:"const"`
  1628. unknownFields protoimpl.UnknownFields
  1629. sizeCache protoimpl.SizeCache
  1630. }
  1631. func (x *BoolRules) Reset() {
  1632. *x = BoolRules{}
  1633. mi := &file_kuban_api_validate_validate_proto_msgTypes[17]
  1634. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1635. ms.StoreMessageInfo(mi)
  1636. }
  1637. func (x *BoolRules) String() string {
  1638. return protoimpl.X.MessageStringOf(x)
  1639. }
  1640. func (*BoolRules) ProtoMessage() {}
  1641. func (x *BoolRules) ProtoReflect() protoreflect.Message {
  1642. mi := &file_kuban_api_validate_validate_proto_msgTypes[17]
  1643. if x != nil {
  1644. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1645. if ms.LoadMessageInfo() == nil {
  1646. ms.StoreMessageInfo(mi)
  1647. }
  1648. return ms
  1649. }
  1650. return mi.MessageOf(x)
  1651. }
  1652. // Deprecated: Use BoolRules.ProtoReflect.Descriptor instead.
  1653. func (*BoolRules) Descriptor() ([]byte, []int) {
  1654. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{17}
  1655. }
  1656. func (x *BoolRules) GetConst() bool {
  1657. if x != nil && x.Const != nil {
  1658. return *x.Const
  1659. }
  1660. return false
  1661. }
  1662. // 字符串验证规则 - 增强的中文支持
  1663. type StringRules struct {
  1664. state protoimpl.MessageState `protogen:"open.v1"`
  1665. // 常量值
  1666. Const *string `protobuf:"bytes,1,opt,name=const,proto3,oneof" json:"const"`
  1667. // 长度限制(字符数,非字节数)
  1668. Len *uint64 `protobuf:"varint,2,opt,name=len,proto3,oneof" json:"len"`
  1669. MinLen *uint64 `protobuf:"varint,3,opt,name=min_len,json=minLen,proto3,oneof" json:"min_len"`
  1670. MaxLen *uint64 `protobuf:"varint,4,opt,name=max_len,json=maxLen,proto3,oneof" json:"max_len"`
  1671. // 字节长度限制
  1672. LenBytes *uint64 `protobuf:"varint,5,opt,name=len_bytes,json=lenBytes,proto3,oneof" json:"len_bytes"`
  1673. MinBytes *uint64 `protobuf:"varint,6,opt,name=min_bytes,json=minBytes,proto3,oneof" json:"min_bytes"`
  1674. MaxBytes *uint64 `protobuf:"varint,7,opt,name=max_bytes,json=maxBytes,proto3,oneof" json:"max_bytes"`
  1675. // 模式匹配
  1676. Pattern *string `protobuf:"bytes,8,opt,name=pattern,proto3,oneof" json:"pattern"` // 正则表达式
  1677. // 前缀/后缀
  1678. Prefix *string `protobuf:"bytes,9,opt,name=prefix,proto3,oneof" json:"prefix"`
  1679. Suffix *string `protobuf:"bytes,10,opt,name=suffix,proto3,oneof" json:"suffix"`
  1680. // 包含/不包含
  1681. Contains *string `protobuf:"bytes,11,opt,name=contains,proto3,oneof" json:"contains"`
  1682. NotContains *string `protobuf:"bytes,12,opt,name=not_contains,json=notContains,proto3,oneof" json:"not_contains"`
  1683. // 在值列表中
  1684. In []string `protobuf:"bytes,13,rep,name=in,proto3" json:"in"`
  1685. NotIn []string `protobuf:"bytes,14,rep,name=not_in,json=notIn,proto3" json:"not_in"`
  1686. // 预定义格式(优化设计 - 更简洁)
  1687. //
  1688. // Types that are valid to be assigned to WellKnown:
  1689. //
  1690. // *StringRules_Email
  1691. // *StringRules_Hostname
  1692. // *StringRules_Ip
  1693. // *StringRules_Ipv4
  1694. // *StringRules_Ipv6
  1695. // *StringRules_Uri
  1696. // *StringRules_UriRef
  1697. // *StringRules_Uuid
  1698. // *StringRules_ChineseMobile
  1699. // *StringRules_ChineseIdCard
  1700. // *StringRules_ChineseName
  1701. // *StringRules_ChinesePostcode
  1702. WellKnown isStringRules_WellKnown `protobuf_oneof:"well_known"`
  1703. // 字符类型限制
  1704. Ascii *bool `protobuf:"varint,40,opt,name=ascii,proto3,oneof" json:"ascii"` // 仅 ASCII 字符
  1705. Printable *bool `protobuf:"varint,41,opt,name=printable,proto3,oneof" json:"printable"` // 可打印字符
  1706. Alpha *bool `protobuf:"varint,42,opt,name=alpha,proto3,oneof" json:"alpha"` // 仅字母
  1707. Alphanumeric *bool `protobuf:"varint,43,opt,name=alphanumeric,proto3,oneof" json:"alphanumeric"` // 字母和数字
  1708. Numeric *bool `protobuf:"varint,44,opt,name=numeric,proto3,oneof" json:"numeric"` // 仅数字
  1709. // 大小写要求
  1710. Lowercase *bool `protobuf:"varint,50,opt,name=lowercase,proto3,oneof" json:"lowercase"` // 仅小写
  1711. Uppercase *bool `protobuf:"varint,51,opt,name=uppercase,proto3,oneof" json:"uppercase"` // 仅大写
  1712. unknownFields protoimpl.UnknownFields
  1713. sizeCache protoimpl.SizeCache
  1714. }
  1715. func (x *StringRules) Reset() {
  1716. *x = StringRules{}
  1717. mi := &file_kuban_api_validate_validate_proto_msgTypes[18]
  1718. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1719. ms.StoreMessageInfo(mi)
  1720. }
  1721. func (x *StringRules) String() string {
  1722. return protoimpl.X.MessageStringOf(x)
  1723. }
  1724. func (*StringRules) ProtoMessage() {}
  1725. func (x *StringRules) ProtoReflect() protoreflect.Message {
  1726. mi := &file_kuban_api_validate_validate_proto_msgTypes[18]
  1727. if x != nil {
  1728. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1729. if ms.LoadMessageInfo() == nil {
  1730. ms.StoreMessageInfo(mi)
  1731. }
  1732. return ms
  1733. }
  1734. return mi.MessageOf(x)
  1735. }
  1736. // Deprecated: Use StringRules.ProtoReflect.Descriptor instead.
  1737. func (*StringRules) Descriptor() ([]byte, []int) {
  1738. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{18}
  1739. }
  1740. func (x *StringRules) GetConst() string {
  1741. if x != nil && x.Const != nil {
  1742. return *x.Const
  1743. }
  1744. return ""
  1745. }
  1746. func (x *StringRules) GetLen() uint64 {
  1747. if x != nil && x.Len != nil {
  1748. return *x.Len
  1749. }
  1750. return 0
  1751. }
  1752. func (x *StringRules) GetMinLen() uint64 {
  1753. if x != nil && x.MinLen != nil {
  1754. return *x.MinLen
  1755. }
  1756. return 0
  1757. }
  1758. func (x *StringRules) GetMaxLen() uint64 {
  1759. if x != nil && x.MaxLen != nil {
  1760. return *x.MaxLen
  1761. }
  1762. return 0
  1763. }
  1764. func (x *StringRules) GetLenBytes() uint64 {
  1765. if x != nil && x.LenBytes != nil {
  1766. return *x.LenBytes
  1767. }
  1768. return 0
  1769. }
  1770. func (x *StringRules) GetMinBytes() uint64 {
  1771. if x != nil && x.MinBytes != nil {
  1772. return *x.MinBytes
  1773. }
  1774. return 0
  1775. }
  1776. func (x *StringRules) GetMaxBytes() uint64 {
  1777. if x != nil && x.MaxBytes != nil {
  1778. return *x.MaxBytes
  1779. }
  1780. return 0
  1781. }
  1782. func (x *StringRules) GetPattern() string {
  1783. if x != nil && x.Pattern != nil {
  1784. return *x.Pattern
  1785. }
  1786. return ""
  1787. }
  1788. func (x *StringRules) GetPrefix() string {
  1789. if x != nil && x.Prefix != nil {
  1790. return *x.Prefix
  1791. }
  1792. return ""
  1793. }
  1794. func (x *StringRules) GetSuffix() string {
  1795. if x != nil && x.Suffix != nil {
  1796. return *x.Suffix
  1797. }
  1798. return ""
  1799. }
  1800. func (x *StringRules) GetContains() string {
  1801. if x != nil && x.Contains != nil {
  1802. return *x.Contains
  1803. }
  1804. return ""
  1805. }
  1806. func (x *StringRules) GetNotContains() string {
  1807. if x != nil && x.NotContains != nil {
  1808. return *x.NotContains
  1809. }
  1810. return ""
  1811. }
  1812. func (x *StringRules) GetIn() []string {
  1813. if x != nil {
  1814. return x.In
  1815. }
  1816. return nil
  1817. }
  1818. func (x *StringRules) GetNotIn() []string {
  1819. if x != nil {
  1820. return x.NotIn
  1821. }
  1822. return nil
  1823. }
  1824. func (x *StringRules) GetWellKnown() isStringRules_WellKnown {
  1825. if x != nil {
  1826. return x.WellKnown
  1827. }
  1828. return nil
  1829. }
  1830. func (x *StringRules) GetEmail() bool {
  1831. if x != nil {
  1832. if x, ok := x.WellKnown.(*StringRules_Email); ok {
  1833. return x.Email
  1834. }
  1835. }
  1836. return false
  1837. }
  1838. func (x *StringRules) GetHostname() bool {
  1839. if x != nil {
  1840. if x, ok := x.WellKnown.(*StringRules_Hostname); ok {
  1841. return x.Hostname
  1842. }
  1843. }
  1844. return false
  1845. }
  1846. func (x *StringRules) GetIp() bool {
  1847. if x != nil {
  1848. if x, ok := x.WellKnown.(*StringRules_Ip); ok {
  1849. return x.Ip
  1850. }
  1851. }
  1852. return false
  1853. }
  1854. func (x *StringRules) GetIpv4() bool {
  1855. if x != nil {
  1856. if x, ok := x.WellKnown.(*StringRules_Ipv4); ok {
  1857. return x.Ipv4
  1858. }
  1859. }
  1860. return false
  1861. }
  1862. func (x *StringRules) GetIpv6() bool {
  1863. if x != nil {
  1864. if x, ok := x.WellKnown.(*StringRules_Ipv6); ok {
  1865. return x.Ipv6
  1866. }
  1867. }
  1868. return false
  1869. }
  1870. func (x *StringRules) GetUri() bool {
  1871. if x != nil {
  1872. if x, ok := x.WellKnown.(*StringRules_Uri); ok {
  1873. return x.Uri
  1874. }
  1875. }
  1876. return false
  1877. }
  1878. func (x *StringRules) GetUriRef() bool {
  1879. if x != nil {
  1880. if x, ok := x.WellKnown.(*StringRules_UriRef); ok {
  1881. return x.UriRef
  1882. }
  1883. }
  1884. return false
  1885. }
  1886. func (x *StringRules) GetUuid() bool {
  1887. if x != nil {
  1888. if x, ok := x.WellKnown.(*StringRules_Uuid); ok {
  1889. return x.Uuid
  1890. }
  1891. }
  1892. return false
  1893. }
  1894. func (x *StringRules) GetChineseMobile() bool {
  1895. if x != nil {
  1896. if x, ok := x.WellKnown.(*StringRules_ChineseMobile); ok {
  1897. return x.ChineseMobile
  1898. }
  1899. }
  1900. return false
  1901. }
  1902. func (x *StringRules) GetChineseIdCard() bool {
  1903. if x != nil {
  1904. if x, ok := x.WellKnown.(*StringRules_ChineseIdCard); ok {
  1905. return x.ChineseIdCard
  1906. }
  1907. }
  1908. return false
  1909. }
  1910. func (x *StringRules) GetChineseName() bool {
  1911. if x != nil {
  1912. if x, ok := x.WellKnown.(*StringRules_ChineseName); ok {
  1913. return x.ChineseName
  1914. }
  1915. }
  1916. return false
  1917. }
  1918. func (x *StringRules) GetChinesePostcode() bool {
  1919. if x != nil {
  1920. if x, ok := x.WellKnown.(*StringRules_ChinesePostcode); ok {
  1921. return x.ChinesePostcode
  1922. }
  1923. }
  1924. return false
  1925. }
  1926. func (x *StringRules) GetAscii() bool {
  1927. if x != nil && x.Ascii != nil {
  1928. return *x.Ascii
  1929. }
  1930. return false
  1931. }
  1932. func (x *StringRules) GetPrintable() bool {
  1933. if x != nil && x.Printable != nil {
  1934. return *x.Printable
  1935. }
  1936. return false
  1937. }
  1938. func (x *StringRules) GetAlpha() bool {
  1939. if x != nil && x.Alpha != nil {
  1940. return *x.Alpha
  1941. }
  1942. return false
  1943. }
  1944. func (x *StringRules) GetAlphanumeric() bool {
  1945. if x != nil && x.Alphanumeric != nil {
  1946. return *x.Alphanumeric
  1947. }
  1948. return false
  1949. }
  1950. func (x *StringRules) GetNumeric() bool {
  1951. if x != nil && x.Numeric != nil {
  1952. return *x.Numeric
  1953. }
  1954. return false
  1955. }
  1956. func (x *StringRules) GetLowercase() bool {
  1957. if x != nil && x.Lowercase != nil {
  1958. return *x.Lowercase
  1959. }
  1960. return false
  1961. }
  1962. func (x *StringRules) GetUppercase() bool {
  1963. if x != nil && x.Uppercase != nil {
  1964. return *x.Uppercase
  1965. }
  1966. return false
  1967. }
  1968. type isStringRules_WellKnown interface {
  1969. isStringRules_WellKnown()
  1970. }
  1971. type StringRules_Email struct {
  1972. Email bool `protobuf:"varint,20,opt,name=email,proto3,oneof"` // 邮箱格式
  1973. }
  1974. type StringRules_Hostname struct {
  1975. Hostname bool `protobuf:"varint,21,opt,name=hostname,proto3,oneof"` // 主机名
  1976. }
  1977. type StringRules_Ip struct {
  1978. Ip bool `protobuf:"varint,22,opt,name=ip,proto3,oneof"` // IP 地址(v4/v6)
  1979. }
  1980. type StringRules_Ipv4 struct {
  1981. Ipv4 bool `protobuf:"varint,23,opt,name=ipv4,proto3,oneof"` // IPv4
  1982. }
  1983. type StringRules_Ipv6 struct {
  1984. Ipv6 bool `protobuf:"varint,24,opt,name=ipv6,proto3,oneof"` // IPv6
  1985. }
  1986. type StringRules_Uri struct {
  1987. Uri bool `protobuf:"varint,25,opt,name=uri,proto3,oneof"` // URI
  1988. }
  1989. type StringRules_UriRef struct {
  1990. UriRef bool `protobuf:"varint,26,opt,name=uri_ref,json=uriRef,proto3,oneof"` // URI 引用
  1991. }
  1992. type StringRules_Uuid struct {
  1993. Uuid bool `protobuf:"varint,27,opt,name=uuid,proto3,oneof"` // UUID
  1994. }
  1995. type StringRules_ChineseMobile struct {
  1996. // 中文业务格式 - 这是优化点!
  1997. ChineseMobile bool `protobuf:"varint,30,opt,name=chinese_mobile,json=chineseMobile,proto3,oneof"` // 中国手机号
  1998. }
  1999. type StringRules_ChineseIdCard struct {
  2000. ChineseIdCard bool `protobuf:"varint,31,opt,name=chinese_id_card,json=chineseIdCard,proto3,oneof"` // 中国身份证号
  2001. }
  2002. type StringRules_ChineseName struct {
  2003. ChineseName bool `protobuf:"varint,32,opt,name=chinese_name,json=chineseName,proto3,oneof"` // 中文姓名
  2004. }
  2005. type StringRules_ChinesePostcode struct {
  2006. ChinesePostcode bool `protobuf:"varint,33,opt,name=chinese_postcode,json=chinesePostcode,proto3,oneof"` // 中国邮政编码
  2007. }
  2008. func (*StringRules_Email) isStringRules_WellKnown() {}
  2009. func (*StringRules_Hostname) isStringRules_WellKnown() {}
  2010. func (*StringRules_Ip) isStringRules_WellKnown() {}
  2011. func (*StringRules_Ipv4) isStringRules_WellKnown() {}
  2012. func (*StringRules_Ipv6) isStringRules_WellKnown() {}
  2013. func (*StringRules_Uri) isStringRules_WellKnown() {}
  2014. func (*StringRules_UriRef) isStringRules_WellKnown() {}
  2015. func (*StringRules_Uuid) isStringRules_WellKnown() {}
  2016. func (*StringRules_ChineseMobile) isStringRules_WellKnown() {}
  2017. func (*StringRules_ChineseIdCard) isStringRules_WellKnown() {}
  2018. func (*StringRules_ChineseName) isStringRules_WellKnown() {}
  2019. func (*StringRules_ChinesePostcode) isStringRules_WellKnown() {}
  2020. // 字节数组验证规则
  2021. type BytesRules struct {
  2022. state protoimpl.MessageState `protogen:"open.v1"`
  2023. Const []byte `protobuf:"bytes,1,opt,name=const,proto3,oneof" json:"const"`
  2024. Len *uint64 `protobuf:"varint,2,opt,name=len,proto3,oneof" json:"len"`
  2025. MinLen *uint64 `protobuf:"varint,3,opt,name=min_len,json=minLen,proto3,oneof" json:"min_len"`
  2026. MaxLen *uint64 `protobuf:"varint,4,opt,name=max_len,json=maxLen,proto3,oneof" json:"max_len"`
  2027. Pattern []byte `protobuf:"bytes,5,opt,name=pattern,proto3,oneof" json:"pattern"`
  2028. Prefix []byte `protobuf:"bytes,6,opt,name=prefix,proto3,oneof" json:"prefix"`
  2029. Suffix []byte `protobuf:"bytes,7,opt,name=suffix,proto3,oneof" json:"suffix"`
  2030. Contains []byte `protobuf:"bytes,8,opt,name=contains,proto3,oneof" json:"contains"`
  2031. In [][]byte `protobuf:"bytes,9,rep,name=in,proto3" json:"in"`
  2032. NotIn [][]byte `protobuf:"bytes,10,rep,name=not_in,json=notIn,proto3" json:"not_in"`
  2033. // Well-known 格式
  2034. //
  2035. // Types that are valid to be assigned to WellKnown:
  2036. //
  2037. // *BytesRules_Ip
  2038. // *BytesRules_Ipv4
  2039. // *BytesRules_Ipv6
  2040. WellKnown isBytesRules_WellKnown `protobuf_oneof:"well_known"`
  2041. unknownFields protoimpl.UnknownFields
  2042. sizeCache protoimpl.SizeCache
  2043. }
  2044. func (x *BytesRules) Reset() {
  2045. *x = BytesRules{}
  2046. mi := &file_kuban_api_validate_validate_proto_msgTypes[19]
  2047. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2048. ms.StoreMessageInfo(mi)
  2049. }
  2050. func (x *BytesRules) String() string {
  2051. return protoimpl.X.MessageStringOf(x)
  2052. }
  2053. func (*BytesRules) ProtoMessage() {}
  2054. func (x *BytesRules) ProtoReflect() protoreflect.Message {
  2055. mi := &file_kuban_api_validate_validate_proto_msgTypes[19]
  2056. if x != nil {
  2057. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2058. if ms.LoadMessageInfo() == nil {
  2059. ms.StoreMessageInfo(mi)
  2060. }
  2061. return ms
  2062. }
  2063. return mi.MessageOf(x)
  2064. }
  2065. // Deprecated: Use BytesRules.ProtoReflect.Descriptor instead.
  2066. func (*BytesRules) Descriptor() ([]byte, []int) {
  2067. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{19}
  2068. }
  2069. func (x *BytesRules) GetConst() []byte {
  2070. if x != nil {
  2071. return x.Const
  2072. }
  2073. return nil
  2074. }
  2075. func (x *BytesRules) GetLen() uint64 {
  2076. if x != nil && x.Len != nil {
  2077. return *x.Len
  2078. }
  2079. return 0
  2080. }
  2081. func (x *BytesRules) GetMinLen() uint64 {
  2082. if x != nil && x.MinLen != nil {
  2083. return *x.MinLen
  2084. }
  2085. return 0
  2086. }
  2087. func (x *BytesRules) GetMaxLen() uint64 {
  2088. if x != nil && x.MaxLen != nil {
  2089. return *x.MaxLen
  2090. }
  2091. return 0
  2092. }
  2093. func (x *BytesRules) GetPattern() []byte {
  2094. if x != nil {
  2095. return x.Pattern
  2096. }
  2097. return nil
  2098. }
  2099. func (x *BytesRules) GetPrefix() []byte {
  2100. if x != nil {
  2101. return x.Prefix
  2102. }
  2103. return nil
  2104. }
  2105. func (x *BytesRules) GetSuffix() []byte {
  2106. if x != nil {
  2107. return x.Suffix
  2108. }
  2109. return nil
  2110. }
  2111. func (x *BytesRules) GetContains() []byte {
  2112. if x != nil {
  2113. return x.Contains
  2114. }
  2115. return nil
  2116. }
  2117. func (x *BytesRules) GetIn() [][]byte {
  2118. if x != nil {
  2119. return x.In
  2120. }
  2121. return nil
  2122. }
  2123. func (x *BytesRules) GetNotIn() [][]byte {
  2124. if x != nil {
  2125. return x.NotIn
  2126. }
  2127. return nil
  2128. }
  2129. func (x *BytesRules) GetWellKnown() isBytesRules_WellKnown {
  2130. if x != nil {
  2131. return x.WellKnown
  2132. }
  2133. return nil
  2134. }
  2135. func (x *BytesRules) GetIp() bool {
  2136. if x != nil {
  2137. if x, ok := x.WellKnown.(*BytesRules_Ip); ok {
  2138. return x.Ip
  2139. }
  2140. }
  2141. return false
  2142. }
  2143. func (x *BytesRules) GetIpv4() bool {
  2144. if x != nil {
  2145. if x, ok := x.WellKnown.(*BytesRules_Ipv4); ok {
  2146. return x.Ipv4
  2147. }
  2148. }
  2149. return false
  2150. }
  2151. func (x *BytesRules) GetIpv6() bool {
  2152. if x != nil {
  2153. if x, ok := x.WellKnown.(*BytesRules_Ipv6); ok {
  2154. return x.Ipv6
  2155. }
  2156. }
  2157. return false
  2158. }
  2159. type isBytesRules_WellKnown interface {
  2160. isBytesRules_WellKnown()
  2161. }
  2162. type BytesRules_Ip struct {
  2163. Ip bool `protobuf:"varint,20,opt,name=ip,proto3,oneof"`
  2164. }
  2165. type BytesRules_Ipv4 struct {
  2166. Ipv4 bool `protobuf:"varint,21,opt,name=ipv4,proto3,oneof"`
  2167. }
  2168. type BytesRules_Ipv6 struct {
  2169. Ipv6 bool `protobuf:"varint,22,opt,name=ipv6,proto3,oneof"`
  2170. }
  2171. func (*BytesRules_Ip) isBytesRules_WellKnown() {}
  2172. func (*BytesRules_Ipv4) isBytesRules_WellKnown() {}
  2173. func (*BytesRules_Ipv6) isBytesRules_WellKnown() {}
  2174. // 枚举验证规则
  2175. type EnumRules struct {
  2176. state protoimpl.MessageState `protogen:"open.v1"`
  2177. Const *int32 `protobuf:"varint,1,opt,name=const,proto3,oneof" json:"const"`
  2178. DefinedOnly *bool `protobuf:"varint,2,opt,name=defined_only,json=definedOnly,proto3,oneof" json:"defined_only"` // 仅允许已定义的枚举值
  2179. In []int32 `protobuf:"varint,3,rep,packed,name=in,proto3" json:"in"`
  2180. NotIn []int32 `protobuf:"varint,4,rep,packed,name=not_in,json=notIn,proto3" json:"not_in"`
  2181. unknownFields protoimpl.UnknownFields
  2182. sizeCache protoimpl.SizeCache
  2183. }
  2184. func (x *EnumRules) Reset() {
  2185. *x = EnumRules{}
  2186. mi := &file_kuban_api_validate_validate_proto_msgTypes[20]
  2187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2188. ms.StoreMessageInfo(mi)
  2189. }
  2190. func (x *EnumRules) String() string {
  2191. return protoimpl.X.MessageStringOf(x)
  2192. }
  2193. func (*EnumRules) ProtoMessage() {}
  2194. func (x *EnumRules) ProtoReflect() protoreflect.Message {
  2195. mi := &file_kuban_api_validate_validate_proto_msgTypes[20]
  2196. if x != nil {
  2197. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2198. if ms.LoadMessageInfo() == nil {
  2199. ms.StoreMessageInfo(mi)
  2200. }
  2201. return ms
  2202. }
  2203. return mi.MessageOf(x)
  2204. }
  2205. // Deprecated: Use EnumRules.ProtoReflect.Descriptor instead.
  2206. func (*EnumRules) Descriptor() ([]byte, []int) {
  2207. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{20}
  2208. }
  2209. func (x *EnumRules) GetConst() int32 {
  2210. if x != nil && x.Const != nil {
  2211. return *x.Const
  2212. }
  2213. return 0
  2214. }
  2215. func (x *EnumRules) GetDefinedOnly() bool {
  2216. if x != nil && x.DefinedOnly != nil {
  2217. return *x.DefinedOnly
  2218. }
  2219. return false
  2220. }
  2221. func (x *EnumRules) GetIn() []int32 {
  2222. if x != nil {
  2223. return x.In
  2224. }
  2225. return nil
  2226. }
  2227. func (x *EnumRules) GetNotIn() []int32 {
  2228. if x != nil {
  2229. return x.NotIn
  2230. }
  2231. return nil
  2232. }
  2233. // 重复字段验证规则
  2234. type RepeatedRules struct {
  2235. state protoimpl.MessageState `protogen:"open.v1"`
  2236. MinItems *uint64 `protobuf:"varint,1,opt,name=min_items,json=minItems,proto3,oneof" json:"min_items"` // 最小元素数
  2237. MaxItems *uint64 `protobuf:"varint,2,opt,name=max_items,json=maxItems,proto3,oneof" json:"max_items"` // 最大元素数
  2238. Unique *bool `protobuf:"varint,3,opt,name=unique,proto3,oneof" json:"unique"` // 元素必须唯一
  2239. Items *FieldRules `protobuf:"bytes,4,opt,name=items,proto3" json:"items"` // 元素验证规则
  2240. unknownFields protoimpl.UnknownFields
  2241. sizeCache protoimpl.SizeCache
  2242. }
  2243. func (x *RepeatedRules) Reset() {
  2244. *x = RepeatedRules{}
  2245. mi := &file_kuban_api_validate_validate_proto_msgTypes[21]
  2246. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2247. ms.StoreMessageInfo(mi)
  2248. }
  2249. func (x *RepeatedRules) String() string {
  2250. return protoimpl.X.MessageStringOf(x)
  2251. }
  2252. func (*RepeatedRules) ProtoMessage() {}
  2253. func (x *RepeatedRules) ProtoReflect() protoreflect.Message {
  2254. mi := &file_kuban_api_validate_validate_proto_msgTypes[21]
  2255. if x != nil {
  2256. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2257. if ms.LoadMessageInfo() == nil {
  2258. ms.StoreMessageInfo(mi)
  2259. }
  2260. return ms
  2261. }
  2262. return mi.MessageOf(x)
  2263. }
  2264. // Deprecated: Use RepeatedRules.ProtoReflect.Descriptor instead.
  2265. func (*RepeatedRules) Descriptor() ([]byte, []int) {
  2266. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{21}
  2267. }
  2268. func (x *RepeatedRules) GetMinItems() uint64 {
  2269. if x != nil && x.MinItems != nil {
  2270. return *x.MinItems
  2271. }
  2272. return 0
  2273. }
  2274. func (x *RepeatedRules) GetMaxItems() uint64 {
  2275. if x != nil && x.MaxItems != nil {
  2276. return *x.MaxItems
  2277. }
  2278. return 0
  2279. }
  2280. func (x *RepeatedRules) GetUnique() bool {
  2281. if x != nil && x.Unique != nil {
  2282. return *x.Unique
  2283. }
  2284. return false
  2285. }
  2286. func (x *RepeatedRules) GetItems() *FieldRules {
  2287. if x != nil {
  2288. return x.Items
  2289. }
  2290. return nil
  2291. }
  2292. // Map 验证规则
  2293. type MapRules struct {
  2294. state protoimpl.MessageState `protogen:"open.v1"`
  2295. MinPairs *uint64 `protobuf:"varint,1,opt,name=min_pairs,json=minPairs,proto3,oneof" json:"min_pairs"` // 最小键值对数
  2296. MaxPairs *uint64 `protobuf:"varint,2,opt,name=max_pairs,json=maxPairs,proto3,oneof" json:"max_pairs"` // 最大键值对数
  2297. Keys *FieldRules `protobuf:"bytes,3,opt,name=keys,proto3" json:"keys"` // 键验证规则
  2298. Values *FieldRules `protobuf:"bytes,4,opt,name=values,proto3" json:"values"` // 值验证规则
  2299. unknownFields protoimpl.UnknownFields
  2300. sizeCache protoimpl.SizeCache
  2301. }
  2302. func (x *MapRules) Reset() {
  2303. *x = MapRules{}
  2304. mi := &file_kuban_api_validate_validate_proto_msgTypes[22]
  2305. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2306. ms.StoreMessageInfo(mi)
  2307. }
  2308. func (x *MapRules) String() string {
  2309. return protoimpl.X.MessageStringOf(x)
  2310. }
  2311. func (*MapRules) ProtoMessage() {}
  2312. func (x *MapRules) ProtoReflect() protoreflect.Message {
  2313. mi := &file_kuban_api_validate_validate_proto_msgTypes[22]
  2314. if x != nil {
  2315. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2316. if ms.LoadMessageInfo() == nil {
  2317. ms.StoreMessageInfo(mi)
  2318. }
  2319. return ms
  2320. }
  2321. return mi.MessageOf(x)
  2322. }
  2323. // Deprecated: Use MapRules.ProtoReflect.Descriptor instead.
  2324. func (*MapRules) Descriptor() ([]byte, []int) {
  2325. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{22}
  2326. }
  2327. func (x *MapRules) GetMinPairs() uint64 {
  2328. if x != nil && x.MinPairs != nil {
  2329. return *x.MinPairs
  2330. }
  2331. return 0
  2332. }
  2333. func (x *MapRules) GetMaxPairs() uint64 {
  2334. if x != nil && x.MaxPairs != nil {
  2335. return *x.MaxPairs
  2336. }
  2337. return 0
  2338. }
  2339. func (x *MapRules) GetKeys() *FieldRules {
  2340. if x != nil {
  2341. return x.Keys
  2342. }
  2343. return nil
  2344. }
  2345. func (x *MapRules) GetValues() *FieldRules {
  2346. if x != nil {
  2347. return x.Values
  2348. }
  2349. return nil
  2350. }
  2351. // Duration 验证规则
  2352. type DurationRules struct {
  2353. state protoimpl.MessageState `protogen:"open.v1"`
  2354. Required *bool `protobuf:"varint,1,opt,name=required,proto3,oneof" json:"required"`
  2355. // Duration 常量
  2356. ConstSeconds *int64 `protobuf:"varint,2,opt,name=const_seconds,json=constSeconds,proto3,oneof" json:"const_seconds"`
  2357. ConstNanos *int32 `protobuf:"varint,3,opt,name=const_nanos,json=constNanos,proto3,oneof" json:"const_nanos"`
  2358. // 范围限制
  2359. LtSeconds *int64 `protobuf:"varint,4,opt,name=lt_seconds,json=ltSeconds,proto3,oneof" json:"lt_seconds"`
  2360. LteSeconds *int64 `protobuf:"varint,5,opt,name=lte_seconds,json=lteSeconds,proto3,oneof" json:"lte_seconds"`
  2361. GtSeconds *int64 `protobuf:"varint,6,opt,name=gt_seconds,json=gtSeconds,proto3,oneof" json:"gt_seconds"`
  2362. GteSeconds *int64 `protobuf:"varint,7,opt,name=gte_seconds,json=gteSeconds,proto3,oneof" json:"gte_seconds"`
  2363. // 在值列表中
  2364. InSeconds []int64 `protobuf:"varint,8,rep,packed,name=in_seconds,json=inSeconds,proto3" json:"in_seconds"`
  2365. NotInSeconds []int64 `protobuf:"varint,9,rep,packed,name=not_in_seconds,json=notInSeconds,proto3" json:"not_in_seconds"`
  2366. unknownFields protoimpl.UnknownFields
  2367. sizeCache protoimpl.SizeCache
  2368. }
  2369. func (x *DurationRules) Reset() {
  2370. *x = DurationRules{}
  2371. mi := &file_kuban_api_validate_validate_proto_msgTypes[23]
  2372. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2373. ms.StoreMessageInfo(mi)
  2374. }
  2375. func (x *DurationRules) String() string {
  2376. return protoimpl.X.MessageStringOf(x)
  2377. }
  2378. func (*DurationRules) ProtoMessage() {}
  2379. func (x *DurationRules) ProtoReflect() protoreflect.Message {
  2380. mi := &file_kuban_api_validate_validate_proto_msgTypes[23]
  2381. if x != nil {
  2382. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2383. if ms.LoadMessageInfo() == nil {
  2384. ms.StoreMessageInfo(mi)
  2385. }
  2386. return ms
  2387. }
  2388. return mi.MessageOf(x)
  2389. }
  2390. // Deprecated: Use DurationRules.ProtoReflect.Descriptor instead.
  2391. func (*DurationRules) Descriptor() ([]byte, []int) {
  2392. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{23}
  2393. }
  2394. func (x *DurationRules) GetRequired() bool {
  2395. if x != nil && x.Required != nil {
  2396. return *x.Required
  2397. }
  2398. return false
  2399. }
  2400. func (x *DurationRules) GetConstSeconds() int64 {
  2401. if x != nil && x.ConstSeconds != nil {
  2402. return *x.ConstSeconds
  2403. }
  2404. return 0
  2405. }
  2406. func (x *DurationRules) GetConstNanos() int32 {
  2407. if x != nil && x.ConstNanos != nil {
  2408. return *x.ConstNanos
  2409. }
  2410. return 0
  2411. }
  2412. func (x *DurationRules) GetLtSeconds() int64 {
  2413. if x != nil && x.LtSeconds != nil {
  2414. return *x.LtSeconds
  2415. }
  2416. return 0
  2417. }
  2418. func (x *DurationRules) GetLteSeconds() int64 {
  2419. if x != nil && x.LteSeconds != nil {
  2420. return *x.LteSeconds
  2421. }
  2422. return 0
  2423. }
  2424. func (x *DurationRules) GetGtSeconds() int64 {
  2425. if x != nil && x.GtSeconds != nil {
  2426. return *x.GtSeconds
  2427. }
  2428. return 0
  2429. }
  2430. func (x *DurationRules) GetGteSeconds() int64 {
  2431. if x != nil && x.GteSeconds != nil {
  2432. return *x.GteSeconds
  2433. }
  2434. return 0
  2435. }
  2436. func (x *DurationRules) GetInSeconds() []int64 {
  2437. if x != nil {
  2438. return x.InSeconds
  2439. }
  2440. return nil
  2441. }
  2442. func (x *DurationRules) GetNotInSeconds() []int64 {
  2443. if x != nil {
  2444. return x.NotInSeconds
  2445. }
  2446. return nil
  2447. }
  2448. // Timestamp 验证规则
  2449. type TimestampRules struct {
  2450. state protoimpl.MessageState `protogen:"open.v1"`
  2451. Required *bool `protobuf:"varint,1,opt,name=required,proto3,oneof" json:"required"`
  2452. // Timestamp 常量(Unix 秒)
  2453. Const *int64 `protobuf:"varint,2,opt,name=const,proto3,oneof" json:"const"`
  2454. // 范围限制
  2455. Lt *int64 `protobuf:"varint,3,opt,name=lt,proto3,oneof" json:"lt"`
  2456. Lte *int64 `protobuf:"varint,4,opt,name=lte,proto3,oneof" json:"lte"`
  2457. Gt *int64 `protobuf:"varint,5,opt,name=gt,proto3,oneof" json:"gt"`
  2458. Gte *int64 `protobuf:"varint,6,opt,name=gte,proto3,oneof" json:"gte"`
  2459. // 相对时间限制
  2460. LtNow *bool `protobuf:"varint,7,opt,name=lt_now,json=ltNow,proto3,oneof" json:"lt_now"` // 必须在当前时间之前
  2461. GtNow *bool `protobuf:"varint,8,opt,name=gt_now,json=gtNow,proto3,oneof" json:"gt_now"` // 必须在当前时间之后
  2462. // 时间范围(从现在开始的偏移量,秒)
  2463. WithinSeconds *int64 `protobuf:"varint,9,opt,name=within_seconds,json=withinSeconds,proto3,oneof" json:"within_seconds"` // 必须在现在的 N 秒内
  2464. unknownFields protoimpl.UnknownFields
  2465. sizeCache protoimpl.SizeCache
  2466. }
  2467. func (x *TimestampRules) Reset() {
  2468. *x = TimestampRules{}
  2469. mi := &file_kuban_api_validate_validate_proto_msgTypes[24]
  2470. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2471. ms.StoreMessageInfo(mi)
  2472. }
  2473. func (x *TimestampRules) String() string {
  2474. return protoimpl.X.MessageStringOf(x)
  2475. }
  2476. func (*TimestampRules) ProtoMessage() {}
  2477. func (x *TimestampRules) ProtoReflect() protoreflect.Message {
  2478. mi := &file_kuban_api_validate_validate_proto_msgTypes[24]
  2479. if x != nil {
  2480. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  2481. if ms.LoadMessageInfo() == nil {
  2482. ms.StoreMessageInfo(mi)
  2483. }
  2484. return ms
  2485. }
  2486. return mi.MessageOf(x)
  2487. }
  2488. // Deprecated: Use TimestampRules.ProtoReflect.Descriptor instead.
  2489. func (*TimestampRules) Descriptor() ([]byte, []int) {
  2490. return file_kuban_api_validate_validate_proto_rawDescGZIP(), []int{24}
  2491. }
  2492. func (x *TimestampRules) GetRequired() bool {
  2493. if x != nil && x.Required != nil {
  2494. return *x.Required
  2495. }
  2496. return false
  2497. }
  2498. func (x *TimestampRules) GetConst() int64 {
  2499. if x != nil && x.Const != nil {
  2500. return *x.Const
  2501. }
  2502. return 0
  2503. }
  2504. func (x *TimestampRules) GetLt() int64 {
  2505. if x != nil && x.Lt != nil {
  2506. return *x.Lt
  2507. }
  2508. return 0
  2509. }
  2510. func (x *TimestampRules) GetLte() int64 {
  2511. if x != nil && x.Lte != nil {
  2512. return *x.Lte
  2513. }
  2514. return 0
  2515. }
  2516. func (x *TimestampRules) GetGt() int64 {
  2517. if x != nil && x.Gt != nil {
  2518. return *x.Gt
  2519. }
  2520. return 0
  2521. }
  2522. func (x *TimestampRules) GetGte() int64 {
  2523. if x != nil && x.Gte != nil {
  2524. return *x.Gte
  2525. }
  2526. return 0
  2527. }
  2528. func (x *TimestampRules) GetLtNow() bool {
  2529. if x != nil && x.LtNow != nil {
  2530. return *x.LtNow
  2531. }
  2532. return false
  2533. }
  2534. func (x *TimestampRules) GetGtNow() bool {
  2535. if x != nil && x.GtNow != nil {
  2536. return *x.GtNow
  2537. }
  2538. return false
  2539. }
  2540. func (x *TimestampRules) GetWithinSeconds() int64 {
  2541. if x != nil && x.WithinSeconds != nil {
  2542. return *x.WithinSeconds
  2543. }
  2544. return 0
  2545. }
  2546. var file_kuban_api_validate_validate_proto_extTypes = []protoimpl.ExtensionInfo{
  2547. {
  2548. ExtendedType: (*descriptorpb.MessageOptions)(nil),
  2549. ExtensionType: (*MessageRules)(nil),
  2550. Field: 10100,
  2551. Name: "kuban.api.validate.message",
  2552. Tag: "bytes,10100,opt,name=message",
  2553. Filename: "kuban/api/validate/validate.proto",
  2554. },
  2555. {
  2556. ExtendedType: (*descriptorpb.FieldOptions)(nil),
  2557. ExtensionType: (*FieldRules)(nil),
  2558. Field: 10100,
  2559. Name: "kuban.api.validate.field",
  2560. Tag: "bytes,10100,opt,name=field",
  2561. Filename: "kuban/api/validate/validate.proto",
  2562. },
  2563. {
  2564. ExtendedType: (*descriptorpb.FieldOptions)(nil),
  2565. ExtensionType: (*PredefinedRules)(nil),
  2566. Field: 10101,
  2567. Name: "kuban.api.validate.predefined",
  2568. Tag: "bytes,10101,opt,name=predefined",
  2569. Filename: "kuban/api/validate/validate.proto",
  2570. },
  2571. {
  2572. ExtendedType: (*descriptorpb.OneofOptions)(nil),
  2573. ExtensionType: (*OneofRules)(nil),
  2574. Field: 10100,
  2575. Name: "kuban.api.validate.oneof",
  2576. Tag: "bytes,10100,opt,name=oneof",
  2577. Filename: "kuban/api/validate/validate.proto",
  2578. },
  2579. }
  2580. // Extension fields to descriptorpb.MessageOptions.
  2581. var (
  2582. // 消息级别的验证规则
  2583. //
  2584. // optional kuban.api.validate.MessageRules message = 10100;
  2585. E_Message = &file_kuban_api_validate_validate_proto_extTypes[0]
  2586. )
  2587. // Extension fields to descriptorpb.FieldOptions.
  2588. var (
  2589. // 字段级别的验证规则
  2590. //
  2591. // optional kuban.api.validate.FieldRules field = 10100;
  2592. E_Field = &file_kuban_api_validate_validate_proto_extTypes[1]
  2593. // 预定义规则引用(用于扩展)
  2594. //
  2595. // optional kuban.api.validate.PredefinedRules predefined = 10101;
  2596. E_Predefined = &file_kuban_api_validate_validate_proto_extTypes[2]
  2597. )
  2598. // Extension fields to descriptorpb.OneofOptions.
  2599. var (
  2600. // oneof 级别的验证规则
  2601. //
  2602. // optional kuban.api.validate.OneofRules oneof = 10100;
  2603. E_Oneof = &file_kuban_api_validate_validate_proto_extTypes[3]
  2604. )
  2605. var File_kuban_api_validate_validate_proto protoreflect.FileDescriptor
  2606. const file_kuban_api_validate_validate_proto_rawDesc = "" +
  2607. "\n" +
  2608. "!kuban/api/validate/validate.proto\x12\x12kuban.api.validate\x1a google/protobuf/descriptor.proto\"o\n" +
  2609. "\x04Rule\x12\x0e\n" +
  2610. "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" +
  2611. "\amessage\x18\x02 \x01(\tR\amessage\x12\x1d\n" +
  2612. "\n" +
  2613. "message_en\x18\x03 \x01(\tR\tmessageEn\x12\x1e\n" +
  2614. "\n" +
  2615. "expression\x18\x04 \x01(\tR\n" +
  2616. "expression\"n\n" +
  2617. "\fMessageRules\x12*\n" +
  2618. "\x03cel\x18\x01 \x03(\v2\x18.kuban.api.validate.RuleR\x03cel\x12\x1a\n" +
  2619. "\bdisabled\x18\x02 \x01(\bR\bdisabled\x12\x16\n" +
  2620. "\x06groups\x18\x03 \x03(\tR\x06groups\"(\n" +
  2621. "\n" +
  2622. "OneofRules\x12\x1a\n" +
  2623. "\brequired\x18\x01 \x01(\bR\brequired\"\xf8\v\n" +
  2624. "\n" +
  2625. "FieldRules\x12*\n" +
  2626. "\x03cel\x18\x01 \x03(\v2\x18.kuban.api.validate.RuleR\x03cel\x12\x1a\n" +
  2627. "\brequired\x18\x02 \x01(\bR\brequired\x126\n" +
  2628. "\x06ignore\x18\x03 \x01(\x0e2\x1e.kuban.api.validate.IgnoreRuleR\x06ignore\x12\x16\n" +
  2629. "\x06groups\x18\x04 \x03(\tR\x06groups\x12#\n" +
  2630. "\rerror_message\x18\x05 \x01(\tR\ferrorMessage\x12(\n" +
  2631. "\x10error_message_en\x18\x06 \x01(\tR\x0eerrorMessageEn\x12)\n" +
  2632. "\x10required_message\x18\a \x01(\tR\x0frequiredMessage\x12.\n" +
  2633. "\x13required_message_en\x18\b \x01(\tR\x11requiredMessageEn\x126\n" +
  2634. "\x05float\x18\n" +
  2635. " \x01(\v2\x1e.kuban.api.validate.FloatRulesH\x00R\x05float\x129\n" +
  2636. "\x06double\x18\v \x01(\v2\x1f.kuban.api.validate.DoubleRulesH\x00R\x06double\x126\n" +
  2637. "\x05int32\x18\f \x01(\v2\x1e.kuban.api.validate.Int32RulesH\x00R\x05int32\x126\n" +
  2638. "\x05int64\x18\r \x01(\v2\x1e.kuban.api.validate.Int64RulesH\x00R\x05int64\x129\n" +
  2639. "\x06uint32\x18\x0e \x01(\v2\x1f.kuban.api.validate.UInt32RulesH\x00R\x06uint32\x129\n" +
  2640. "\x06uint64\x18\x0f \x01(\v2\x1f.kuban.api.validate.UInt64RulesH\x00R\x06uint64\x129\n" +
  2641. "\x06sint32\x18\x10 \x01(\v2\x1f.kuban.api.validate.SInt32RulesH\x00R\x06sint32\x129\n" +
  2642. "\x06sint64\x18\x11 \x01(\v2\x1f.kuban.api.validate.SInt64RulesH\x00R\x06sint64\x12<\n" +
  2643. "\afixed32\x18\x12 \x01(\v2 .kuban.api.validate.Fixed32RulesH\x00R\afixed32\x12<\n" +
  2644. "\afixed64\x18\x13 \x01(\v2 .kuban.api.validate.Fixed64RulesH\x00R\afixed64\x12?\n" +
  2645. "\bsfixed32\x18\x14 \x01(\v2!.kuban.api.validate.SFixed32RulesH\x00R\bsfixed32\x12?\n" +
  2646. "\bsfixed64\x18\x15 \x01(\v2!.kuban.api.validate.SFixed64RulesH\x00R\bsfixed64\x123\n" +
  2647. "\x04bool\x18\x1e \x01(\v2\x1d.kuban.api.validate.BoolRulesH\x00R\x04bool\x129\n" +
  2648. "\x06string\x18\x1f \x01(\v2\x1f.kuban.api.validate.StringRulesH\x00R\x06string\x126\n" +
  2649. "\x05bytes\x18 \x01(\v2\x1e.kuban.api.validate.BytesRulesH\x00R\x05bytes\x123\n" +
  2650. "\x04enum\x18( \x01(\v2\x1d.kuban.api.validate.EnumRulesH\x00R\x04enum\x12?\n" +
  2651. "\brepeated\x18) \x01(\v2!.kuban.api.validate.RepeatedRulesH\x00R\brepeated\x120\n" +
  2652. "\x03map\x18* \x01(\v2\x1c.kuban.api.validate.MapRulesH\x00R\x03map\x12?\n" +
  2653. "\bduration\x182 \x01(\v2!.kuban.api.validate.DurationRulesH\x00R\bduration\x12B\n" +
  2654. "\ttimestamp\x183 \x01(\v2\".kuban.api.validate.TimestampRulesH\x00R\ttimestampB\x06\n" +
  2655. "\x04type\"=\n" +
  2656. "\x0fPredefinedRules\x12*\n" +
  2657. "\x03cel\x18\x01 \x03(\v2\x18.kuban.api.validate.RuleR\x03cel\"\xf6\x01\n" +
  2658. "\n" +
  2659. "FloatRules\x12\x19\n" +
  2660. "\x05const\x18\x01 \x01(\x02H\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2661. "\x02lt\x18\x02 \x01(\x02H\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2662. "\x03lte\x18\x03 \x01(\x02H\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2663. "\x02gt\x18\x04 \x01(\x02H\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2664. "\x03gte\x18\x05 \x01(\x02H\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2665. "\x02in\x18\x06 \x03(\x02R\x02in\x12\x15\n" +
  2666. "\x06not_in\x18\a \x03(\x02R\x05notIn\x12\x1b\n" +
  2667. "\x06finite\x18\b \x01(\bH\x05R\x06finite\x88\x01\x01B\b\n" +
  2668. "\x06_constB\x05\n" +
  2669. "\x03_ltB\x06\n" +
  2670. "\x04_lteB\x05\n" +
  2671. "\x03_gtB\x06\n" +
  2672. "\x04_gteB\t\n" +
  2673. "\a_finite\"\xf7\x01\n" +
  2674. "\vDoubleRules\x12\x19\n" +
  2675. "\x05const\x18\x01 \x01(\x01H\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2676. "\x02lt\x18\x02 \x01(\x01H\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2677. "\x03lte\x18\x03 \x01(\x01H\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2678. "\x02gt\x18\x04 \x01(\x01H\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2679. "\x03gte\x18\x05 \x01(\x01H\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2680. "\x02in\x18\x06 \x03(\x01R\x02in\x12\x15\n" +
  2681. "\x06not_in\x18\a \x03(\x01R\x05notIn\x12\x1b\n" +
  2682. "\x06finite\x18\b \x01(\bH\x05R\x06finite\x88\x01\x01B\b\n" +
  2683. "\x06_constB\x05\n" +
  2684. "\x03_ltB\x06\n" +
  2685. "\x04_lteB\x05\n" +
  2686. "\x03_gtB\x06\n" +
  2687. "\x04_gteB\t\n" +
  2688. "\a_finite\"\xce\x01\n" +
  2689. "\n" +
  2690. "Int32Rules\x12\x19\n" +
  2691. "\x05const\x18\x01 \x01(\x05H\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2692. "\x02lt\x18\x02 \x01(\x05H\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2693. "\x03lte\x18\x03 \x01(\x05H\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2694. "\x02gt\x18\x04 \x01(\x05H\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2695. "\x03gte\x18\x05 \x01(\x05H\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2696. "\x02in\x18\x06 \x03(\x05R\x02in\x12\x15\n" +
  2697. "\x06not_in\x18\a \x03(\x05R\x05notInB\b\n" +
  2698. "\x06_constB\x05\n" +
  2699. "\x03_ltB\x06\n" +
  2700. "\x04_lteB\x05\n" +
  2701. "\x03_gtB\x06\n" +
  2702. "\x04_gte\"\xce\x01\n" +
  2703. "\n" +
  2704. "Int64Rules\x12\x19\n" +
  2705. "\x05const\x18\x01 \x01(\x03H\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2706. "\x02lt\x18\x02 \x01(\x03H\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2707. "\x03lte\x18\x03 \x01(\x03H\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2708. "\x02gt\x18\x04 \x01(\x03H\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2709. "\x03gte\x18\x05 \x01(\x03H\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2710. "\x02in\x18\x06 \x03(\x03R\x02in\x12\x15\n" +
  2711. "\x06not_in\x18\a \x03(\x03R\x05notInB\b\n" +
  2712. "\x06_constB\x05\n" +
  2713. "\x03_ltB\x06\n" +
  2714. "\x04_lteB\x05\n" +
  2715. "\x03_gtB\x06\n" +
  2716. "\x04_gte\"\xcf\x01\n" +
  2717. "\vUInt32Rules\x12\x19\n" +
  2718. "\x05const\x18\x01 \x01(\rH\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2719. "\x02lt\x18\x02 \x01(\rH\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2720. "\x03lte\x18\x03 \x01(\rH\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2721. "\x02gt\x18\x04 \x01(\rH\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2722. "\x03gte\x18\x05 \x01(\rH\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2723. "\x02in\x18\x06 \x03(\rR\x02in\x12\x15\n" +
  2724. "\x06not_in\x18\a \x03(\rR\x05notInB\b\n" +
  2725. "\x06_constB\x05\n" +
  2726. "\x03_ltB\x06\n" +
  2727. "\x04_lteB\x05\n" +
  2728. "\x03_gtB\x06\n" +
  2729. "\x04_gte\"\xcf\x01\n" +
  2730. "\vUInt64Rules\x12\x19\n" +
  2731. "\x05const\x18\x01 \x01(\x04H\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2732. "\x02lt\x18\x02 \x01(\x04H\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2733. "\x03lte\x18\x03 \x01(\x04H\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2734. "\x02gt\x18\x04 \x01(\x04H\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2735. "\x03gte\x18\x05 \x01(\x04H\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2736. "\x02in\x18\x06 \x03(\x04R\x02in\x12\x15\n" +
  2737. "\x06not_in\x18\a \x03(\x04R\x05notInB\b\n" +
  2738. "\x06_constB\x05\n" +
  2739. "\x03_ltB\x06\n" +
  2740. "\x04_lteB\x05\n" +
  2741. "\x03_gtB\x06\n" +
  2742. "\x04_gte\"\xcf\x01\n" +
  2743. "\vSInt32Rules\x12\x19\n" +
  2744. "\x05const\x18\x01 \x01(\x11H\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2745. "\x02lt\x18\x02 \x01(\x11H\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2746. "\x03lte\x18\x03 \x01(\x11H\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2747. "\x02gt\x18\x04 \x01(\x11H\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2748. "\x03gte\x18\x05 \x01(\x11H\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2749. "\x02in\x18\x06 \x03(\x11R\x02in\x12\x15\n" +
  2750. "\x06not_in\x18\a \x03(\x11R\x05notInB\b\n" +
  2751. "\x06_constB\x05\n" +
  2752. "\x03_ltB\x06\n" +
  2753. "\x04_lteB\x05\n" +
  2754. "\x03_gtB\x06\n" +
  2755. "\x04_gte\"\xcf\x01\n" +
  2756. "\vSInt64Rules\x12\x19\n" +
  2757. "\x05const\x18\x01 \x01(\x12H\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2758. "\x02lt\x18\x02 \x01(\x12H\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2759. "\x03lte\x18\x03 \x01(\x12H\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2760. "\x02gt\x18\x04 \x01(\x12H\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2761. "\x03gte\x18\x05 \x01(\x12H\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2762. "\x02in\x18\x06 \x03(\x12R\x02in\x12\x15\n" +
  2763. "\x06not_in\x18\a \x03(\x12R\x05notInB\b\n" +
  2764. "\x06_constB\x05\n" +
  2765. "\x03_ltB\x06\n" +
  2766. "\x04_lteB\x05\n" +
  2767. "\x03_gtB\x06\n" +
  2768. "\x04_gte\"\xd0\x01\n" +
  2769. "\fFixed32Rules\x12\x19\n" +
  2770. "\x05const\x18\x01 \x01(\aH\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2771. "\x02lt\x18\x02 \x01(\aH\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2772. "\x03lte\x18\x03 \x01(\aH\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2773. "\x02gt\x18\x04 \x01(\aH\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2774. "\x03gte\x18\x05 \x01(\aH\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2775. "\x02in\x18\x06 \x03(\aR\x02in\x12\x15\n" +
  2776. "\x06not_in\x18\a \x03(\aR\x05notInB\b\n" +
  2777. "\x06_constB\x05\n" +
  2778. "\x03_ltB\x06\n" +
  2779. "\x04_lteB\x05\n" +
  2780. "\x03_gtB\x06\n" +
  2781. "\x04_gte\"\xd0\x01\n" +
  2782. "\fFixed64Rules\x12\x19\n" +
  2783. "\x05const\x18\x01 \x01(\x06H\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2784. "\x02lt\x18\x02 \x01(\x06H\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2785. "\x03lte\x18\x03 \x01(\x06H\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2786. "\x02gt\x18\x04 \x01(\x06H\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2787. "\x03gte\x18\x05 \x01(\x06H\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2788. "\x02in\x18\x06 \x03(\x06R\x02in\x12\x15\n" +
  2789. "\x06not_in\x18\a \x03(\x06R\x05notInB\b\n" +
  2790. "\x06_constB\x05\n" +
  2791. "\x03_ltB\x06\n" +
  2792. "\x04_lteB\x05\n" +
  2793. "\x03_gtB\x06\n" +
  2794. "\x04_gte\"\xd1\x01\n" +
  2795. "\rSFixed32Rules\x12\x19\n" +
  2796. "\x05const\x18\x01 \x01(\x0fH\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2797. "\x02lt\x18\x02 \x01(\x0fH\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2798. "\x03lte\x18\x03 \x01(\x0fH\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2799. "\x02gt\x18\x04 \x01(\x0fH\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2800. "\x03gte\x18\x05 \x01(\x0fH\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2801. "\x02in\x18\x06 \x03(\x0fR\x02in\x12\x15\n" +
  2802. "\x06not_in\x18\a \x03(\x0fR\x05notInB\b\n" +
  2803. "\x06_constB\x05\n" +
  2804. "\x03_ltB\x06\n" +
  2805. "\x04_lteB\x05\n" +
  2806. "\x03_gtB\x06\n" +
  2807. "\x04_gte\"\xd1\x01\n" +
  2808. "\rSFixed64Rules\x12\x19\n" +
  2809. "\x05const\x18\x01 \x01(\x10H\x00R\x05const\x88\x01\x01\x12\x13\n" +
  2810. "\x02lt\x18\x02 \x01(\x10H\x01R\x02lt\x88\x01\x01\x12\x15\n" +
  2811. "\x03lte\x18\x03 \x01(\x10H\x02R\x03lte\x88\x01\x01\x12\x13\n" +
  2812. "\x02gt\x18\x04 \x01(\x10H\x03R\x02gt\x88\x01\x01\x12\x15\n" +
  2813. "\x03gte\x18\x05 \x01(\x10H\x04R\x03gte\x88\x01\x01\x12\x0e\n" +
  2814. "\x02in\x18\x06 \x03(\x10R\x02in\x12\x15\n" +
  2815. "\x06not_in\x18\a \x03(\x10R\x05notInB\b\n" +
  2816. "\x06_constB\x05\n" +
  2817. "\x03_ltB\x06\n" +
  2818. "\x04_lteB\x05\n" +
  2819. "\x03_gtB\x06\n" +
  2820. "\x04_gte\"0\n" +
  2821. "\tBoolRules\x12\x19\n" +
  2822. "\x05const\x18\x01 \x01(\bH\x00R\x05const\x88\x01\x01B\b\n" +
  2823. "\x06_const\"\xec\t\n" +
  2824. "\vStringRules\x12\x19\n" +
  2825. "\x05const\x18\x01 \x01(\tH\x01R\x05const\x88\x01\x01\x12\x15\n" +
  2826. "\x03len\x18\x02 \x01(\x04H\x02R\x03len\x88\x01\x01\x12\x1c\n" +
  2827. "\amin_len\x18\x03 \x01(\x04H\x03R\x06minLen\x88\x01\x01\x12\x1c\n" +
  2828. "\amax_len\x18\x04 \x01(\x04H\x04R\x06maxLen\x88\x01\x01\x12 \n" +
  2829. "\tlen_bytes\x18\x05 \x01(\x04H\x05R\blenBytes\x88\x01\x01\x12 \n" +
  2830. "\tmin_bytes\x18\x06 \x01(\x04H\x06R\bminBytes\x88\x01\x01\x12 \n" +
  2831. "\tmax_bytes\x18\a \x01(\x04H\aR\bmaxBytes\x88\x01\x01\x12\x1d\n" +
  2832. "\apattern\x18\b \x01(\tH\bR\apattern\x88\x01\x01\x12\x1b\n" +
  2833. "\x06prefix\x18\t \x01(\tH\tR\x06prefix\x88\x01\x01\x12\x1b\n" +
  2834. "\x06suffix\x18\n" +
  2835. " \x01(\tH\n" +
  2836. "R\x06suffix\x88\x01\x01\x12\x1f\n" +
  2837. "\bcontains\x18\v \x01(\tH\vR\bcontains\x88\x01\x01\x12&\n" +
  2838. "\fnot_contains\x18\f \x01(\tH\fR\vnotContains\x88\x01\x01\x12\x0e\n" +
  2839. "\x02in\x18\r \x03(\tR\x02in\x12\x15\n" +
  2840. "\x06not_in\x18\x0e \x03(\tR\x05notIn\x12\x16\n" +
  2841. "\x05email\x18\x14 \x01(\bH\x00R\x05email\x12\x1c\n" +
  2842. "\bhostname\x18\x15 \x01(\bH\x00R\bhostname\x12\x10\n" +
  2843. "\x02ip\x18\x16 \x01(\bH\x00R\x02ip\x12\x14\n" +
  2844. "\x04ipv4\x18\x17 \x01(\bH\x00R\x04ipv4\x12\x14\n" +
  2845. "\x04ipv6\x18\x18 \x01(\bH\x00R\x04ipv6\x12\x12\n" +
  2846. "\x03uri\x18\x19 \x01(\bH\x00R\x03uri\x12\x19\n" +
  2847. "\auri_ref\x18\x1a \x01(\bH\x00R\x06uriRef\x12\x14\n" +
  2848. "\x04uuid\x18\x1b \x01(\bH\x00R\x04uuid\x12'\n" +
  2849. "\x0echinese_mobile\x18\x1e \x01(\bH\x00R\rchineseMobile\x12(\n" +
  2850. "\x0fchinese_id_card\x18\x1f \x01(\bH\x00R\rchineseIdCard\x12#\n" +
  2851. "\fchinese_name\x18 \x01(\bH\x00R\vchineseName\x12+\n" +
  2852. "\x10chinese_postcode\x18! \x01(\bH\x00R\x0fchinesePostcode\x12\x19\n" +
  2853. "\x05ascii\x18( \x01(\bH\rR\x05ascii\x88\x01\x01\x12!\n" +
  2854. "\tprintable\x18) \x01(\bH\x0eR\tprintable\x88\x01\x01\x12\x19\n" +
  2855. "\x05alpha\x18* \x01(\bH\x0fR\x05alpha\x88\x01\x01\x12'\n" +
  2856. "\falphanumeric\x18+ \x01(\bH\x10R\falphanumeric\x88\x01\x01\x12\x1d\n" +
  2857. "\anumeric\x18, \x01(\bH\x11R\anumeric\x88\x01\x01\x12!\n" +
  2858. "\tlowercase\x182 \x01(\bH\x12R\tlowercase\x88\x01\x01\x12!\n" +
  2859. "\tuppercase\x183 \x01(\bH\x13R\tuppercase\x88\x01\x01B\f\n" +
  2860. "\n" +
  2861. "well_knownB\b\n" +
  2862. "\x06_constB\x06\n" +
  2863. "\x04_lenB\n" +
  2864. "\n" +
  2865. "\b_min_lenB\n" +
  2866. "\n" +
  2867. "\b_max_lenB\f\n" +
  2868. "\n" +
  2869. "_len_bytesB\f\n" +
  2870. "\n" +
  2871. "_min_bytesB\f\n" +
  2872. "\n" +
  2873. "_max_bytesB\n" +
  2874. "\n" +
  2875. "\b_patternB\t\n" +
  2876. "\a_prefixB\t\n" +
  2877. "\a_suffixB\v\n" +
  2878. "\t_containsB\x0f\n" +
  2879. "\r_not_containsB\b\n" +
  2880. "\x06_asciiB\f\n" +
  2881. "\n" +
  2882. "_printableB\b\n" +
  2883. "\x06_alphaB\x0f\n" +
  2884. "\r_alphanumericB\n" +
  2885. "\n" +
  2886. "\b_numericB\f\n" +
  2887. "\n" +
  2888. "_lowercaseB\f\n" +
  2889. "\n" +
  2890. "_uppercase\"\xc0\x03\n" +
  2891. "\n" +
  2892. "BytesRules\x12\x19\n" +
  2893. "\x05const\x18\x01 \x01(\fH\x01R\x05const\x88\x01\x01\x12\x15\n" +
  2894. "\x03len\x18\x02 \x01(\x04H\x02R\x03len\x88\x01\x01\x12\x1c\n" +
  2895. "\amin_len\x18\x03 \x01(\x04H\x03R\x06minLen\x88\x01\x01\x12\x1c\n" +
  2896. "\amax_len\x18\x04 \x01(\x04H\x04R\x06maxLen\x88\x01\x01\x12\x1d\n" +
  2897. "\apattern\x18\x05 \x01(\fH\x05R\apattern\x88\x01\x01\x12\x1b\n" +
  2898. "\x06prefix\x18\x06 \x01(\fH\x06R\x06prefix\x88\x01\x01\x12\x1b\n" +
  2899. "\x06suffix\x18\a \x01(\fH\aR\x06suffix\x88\x01\x01\x12\x1f\n" +
  2900. "\bcontains\x18\b \x01(\fH\bR\bcontains\x88\x01\x01\x12\x0e\n" +
  2901. "\x02in\x18\t \x03(\fR\x02in\x12\x15\n" +
  2902. "\x06not_in\x18\n" +
  2903. " \x03(\fR\x05notIn\x12\x10\n" +
  2904. "\x02ip\x18\x14 \x01(\bH\x00R\x02ip\x12\x14\n" +
  2905. "\x04ipv4\x18\x15 \x01(\bH\x00R\x04ipv4\x12\x14\n" +
  2906. "\x04ipv6\x18\x16 \x01(\bH\x00R\x04ipv6B\f\n" +
  2907. "\n" +
  2908. "well_knownB\b\n" +
  2909. "\x06_constB\x06\n" +
  2910. "\x04_lenB\n" +
  2911. "\n" +
  2912. "\b_min_lenB\n" +
  2913. "\n" +
  2914. "\b_max_lenB\n" +
  2915. "\n" +
  2916. "\b_patternB\t\n" +
  2917. "\a_prefixB\t\n" +
  2918. "\a_suffixB\v\n" +
  2919. "\t_contains\"\x90\x01\n" +
  2920. "\tEnumRules\x12\x19\n" +
  2921. "\x05const\x18\x01 \x01(\x05H\x00R\x05const\x88\x01\x01\x12&\n" +
  2922. "\fdefined_only\x18\x02 \x01(\bH\x01R\vdefinedOnly\x88\x01\x01\x12\x0e\n" +
  2923. "\x02in\x18\x03 \x03(\x05R\x02in\x12\x15\n" +
  2924. "\x06not_in\x18\x04 \x03(\x05R\x05notInB\b\n" +
  2925. "\x06_constB\x0f\n" +
  2926. "\r_defined_only\"\xcd\x01\n" +
  2927. "\rRepeatedRules\x12 \n" +
  2928. "\tmin_items\x18\x01 \x01(\x04H\x00R\bminItems\x88\x01\x01\x12 \n" +
  2929. "\tmax_items\x18\x02 \x01(\x04H\x01R\bmaxItems\x88\x01\x01\x12\x1b\n" +
  2930. "\x06unique\x18\x03 \x01(\bH\x02R\x06unique\x88\x01\x01\x124\n" +
  2931. "\x05items\x18\x04 \x01(\v2\x1e.kuban.api.validate.FieldRulesR\x05itemsB\f\n" +
  2932. "\n" +
  2933. "_min_itemsB\f\n" +
  2934. "\n" +
  2935. "_max_itemsB\t\n" +
  2936. "\a_unique\"\xd6\x01\n" +
  2937. "\bMapRules\x12 \n" +
  2938. "\tmin_pairs\x18\x01 \x01(\x04H\x00R\bminPairs\x88\x01\x01\x12 \n" +
  2939. "\tmax_pairs\x18\x02 \x01(\x04H\x01R\bmaxPairs\x88\x01\x01\x122\n" +
  2940. "\x04keys\x18\x03 \x01(\v2\x1e.kuban.api.validate.FieldRulesR\x04keys\x126\n" +
  2941. "\x06values\x18\x04 \x01(\v2\x1e.kuban.api.validate.FieldRulesR\x06valuesB\f\n" +
  2942. "\n" +
  2943. "_min_pairsB\f\n" +
  2944. "\n" +
  2945. "_max_pairs\"\xc6\x03\n" +
  2946. "\rDurationRules\x12\x1f\n" +
  2947. "\brequired\x18\x01 \x01(\bH\x00R\brequired\x88\x01\x01\x12(\n" +
  2948. "\rconst_seconds\x18\x02 \x01(\x03H\x01R\fconstSeconds\x88\x01\x01\x12$\n" +
  2949. "\vconst_nanos\x18\x03 \x01(\x05H\x02R\n" +
  2950. "constNanos\x88\x01\x01\x12\"\n" +
  2951. "\n" +
  2952. "lt_seconds\x18\x04 \x01(\x03H\x03R\tltSeconds\x88\x01\x01\x12$\n" +
  2953. "\vlte_seconds\x18\x05 \x01(\x03H\x04R\n" +
  2954. "lteSeconds\x88\x01\x01\x12\"\n" +
  2955. "\n" +
  2956. "gt_seconds\x18\x06 \x01(\x03H\x05R\tgtSeconds\x88\x01\x01\x12$\n" +
  2957. "\vgte_seconds\x18\a \x01(\x03H\x06R\n" +
  2958. "gteSeconds\x88\x01\x01\x12\x1d\n" +
  2959. "\n" +
  2960. "in_seconds\x18\b \x03(\x03R\tinSeconds\x12$\n" +
  2961. "\x0enot_in_seconds\x18\t \x03(\x03R\fnotInSecondsB\v\n" +
  2962. "\t_requiredB\x10\n" +
  2963. "\x0e_const_secondsB\x0e\n" +
  2964. "\f_const_nanosB\r\n" +
  2965. "\v_lt_secondsB\x0e\n" +
  2966. "\f_lte_secondsB\r\n" +
  2967. "\v_gt_secondsB\x0e\n" +
  2968. "\f_gte_seconds\"\xe6\x02\n" +
  2969. "\x0eTimestampRules\x12\x1f\n" +
  2970. "\brequired\x18\x01 \x01(\bH\x00R\brequired\x88\x01\x01\x12\x19\n" +
  2971. "\x05const\x18\x02 \x01(\x03H\x01R\x05const\x88\x01\x01\x12\x13\n" +
  2972. "\x02lt\x18\x03 \x01(\x03H\x02R\x02lt\x88\x01\x01\x12\x15\n" +
  2973. "\x03lte\x18\x04 \x01(\x03H\x03R\x03lte\x88\x01\x01\x12\x13\n" +
  2974. "\x02gt\x18\x05 \x01(\x03H\x04R\x02gt\x88\x01\x01\x12\x15\n" +
  2975. "\x03gte\x18\x06 \x01(\x03H\x05R\x03gte\x88\x01\x01\x12\x1a\n" +
  2976. "\x06lt_now\x18\a \x01(\bH\x06R\x05ltNow\x88\x01\x01\x12\x1a\n" +
  2977. "\x06gt_now\x18\b \x01(\bH\aR\x05gtNow\x88\x01\x01\x12*\n" +
  2978. "\x0ewithin_seconds\x18\t \x01(\x03H\bR\rwithinSeconds\x88\x01\x01B\v\n" +
  2979. "\t_requiredB\b\n" +
  2980. "\x06_constB\x05\n" +
  2981. "\x03_ltB\x06\n" +
  2982. "\x04_lteB\x05\n" +
  2983. "\x03_gtB\x06\n" +
  2984. "\x04_gteB\t\n" +
  2985. "\a_lt_nowB\t\n" +
  2986. "\a_gt_nowB\x11\n" +
  2987. "\x0f_within_seconds*]\n" +
  2988. "\n" +
  2989. "IgnoreRule\x12\x16\n" +
  2990. "\x12IGNORE_UNSPECIFIED\x10\x00\x12\x12\n" +
  2991. "\x0eIGNORE_IF_ZERO\x10\x01\x12\x11\n" +
  2992. "\rIGNORE_ALWAYS\x10\x02\x12\x10\n" +
  2993. "\fIGNORE_NEVER\x10\x03:\\\n" +
  2994. "\amessage\x12\x1f.google.protobuf.MessageOptions\x18\xf4N \x01(\v2 .kuban.api.validate.MessageRulesR\amessage:T\n" +
  2995. "\x05field\x12\x1d.google.protobuf.FieldOptions\x18\xf4N \x01(\v2\x1e.kuban.api.validate.FieldRulesR\x05field:c\n" +
  2996. "\n" +
  2997. "predefined\x12\x1d.google.protobuf.FieldOptions\x18\xf5N \x01(\v2#.kuban.api.validate.PredefinedRulesR\n" +
  2998. "predefined:T\n" +
  2999. "\x05oneof\x12\x1d.google.protobuf.OneofOptions\x18\xf4N \x01(\v2\x1e.kuban.api.validate.OneofRulesR\x05oneofB=Z;git.ikuban.com/server/kubanapis/kuban/api/validate;validateb\x06proto3"
  3000. var (
  3001. file_kuban_api_validate_validate_proto_rawDescOnce sync.Once
  3002. file_kuban_api_validate_validate_proto_rawDescData []byte
  3003. )
  3004. func file_kuban_api_validate_validate_proto_rawDescGZIP() []byte {
  3005. file_kuban_api_validate_validate_proto_rawDescOnce.Do(func() {
  3006. file_kuban_api_validate_validate_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_kuban_api_validate_validate_proto_rawDesc), len(file_kuban_api_validate_validate_proto_rawDesc)))
  3007. })
  3008. return file_kuban_api_validate_validate_proto_rawDescData
  3009. }
  3010. var file_kuban_api_validate_validate_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  3011. var file_kuban_api_validate_validate_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
  3012. var file_kuban_api_validate_validate_proto_goTypes = []any{
  3013. (IgnoreRule)(0), // 0: kuban.api.validate.IgnoreRule
  3014. (*Rule)(nil), // 1: kuban.api.validate.Rule
  3015. (*MessageRules)(nil), // 2: kuban.api.validate.MessageRules
  3016. (*OneofRules)(nil), // 3: kuban.api.validate.OneofRules
  3017. (*FieldRules)(nil), // 4: kuban.api.validate.FieldRules
  3018. (*PredefinedRules)(nil), // 5: kuban.api.validate.PredefinedRules
  3019. (*FloatRules)(nil), // 6: kuban.api.validate.FloatRules
  3020. (*DoubleRules)(nil), // 7: kuban.api.validate.DoubleRules
  3021. (*Int32Rules)(nil), // 8: kuban.api.validate.Int32Rules
  3022. (*Int64Rules)(nil), // 9: kuban.api.validate.Int64Rules
  3023. (*UInt32Rules)(nil), // 10: kuban.api.validate.UInt32Rules
  3024. (*UInt64Rules)(nil), // 11: kuban.api.validate.UInt64Rules
  3025. (*SInt32Rules)(nil), // 12: kuban.api.validate.SInt32Rules
  3026. (*SInt64Rules)(nil), // 13: kuban.api.validate.SInt64Rules
  3027. (*Fixed32Rules)(nil), // 14: kuban.api.validate.Fixed32Rules
  3028. (*Fixed64Rules)(nil), // 15: kuban.api.validate.Fixed64Rules
  3029. (*SFixed32Rules)(nil), // 16: kuban.api.validate.SFixed32Rules
  3030. (*SFixed64Rules)(nil), // 17: kuban.api.validate.SFixed64Rules
  3031. (*BoolRules)(nil), // 18: kuban.api.validate.BoolRules
  3032. (*StringRules)(nil), // 19: kuban.api.validate.StringRules
  3033. (*BytesRules)(nil), // 20: kuban.api.validate.BytesRules
  3034. (*EnumRules)(nil), // 21: kuban.api.validate.EnumRules
  3035. (*RepeatedRules)(nil), // 22: kuban.api.validate.RepeatedRules
  3036. (*MapRules)(nil), // 23: kuban.api.validate.MapRules
  3037. (*DurationRules)(nil), // 24: kuban.api.validate.DurationRules
  3038. (*TimestampRules)(nil), // 25: kuban.api.validate.TimestampRules
  3039. (*descriptorpb.MessageOptions)(nil), // 26: google.protobuf.MessageOptions
  3040. (*descriptorpb.FieldOptions)(nil), // 27: google.protobuf.FieldOptions
  3041. (*descriptorpb.OneofOptions)(nil), // 28: google.protobuf.OneofOptions
  3042. }
  3043. var file_kuban_api_validate_validate_proto_depIdxs = []int32{
  3044. 1, // 0: kuban.api.validate.MessageRules.cel:type_name -> kuban.api.validate.Rule
  3045. 1, // 1: kuban.api.validate.FieldRules.cel:type_name -> kuban.api.validate.Rule
  3046. 0, // 2: kuban.api.validate.FieldRules.ignore:type_name -> kuban.api.validate.IgnoreRule
  3047. 6, // 3: kuban.api.validate.FieldRules.float:type_name -> kuban.api.validate.FloatRules
  3048. 7, // 4: kuban.api.validate.FieldRules.double:type_name -> kuban.api.validate.DoubleRules
  3049. 8, // 5: kuban.api.validate.FieldRules.int32:type_name -> kuban.api.validate.Int32Rules
  3050. 9, // 6: kuban.api.validate.FieldRules.int64:type_name -> kuban.api.validate.Int64Rules
  3051. 10, // 7: kuban.api.validate.FieldRules.uint32:type_name -> kuban.api.validate.UInt32Rules
  3052. 11, // 8: kuban.api.validate.FieldRules.uint64:type_name -> kuban.api.validate.UInt64Rules
  3053. 12, // 9: kuban.api.validate.FieldRules.sint32:type_name -> kuban.api.validate.SInt32Rules
  3054. 13, // 10: kuban.api.validate.FieldRules.sint64:type_name -> kuban.api.validate.SInt64Rules
  3055. 14, // 11: kuban.api.validate.FieldRules.fixed32:type_name -> kuban.api.validate.Fixed32Rules
  3056. 15, // 12: kuban.api.validate.FieldRules.fixed64:type_name -> kuban.api.validate.Fixed64Rules
  3057. 16, // 13: kuban.api.validate.FieldRules.sfixed32:type_name -> kuban.api.validate.SFixed32Rules
  3058. 17, // 14: kuban.api.validate.FieldRules.sfixed64:type_name -> kuban.api.validate.SFixed64Rules
  3059. 18, // 15: kuban.api.validate.FieldRules.bool:type_name -> kuban.api.validate.BoolRules
  3060. 19, // 16: kuban.api.validate.FieldRules.string:type_name -> kuban.api.validate.StringRules
  3061. 20, // 17: kuban.api.validate.FieldRules.bytes:type_name -> kuban.api.validate.BytesRules
  3062. 21, // 18: kuban.api.validate.FieldRules.enum:type_name -> kuban.api.validate.EnumRules
  3063. 22, // 19: kuban.api.validate.FieldRules.repeated:type_name -> kuban.api.validate.RepeatedRules
  3064. 23, // 20: kuban.api.validate.FieldRules.map:type_name -> kuban.api.validate.MapRules
  3065. 24, // 21: kuban.api.validate.FieldRules.duration:type_name -> kuban.api.validate.DurationRules
  3066. 25, // 22: kuban.api.validate.FieldRules.timestamp:type_name -> kuban.api.validate.TimestampRules
  3067. 1, // 23: kuban.api.validate.PredefinedRules.cel:type_name -> kuban.api.validate.Rule
  3068. 4, // 24: kuban.api.validate.RepeatedRules.items:type_name -> kuban.api.validate.FieldRules
  3069. 4, // 25: kuban.api.validate.MapRules.keys:type_name -> kuban.api.validate.FieldRules
  3070. 4, // 26: kuban.api.validate.MapRules.values:type_name -> kuban.api.validate.FieldRules
  3071. 26, // 27: kuban.api.validate.message:extendee -> google.protobuf.MessageOptions
  3072. 27, // 28: kuban.api.validate.field:extendee -> google.protobuf.FieldOptions
  3073. 27, // 29: kuban.api.validate.predefined:extendee -> google.protobuf.FieldOptions
  3074. 28, // 30: kuban.api.validate.oneof:extendee -> google.protobuf.OneofOptions
  3075. 2, // 31: kuban.api.validate.message:type_name -> kuban.api.validate.MessageRules
  3076. 4, // 32: kuban.api.validate.field:type_name -> kuban.api.validate.FieldRules
  3077. 5, // 33: kuban.api.validate.predefined:type_name -> kuban.api.validate.PredefinedRules
  3078. 3, // 34: kuban.api.validate.oneof:type_name -> kuban.api.validate.OneofRules
  3079. 35, // [35:35] is the sub-list for method output_type
  3080. 35, // [35:35] is the sub-list for method input_type
  3081. 31, // [31:35] is the sub-list for extension type_name
  3082. 27, // [27:31] is the sub-list for extension extendee
  3083. 0, // [0:27] is the sub-list for field type_name
  3084. }
  3085. func init() { file_kuban_api_validate_validate_proto_init() }
  3086. func file_kuban_api_validate_validate_proto_init() {
  3087. if File_kuban_api_validate_validate_proto != nil {
  3088. return
  3089. }
  3090. file_kuban_api_validate_validate_proto_msgTypes[3].OneofWrappers = []any{
  3091. (*FieldRules_Float)(nil),
  3092. (*FieldRules_Double)(nil),
  3093. (*FieldRules_Int32)(nil),
  3094. (*FieldRules_Int64)(nil),
  3095. (*FieldRules_Uint32)(nil),
  3096. (*FieldRules_Uint64)(nil),
  3097. (*FieldRules_Sint32)(nil),
  3098. (*FieldRules_Sint64)(nil),
  3099. (*FieldRules_Fixed32)(nil),
  3100. (*FieldRules_Fixed64)(nil),
  3101. (*FieldRules_Sfixed32)(nil),
  3102. (*FieldRules_Sfixed64)(nil),
  3103. (*FieldRules_Bool)(nil),
  3104. (*FieldRules_String_)(nil),
  3105. (*FieldRules_Bytes)(nil),
  3106. (*FieldRules_Enum)(nil),
  3107. (*FieldRules_Repeated)(nil),
  3108. (*FieldRules_Map)(nil),
  3109. (*FieldRules_Duration)(nil),
  3110. (*FieldRules_Timestamp)(nil),
  3111. }
  3112. file_kuban_api_validate_validate_proto_msgTypes[5].OneofWrappers = []any{}
  3113. file_kuban_api_validate_validate_proto_msgTypes[6].OneofWrappers = []any{}
  3114. file_kuban_api_validate_validate_proto_msgTypes[7].OneofWrappers = []any{}
  3115. file_kuban_api_validate_validate_proto_msgTypes[8].OneofWrappers = []any{}
  3116. file_kuban_api_validate_validate_proto_msgTypes[9].OneofWrappers = []any{}
  3117. file_kuban_api_validate_validate_proto_msgTypes[10].OneofWrappers = []any{}
  3118. file_kuban_api_validate_validate_proto_msgTypes[11].OneofWrappers = []any{}
  3119. file_kuban_api_validate_validate_proto_msgTypes[12].OneofWrappers = []any{}
  3120. file_kuban_api_validate_validate_proto_msgTypes[13].OneofWrappers = []any{}
  3121. file_kuban_api_validate_validate_proto_msgTypes[14].OneofWrappers = []any{}
  3122. file_kuban_api_validate_validate_proto_msgTypes[15].OneofWrappers = []any{}
  3123. file_kuban_api_validate_validate_proto_msgTypes[16].OneofWrappers = []any{}
  3124. file_kuban_api_validate_validate_proto_msgTypes[17].OneofWrappers = []any{}
  3125. file_kuban_api_validate_validate_proto_msgTypes[18].OneofWrappers = []any{
  3126. (*StringRules_Email)(nil),
  3127. (*StringRules_Hostname)(nil),
  3128. (*StringRules_Ip)(nil),
  3129. (*StringRules_Ipv4)(nil),
  3130. (*StringRules_Ipv6)(nil),
  3131. (*StringRules_Uri)(nil),
  3132. (*StringRules_UriRef)(nil),
  3133. (*StringRules_Uuid)(nil),
  3134. (*StringRules_ChineseMobile)(nil),
  3135. (*StringRules_ChineseIdCard)(nil),
  3136. (*StringRules_ChineseName)(nil),
  3137. (*StringRules_ChinesePostcode)(nil),
  3138. }
  3139. file_kuban_api_validate_validate_proto_msgTypes[19].OneofWrappers = []any{
  3140. (*BytesRules_Ip)(nil),
  3141. (*BytesRules_Ipv4)(nil),
  3142. (*BytesRules_Ipv6)(nil),
  3143. }
  3144. file_kuban_api_validate_validate_proto_msgTypes[20].OneofWrappers = []any{}
  3145. file_kuban_api_validate_validate_proto_msgTypes[21].OneofWrappers = []any{}
  3146. file_kuban_api_validate_validate_proto_msgTypes[22].OneofWrappers = []any{}
  3147. file_kuban_api_validate_validate_proto_msgTypes[23].OneofWrappers = []any{}
  3148. file_kuban_api_validate_validate_proto_msgTypes[24].OneofWrappers = []any{}
  3149. type x struct{}
  3150. out := protoimpl.TypeBuilder{
  3151. File: protoimpl.DescBuilder{
  3152. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  3153. RawDescriptor: unsafe.Slice(unsafe.StringData(file_kuban_api_validate_validate_proto_rawDesc), len(file_kuban_api_validate_validate_proto_rawDesc)),
  3154. NumEnums: 1,
  3155. NumMessages: 25,
  3156. NumExtensions: 4,
  3157. NumServices: 0,
  3158. },
  3159. GoTypes: file_kuban_api_validate_validate_proto_goTypes,
  3160. DependencyIndexes: file_kuban_api_validate_validate_proto_depIdxs,
  3161. EnumInfos: file_kuban_api_validate_validate_proto_enumTypes,
  3162. MessageInfos: file_kuban_api_validate_validate_proto_msgTypes,
  3163. ExtensionInfos: file_kuban_api_validate_validate_proto_extTypes,
  3164. }.Build()
  3165. File_kuban_api_validate_validate_proto = out.File
  3166. file_kuban_api_validate_validate_proto_goTypes = nil
  3167. file_kuban_api_validate_validate_proto_depIdxs = nil
  3168. }