config.pb.go 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. package http
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. http "github.com/v2fly/v2ray-core/v5/transport/internet/headers/http"
  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 Config struct {
  17. state protoimpl.MessageState
  18. sizeCache protoimpl.SizeCache
  19. unknownFields protoimpl.UnknownFields
  20. Host []string `protobuf:"bytes,1,rep,name=host,proto3" json:"host,omitempty"`
  21. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  22. Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
  23. Header []*http.Header `protobuf:"bytes,4,rep,name=header,proto3" json:"header,omitempty"`
  24. }
  25. func (x *Config) Reset() {
  26. *x = Config{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_transport_internet_http_config_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *Config) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*Config) ProtoMessage() {}
  37. func (x *Config) ProtoReflect() protoreflect.Message {
  38. mi := &file_transport_internet_http_config_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  49. func (*Config) Descriptor() ([]byte, []int) {
  50. return file_transport_internet_http_config_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *Config) GetHost() []string {
  53. if x != nil {
  54. return x.Host
  55. }
  56. return nil
  57. }
  58. func (x *Config) GetPath() string {
  59. if x != nil {
  60. return x.Path
  61. }
  62. return ""
  63. }
  64. func (x *Config) GetMethod() string {
  65. if x != nil {
  66. return x.Method
  67. }
  68. return ""
  69. }
  70. func (x *Config) GetHeader() []*http.Header {
  71. if x != nil {
  72. return x.Header
  73. }
  74. return nil
  75. }
  76. var File_transport_internet_http_config_proto protoreflect.FileDescriptor
  77. var file_transport_internet_http_config_proto_rawDesc = []byte{
  78. 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  79. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  80. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  81. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  82. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d,
  83. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65,
  84. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x74, 0x72,
  85. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  86. 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f,
  87. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb1, 0x01, 0x0a, 0x06, 0x43,
  88. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20,
  89. 0x03, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74,
  90. 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a,
  91. 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d,
  92. 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18,
  93. 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  94. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  95. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74,
  96. 0x74, 0x70, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
  97. 0x72, 0x3a, 0x1b, 0x82, 0xb5, 0x18, 0x17, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  98. 0x72, 0x74, 0x12, 0x02, 0x68, 0x32, 0x8a, 0xff, 0x29, 0x04, 0x68, 0x74, 0x74, 0x70, 0x42, 0x87,
  99. 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  100. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  101. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74,
  102. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32,
  103. 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e,
  104. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68,
  105. 0x74, 0x74, 0x70, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65,
  106. 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72,
  107. 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  108. }
  109. var (
  110. file_transport_internet_http_config_proto_rawDescOnce sync.Once
  111. file_transport_internet_http_config_proto_rawDescData = file_transport_internet_http_config_proto_rawDesc
  112. )
  113. func file_transport_internet_http_config_proto_rawDescGZIP() []byte {
  114. file_transport_internet_http_config_proto_rawDescOnce.Do(func() {
  115. file_transport_internet_http_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_http_config_proto_rawDescData)
  116. })
  117. return file_transport_internet_http_config_proto_rawDescData
  118. }
  119. var file_transport_internet_http_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  120. var file_transport_internet_http_config_proto_goTypes = []interface{}{
  121. (*Config)(nil), // 0: v2ray.core.transport.internet.http.Config
  122. (*http.Header)(nil), // 1: v2ray.core.transport.internet.headers.http.Header
  123. }
  124. var file_transport_internet_http_config_proto_depIdxs = []int32{
  125. 1, // 0: v2ray.core.transport.internet.http.Config.header:type_name -> v2ray.core.transport.internet.headers.http.Header
  126. 1, // [1:1] is the sub-list for method output_type
  127. 1, // [1:1] is the sub-list for method input_type
  128. 1, // [1:1] is the sub-list for extension type_name
  129. 1, // [1:1] is the sub-list for extension extendee
  130. 0, // [0:1] is the sub-list for field type_name
  131. }
  132. func init() { file_transport_internet_http_config_proto_init() }
  133. func file_transport_internet_http_config_proto_init() {
  134. if File_transport_internet_http_config_proto != nil {
  135. return
  136. }
  137. if !protoimpl.UnsafeEnabled {
  138. file_transport_internet_http_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  139. switch v := v.(*Config); i {
  140. case 0:
  141. return &v.state
  142. case 1:
  143. return &v.sizeCache
  144. case 2:
  145. return &v.unknownFields
  146. default:
  147. return nil
  148. }
  149. }
  150. }
  151. type x struct{}
  152. out := protoimpl.TypeBuilder{
  153. File: protoimpl.DescBuilder{
  154. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  155. RawDescriptor: file_transport_internet_http_config_proto_rawDesc,
  156. NumEnums: 0,
  157. NumMessages: 1,
  158. NumExtensions: 0,
  159. NumServices: 0,
  160. },
  161. GoTypes: file_transport_internet_http_config_proto_goTypes,
  162. DependencyIndexes: file_transport_internet_http_config_proto_depIdxs,
  163. MessageInfos: file_transport_internet_http_config_proto_msgTypes,
  164. }.Build()
  165. File_transport_internet_http_config_proto = out.File
  166. file_transport_internet_http_config_proto_rawDesc = nil
  167. file_transport_internet_http_config_proto_goTypes = nil
  168. file_transport_internet_http_config_proto_depIdxs = nil
  169. }