config.pb.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. unsafe "unsafe"
  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. type SessionConfig struct {
  16. state protoimpl.MessageState `protogen:"open.v1"`
  17. unknownFields protoimpl.UnknownFields
  18. sizeCache protoimpl.SizeCache
  19. }
  20. func (x *SessionConfig) Reset() {
  21. *x = SessionConfig{}
  22. mi := &file_app_dispatcher_config_proto_msgTypes[0]
  23. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  24. ms.StoreMessageInfo(mi)
  25. }
  26. func (x *SessionConfig) String() string {
  27. return protoimpl.X.MessageStringOf(x)
  28. }
  29. func (*SessionConfig) ProtoMessage() {}
  30. func (x *SessionConfig) ProtoReflect() protoreflect.Message {
  31. mi := &file_app_dispatcher_config_proto_msgTypes[0]
  32. if x != nil {
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. if ms.LoadMessageInfo() == nil {
  35. ms.StoreMessageInfo(mi)
  36. }
  37. return ms
  38. }
  39. return mi.MessageOf(x)
  40. }
  41. // Deprecated: Use SessionConfig.ProtoReflect.Descriptor instead.
  42. func (*SessionConfig) Descriptor() ([]byte, []int) {
  43. return file_app_dispatcher_config_proto_rawDescGZIP(), []int{0}
  44. }
  45. type Config struct {
  46. state protoimpl.MessageState `protogen:"open.v1"`
  47. Settings *SessionConfig `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
  48. unknownFields protoimpl.UnknownFields
  49. sizeCache protoimpl.SizeCache
  50. }
  51. func (x *Config) Reset() {
  52. *x = Config{}
  53. mi := &file_app_dispatcher_config_proto_msgTypes[1]
  54. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  55. ms.StoreMessageInfo(mi)
  56. }
  57. func (x *Config) String() string {
  58. return protoimpl.X.MessageStringOf(x)
  59. }
  60. func (*Config) ProtoMessage() {}
  61. func (x *Config) ProtoReflect() protoreflect.Message {
  62. mi := &file_app_dispatcher_config_proto_msgTypes[1]
  63. if x != nil {
  64. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  65. if ms.LoadMessageInfo() == nil {
  66. ms.StoreMessageInfo(mi)
  67. }
  68. return ms
  69. }
  70. return mi.MessageOf(x)
  71. }
  72. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  73. func (*Config) Descriptor() ([]byte, []int) {
  74. return file_app_dispatcher_config_proto_rawDescGZIP(), []int{1}
  75. }
  76. func (x *Config) GetSettings() *SessionConfig {
  77. if x != nil {
  78. return x.Settings
  79. }
  80. return nil
  81. }
  82. var File_app_dispatcher_config_proto protoreflect.FileDescriptor
  83. var file_app_dispatcher_config_proto_rawDesc = string([]byte{
  84. 0x0a, 0x1b, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72,
  85. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x76,
  86. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x69,
  87. 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x22, 0x15, 0x0a, 0x0d, 0x53, 0x65, 0x73, 0x73,
  88. 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22,
  89. 0x4e, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x44, 0x0a, 0x08, 0x73, 0x65, 0x74,
  90. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32,
  91. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x69, 0x73,
  92. 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43,
  93. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x42,
  94. 0x6c, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  95. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72,
  96. 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76,
  97. 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f,
  98. 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65,
  99. 0x72, 0xaa, 0x02, 0x19, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41,
  100. 0x70, 0x70, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x62, 0x06, 0x70,
  101. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  102. })
  103. var (
  104. file_app_dispatcher_config_proto_rawDescOnce sync.Once
  105. file_app_dispatcher_config_proto_rawDescData []byte
  106. )
  107. func file_app_dispatcher_config_proto_rawDescGZIP() []byte {
  108. file_app_dispatcher_config_proto_rawDescOnce.Do(func() {
  109. 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)))
  110. })
  111. return file_app_dispatcher_config_proto_rawDescData
  112. }
  113. var file_app_dispatcher_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  114. var file_app_dispatcher_config_proto_goTypes = []any{
  115. (*SessionConfig)(nil), // 0: v2ray.core.app.dispatcher.SessionConfig
  116. (*Config)(nil), // 1: v2ray.core.app.dispatcher.Config
  117. }
  118. var file_app_dispatcher_config_proto_depIdxs = []int32{
  119. 0, // 0: v2ray.core.app.dispatcher.Config.settings:type_name -> v2ray.core.app.dispatcher.SessionConfig
  120. 1, // [1:1] is the sub-list for method output_type
  121. 1, // [1:1] is the sub-list for method input_type
  122. 1, // [1:1] is the sub-list for extension type_name
  123. 1, // [1:1] is the sub-list for extension extendee
  124. 0, // [0:1] is the sub-list for field type_name
  125. }
  126. func init() { file_app_dispatcher_config_proto_init() }
  127. func file_app_dispatcher_config_proto_init() {
  128. if File_app_dispatcher_config_proto != nil {
  129. return
  130. }
  131. type x struct{}
  132. out := protoimpl.TypeBuilder{
  133. File: protoimpl.DescBuilder{
  134. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  135. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_dispatcher_config_proto_rawDesc), len(file_app_dispatcher_config_proto_rawDesc)),
  136. NumEnums: 0,
  137. NumMessages: 2,
  138. NumExtensions: 0,
  139. NumServices: 0,
  140. },
  141. GoTypes: file_app_dispatcher_config_proto_goTypes,
  142. DependencyIndexes: file_app_dispatcher_config_proto_depIdxs,
  143. MessageInfos: file_app_dispatcher_config_proto_msgTypes,
  144. }.Build()
  145. File_app_dispatcher_config_proto = out.File
  146. file_app_dispatcher_config_proto_goTypes = nil
  147. file_app_dispatcher_config_proto_depIdxs = nil
  148. }