config.pb.go 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  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 `protogen:"open.v1"`
  23. unknownFields protoimpl.UnknownFields
  24. sizeCache protoimpl.SizeCache
  25. }
  26. func (x *NoneResponse) Reset() {
  27. *x = NoneResponse{}
  28. mi := &file_proxy_blackhole_config_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. func (x *NoneResponse) String() string {
  33. return protoimpl.X.MessageStringOf(x)
  34. }
  35. func (*NoneResponse) ProtoMessage() {}
  36. func (x *NoneResponse) ProtoReflect() protoreflect.Message {
  37. mi := &file_proxy_blackhole_config_proto_msgTypes[0]
  38. if x != nil {
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. if ms.LoadMessageInfo() == nil {
  41. ms.StoreMessageInfo(mi)
  42. }
  43. return ms
  44. }
  45. return mi.MessageOf(x)
  46. }
  47. // Deprecated: Use NoneResponse.ProtoReflect.Descriptor instead.
  48. func (*NoneResponse) Descriptor() ([]byte, []int) {
  49. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{0}
  50. }
  51. type HTTPResponse struct {
  52. state protoimpl.MessageState `protogen:"open.v1"`
  53. unknownFields protoimpl.UnknownFields
  54. sizeCache protoimpl.SizeCache
  55. }
  56. func (x *HTTPResponse) Reset() {
  57. *x = HTTPResponse{}
  58. mi := &file_proxy_blackhole_config_proto_msgTypes[1]
  59. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  60. ms.StoreMessageInfo(mi)
  61. }
  62. func (x *HTTPResponse) String() string {
  63. return protoimpl.X.MessageStringOf(x)
  64. }
  65. func (*HTTPResponse) ProtoMessage() {}
  66. func (x *HTTPResponse) ProtoReflect() protoreflect.Message {
  67. mi := &file_proxy_blackhole_config_proto_msgTypes[1]
  68. if x != nil {
  69. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  70. if ms.LoadMessageInfo() == nil {
  71. ms.StoreMessageInfo(mi)
  72. }
  73. return ms
  74. }
  75. return mi.MessageOf(x)
  76. }
  77. // Deprecated: Use HTTPResponse.ProtoReflect.Descriptor instead.
  78. func (*HTTPResponse) Descriptor() ([]byte, []int) {
  79. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{1}
  80. }
  81. type Config struct {
  82. state protoimpl.MessageState `protogen:"open.v1"`
  83. Response *serial.TypedMessage `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
  84. unknownFields protoimpl.UnknownFields
  85. sizeCache protoimpl.SizeCache
  86. }
  87. func (x *Config) Reset() {
  88. *x = Config{}
  89. mi := &file_proxy_blackhole_config_proto_msgTypes[2]
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. ms.StoreMessageInfo(mi)
  92. }
  93. func (x *Config) String() string {
  94. return protoimpl.X.MessageStringOf(x)
  95. }
  96. func (*Config) ProtoMessage() {}
  97. func (x *Config) ProtoReflect() protoreflect.Message {
  98. mi := &file_proxy_blackhole_config_proto_msgTypes[2]
  99. if x != nil {
  100. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  101. if ms.LoadMessageInfo() == nil {
  102. ms.StoreMessageInfo(mi)
  103. }
  104. return ms
  105. }
  106. return mi.MessageOf(x)
  107. }
  108. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  109. func (*Config) Descriptor() ([]byte, []int) {
  110. return file_proxy_blackhole_config_proto_rawDescGZIP(), []int{2}
  111. }
  112. func (x *Config) GetResponse() *serial.TypedMessage {
  113. if x != nil {
  114. return x.Response
  115. }
  116. return nil
  117. }
  118. var File_proxy_blackhole_config_proto protoreflect.FileDescriptor
  119. const file_proxy_blackhole_config_proto_rawDesc = "" +
  120. "\n" +
  121. "\x1cproxy/blackhole/config.proto\x12\x14xray.proxy.blackhole\x1a!common/serial/typed_message.proto\"\x0e\n" +
  122. "\fNoneResponse\"\x0e\n" +
  123. "\fHTTPResponse\"F\n" +
  124. "\x06Config\x12<\n" +
  125. "\bresponse\x18\x01 \x01(\v2 .xray.common.serial.TypedMessageR\bresponseB^\n" +
  126. "\x18com.xray.proxy.blackholeP\x01Z)github.com/xtls/xray-core/proxy/blackhole\xaa\x02\x14Xray.Proxy.Blackholeb\x06proto3"
  127. var (
  128. file_proxy_blackhole_config_proto_rawDescOnce sync.Once
  129. file_proxy_blackhole_config_proto_rawDescData []byte
  130. )
  131. func file_proxy_blackhole_config_proto_rawDescGZIP() []byte {
  132. file_proxy_blackhole_config_proto_rawDescOnce.Do(func() {
  133. 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)))
  134. })
  135. return file_proxy_blackhole_config_proto_rawDescData
  136. }
  137. var file_proxy_blackhole_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  138. var file_proxy_blackhole_config_proto_goTypes = []any{
  139. (*NoneResponse)(nil), // 0: xray.proxy.blackhole.NoneResponse
  140. (*HTTPResponse)(nil), // 1: xray.proxy.blackhole.HTTPResponse
  141. (*Config)(nil), // 2: xray.proxy.blackhole.Config
  142. (*serial.TypedMessage)(nil), // 3: xray.common.serial.TypedMessage
  143. }
  144. var file_proxy_blackhole_config_proto_depIdxs = []int32{
  145. 3, // 0: xray.proxy.blackhole.Config.response:type_name -> xray.common.serial.TypedMessage
  146. 1, // [1:1] is the sub-list for method output_type
  147. 1, // [1:1] is the sub-list for method input_type
  148. 1, // [1:1] is the sub-list for extension type_name
  149. 1, // [1:1] is the sub-list for extension extendee
  150. 0, // [0:1] is the sub-list for field type_name
  151. }
  152. func init() { file_proxy_blackhole_config_proto_init() }
  153. func file_proxy_blackhole_config_proto_init() {
  154. if File_proxy_blackhole_config_proto != nil {
  155. return
  156. }
  157. type x struct{}
  158. out := protoimpl.TypeBuilder{
  159. File: protoimpl.DescBuilder{
  160. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  161. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_blackhole_config_proto_rawDesc), len(file_proxy_blackhole_config_proto_rawDesc)),
  162. NumEnums: 0,
  163. NumMessages: 3,
  164. NumExtensions: 0,
  165. NumServices: 0,
  166. },
  167. GoTypes: file_proxy_blackhole_config_proto_goTypes,
  168. DependencyIndexes: file_proxy_blackhole_config_proto_depIdxs,
  169. MessageInfos: file_proxy_blackhole_config_proto_msgTypes,
  170. }.Build()
  171. File_proxy_blackhole_config_proto = out.File
  172. file_proxy_blackhole_config_proto_goTypes = nil
  173. file_proxy_blackhole_config_proto_depIdxs = nil
  174. }