config.pb.go 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. package httpupgrade
  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 Header struct {
  16. state protoimpl.MessageState `protogen:"open.v1"`
  17. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  18. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  19. unknownFields protoimpl.UnknownFields
  20. sizeCache protoimpl.SizeCache
  21. }
  22. func (x *Header) Reset() {
  23. *x = Header{}
  24. mi := &file_transport_internet_httpupgrade_config_proto_msgTypes[0]
  25. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  26. ms.StoreMessageInfo(mi)
  27. }
  28. func (x *Header) String() string {
  29. return protoimpl.X.MessageStringOf(x)
  30. }
  31. func (*Header) ProtoMessage() {}
  32. func (x *Header) ProtoReflect() protoreflect.Message {
  33. mi := &file_transport_internet_httpupgrade_config_proto_msgTypes[0]
  34. if x != nil {
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. if ms.LoadMessageInfo() == nil {
  37. ms.StoreMessageInfo(mi)
  38. }
  39. return ms
  40. }
  41. return mi.MessageOf(x)
  42. }
  43. // Deprecated: Use Header.ProtoReflect.Descriptor instead.
  44. func (*Header) Descriptor() ([]byte, []int) {
  45. return file_transport_internet_httpupgrade_config_proto_rawDescGZIP(), []int{0}
  46. }
  47. func (x *Header) GetKey() string {
  48. if x != nil {
  49. return x.Key
  50. }
  51. return ""
  52. }
  53. func (x *Header) GetValue() string {
  54. if x != nil {
  55. return x.Value
  56. }
  57. return ""
  58. }
  59. type Config struct {
  60. state protoimpl.MessageState `protogen:"open.v1"`
  61. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
  62. Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
  63. MaxEarlyData int32 `protobuf:"varint,3,opt,name=max_early_data,json=maxEarlyData,proto3" json:"max_early_data,omitempty"`
  64. EarlyDataHeaderName string `protobuf:"bytes,4,opt,name=early_data_header_name,json=earlyDataHeaderName,proto3" json:"early_data_header_name,omitempty"`
  65. Header []*Header `protobuf:"bytes,5,rep,name=header,proto3" json:"header,omitempty"`
  66. unknownFields protoimpl.UnknownFields
  67. sizeCache protoimpl.SizeCache
  68. }
  69. func (x *Config) Reset() {
  70. *x = Config{}
  71. mi := &file_transport_internet_httpupgrade_config_proto_msgTypes[1]
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. ms.StoreMessageInfo(mi)
  74. }
  75. func (x *Config) String() string {
  76. return protoimpl.X.MessageStringOf(x)
  77. }
  78. func (*Config) ProtoMessage() {}
  79. func (x *Config) ProtoReflect() protoreflect.Message {
  80. mi := &file_transport_internet_httpupgrade_config_proto_msgTypes[1]
  81. if x != nil {
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. if ms.LoadMessageInfo() == nil {
  84. ms.StoreMessageInfo(mi)
  85. }
  86. return ms
  87. }
  88. return mi.MessageOf(x)
  89. }
  90. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  91. func (*Config) Descriptor() ([]byte, []int) {
  92. return file_transport_internet_httpupgrade_config_proto_rawDescGZIP(), []int{1}
  93. }
  94. func (x *Config) GetPath() string {
  95. if x != nil {
  96. return x.Path
  97. }
  98. return ""
  99. }
  100. func (x *Config) GetHost() string {
  101. if x != nil {
  102. return x.Host
  103. }
  104. return ""
  105. }
  106. func (x *Config) GetMaxEarlyData() int32 {
  107. if x != nil {
  108. return x.MaxEarlyData
  109. }
  110. return 0
  111. }
  112. func (x *Config) GetEarlyDataHeaderName() string {
  113. if x != nil {
  114. return x.EarlyDataHeaderName
  115. }
  116. return ""
  117. }
  118. func (x *Config) GetHeader() []*Header {
  119. if x != nil {
  120. return x.Header
  121. }
  122. return nil
  123. }
  124. var File_transport_internet_httpupgrade_config_proto protoreflect.FileDescriptor
  125. var file_transport_internet_httpupgrade_config_proto_rawDesc = []byte{
  126. 0x0a, 0x2b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  127. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65,
  128. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x31, 0x76,
  129. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  130. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x72, 0x65, 0x71,
  131. 0x75, 0x65, 0x73, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65,
  132. 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78,
  133. 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  134. 0x74, 0x6f, 0x22, 0x30, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03,
  135. 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
  136. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
  137. 0x61, 0x6c, 0x75, 0x65, 0x22, 0x80, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  138. 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,
  139. 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
  140. 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x65,
  141. 0x61, 0x72, 0x6c, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
  142. 0x0c, 0x6d, 0x61, 0x78, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x33, 0x0a,
  143. 0x16, 0x65, 0x61, 0x72, 0x6c, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x68, 0x65, 0x61, 0x64,
  144. 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x65,
  145. 0x61, 0x72, 0x6c, 0x79, 0x44, 0x61, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61,
  146. 0x6d, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x03,
  147. 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  148. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  149. 0x65, 0x74, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x75,
  150. 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68,
  151. 0x65, 0x61, 0x64, 0x65, 0x72, 0x3a, 0x20, 0x82, 0xb5, 0x18, 0x1c, 0x0a, 0x09, 0x74, 0x72, 0x61,
  152. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x75, 0x70, 0x67, 0x72,
  153. 0x61, 0x64, 0x65, 0x90, 0xff, 0x29, 0x01, 0x42, 0x9c, 0x01, 0x0a, 0x2d, 0x63, 0x6f, 0x6d, 0x2e,
  154. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  155. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x74,
  156. 0x74, 0x70, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74,
  157. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32,
  158. 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e,
  159. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x68,
  160. 0x74, 0x74, 0x70, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0xaa, 0x02, 0x29, 0x56, 0x32, 0x52,
  161. 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  162. 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x55,
  163. 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  164. }
  165. var (
  166. file_transport_internet_httpupgrade_config_proto_rawDescOnce sync.Once
  167. file_transport_internet_httpupgrade_config_proto_rawDescData = file_transport_internet_httpupgrade_config_proto_rawDesc
  168. )
  169. func file_transport_internet_httpupgrade_config_proto_rawDescGZIP() []byte {
  170. file_transport_internet_httpupgrade_config_proto_rawDescOnce.Do(func() {
  171. file_transport_internet_httpupgrade_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_httpupgrade_config_proto_rawDescData)
  172. })
  173. return file_transport_internet_httpupgrade_config_proto_rawDescData
  174. }
  175. var file_transport_internet_httpupgrade_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  176. var file_transport_internet_httpupgrade_config_proto_goTypes = []any{
  177. (*Header)(nil), // 0: v2ray.core.transport.internet.request.httpupgrade.Header
  178. (*Config)(nil), // 1: v2ray.core.transport.internet.request.httpupgrade.Config
  179. }
  180. var file_transport_internet_httpupgrade_config_proto_depIdxs = []int32{
  181. 0, // 0: v2ray.core.transport.internet.request.httpupgrade.Config.header:type_name -> v2ray.core.transport.internet.request.httpupgrade.Header
  182. 1, // [1:1] is the sub-list for method output_type
  183. 1, // [1:1] is the sub-list for method input_type
  184. 1, // [1:1] is the sub-list for extension type_name
  185. 1, // [1:1] is the sub-list for extension extendee
  186. 0, // [0:1] is the sub-list for field type_name
  187. }
  188. func init() { file_transport_internet_httpupgrade_config_proto_init() }
  189. func file_transport_internet_httpupgrade_config_proto_init() {
  190. if File_transport_internet_httpupgrade_config_proto != nil {
  191. return
  192. }
  193. type x struct{}
  194. out := protoimpl.TypeBuilder{
  195. File: protoimpl.DescBuilder{
  196. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  197. RawDescriptor: file_transport_internet_httpupgrade_config_proto_rawDesc,
  198. NumEnums: 0,
  199. NumMessages: 2,
  200. NumExtensions: 0,
  201. NumServices: 0,
  202. },
  203. GoTypes: file_transport_internet_httpupgrade_config_proto_goTypes,
  204. DependencyIndexes: file_transport_internet_httpupgrade_config_proto_depIdxs,
  205. MessageInfos: file_transport_internet_httpupgrade_config_proto_msgTypes,
  206. }.Build()
  207. File_transport_internet_httpupgrade_config_proto = out.File
  208. file_transport_internet_httpupgrade_config_proto_rawDesc = nil
  209. file_transport_internet_httpupgrade_config_proto_goTypes = nil
  210. file_transport_internet_httpupgrade_config_proto_depIdxs = nil
  211. }