config.pb.go 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. package dispatcher
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. )
  9. const (
  10. // Verify that this generated code is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  14. )
  15. // This is a compile-time assertion that a sufficiently up-to-date version
  16. // of the legacy proto package is being used.
  17. const _ = proto.ProtoPackageIsVersion4
  18. type SessionConfig struct {
  19. state protoimpl.MessageState
  20. sizeCache protoimpl.SizeCache
  21. unknownFields protoimpl.UnknownFields
  22. }
  23. func (x *SessionConfig) Reset() {
  24. *x = SessionConfig{}
  25. if protoimpl.UnsafeEnabled {
  26. mi := &file_v2ray_com_core_app_dispatcher_config_proto_msgTypes[0]
  27. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  28. ms.StoreMessageInfo(mi)
  29. }
  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_v2ray_com_core_app_dispatcher_config_proto_msgTypes[0]
  37. if protoimpl.UnsafeEnabled && 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_v2ray_com_core_app_dispatcher_config_proto_rawDescGZIP(), []int{0}
  49. }
  50. type Config struct {
  51. state protoimpl.MessageState
  52. sizeCache protoimpl.SizeCache
  53. unknownFields protoimpl.UnknownFields
  54. Settings *SessionConfig `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
  55. }
  56. func (x *Config) Reset() {
  57. *x = Config{}
  58. if protoimpl.UnsafeEnabled {
  59. mi := &file_v2ray_com_core_app_dispatcher_config_proto_msgTypes[1]
  60. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  61. ms.StoreMessageInfo(mi)
  62. }
  63. }
  64. func (x *Config) String() string {
  65. return protoimpl.X.MessageStringOf(x)
  66. }
  67. func (*Config) ProtoMessage() {}
  68. func (x *Config) ProtoReflect() protoreflect.Message {
  69. mi := &file_v2ray_com_core_app_dispatcher_config_proto_msgTypes[1]
  70. if protoimpl.UnsafeEnabled && x != nil {
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. if ms.LoadMessageInfo() == nil {
  73. ms.StoreMessageInfo(mi)
  74. }
  75. return ms
  76. }
  77. return mi.MessageOf(x)
  78. }
  79. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  80. func (*Config) Descriptor() ([]byte, []int) {
  81. return file_v2ray_com_core_app_dispatcher_config_proto_rawDescGZIP(), []int{1}
  82. }
  83. func (x *Config) GetSettings() *SessionConfig {
  84. if x != nil {
  85. return x.Settings
  86. }
  87. return nil
  88. }
  89. var File_v2ray_com_core_app_dispatcher_config_proto protoreflect.FileDescriptor
  90. var file_v2ray_com_core_app_dispatcher_config_proto_rawDesc = []byte{
  91. 0x0a, 0x2a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  92. 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f,
  93. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x76, 0x32,
  94. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x69, 0x73,
  95. 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x22, 0x15, 0x0a, 0x0d, 0x53, 0x65, 0x73, 0x73, 0x69,
  96. 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x4e,
  97. 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x44, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74,
  98. 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72,
  99. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x69, 0x73, 0x70,
  100. 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
  101. 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x49,
  102. 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  103. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x50,
  104. 0x01, 0x5a, 0x0a, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0xaa, 0x02, 0x19,
  105. 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44,
  106. 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  107. 0x33,
  108. }
  109. var (
  110. file_v2ray_com_core_app_dispatcher_config_proto_rawDescOnce sync.Once
  111. file_v2ray_com_core_app_dispatcher_config_proto_rawDescData = file_v2ray_com_core_app_dispatcher_config_proto_rawDesc
  112. )
  113. func file_v2ray_com_core_app_dispatcher_config_proto_rawDescGZIP() []byte {
  114. file_v2ray_com_core_app_dispatcher_config_proto_rawDescOnce.Do(func() {
  115. file_v2ray_com_core_app_dispatcher_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_app_dispatcher_config_proto_rawDescData)
  116. })
  117. return file_v2ray_com_core_app_dispatcher_config_proto_rawDescData
  118. }
  119. var file_v2ray_com_core_app_dispatcher_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  120. var file_v2ray_com_core_app_dispatcher_config_proto_goTypes = []interface{}{
  121. (*SessionConfig)(nil), // 0: v2ray.core.app.dispatcher.SessionConfig
  122. (*Config)(nil), // 1: v2ray.core.app.dispatcher.Config
  123. }
  124. var file_v2ray_com_core_app_dispatcher_config_proto_depIdxs = []int32{
  125. 0, // 0: v2ray.core.app.dispatcher.Config.settings:type_name -> v2ray.core.app.dispatcher.SessionConfig
  126. 1, // [1:1] is the sub-list for method output_type
  127. 1, // [1:1] is the sub-list for method input_type
  128. 1, // [1:1] is the sub-list for extension type_name
  129. 1, // [1:1] is the sub-list for extension extendee
  130. 0, // [0:1] is the sub-list for field type_name
  131. }
  132. func init() { file_v2ray_com_core_app_dispatcher_config_proto_init() }
  133. func file_v2ray_com_core_app_dispatcher_config_proto_init() {
  134. if File_v2ray_com_core_app_dispatcher_config_proto != nil {
  135. return
  136. }
  137. if !protoimpl.UnsafeEnabled {
  138. file_v2ray_com_core_app_dispatcher_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  139. switch v := v.(*SessionConfig); i {
  140. case 0:
  141. return &v.state
  142. case 1:
  143. return &v.sizeCache
  144. case 2:
  145. return &v.unknownFields
  146. default:
  147. return nil
  148. }
  149. }
  150. file_v2ray_com_core_app_dispatcher_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  151. switch v := v.(*Config); i {
  152. case 0:
  153. return &v.state
  154. case 1:
  155. return &v.sizeCache
  156. case 2:
  157. return &v.unknownFields
  158. default:
  159. return nil
  160. }
  161. }
  162. }
  163. type x struct{}
  164. out := protoimpl.TypeBuilder{
  165. File: protoimpl.DescBuilder{
  166. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  167. RawDescriptor: file_v2ray_com_core_app_dispatcher_config_proto_rawDesc,
  168. NumEnums: 0,
  169. NumMessages: 2,
  170. NumExtensions: 0,
  171. NumServices: 0,
  172. },
  173. GoTypes: file_v2ray_com_core_app_dispatcher_config_proto_goTypes,
  174. DependencyIndexes: file_v2ray_com_core_app_dispatcher_config_proto_depIdxs,
  175. MessageInfos: file_v2ray_com_core_app_dispatcher_config_proto_msgTypes,
  176. }.Build()
  177. File_v2ray_com_core_app_dispatcher_config_proto = out.File
  178. file_v2ray_com_core_app_dispatcher_config_proto_rawDesc = nil
  179. file_v2ray_com_core_app_dispatcher_config_proto_goTypes = nil
  180. file_v2ray_com_core_app_dispatcher_config_proto_depIdxs = nil
  181. }