config.pb.go 10.0 KB

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