config.pb.go 9.5 KB

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