@Override
    public void handleSimple(ServerRequest<GeneratedMessageV3> serverRequest) {
        final GeneratedMessageV3 data = serverRequest.getData();
        final ServerHeader header = serverRequest.getHeader();
        if (data instanceof PAgentStat agentStat) {
            handleAgentStat(header, agentStat);
        } else if (data instanceof PAgentStatBatch agentStatBatch) {
            handleAgentStatBatch(header, agentStatBatch);
        } else if (data instanceof PAgentUriStat) {
            // do nothing
        } else {
            logger.warn("Invalid request type. serverRequest={}", serverRequest);
            throw Status.INTERNAL.withDescription("Bad Request(invalid request type)").asRuntimeException();
        }
    }
@author Taejin Koo
@author jaehong.kim - Add AgentEventMessageSerializerV1
collector/src/main/java/com/navercorp/pinpoint/collector/handler/grpc/GrpcAgentEventHandler.java