config.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. package command
  2. import (
  3. context "context"
  4. proto "github.com/golang/protobuf/proto"
  5. grpc "google.golang.org/grpc"
  6. codes "google.golang.org/grpc/codes"
  7. status "google.golang.org/grpc/status"
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // This is a compile-time assertion that a sufficiently up-to-date version
  20. // of the legacy proto package is being used.
  21. const _ = proto.ProtoPackageIsVersion4
  22. type Config struct {
  23. state protoimpl.MessageState
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. }
  27. func (x *Config) Reset() {
  28. *x = Config{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_v2ray_com_core_app_log_command_config_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *Config) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*Config) ProtoMessage() {}
  39. func (x *Config) ProtoReflect() protoreflect.Message {
  40. mi := &file_v2ray_com_core_app_log_command_config_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  51. func (*Config) Descriptor() ([]byte, []int) {
  52. return file_v2ray_com_core_app_log_command_config_proto_rawDescGZIP(), []int{0}
  53. }
  54. type RestartLoggerRequest struct {
  55. state protoimpl.MessageState
  56. sizeCache protoimpl.SizeCache
  57. unknownFields protoimpl.UnknownFields
  58. }
  59. func (x *RestartLoggerRequest) Reset() {
  60. *x = RestartLoggerRequest{}
  61. if protoimpl.UnsafeEnabled {
  62. mi := &file_v2ray_com_core_app_log_command_config_proto_msgTypes[1]
  63. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  64. ms.StoreMessageInfo(mi)
  65. }
  66. }
  67. func (x *RestartLoggerRequest) String() string {
  68. return protoimpl.X.MessageStringOf(x)
  69. }
  70. func (*RestartLoggerRequest) ProtoMessage() {}
  71. func (x *RestartLoggerRequest) ProtoReflect() protoreflect.Message {
  72. mi := &file_v2ray_com_core_app_log_command_config_proto_msgTypes[1]
  73. if protoimpl.UnsafeEnabled && x != nil {
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. if ms.LoadMessageInfo() == nil {
  76. ms.StoreMessageInfo(mi)
  77. }
  78. return ms
  79. }
  80. return mi.MessageOf(x)
  81. }
  82. // Deprecated: Use RestartLoggerRequest.ProtoReflect.Descriptor instead.
  83. func (*RestartLoggerRequest) Descriptor() ([]byte, []int) {
  84. return file_v2ray_com_core_app_log_command_config_proto_rawDescGZIP(), []int{1}
  85. }
  86. type RestartLoggerResponse struct {
  87. state protoimpl.MessageState
  88. sizeCache protoimpl.SizeCache
  89. unknownFields protoimpl.UnknownFields
  90. }
  91. func (x *RestartLoggerResponse) Reset() {
  92. *x = RestartLoggerResponse{}
  93. if protoimpl.UnsafeEnabled {
  94. mi := &file_v2ray_com_core_app_log_command_config_proto_msgTypes[2]
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. ms.StoreMessageInfo(mi)
  97. }
  98. }
  99. func (x *RestartLoggerResponse) String() string {
  100. return protoimpl.X.MessageStringOf(x)
  101. }
  102. func (*RestartLoggerResponse) ProtoMessage() {}
  103. func (x *RestartLoggerResponse) ProtoReflect() protoreflect.Message {
  104. mi := &file_v2ray_com_core_app_log_command_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 RestartLoggerResponse.ProtoReflect.Descriptor instead.
  115. func (*RestartLoggerResponse) Descriptor() ([]byte, []int) {
  116. return file_v2ray_com_core_app_log_command_config_proto_rawDescGZIP(), []int{2}
  117. }
  118. var File_v2ray_com_core_app_log_command_config_proto protoreflect.FileDescriptor
  119. var file_v2ray_com_core_app_log_command_config_proto_rawDesc = []byte{
  120. 0x0a, 0x2b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  121. 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
  122. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x76,
  123. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f,
  124. 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x08, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
  125. 0x66, 0x69, 0x67, 0x22, 0x16, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x6f,
  126. 0x67, 0x67, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x17, 0x0a, 0x15, 0x52,
  127. 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
  128. 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x87, 0x01, 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x53,
  129. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x76, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72,
  130. 0x74, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x12, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  131. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x63, 0x6f, 0x6d,
  132. 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x6f, 0x67, 0x67,
  133. 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x76, 0x32, 0x72, 0x61,
  134. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x63,
  135. 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x6f,
  136. 0x67, 0x67, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x48,
  137. 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  138. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
  139. 0x50, 0x01, 0x5a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa, 0x02, 0x1a, 0x56, 0x32,
  140. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4c, 0x6f, 0x67,
  141. 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  142. }
  143. var (
  144. file_v2ray_com_core_app_log_command_config_proto_rawDescOnce sync.Once
  145. file_v2ray_com_core_app_log_command_config_proto_rawDescData = file_v2ray_com_core_app_log_command_config_proto_rawDesc
  146. )
  147. func file_v2ray_com_core_app_log_command_config_proto_rawDescGZIP() []byte {
  148. file_v2ray_com_core_app_log_command_config_proto_rawDescOnce.Do(func() {
  149. file_v2ray_com_core_app_log_command_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_app_log_command_config_proto_rawDescData)
  150. })
  151. return file_v2ray_com_core_app_log_command_config_proto_rawDescData
  152. }
  153. var file_v2ray_com_core_app_log_command_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  154. var file_v2ray_com_core_app_log_command_config_proto_goTypes = []interface{}{
  155. (*Config)(nil), // 0: v2ray.core.app.log.command.Config
  156. (*RestartLoggerRequest)(nil), // 1: v2ray.core.app.log.command.RestartLoggerRequest
  157. (*RestartLoggerResponse)(nil), // 2: v2ray.core.app.log.command.RestartLoggerResponse
  158. }
  159. var file_v2ray_com_core_app_log_command_config_proto_depIdxs = []int32{
  160. 1, // 0: v2ray.core.app.log.command.LoggerService.RestartLogger:input_type -> v2ray.core.app.log.command.RestartLoggerRequest
  161. 2, // 1: v2ray.core.app.log.command.LoggerService.RestartLogger:output_type -> v2ray.core.app.log.command.RestartLoggerResponse
  162. 1, // [1:2] is the sub-list for method output_type
  163. 0, // [0:1] is the sub-list for method input_type
  164. 0, // [0:0] is the sub-list for extension type_name
  165. 0, // [0:0] is the sub-list for extension extendee
  166. 0, // [0:0] is the sub-list for field type_name
  167. }
  168. func init() { file_v2ray_com_core_app_log_command_config_proto_init() }
  169. func file_v2ray_com_core_app_log_command_config_proto_init() {
  170. if File_v2ray_com_core_app_log_command_config_proto != nil {
  171. return
  172. }
  173. if !protoimpl.UnsafeEnabled {
  174. file_v2ray_com_core_app_log_command_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  175. switch v := v.(*Config); i {
  176. case 0:
  177. return &v.state
  178. case 1:
  179. return &v.sizeCache
  180. case 2:
  181. return &v.unknownFields
  182. default:
  183. return nil
  184. }
  185. }
  186. file_v2ray_com_core_app_log_command_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  187. switch v := v.(*RestartLoggerRequest); i {
  188. case 0:
  189. return &v.state
  190. case 1:
  191. return &v.sizeCache
  192. case 2:
  193. return &v.unknownFields
  194. default:
  195. return nil
  196. }
  197. }
  198. file_v2ray_com_core_app_log_command_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  199. switch v := v.(*RestartLoggerResponse); i {
  200. case 0:
  201. return &v.state
  202. case 1:
  203. return &v.sizeCache
  204. case 2:
  205. return &v.unknownFields
  206. default:
  207. return nil
  208. }
  209. }
  210. }
  211. type x struct{}
  212. out := protoimpl.TypeBuilder{
  213. File: protoimpl.DescBuilder{
  214. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  215. RawDescriptor: file_v2ray_com_core_app_log_command_config_proto_rawDesc,
  216. NumEnums: 0,
  217. NumMessages: 3,
  218. NumExtensions: 0,
  219. NumServices: 1,
  220. },
  221. GoTypes: file_v2ray_com_core_app_log_command_config_proto_goTypes,
  222. DependencyIndexes: file_v2ray_com_core_app_log_command_config_proto_depIdxs,
  223. MessageInfos: file_v2ray_com_core_app_log_command_config_proto_msgTypes,
  224. }.Build()
  225. File_v2ray_com_core_app_log_command_config_proto = out.File
  226. file_v2ray_com_core_app_log_command_config_proto_rawDesc = nil
  227. file_v2ray_com_core_app_log_command_config_proto_goTypes = nil
  228. file_v2ray_com_core_app_log_command_config_proto_depIdxs = nil
  229. }
  230. // Reference imports to suppress errors if they are not otherwise used.
  231. var _ context.Context
  232. var _ grpc.ClientConnInterface
  233. // This is a compile-time assertion to ensure that this generated file
  234. // is compatible with the grpc package it is being compiled against.
  235. const _ = grpc.SupportPackageIsVersion6
  236. // LoggerServiceClient is the client API for LoggerService service.
  237. //
  238. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  239. type LoggerServiceClient interface {
  240. RestartLogger(ctx context.Context, in *RestartLoggerRequest, opts ...grpc.CallOption) (*RestartLoggerResponse, error)
  241. }
  242. type loggerServiceClient struct {
  243. cc grpc.ClientConnInterface
  244. }
  245. func NewLoggerServiceClient(cc grpc.ClientConnInterface) LoggerServiceClient {
  246. return &loggerServiceClient{cc}
  247. }
  248. func (c *loggerServiceClient) RestartLogger(ctx context.Context, in *RestartLoggerRequest, opts ...grpc.CallOption) (*RestartLoggerResponse, error) {
  249. out := new(RestartLoggerResponse)
  250. err := c.cc.Invoke(ctx, "/v2ray.core.app.log.command.LoggerService/RestartLogger", in, out, opts...)
  251. if err != nil {
  252. return nil, err
  253. }
  254. return out, nil
  255. }
  256. // LoggerServiceServer is the server API for LoggerService service.
  257. type LoggerServiceServer interface {
  258. RestartLogger(context.Context, *RestartLoggerRequest) (*RestartLoggerResponse, error)
  259. }
  260. // UnimplementedLoggerServiceServer can be embedded to have forward compatible implementations.
  261. type UnimplementedLoggerServiceServer struct {
  262. }
  263. func (*UnimplementedLoggerServiceServer) RestartLogger(context.Context, *RestartLoggerRequest) (*RestartLoggerResponse, error) {
  264. return nil, status.Errorf(codes.Unimplemented, "method RestartLogger not implemented")
  265. }
  266. func RegisterLoggerServiceServer(s *grpc.Server, srv LoggerServiceServer) {
  267. s.RegisterService(&_LoggerService_serviceDesc, srv)
  268. }
  269. func _LoggerService_RestartLogger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  270. in := new(RestartLoggerRequest)
  271. if err := dec(in); err != nil {
  272. return nil, err
  273. }
  274. if interceptor == nil {
  275. return srv.(LoggerServiceServer).RestartLogger(ctx, in)
  276. }
  277. info := &grpc.UnaryServerInfo{
  278. Server: srv,
  279. FullMethod: "/v2ray.core.app.log.command.LoggerService/RestartLogger",
  280. }
  281. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  282. return srv.(LoggerServiceServer).RestartLogger(ctx, req.(*RestartLoggerRequest))
  283. }
  284. return interceptor(ctx, in, info, handler)
  285. }
  286. var _LoggerService_serviceDesc = grpc.ServiceDesc{
  287. ServiceName: "v2ray.core.app.log.command.LoggerService",
  288. HandlerType: (*LoggerServiceServer)(nil),
  289. Methods: []grpc.MethodDesc{
  290. {
  291. MethodName: "RestartLogger",
  292. Handler: _LoggerService_RestartLogger_Handler,
  293. },
  294. },
  295. Streams: []grpc.StreamDesc{},
  296. Metadata: "v2ray.com/core/app/log/command/config.proto",
  297. }