config.pb.go 9.2 KB

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