config.pb.go 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  5. // source: app/dispatcher/config.proto
  6. package dispatcher
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type SessionConfig struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. unknownFields protoimpl.UnknownFields
  23. sizeCache protoimpl.SizeCache
  24. }
  25. func (x *SessionConfig) Reset() {
  26. *x = SessionConfig{}
  27. mi := &file_app_dispatcher_config_proto_msgTypes[0]
  28. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  29. ms.StoreMessageInfo(mi)
  30. }
  31. func (x *SessionConfig) String() string {
  32. return protoimpl.X.MessageStringOf(x)
  33. }
  34. func (*SessionConfig) ProtoMessage() {}
  35. func (x *SessionConfig) ProtoReflect() protoreflect.Message {
  36. mi := &file_app_dispatcher_config_proto_msgTypes[0]
  37. if x != nil {
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. if ms.LoadMessageInfo() == nil {
  40. ms.StoreMessageInfo(mi)
  41. }
  42. return ms
  43. }
  44. return mi.MessageOf(x)
  45. }
  46. // Deprecated: Use SessionConfig.ProtoReflect.Descriptor instead.
  47. func (*SessionConfig) Descriptor() ([]byte, []int) {
  48. return file_app_dispatcher_config_proto_rawDescGZIP(), []int{0}
  49. }
  50. type Config struct {
  51. state protoimpl.MessageState `protogen:"open.v1"`
  52. Settings *SessionConfig `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
  53. unknownFields protoimpl.UnknownFields
  54. sizeCache protoimpl.SizeCache
  55. }
  56. func (x *Config) Reset() {
  57. *x = Config{}
  58. mi := &file_app_dispatcher_config_proto_msgTypes[1]
  59. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  60. ms.StoreMessageInfo(mi)
  61. }
  62. func (x *Config) String() string {
  63. return protoimpl.X.MessageStringOf(x)
  64. }
  65. func (*Config) ProtoMessage() {}
  66. func (x *Config) ProtoReflect() protoreflect.Message {
  67. mi := &file_app_dispatcher_config_proto_msgTypes[1]
  68. if x != nil {
  69. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  70. if ms.LoadMessageInfo() == nil {
  71. ms.StoreMessageInfo(mi)
  72. }
  73. return ms
  74. }
  75. return mi.MessageOf(x)
  76. }
  77. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  78. func (*Config) Descriptor() ([]byte, []int) {
  79. return file_app_dispatcher_config_proto_rawDescGZIP(), []int{1}
  80. }
  81. func (x *Config) GetSettings() *SessionConfig {
  82. if x != nil {
  83. return x.Settings
  84. }
  85. return nil
  86. }
  87. var File_app_dispatcher_config_proto protoreflect.FileDescriptor
  88. const file_app_dispatcher_config_proto_rawDesc = "" +
  89. "\n" +
  90. "\x1bapp/dispatcher/config.proto\x12\x13xray.app.dispatcher\"\x15\n" +
  91. "\rSessionConfigJ\x04\b\x01\x10\x02\"H\n" +
  92. "\x06Config\x12>\n" +
  93. "\bsettings\x18\x01 \x01(\v2\".xray.app.dispatcher.SessionConfigR\bsettingsB[\n" +
  94. "\x17com.xray.app.dispatcherP\x01Z(github.com/xtls/xray-core/app/dispatcher\xaa\x02\x13Xray.App.Dispatcherb\x06proto3"
  95. var (
  96. file_app_dispatcher_config_proto_rawDescOnce sync.Once
  97. file_app_dispatcher_config_proto_rawDescData []byte
  98. )
  99. func file_app_dispatcher_config_proto_rawDescGZIP() []byte {
  100. file_app_dispatcher_config_proto_rawDescOnce.Do(func() {
  101. file_app_dispatcher_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_dispatcher_config_proto_rawDesc), len(file_app_dispatcher_config_proto_rawDesc)))
  102. })
  103. return file_app_dispatcher_config_proto_rawDescData
  104. }
  105. var file_app_dispatcher_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  106. var file_app_dispatcher_config_proto_goTypes = []any{
  107. (*SessionConfig)(nil), // 0: xray.app.dispatcher.SessionConfig
  108. (*Config)(nil), // 1: xray.app.dispatcher.Config
  109. }
  110. var file_app_dispatcher_config_proto_depIdxs = []int32{
  111. 0, // 0: xray.app.dispatcher.Config.settings:type_name -> xray.app.dispatcher.SessionConfig
  112. 1, // [1:1] is the sub-list for method output_type
  113. 1, // [1:1] is the sub-list for method input_type
  114. 1, // [1:1] is the sub-list for extension type_name
  115. 1, // [1:1] is the sub-list for extension extendee
  116. 0, // [0:1] is the sub-list for field type_name
  117. }
  118. func init() { file_app_dispatcher_config_proto_init() }
  119. func file_app_dispatcher_config_proto_init() {
  120. if File_app_dispatcher_config_proto != nil {
  121. return
  122. }
  123. type x struct{}
  124. out := protoimpl.TypeBuilder{
  125. File: protoimpl.DescBuilder{
  126. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  127. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_dispatcher_config_proto_rawDesc), len(file_app_dispatcher_config_proto_rawDesc)),
  128. NumEnums: 0,
  129. NumMessages: 2,
  130. NumExtensions: 0,
  131. NumServices: 0,
  132. },
  133. GoTypes: file_app_dispatcher_config_proto_goTypes,
  134. DependencyIndexes: file_app_dispatcher_config_proto_depIdxs,
  135. MessageInfos: file_app_dispatcher_config_proto_msgTypes,
  136. }.Build()
  137. File_app_dispatcher_config_proto = out.File
  138. file_app_dispatcher_config_proto_goTypes = nil
  139. file_app_dispatcher_config_proto_depIdxs = nil
  140. }