config.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. package http
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. )
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. type Header struct {
  17. // "Accept", "Cookie", etc
  18. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  19. // Each entry must be valid in one piece. Random entry will be chosen if multiple entries present.
  20. Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
  21. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  22. XXX_unrecognized []byte `json:"-"`
  23. XXX_sizecache int32 `json:"-"`
  24. }
  25. func (m *Header) Reset() { *m = Header{} }
  26. func (m *Header) String() string { return proto.CompactTextString(m) }
  27. func (*Header) ProtoMessage() {}
  28. func (*Header) Descriptor() ([]byte, []int) {
  29. return fileDescriptor_e2685d0b4b039e80, []int{0}
  30. }
  31. func (m *Header) XXX_Unmarshal(b []byte) error {
  32. return xxx_messageInfo_Header.Unmarshal(m, b)
  33. }
  34. func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  35. return xxx_messageInfo_Header.Marshal(b, m, deterministic)
  36. }
  37. func (m *Header) XXX_Merge(src proto.Message) {
  38. xxx_messageInfo_Header.Merge(m, src)
  39. }
  40. func (m *Header) XXX_Size() int {
  41. return xxx_messageInfo_Header.Size(m)
  42. }
  43. func (m *Header) XXX_DiscardUnknown() {
  44. xxx_messageInfo_Header.DiscardUnknown(m)
  45. }
  46. var xxx_messageInfo_Header proto.InternalMessageInfo
  47. func (m *Header) GetName() string {
  48. if m != nil {
  49. return m.Name
  50. }
  51. return ""
  52. }
  53. func (m *Header) GetValue() []string {
  54. if m != nil {
  55. return m.Value
  56. }
  57. return nil
  58. }
  59. // HTTP version. Default value "1.1".
  60. type Version struct {
  61. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
  62. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  63. XXX_unrecognized []byte `json:"-"`
  64. XXX_sizecache int32 `json:"-"`
  65. }
  66. func (m *Version) Reset() { *m = Version{} }
  67. func (m *Version) String() string { return proto.CompactTextString(m) }
  68. func (*Version) ProtoMessage() {}
  69. func (*Version) Descriptor() ([]byte, []int) {
  70. return fileDescriptor_e2685d0b4b039e80, []int{1}
  71. }
  72. func (m *Version) XXX_Unmarshal(b []byte) error {
  73. return xxx_messageInfo_Version.Unmarshal(m, b)
  74. }
  75. func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  76. return xxx_messageInfo_Version.Marshal(b, m, deterministic)
  77. }
  78. func (m *Version) XXX_Merge(src proto.Message) {
  79. xxx_messageInfo_Version.Merge(m, src)
  80. }
  81. func (m *Version) XXX_Size() int {
  82. return xxx_messageInfo_Version.Size(m)
  83. }
  84. func (m *Version) XXX_DiscardUnknown() {
  85. xxx_messageInfo_Version.DiscardUnknown(m)
  86. }
  87. var xxx_messageInfo_Version proto.InternalMessageInfo
  88. func (m *Version) GetValue() string {
  89. if m != nil {
  90. return m.Value
  91. }
  92. return ""
  93. }
  94. // HTTP method. Default value "GET".
  95. type Method struct {
  96. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
  97. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  98. XXX_unrecognized []byte `json:"-"`
  99. XXX_sizecache int32 `json:"-"`
  100. }
  101. func (m *Method) Reset() { *m = Method{} }
  102. func (m *Method) String() string { return proto.CompactTextString(m) }
  103. func (*Method) ProtoMessage() {}
  104. func (*Method) Descriptor() ([]byte, []int) {
  105. return fileDescriptor_e2685d0b4b039e80, []int{2}
  106. }
  107. func (m *Method) XXX_Unmarshal(b []byte) error {
  108. return xxx_messageInfo_Method.Unmarshal(m, b)
  109. }
  110. func (m *Method) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  111. return xxx_messageInfo_Method.Marshal(b, m, deterministic)
  112. }
  113. func (m *Method) XXX_Merge(src proto.Message) {
  114. xxx_messageInfo_Method.Merge(m, src)
  115. }
  116. func (m *Method) XXX_Size() int {
  117. return xxx_messageInfo_Method.Size(m)
  118. }
  119. func (m *Method) XXX_DiscardUnknown() {
  120. xxx_messageInfo_Method.DiscardUnknown(m)
  121. }
  122. var xxx_messageInfo_Method proto.InternalMessageInfo
  123. func (m *Method) GetValue() string {
  124. if m != nil {
  125. return m.Value
  126. }
  127. return ""
  128. }
  129. type RequestConfig struct {
  130. // Full HTTP version like "1.1".
  131. Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  132. // GET, POST, CONNECT etc
  133. Method *Method `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
  134. // URI like "/login.php"
  135. Uri []string `protobuf:"bytes,3,rep,name=uri,proto3" json:"uri,omitempty"`
  136. Header []*Header `protobuf:"bytes,4,rep,name=header,proto3" json:"header,omitempty"`
  137. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  138. XXX_unrecognized []byte `json:"-"`
  139. XXX_sizecache int32 `json:"-"`
  140. }
  141. func (m *RequestConfig) Reset() { *m = RequestConfig{} }
  142. func (m *RequestConfig) String() string { return proto.CompactTextString(m) }
  143. func (*RequestConfig) ProtoMessage() {}
  144. func (*RequestConfig) Descriptor() ([]byte, []int) {
  145. return fileDescriptor_e2685d0b4b039e80, []int{3}
  146. }
  147. func (m *RequestConfig) XXX_Unmarshal(b []byte) error {
  148. return xxx_messageInfo_RequestConfig.Unmarshal(m, b)
  149. }
  150. func (m *RequestConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  151. return xxx_messageInfo_RequestConfig.Marshal(b, m, deterministic)
  152. }
  153. func (m *RequestConfig) XXX_Merge(src proto.Message) {
  154. xxx_messageInfo_RequestConfig.Merge(m, src)
  155. }
  156. func (m *RequestConfig) XXX_Size() int {
  157. return xxx_messageInfo_RequestConfig.Size(m)
  158. }
  159. func (m *RequestConfig) XXX_DiscardUnknown() {
  160. xxx_messageInfo_RequestConfig.DiscardUnknown(m)
  161. }
  162. var xxx_messageInfo_RequestConfig proto.InternalMessageInfo
  163. func (m *RequestConfig) GetVersion() *Version {
  164. if m != nil {
  165. return m.Version
  166. }
  167. return nil
  168. }
  169. func (m *RequestConfig) GetMethod() *Method {
  170. if m != nil {
  171. return m.Method
  172. }
  173. return nil
  174. }
  175. func (m *RequestConfig) GetUri() []string {
  176. if m != nil {
  177. return m.Uri
  178. }
  179. return nil
  180. }
  181. func (m *RequestConfig) GetHeader() []*Header {
  182. if m != nil {
  183. return m.Header
  184. }
  185. return nil
  186. }
  187. type Status struct {
  188. // Status code. Default "200".
  189. Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
  190. // Statue reason. Default "OK".
  191. Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
  192. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  193. XXX_unrecognized []byte `json:"-"`
  194. XXX_sizecache int32 `json:"-"`
  195. }
  196. func (m *Status) Reset() { *m = Status{} }
  197. func (m *Status) String() string { return proto.CompactTextString(m) }
  198. func (*Status) ProtoMessage() {}
  199. func (*Status) Descriptor() ([]byte, []int) {
  200. return fileDescriptor_e2685d0b4b039e80, []int{4}
  201. }
  202. func (m *Status) XXX_Unmarshal(b []byte) error {
  203. return xxx_messageInfo_Status.Unmarshal(m, b)
  204. }
  205. func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  206. return xxx_messageInfo_Status.Marshal(b, m, deterministic)
  207. }
  208. func (m *Status) XXX_Merge(src proto.Message) {
  209. xxx_messageInfo_Status.Merge(m, src)
  210. }
  211. func (m *Status) XXX_Size() int {
  212. return xxx_messageInfo_Status.Size(m)
  213. }
  214. func (m *Status) XXX_DiscardUnknown() {
  215. xxx_messageInfo_Status.DiscardUnknown(m)
  216. }
  217. var xxx_messageInfo_Status proto.InternalMessageInfo
  218. func (m *Status) GetCode() string {
  219. if m != nil {
  220. return m.Code
  221. }
  222. return ""
  223. }
  224. func (m *Status) GetReason() string {
  225. if m != nil {
  226. return m.Reason
  227. }
  228. return ""
  229. }
  230. type ResponseConfig struct {
  231. Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  232. Status *Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
  233. Header []*Header `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"`
  234. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  235. XXX_unrecognized []byte `json:"-"`
  236. XXX_sizecache int32 `json:"-"`
  237. }
  238. func (m *ResponseConfig) Reset() { *m = ResponseConfig{} }
  239. func (m *ResponseConfig) String() string { return proto.CompactTextString(m) }
  240. func (*ResponseConfig) ProtoMessage() {}
  241. func (*ResponseConfig) Descriptor() ([]byte, []int) {
  242. return fileDescriptor_e2685d0b4b039e80, []int{5}
  243. }
  244. func (m *ResponseConfig) XXX_Unmarshal(b []byte) error {
  245. return xxx_messageInfo_ResponseConfig.Unmarshal(m, b)
  246. }
  247. func (m *ResponseConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  248. return xxx_messageInfo_ResponseConfig.Marshal(b, m, deterministic)
  249. }
  250. func (m *ResponseConfig) XXX_Merge(src proto.Message) {
  251. xxx_messageInfo_ResponseConfig.Merge(m, src)
  252. }
  253. func (m *ResponseConfig) XXX_Size() int {
  254. return xxx_messageInfo_ResponseConfig.Size(m)
  255. }
  256. func (m *ResponseConfig) XXX_DiscardUnknown() {
  257. xxx_messageInfo_ResponseConfig.DiscardUnknown(m)
  258. }
  259. var xxx_messageInfo_ResponseConfig proto.InternalMessageInfo
  260. func (m *ResponseConfig) GetVersion() *Version {
  261. if m != nil {
  262. return m.Version
  263. }
  264. return nil
  265. }
  266. func (m *ResponseConfig) GetStatus() *Status {
  267. if m != nil {
  268. return m.Status
  269. }
  270. return nil
  271. }
  272. func (m *ResponseConfig) GetHeader() []*Header {
  273. if m != nil {
  274. return m.Header
  275. }
  276. return nil
  277. }
  278. type Config struct {
  279. // Settings for authenticating requests. If not set, client side will not send authenication header, and server side will bypass authentication.
  280. Request *RequestConfig `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
  281. // Settings for authenticating responses. If not set, client side will bypass authentication, and server side will not send authentication header.
  282. Response *ResponseConfig `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
  283. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  284. XXX_unrecognized []byte `json:"-"`
  285. XXX_sizecache int32 `json:"-"`
  286. }
  287. func (m *Config) Reset() { *m = Config{} }
  288. func (m *Config) String() string { return proto.CompactTextString(m) }
  289. func (*Config) ProtoMessage() {}
  290. func (*Config) Descriptor() ([]byte, []int) {
  291. return fileDescriptor_e2685d0b4b039e80, []int{6}
  292. }
  293. func (m *Config) XXX_Unmarshal(b []byte) error {
  294. return xxx_messageInfo_Config.Unmarshal(m, b)
  295. }
  296. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  297. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  298. }
  299. func (m *Config) XXX_Merge(src proto.Message) {
  300. xxx_messageInfo_Config.Merge(m, src)
  301. }
  302. func (m *Config) XXX_Size() int {
  303. return xxx_messageInfo_Config.Size(m)
  304. }
  305. func (m *Config) XXX_DiscardUnknown() {
  306. xxx_messageInfo_Config.DiscardUnknown(m)
  307. }
  308. var xxx_messageInfo_Config proto.InternalMessageInfo
  309. func (m *Config) GetRequest() *RequestConfig {
  310. if m != nil {
  311. return m.Request
  312. }
  313. return nil
  314. }
  315. func (m *Config) GetResponse() *ResponseConfig {
  316. if m != nil {
  317. return m.Response
  318. }
  319. return nil
  320. }
  321. func init() {
  322. proto.RegisterType((*Header)(nil), "v2ray.core.transport.internet.headers.http.Header")
  323. proto.RegisterType((*Version)(nil), "v2ray.core.transport.internet.headers.http.Version")
  324. proto.RegisterType((*Method)(nil), "v2ray.core.transport.internet.headers.http.Method")
  325. proto.RegisterType((*RequestConfig)(nil), "v2ray.core.transport.internet.headers.http.RequestConfig")
  326. proto.RegisterType((*Status)(nil), "v2ray.core.transport.internet.headers.http.Status")
  327. proto.RegisterType((*ResponseConfig)(nil), "v2ray.core.transport.internet.headers.http.ResponseConfig")
  328. proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.headers.http.Config")
  329. }
  330. func init() {
  331. proto.RegisterFile("v2ray.com/core/transport/internet/headers/http/config.proto", fileDescriptor_e2685d0b4b039e80)
  332. }
  333. var fileDescriptor_e2685d0b4b039e80 = []byte{
  334. // 394 bytes of a gzipped FileDescriptorProto
  335. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xbf, 0x8a, 0xdb, 0x40,
  336. 0x10, 0xc6, 0x91, 0xe4, 0xc8, 0xf1, 0x84, 0x84, 0xb0, 0x84, 0xa0, 0x2a, 0x31, 0xaa, 0x8c, 0x8b,
  337. 0x15, 0xc8, 0x69, 0x92, 0x74, 0x71, 0xe3, 0x04, 0x0c, 0x61, 0x1d, 0x5c, 0xa4, 0xdb, 0xc8, 0x93,
  338. 0x58, 0x10, 0xef, 0x2a, 0xbb, 0x2b, 0x83, 0xdf, 0x20, 0xcf, 0x72, 0xfd, 0x3d, 0xdb, 0xb5, 0xc7,
  339. 0xfe, 0x91, 0xce, 0x57, 0x1c, 0x9c, 0xee, 0xb8, 0x4a, 0x33, 0x68, 0xbe, 0x1f, 0xf3, 0x7d, 0x5a,
  340. 0x2d, 0x7c, 0x3e, 0x96, 0x8a, 0x9f, 0x68, 0x25, 0x0f, 0x45, 0x25, 0x15, 0x16, 0x46, 0x71, 0xa1,
  341. 0x1b, 0xa9, 0x4c, 0x51, 0x0b, 0x83, 0x4a, 0xa0, 0x29, 0xf6, 0xc8, 0x77, 0xa8, 0x74, 0xb1, 0x37,
  342. 0xa6, 0x29, 0x2a, 0x29, 0x7e, 0xd7, 0x7f, 0x68, 0xa3, 0xa4, 0x91, 0x64, 0xde, 0x89, 0x15, 0xd2,
  343. 0x5e, 0x48, 0x3b, 0x21, 0x0d, 0x42, 0x6a, 0x85, 0x79, 0x09, 0xe9, 0xca, 0xf5, 0x84, 0xc0, 0x48,
  344. 0xf0, 0x03, 0x66, 0xd1, 0x34, 0x9a, 0x4d, 0x98, 0xab, 0xc9, 0x1b, 0x78, 0x76, 0xe4, 0x7f, 0x5b,
  345. 0xcc, 0xe2, 0x69, 0x32, 0x9b, 0x30, 0xdf, 0xe4, 0xef, 0x61, 0xbc, 0x45, 0xa5, 0x6b, 0x29, 0x6e,
  346. 0x06, 0xbc, 0x2a, 0x0c, 0xbc, 0x83, 0x74, 0x8d, 0x66, 0x2f, 0x77, 0x77, 0xbc, 0xff, 0x1f, 0xc3,
  347. 0x4b, 0x86, 0xff, 0x5a, 0xd4, 0x66, 0xe9, 0x16, 0x27, 0x6b, 0x18, 0x1f, 0x3d, 0xd2, 0x4d, 0xbe,
  348. 0x28, 0x17, 0xf4, 0xfe, 0x26, 0x68, 0xd8, 0x86, 0x75, 0x0c, 0xf2, 0x0d, 0xd2, 0x83, 0x5b, 0x20,
  349. 0x8b, 0x1d, 0xad, 0x1c, 0x42, 0xf3, 0xab, 0xb3, 0x40, 0x20, 0xaf, 0x21, 0x69, 0x55, 0x9d, 0x25,
  350. 0x2e, 0x01, 0x5b, 0x5a, 0xba, 0x17, 0x64, 0xa3, 0x69, 0x32, 0x94, 0xee, 0xd3, 0x66, 0x81, 0x90,
  351. 0x7f, 0x80, 0x74, 0x63, 0xb8, 0x69, 0xb5, 0xcd, 0xbf, 0x92, 0xbb, 0x3e, 0x7f, 0x5b, 0x93, 0xb7,
  352. 0x90, 0x2a, 0xe4, 0x5a, 0x0a, 0xe7, 0x63, 0xc2, 0x42, 0x97, 0x5f, 0x45, 0xf0, 0x8a, 0xa1, 0x6e,
  353. 0xa4, 0xd0, 0xf8, 0x64, 0x09, 0x6a, 0xb7, 0xd7, 0x43, 0x12, 0xf4, 0x8e, 0x58, 0x20, 0x9c, 0xe5,
  354. 0x95, 0x3c, 0x3a, 0xaf, 0xcb, 0x08, 0xd2, 0xe0, 0x78, 0x03, 0x63, 0xe5, 0x0f, 0x51, 0x70, 0xfc,
  355. 0x71, 0x08, 0xf7, 0xd6, 0xf9, 0x63, 0x1d, 0x89, 0x6c, 0xe1, 0xb9, 0x0a, 0xc1, 0x06, 0xe7, 0x9f,
  356. 0x86, 0x51, 0xcf, 0x3f, 0x0a, 0xeb, 0x59, 0x5f, 0x10, 0xec, 0xcf, 0x3c, 0x00, 0xf5, 0x3d, 0xfa,
  357. 0x39, 0xb2, 0xcf, 0x8b, 0x78, 0xbe, 0x2d, 0x19, 0x3f, 0xd1, 0xa5, 0x15, 0xfd, 0xe8, 0x45, 0x5f,
  358. 0x3b, 0xd1, 0x2a, 0x88, 0x56, 0xc6, 0x34, 0xbf, 0x52, 0x77, 0x03, 0x2c, 0xae, 0x03, 0x00, 0x00,
  359. 0xff, 0xff, 0x10, 0xea, 0x22, 0x27, 0x40, 0x04, 0x00, 0x00,
  360. }