config.pb.go 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.31.0
  4. // protoc v4.23.1
  5. // source: transport/internet/websocket/config.proto
  6. package websocket
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type Header struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  24. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  25. }
  26. func (x *Header) Reset() {
  27. *x = Header{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_transport_internet_websocket_config_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *Header) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Header) ProtoMessage() {}
  38. func (x *Header) ProtoReflect() protoreflect.Message {
  39. mi := &file_transport_internet_websocket_config_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use Header.ProtoReflect.Descriptor instead.
  50. func (*Header) Descriptor() ([]byte, []int) {
  51. return file_transport_internet_websocket_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Header) GetKey() string {
  54. if x != nil {
  55. return x.Key
  56. }
  57. return ""
  58. }
  59. func (x *Header) GetValue() string {
  60. if x != nil {
  61. return x.Value
  62. }
  63. return ""
  64. }
  65. type Config struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. // URL path to the WebSocket service. Empty value means root(/).
  70. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  71. Header []*Header `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"`
  72. AcceptProxyProtocol bool `protobuf:"varint,4,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
  73. Ed uint32 `protobuf:"varint,5,opt,name=ed,proto3" json:"ed,omitempty"`
  74. }
  75. func (x *Config) Reset() {
  76. *x = Config{}
  77. if protoimpl.UnsafeEnabled {
  78. mi := &file_transport_internet_websocket_config_proto_msgTypes[1]
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. ms.StoreMessageInfo(mi)
  81. }
  82. }
  83. func (x *Config) String() string {
  84. return protoimpl.X.MessageStringOf(x)
  85. }
  86. func (*Config) ProtoMessage() {}
  87. func (x *Config) ProtoReflect() protoreflect.Message {
  88. mi := &file_transport_internet_websocket_config_proto_msgTypes[1]
  89. if protoimpl.UnsafeEnabled && x != nil {
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. if ms.LoadMessageInfo() == nil {
  92. ms.StoreMessageInfo(mi)
  93. }
  94. return ms
  95. }
  96. return mi.MessageOf(x)
  97. }
  98. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  99. func (*Config) Descriptor() ([]byte, []int) {
  100. return file_transport_internet_websocket_config_proto_rawDescGZIP(), []int{1}
  101. }
  102. func (x *Config) GetPath() string {
  103. if x != nil {
  104. return x.Path
  105. }
  106. return ""
  107. }
  108. func (x *Config) GetHeader() []*Header {
  109. if x != nil {
  110. return x.Header
  111. }
  112. return nil
  113. }
  114. func (x *Config) GetAcceptProxyProtocol() bool {
  115. if x != nil {
  116. return x.AcceptProxyProtocol
  117. }
  118. return false
  119. }
  120. func (x *Config) GetEd() uint32 {
  121. if x != nil {
  122. return x.Ed
  123. }
  124. return 0
  125. }
  126. var File_transport_internet_websocket_config_proto protoreflect.FileDescriptor
  127. var file_transport_internet_websocket_config_proto_rawDesc = []byte{
  128. 0x0a, 0x29, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  129. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x63,
  130. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x78, 0x72, 0x61,
  131. 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  132. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x30,
  133. 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
  134. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
  135. 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  136. 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70,
  137. 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12,
  138. 0x41, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
  139. 0x29, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  140. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
  141. 0x6b, 0x65, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64,
  142. 0x65, 0x72, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f,
  143. 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28,
  144. 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72,
  145. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01,
  146. 0x28, 0x0d, 0x52, 0x02, 0x65, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x42, 0x85, 0x01, 0x0a,
  147. 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  148. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62,
  149. 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  150. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63,
  151. 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e,
  152. 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  153. 0xaa, 0x02, 0x21, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  154. 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x57, 0x65, 0x62, 0x73, 0x6f,
  155. 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  156. }
  157. var (
  158. file_transport_internet_websocket_config_proto_rawDescOnce sync.Once
  159. file_transport_internet_websocket_config_proto_rawDescData = file_transport_internet_websocket_config_proto_rawDesc
  160. )
  161. func file_transport_internet_websocket_config_proto_rawDescGZIP() []byte {
  162. file_transport_internet_websocket_config_proto_rawDescOnce.Do(func() {
  163. file_transport_internet_websocket_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_websocket_config_proto_rawDescData)
  164. })
  165. return file_transport_internet_websocket_config_proto_rawDescData
  166. }
  167. var file_transport_internet_websocket_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  168. var file_transport_internet_websocket_config_proto_goTypes = []interface{}{
  169. (*Header)(nil), // 0: xray.transport.internet.websocket.Header
  170. (*Config)(nil), // 1: xray.transport.internet.websocket.Config
  171. }
  172. var file_transport_internet_websocket_config_proto_depIdxs = []int32{
  173. 0, // 0: xray.transport.internet.websocket.Config.header:type_name -> xray.transport.internet.websocket.Header
  174. 1, // [1:1] is the sub-list for method output_type
  175. 1, // [1:1] is the sub-list for method input_type
  176. 1, // [1:1] is the sub-list for extension type_name
  177. 1, // [1:1] is the sub-list for extension extendee
  178. 0, // [0:1] is the sub-list for field type_name
  179. }
  180. func init() { file_transport_internet_websocket_config_proto_init() }
  181. func file_transport_internet_websocket_config_proto_init() {
  182. if File_transport_internet_websocket_config_proto != nil {
  183. return
  184. }
  185. if !protoimpl.UnsafeEnabled {
  186. file_transport_internet_websocket_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  187. switch v := v.(*Header); i {
  188. case 0:
  189. return &v.state
  190. case 1:
  191. return &v.sizeCache
  192. case 2:
  193. return &v.unknownFields
  194. default:
  195. return nil
  196. }
  197. }
  198. file_transport_internet_websocket_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  199. switch v := v.(*Config); i {
  200. case 0:
  201. return &v.state
  202. case 1:
  203. return &v.sizeCache
  204. case 2:
  205. return &v.unknownFields
  206. default:
  207. return nil
  208. }
  209. }
  210. }
  211. type x struct{}
  212. out := protoimpl.TypeBuilder{
  213. File: protoimpl.DescBuilder{
  214. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  215. RawDescriptor: file_transport_internet_websocket_config_proto_rawDesc,
  216. NumEnums: 0,
  217. NumMessages: 2,
  218. NumExtensions: 0,
  219. NumServices: 0,
  220. },
  221. GoTypes: file_transport_internet_websocket_config_proto_goTypes,
  222. DependencyIndexes: file_transport_internet_websocket_config_proto_depIdxs,
  223. MessageInfos: file_transport_internet_websocket_config_proto_msgTypes,
  224. }.Build()
  225. File_transport_internet_websocket_config_proto = out.File
  226. file_transport_internet_websocket_config_proto_rawDesc = nil
  227. file_transport_internet_websocket_config_proto_goTypes = nil
  228. file_transport_internet_websocket_config_proto_depIdxs = nil
  229. }