config.pb.go 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.1
  4. // protoc v5.27.0
  5. // source: transport/internet/http/config.proto
  6. package http
  7. import (
  8. http "github.com/xtls/xray-core/transport/internet/headers/http"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Config struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Host []string `protobuf:"bytes,1,rep,name=host,proto3" json:"host,omitempty"`
  25. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  26. IdleTimeout int32 `protobuf:"varint,3,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
  27. HealthCheckTimeout int32 `protobuf:"varint,4,opt,name=health_check_timeout,json=healthCheckTimeout,proto3" json:"health_check_timeout,omitempty"`
  28. Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
  29. Header []*http.Header `protobuf:"bytes,6,rep,name=header,proto3" json:"header,omitempty"`
  30. }
  31. func (x *Config) Reset() {
  32. *x = Config{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_transport_internet_http_config_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *Config) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*Config) ProtoMessage() {}
  43. func (x *Config) ProtoReflect() protoreflect.Message {
  44. mi := &file_transport_internet_http_config_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  55. func (*Config) Descriptor() ([]byte, []int) {
  56. return file_transport_internet_http_config_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *Config) GetHost() []string {
  59. if x != nil {
  60. return x.Host
  61. }
  62. return nil
  63. }
  64. func (x *Config) GetPath() string {
  65. if x != nil {
  66. return x.Path
  67. }
  68. return ""
  69. }
  70. func (x *Config) GetIdleTimeout() int32 {
  71. if x != nil {
  72. return x.IdleTimeout
  73. }
  74. return 0
  75. }
  76. func (x *Config) GetHealthCheckTimeout() int32 {
  77. if x != nil {
  78. return x.HealthCheckTimeout
  79. }
  80. return 0
  81. }
  82. func (x *Config) GetMethod() string {
  83. if x != nil {
  84. return x.Method
  85. }
  86. return ""
  87. }
  88. func (x *Config) GetHeader() []*http.Header {
  89. if x != nil {
  90. return x.Header
  91. }
  92. return nil
  93. }
  94. var File_transport_internet_http_config_proto protoreflect.FileDescriptor
  95. var file_transport_internet_http_config_proto_rawDesc = []byte{
  96. 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  97. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  98. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61,
  99. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
  100. 0x68, 0x74, 0x74, 0x70, 0x1a, 0x2c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f,
  101. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
  102. 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
  103. 0x74, 0x6f, 0x22, 0xe3, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a,
  104. 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73,
  105. 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  106. 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x74, 0x69,
  107. 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69, 0x64, 0x6c,
  108. 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x68, 0x65, 0x61, 0x6c,
  109. 0x74, 0x68, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
  110. 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68,
  111. 0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65,
  112. 0x74, 0x68, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68,
  113. 0x6f, 0x64, 0x12, 0x44, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x03,
  114. 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  115. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61,
  116. 0x64, 0x65, 0x72, 0x73, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
  117. 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x76, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e,
  118. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69,
  119. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x50, 0x01, 0x5a, 0x31,
  120. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f,
  121. 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  122. 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x74, 0x74,
  123. 0x70, 0xaa, 0x02, 0x1c, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  124. 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x74, 0x74, 0x70,
  125. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  126. }
  127. var (
  128. file_transport_internet_http_config_proto_rawDescOnce sync.Once
  129. file_transport_internet_http_config_proto_rawDescData = file_transport_internet_http_config_proto_rawDesc
  130. )
  131. func file_transport_internet_http_config_proto_rawDescGZIP() []byte {
  132. file_transport_internet_http_config_proto_rawDescOnce.Do(func() {
  133. file_transport_internet_http_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_http_config_proto_rawDescData)
  134. })
  135. return file_transport_internet_http_config_proto_rawDescData
  136. }
  137. var file_transport_internet_http_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  138. var file_transport_internet_http_config_proto_goTypes = []interface{}{
  139. (*Config)(nil), // 0: xray.transport.internet.http.Config
  140. (*http.Header)(nil), // 1: xray.transport.internet.headers.http.Header
  141. }
  142. var file_transport_internet_http_config_proto_depIdxs = []int32{
  143. 1, // 0: xray.transport.internet.http.Config.header:type_name -> xray.transport.internet.headers.http.Header
  144. 1, // [1:1] is the sub-list for method output_type
  145. 1, // [1:1] is the sub-list for method input_type
  146. 1, // [1:1] is the sub-list for extension type_name
  147. 1, // [1:1] is the sub-list for extension extendee
  148. 0, // [0:1] is the sub-list for field type_name
  149. }
  150. func init() { file_transport_internet_http_config_proto_init() }
  151. func file_transport_internet_http_config_proto_init() {
  152. if File_transport_internet_http_config_proto != nil {
  153. return
  154. }
  155. if !protoimpl.UnsafeEnabled {
  156. file_transport_internet_http_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  157. switch v := v.(*Config); i {
  158. case 0:
  159. return &v.state
  160. case 1:
  161. return &v.sizeCache
  162. case 2:
  163. return &v.unknownFields
  164. default:
  165. return nil
  166. }
  167. }
  168. }
  169. type x struct{}
  170. out := protoimpl.TypeBuilder{
  171. File: protoimpl.DescBuilder{
  172. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  173. RawDescriptor: file_transport_internet_http_config_proto_rawDesc,
  174. NumEnums: 0,
  175. NumMessages: 1,
  176. NumExtensions: 0,
  177. NumServices: 0,
  178. },
  179. GoTypes: file_transport_internet_http_config_proto_goTypes,
  180. DependencyIndexes: file_transport_internet_http_config_proto_depIdxs,
  181. MessageInfos: file_transport_internet_http_config_proto_msgTypes,
  182. }.Build()
  183. File_transport_internet_http_config_proto = out.File
  184. file_transport_internet_http_config_proto_rawDesc = nil
  185. file_transport_internet_http_config_proto_goTypes = nil
  186. file_transport_internet_http_config_proto_depIdxs = nil
  187. }