config.pb.go 11 KB

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