config.pb.go 8.7 KB

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