config.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. package httprt
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  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 ClientConfig struct {
  16. state protoimpl.MessageState
  17. sizeCache protoimpl.SizeCache
  18. unknownFields protoimpl.UnknownFields
  19. Http *HTTPConfig `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
  20. }
  21. func (x *ClientConfig) Reset() {
  22. *x = ClientConfig{}
  23. if protoimpl.UnsafeEnabled {
  24. mi := &file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes[0]
  25. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  26. ms.StoreMessageInfo(mi)
  27. }
  28. }
  29. func (x *ClientConfig) String() string {
  30. return protoimpl.X.MessageStringOf(x)
  31. }
  32. func (*ClientConfig) ProtoMessage() {}
  33. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  34. mi := &file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes[0]
  35. if protoimpl.UnsafeEnabled && x != nil {
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. if ms.LoadMessageInfo() == nil {
  38. ms.StoreMessageInfo(mi)
  39. }
  40. return ms
  41. }
  42. return mi.MessageOf(x)
  43. }
  44. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  45. func (*ClientConfig) Descriptor() ([]byte, []int) {
  46. return file_transport_internet_request_roundtripper_httprt_config_proto_rawDescGZIP(), []int{0}
  47. }
  48. func (x *ClientConfig) GetHttp() *HTTPConfig {
  49. if x != nil {
  50. return x.Http
  51. }
  52. return nil
  53. }
  54. type ServerConfig struct {
  55. state protoimpl.MessageState
  56. sizeCache protoimpl.SizeCache
  57. unknownFields protoimpl.UnknownFields
  58. Http *HTTPConfig `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
  59. NoDecodingSessionTag bool `protobuf:"varint,2,opt,name=no_decoding_session_tag,json=noDecodingSessionTag,proto3" json:"no_decoding_session_tag,omitempty"`
  60. }
  61. func (x *ServerConfig) Reset() {
  62. *x = ServerConfig{}
  63. if protoimpl.UnsafeEnabled {
  64. mi := &file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes[1]
  65. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  66. ms.StoreMessageInfo(mi)
  67. }
  68. }
  69. func (x *ServerConfig) String() string {
  70. return protoimpl.X.MessageStringOf(x)
  71. }
  72. func (*ServerConfig) ProtoMessage() {}
  73. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  74. mi := &file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes[1]
  75. if protoimpl.UnsafeEnabled && x != nil {
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. if ms.LoadMessageInfo() == nil {
  78. ms.StoreMessageInfo(mi)
  79. }
  80. return ms
  81. }
  82. return mi.MessageOf(x)
  83. }
  84. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  85. func (*ServerConfig) Descriptor() ([]byte, []int) {
  86. return file_transport_internet_request_roundtripper_httprt_config_proto_rawDescGZIP(), []int{1}
  87. }
  88. func (x *ServerConfig) GetHttp() *HTTPConfig {
  89. if x != nil {
  90. return x.Http
  91. }
  92. return nil
  93. }
  94. func (x *ServerConfig) GetNoDecodingSessionTag() bool {
  95. if x != nil {
  96. return x.NoDecodingSessionTag
  97. }
  98. return false
  99. }
  100. type HTTPConfig struct {
  101. state protoimpl.MessageState
  102. sizeCache protoimpl.SizeCache
  103. unknownFields protoimpl.UnknownFields
  104. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
  105. UrlPrefix string `protobuf:"bytes,2,opt,name=urlPrefix,proto3" json:"urlPrefix,omitempty"`
  106. }
  107. func (x *HTTPConfig) Reset() {
  108. *x = HTTPConfig{}
  109. if protoimpl.UnsafeEnabled {
  110. mi := &file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes[2]
  111. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  112. ms.StoreMessageInfo(mi)
  113. }
  114. }
  115. func (x *HTTPConfig) String() string {
  116. return protoimpl.X.MessageStringOf(x)
  117. }
  118. func (*HTTPConfig) ProtoMessage() {}
  119. func (x *HTTPConfig) ProtoReflect() protoreflect.Message {
  120. mi := &file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes[2]
  121. if protoimpl.UnsafeEnabled && x != nil {
  122. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  123. if ms.LoadMessageInfo() == nil {
  124. ms.StoreMessageInfo(mi)
  125. }
  126. return ms
  127. }
  128. return mi.MessageOf(x)
  129. }
  130. // Deprecated: Use HTTPConfig.ProtoReflect.Descriptor instead.
  131. func (*HTTPConfig) Descriptor() ([]byte, []int) {
  132. return file_transport_internet_request_roundtripper_httprt_config_proto_rawDescGZIP(), []int{2}
  133. }
  134. func (x *HTTPConfig) GetPath() string {
  135. if x != nil {
  136. return x.Path
  137. }
  138. return ""
  139. }
  140. func (x *HTTPConfig) GetUrlPrefix() string {
  141. if x != nil {
  142. return x.UrlPrefix
  143. }
  144. return ""
  145. }
  146. var File_transport_internet_request_roundtripper_httprt_config_proto protoreflect.FileDescriptor
  147. var file_transport_internet_request_roundtripper_httprt_config_proto_rawDesc = []byte{
  148. 0x0a, 0x3b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  149. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2f, 0x72, 0x6f, 0x75,
  150. 0x6e, 0x64, 0x74, 0x72, 0x69, 0x70, 0x70, 0x65, 0x72, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x72, 0x74,
  151. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x39, 0x76,
  152. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  153. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x72, 0x65, 0x71,
  154. 0x75, 0x65, 0x73, 0x74, 0x2e, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x74, 0x72, 0x69, 0x70, 0x70, 0x65,
  155. 0x72, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x72, 0x74, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  156. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  157. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9e, 0x01, 0x0a, 0x0c, 0x43,
  158. 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x59, 0x0a, 0x04, 0x68,
  159. 0x74, 0x74, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x76, 0x32, 0x72, 0x61,
  160. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  161. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
  162. 0x74, 0x2e, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x74, 0x72, 0x69, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x68,
  163. 0x74, 0x74, 0x70, 0x72, 0x74, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  164. 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x33, 0x82, 0xb5, 0x18, 0x2f, 0x0a, 0x25, 0x74, 0x72,
  165. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e,
  166. 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x74, 0x72, 0x69, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x63, 0x6c, 0x69,
  167. 0x65, 0x6e, 0x74, 0x12, 0x06, 0x68, 0x74, 0x74, 0x70, 0x72, 0x74, 0x22, 0xd5, 0x01, 0x0a, 0x0c,
  168. 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x59, 0x0a, 0x04,
  169. 0x68, 0x74, 0x74, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x76, 0x32, 0x72,
  170. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  171. 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65,
  172. 0x73, 0x74, 0x2e, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x74, 0x72, 0x69, 0x70, 0x70, 0x65, 0x72, 0x2e,
  173. 0x68, 0x74, 0x74, 0x70, 0x72, 0x74, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  174. 0x67, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x12, 0x35, 0x0a, 0x17, 0x6e, 0x6f, 0x5f, 0x64, 0x65,
  175. 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74,
  176. 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x6e, 0x6f, 0x44, 0x65, 0x63, 0x6f,
  177. 0x64, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x67, 0x3a, 0x33,
  178. 0x82, 0xb5, 0x18, 0x2f, 0x0a, 0x25, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  179. 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x74, 0x72, 0x69,
  180. 0x70, 0x70, 0x65, 0x72, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x06, 0x68, 0x74, 0x74,
  181. 0x70, 0x72, 0x74, 0x22, 0x3e, 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  182. 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  183. 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x72, 0x6c, 0x50, 0x72, 0x65, 0x66,
  184. 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x72, 0x6c, 0x50, 0x72, 0x65,
  185. 0x66, 0x69, 0x78, 0x42, 0xcc, 0x01, 0x0a, 0x3d, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
  186. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  187. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
  188. 0x74, 0x2e, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x74, 0x72, 0x69, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x68,
  189. 0x74, 0x74, 0x70, 0x72, 0x74, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  190. 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d,
  191. 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  192. 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65,
  193. 0x73, 0x74, 0x2f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x74, 0x72, 0x69, 0x70, 0x70, 0x65, 0x72, 0x2f,
  194. 0x68, 0x74, 0x74, 0x70, 0x72, 0x74, 0xaa, 0x02, 0x39, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
  195. 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e,
  196. 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52,
  197. 0x6f, 0x75, 0x6e, 0x64, 0x74, 0x72, 0x69, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x68, 0x74, 0x74, 0x70,
  198. 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  199. }
  200. var (
  201. file_transport_internet_request_roundtripper_httprt_config_proto_rawDescOnce sync.Once
  202. file_transport_internet_request_roundtripper_httprt_config_proto_rawDescData = file_transport_internet_request_roundtripper_httprt_config_proto_rawDesc
  203. )
  204. func file_transport_internet_request_roundtripper_httprt_config_proto_rawDescGZIP() []byte {
  205. file_transport_internet_request_roundtripper_httprt_config_proto_rawDescOnce.Do(func() {
  206. file_transport_internet_request_roundtripper_httprt_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_request_roundtripper_httprt_config_proto_rawDescData)
  207. })
  208. return file_transport_internet_request_roundtripper_httprt_config_proto_rawDescData
  209. }
  210. var file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  211. var file_transport_internet_request_roundtripper_httprt_config_proto_goTypes = []interface{}{
  212. (*ClientConfig)(nil), // 0: v2ray.core.transport.internet.request.roundtripper.httprt.ClientConfig
  213. (*ServerConfig)(nil), // 1: v2ray.core.transport.internet.request.roundtripper.httprt.ServerConfig
  214. (*HTTPConfig)(nil), // 2: v2ray.core.transport.internet.request.roundtripper.httprt.HTTPConfig
  215. }
  216. var file_transport_internet_request_roundtripper_httprt_config_proto_depIdxs = []int32{
  217. 2, // 0: v2ray.core.transport.internet.request.roundtripper.httprt.ClientConfig.http:type_name -> v2ray.core.transport.internet.request.roundtripper.httprt.HTTPConfig
  218. 2, // 1: v2ray.core.transport.internet.request.roundtripper.httprt.ServerConfig.http:type_name -> v2ray.core.transport.internet.request.roundtripper.httprt.HTTPConfig
  219. 2, // [2:2] is the sub-list for method output_type
  220. 2, // [2:2] is the sub-list for method input_type
  221. 2, // [2:2] is the sub-list for extension type_name
  222. 2, // [2:2] is the sub-list for extension extendee
  223. 0, // [0:2] is the sub-list for field type_name
  224. }
  225. func init() { file_transport_internet_request_roundtripper_httprt_config_proto_init() }
  226. func file_transport_internet_request_roundtripper_httprt_config_proto_init() {
  227. if File_transport_internet_request_roundtripper_httprt_config_proto != nil {
  228. return
  229. }
  230. if !protoimpl.UnsafeEnabled {
  231. file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  232. switch v := v.(*ClientConfig); i {
  233. case 0:
  234. return &v.state
  235. case 1:
  236. return &v.sizeCache
  237. case 2:
  238. return &v.unknownFields
  239. default:
  240. return nil
  241. }
  242. }
  243. file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  244. switch v := v.(*ServerConfig); i {
  245. case 0:
  246. return &v.state
  247. case 1:
  248. return &v.sizeCache
  249. case 2:
  250. return &v.unknownFields
  251. default:
  252. return nil
  253. }
  254. }
  255. file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  256. switch v := v.(*HTTPConfig); i {
  257. case 0:
  258. return &v.state
  259. case 1:
  260. return &v.sizeCache
  261. case 2:
  262. return &v.unknownFields
  263. default:
  264. return nil
  265. }
  266. }
  267. }
  268. type x struct{}
  269. out := protoimpl.TypeBuilder{
  270. File: protoimpl.DescBuilder{
  271. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  272. RawDescriptor: file_transport_internet_request_roundtripper_httprt_config_proto_rawDesc,
  273. NumEnums: 0,
  274. NumMessages: 3,
  275. NumExtensions: 0,
  276. NumServices: 0,
  277. },
  278. GoTypes: file_transport_internet_request_roundtripper_httprt_config_proto_goTypes,
  279. DependencyIndexes: file_transport_internet_request_roundtripper_httprt_config_proto_depIdxs,
  280. MessageInfos: file_transport_internet_request_roundtripper_httprt_config_proto_msgTypes,
  281. }.Build()
  282. File_transport_internet_request_roundtripper_httprt_config_proto = out.File
  283. file_transport_internet_request_roundtripper_httprt_config_proto_rawDesc = nil
  284. file_transport_internet_request_roundtripper_httprt_config_proto_goTypes = nil
  285. file_transport_internet_request_roundtripper_httprt_config_proto_depIdxs = nil
  286. }