config.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. package blackhole
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. anypb "google.golang.org/protobuf/types/known/anypb"
  7. reflect "reflect"
  8. sync "sync"
  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. type NoneResponse struct {
  17. state protoimpl.MessageState
  18. sizeCache protoimpl.SizeCache
  19. unknownFields protoimpl.UnknownFields
  20. }
  21. func (x *NoneResponse) Reset() {
  22. *x = NoneResponse{}
  23. if protoimpl.UnsafeEnabled {
  24. mi := &file_proxy_blackhole_config_proto_msgTypes[0]
  25. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  26. ms.StoreMessageInfo(mi)
  27. }
  28. }
  29. func (x *NoneResponse) String() string {
  30. return protoimpl.X.MessageStringOf(x)
  31. }
  32. func (*NoneResponse) ProtoMessage() {}
  33. func (x *NoneResponse) ProtoReflect() protoreflect.Message {
  34. mi := &file_proxy_blackhole_config_proto_msgTypes[0]
  35. if protoimpl.UnsafeEnabled && x != nil {
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. if ms.LoadMessageInfo() == nil {
  38. ms.StoreMessageInfo(mi)
  39. }
  40. return ms
  41. }
  42. return mi.MessageOf(x)
  43. }
  44. // Deprecated: Use NoneResponse.ProtoReflect.Descriptor instead.
  45. func (*NoneResponse) Descriptor() ([]byte, []int) {
  46. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{0}
  47. }
  48. type HTTPResponse struct {
  49. state protoimpl.MessageState
  50. sizeCache protoimpl.SizeCache
  51. unknownFields protoimpl.UnknownFields
  52. }
  53. func (x *HTTPResponse) Reset() {
  54. *x = HTTPResponse{}
  55. if protoimpl.UnsafeEnabled {
  56. mi := &file_proxy_blackhole_config_proto_msgTypes[1]
  57. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  58. ms.StoreMessageInfo(mi)
  59. }
  60. }
  61. func (x *HTTPResponse) String() string {
  62. return protoimpl.X.MessageStringOf(x)
  63. }
  64. func (*HTTPResponse) ProtoMessage() {}
  65. func (x *HTTPResponse) ProtoReflect() protoreflect.Message {
  66. mi := &file_proxy_blackhole_config_proto_msgTypes[1]
  67. if protoimpl.UnsafeEnabled && x != nil {
  68. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  69. if ms.LoadMessageInfo() == nil {
  70. ms.StoreMessageInfo(mi)
  71. }
  72. return ms
  73. }
  74. return mi.MessageOf(x)
  75. }
  76. // Deprecated: Use HTTPResponse.ProtoReflect.Descriptor instead.
  77. func (*HTTPResponse) Descriptor() ([]byte, []int) {
  78. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{1}
  79. }
  80. type Config struct {
  81. state protoimpl.MessageState
  82. sizeCache protoimpl.SizeCache
  83. unknownFields protoimpl.UnknownFields
  84. Response *anypb.Any `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
  85. }
  86. func (x *Config) Reset() {
  87. *x = Config{}
  88. if protoimpl.UnsafeEnabled {
  89. mi := &file_proxy_blackhole_config_proto_msgTypes[2]
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. ms.StoreMessageInfo(mi)
  92. }
  93. }
  94. func (x *Config) String() string {
  95. return protoimpl.X.MessageStringOf(x)
  96. }
  97. func (*Config) ProtoMessage() {}
  98. func (x *Config) ProtoReflect() protoreflect.Message {
  99. mi := &file_proxy_blackhole_config_proto_msgTypes[2]
  100. if protoimpl.UnsafeEnabled && x != nil {
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. if ms.LoadMessageInfo() == nil {
  103. ms.StoreMessageInfo(mi)
  104. }
  105. return ms
  106. }
  107. return mi.MessageOf(x)
  108. }
  109. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  110. func (*Config) Descriptor() ([]byte, []int) {
  111. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{2}
  112. }
  113. func (x *Config) GetResponse() *anypb.Any {
  114. if x != nil {
  115. return x.Response
  116. }
  117. return nil
  118. }
  119. type SimplifiedConfig struct {
  120. state protoimpl.MessageState
  121. sizeCache protoimpl.SizeCache
  122. unknownFields protoimpl.UnknownFields
  123. }
  124. func (x *SimplifiedConfig) Reset() {
  125. *x = SimplifiedConfig{}
  126. if protoimpl.UnsafeEnabled {
  127. mi := &file_proxy_blackhole_config_proto_msgTypes[3]
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. ms.StoreMessageInfo(mi)
  130. }
  131. }
  132. func (x *SimplifiedConfig) String() string {
  133. return protoimpl.X.MessageStringOf(x)
  134. }
  135. func (*SimplifiedConfig) ProtoMessage() {}
  136. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  137. mi := &file_proxy_blackhole_config_proto_msgTypes[3]
  138. if protoimpl.UnsafeEnabled && x != nil {
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. if ms.LoadMessageInfo() == nil {
  141. ms.StoreMessageInfo(mi)
  142. }
  143. return ms
  144. }
  145. return mi.MessageOf(x)
  146. }
  147. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  148. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  149. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{3}
  150. }
  151. var File_proxy_blackhole_config_proto protoreflect.FileDescriptor
  152. var file_proxy_blackhole_config_proto_rawDesc = []byte{
  153. 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c,
  154. 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
  155. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  156. 0x2e, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67,
  157. 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e,
  158. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72,
  159. 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  160. 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0e, 0x0a, 0x0c, 0x4e, 0x6f, 0x6e, 0x65, 0x52,
  161. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x48, 0x54, 0x54, 0x50, 0x52,
  162. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  163. 0x67, 0x12, 0x30, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20,
  164. 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  165. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f,
  166. 0x6e, 0x73, 0x65, 0x22, 0x31, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65,
  167. 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x1d, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x6f,
  168. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18, 0x0b, 0x12, 0x09, 0x62, 0x6c, 0x61,
  169. 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32,
  170. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x62,
  171. 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68,
  172. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72,
  173. 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79,
  174. 0x2f, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52,
  175. 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x42, 0x6c,
  176. 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  177. }
  178. var (
  179. file_proxy_blackhole_config_proto_rawDescOnce sync.Once
  180. file_proxy_blackhole_config_proto_rawDescData = file_proxy_blackhole_config_proto_rawDesc
  181. )
  182. func file_proxy_blackhole_config_proto_rawDescGZIP() []byte {
  183. file_proxy_blackhole_config_proto_rawDescOnce.Do(func() {
  184. file_proxy_blackhole_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_blackhole_config_proto_rawDescData)
  185. })
  186. return file_proxy_blackhole_config_proto_rawDescData
  187. }
  188. var file_proxy_blackhole_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  189. var file_proxy_blackhole_config_proto_goTypes = []interface{}{
  190. (*NoneResponse)(nil), // 0: v2ray.core.proxy.blackhole.NoneResponse
  191. (*HTTPResponse)(nil), // 1: v2ray.core.proxy.blackhole.HTTPResponse
  192. (*Config)(nil), // 2: v2ray.core.proxy.blackhole.Config
  193. (*SimplifiedConfig)(nil), // 3: v2ray.core.proxy.blackhole.SimplifiedConfig
  194. (*anypb.Any)(nil), // 4: google.protobuf.Any
  195. }
  196. var file_proxy_blackhole_config_proto_depIdxs = []int32{
  197. 4, // 0: v2ray.core.proxy.blackhole.Config.response:type_name -> google.protobuf.Any
  198. 1, // [1:1] is the sub-list for method output_type
  199. 1, // [1:1] is the sub-list for method input_type
  200. 1, // [1:1] is the sub-list for extension type_name
  201. 1, // [1:1] is the sub-list for extension extendee
  202. 0, // [0:1] is the sub-list for field type_name
  203. }
  204. func init() { file_proxy_blackhole_config_proto_init() }
  205. func file_proxy_blackhole_config_proto_init() {
  206. if File_proxy_blackhole_config_proto != nil {
  207. return
  208. }
  209. if !protoimpl.UnsafeEnabled {
  210. file_proxy_blackhole_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  211. switch v := v.(*NoneResponse); i {
  212. case 0:
  213. return &v.state
  214. case 1:
  215. return &v.sizeCache
  216. case 2:
  217. return &v.unknownFields
  218. default:
  219. return nil
  220. }
  221. }
  222. file_proxy_blackhole_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  223. switch v := v.(*HTTPResponse); i {
  224. case 0:
  225. return &v.state
  226. case 1:
  227. return &v.sizeCache
  228. case 2:
  229. return &v.unknownFields
  230. default:
  231. return nil
  232. }
  233. }
  234. file_proxy_blackhole_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  235. switch v := v.(*Config); i {
  236. case 0:
  237. return &v.state
  238. case 1:
  239. return &v.sizeCache
  240. case 2:
  241. return &v.unknownFields
  242. default:
  243. return nil
  244. }
  245. }
  246. file_proxy_blackhole_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  247. switch v := v.(*SimplifiedConfig); i {
  248. case 0:
  249. return &v.state
  250. case 1:
  251. return &v.sizeCache
  252. case 2:
  253. return &v.unknownFields
  254. default:
  255. return nil
  256. }
  257. }
  258. }
  259. type x struct{}
  260. out := protoimpl.TypeBuilder{
  261. File: protoimpl.DescBuilder{
  262. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  263. RawDescriptor: file_proxy_blackhole_config_proto_rawDesc,
  264. NumEnums: 0,
  265. NumMessages: 4,
  266. NumExtensions: 0,
  267. NumServices: 0,
  268. },
  269. GoTypes: file_proxy_blackhole_config_proto_goTypes,
  270. DependencyIndexes: file_proxy_blackhole_config_proto_depIdxs,
  271. MessageInfos: file_proxy_blackhole_config_proto_msgTypes,
  272. }.Build()
  273. File_proxy_blackhole_config_proto = out.File
  274. file_proxy_blackhole_config_proto_rawDesc = nil
  275. file_proxy_blackhole_config_proto_goTypes = nil
  276. file_proxy_blackhole_config_proto_depIdxs = nil
  277. }