in gapic/agentcommunicationpb/agent_communication.pb.go [1089:1105]
func _AgentCommunication_SendAgentMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SendAgentMessageRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AgentCommunicationServer).SendAgentMessage(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.cloud.agentcommunication.v1.AgentCommunication/SendAgentMessage",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AgentCommunicationServer).SendAgentMessage(ctx, req.(*SendAgentMessageRequest))
}
return interceptor(ctx, in, info, handler)
}