config.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: transport/internet/websocket/config.proto
  6. package websocket
  7. import (
  8. _ "github.com/v2fly/v2ray-core/v4/common/protoext"
  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 Header struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  25. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  26. }
  27. func (x *Header) Reset() {
  28. *x = Header{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_transport_internet_websocket_config_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *Header) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*Header) ProtoMessage() {}
  39. func (x *Header) ProtoReflect() protoreflect.Message {
  40. mi := &file_transport_internet_websocket_config_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use Header.ProtoReflect.Descriptor instead.
  51. func (*Header) Descriptor() ([]byte, []int) {
  52. return file_transport_internet_websocket_config_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *Header) GetKey() string {
  55. if x != nil {
  56. return x.Key
  57. }
  58. return ""
  59. }
  60. func (x *Header) GetValue() string {
  61. if x != nil {
  62. return x.Value
  63. }
  64. return ""
  65. }
  66. type Config struct {
  67. state protoimpl.MessageState
  68. sizeCache protoimpl.SizeCache
  69. unknownFields protoimpl.UnknownFields
  70. // URL path to the WebSocket service. Empty value means root(/).
  71. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  72. Header []*Header `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"`
  73. AcceptProxyProtocol bool `protobuf:"varint,4,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
  74. MaxEarlyData int32 `protobuf:"varint,5,opt,name=max_early_data,json=maxEarlyData,proto3" json:"max_early_data,omitempty"`
  75. UseBrowserForwarding bool `protobuf:"varint,6,opt,name=use_browser_forwarding,json=useBrowserForwarding,proto3" json:"use_browser_forwarding,omitempty"`
  76. EarlyDataHeaderName string `protobuf:"bytes,7,opt,name=early_data_header_name,json=earlyDataHeaderName,proto3" json:"early_data_header_name,omitempty"`
  77. }
  78. func (x *Config) Reset() {
  79. *x = Config{}
  80. if protoimpl.UnsafeEnabled {
  81. mi := &file_transport_internet_websocket_config_proto_msgTypes[1]
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. ms.StoreMessageInfo(mi)
  84. }
  85. }
  86. func (x *Config) String() string {
  87. return protoimpl.X.MessageStringOf(x)
  88. }
  89. func (*Config) ProtoMessage() {}
  90. func (x *Config) ProtoReflect() protoreflect.Message {
  91. mi := &file_transport_internet_websocket_config_proto_msgTypes[1]
  92. if protoimpl.UnsafeEnabled && x != nil {
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. if ms.LoadMessageInfo() == nil {
  95. ms.StoreMessageInfo(mi)
  96. }
  97. return ms
  98. }
  99. return mi.MessageOf(x)
  100. }
  101. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  102. func (*Config) Descriptor() ([]byte, []int) {
  103. return file_transport_internet_websocket_config_proto_rawDescGZIP(), []int{1}
  104. }
  105. func (x *Config) GetPath() string {
  106. if x != nil {
  107. return x.Path
  108. }
  109. return ""
  110. }
  111. func (x *Config) GetHeader() []*Header {
  112. if x != nil {
  113. return x.Header
  114. }
  115. return nil
  116. }
  117. func (x *Config) GetAcceptProxyProtocol() bool {
  118. if x != nil {
  119. return x.AcceptProxyProtocol
  120. }
  121. return false
  122. }
  123. func (x *Config) GetMaxEarlyData() int32 {
  124. if x != nil {
  125. return x.MaxEarlyData
  126. }
  127. return 0
  128. }
  129. func (x *Config) GetUseBrowserForwarding() bool {
  130. if x != nil {
  131. return x.UseBrowserForwarding
  132. }
  133. return false
  134. }
  135. func (x *Config) GetEarlyDataHeaderName() string {
  136. if x != nil {
  137. return x.EarlyDataHeaderName
  138. }
  139. return ""
  140. }
  141. var File_transport_internet_websocket_config_proto protoreflect.FileDescriptor
  142. var file_transport_internet_websocket_config_proto_rawDesc = []byte{
  143. 0x0a, 0x29, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  144. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x63,
  145. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x76, 0x32, 0x72,
  146. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  147. 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f,
  148. 0x63, 0x6b, 0x65, 0x74, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
  149. 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  150. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x30, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
  151. 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
  152. 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  153. 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xd0, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
  154. 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28,
  155. 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x47, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
  156. 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  157. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69,
  158. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  159. 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
  160. 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79,
  161. 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
  162. 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74,
  163. 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x65, 0x61, 0x72, 0x6c,
  164. 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x61,
  165. 0x78, 0x45, 0x61, 0x72, 0x6c, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x34, 0x0a, 0x16, 0x75, 0x73,
  166. 0x65, 0x5f, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72,
  167. 0x64, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x75, 0x73, 0x65, 0x42,
  168. 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67,
  169. 0x12, 0x33, 0x0a, 0x16, 0x65, 0x61, 0x72, 0x6c, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x68,
  170. 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
  171. 0x52, 0x13, 0x65, 0x61, 0x72, 0x6c, 0x79, 0x44, 0x61, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65,
  172. 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x1e, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x74, 0x72, 0x61,
  173. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x82, 0xb5, 0x18, 0x0b, 0x12, 0x09, 0x77, 0x65, 0x62, 0x73,
  174. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x42, 0x96, 0x01, 0x0a, 0x2b,
  175. 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74,
  176. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  177. 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x3b, 0x67,
  178. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f,
  179. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x74, 0x72,
  180. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  181. 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0xaa, 0x02, 0x27, 0x56, 0x32, 0x52,
  182. 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  183. 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x57, 0x65, 0x62, 0x73, 0x6f,
  184. 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  185. }
  186. var (
  187. file_transport_internet_websocket_config_proto_rawDescOnce sync.Once
  188. file_transport_internet_websocket_config_proto_rawDescData = file_transport_internet_websocket_config_proto_rawDesc
  189. )
  190. func file_transport_internet_websocket_config_proto_rawDescGZIP() []byte {
  191. file_transport_internet_websocket_config_proto_rawDescOnce.Do(func() {
  192. file_transport_internet_websocket_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_websocket_config_proto_rawDescData)
  193. })
  194. return file_transport_internet_websocket_config_proto_rawDescData
  195. }
  196. var file_transport_internet_websocket_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  197. var file_transport_internet_websocket_config_proto_goTypes = []interface{}{
  198. (*Header)(nil), // 0: v2ray.core.transport.internet.websocket.Header
  199. (*Config)(nil), // 1: v2ray.core.transport.internet.websocket.Config
  200. }
  201. var file_transport_internet_websocket_config_proto_depIdxs = []int32{
  202. 0, // 0: v2ray.core.transport.internet.websocket.Config.header:type_name -> v2ray.core.transport.internet.websocket.Header
  203. 1, // [1:1] is the sub-list for method output_type
  204. 1, // [1:1] is the sub-list for method input_type
  205. 1, // [1:1] is the sub-list for extension type_name
  206. 1, // [1:1] is the sub-list for extension extendee
  207. 0, // [0:1] is the sub-list for field type_name
  208. }
  209. func init() { file_transport_internet_websocket_config_proto_init() }
  210. func file_transport_internet_websocket_config_proto_init() {
  211. if File_transport_internet_websocket_config_proto != nil {
  212. return
  213. }
  214. if !protoimpl.UnsafeEnabled {
  215. file_transport_internet_websocket_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  216. switch v := v.(*Header); i {
  217. case 0:
  218. return &v.state
  219. case 1:
  220. return &v.sizeCache
  221. case 2:
  222. return &v.unknownFields
  223. default:
  224. return nil
  225. }
  226. }
  227. file_transport_internet_websocket_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  228. switch v := v.(*Config); i {
  229. case 0:
  230. return &v.state
  231. case 1:
  232. return &v.sizeCache
  233. case 2:
  234. return &v.unknownFields
  235. default:
  236. return nil
  237. }
  238. }
  239. }
  240. type x struct{}
  241. out := protoimpl.TypeBuilder{
  242. File: protoimpl.DescBuilder{
  243. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  244. RawDescriptor: file_transport_internet_websocket_config_proto_rawDesc,
  245. NumEnums: 0,
  246. NumMessages: 2,
  247. NumExtensions: 0,
  248. NumServices: 0,
  249. },
  250. GoTypes: file_transport_internet_websocket_config_proto_goTypes,
  251. DependencyIndexes: file_transport_internet_websocket_config_proto_depIdxs,
  252. MessageInfos: file_transport_internet_websocket_config_proto_msgTypes,
  253. }.Build()
  254. File_transport_internet_websocket_config_proto = out.File
  255. file_transport_internet_websocket_config_proto_rawDesc = nil
  256. file_transport_internet_websocket_config_proto_goTypes = nil
  257. file_transport_internet_websocket_config_proto_depIdxs = nil
  258. }