config.pb.go 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. package websocket
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  16. // of the legacy proto package is being used.
  17. const _ = proto.ProtoPackageIsVersion4
  18. type Header struct {
  19. state protoimpl.MessageState
  20. sizeCache protoimpl.SizeCache
  21. unknownFields protoimpl.UnknownFields
  22. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  23. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  24. }
  25. func (x *Header) Reset() {
  26. *x = Header{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_v2ray_com_core_transport_internet_websocket_config_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *Header) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*Header) ProtoMessage() {}
  37. func (x *Header) ProtoReflect() protoreflect.Message {
  38. mi := &file_v2ray_com_core_transport_internet_websocket_config_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use Header.ProtoReflect.Descriptor instead.
  49. func (*Header) Descriptor() ([]byte, []int) {
  50. return file_v2ray_com_core_transport_internet_websocket_config_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *Header) GetKey() string {
  53. if x != nil {
  54. return x.Key
  55. }
  56. return ""
  57. }
  58. func (x *Header) GetValue() string {
  59. if x != nil {
  60. return x.Value
  61. }
  62. return ""
  63. }
  64. type Config struct {
  65. state protoimpl.MessageState
  66. sizeCache protoimpl.SizeCache
  67. unknownFields protoimpl.UnknownFields
  68. // URL path to the WebSocket service. Empty value means root(/).
  69. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  70. Header []*Header `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"`
  71. }
  72. func (x *Config) Reset() {
  73. *x = Config{}
  74. if protoimpl.UnsafeEnabled {
  75. mi := &file_v2ray_com_core_transport_internet_websocket_config_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. }
  80. func (x *Config) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*Config) ProtoMessage() {}
  84. func (x *Config) ProtoReflect() protoreflect.Message {
  85. mi := &file_v2ray_com_core_transport_internet_websocket_config_proto_msgTypes[1]
  86. if protoimpl.UnsafeEnabled && x != nil {
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. if ms.LoadMessageInfo() == nil {
  89. ms.StoreMessageInfo(mi)
  90. }
  91. return ms
  92. }
  93. return mi.MessageOf(x)
  94. }
  95. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  96. func (*Config) Descriptor() ([]byte, []int) {
  97. return file_v2ray_com_core_transport_internet_websocket_config_proto_rawDescGZIP(), []int{1}
  98. }
  99. func (x *Config) GetPath() string {
  100. if x != nil {
  101. return x.Path
  102. }
  103. return ""
  104. }
  105. func (x *Config) GetHeader() []*Header {
  106. if x != nil {
  107. return x.Header
  108. }
  109. return nil
  110. }
  111. var File_v2ray_com_core_transport_internet_websocket_config_proto protoreflect.FileDescriptor
  112. var file_v2ray_com_core_transport_internet_websocket_config_proto_rawDesc = []byte{
  113. 0x0a, 0x38, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  114. 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
  115. 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x63, 0x6f,
  116. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x76, 0x32, 0x72, 0x61,
  117. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  118. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
  119. 0x6b, 0x65, 0x74, 0x22, 0x30, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a,
  120. 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
  121. 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  122. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x6b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  123. 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,
  124. 0x61, 0x74, 0x68, 0x12, 0x47, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20,
  125. 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  126. 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
  127. 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x48, 0x65,
  128. 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4a, 0x04, 0x08, 0x01,
  129. 0x10, 0x02, 0x42, 0x64, 0x0a, 0x2b, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  130. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69,
  131. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  132. 0x74, 0x50, 0x01, 0x5a, 0x09, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0xaa, 0x02,
  133. 0x27, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e,
  134. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x57,
  135. 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  136. }
  137. var (
  138. file_v2ray_com_core_transport_internet_websocket_config_proto_rawDescOnce sync.Once
  139. file_v2ray_com_core_transport_internet_websocket_config_proto_rawDescData = file_v2ray_com_core_transport_internet_websocket_config_proto_rawDesc
  140. )
  141. func file_v2ray_com_core_transport_internet_websocket_config_proto_rawDescGZIP() []byte {
  142. file_v2ray_com_core_transport_internet_websocket_config_proto_rawDescOnce.Do(func() {
  143. file_v2ray_com_core_transport_internet_websocket_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_transport_internet_websocket_config_proto_rawDescData)
  144. })
  145. return file_v2ray_com_core_transport_internet_websocket_config_proto_rawDescData
  146. }
  147. var file_v2ray_com_core_transport_internet_websocket_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  148. var file_v2ray_com_core_transport_internet_websocket_config_proto_goTypes = []interface{}{
  149. (*Header)(nil), // 0: v2ray.core.transport.internet.websocket.Header
  150. (*Config)(nil), // 1: v2ray.core.transport.internet.websocket.Config
  151. }
  152. var file_v2ray_com_core_transport_internet_websocket_config_proto_depIdxs = []int32{
  153. 0, // 0: v2ray.core.transport.internet.websocket.Config.header:type_name -> v2ray.core.transport.internet.websocket.Header
  154. 1, // [1:1] is the sub-list for method output_type
  155. 1, // [1:1] is the sub-list for method input_type
  156. 1, // [1:1] is the sub-list for extension type_name
  157. 1, // [1:1] is the sub-list for extension extendee
  158. 0, // [0:1] is the sub-list for field type_name
  159. }
  160. func init() { file_v2ray_com_core_transport_internet_websocket_config_proto_init() }
  161. func file_v2ray_com_core_transport_internet_websocket_config_proto_init() {
  162. if File_v2ray_com_core_transport_internet_websocket_config_proto != nil {
  163. return
  164. }
  165. if !protoimpl.UnsafeEnabled {
  166. file_v2ray_com_core_transport_internet_websocket_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  167. switch v := v.(*Header); i {
  168. case 0:
  169. return &v.state
  170. case 1:
  171. return &v.sizeCache
  172. case 2:
  173. return &v.unknownFields
  174. default:
  175. return nil
  176. }
  177. }
  178. file_v2ray_com_core_transport_internet_websocket_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  179. switch v := v.(*Config); i {
  180. case 0:
  181. return &v.state
  182. case 1:
  183. return &v.sizeCache
  184. case 2:
  185. return &v.unknownFields
  186. default:
  187. return nil
  188. }
  189. }
  190. }
  191. type x struct{}
  192. out := protoimpl.TypeBuilder{
  193. File: protoimpl.DescBuilder{
  194. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  195. RawDescriptor: file_v2ray_com_core_transport_internet_websocket_config_proto_rawDesc,
  196. NumEnums: 0,
  197. NumMessages: 2,
  198. NumExtensions: 0,
  199. NumServices: 0,
  200. },
  201. GoTypes: file_v2ray_com_core_transport_internet_websocket_config_proto_goTypes,
  202. DependencyIndexes: file_v2ray_com_core_transport_internet_websocket_config_proto_depIdxs,
  203. MessageInfos: file_v2ray_com_core_transport_internet_websocket_config_proto_msgTypes,
  204. }.Build()
  205. File_v2ray_com_core_transport_internet_websocket_config_proto = out.File
  206. file_v2ray_com_core_transport_internet_websocket_config_proto_rawDesc = nil
  207. file_v2ray_com_core_transport_internet_websocket_config_proto_goTypes = nil
  208. file_v2ray_com_core_transport_internet_websocket_config_proto_depIdxs = nil
  209. }