config.pb.go 10 KB

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