conf.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v3.20.0--rc1
  5. // source: conf/conf.proto
  6. package conf
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. durationpb "google.golang.org/protobuf/types/known/durationpb"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type Bootstrap struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  24. Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  25. unknownFields protoimpl.UnknownFields
  26. sizeCache protoimpl.SizeCache
  27. }
  28. func (x *Bootstrap) Reset() {
  29. *x = Bootstrap{}
  30. mi := &file_conf_conf_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *Bootstrap) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Bootstrap) ProtoMessage() {}
  38. func (x *Bootstrap) ProtoReflect() protoreflect.Message {
  39. mi := &file_conf_conf_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.
  50. func (*Bootstrap) Descriptor() ([]byte, []int) {
  51. return file_conf_conf_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Bootstrap) GetServer() *Server {
  54. if x != nil {
  55. return x.Server
  56. }
  57. return nil
  58. }
  59. func (x *Bootstrap) GetData() *Data {
  60. if x != nil {
  61. return x.Data
  62. }
  63. return nil
  64. }
  65. type Server struct {
  66. state protoimpl.MessageState `protogen:"open.v1"`
  67. Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
  68. Grpc *Server_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"`
  69. unknownFields protoimpl.UnknownFields
  70. sizeCache protoimpl.SizeCache
  71. }
  72. func (x *Server) Reset() {
  73. *x = Server{}
  74. mi := &file_conf_conf_proto_msgTypes[1]
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. ms.StoreMessageInfo(mi)
  77. }
  78. func (x *Server) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*Server) ProtoMessage() {}
  82. func (x *Server) ProtoReflect() protoreflect.Message {
  83. mi := &file_conf_conf_proto_msgTypes[1]
  84. if x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use Server.ProtoReflect.Descriptor instead.
  94. func (*Server) Descriptor() ([]byte, []int) {
  95. return file_conf_conf_proto_rawDescGZIP(), []int{1}
  96. }
  97. func (x *Server) GetHttp() *Server_HTTP {
  98. if x != nil {
  99. return x.Http
  100. }
  101. return nil
  102. }
  103. func (x *Server) GetGrpc() *Server_GRPC {
  104. if x != nil {
  105. return x.Grpc
  106. }
  107. return nil
  108. }
  109. type Data struct {
  110. state protoimpl.MessageState `protogen:"open.v1"`
  111. Database *Data_Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
  112. Redis *Data_Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"`
  113. unknownFields protoimpl.UnknownFields
  114. sizeCache protoimpl.SizeCache
  115. }
  116. func (x *Data) Reset() {
  117. *x = Data{}
  118. mi := &file_conf_conf_proto_msgTypes[2]
  119. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  120. ms.StoreMessageInfo(mi)
  121. }
  122. func (x *Data) String() string {
  123. return protoimpl.X.MessageStringOf(x)
  124. }
  125. func (*Data) ProtoMessage() {}
  126. func (x *Data) ProtoReflect() protoreflect.Message {
  127. mi := &file_conf_conf_proto_msgTypes[2]
  128. if x != nil {
  129. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  130. if ms.LoadMessageInfo() == nil {
  131. ms.StoreMessageInfo(mi)
  132. }
  133. return ms
  134. }
  135. return mi.MessageOf(x)
  136. }
  137. // Deprecated: Use Data.ProtoReflect.Descriptor instead.
  138. func (*Data) Descriptor() ([]byte, []int) {
  139. return file_conf_conf_proto_rawDescGZIP(), []int{2}
  140. }
  141. func (x *Data) GetDatabase() *Data_Database {
  142. if x != nil {
  143. return x.Database
  144. }
  145. return nil
  146. }
  147. func (x *Data) GetRedis() *Data_Redis {
  148. if x != nil {
  149. return x.Redis
  150. }
  151. return nil
  152. }
  153. type Server_HTTP struct {
  154. state protoimpl.MessageState `protogen:"open.v1"`
  155. Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
  156. Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
  157. Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
  158. unknownFields protoimpl.UnknownFields
  159. sizeCache protoimpl.SizeCache
  160. }
  161. func (x *Server_HTTP) Reset() {
  162. *x = Server_HTTP{}
  163. mi := &file_conf_conf_proto_msgTypes[3]
  164. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  165. ms.StoreMessageInfo(mi)
  166. }
  167. func (x *Server_HTTP) String() string {
  168. return protoimpl.X.MessageStringOf(x)
  169. }
  170. func (*Server_HTTP) ProtoMessage() {}
  171. func (x *Server_HTTP) ProtoReflect() protoreflect.Message {
  172. mi := &file_conf_conf_proto_msgTypes[3]
  173. if x != nil {
  174. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  175. if ms.LoadMessageInfo() == nil {
  176. ms.StoreMessageInfo(mi)
  177. }
  178. return ms
  179. }
  180. return mi.MessageOf(x)
  181. }
  182. // Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.
  183. func (*Server_HTTP) Descriptor() ([]byte, []int) {
  184. return file_conf_conf_proto_rawDescGZIP(), []int{1, 0}
  185. }
  186. func (x *Server_HTTP) GetNetwork() string {
  187. if x != nil {
  188. return x.Network
  189. }
  190. return ""
  191. }
  192. func (x *Server_HTTP) GetAddr() string {
  193. if x != nil {
  194. return x.Addr
  195. }
  196. return ""
  197. }
  198. func (x *Server_HTTP) GetTimeout() *durationpb.Duration {
  199. if x != nil {
  200. return x.Timeout
  201. }
  202. return nil
  203. }
  204. type Server_GRPC struct {
  205. state protoimpl.MessageState `protogen:"open.v1"`
  206. Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
  207. Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
  208. Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
  209. unknownFields protoimpl.UnknownFields
  210. sizeCache protoimpl.SizeCache
  211. }
  212. func (x *Server_GRPC) Reset() {
  213. *x = Server_GRPC{}
  214. mi := &file_conf_conf_proto_msgTypes[4]
  215. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  216. ms.StoreMessageInfo(mi)
  217. }
  218. func (x *Server_GRPC) String() string {
  219. return protoimpl.X.MessageStringOf(x)
  220. }
  221. func (*Server_GRPC) ProtoMessage() {}
  222. func (x *Server_GRPC) ProtoReflect() protoreflect.Message {
  223. mi := &file_conf_conf_proto_msgTypes[4]
  224. if x != nil {
  225. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  226. if ms.LoadMessageInfo() == nil {
  227. ms.StoreMessageInfo(mi)
  228. }
  229. return ms
  230. }
  231. return mi.MessageOf(x)
  232. }
  233. // Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.
  234. func (*Server_GRPC) Descriptor() ([]byte, []int) {
  235. return file_conf_conf_proto_rawDescGZIP(), []int{1, 1}
  236. }
  237. func (x *Server_GRPC) GetNetwork() string {
  238. if x != nil {
  239. return x.Network
  240. }
  241. return ""
  242. }
  243. func (x *Server_GRPC) GetAddr() string {
  244. if x != nil {
  245. return x.Addr
  246. }
  247. return ""
  248. }
  249. func (x *Server_GRPC) GetTimeout() *durationpb.Duration {
  250. if x != nil {
  251. return x.Timeout
  252. }
  253. return nil
  254. }
  255. type Data_Database struct {
  256. state protoimpl.MessageState `protogen:"open.v1"`
  257. Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
  258. Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
  259. unknownFields protoimpl.UnknownFields
  260. sizeCache protoimpl.SizeCache
  261. }
  262. func (x *Data_Database) Reset() {
  263. *x = Data_Database{}
  264. mi := &file_conf_conf_proto_msgTypes[5]
  265. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  266. ms.StoreMessageInfo(mi)
  267. }
  268. func (x *Data_Database) String() string {
  269. return protoimpl.X.MessageStringOf(x)
  270. }
  271. func (*Data_Database) ProtoMessage() {}
  272. func (x *Data_Database) ProtoReflect() protoreflect.Message {
  273. mi := &file_conf_conf_proto_msgTypes[5]
  274. if x != nil {
  275. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  276. if ms.LoadMessageInfo() == nil {
  277. ms.StoreMessageInfo(mi)
  278. }
  279. return ms
  280. }
  281. return mi.MessageOf(x)
  282. }
  283. // Deprecated: Use Data_Database.ProtoReflect.Descriptor instead.
  284. func (*Data_Database) Descriptor() ([]byte, []int) {
  285. return file_conf_conf_proto_rawDescGZIP(), []int{2, 0}
  286. }
  287. func (x *Data_Database) GetDriver() string {
  288. if x != nil {
  289. return x.Driver
  290. }
  291. return ""
  292. }
  293. func (x *Data_Database) GetSource() string {
  294. if x != nil {
  295. return x.Source
  296. }
  297. return ""
  298. }
  299. type Data_Redis struct {
  300. state protoimpl.MessageState `protogen:"open.v1"`
  301. Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
  302. Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
  303. ReadTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`
  304. WriteTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"`
  305. unknownFields protoimpl.UnknownFields
  306. sizeCache protoimpl.SizeCache
  307. }
  308. func (x *Data_Redis) Reset() {
  309. *x = Data_Redis{}
  310. mi := &file_conf_conf_proto_msgTypes[6]
  311. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  312. ms.StoreMessageInfo(mi)
  313. }
  314. func (x *Data_Redis) String() string {
  315. return protoimpl.X.MessageStringOf(x)
  316. }
  317. func (*Data_Redis) ProtoMessage() {}
  318. func (x *Data_Redis) ProtoReflect() protoreflect.Message {
  319. mi := &file_conf_conf_proto_msgTypes[6]
  320. if x != nil {
  321. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  322. if ms.LoadMessageInfo() == nil {
  323. ms.StoreMessageInfo(mi)
  324. }
  325. return ms
  326. }
  327. return mi.MessageOf(x)
  328. }
  329. // Deprecated: Use Data_Redis.ProtoReflect.Descriptor instead.
  330. func (*Data_Redis) Descriptor() ([]byte, []int) {
  331. return file_conf_conf_proto_rawDescGZIP(), []int{2, 1}
  332. }
  333. func (x *Data_Redis) GetNetwork() string {
  334. if x != nil {
  335. return x.Network
  336. }
  337. return ""
  338. }
  339. func (x *Data_Redis) GetAddr() string {
  340. if x != nil {
  341. return x.Addr
  342. }
  343. return ""
  344. }
  345. func (x *Data_Redis) GetReadTimeout() *durationpb.Duration {
  346. if x != nil {
  347. return x.ReadTimeout
  348. }
  349. return nil
  350. }
  351. func (x *Data_Redis) GetWriteTimeout() *durationpb.Duration {
  352. if x != nil {
  353. return x.WriteTimeout
  354. }
  355. return nil
  356. }
  357. var File_conf_conf_proto protoreflect.FileDescriptor
  358. const file_conf_conf_proto_rawDesc = "" +
  359. "\n" +
  360. "\x0fconf/conf.proto\x12\n" +
  361. "kratos.api\x1a\x1egoogle/protobuf/duration.proto\"]\n" +
  362. "\tBootstrap\x12*\n" +
  363. "\x06server\x18\x01 \x01(\v2\x12.kratos.api.ServerR\x06server\x12$\n" +
  364. "\x04data\x18\x02 \x01(\v2\x10.kratos.api.DataR\x04data\"\xb8\x02\n" +
  365. "\x06Server\x12+\n" +
  366. "\x04http\x18\x01 \x01(\v2\x17.kratos.api.Server.HTTPR\x04http\x12+\n" +
  367. "\x04grpc\x18\x02 \x01(\v2\x17.kratos.api.Server.GRPCR\x04grpc\x1ai\n" +
  368. "\x04HTTP\x12\x18\n" +
  369. "\anetwork\x18\x01 \x01(\tR\anetwork\x12\x12\n" +
  370. "\x04addr\x18\x02 \x01(\tR\x04addr\x123\n" +
  371. "\atimeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\atimeout\x1ai\n" +
  372. "\x04GRPC\x12\x18\n" +
  373. "\anetwork\x18\x01 \x01(\tR\anetwork\x12\x12\n" +
  374. "\x04addr\x18\x02 \x01(\tR\x04addr\x123\n" +
  375. "\atimeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\atimeout\"\xdd\x02\n" +
  376. "\x04Data\x125\n" +
  377. "\bdatabase\x18\x01 \x01(\v2\x19.kratos.api.Data.DatabaseR\bdatabase\x12,\n" +
  378. "\x05redis\x18\x02 \x01(\v2\x16.kratos.api.Data.RedisR\x05redis\x1a:\n" +
  379. "\bDatabase\x12\x16\n" +
  380. "\x06driver\x18\x01 \x01(\tR\x06driver\x12\x16\n" +
  381. "\x06source\x18\x02 \x01(\tR\x06source\x1a\xb3\x01\n" +
  382. "\x05Redis\x12\x18\n" +
  383. "\anetwork\x18\x01 \x01(\tR\anetwork\x12\x12\n" +
  384. "\x04addr\x18\x02 \x01(\tR\x04addr\x12<\n" +
  385. "\fread_timeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\vreadTimeout\x12>\n" +
  386. "\rwrite_timeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\fwriteTimeoutB\x1bZ\x19server/internal/conf;confb\x06proto3"
  387. var (
  388. file_conf_conf_proto_rawDescOnce sync.Once
  389. file_conf_conf_proto_rawDescData []byte
  390. )
  391. func file_conf_conf_proto_rawDescGZIP() []byte {
  392. file_conf_conf_proto_rawDescOnce.Do(func() {
  393. file_conf_conf_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_conf_conf_proto_rawDesc), len(file_conf_conf_proto_rawDesc)))
  394. })
  395. return file_conf_conf_proto_rawDescData
  396. }
  397. var file_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  398. var file_conf_conf_proto_goTypes = []any{
  399. (*Bootstrap)(nil), // 0: kratos.api.Bootstrap
  400. (*Server)(nil), // 1: kratos.api.Server
  401. (*Data)(nil), // 2: kratos.api.Data
  402. (*Server_HTTP)(nil), // 3: kratos.api.Server.HTTP
  403. (*Server_GRPC)(nil), // 4: kratos.api.Server.GRPC
  404. (*Data_Database)(nil), // 5: kratos.api.Data.Database
  405. (*Data_Redis)(nil), // 6: kratos.api.Data.Redis
  406. (*durationpb.Duration)(nil), // 7: google.protobuf.Duration
  407. }
  408. var file_conf_conf_proto_depIdxs = []int32{
  409. 1, // 0: kratos.api.Bootstrap.server:type_name -> kratos.api.Server
  410. 2, // 1: kratos.api.Bootstrap.data:type_name -> kratos.api.Data
  411. 3, // 2: kratos.api.Server.http:type_name -> kratos.api.Server.HTTP
  412. 4, // 3: kratos.api.Server.grpc:type_name -> kratos.api.Server.GRPC
  413. 5, // 4: kratos.api.Data.database:type_name -> kratos.api.Data.Database
  414. 6, // 5: kratos.api.Data.redis:type_name -> kratos.api.Data.Redis
  415. 7, // 6: kratos.api.Server.HTTP.timeout:type_name -> google.protobuf.Duration
  416. 7, // 7: kratos.api.Server.GRPC.timeout:type_name -> google.protobuf.Duration
  417. 7, // 8: kratos.api.Data.Redis.read_timeout:type_name -> google.protobuf.Duration
  418. 7, // 9: kratos.api.Data.Redis.write_timeout:type_name -> google.protobuf.Duration
  419. 10, // [10:10] is the sub-list for method output_type
  420. 10, // [10:10] is the sub-list for method input_type
  421. 10, // [10:10] is the sub-list for extension type_name
  422. 10, // [10:10] is the sub-list for extension extendee
  423. 0, // [0:10] is the sub-list for field type_name
  424. }
  425. func init() { file_conf_conf_proto_init() }
  426. func file_conf_conf_proto_init() {
  427. if File_conf_conf_proto != nil {
  428. return
  429. }
  430. type x struct{}
  431. out := protoimpl.TypeBuilder{
  432. File: protoimpl.DescBuilder{
  433. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  434. RawDescriptor: unsafe.Slice(unsafe.StringData(file_conf_conf_proto_rawDesc), len(file_conf_conf_proto_rawDesc)),
  435. NumEnums: 0,
  436. NumMessages: 7,
  437. NumExtensions: 0,
  438. NumServices: 0,
  439. },
  440. GoTypes: file_conf_conf_proto_goTypes,
  441. DependencyIndexes: file_conf_conf_proto_depIdxs,
  442. MessageInfos: file_conf_conf_proto_msgTypes,
  443. }.Build()
  444. File_conf_conf_proto = out.File
  445. file_conf_conf_proto_goTypes = nil
  446. file_conf_conf_proto_depIdxs = nil
  447. }