config.pb.go 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. unsafe "unsafe"
  10. )
  11. const (
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  14. // Verify that runtime/protoimpl is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  16. )
  17. type NoneResponse struct {
  18. state protoimpl.MessageState `protogen:"open.v1"`
  19. unknownFields protoimpl.UnknownFields
  20. sizeCache protoimpl.SizeCache
  21. }
  22. func (x *NoneResponse) Reset() {
  23. *x = NoneResponse{}
  24. mi := &file_proxy_blackhole_config_proto_msgTypes[0]
  25. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  26. ms.StoreMessageInfo(mi)
  27. }
  28. func (x *NoneResponse) String() string {
  29. return protoimpl.X.MessageStringOf(x)
  30. }
  31. func (*NoneResponse) ProtoMessage() {}
  32. func (x *NoneResponse) ProtoReflect() protoreflect.Message {
  33. mi := &file_proxy_blackhole_config_proto_msgTypes[0]
  34. if x != nil {
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. if ms.LoadMessageInfo() == nil {
  37. ms.StoreMessageInfo(mi)
  38. }
  39. return ms
  40. }
  41. return mi.MessageOf(x)
  42. }
  43. // Deprecated: Use NoneResponse.ProtoReflect.Descriptor instead.
  44. func (*NoneResponse) Descriptor() ([]byte, []int) {
  45. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{0}
  46. }
  47. type HTTPResponse struct {
  48. state protoimpl.MessageState `protogen:"open.v1"`
  49. unknownFields protoimpl.UnknownFields
  50. sizeCache protoimpl.SizeCache
  51. }
  52. func (x *HTTPResponse) Reset() {
  53. *x = HTTPResponse{}
  54. mi := &file_proxy_blackhole_config_proto_msgTypes[1]
  55. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  56. ms.StoreMessageInfo(mi)
  57. }
  58. func (x *HTTPResponse) String() string {
  59. return protoimpl.X.MessageStringOf(x)
  60. }
  61. func (*HTTPResponse) ProtoMessage() {}
  62. func (x *HTTPResponse) ProtoReflect() protoreflect.Message {
  63. mi := &file_proxy_blackhole_config_proto_msgTypes[1]
  64. if x != nil {
  65. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  66. if ms.LoadMessageInfo() == nil {
  67. ms.StoreMessageInfo(mi)
  68. }
  69. return ms
  70. }
  71. return mi.MessageOf(x)
  72. }
  73. // Deprecated: Use HTTPResponse.ProtoReflect.Descriptor instead.
  74. func (*HTTPResponse) Descriptor() ([]byte, []int) {
  75. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{1}
  76. }
  77. type Config struct {
  78. state protoimpl.MessageState `protogen:"open.v1"`
  79. Response *anypb.Any `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
  80. unknownFields protoimpl.UnknownFields
  81. sizeCache protoimpl.SizeCache
  82. }
  83. func (x *Config) Reset() {
  84. *x = Config{}
  85. mi := &file_proxy_blackhole_config_proto_msgTypes[2]
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. ms.StoreMessageInfo(mi)
  88. }
  89. func (x *Config) String() string {
  90. return protoimpl.X.MessageStringOf(x)
  91. }
  92. func (*Config) ProtoMessage() {}
  93. func (x *Config) ProtoReflect() protoreflect.Message {
  94. mi := &file_proxy_blackhole_config_proto_msgTypes[2]
  95. if x != nil {
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. if ms.LoadMessageInfo() == nil {
  98. ms.StoreMessageInfo(mi)
  99. }
  100. return ms
  101. }
  102. return mi.MessageOf(x)
  103. }
  104. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  105. func (*Config) Descriptor() ([]byte, []int) {
  106. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{2}
  107. }
  108. func (x *Config) GetResponse() *anypb.Any {
  109. if x != nil {
  110. return x.Response
  111. }
  112. return nil
  113. }
  114. type SimplifiedConfig struct {
  115. state protoimpl.MessageState `protogen:"open.v1"`
  116. unknownFields protoimpl.UnknownFields
  117. sizeCache protoimpl.SizeCache
  118. }
  119. func (x *SimplifiedConfig) Reset() {
  120. *x = SimplifiedConfig{}
  121. mi := &file_proxy_blackhole_config_proto_msgTypes[3]
  122. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  123. ms.StoreMessageInfo(mi)
  124. }
  125. func (x *SimplifiedConfig) String() string {
  126. return protoimpl.X.MessageStringOf(x)
  127. }
  128. func (*SimplifiedConfig) ProtoMessage() {}
  129. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  130. mi := &file_proxy_blackhole_config_proto_msgTypes[3]
  131. if x != nil {
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. if ms.LoadMessageInfo() == nil {
  134. ms.StoreMessageInfo(mi)
  135. }
  136. return ms
  137. }
  138. return mi.MessageOf(x)
  139. }
  140. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  141. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  142. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{3}
  143. }
  144. var File_proxy_blackhole_config_proto protoreflect.FileDescriptor
  145. var file_proxy_blackhole_config_proto_rawDesc = string([]byte{
  146. 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c,
  147. 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a,
  148. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  149. 0x2e, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67,
  150. 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e,
  151. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72,
  152. 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
  153. 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0e, 0x0a, 0x0c, 0x4e, 0x6f, 0x6e, 0x65, 0x52,
  154. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x48, 0x54, 0x54, 0x50, 0x52,
  155. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  156. 0x67, 0x12, 0x30, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20,
  157. 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  158. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f,
  159. 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65,
  160. 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x19, 0x82, 0xb5, 0x18, 0x15, 0x0a, 0x08, 0x6f,
  161. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x09, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f,
  162. 0x6c, 0x65, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  163. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x62, 0x6c, 0x61, 0x63, 0x6b,
  164. 0x68, 0x6f, 0x6c, 0x65, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
  165. 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63,
  166. 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x62, 0x6c, 0x61,
  167. 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
  168. 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x68,
  169. 0x6f, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  170. })
  171. var (
  172. file_proxy_blackhole_config_proto_rawDescOnce sync.Once
  173. file_proxy_blackhole_config_proto_rawDescData []byte
  174. )
  175. func file_proxy_blackhole_config_proto_rawDescGZIP() []byte {
  176. file_proxy_blackhole_config_proto_rawDescOnce.Do(func() {
  177. file_proxy_blackhole_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_blackhole_config_proto_rawDesc), len(file_proxy_blackhole_config_proto_rawDesc)))
  178. })
  179. return file_proxy_blackhole_config_proto_rawDescData
  180. }
  181. var file_proxy_blackhole_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  182. var file_proxy_blackhole_config_proto_goTypes = []any{
  183. (*NoneResponse)(nil), // 0: v2ray.core.proxy.blackhole.NoneResponse
  184. (*HTTPResponse)(nil), // 1: v2ray.core.proxy.blackhole.HTTPResponse
  185. (*Config)(nil), // 2: v2ray.core.proxy.blackhole.Config
  186. (*SimplifiedConfig)(nil), // 3: v2ray.core.proxy.blackhole.SimplifiedConfig
  187. (*anypb.Any)(nil), // 4: google.protobuf.Any
  188. }
  189. var file_proxy_blackhole_config_proto_depIdxs = []int32{
  190. 4, // 0: v2ray.core.proxy.blackhole.Config.response:type_name -> google.protobuf.Any
  191. 1, // [1:1] is the sub-list for method output_type
  192. 1, // [1:1] is the sub-list for method input_type
  193. 1, // [1:1] is the sub-list for extension type_name
  194. 1, // [1:1] is the sub-list for extension extendee
  195. 0, // [0:1] is the sub-list for field type_name
  196. }
  197. func init() { file_proxy_blackhole_config_proto_init() }
  198. func file_proxy_blackhole_config_proto_init() {
  199. if File_proxy_blackhole_config_proto != nil {
  200. return
  201. }
  202. type x struct{}
  203. out := protoimpl.TypeBuilder{
  204. File: protoimpl.DescBuilder{
  205. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  206. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_blackhole_config_proto_rawDesc), len(file_proxy_blackhole_config_proto_rawDesc)),
  207. NumEnums: 0,
  208. NumMessages: 4,
  209. NumExtensions: 0,
  210. NumServices: 0,
  211. },
  212. GoTypes: file_proxy_blackhole_config_proto_goTypes,
  213. DependencyIndexes: file_proxy_blackhole_config_proto_depIdxs,
  214. MessageInfos: file_proxy_blackhole_config_proto_msgTypes,
  215. }.Build()
  216. File_proxy_blackhole_config_proto = out.File
  217. file_proxy_blackhole_config_proto_goTypes = nil
  218. file_proxy_blackhole_config_proto_depIdxs = nil
  219. }