config.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. package simplified
  2. import (
  3. net "github.com/v2fly/v2ray-core/v5/common/net"
  4. packetaddr "github.com/v2fly/v2ray-core/v5/common/net/packetaddr"
  5. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  6. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. reflect "reflect"
  9. sync "sync"
  10. )
  11. const (
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  14. // Verify that runtime/protoimpl is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  16. )
  17. type ServerConfig struct {
  18. state protoimpl.MessageState
  19. sizeCache protoimpl.SizeCache
  20. unknownFields protoimpl.UnknownFields
  21. Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  22. PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,2,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
  23. }
  24. func (x *ServerConfig) Reset() {
  25. *x = ServerConfig{}
  26. if protoimpl.UnsafeEnabled {
  27. mi := &file_proxy_trojan_simplified_config_proto_msgTypes[0]
  28. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  29. ms.StoreMessageInfo(mi)
  30. }
  31. }
  32. func (x *ServerConfig) String() string {
  33. return protoimpl.X.MessageStringOf(x)
  34. }
  35. func (*ServerConfig) ProtoMessage() {}
  36. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  37. mi := &file_proxy_trojan_simplified_config_proto_msgTypes[0]
  38. if protoimpl.UnsafeEnabled && x != nil {
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. if ms.LoadMessageInfo() == nil {
  41. ms.StoreMessageInfo(mi)
  42. }
  43. return ms
  44. }
  45. return mi.MessageOf(x)
  46. }
  47. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  48. func (*ServerConfig) Descriptor() ([]byte, []int) {
  49. return file_proxy_trojan_simplified_config_proto_rawDescGZIP(), []int{0}
  50. }
  51. func (x *ServerConfig) GetUsers() []string {
  52. if x != nil {
  53. return x.Users
  54. }
  55. return nil
  56. }
  57. func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType {
  58. if x != nil {
  59. return x.PacketEncoding
  60. }
  61. return packetaddr.PacketAddrType(0)
  62. }
  63. type ClientConfig struct {
  64. state protoimpl.MessageState
  65. sizeCache protoimpl.SizeCache
  66. unknownFields protoimpl.UnknownFields
  67. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  68. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  69. Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
  70. }
  71. func (x *ClientConfig) Reset() {
  72. *x = ClientConfig{}
  73. if protoimpl.UnsafeEnabled {
  74. mi := &file_proxy_trojan_simplified_config_proto_msgTypes[1]
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. ms.StoreMessageInfo(mi)
  77. }
  78. }
  79. func (x *ClientConfig) String() string {
  80. return protoimpl.X.MessageStringOf(x)
  81. }
  82. func (*ClientConfig) ProtoMessage() {}
  83. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  84. mi := &file_proxy_trojan_simplified_config_proto_msgTypes[1]
  85. if protoimpl.UnsafeEnabled && x != nil {
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. if ms.LoadMessageInfo() == nil {
  88. ms.StoreMessageInfo(mi)
  89. }
  90. return ms
  91. }
  92. return mi.MessageOf(x)
  93. }
  94. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  95. func (*ClientConfig) Descriptor() ([]byte, []int) {
  96. return file_proxy_trojan_simplified_config_proto_rawDescGZIP(), []int{1}
  97. }
  98. func (x *ClientConfig) GetAddress() *net.IPOrDomain {
  99. if x != nil {
  100. return x.Address
  101. }
  102. return nil
  103. }
  104. func (x *ClientConfig) GetPort() uint32 {
  105. if x != nil {
  106. return x.Port
  107. }
  108. return 0
  109. }
  110. func (x *ClientConfig) GetPassword() string {
  111. if x != nil {
  112. return x.Password
  113. }
  114. return ""
  115. }
  116. var File_proxy_trojan_simplified_config_proto protoreflect.FileDescriptor
  117. var file_proxy_trojan_simplified_config_proto_rawDesc = []byte{
  118. 0x0a, 0x24, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x2f, 0x73,
  119. 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  120. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  121. 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x2e,
  122. 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d,
  123. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65,
  124. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f,
  125. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  126. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e,
  127. 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2f, 0x63, 0x6f,
  128. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x01, 0x0a, 0x0c, 0x53,
  129. 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x75,
  130. 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72,
  131. 0x73, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f,
  132. 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72,
  133. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61, 0x63, 0x6b,
  134. 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64,
  135. 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x6e, 0x63,
  136. 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x3a, 0x15, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x07, 0x69, 0x6e, 0x62,
  137. 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x06, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x22, 0x93, 0x01, 0x0a,
  138. 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a,
  139. 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21,
  140. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  141. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  142. 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f,
  143. 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a,
  144. 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  145. 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x3a, 0x16, 0x82, 0xb5, 0x18, 0x12,
  146. 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x06, 0x74, 0x72, 0x6f, 0x6a,
  147. 0x61, 0x6e, 0x42, 0x87, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  148. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x74, 0x72, 0x6f, 0x6a,
  149. 0x61, 0x6e, 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x50, 0x01, 0x5a,
  150. 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c,
  151. 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f,
  152. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x74, 0x72, 0x6f, 0x6a, 0x61, 0x6e, 0x2f, 0x73, 0x69, 0x6d,
  153. 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e,
  154. 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x54, 0x72, 0x6f, 0x6a, 0x61,
  155. 0x6e, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72,
  156. 0x6f, 0x74, 0x6f, 0x33,
  157. }
  158. var (
  159. file_proxy_trojan_simplified_config_proto_rawDescOnce sync.Once
  160. file_proxy_trojan_simplified_config_proto_rawDescData = file_proxy_trojan_simplified_config_proto_rawDesc
  161. )
  162. func file_proxy_trojan_simplified_config_proto_rawDescGZIP() []byte {
  163. file_proxy_trojan_simplified_config_proto_rawDescOnce.Do(func() {
  164. file_proxy_trojan_simplified_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_trojan_simplified_config_proto_rawDescData)
  165. })
  166. return file_proxy_trojan_simplified_config_proto_rawDescData
  167. }
  168. var file_proxy_trojan_simplified_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  169. var file_proxy_trojan_simplified_config_proto_goTypes = []interface{}{
  170. (*ServerConfig)(nil), // 0: v2ray.core.proxy.trojan.simplified.ServerConfig
  171. (*ClientConfig)(nil), // 1: v2ray.core.proxy.trojan.simplified.ClientConfig
  172. (packetaddr.PacketAddrType)(0), // 2: v2ray.core.net.packetaddr.PacketAddrType
  173. (*net.IPOrDomain)(nil), // 3: v2ray.core.common.net.IPOrDomain
  174. }
  175. var file_proxy_trojan_simplified_config_proto_depIdxs = []int32{
  176. 2, // 0: v2ray.core.proxy.trojan.simplified.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
  177. 3, // 1: v2ray.core.proxy.trojan.simplified.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  178. 2, // [2:2] is the sub-list for method output_type
  179. 2, // [2:2] is the sub-list for method input_type
  180. 2, // [2:2] is the sub-list for extension type_name
  181. 2, // [2:2] is the sub-list for extension extendee
  182. 0, // [0:2] is the sub-list for field type_name
  183. }
  184. func init() { file_proxy_trojan_simplified_config_proto_init() }
  185. func file_proxy_trojan_simplified_config_proto_init() {
  186. if File_proxy_trojan_simplified_config_proto != nil {
  187. return
  188. }
  189. if !protoimpl.UnsafeEnabled {
  190. file_proxy_trojan_simplified_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  191. switch v := v.(*ServerConfig); i {
  192. case 0:
  193. return &v.state
  194. case 1:
  195. return &v.sizeCache
  196. case 2:
  197. return &v.unknownFields
  198. default:
  199. return nil
  200. }
  201. }
  202. file_proxy_trojan_simplified_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  203. switch v := v.(*ClientConfig); i {
  204. case 0:
  205. return &v.state
  206. case 1:
  207. return &v.sizeCache
  208. case 2:
  209. return &v.unknownFields
  210. default:
  211. return nil
  212. }
  213. }
  214. }
  215. type x struct{}
  216. out := protoimpl.TypeBuilder{
  217. File: protoimpl.DescBuilder{
  218. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  219. RawDescriptor: file_proxy_trojan_simplified_config_proto_rawDesc,
  220. NumEnums: 0,
  221. NumMessages: 2,
  222. NumExtensions: 0,
  223. NumServices: 0,
  224. },
  225. GoTypes: file_proxy_trojan_simplified_config_proto_goTypes,
  226. DependencyIndexes: file_proxy_trojan_simplified_config_proto_depIdxs,
  227. MessageInfos: file_proxy_trojan_simplified_config_proto_msgTypes,
  228. }.Build()
  229. File_proxy_trojan_simplified_config_proto = out.File
  230. file_proxy_trojan_simplified_config_proto_rawDesc = nil
  231. file_proxy_trojan_simplified_config_proto_goTypes = nil
  232. file_proxy_trojan_simplified_config_proto_depIdxs = nil
  233. }