config.pb.go 6.8 KB

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