github.com/pinpoint-apm/pinpoint-go-agent@v1.4.1-0.20240110120318-a50c2eb18c8c/protobuf/Service.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: v1/Service.proto
     3  
     4  package v1
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	grpc "google.golang.org/grpc"
    11  	codes "google.golang.org/grpc/codes"
    12  	status "google.golang.org/grpc/status"
    13  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    14  	math "math"
    15  )
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var _ = proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    27  
    28  func init() { proto.RegisterFile("v1/Service.proto", fileDescriptor_85f51ec2aaeb527c) }
    29  
    30  var fileDescriptor_85f51ec2aaeb527c = []byte{
    31  	// 514 bytes of a gzipped FileDescriptorProto
    32  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xd1, 0x6e, 0x12, 0x41,
    33  	0x14, 0x86, 0x0b, 0x54, 0x53, 0x0f, 0xc5, 0x92, 0x51, 0xd1, 0xd0, 0xc6, 0x28, 0x57, 0x7a, 0x33,
    34  	0xb8, 0x18, 0x93, 0xaa, 0x69, 0x22, 0xa5, 0x24, 0x9a, 0xd8, 0x64, 0x03, 0xea, 0x05, 0x77, 0xd3,
    35  	0xdd, 0xc3, 0x32, 0x09, 0x3b, 0x33, 0x9d, 0x1d, 0x36, 0xfa, 0x06, 0xbe, 0x90, 0xef, 0xe2, 0xe3,
    36  	0x34, 0x33, 0xcc, 0x02, 0xdd, 0x12, 0xd2, 0xbb, 0x39, 0xff, 0x39, 0xff, 0xf7, 0xef, 0xec, 0x19,
    37  	0x68, 0xe6, 0x41, 0x77, 0x8c, 0x3a, 0xe7, 0x11, 0x52, 0xa5, 0xa5, 0x91, 0xa4, 0x9a, 0x07, 0xed,
    38  	0xe3, 0x44, 0xca, 0x64, 0x8e, 0x5d, 0xa7, 0x5c, 0x2d, 0xa6, 0x5d, 0x4c, 0x95, 0xf9, 0xb3, 0x1c,
    39  	0x68, 0x37, 0xac, 0x45, 0x31, 0xb1, 0x59, 0x1a, 0x66, 0x7c, 0x79, 0x98, 0x07, 0xdd, 0x41, 0x1a,
    40  	0x2f, 0xab, 0xde, 0x17, 0xd8, 0xb7, 0xa3, 0xe4, 0x14, 0x0e, 0xc6, 0x28, 0x62, 0x77, 0x6e, 0xd2,
    41  	0x3c, 0xa0, 0xa1, 0x3d, 0x5e, 0x62, 0x96, 0xb1, 0x04, 0xdb, 0x2d, 0xba, 0xcc, 0xa3, 0x45, 0x1e,
    42  	0x1d, 0xda, 0xbc, 0xce, 0xde, 0x9b, 0x4a, 0x0f, 0xe1, 0x41, 0x3f, 0x41, 0x61, 0x48, 0x00, 0xcd,
    43  	0x11, 0x5e, 0x2f, 0x30, 0x33, 0xae, 0xfe, 0x26, 0xa6, 0x92, 0x3c, 0x76, 0xa8, 0x55, 0xdd, 0xae,
    44  	0xbb, 0x7a, 0x84, 0xd9, 0x62, 0x6e, 0x3a, 0x7b, 0xe4, 0x2d, 0xd4, 0x43, 0x2e, 0x92, 0x31, 0x66,
    45  	0x19, 0x97, 0x82, 0x3c, 0x72, 0x5d, 0xab, 0xb4, 0xd7, 0x47, 0x1b, 0xf2, 0xae, 0xd2, 0xfb, 0x57,
    46  	0x85, 0x83, 0x4b, 0x34, 0x2c, 0x66, 0x86, 0x91, 0x0f, 0x40, 0x7c, 0xd4, 0xf8, 0x7a, 0x6e, 0xd5,
    47  	0x0b, 0xab, 0xfa, 0xef, 0x5e, 0x2b, 0xe5, 0xb8, 0xcf, 0xf0, 0x6c, 0x6d, 0xfb, 0xc9, 0xe3, 0x95,
    48  	0xf3, 0x49, 0xe1, 0xdc, 0x10, 0xcb, 0xe6, 0x75, 0x66, 0x5f, 0xf1, 0x52, 0xe6, 0x86, 0xb2, 0x23,
    49  	0xd3, 0x68, 0x2e, 0x92, 0x72, 0xe6, 0x2d, 0xb1, 0x6c, 0xee, 0xc3, 0x0b, 0x6f, 0x1e, 0xfe, 0x8e,
    50  	0x50, 0x19, 0x2e, 0xc5, 0xca, 0xdf, 0x72, 0xa3, 0x77, 0xf4, 0x12, 0xa2, 0x37, 0x84, 0x7d, 0xbb,
    51  	0x7c, 0x72, 0x06, 0x0d, 0xbb, 0x60, 0xb7, 0x0a, 0x27, 0xf8, 0xbf, 0x65, 0x98, 0xb9, 0xcf, 0x96,
    52  	0xff, 0xd7, 0xa0, 0x15, 0x6a, 0x39, 0xe5, 0x73, 0xd4, 0x03, 0x99, 0xa6, 0x4c, 0xc4, 0xfe, 0x55,
    53  	0x92, 0x4f, 0xd0, 0xf8, 0xca, 0x44, 0x3c, 0x47, 0xaf, 0x93, 0x23, 0x47, 0x1e, 0xa4, 0x71, 0x01,
    54  	0x5e, 0x09, 0xfe, 0x32, 0x9d, 0xda, 0xdf, 0x6a, 0xc5, 0x6e, 0x95, 0x7c, 0x84, 0xa3, 0x5b, 0xde,
    55  	0x5f, 0xbd, 0x7b, 0xb8, 0xdd, 0x83, 0x20, 0x67, 0x50, 0xf7, 0xa6, 0x61, 0x34, 0x93, 0xe4, 0x69,
    56  	0x31, 0x65, 0xab, 0x11, 0x66, 0x4a, 0x8a, 0x6c, 0xc7, 0x95, 0xc8, 0x04, 0x5e, 0x16, 0xf7, 0x30,
    57  	0x1a, 0x59, 0xda, 0x8f, 0x0c, 0xcf, 0xf1, 0xc7, 0x4c, 0x23, 0x8b, 0x07, 0x72, 0x21, 0x0c, 0x39,
    58  	0x29, 0x88, 0x77, 0x5a, 0x23, 0xcc, 0x76, 0xfd, 0x2c, 0x12, 0xc2, 0x73, 0xcf, 0xde, 0xb4, 0x5e,
    59  	0x2c, 0x52, 0x45, 0x8e, 0xb7, 0x41, 0x6d, 0x67, 0x27, 0x93, 0x4c, 0xe0, 0x64, 0x0b, 0xf1, 0x3b,
    60  	0x4f, 0x66, 0xc6, 0x61, 0x5f, 0x6d, 0xc3, 0xae, 0xda, 0x3b, 0xd9, 0xe7, 0xa7, 0xf0, 0x3a, 0x92,
    61  	0x29, 0x15, 0x2c, 0x47, 0x1d, 0x49, 0xad, 0xa8, 0xe2, 0x42, 0x49, 0x2e, 0x0c, 0x4d, 0xb4, 0x8a,
    62  	0xa8, 0xd1, 0x2c, 0xc2, 0xf3, 0x43, 0xbf, 0xed, 0xd0, 0xba, 0xc3, 0xca, 0xa4, 0xd6, 0xcd, 0x83,
    63  	0xab, 0x87, 0x8e, 0xf5, 0xfe, 0x26, 0x00, 0x00, 0xff, 0xff, 0xbf, 0xf1, 0xd1, 0xb2, 0xa4, 0x04,
    64  	0x00, 0x00,
    65  }
    66  
    67  // Reference imports to suppress errors if they are not otherwise used.
    68  var _ context.Context
    69  var _ grpc.ClientConn
    70  
    71  // This is a compile-time assertion to ensure that this generated file
    72  // is compatible with the grpc package it is being compiled against.
    73  const _ = grpc.SupportPackageIsVersion4
    74  
    75  // SpanClient is the client API for Span service.
    76  //
    77  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
    78  type SpanClient interface {
    79  	SendSpan(ctx context.Context, opts ...grpc.CallOption) (Span_SendSpanClient, error)
    80  }
    81  
    82  type spanClient struct {
    83  	cc *grpc.ClientConn
    84  }
    85  
    86  func NewSpanClient(cc *grpc.ClientConn) SpanClient {
    87  	return &spanClient{cc}
    88  }
    89  
    90  func (c *spanClient) SendSpan(ctx context.Context, opts ...grpc.CallOption) (Span_SendSpanClient, error) {
    91  	stream, err := c.cc.NewStream(ctx, &_Span_serviceDesc.Streams[0], "/v1.Span/SendSpan", opts...)
    92  	if err != nil {
    93  		return nil, err
    94  	}
    95  	x := &spanSendSpanClient{stream}
    96  	return x, nil
    97  }
    98  
    99  type Span_SendSpanClient interface {
   100  	Send(*PSpanMessage) error
   101  	CloseAndRecv() (*emptypb.Empty, error)
   102  	grpc.ClientStream
   103  }
   104  
   105  type spanSendSpanClient struct {
   106  	grpc.ClientStream
   107  }
   108  
   109  func (x *spanSendSpanClient) Send(m *PSpanMessage) error {
   110  	return x.ClientStream.SendMsg(m)
   111  }
   112  
   113  func (x *spanSendSpanClient) CloseAndRecv() (*emptypb.Empty, error) {
   114  	if err := x.ClientStream.CloseSend(); err != nil {
   115  		return nil, err
   116  	}
   117  	m := new(emptypb.Empty)
   118  	if err := x.ClientStream.RecvMsg(m); err != nil {
   119  		return nil, err
   120  	}
   121  	return m, nil
   122  }
   123  
   124  // SpanServer is the server API for Span service.
   125  type SpanServer interface {
   126  	SendSpan(Span_SendSpanServer) error
   127  }
   128  
   129  // UnimplementedSpanServer can be embedded to have forward compatible implementations.
   130  type UnimplementedSpanServer struct {
   131  }
   132  
   133  func (*UnimplementedSpanServer) SendSpan(srv Span_SendSpanServer) error {
   134  	return status.Errorf(codes.Unimplemented, "method SendSpan not implemented")
   135  }
   136  
   137  func RegisterSpanServer(s *grpc.Server, srv SpanServer) {
   138  	s.RegisterService(&_Span_serviceDesc, srv)
   139  }
   140  
   141  func _Span_SendSpan_Handler(srv interface{}, stream grpc.ServerStream) error {
   142  	return srv.(SpanServer).SendSpan(&spanSendSpanServer{stream})
   143  }
   144  
   145  type Span_SendSpanServer interface {
   146  	SendAndClose(*emptypb.Empty) error
   147  	Recv() (*PSpanMessage, error)
   148  	grpc.ServerStream
   149  }
   150  
   151  type spanSendSpanServer struct {
   152  	grpc.ServerStream
   153  }
   154  
   155  func (x *spanSendSpanServer) SendAndClose(m *emptypb.Empty) error {
   156  	return x.ServerStream.SendMsg(m)
   157  }
   158  
   159  func (x *spanSendSpanServer) Recv() (*PSpanMessage, error) {
   160  	m := new(PSpanMessage)
   161  	if err := x.ServerStream.RecvMsg(m); err != nil {
   162  		return nil, err
   163  	}
   164  	return m, nil
   165  }
   166  
   167  var _Span_serviceDesc = grpc.ServiceDesc{
   168  	ServiceName: "v1.Span",
   169  	HandlerType: (*SpanServer)(nil),
   170  	Methods:     []grpc.MethodDesc{},
   171  	Streams: []grpc.StreamDesc{
   172  		{
   173  			StreamName:    "SendSpan",
   174  			Handler:       _Span_SendSpan_Handler,
   175  			ClientStreams: true,
   176  		},
   177  	},
   178  	Metadata: "v1/Service.proto",
   179  }
   180  
   181  // AgentClient is the client API for Agent service.
   182  //
   183  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   184  type AgentClient interface {
   185  	RequestAgentInfo(ctx context.Context, in *PAgentInfo, opts ...grpc.CallOption) (*PResult, error)
   186  	PingSession(ctx context.Context, opts ...grpc.CallOption) (Agent_PingSessionClient, error)
   187  }
   188  
   189  type agentClient struct {
   190  	cc *grpc.ClientConn
   191  }
   192  
   193  func NewAgentClient(cc *grpc.ClientConn) AgentClient {
   194  	return &agentClient{cc}
   195  }
   196  
   197  func (c *agentClient) RequestAgentInfo(ctx context.Context, in *PAgentInfo, opts ...grpc.CallOption) (*PResult, error) {
   198  	out := new(PResult)
   199  	err := c.cc.Invoke(ctx, "/v1.Agent/RequestAgentInfo", in, out, opts...)
   200  	if err != nil {
   201  		return nil, err
   202  	}
   203  	return out, nil
   204  }
   205  
   206  func (c *agentClient) PingSession(ctx context.Context, opts ...grpc.CallOption) (Agent_PingSessionClient, error) {
   207  	stream, err := c.cc.NewStream(ctx, &_Agent_serviceDesc.Streams[0], "/v1.Agent/PingSession", opts...)
   208  	if err != nil {
   209  		return nil, err
   210  	}
   211  	x := &agentPingSessionClient{stream}
   212  	return x, nil
   213  }
   214  
   215  type Agent_PingSessionClient interface {
   216  	Send(*PPing) error
   217  	Recv() (*PPing, error)
   218  	grpc.ClientStream
   219  }
   220  
   221  type agentPingSessionClient struct {
   222  	grpc.ClientStream
   223  }
   224  
   225  func (x *agentPingSessionClient) Send(m *PPing) error {
   226  	return x.ClientStream.SendMsg(m)
   227  }
   228  
   229  func (x *agentPingSessionClient) Recv() (*PPing, error) {
   230  	m := new(PPing)
   231  	if err := x.ClientStream.RecvMsg(m); err != nil {
   232  		return nil, err
   233  	}
   234  	return m, nil
   235  }
   236  
   237  // AgentServer is the server API for Agent service.
   238  type AgentServer interface {
   239  	RequestAgentInfo(context.Context, *PAgentInfo) (*PResult, error)
   240  	PingSession(Agent_PingSessionServer) error
   241  }
   242  
   243  // UnimplementedAgentServer can be embedded to have forward compatible implementations.
   244  type UnimplementedAgentServer struct {
   245  }
   246  
   247  func (*UnimplementedAgentServer) RequestAgentInfo(ctx context.Context, req *PAgentInfo) (*PResult, error) {
   248  	return nil, status.Errorf(codes.Unimplemented, "method RequestAgentInfo not implemented")
   249  }
   250  func (*UnimplementedAgentServer) PingSession(srv Agent_PingSessionServer) error {
   251  	return status.Errorf(codes.Unimplemented, "method PingSession not implemented")
   252  }
   253  
   254  func RegisterAgentServer(s *grpc.Server, srv AgentServer) {
   255  	s.RegisterService(&_Agent_serviceDesc, srv)
   256  }
   257  
   258  func _Agent_RequestAgentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   259  	in := new(PAgentInfo)
   260  	if err := dec(in); err != nil {
   261  		return nil, err
   262  	}
   263  	if interceptor == nil {
   264  		return srv.(AgentServer).RequestAgentInfo(ctx, in)
   265  	}
   266  	info := &grpc.UnaryServerInfo{
   267  		Server:     srv,
   268  		FullMethod: "/v1.Agent/RequestAgentInfo",
   269  	}
   270  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   271  		return srv.(AgentServer).RequestAgentInfo(ctx, req.(*PAgentInfo))
   272  	}
   273  	return interceptor(ctx, in, info, handler)
   274  }
   275  
   276  func _Agent_PingSession_Handler(srv interface{}, stream grpc.ServerStream) error {
   277  	return srv.(AgentServer).PingSession(&agentPingSessionServer{stream})
   278  }
   279  
   280  type Agent_PingSessionServer interface {
   281  	Send(*PPing) error
   282  	Recv() (*PPing, error)
   283  	grpc.ServerStream
   284  }
   285  
   286  type agentPingSessionServer struct {
   287  	grpc.ServerStream
   288  }
   289  
   290  func (x *agentPingSessionServer) Send(m *PPing) error {
   291  	return x.ServerStream.SendMsg(m)
   292  }
   293  
   294  func (x *agentPingSessionServer) Recv() (*PPing, error) {
   295  	m := new(PPing)
   296  	if err := x.ServerStream.RecvMsg(m); err != nil {
   297  		return nil, err
   298  	}
   299  	return m, nil
   300  }
   301  
   302  var _Agent_serviceDesc = grpc.ServiceDesc{
   303  	ServiceName: "v1.Agent",
   304  	HandlerType: (*AgentServer)(nil),
   305  	Methods: []grpc.MethodDesc{
   306  		{
   307  			MethodName: "RequestAgentInfo",
   308  			Handler:    _Agent_RequestAgentInfo_Handler,
   309  		},
   310  	},
   311  	Streams: []grpc.StreamDesc{
   312  		{
   313  			StreamName:    "PingSession",
   314  			Handler:       _Agent_PingSession_Handler,
   315  			ServerStreams: true,
   316  			ClientStreams: true,
   317  		},
   318  	},
   319  	Metadata: "v1/Service.proto",
   320  }
   321  
   322  // MetadataClient is the client API for Metadata service.
   323  //
   324  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   325  type MetadataClient interface {
   326  	RequestSqlMetaData(ctx context.Context, in *PSqlMetaData, opts ...grpc.CallOption) (*PResult, error)
   327  	RequestSqlUidMetaData(ctx context.Context, in *PSqlUidMetaData, opts ...grpc.CallOption) (*PResult, error)
   328  	RequestApiMetaData(ctx context.Context, in *PApiMetaData, opts ...grpc.CallOption) (*PResult, error)
   329  	RequestStringMetaData(ctx context.Context, in *PStringMetaData, opts ...grpc.CallOption) (*PResult, error)
   330  	RequestExceptionMetaData(ctx context.Context, in *PExceptionMetaData, opts ...grpc.CallOption) (*PResult, error)
   331  }
   332  
   333  type metadataClient struct {
   334  	cc *grpc.ClientConn
   335  }
   336  
   337  func NewMetadataClient(cc *grpc.ClientConn) MetadataClient {
   338  	return &metadataClient{cc}
   339  }
   340  
   341  func (c *metadataClient) RequestSqlMetaData(ctx context.Context, in *PSqlMetaData, opts ...grpc.CallOption) (*PResult, error) {
   342  	out := new(PResult)
   343  	err := c.cc.Invoke(ctx, "/v1.Metadata/RequestSqlMetaData", in, out, opts...)
   344  	if err != nil {
   345  		return nil, err
   346  	}
   347  	return out, nil
   348  }
   349  
   350  func (c *metadataClient) RequestSqlUidMetaData(ctx context.Context, in *PSqlUidMetaData, opts ...grpc.CallOption) (*PResult, error) {
   351  	out := new(PResult)
   352  	err := c.cc.Invoke(ctx, "/v1.Metadata/RequestSqlUidMetaData", in, out, opts...)
   353  	if err != nil {
   354  		return nil, err
   355  	}
   356  	return out, nil
   357  }
   358  
   359  func (c *metadataClient) RequestApiMetaData(ctx context.Context, in *PApiMetaData, opts ...grpc.CallOption) (*PResult, error) {
   360  	out := new(PResult)
   361  	err := c.cc.Invoke(ctx, "/v1.Metadata/RequestApiMetaData", in, out, opts...)
   362  	if err != nil {
   363  		return nil, err
   364  	}
   365  	return out, nil
   366  }
   367  
   368  func (c *metadataClient) RequestStringMetaData(ctx context.Context, in *PStringMetaData, opts ...grpc.CallOption) (*PResult, error) {
   369  	out := new(PResult)
   370  	err := c.cc.Invoke(ctx, "/v1.Metadata/RequestStringMetaData", in, out, opts...)
   371  	if err != nil {
   372  		return nil, err
   373  	}
   374  	return out, nil
   375  }
   376  
   377  func (c *metadataClient) RequestExceptionMetaData(ctx context.Context, in *PExceptionMetaData, opts ...grpc.CallOption) (*PResult, error) {
   378  	out := new(PResult)
   379  	err := c.cc.Invoke(ctx, "/v1.Metadata/RequestExceptionMetaData", in, out, opts...)
   380  	if err != nil {
   381  		return nil, err
   382  	}
   383  	return out, nil
   384  }
   385  
   386  // MetadataServer is the server API for Metadata service.
   387  type MetadataServer interface {
   388  	RequestSqlMetaData(context.Context, *PSqlMetaData) (*PResult, error)
   389  	RequestSqlUidMetaData(context.Context, *PSqlUidMetaData) (*PResult, error)
   390  	RequestApiMetaData(context.Context, *PApiMetaData) (*PResult, error)
   391  	RequestStringMetaData(context.Context, *PStringMetaData) (*PResult, error)
   392  	RequestExceptionMetaData(context.Context, *PExceptionMetaData) (*PResult, error)
   393  }
   394  
   395  // UnimplementedMetadataServer can be embedded to have forward compatible implementations.
   396  type UnimplementedMetadataServer struct {
   397  }
   398  
   399  func (*UnimplementedMetadataServer) RequestSqlMetaData(ctx context.Context, req *PSqlMetaData) (*PResult, error) {
   400  	return nil, status.Errorf(codes.Unimplemented, "method RequestSqlMetaData not implemented")
   401  }
   402  func (*UnimplementedMetadataServer) RequestSqlUidMetaData(ctx context.Context, req *PSqlUidMetaData) (*PResult, error) {
   403  	return nil, status.Errorf(codes.Unimplemented, "method RequestSqlUidMetaData not implemented")
   404  }
   405  func (*UnimplementedMetadataServer) RequestApiMetaData(ctx context.Context, req *PApiMetaData) (*PResult, error) {
   406  	return nil, status.Errorf(codes.Unimplemented, "method RequestApiMetaData not implemented")
   407  }
   408  func (*UnimplementedMetadataServer) RequestStringMetaData(ctx context.Context, req *PStringMetaData) (*PResult, error) {
   409  	return nil, status.Errorf(codes.Unimplemented, "method RequestStringMetaData not implemented")
   410  }
   411  func (*UnimplementedMetadataServer) RequestExceptionMetaData(ctx context.Context, req *PExceptionMetaData) (*PResult, error) {
   412  	return nil, status.Errorf(codes.Unimplemented, "method RequestExceptionMetaData not implemented")
   413  }
   414  
   415  func RegisterMetadataServer(s *grpc.Server, srv MetadataServer) {
   416  	s.RegisterService(&_Metadata_serviceDesc, srv)
   417  }
   418  
   419  func _Metadata_RequestSqlMetaData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   420  	in := new(PSqlMetaData)
   421  	if err := dec(in); err != nil {
   422  		return nil, err
   423  	}
   424  	if interceptor == nil {
   425  		return srv.(MetadataServer).RequestSqlMetaData(ctx, in)
   426  	}
   427  	info := &grpc.UnaryServerInfo{
   428  		Server:     srv,
   429  		FullMethod: "/v1.Metadata/RequestSqlMetaData",
   430  	}
   431  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   432  		return srv.(MetadataServer).RequestSqlMetaData(ctx, req.(*PSqlMetaData))
   433  	}
   434  	return interceptor(ctx, in, info, handler)
   435  }
   436  
   437  func _Metadata_RequestSqlUidMetaData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   438  	in := new(PSqlUidMetaData)
   439  	if err := dec(in); err != nil {
   440  		return nil, err
   441  	}
   442  	if interceptor == nil {
   443  		return srv.(MetadataServer).RequestSqlUidMetaData(ctx, in)
   444  	}
   445  	info := &grpc.UnaryServerInfo{
   446  		Server:     srv,
   447  		FullMethod: "/v1.Metadata/RequestSqlUidMetaData",
   448  	}
   449  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   450  		return srv.(MetadataServer).RequestSqlUidMetaData(ctx, req.(*PSqlUidMetaData))
   451  	}
   452  	return interceptor(ctx, in, info, handler)
   453  }
   454  
   455  func _Metadata_RequestApiMetaData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   456  	in := new(PApiMetaData)
   457  	if err := dec(in); err != nil {
   458  		return nil, err
   459  	}
   460  	if interceptor == nil {
   461  		return srv.(MetadataServer).RequestApiMetaData(ctx, in)
   462  	}
   463  	info := &grpc.UnaryServerInfo{
   464  		Server:     srv,
   465  		FullMethod: "/v1.Metadata/RequestApiMetaData",
   466  	}
   467  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   468  		return srv.(MetadataServer).RequestApiMetaData(ctx, req.(*PApiMetaData))
   469  	}
   470  	return interceptor(ctx, in, info, handler)
   471  }
   472  
   473  func _Metadata_RequestStringMetaData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   474  	in := new(PStringMetaData)
   475  	if err := dec(in); err != nil {
   476  		return nil, err
   477  	}
   478  	if interceptor == nil {
   479  		return srv.(MetadataServer).RequestStringMetaData(ctx, in)
   480  	}
   481  	info := &grpc.UnaryServerInfo{
   482  		Server:     srv,
   483  		FullMethod: "/v1.Metadata/RequestStringMetaData",
   484  	}
   485  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   486  		return srv.(MetadataServer).RequestStringMetaData(ctx, req.(*PStringMetaData))
   487  	}
   488  	return interceptor(ctx, in, info, handler)
   489  }
   490  
   491  func _Metadata_RequestExceptionMetaData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   492  	in := new(PExceptionMetaData)
   493  	if err := dec(in); err != nil {
   494  		return nil, err
   495  	}
   496  	if interceptor == nil {
   497  		return srv.(MetadataServer).RequestExceptionMetaData(ctx, in)
   498  	}
   499  	info := &grpc.UnaryServerInfo{
   500  		Server:     srv,
   501  		FullMethod: "/v1.Metadata/RequestExceptionMetaData",
   502  	}
   503  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   504  		return srv.(MetadataServer).RequestExceptionMetaData(ctx, req.(*PExceptionMetaData))
   505  	}
   506  	return interceptor(ctx, in, info, handler)
   507  }
   508  
   509  var _Metadata_serviceDesc = grpc.ServiceDesc{
   510  	ServiceName: "v1.Metadata",
   511  	HandlerType: (*MetadataServer)(nil),
   512  	Methods: []grpc.MethodDesc{
   513  		{
   514  			MethodName: "RequestSqlMetaData",
   515  			Handler:    _Metadata_RequestSqlMetaData_Handler,
   516  		},
   517  		{
   518  			MethodName: "RequestSqlUidMetaData",
   519  			Handler:    _Metadata_RequestSqlUidMetaData_Handler,
   520  		},
   521  		{
   522  			MethodName: "RequestApiMetaData",
   523  			Handler:    _Metadata_RequestApiMetaData_Handler,
   524  		},
   525  		{
   526  			MethodName: "RequestStringMetaData",
   527  			Handler:    _Metadata_RequestStringMetaData_Handler,
   528  		},
   529  		{
   530  			MethodName: "RequestExceptionMetaData",
   531  			Handler:    _Metadata_RequestExceptionMetaData_Handler,
   532  		},
   533  	},
   534  	Streams:  []grpc.StreamDesc{},
   535  	Metadata: "v1/Service.proto",
   536  }
   537  
   538  // StatClient is the client API for Stat service.
   539  //
   540  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   541  type StatClient interface {
   542  	SendAgentStat(ctx context.Context, opts ...grpc.CallOption) (Stat_SendAgentStatClient, error)
   543  }
   544  
   545  type statClient struct {
   546  	cc *grpc.ClientConn
   547  }
   548  
   549  func NewStatClient(cc *grpc.ClientConn) StatClient {
   550  	return &statClient{cc}
   551  }
   552  
   553  func (c *statClient) SendAgentStat(ctx context.Context, opts ...grpc.CallOption) (Stat_SendAgentStatClient, error) {
   554  	stream, err := c.cc.NewStream(ctx, &_Stat_serviceDesc.Streams[0], "/v1.Stat/SendAgentStat", opts...)
   555  	if err != nil {
   556  		return nil, err
   557  	}
   558  	x := &statSendAgentStatClient{stream}
   559  	return x, nil
   560  }
   561  
   562  type Stat_SendAgentStatClient interface {
   563  	Send(*PStatMessage) error
   564  	CloseAndRecv() (*emptypb.Empty, error)
   565  	grpc.ClientStream
   566  }
   567  
   568  type statSendAgentStatClient struct {
   569  	grpc.ClientStream
   570  }
   571  
   572  func (x *statSendAgentStatClient) Send(m *PStatMessage) error {
   573  	return x.ClientStream.SendMsg(m)
   574  }
   575  
   576  func (x *statSendAgentStatClient) CloseAndRecv() (*emptypb.Empty, error) {
   577  	if err := x.ClientStream.CloseSend(); err != nil {
   578  		return nil, err
   579  	}
   580  	m := new(emptypb.Empty)
   581  	if err := x.ClientStream.RecvMsg(m); err != nil {
   582  		return nil, err
   583  	}
   584  	return m, nil
   585  }
   586  
   587  // StatServer is the server API for Stat service.
   588  type StatServer interface {
   589  	SendAgentStat(Stat_SendAgentStatServer) error
   590  }
   591  
   592  // UnimplementedStatServer can be embedded to have forward compatible implementations.
   593  type UnimplementedStatServer struct {
   594  }
   595  
   596  func (*UnimplementedStatServer) SendAgentStat(srv Stat_SendAgentStatServer) error {
   597  	return status.Errorf(codes.Unimplemented, "method SendAgentStat not implemented")
   598  }
   599  
   600  func RegisterStatServer(s *grpc.Server, srv StatServer) {
   601  	s.RegisterService(&_Stat_serviceDesc, srv)
   602  }
   603  
   604  func _Stat_SendAgentStat_Handler(srv interface{}, stream grpc.ServerStream) error {
   605  	return srv.(StatServer).SendAgentStat(&statSendAgentStatServer{stream})
   606  }
   607  
   608  type Stat_SendAgentStatServer interface {
   609  	SendAndClose(*emptypb.Empty) error
   610  	Recv() (*PStatMessage, error)
   611  	grpc.ServerStream
   612  }
   613  
   614  type statSendAgentStatServer struct {
   615  	grpc.ServerStream
   616  }
   617  
   618  func (x *statSendAgentStatServer) SendAndClose(m *emptypb.Empty) error {
   619  	return x.ServerStream.SendMsg(m)
   620  }
   621  
   622  func (x *statSendAgentStatServer) Recv() (*PStatMessage, error) {
   623  	m := new(PStatMessage)
   624  	if err := x.ServerStream.RecvMsg(m); err != nil {
   625  		return nil, err
   626  	}
   627  	return m, nil
   628  }
   629  
   630  var _Stat_serviceDesc = grpc.ServiceDesc{
   631  	ServiceName: "v1.Stat",
   632  	HandlerType: (*StatServer)(nil),
   633  	Methods:     []grpc.MethodDesc{},
   634  	Streams: []grpc.StreamDesc{
   635  		{
   636  			StreamName:    "SendAgentStat",
   637  			Handler:       _Stat_SendAgentStat_Handler,
   638  			ClientStreams: true,
   639  		},
   640  	},
   641  	Metadata: "v1/Service.proto",
   642  }
   643  
   644  // ProfilerCommandServiceClient is the client API for ProfilerCommandService service.
   645  //
   646  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   647  type ProfilerCommandServiceClient interface {
   648  	// deprecated api
   649  	HandleCommand(ctx context.Context, opts ...grpc.CallOption) (ProfilerCommandService_HandleCommandClient, error)
   650  	HandleCommandV2(ctx context.Context, opts ...grpc.CallOption) (ProfilerCommandService_HandleCommandV2Client, error)
   651  	CommandEcho(ctx context.Context, in *PCmdEchoResponse, opts ...grpc.CallOption) (*emptypb.Empty, error)
   652  	CommandStreamActiveThreadCount(ctx context.Context, opts ...grpc.CallOption) (ProfilerCommandService_CommandStreamActiveThreadCountClient, error)
   653  	CommandActiveThreadDump(ctx context.Context, in *PCmdActiveThreadDumpRes, opts ...grpc.CallOption) (*emptypb.Empty, error)
   654  	CommandActiveThreadLightDump(ctx context.Context, in *PCmdActiveThreadLightDumpRes, opts ...grpc.CallOption) (*emptypb.Empty, error)
   655  }
   656  
   657  type profilerCommandServiceClient struct {
   658  	cc *grpc.ClientConn
   659  }
   660  
   661  func NewProfilerCommandServiceClient(cc *grpc.ClientConn) ProfilerCommandServiceClient {
   662  	return &profilerCommandServiceClient{cc}
   663  }
   664  
   665  // Deprecated: Do not use.
   666  func (c *profilerCommandServiceClient) HandleCommand(ctx context.Context, opts ...grpc.CallOption) (ProfilerCommandService_HandleCommandClient, error) {
   667  	stream, err := c.cc.NewStream(ctx, &_ProfilerCommandService_serviceDesc.Streams[0], "/v1.ProfilerCommandService/HandleCommand", opts...)
   668  	if err != nil {
   669  		return nil, err
   670  	}
   671  	x := &profilerCommandServiceHandleCommandClient{stream}
   672  	return x, nil
   673  }
   674  
   675  type ProfilerCommandService_HandleCommandClient interface {
   676  	Send(*PCmdMessage) error
   677  	Recv() (*PCmdRequest, error)
   678  	grpc.ClientStream
   679  }
   680  
   681  type profilerCommandServiceHandleCommandClient struct {
   682  	grpc.ClientStream
   683  }
   684  
   685  func (x *profilerCommandServiceHandleCommandClient) Send(m *PCmdMessage) error {
   686  	return x.ClientStream.SendMsg(m)
   687  }
   688  
   689  func (x *profilerCommandServiceHandleCommandClient) Recv() (*PCmdRequest, error) {
   690  	m := new(PCmdRequest)
   691  	if err := x.ClientStream.RecvMsg(m); err != nil {
   692  		return nil, err
   693  	}
   694  	return m, nil
   695  }
   696  
   697  func (c *profilerCommandServiceClient) HandleCommandV2(ctx context.Context, opts ...grpc.CallOption) (ProfilerCommandService_HandleCommandV2Client, error) {
   698  	stream, err := c.cc.NewStream(ctx, &_ProfilerCommandService_serviceDesc.Streams[1], "/v1.ProfilerCommandService/HandleCommandV2", opts...)
   699  	if err != nil {
   700  		return nil, err
   701  	}
   702  	x := &profilerCommandServiceHandleCommandV2Client{stream}
   703  	return x, nil
   704  }
   705  
   706  type ProfilerCommandService_HandleCommandV2Client interface {
   707  	Send(*PCmdMessage) error
   708  	Recv() (*PCmdRequest, error)
   709  	grpc.ClientStream
   710  }
   711  
   712  type profilerCommandServiceHandleCommandV2Client struct {
   713  	grpc.ClientStream
   714  }
   715  
   716  func (x *profilerCommandServiceHandleCommandV2Client) Send(m *PCmdMessage) error {
   717  	return x.ClientStream.SendMsg(m)
   718  }
   719  
   720  func (x *profilerCommandServiceHandleCommandV2Client) Recv() (*PCmdRequest, error) {
   721  	m := new(PCmdRequest)
   722  	if err := x.ClientStream.RecvMsg(m); err != nil {
   723  		return nil, err
   724  	}
   725  	return m, nil
   726  }
   727  
   728  func (c *profilerCommandServiceClient) CommandEcho(ctx context.Context, in *PCmdEchoResponse, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   729  	out := new(emptypb.Empty)
   730  	err := c.cc.Invoke(ctx, "/v1.ProfilerCommandService/CommandEcho", in, out, opts...)
   731  	if err != nil {
   732  		return nil, err
   733  	}
   734  	return out, nil
   735  }
   736  
   737  func (c *profilerCommandServiceClient) CommandStreamActiveThreadCount(ctx context.Context, opts ...grpc.CallOption) (ProfilerCommandService_CommandStreamActiveThreadCountClient, error) {
   738  	stream, err := c.cc.NewStream(ctx, &_ProfilerCommandService_serviceDesc.Streams[2], "/v1.ProfilerCommandService/CommandStreamActiveThreadCount", opts...)
   739  	if err != nil {
   740  		return nil, err
   741  	}
   742  	x := &profilerCommandServiceCommandStreamActiveThreadCountClient{stream}
   743  	return x, nil
   744  }
   745  
   746  type ProfilerCommandService_CommandStreamActiveThreadCountClient interface {
   747  	Send(*PCmdActiveThreadCountRes) error
   748  	CloseAndRecv() (*emptypb.Empty, error)
   749  	grpc.ClientStream
   750  }
   751  
   752  type profilerCommandServiceCommandStreamActiveThreadCountClient struct {
   753  	grpc.ClientStream
   754  }
   755  
   756  func (x *profilerCommandServiceCommandStreamActiveThreadCountClient) Send(m *PCmdActiveThreadCountRes) error {
   757  	return x.ClientStream.SendMsg(m)
   758  }
   759  
   760  func (x *profilerCommandServiceCommandStreamActiveThreadCountClient) CloseAndRecv() (*emptypb.Empty, error) {
   761  	if err := x.ClientStream.CloseSend(); err != nil {
   762  		return nil, err
   763  	}
   764  	m := new(emptypb.Empty)
   765  	if err := x.ClientStream.RecvMsg(m); err != nil {
   766  		return nil, err
   767  	}
   768  	return m, nil
   769  }
   770  
   771  func (c *profilerCommandServiceClient) CommandActiveThreadDump(ctx context.Context, in *PCmdActiveThreadDumpRes, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   772  	out := new(emptypb.Empty)
   773  	err := c.cc.Invoke(ctx, "/v1.ProfilerCommandService/CommandActiveThreadDump", in, out, opts...)
   774  	if err != nil {
   775  		return nil, err
   776  	}
   777  	return out, nil
   778  }
   779  
   780  func (c *profilerCommandServiceClient) CommandActiveThreadLightDump(ctx context.Context, in *PCmdActiveThreadLightDumpRes, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   781  	out := new(emptypb.Empty)
   782  	err := c.cc.Invoke(ctx, "/v1.ProfilerCommandService/CommandActiveThreadLightDump", in, out, opts...)
   783  	if err != nil {
   784  		return nil, err
   785  	}
   786  	return out, nil
   787  }
   788  
   789  // ProfilerCommandServiceServer is the server API for ProfilerCommandService service.
   790  type ProfilerCommandServiceServer interface {
   791  	// deprecated api
   792  	HandleCommand(ProfilerCommandService_HandleCommandServer) error
   793  	HandleCommandV2(ProfilerCommandService_HandleCommandV2Server) error
   794  	CommandEcho(context.Context, *PCmdEchoResponse) (*emptypb.Empty, error)
   795  	CommandStreamActiveThreadCount(ProfilerCommandService_CommandStreamActiveThreadCountServer) error
   796  	CommandActiveThreadDump(context.Context, *PCmdActiveThreadDumpRes) (*emptypb.Empty, error)
   797  	CommandActiveThreadLightDump(context.Context, *PCmdActiveThreadLightDumpRes) (*emptypb.Empty, error)
   798  }
   799  
   800  // UnimplementedProfilerCommandServiceServer can be embedded to have forward compatible implementations.
   801  type UnimplementedProfilerCommandServiceServer struct {
   802  }
   803  
   804  func (*UnimplementedProfilerCommandServiceServer) HandleCommand(srv ProfilerCommandService_HandleCommandServer) error {
   805  	return status.Errorf(codes.Unimplemented, "method HandleCommand not implemented")
   806  }
   807  func (*UnimplementedProfilerCommandServiceServer) HandleCommandV2(srv ProfilerCommandService_HandleCommandV2Server) error {
   808  	return status.Errorf(codes.Unimplemented, "method HandleCommandV2 not implemented")
   809  }
   810  func (*UnimplementedProfilerCommandServiceServer) CommandEcho(ctx context.Context, req *PCmdEchoResponse) (*emptypb.Empty, error) {
   811  	return nil, status.Errorf(codes.Unimplemented, "method CommandEcho not implemented")
   812  }
   813  func (*UnimplementedProfilerCommandServiceServer) CommandStreamActiveThreadCount(srv ProfilerCommandService_CommandStreamActiveThreadCountServer) error {
   814  	return status.Errorf(codes.Unimplemented, "method CommandStreamActiveThreadCount not implemented")
   815  }
   816  func (*UnimplementedProfilerCommandServiceServer) CommandActiveThreadDump(ctx context.Context, req *PCmdActiveThreadDumpRes) (*emptypb.Empty, error) {
   817  	return nil, status.Errorf(codes.Unimplemented, "method CommandActiveThreadDump not implemented")
   818  }
   819  func (*UnimplementedProfilerCommandServiceServer) CommandActiveThreadLightDump(ctx context.Context, req *PCmdActiveThreadLightDumpRes) (*emptypb.Empty, error) {
   820  	return nil, status.Errorf(codes.Unimplemented, "method CommandActiveThreadLightDump not implemented")
   821  }
   822  
   823  func RegisterProfilerCommandServiceServer(s *grpc.Server, srv ProfilerCommandServiceServer) {
   824  	s.RegisterService(&_ProfilerCommandService_serviceDesc, srv)
   825  }
   826  
   827  func _ProfilerCommandService_HandleCommand_Handler(srv interface{}, stream grpc.ServerStream) error {
   828  	return srv.(ProfilerCommandServiceServer).HandleCommand(&profilerCommandServiceHandleCommandServer{stream})
   829  }
   830  
   831  type ProfilerCommandService_HandleCommandServer interface {
   832  	Send(*PCmdRequest) error
   833  	Recv() (*PCmdMessage, error)
   834  	grpc.ServerStream
   835  }
   836  
   837  type profilerCommandServiceHandleCommandServer struct {
   838  	grpc.ServerStream
   839  }
   840  
   841  func (x *profilerCommandServiceHandleCommandServer) Send(m *PCmdRequest) error {
   842  	return x.ServerStream.SendMsg(m)
   843  }
   844  
   845  func (x *profilerCommandServiceHandleCommandServer) Recv() (*PCmdMessage, error) {
   846  	m := new(PCmdMessage)
   847  	if err := x.ServerStream.RecvMsg(m); err != nil {
   848  		return nil, err
   849  	}
   850  	return m, nil
   851  }
   852  
   853  func _ProfilerCommandService_HandleCommandV2_Handler(srv interface{}, stream grpc.ServerStream) error {
   854  	return srv.(ProfilerCommandServiceServer).HandleCommandV2(&profilerCommandServiceHandleCommandV2Server{stream})
   855  }
   856  
   857  type ProfilerCommandService_HandleCommandV2Server interface {
   858  	Send(*PCmdRequest) error
   859  	Recv() (*PCmdMessage, error)
   860  	grpc.ServerStream
   861  }
   862  
   863  type profilerCommandServiceHandleCommandV2Server struct {
   864  	grpc.ServerStream
   865  }
   866  
   867  func (x *profilerCommandServiceHandleCommandV2Server) Send(m *PCmdRequest) error {
   868  	return x.ServerStream.SendMsg(m)
   869  }
   870  
   871  func (x *profilerCommandServiceHandleCommandV2Server) Recv() (*PCmdMessage, error) {
   872  	m := new(PCmdMessage)
   873  	if err := x.ServerStream.RecvMsg(m); err != nil {
   874  		return nil, err
   875  	}
   876  	return m, nil
   877  }
   878  
   879  func _ProfilerCommandService_CommandEcho_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   880  	in := new(PCmdEchoResponse)
   881  	if err := dec(in); err != nil {
   882  		return nil, err
   883  	}
   884  	if interceptor == nil {
   885  		return srv.(ProfilerCommandServiceServer).CommandEcho(ctx, in)
   886  	}
   887  	info := &grpc.UnaryServerInfo{
   888  		Server:     srv,
   889  		FullMethod: "/v1.ProfilerCommandService/CommandEcho",
   890  	}
   891  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   892  		return srv.(ProfilerCommandServiceServer).CommandEcho(ctx, req.(*PCmdEchoResponse))
   893  	}
   894  	return interceptor(ctx, in, info, handler)
   895  }
   896  
   897  func _ProfilerCommandService_CommandStreamActiveThreadCount_Handler(srv interface{}, stream grpc.ServerStream) error {
   898  	return srv.(ProfilerCommandServiceServer).CommandStreamActiveThreadCount(&profilerCommandServiceCommandStreamActiveThreadCountServer{stream})
   899  }
   900  
   901  type ProfilerCommandService_CommandStreamActiveThreadCountServer interface {
   902  	SendAndClose(*emptypb.Empty) error
   903  	Recv() (*PCmdActiveThreadCountRes, error)
   904  	grpc.ServerStream
   905  }
   906  
   907  type profilerCommandServiceCommandStreamActiveThreadCountServer struct {
   908  	grpc.ServerStream
   909  }
   910  
   911  func (x *profilerCommandServiceCommandStreamActiveThreadCountServer) SendAndClose(m *emptypb.Empty) error {
   912  	return x.ServerStream.SendMsg(m)
   913  }
   914  
   915  func (x *profilerCommandServiceCommandStreamActiveThreadCountServer) Recv() (*PCmdActiveThreadCountRes, error) {
   916  	m := new(PCmdActiveThreadCountRes)
   917  	if err := x.ServerStream.RecvMsg(m); err != nil {
   918  		return nil, err
   919  	}
   920  	return m, nil
   921  }
   922  
   923  func _ProfilerCommandService_CommandActiveThreadDump_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   924  	in := new(PCmdActiveThreadDumpRes)
   925  	if err := dec(in); err != nil {
   926  		return nil, err
   927  	}
   928  	if interceptor == nil {
   929  		return srv.(ProfilerCommandServiceServer).CommandActiveThreadDump(ctx, in)
   930  	}
   931  	info := &grpc.UnaryServerInfo{
   932  		Server:     srv,
   933  		FullMethod: "/v1.ProfilerCommandService/CommandActiveThreadDump",
   934  	}
   935  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   936  		return srv.(ProfilerCommandServiceServer).CommandActiveThreadDump(ctx, req.(*PCmdActiveThreadDumpRes))
   937  	}
   938  	return interceptor(ctx, in, info, handler)
   939  }
   940  
   941  func _ProfilerCommandService_CommandActiveThreadLightDump_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   942  	in := new(PCmdActiveThreadLightDumpRes)
   943  	if err := dec(in); err != nil {
   944  		return nil, err
   945  	}
   946  	if interceptor == nil {
   947  		return srv.(ProfilerCommandServiceServer).CommandActiveThreadLightDump(ctx, in)
   948  	}
   949  	info := &grpc.UnaryServerInfo{
   950  		Server:     srv,
   951  		FullMethod: "/v1.ProfilerCommandService/CommandActiveThreadLightDump",
   952  	}
   953  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   954  		return srv.(ProfilerCommandServiceServer).CommandActiveThreadLightDump(ctx, req.(*PCmdActiveThreadLightDumpRes))
   955  	}
   956  	return interceptor(ctx, in, info, handler)
   957  }
   958  
   959  var _ProfilerCommandService_serviceDesc = grpc.ServiceDesc{
   960  	ServiceName: "v1.ProfilerCommandService",
   961  	HandlerType: (*ProfilerCommandServiceServer)(nil),
   962  	Methods: []grpc.MethodDesc{
   963  		{
   964  			MethodName: "CommandEcho",
   965  			Handler:    _ProfilerCommandService_CommandEcho_Handler,
   966  		},
   967  		{
   968  			MethodName: "CommandActiveThreadDump",
   969  			Handler:    _ProfilerCommandService_CommandActiveThreadDump_Handler,
   970  		},
   971  		{
   972  			MethodName: "CommandActiveThreadLightDump",
   973  			Handler:    _ProfilerCommandService_CommandActiveThreadLightDump_Handler,
   974  		},
   975  	},
   976  	Streams: []grpc.StreamDesc{
   977  		{
   978  			StreamName:    "HandleCommand",
   979  			Handler:       _ProfilerCommandService_HandleCommand_Handler,
   980  			ServerStreams: true,
   981  			ClientStreams: true,
   982  		},
   983  		{
   984  			StreamName:    "HandleCommandV2",
   985  			Handler:       _ProfilerCommandService_HandleCommandV2_Handler,
   986  			ServerStreams: true,
   987  			ClientStreams: true,
   988  		},
   989  		{
   990  			StreamName:    "CommandStreamActiveThreadCount",
   991  			Handler:       _ProfilerCommandService_CommandStreamActiveThreadCount_Handler,
   992  			ClientStreams: true,
   993  		},
   994  	},
   995  	Metadata: "v1/Service.proto",
   996  }