config.pb.go 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. package blackhole
  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. serial "v2ray.com/core/common/serial"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  17. // of the legacy proto package is being used.
  18. const _ = proto.ProtoPackageIsVersion4
  19. type NoneResponse struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. }
  24. func (x *NoneResponse) Reset() {
  25. *x = NoneResponse{}
  26. if protoimpl.UnsafeEnabled {
  27. mi := &file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes[0]
  28. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  29. ms.StoreMessageInfo(mi)
  30. }
  31. }
  32. func (x *NoneResponse) String() string {
  33. return protoimpl.X.MessageStringOf(x)
  34. }
  35. func (*NoneResponse) ProtoMessage() {}
  36. func (x *NoneResponse) ProtoReflect() protoreflect.Message {
  37. mi := &file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes[0]
  38. if protoimpl.UnsafeEnabled && x != nil {
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. if ms.LoadMessageInfo() == nil {
  41. ms.StoreMessageInfo(mi)
  42. }
  43. return ms
  44. }
  45. return mi.MessageOf(x)
  46. }
  47. // Deprecated: Use NoneResponse.ProtoReflect.Descriptor instead.
  48. func (*NoneResponse) Descriptor() ([]byte, []int) {
  49. return file_v2ray_com_core_proxy_blackhole_config_proto_rawDescGZIP(), []int{0}
  50. }
  51. type HTTPResponse struct {
  52. state protoimpl.MessageState
  53. sizeCache protoimpl.SizeCache
  54. unknownFields protoimpl.UnknownFields
  55. }
  56. func (x *HTTPResponse) Reset() {
  57. *x = HTTPResponse{}
  58. if protoimpl.UnsafeEnabled {
  59. mi := &file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes[1]
  60. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  61. ms.StoreMessageInfo(mi)
  62. }
  63. }
  64. func (x *HTTPResponse) String() string {
  65. return protoimpl.X.MessageStringOf(x)
  66. }
  67. func (*HTTPResponse) ProtoMessage() {}
  68. func (x *HTTPResponse) ProtoReflect() protoreflect.Message {
  69. mi := &file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes[1]
  70. if protoimpl.UnsafeEnabled && x != nil {
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. if ms.LoadMessageInfo() == nil {
  73. ms.StoreMessageInfo(mi)
  74. }
  75. return ms
  76. }
  77. return mi.MessageOf(x)
  78. }
  79. // Deprecated: Use HTTPResponse.ProtoReflect.Descriptor instead.
  80. func (*HTTPResponse) Descriptor() ([]byte, []int) {
  81. return file_v2ray_com_core_proxy_blackhole_config_proto_rawDescGZIP(), []int{1}
  82. }
  83. type Config struct {
  84. state protoimpl.MessageState
  85. sizeCache protoimpl.SizeCache
  86. unknownFields protoimpl.UnknownFields
  87. Response *serial.TypedMessage `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
  88. }
  89. func (x *Config) Reset() {
  90. *x = Config{}
  91. if protoimpl.UnsafeEnabled {
  92. mi := &file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes[2]
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. ms.StoreMessageInfo(mi)
  95. }
  96. }
  97. func (x *Config) String() string {
  98. return protoimpl.X.MessageStringOf(x)
  99. }
  100. func (*Config) ProtoMessage() {}
  101. func (x *Config) ProtoReflect() protoreflect.Message {
  102. mi := &file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes[2]
  103. if protoimpl.UnsafeEnabled && x != nil {
  104. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  105. if ms.LoadMessageInfo() == nil {
  106. ms.StoreMessageInfo(mi)
  107. }
  108. return ms
  109. }
  110. return mi.MessageOf(x)
  111. }
  112. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  113. func (*Config) Descriptor() ([]byte, []int) {
  114. return file_v2ray_com_core_proxy_blackhole_config_proto_rawDescGZIP(), []int{2}
  115. }
  116. func (x *Config) GetResponse() *serial.TypedMessage {
  117. if x != nil {
  118. return x.Response
  119. }
  120. return nil
  121. }
  122. var File_v2ray_com_core_proxy_blackhole_config_proto protoreflect.FileDescriptor
  123. var file_v2ray_com_core_proxy_blackhole_config_proto_rawDesc = []byte{
  124. 0x0a, 0x2b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  125. 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65,
  126. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x76,
  127. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  128. 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0x1a, 0x30, 0x76, 0x32, 0x72, 0x61, 0x79,
  129. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  130. 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65,
  131. 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0e, 0x0a, 0x0c, 0x4e,
  132. 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x48,
  133. 0x54, 0x54, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x0a, 0x06, 0x43,
  134. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  135. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  136. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69,
  137. 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
  138. 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x4a, 0x0a, 0x1e, 0x63, 0x6f, 0x6d,
  139. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  140. 0x79, 0x2e, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0x50, 0x01, 0x5a, 0x09, 0x62,
  141. 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79,
  142. 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x42, 0x6c, 0x61, 0x63,
  143. 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  144. }
  145. var (
  146. file_v2ray_com_core_proxy_blackhole_config_proto_rawDescOnce sync.Once
  147. file_v2ray_com_core_proxy_blackhole_config_proto_rawDescData = file_v2ray_com_core_proxy_blackhole_config_proto_rawDesc
  148. )
  149. func file_v2ray_com_core_proxy_blackhole_config_proto_rawDescGZIP() []byte {
  150. file_v2ray_com_core_proxy_blackhole_config_proto_rawDescOnce.Do(func() {
  151. file_v2ray_com_core_proxy_blackhole_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_proxy_blackhole_config_proto_rawDescData)
  152. })
  153. return file_v2ray_com_core_proxy_blackhole_config_proto_rawDescData
  154. }
  155. var file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  156. var file_v2ray_com_core_proxy_blackhole_config_proto_goTypes = []interface{}{
  157. (*NoneResponse)(nil), // 0: v2ray.core.proxy.blackhole.NoneResponse
  158. (*HTTPResponse)(nil), // 1: v2ray.core.proxy.blackhole.HTTPResponse
  159. (*Config)(nil), // 2: v2ray.core.proxy.blackhole.Config
  160. (*serial.TypedMessage)(nil), // 3: v2ray.core.common.serial.TypedMessage
  161. }
  162. var file_v2ray_com_core_proxy_blackhole_config_proto_depIdxs = []int32{
  163. 3, // 0: v2ray.core.proxy.blackhole.Config.response:type_name -> v2ray.core.common.serial.TypedMessage
  164. 1, // [1:1] is the sub-list for method output_type
  165. 1, // [1:1] is the sub-list for method input_type
  166. 1, // [1:1] is the sub-list for extension type_name
  167. 1, // [1:1] is the sub-list for extension extendee
  168. 0, // [0:1] is the sub-list for field type_name
  169. }
  170. func init() { file_v2ray_com_core_proxy_blackhole_config_proto_init() }
  171. func file_v2ray_com_core_proxy_blackhole_config_proto_init() {
  172. if File_v2ray_com_core_proxy_blackhole_config_proto != nil {
  173. return
  174. }
  175. if !protoimpl.UnsafeEnabled {
  176. file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  177. switch v := v.(*NoneResponse); i {
  178. case 0:
  179. return &v.state
  180. case 1:
  181. return &v.sizeCache
  182. case 2:
  183. return &v.unknownFields
  184. default:
  185. return nil
  186. }
  187. }
  188. file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  189. switch v := v.(*HTTPResponse); i {
  190. case 0:
  191. return &v.state
  192. case 1:
  193. return &v.sizeCache
  194. case 2:
  195. return &v.unknownFields
  196. default:
  197. return nil
  198. }
  199. }
  200. file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  201. switch v := v.(*Config); i {
  202. case 0:
  203. return &v.state
  204. case 1:
  205. return &v.sizeCache
  206. case 2:
  207. return &v.unknownFields
  208. default:
  209. return nil
  210. }
  211. }
  212. }
  213. type x struct{}
  214. out := protoimpl.TypeBuilder{
  215. File: protoimpl.DescBuilder{
  216. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  217. RawDescriptor: file_v2ray_com_core_proxy_blackhole_config_proto_rawDesc,
  218. NumEnums: 0,
  219. NumMessages: 3,
  220. NumExtensions: 0,
  221. NumServices: 0,
  222. },
  223. GoTypes: file_v2ray_com_core_proxy_blackhole_config_proto_goTypes,
  224. DependencyIndexes: file_v2ray_com_core_proxy_blackhole_config_proto_depIdxs,
  225. MessageInfos: file_v2ray_com_core_proxy_blackhole_config_proto_msgTypes,
  226. }.Build()
  227. File_v2ray_com_core_proxy_blackhole_config_proto = out.File
  228. file_v2ray_com_core_proxy_blackhole_config_proto_rawDesc = nil
  229. file_v2ray_com_core_proxy_blackhole_config_proto_goTypes = nil
  230. file_v2ray_com_core_proxy_blackhole_config_proto_depIdxs = nil
  231. }