config.pb.go 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/transport/internet/headers/http/config.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package http is a generated protocol buffer package.
  6. It is generated from these files:
  7. v2ray.com/core/transport/internet/headers/http/config.proto
  8. It has these top-level messages:
  9. Header
  10. Version
  11. Method
  12. RequestConfig
  13. Status
  14. ResponseConfig
  15. Config
  16. */
  17. package http
  18. import proto "github.com/golang/protobuf/proto"
  19. import fmt "fmt"
  20. import math "math"
  21. // Reference imports to suppress errors if they are not otherwise used.
  22. var _ = proto.Marshal
  23. var _ = fmt.Errorf
  24. var _ = math.Inf
  25. // This is a compile-time assertion to ensure that this generated file
  26. // is compatible with the proto package it is being compiled against.
  27. // A compilation error at this line likely means your copy of the
  28. // proto package needs to be updated.
  29. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  30. type Header struct {
  31. // "Accept", "Cookie", etc
  32. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  33. // Each entry must be valid in one piece. Random entry will be chosen if multiple entries present.
  34. Value []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
  35. }
  36. func (m *Header) Reset() { *m = Header{} }
  37. func (m *Header) String() string { return proto.CompactTextString(m) }
  38. func (*Header) ProtoMessage() {}
  39. func (*Header) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  40. func (m *Header) GetName() string {
  41. if m != nil {
  42. return m.Name
  43. }
  44. return ""
  45. }
  46. func (m *Header) GetValue() []string {
  47. if m != nil {
  48. return m.Value
  49. }
  50. return nil
  51. }
  52. // HTTP version. Default value "1.1".
  53. type Version struct {
  54. Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
  55. }
  56. func (m *Version) Reset() { *m = Version{} }
  57. func (m *Version) String() string { return proto.CompactTextString(m) }
  58. func (*Version) ProtoMessage() {}
  59. func (*Version) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  60. func (m *Version) GetValue() string {
  61. if m != nil {
  62. return m.Value
  63. }
  64. return ""
  65. }
  66. // HTTP method. Default value "GET".
  67. type Method struct {
  68. Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
  69. }
  70. func (m *Method) Reset() { *m = Method{} }
  71. func (m *Method) String() string { return proto.CompactTextString(m) }
  72. func (*Method) ProtoMessage() {}
  73. func (*Method) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  74. func (m *Method) GetValue() string {
  75. if m != nil {
  76. return m.Value
  77. }
  78. return ""
  79. }
  80. type RequestConfig struct {
  81. // Full HTTP version like "1.1".
  82. Version *Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
  83. // GET, POST, CONNECT etc
  84. Method *Method `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"`
  85. // URI like "/login.php"
  86. Uri []string `protobuf:"bytes,3,rep,name=uri" json:"uri,omitempty"`
  87. Header []*Header `protobuf:"bytes,4,rep,name=header" json:"header,omitempty"`
  88. }
  89. func (m *RequestConfig) Reset() { *m = RequestConfig{} }
  90. func (m *RequestConfig) String() string { return proto.CompactTextString(m) }
  91. func (*RequestConfig) ProtoMessage() {}
  92. func (*RequestConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  93. func (m *RequestConfig) GetVersion() *Version {
  94. if m != nil {
  95. return m.Version
  96. }
  97. return nil
  98. }
  99. func (m *RequestConfig) GetMethod() *Method {
  100. if m != nil {
  101. return m.Method
  102. }
  103. return nil
  104. }
  105. func (m *RequestConfig) GetUri() []string {
  106. if m != nil {
  107. return m.Uri
  108. }
  109. return nil
  110. }
  111. func (m *RequestConfig) GetHeader() []*Header {
  112. if m != nil {
  113. return m.Header
  114. }
  115. return nil
  116. }
  117. type Status struct {
  118. // Status code. Default "200".
  119. Code string `protobuf:"bytes,1,opt,name=code" json:"code,omitempty"`
  120. // Statue reason. Default "OK".
  121. Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
  122. }
  123. func (m *Status) Reset() { *m = Status{} }
  124. func (m *Status) String() string { return proto.CompactTextString(m) }
  125. func (*Status) ProtoMessage() {}
  126. func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  127. func (m *Status) GetCode() string {
  128. if m != nil {
  129. return m.Code
  130. }
  131. return ""
  132. }
  133. func (m *Status) GetReason() string {
  134. if m != nil {
  135. return m.Reason
  136. }
  137. return ""
  138. }
  139. type ResponseConfig struct {
  140. Version *Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
  141. Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
  142. Header []*Header `protobuf:"bytes,3,rep,name=header" json:"header,omitempty"`
  143. }
  144. func (m *ResponseConfig) Reset() { *m = ResponseConfig{} }
  145. func (m *ResponseConfig) String() string { return proto.CompactTextString(m) }
  146. func (*ResponseConfig) ProtoMessage() {}
  147. func (*ResponseConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  148. func (m *ResponseConfig) GetVersion() *Version {
  149. if m != nil {
  150. return m.Version
  151. }
  152. return nil
  153. }
  154. func (m *ResponseConfig) GetStatus() *Status {
  155. if m != nil {
  156. return m.Status
  157. }
  158. return nil
  159. }
  160. func (m *ResponseConfig) GetHeader() []*Header {
  161. if m != nil {
  162. return m.Header
  163. }
  164. return nil
  165. }
  166. type Config struct {
  167. // Settings for authenticating requests. If not set, client side will not send authenication header, and server side will bypass authentication.
  168. Request *RequestConfig `protobuf:"bytes,1,opt,name=request" json:"request,omitempty"`
  169. // Settings for authenticating responses. If not set, client side will bypass authentication, and server side will not send authentication header.
  170. Response *ResponseConfig `protobuf:"bytes,2,opt,name=response" json:"response,omitempty"`
  171. }
  172. func (m *Config) Reset() { *m = Config{} }
  173. func (m *Config) String() string { return proto.CompactTextString(m) }
  174. func (*Config) ProtoMessage() {}
  175. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  176. func (m *Config) GetRequest() *RequestConfig {
  177. if m != nil {
  178. return m.Request
  179. }
  180. return nil
  181. }
  182. func (m *Config) GetResponse() *ResponseConfig {
  183. if m != nil {
  184. return m.Response
  185. }
  186. return nil
  187. }
  188. func init() {
  189. proto.RegisterType((*Header)(nil), "v2ray.core.transport.internet.headers.http.Header")
  190. proto.RegisterType((*Version)(nil), "v2ray.core.transport.internet.headers.http.Version")
  191. proto.RegisterType((*Method)(nil), "v2ray.core.transport.internet.headers.http.Method")
  192. proto.RegisterType((*RequestConfig)(nil), "v2ray.core.transport.internet.headers.http.RequestConfig")
  193. proto.RegisterType((*Status)(nil), "v2ray.core.transport.internet.headers.http.Status")
  194. proto.RegisterType((*ResponseConfig)(nil), "v2ray.core.transport.internet.headers.http.ResponseConfig")
  195. proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.headers.http.Config")
  196. }
  197. func init() {
  198. proto.RegisterFile("v2ray.com/core/transport/internet/headers/http/config.proto", fileDescriptor0)
  199. }
  200. var fileDescriptor0 = []byte{
  201. // 399 bytes of a gzipped FileDescriptorProto
  202. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x94, 0x4f, 0x6b, 0xdb, 0x30,
  203. 0x18, 0xc6, 0xb1, 0x9d, 0x39, 0xcb, 0x1b, 0x36, 0x86, 0x18, 0xc3, 0xa7, 0x2d, 0xf8, 0x14, 0x72,
  204. 0x90, 0xc1, 0xd9, 0x65, 0xdb, 0x2d, 0xb9, 0x64, 0x85, 0x40, 0x51, 0x4a, 0x0e, 0xbd, 0xa9, 0x8e,
  205. 0xda, 0x18, 0x1a, 0xc9, 0x95, 0xe4, 0x40, 0xbe, 0x41, 0x3f, 0x4b, 0xef, 0xfd, 0x6c, 0xbd, 0x16,
  206. 0xfd, 0xb1, 0x9b, 0x1e, 0x0a, 0x75, 0x4b, 0x6f, 0xef, 0x6b, 0xbf, 0xcf, 0x8f, 0xf7, 0x79, 0x2c,
  207. 0x19, 0xfe, 0xed, 0x73, 0x49, 0x0f, 0xb8, 0x10, 0xbb, 0xac, 0x10, 0x92, 0x65, 0x5a, 0x52, 0xae,
  208. 0x2a, 0x21, 0x75, 0x56, 0x72, 0xcd, 0x24, 0x67, 0x3a, 0xdb, 0x32, 0xba, 0x61, 0x52, 0x65, 0x5b,
  209. 0xad, 0xab, 0xac, 0x10, 0xfc, 0xb2, 0xbc, 0xc2, 0x95, 0x14, 0x5a, 0xa0, 0x49, 0x23, 0x96, 0x0c,
  210. 0xb7, 0x42, 0xdc, 0x08, 0xb1, 0x17, 0x62, 0x23, 0x4c, 0x73, 0x88, 0x17, 0xb6, 0x47, 0x08, 0x7a,
  211. 0x9c, 0xee, 0x58, 0x12, 0x8c, 0x82, 0xf1, 0x80, 0xd8, 0x1a, 0x7d, 0x87, 0x4f, 0x7b, 0x7a, 0x5d,
  212. 0xb3, 0x24, 0x1c, 0x45, 0xe3, 0x01, 0x71, 0x4d, 0xfa, 0x0b, 0xfa, 0x6b, 0x26, 0x55, 0x29, 0xf8,
  213. 0xd3, 0x80, 0x53, 0xf9, 0x81, 0x9f, 0x10, 0x2f, 0x99, 0xde, 0x8a, 0xcd, 0x0b, 0xef, 0x6f, 0x43,
  214. 0xf8, 0x42, 0xd8, 0x4d, 0xcd, 0x94, 0x9e, 0xdb, 0xc5, 0xd1, 0x12, 0xfa, 0x7b, 0x87, 0xb4, 0x93,
  215. 0xc3, 0x7c, 0x8a, 0x5f, 0x6f, 0x02, 0xfb, 0x6d, 0x48, 0xc3, 0x40, 0x27, 0x10, 0xef, 0xec, 0x02,
  216. 0x49, 0x68, 0x69, 0x79, 0x17, 0x9a, 0x5b, 0x9d, 0x78, 0x02, 0xfa, 0x06, 0x51, 0x2d, 0xcb, 0x24,
  217. 0xb2, 0x09, 0x98, 0xd2, 0xd0, 0x9d, 0x20, 0xe9, 0x8d, 0xa2, 0xae, 0x74, 0x97, 0x36, 0xf1, 0x84,
  218. 0xf4, 0x37, 0xc4, 0x2b, 0x4d, 0x75, 0xad, 0x4c, 0xfe, 0x85, 0xd8, 0xb4, 0xf9, 0x9b, 0x1a, 0xfd,
  219. 0x80, 0x58, 0x32, 0xaa, 0x04, 0xb7, 0x3e, 0x06, 0xc4, 0x77, 0xe9, 0x43, 0x00, 0x5f, 0x09, 0x53,
  220. 0x95, 0xe0, 0x8a, 0x7d, 0x58, 0x82, 0xca, 0xee, 0xf5, 0x96, 0x04, 0x9d, 0x23, 0xe2, 0x09, 0x47,
  221. 0x79, 0x45, 0xef, 0xce, 0xeb, 0x3e, 0x80, 0xd8, 0x3b, 0x5e, 0x41, 0x5f, 0xba, 0x43, 0xe4, 0x1d,
  222. 0xff, 0xe9, 0xc2, 0x7d, 0x76, 0xfe, 0x48, 0x43, 0x42, 0x6b, 0xf8, 0x2c, 0x7d, 0xb0, 0xde, 0xf9,
  223. 0xdf, 0x6e, 0xd4, 0xe3, 0x8f, 0x42, 0x5a, 0xd6, 0xac, 0x02, 0x73, 0x99, 0x3b, 0xa0, 0x66, 0x43,
  224. 0xc7, 0x38, 0x35, 0x57, 0xfa, 0xbc, 0x67, 0x1e, 0xdd, 0x85, 0x93, 0x75, 0x4e, 0xe8, 0x01, 0xcf,
  225. 0x8d, 0xfe, 0xac, 0xd5, 0xff, 0x6f, 0xf4, 0x0b, 0xaf, 0x5f, 0x68, 0x5d, 0x5d, 0xc4, 0xf6, 0x67,
  226. 0x30, 0x7d, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x30, 0x13, 0xcf, 0x4b, 0x04, 0x00, 0x00,
  227. }