config.pb.go 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.33.0
  4. // protoc v4.23.1
  5. // source: proxy/blackhole/config.proto
  6. package blackhole
  7. import (
  8. serial "github.com/xtls/xray-core/common/serial"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type NoneResponse struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. }
  25. func (x *NoneResponse) Reset() {
  26. *x = NoneResponse{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_proxy_blackhole_config_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *NoneResponse) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*NoneResponse) ProtoMessage() {}
  37. func (x *NoneResponse) ProtoReflect() protoreflect.Message {
  38. mi := &file_proxy_blackhole_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 NoneResponse.ProtoReflect.Descriptor instead.
  49. func (*NoneResponse) Descriptor() ([]byte, []int) {
  50. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{0}
  51. }
  52. type HTTPResponse struct {
  53. state protoimpl.MessageState
  54. sizeCache protoimpl.SizeCache
  55. unknownFields protoimpl.UnknownFields
  56. }
  57. func (x *HTTPResponse) Reset() {
  58. *x = HTTPResponse{}
  59. if protoimpl.UnsafeEnabled {
  60. mi := &file_proxy_blackhole_config_proto_msgTypes[1]
  61. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  62. ms.StoreMessageInfo(mi)
  63. }
  64. }
  65. func (x *HTTPResponse) String() string {
  66. return protoimpl.X.MessageStringOf(x)
  67. }
  68. func (*HTTPResponse) ProtoMessage() {}
  69. func (x *HTTPResponse) ProtoReflect() protoreflect.Message {
  70. mi := &file_proxy_blackhole_config_proto_msgTypes[1]
  71. if protoimpl.UnsafeEnabled && x != nil {
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. if ms.LoadMessageInfo() == nil {
  74. ms.StoreMessageInfo(mi)
  75. }
  76. return ms
  77. }
  78. return mi.MessageOf(x)
  79. }
  80. // Deprecated: Use HTTPResponse.ProtoReflect.Descriptor instead.
  81. func (*HTTPResponse) Descriptor() ([]byte, []int) {
  82. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{1}
  83. }
  84. type Config struct {
  85. state protoimpl.MessageState
  86. sizeCache protoimpl.SizeCache
  87. unknownFields protoimpl.UnknownFields
  88. Response *serial.TypedMessage `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
  89. }
  90. func (x *Config) Reset() {
  91. *x = Config{}
  92. if protoimpl.UnsafeEnabled {
  93. mi := &file_proxy_blackhole_config_proto_msgTypes[2]
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. ms.StoreMessageInfo(mi)
  96. }
  97. }
  98. func (x *Config) String() string {
  99. return protoimpl.X.MessageStringOf(x)
  100. }
  101. func (*Config) ProtoMessage() {}
  102. func (x *Config) ProtoReflect() protoreflect.Message {
  103. mi := &file_proxy_blackhole_config_proto_msgTypes[2]
  104. if protoimpl.UnsafeEnabled && x != nil {
  105. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  106. if ms.LoadMessageInfo() == nil {
  107. ms.StoreMessageInfo(mi)
  108. }
  109. return ms
  110. }
  111. return mi.MessageOf(x)
  112. }
  113. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  114. func (*Config) Descriptor() ([]byte, []int) {
  115. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{2}
  116. }
  117. func (x *Config) GetResponse() *serial.TypedMessage {
  118. if x != nil {
  119. return x.Response
  120. }
  121. return nil
  122. }
  123. var File_proxy_blackhole_config_proto protoreflect.FileDescriptor
  124. var file_proxy_blackhole_config_proto_rawDesc = []byte{
  125. 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c,
  126. 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14,
  127. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x62, 0x6c, 0x61, 0x63, 0x6b,
  128. 0x68, 0x6f, 0x6c, 0x65, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72,
  129. 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  130. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0e, 0x0a, 0x0c, 0x4e, 0x6f, 0x6e, 0x65, 0x52,
  131. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x48, 0x54, 0x54, 0x50, 0x52,
  132. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  133. 0x67, 0x12, 0x3c, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20,
  134. 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  135. 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65,
  136. 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42,
  137. 0x5e, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  138. 0x79, 0x2e, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0x50, 0x01, 0x5a, 0x29, 0x67,
  139. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78,
  140. 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x62,
  141. 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0xaa, 0x02, 0x14, 0x58, 0x72, 0x61, 0x79, 0x2e,
  142. 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x65, 0x62,
  143. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  144. }
  145. var (
  146. file_proxy_blackhole_config_proto_rawDescOnce sync.Once
  147. file_proxy_blackhole_config_proto_rawDescData = file_proxy_blackhole_config_proto_rawDesc
  148. )
  149. func file_proxy_blackhole_config_proto_rawDescGZIP() []byte {
  150. file_proxy_blackhole_config_proto_rawDescOnce.Do(func() {
  151. file_proxy_blackhole_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_blackhole_config_proto_rawDescData)
  152. })
  153. return file_proxy_blackhole_config_proto_rawDescData
  154. }
  155. var file_proxy_blackhole_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  156. var file_proxy_blackhole_config_proto_goTypes = []interface{}{
  157. (*NoneResponse)(nil), // 0: xray.proxy.blackhole.NoneResponse
  158. (*HTTPResponse)(nil), // 1: xray.proxy.blackhole.HTTPResponse
  159. (*Config)(nil), // 2: xray.proxy.blackhole.Config
  160. (*serial.TypedMessage)(nil), // 3: xray.common.serial.TypedMessage
  161. }
  162. var file_proxy_blackhole_config_proto_depIdxs = []int32{
  163. 3, // 0: xray.proxy.blackhole.Config.response:type_name -> xray.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_proxy_blackhole_config_proto_init() }
  171. func file_proxy_blackhole_config_proto_init() {
  172. if File_proxy_blackhole_config_proto != nil {
  173. return
  174. }
  175. if !protoimpl.UnsafeEnabled {
  176. file_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_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_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_proxy_blackhole_config_proto_rawDesc,
  218. NumEnums: 0,
  219. NumMessages: 3,
  220. NumExtensions: 0,
  221. NumServices: 0,
  222. },
  223. GoTypes: file_proxy_blackhole_config_proto_goTypes,
  224. DependencyIndexes: file_proxy_blackhole_config_proto_depIdxs,
  225. MessageInfos: file_proxy_blackhole_config_proto_msgTypes,
  226. }.Build()
  227. File_proxy_blackhole_config_proto = out.File
  228. file_proxy_blackhole_config_proto_rawDesc = nil
  229. file_proxy_blackhole_config_proto_goTypes = nil
  230. file_proxy_blackhole_config_proto_depIdxs = nil
  231. }