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